Solved

SDRAM mapping?

Posted on 2003-11-18
6
301 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
  • 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
Free Gift Card with Acronis Backup Purchase!

Backup any data in any location: local and remote systems, physical and virtual servers, private and public clouds, Macs and PCs, tablets and mobile devices, & more! For limited time only, buy any Acronis backup products and get a FREE Amazon/Best Buy gift card worth up to $200!

 

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 40 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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

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,…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
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.

757 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now