Discussion:
ramdisk + find out the physical address of /dev/ram...
Boris Chow
2002-04-19 08:48:18 UTC
Permalink
Thanks, it is a good point to me.

I am now porting my kernel and ramdisk.gz to the RAM through Angel.

Size of zImage = 700K
Size of ramdisk.gz = 1024K

What I am doing now is insert a command line option as
"root=/dev/ram ramdisk_start=700 load_ramdisk=1 prompt_ramdisk=0"

And in Angel option file

image "zImage"
base 0x8000
entry 0x8000
otherfile "ramdisk.gz"
otherbase 0xb7000
exec "/usr/bin/minicom"

where 0xb7000 = 0x8000 + 1024*700

Is this method okay? But still I cannot mount the root filesystem .... Is something I
missed?

Many thanks!!
Boris
How can I find the physical address of /dev/ram0 , /dev/ram1, /dev/ram2
that my board actually points to? I am using clps7500.
You can't. It doesn't work like that. Ramdisks are part of the page
cache, and are a series of non-contiguous pages allocated from the
free page pool. There is no "base address".
---------------------------------------------------------------------------
PLEASE READ: The information contained in this e-mail is confidential and
intended for the named recipient(s) only. If you are not an intended
recipient of this e-mail you must not copy, distribute or take any further
action in reliance upon it and you should delete it and notify the sender
immediately. E-mail is not a secure method of communication. GuruBase
Technology Limited cannot accept responsibility for the accuracy or
completeness of this message or any attachment(s). This transmission could
contain viruses, be corrupted, destroyed, incomplete, intercepted, lost or
arrive late. If verification of this e-mail is sought then please request
a hard copy. Unless otherwise stated any views or opinions presented are
solely those of the author and do not represent those of GuruBase Technology
Limited. This e-mail is intended for information purposes only.

-------------------------------------------------------------------
Subscription options: http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm-kernel
FAQ/Ettiquette: http://www.arm.linux.org.uk/armlinux/mailinglists.php
Russell King - ARM Linux
2002-04-19 08:06:11 UTC
Permalink
How can I find the physical address of /dev/ram0 , /dev/ram1, /dev/ram2
that my board actually points to? I am using clps7500.
You can't. It doesn't work like that. Ramdisks are part of the page
cache, and are a series of non-contiguous pages allocated from the
free page pool. There is no "base address".

-------------------------------------------------------------------
Subscription options: http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm-kernel
FAQ/Ettiquette: http://www.arm.linux.org.uk/armlinux/mailinglists.php
Boris Chow
2002-04-19 07:49:11 UTC
Permalink
Dear all,

How can I find the physical address of /dev/ram0 , /dev/ram1, /dev/ram2 that my
board actually points to? I am using clps7500.

Is it a must to load the root filesystem (ramdisk.gz) directly to the head
of /dev/ram[num]?

Many thanks!


Boiris




---------------------------------------------------------------------------
PLEASE READ: The information contained in this e-mail is confidential and
intended for the named recipient(s) only. If you are not an intended
recipient of this e-mail you must not copy, distribute or take any further
action in reliance upon it and you should delete it and notify the sender
immediately. E-mail is not a secure method of communication. GuruBase
Technology Limited cannot accept responsibility for the accuracy or
completeness of this message or any attachment(s). This transmission could
contain viruses, be corrupted, destroyed, incomplete, intercepted, lost or
arrive late. If verification of this e-mail is sought then please request
a hard copy. Unless otherwise stated any views or opinions presented are
solely those of the author and do not represent those of GuruBase Technology
Limited. This e-mail is intended for information purposes only.

-------------------------------------------------------------------
Subscription options: http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm-kernel
FAQ/Ettiquette: http://www.arm.linux.org.uk/armlinux/mailinglists.php
Loading...