?
Solved

SDRAM mapping?

Posted on 2003-11-18
6
Medium Priority
?
320 Views
Last Modified: 2013-12-15
I am involved in an embedded project. How would I tell my linux kernel about the presence of 32MB SDRAM?
0
Comment
Question by:Johncy
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
6 Comments
 
LVL 11

Expert Comment

by:dimitry
ID: 9775755
Your bootloader may pass this to the kernel. For example through redboot you can pass to the kernel:
"root=/dev/mtdblock3 mem=32M"
So with the help of mem=sizeM you may "tell" to kernel size of your SDRAM.
0
 

Author Comment

by:Johncy
ID: 9775921
Thanks for your suggestion. How about the physical address mapping of the SDRAM to the processor?
0
 
LVL 11

Expert Comment

by:dimitry
ID: 9780883
Take a look on file arch.c under ~/arch/CPUNAME/kernel and you will find:
Function somename_fixup(...,struct meminfo *mi)
{
        mi->nr_banks      = 1;
        mi->bank[0].start = PHYS_OFFSET;  /* <--SDRAM phyical address */
        mi->bank[0].size  = (32*1024*1024);  /* <-- SDRAM size */
        mi->bank[0].node  = 0;
        ...
}
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:Johncy
ID: 9793866
I could find such a file for ARM but no such file arch.c in arch/i386/kernel. Where could i get the information for x86 architecture?
0
 

Author Comment

by:Johncy
ID: 9983713
Please tell me about the SDRAM mapping address for the kernel.
0
 
LVL 11

Accepted Solution

by:
dimitry earned 160 total points
ID: 9985614
Take a look on following documentation:
 - src/arch/i386/mm/init.c
   function mem_init()
 - src/Documentation/IO-mapping.txt
 - src/Documentation/i386/boot.txt

0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

rdate is a Linux command and the network time protocol for immediate date and time setup from another machine. The clocks are synchronized by entering rdate with the -s switch (command without switch just checks the time but does not set anything). …
Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses
Course of the Month9 days, 18 hours left to enroll

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question