How to use the USB-Ethernet-Gadget for NFS-Boot?

cancel
Showing results for 
Search instead for 
Did you mean: 

How to use the USB-Ethernet-Gadget for NFS-Boot?

1,412 Views
benjaminp
Contributor I

Hey all,

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.

Best regards

Benjamin

Labels (3)
0 Kudos
4 Replies

420 Views
benjaminp
Contributor I

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?

0 Kudos

420 Views
b45499
NXP TechSupport
NXP TechSupport

About the NFS boot you can refer to https://community.nxp.com/docs/DOC-103717 .

0 Kudos

420 Views
benjaminp
Contributor I

Hi Rita,

following the requested information.
We use following versions:

yocto-project: morty

u-boot: u-boot-imx, with port to our hardware

linux: linux-fslc-imx, with our own defconfig and device-tree

Best regards

Benjamin

0 Kudos

420 Views
b45499
NXP TechSupport
NXP TechSupport

Hi Benjamin,

Which version of BSP are you using?

Have a nice day

Rita

0 Kudos