Hi all,
I want to know how to boot openwrt from eMMC in LS1012ARDB board. I use openwrt repository from https://source.codeaurora.org/external/qoriq/qoriq-components/openwrt (branch layerscape-20.09). From this build root, I only able to create firmware that will be flashed to QSPI, or loaded to ram (ramdisk) for booting.
I use board MYZR-LS1012A-EK200. It has eMMC installed and divided to 2 partition, boot partition (fat32) and root filesystem partition (ext4). It is installed with yocto that booted from eMMC using loadable .dtb file and linux kernel in boot partition. I can use this board's .dtb file for device tree binary source to boot openwrt ramdisk image that I built from repository that I mentioned earlier.
From the board's boot sequence to boot from eMMC, it will create bootargs to point rootfs in second partition of eMMC, then load files from boot partition, the Image file as linux kernel, then load .dtb file as device tree binary source, next boot the linux kernel using "booti <kernel_addr> - <dtb_addr>".
I tried to get linux openwrt kernel Image file from the build root inside build_dir folder (build_dir/target-aarch64_generic_glibc/linux-layerscape_armv8_64b/), then put it into the board's boot partition, also I formated the board's root file system partition and filled it with files and directory that extracted from openwrt image root folder. I thought it will success like the board will boot the openwrt kernel Image, then use board's second partition as root file system, but the booting process failed when to mounted root fs.
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
I also tried to invoke the boot sequence manually, and the result is still same.
Can you guys give me direction how to make the openwrt that able to be booted from eMMC in this board?
Is openwrt firmware for ls1012ardb (built from build root) only able to be booted from qspi (for persistance) and ramdisk like I mentioned above? since there is no option to built image firmware that can be booted from eMMC or sdcard in build root.
If the openwrt for ls1012ardb can be booted from eMMC, what is wrong with my kernel Image that unnable to mount the root fs?
Best regards,
Huda