LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 02-10-2010, 01:14 AM   #1
Niraj Kulkarni
Member
 
Registered: May 2008
Posts: 47

Rep: Reputation: 15
SRAM address for Application Usage


Hi,
I will be using uCLinux on a refernce Board I have.
I have u-boot,kernel and romfs.
The Board has 32MB SDRAM.
According to the u-boot code, I understand the SDRAM address starts
from 0xA0000000
size 0x02000000 (32 MB).

According to the u-boot code, I can download my Kernel Image at RAM location 0xA1500000.

Then using "bootm 0xA1500000" my kerenl will boot.

Now HOW TO DECIDE THAT I CAN USE RAM FROM 0xA1500000 AND NOT FROM ANYWHERE ELSE.

CAN SOMEBODY PLEASE TELL ME HOW IS THE RAM USED like :

address 0x00000000 to xyz = for Kernel/OS
from xyz to abc = for u-boot
from abc to pqr = data segment of application
from pqr to mno = code segment of application.

Thanks
Niraj
 
Old 02-10-2010, 06:00 PM   #2
Mr-Bisquit
Member
 
Registered: Feb 2009
Distribution: FreeBSD, OpenBSD, NetBSD, Debian, Fedora
Posts: 770
Blog Entries: 52

Rep: Reputation: 68
This is the little I understand about embedded systems.
You need to configure the bootloader to install the kernel and load the defaults there.

Another thing is: What CPU architecture is it?
You may need to reference boot and memory problems according to that.
Certain ARM x processors have strange memory limitations.
 
Old 02-10-2010, 10:21 PM   #3
Niraj Kulkarni
Member
 
Registered: May 2008
Posts: 47

Original Poster
Rep: Reputation: 15
Thanks Mr-Bisquit,
But I understand that there are some strategy like :
1 .Kernel will be loaded at the end (of course with suffient space for kernel) of the available RAM. then for a application the usable RAM area starts from address 0x00000.
OR
2. kernel will be loaded at the start of the RAM , then after some fixed MBs (usually 3-4 MB)application can run.

Correct me if I am wrong.
Regards
Niraj.
 
Old 02-11-2010, 03:24 AM   #4
Mr-Bisquit
Member
 
Registered: Feb 2009
Distribution: FreeBSD, OpenBSD, NetBSD, Debian, Fedora
Posts: 770
Blog Entries: 52

Rep: Reputation: 68
I believe the kernel need to be loaded first.
You can try the system with qemu.
Even though the machine may not be exactly the same, there will be enough similarity in function.
Have you tried the uClinux forums/mailing lists or the emdebian lists?
 
  


Reply

Tags
ram, uclinux, usage


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to translate virtual address to physical address in linux application saurin Programming 1 11-18-2009 09:05 PM
Recording application usage arizonagroovejet Linux - General 1 04-09-2009 06:04 AM
Application usage statistics vladmihaisima General 2 01-04-2008 11:10 AM
Stack usage of an application tsenthilt Linux - Software 5 05-14-2006 10:09 AM
Usage of pipes in multithreaded application.... rajsun Programming 1 01-13-2006 06:40 AM


All times are GMT -5. The time now is 08:34 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration