I bought a beaglebone black to learn yocto. I could generate SD card image and boot the board with bitbake. Then I wanted to use rootfs over NFS. I changed the append line in extlinux/extlinux.conf to be: APPEND root=/dev/nfs rw nfsroot=192.168.0.1:/nfs,nfsvers=3,tcp ip=192.168.0.100:::::usb0 g_ether.dev_addr=f8:dc:7a:00:00:02 g_ether.host_addr=f8:dc:7a:00:00:01 rootwait rw console=${console},${baudrate}
. Then I used this commands: nmcli con add type ethernet ifname enxf8dc7a000001 ip4 192.168.0.1/24
, sudo apt install nfs-kernel-server
, sudo mkdir -m 777 /nfs
. I added this line in /etc/exports file: /nfs *(rw,sync,no_root_squash,subtree_check)
. Then this command: sudo exportfs -r
. I added the Dropbear SSH server to the list of enabled packages and built it with bitbake. Then I used this command: sudo tar xpf $BUILDDIR/tmp/deploy/images/beaglebone/core-image-minimal-beaglebone.tar.xz -C /nfs
and booted the board. But I got these Error messages at the end of booting:
[ 2.947609] tilcdc 4830e000.lcdc: [drm] Cannot find any crtc or sizes[ 2.956467] tilcdc 4830e000.lcdc: [drm] Cannot find any crtc or sizes[ 15.445955] ALSA device list:[ 15.448983] No soundcards found.[ 111.206612] VFS: Unable to mount root fs via NFS.[ 111.211530] devtmpfs: mounted[ 111.219670] Freeing unused kernel memory: 1024K[ 111.237878] Run /sbin/init as init process[ 111.243712] Run /etc/init as init process[ 111.248039] Run /bin/init as init process[ 111.252217] Run /bin/sh as init process[ 111.256718] Kernel panic - not syncing: No working init found. Try passing init= option to kernel. See Linux Documentation/admin-guide/init.rst for guidance.[ 111.270976] ---[ end Kernel panic - not syncing: No working init found. Try passing init= option to kernel. See Linux Documentation/admin-guide/init.rst for guidance. ]---
I have been trying everything on Internet to make it work for days but I failed. I have no idea what to do.