RE: [ixp1200] questions on memory in linux

From: Naik, Uday (uday.naik@intel.com)
Date: Wed Jul 11 2001 - 12:09:37 EST


a) For memory, one easy solution is to map this memory as unprotected
   uncached memory in kernel space. We did exactly this. Look at the
   ixp1200 linux kernel on www.netwinder.org/~urnaik

   Look at mm-ixp1200.c, and include/asm/arch/hardware.h.

   We mapped the packet memory into virtual memory 0xd8000000 with
   cache off and memory protection off. It is accessible to all processes
   at that address.

b) This is doable. Cygmon puts the boot string into 0xc0000000. But
   currently the linux port does not read this string. You need to change
   the head.S in arch/arm/boot/compressed

Regards

Uday

-----Original Message-----
From: Josh Fryman [mailto:fryman@cc.gatech.edu]
Sent: Tuesday, July 10, 2001 11:44 AM
To: ixp1200@CS.Princeton.EDU; linux-kernel@vger.kernel.org
Subject: [ixp1200] questions on memory in linux

hi,

we've got some intel IXP 1200 (spin B0) eval boards, and are running
linux in them. we have some questions about how to do specific things
with (a) memory and (b) the cygmon mini-boot loader...

(a) memory:
        the IXP 1200 boards have 32M of SDRAM in two 16MB banks. the
        bottom 24MB are used for linux, the rest are free...
        however, we want to allocate some memory in that first bank
        and *tie* it down so that it's always available at that address
        physically to the IXP microengines as well as virtually to the
        linux system. can anyone provide pointers to FAQs or other
        documents for handling this? eg, some way to do a
        malloc( 1MB ) and then get the true physical address of the
        malloc results?

(b) the IXP 1200 has a SA-1100 core running the cygmon mini loader from
        flash. is there any way to specify kernel-load arguments,
        similar to how LILO works, with this system? any pointers to
        where we can find out more details for this? the process is to
        boot the cygmon from flash, give it the parameters for where to
        TFTP the kernel / ramdisk from, and then let it run. we'd like
        to force the kernel to run with a "mem=4M" type of setting so
        it doesn't suck down our very meager memory for buffers we don't
        want/need. (note, if we can do this, the part (a) above doesn't
        necessarily go away... it's something we still need to know how
        to do...)

thanks for any input,

josh

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sun Jul 15 2001 - 21:00:14 EST