This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

eMMC + NFS boot won't work

Hi,

We have our custom board booting using eMMC in raw mode. However the developer would still like to boot using the root filesystem through NFS.

We modified BoardConfig.mk/BOARD_KERNEL_CMDLINE so the correct parameters are passed to the kernel when the boot image is run but it doesn't work.

The kernel waits for a DHCP ip when mounting filesystems as it should but ultimately it won't mount the NFS filesystem. We're thinking it might be the ramdisk included in the Android boot image which has priority over NFS.

Is there a way to fix this?

  • I'll answer my own question.

    We are using the emmc to boot the kernel and the emmc is formatted in raw mode. This means that the kernel is bundled in an Android boot image along with a ramdisk and the kernel boot parameters. 

    We found out that if a ramdisk is present, it will be used in priority as the root filesystem so nfs won't even be considered. 

    In the end we use a special kernel with ramdisk support disabled (Initial RAM filesystem and RAM disk (initramfs/initrd) support) to boot using NFS as root filesystem.