* How to use ramdisk on the ml300?
@ 2008-08-14 3:08 yanlong wang
2008-08-14 3:24 ` Stu Bershtein
` (3 more replies)
0 siblings, 4 replies; 8+ messages in thread
From: yanlong wang @ 2008-08-14 3:08 UTC (permalink / raw)
To: linuxppc-embedded
If i want use ramdisk on the ml300 , i must use u-boot in my system ?
many thanks
^ permalink raw reply [flat|nested] 8+ messages in thread
* RE: How to use ramdisk on the ml300?
2008-08-14 3:08 How to use ramdisk on the ml300? yanlong wang
@ 2008-08-14 3:24 ` Stu Bershtein
2008-08-14 3:34 ` Philipp Hachtmann
2008-08-14 3:50 ` wangyanlong
` (2 subsequent siblings)
3 siblings, 1 reply; 8+ messages in thread
From: Stu Bershtein @ 2008-08-14 3:24 UTC (permalink / raw)
To: yanlong wang, linuxppc-embedded
Yanlong,
As I discovered today, it is not necessary to use u-boot on the ml507 =
board. I cannot speak with certainty about the ml300. For the ml507 =
the ramdisk image gets saved as a separate section in the elf file that =
is downloaded with the zImage. In the ml507 case the image is a gzipped =
ext2 filesystem. Makes a very tidy package I'm sure you will agree!=20
Stu
-----Original Message-----
From: linuxppc-embedded-bounces+sbershtein=3Dquantum3d.com@ozlabs.org on =
behalf of yanlong wang
Sent: Wed 8/13/2008 8:08 PM
To: linuxppc-embedded@ozlabs.org
Subject: How to use ramdisk on the ml300?
=20
If i want use ramdisk on the ml300 , i must use u-boot in my =
system ?
many thanks
_______________________________________________
Linuxppc-embedded mailing list
Linuxppc-embedded@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-embedded
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: How to use ramdisk on the ml300?
2008-08-14 3:24 ` Stu Bershtein
@ 2008-08-14 3:34 ` Philipp Hachtmann
0 siblings, 0 replies; 8+ messages in thread
From: Philipp Hachtmann @ 2008-08-14 3:34 UTC (permalink / raw)
To: Stu Bershtein; +Cc: yanlong wang, linuxppc-embedded
Hi,
> As I discovered today, it is not necessary to use u-boot on the ml507
> board. I cannot speak with certainty about the ml300. For the ml507
> the ramdisk image gets saved as a separate section in the elf file
> that is downloaded with the zImage. In the ml507 case the image is a
> gzipped ext2 filesystem. Makes a very tidy package I'm sure you will
> agree!
But with U-boot it can be way more comfortable!
Regards,
Ph :)
--
http://www.hachti.de
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: How to use ramdisk on the ml300?
2008-08-14 3:08 How to use ramdisk on the ml300? yanlong wang
2008-08-14 3:24 ` Stu Bershtein
@ 2008-08-14 3:50 ` wangyanlong
2008-08-14 7:04 ` Jens Wirth
2008-08-15 8:40 ` wangyanlong
3 siblings, 0 replies; 8+ messages in thread
From: wangyanlong @ 2008-08-14 3:50 UTC (permalink / raw)
To: linuxppc-embedded
I use the make zImage.initrd to build my linux and i creat a
ramdisk file ,set the console root=/dev/ram.
next i download the zImage.initrd.elf to the board,and down load
the ramdisk file to the right place , but in the boot message , it
not try to load the ramdisk as rootfiles , it really boring me ,why?
Thanks for your help
--
View this message in context: http://www.nabble.com/How-to-use-ramdisk-on-the-ml300--tp18975066p18975316.html
Sent from the linuxppc-embedded mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: How to use ramdisk on the ml300?
2008-08-14 3:08 How to use ramdisk on the ml300? yanlong wang
2008-08-14 3:24 ` Stu Bershtein
2008-08-14 3:50 ` wangyanlong
@ 2008-08-14 7:04 ` Jens Wirth
2008-08-14 10:44 ` wangyanlong
2008-08-15 8:40 ` wangyanlong
3 siblings, 1 reply; 8+ messages in thread
From: Jens Wirth @ 2008-08-14 7:04 UTC (permalink / raw)
To: linuxppc-embedded, killyouatonce
Hi Yanlong,
On Thu, Aug 14, 2008 at 5:08 AM, yanlong wang <killyouatonce@gmail.com> wrote:
> If i want use ramdisk on the ml300 , i must use u-boot in my system ?
> many thanks
I suppose you want to use an initial ram filesystem as
rootfs to boot your system?
You have to point CONFIG_INITRAMFS_SOURCE="" to a cpio
archive or a directory which contains your rootfs. If
you use a directory structure then you should set your
uid/gid to make the build process convert the owner
to root:
# if your uid/gid is 500:
CONFIG_INITRAMFS_ROOT_UID=500
CONFIG_INITRAMFS_ROOT_GID=500
Don't forget to set CONFIG_BLK_DEV_RAM=y to be able
to use a ramdisk at all.
I'm also using the ml300 board and I create my kernel
with: make simpleImage.virtex405-ml300
My dts is arch/powerpc/boot/dts/virtex405-ml300.dts.
There is no kernel boot command line needed to use
the initramfs in my case (I only set up my console
to the uart). Just download the image
arch/powerpc/boot/simpleImage.virtex405-ml300.elf
with xmd to your ml300 and run it.
I hope this works for you.
Regards
Jens
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: How to use ramdisk on the ml300?
2008-08-14 7:04 ` Jens Wirth
@ 2008-08-14 10:44 ` wangyanlong
2008-08-14 13:54 ` Jens Wirth
0 siblings, 1 reply; 8+ messages in thread
From: wangyanlong @ 2008-08-14 10:44 UTC (permalink / raw)
To: linuxppc-embedded
Hi JensWirth,
Thanks for your reply :). I have some questions here.
(1)You told me "make simpleImage.virtex405-ml300",i only know "make
zImage" and "make zImage.initrd" ,what it is this command mean???
(2)What is dts ? I don't know what is this :(
Regards,
YanLong:)
Jens Wirth wrote:
>
> Hi Yanlong,
>
> On Thu, Aug 14, 2008 at 5:08 AM, yanlong wang <killyouatonce@gmail.com>
> wrote:
>> If i want use ramdisk on the ml300 , i must use u-boot in my system
>> ?
>> many thanks
>
> I suppose you want to use an initial ram filesystem as
> rootfs to boot your system?
>
> You have to point CONFIG_INITRAMFS_SOURCE="" to a cpio
> archive or a directory which contains your rootfs. If
> you use a directory structure then you should set your
> uid/gid to make the build process convert the owner
> to root:
>
> # if your uid/gid is 500:
> CONFIG_INITRAMFS_ROOT_UID=500
> CONFIG_INITRAMFS_ROOT_GID=500
>
> Don't forget to set CONFIG_BLK_DEV_RAM=y to be able
> to use a ramdisk at all.
>
> I'm also using the ml300 board and I create my kernel
> with: make simpleImage.virtex405-ml300
>
> My dts is arch/powerpc/boot/dts/virtex405-ml300.dts.
> There is no kernel boot command line needed to use
> the initramfs in my case (I only set up my console
> to the uart). Just download the image
> arch/powerpc/boot/simpleImage.virtex405-ml300.elf
> with xmd to your ml300 and run it.
>
> I hope this works for you.
>
> Regards
> Jens
> _______________________________________________
> Linuxppc-embedded mailing list
> Linuxppc-embedded@ozlabs.org
> https://ozlabs.org/mailman/listinfo/linuxppc-embedded
>
>
--
View this message in context: http://www.nabble.com/How-to-use-ramdisk-on-the-ml300--tp18975066p18979320.html
Sent from the linuxppc-embedded mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: How to use ramdisk on the ml300?
2008-08-14 10:44 ` wangyanlong
@ 2008-08-14 13:54 ` Jens Wirth
0 siblings, 0 replies; 8+ messages in thread
From: Jens Wirth @ 2008-08-14 13:54 UTC (permalink / raw)
To: linuxppc-embedded, wangyanlong
Hi
On Thu, Aug 14, 2008 at 12:44 PM, wangyanlong <killyouatonce@gmail.com> wrote:
>
> Hi JensWirth,
> Thanks for your reply :). I have some questions here.
> (1)You told me "make simpleImage.virtex405-ml300",i only know "make
> zImage" and "make zImage.initrd" ,what it is this command mean???
It's a relatively new target in the arch/powerpc/boot/Makefile which
wraps your compressed kernel and bootcode together with a device tree
blob. A device tree blob is created using a device tree source (dts).
> (2)What is dts ? I don't know what is this :(
A device tree source is plain text. Look inside arch/powerpc/boot/dts.
A device tree is essential if you want to boot an ARCH=powerpc
Linux-Kernel. Read this:
http://ols.fedoraproject.org/OLS/Reprints-2008/likely2-reprint.pdf
I supposed you were using 2.6.26 or 2.6.27-rcX
Regards
Jens
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: How to use ramdisk on the ml300?
2008-08-14 3:08 How to use ramdisk on the ml300? yanlong wang
` (2 preceding siblings ...)
2008-08-14 7:04 ` Jens Wirth
@ 2008-08-15 8:40 ` wangyanlong
3 siblings, 0 replies; 8+ messages in thread
From: wangyanlong @ 2008-08-15 8:40 UTC (permalink / raw)
To: linuxppc-embedded
It is work now ,Thanks for all your help :)
--
View this message in context: http://www.nabble.com/How-to-use-ramdisk-on-the-ml300--tp18975066p18995595.html
Sent from the linuxppc-embedded mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2008-08-15 8:40 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-14 3:08 How to use ramdisk on the ml300? yanlong wang
2008-08-14 3:24 ` Stu Bershtein
2008-08-14 3:34 ` Philipp Hachtmann
2008-08-14 3:50 ` wangyanlong
2008-08-14 7:04 ` Jens Wirth
2008-08-14 10:44 ` wangyanlong
2008-08-14 13:54 ` Jens Wirth
2008-08-15 8:40 ` wangyanlong
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).