Re: [PATCH] ARM: omap2plus_defconfig: add networking over USB device
From: Tony Lindgren
Date: Tue Dec 04 2018 - 16:52:35 EST
Hi,
* Michael Opdenacker <michael.opdenacker@xxxxxxxxxxx> [181204 12:59]:
> This adds support for networking over USB device,
> which allows boards such as the BeagleBoneBlack Wireless and
> Pocket Beagle to boot on an NFS root filesystem. Such boards
> have no Ethernet port.
>
> This is for consistency with CONFIG_ROOT_NFS=y
> which makes no sense if there is no networking.
Hmm well this has few issues though:
1. We've had USB as loadable modules for years now to
cut down on bloat and try to make things more
distro friendly
2. MUSB has never worked well with PM and enabling
it almost certainly would break PM for multiple
devices
3. The USB gadget configuration should be done using
configfs as it's device and policy specific and
Ethernet gadget may not be even desirable
So I suggest just doing what distros do and use a proper
initramfs :)
BTW what works quite nicely for devices with Ethernet
controller is to have u-boot load dtb, kernel and
modules.tar.gz over Ethernet and write it to mmc. That
way the loaded kernel and modules are available on
boot as long as some init script untars modules.tar.gz
first thing when init starts.
Regards,
Tony