we have a custom board, based on the i.MX6SXSABRESD evaluation board. We have two usb ports, one of them is an USB-OTG port. Now we want the kernel to mount the rootfs via nfs, using the USB-OTG port. Maybe someone can give me some advice how to do this.
When the linux system is up, I can create the virtual network interface by typing
"ifconfig usb0 <TARGET IP ADDRESS>"
After configuration of the target, I can create the interface on the host side, by typing
"sudo ifconfig usb0 <HOST IP ADDRESS>"
This shows that the usb port works in principle.
It would be nice if someone can tell me what to do to get the board booted via NFS.
Thanks for the link. Unfortunately the document does not describe how to set up the nfs boot using the usb ethernet gadget. We do not have an ethernet port on our board.
So, is it possible to use the usb ethernet gadget instead of a normal ethernet port for this purpose? If yes, I assume that I have to modify the U-Boot, because the (virtual) network interface must be configured before doing an TFTP boot. Is this correct?
following the requested information.
We use following versions:
u-boot: u-boot-imx, with port to our hardware
linux: linux-fslc-imx, with our own defconfig and device-tree