2009-12-21 07:33:44     why use "root=/dev/mtdblock0" can boot the uimage.initramfs

Document created by Aaronwu Employee on Sep 25, 2013
Version 1Show Document
  • View in full screen mode

2009-12-21 07:33:44     why use "root=/dev/mtdblock0" can boot the uimage.initramfs

xm ye (CHINA)

Message: 83789   

 

hi

 

when we used u-boot download  the uimage.initramfs into the ram and "bootm" it,  the bootargs is

 

"Kernel command line: root=/dev/mtdblock0 rw earlyprintk=serial,uart0,57600 consf"

 

 

i could think it was  root=/dev/ram0 ,because we use the ramdisk,and  didn't flash mtdblock0 any rootfs. Please help me.

QuoteReplyEditDelete

 

 

2009-12-21 07:53:52     Re: why use "root=/dev/mtdblock0" can boot the uimage.initramfs

Mike Frysinger (UNITED STATES)

Message: 83790   

 

root= is ignored with an initramfs rootfs

QuoteReplyEditDelete

 

 

2009-12-21 20:13:18     Re: why use "root=/dev/mtdblock0" can boot the uimage.initramfs

xm ye (CHINA)

Message: 83804   

 

Mike ,you mean that compiled the  kernel if choose the ramfs  option ,the "root=/dev/mtdblock0"  parameter will  ignored by the kernel  when boot ?

QuoteReplyEditDelete

 

 

2009-12-21 20:35:23     Re: why use "root=/dev/mtdblock0" can boot the uimage.initramfs

Mike Frysinger (UNITED STATES)

Message: 83805   

 

no, only kernels with initramfs cpio archives compiled in

QuoteReplyEditDelete

 

 

2009-12-21 21:09:46     Re: why use "root=/dev/mtdblock0" can boot the uimage.initramfs

xm ye (CHINA)

Message: 83806   

 

i confused with it.    initramfs cpio archives must compiled with kernel into one image?   when I used kernel 2.4,I compiled kernel and ramdisk and download into ram,  used  like "initrd=0x3080000, root=/dev/ram" command line   boot it .if i can like this way to compile initramfs cpio arhcives alone?

QuoteReplyEditDelete

 

 

2009-12-21 21:13:46     Re: why use "root=/dev/mtdblock0" can boot the uimage.initramfs

Mike Frysinger (UNITED STATES)

Message: 83807   

 

please read the documentation:

http://docs.blackfin.uclinux.org/doku.php?id=uclinux-dist:rootfs

http://docs.blackfin.uclinux.org/doku.php?id=uclinux-dist:images

Attachments

    Outcomes