LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to configure Linux physical memory map (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-configure-linux-physical-memory-map-808608/)

andreiatlinux 05-18-2010 09:26 AM

How to configure Linux physical memory map
 
Hi,

I am trying to build and bring-up Linux (embedded) for a piece of hardware which have MIPS 74K proccessor 16MB Flash, 128MB DDR and network/usb support. How to configure/set into the kernel the exact addresses of the physical memory map? How does the kernel know where is the system ram, i/o memory, root FS? I have read some book and I found how the applications can go and read some special files like /proc/iomem to find out info about memory but what I need is how to set those addresses at the beginning when I build the kernel and FS in order to boot the kernel on my h/w.

Thanks,
Andrei

paulsm4 05-18-2010 10:56 AM

Hi -

If you're asking this question, there's probably a lot of other stuff you're going to need to know for this project.

Strong recommendation: get this book. Today:

Building-Embedded-Linux-Systems, Yaghmour et al

Satisfaction guaranteed!

andreiatlinux 05-18-2010 01:00 PM

Hi,

I have this book and a few other books but I still couldn't find the procedure/location where to set the physical memory map of the system. Maybe I overlooked the information, I would be very thankful if you can point me to some information. I searched into Kernel configuration options and I couldn't find it. I am using a MALTA board with a Timesys Linux distribution for MALTA and I am starting to think that maybe not all the kernel options are displayed at "make menuconfig", just a subset which is relevant for this board.

Thanks,
Andrei

paulsm4 05-18-2010 05:04 PM

Hi -

Sorry about that. My recollection was that Yaghmour's book covered *everything* (in great detail!). But I don't have my copy with me, so I can't double-check.

ANYWAY: I believe what you're looking for is "setup_arch()".

This link might help:
http://www.embedded.com/story/OEG20010221S0092

Your .. PSM


All times are GMT -5. The time now is 05:04 PM.