LS1024A: Booting rootfs RAMdisk

Showing results for 
Search instead for 
Did you mean: 

LS1024A: Booting rootfs RAMdisk

Contributor I


I am using LS1024ARDB board, in which I am trying to load the RAMdisk root file system during booting,

and facing issue,

Steps followed:

     1.   In make -> menuconfig command, TargetImages -> Generate comcerto ramdisk image

             In include-> file changing the values as CONFIG_BLK_DEV_RAM_SIZE=26624

              and compiled kernel image & RAM disk image.  (openwrt-comcerto2000-gpp-uImage.img &  openwrt-comcerto2000-gpp-ramdisk.cpio.gz)

      2.  In Barebox bootloader prompt,

        environment values are changed as,



        bootargs="$bootargs root=/dev/ram0 rootfstype=ramfs rdinit=/linuxrc"

        bootargs="${bootargs} mtdparts=comcertoflash.0:128k(uloader)ro,512k(barebox)ro,128k(env),4M(kernel),48M(rootfs)"

      3.   The below commands are executed

        addpart /dev/ram0 8M@32M(kernel); tftp openwrt-comcerto2000-gpp-uImage.img /dev/ram0.kernel       //kernel image

        addpart /dev/ram0 48M@40M(rootfs);tftp openwrt-comcerto2000-gpp-ramdisk.cpio.gz /dev/ram0.rootfs //rootfs image

        bootm /dev/ram0.kernel /dev/ram0.rootfs

Error Faced:

        6.437055] VFS: Mounted root (ramfs filesystem) on device 0:13.

        [    6.443263] Freeing init memory: 188K

        [    6.446956] Failed to execute /etc/preinit.  Attempting defaults...

        [    6.453270] Kernel panic - not syncing: No init found.  Try passing init= option to kernel.

Can any one guide in this to boot the ramdisk rootfs in LS1024RDB?

Labels (1)
0 Kudos
1 Reply

NXP TechSupport
NXP TechSupport

Hello Agnes Amreetha,

Would you please provide console log of your operation? Or provide the whole Kernel boot up log?

Actually I didn't understand why you ran ramdisk boot with this way.

Have a great day,

Note: If this post answers your question, please click the Correct Answer button. Thank you!

0 Kudos