AnsweredAssumed Answered

LS1024A: Booting rootfs RAMdisk

Question asked by Agnes Amreetha on Aug 26, 2015
Latest reply on Aug 31, 2015 by Yiping Wang



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?