[U-Boot] can u-boot NFS mount my beaglebone rootfs over USB tether?

Robert P. J. Day rpjday at crashcourse.ca
Sun Jul 21 19:43:10 CEST 2013


On Sun, 21 Jul 2013, Albert ARIBAUD wrote:

> Hi Robert,
>
> On Sun, 21 Jul 2013 08:10:15 -0700 (PDT), "Robert P. J. Day"
> <rpjday at crashcourse.ca> wrote:

> > p.s. just to be clear, when the BBB is up and running, the only
> > active network interface is:
> >
> > usb0      Link encap:Ethernet  HWaddr EA:60:E8:F4:F4:BD
> >           inet addr:192.168.7.2  Bcast:192.168.7.3  Mask:255.255.255.252
> >           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
> >           RX packets:40 errors:0 dropped:0 overruns:0 frame:0
> >           TX packets:23 errors:0 dropped:0 overruns:0 carrier:0
> >           collisions:0 txqueuelen:1000
> >           RX bytes:9579 (9.3 KiB)  TX bytes:7401 (7.2 KiB)
> >
> > so you're suggesting that this requires no further tweaking of u-boot
> > other than setting "nfsroot="?
>
> Yes, I am. More precisely, I am suggesting that the only change in
> u-boot is to pass the rootfs option to the kernel; but you may want
> to make sure your kernel has support (either as a monolithic kernel
> or as a module through a local initrd) for the hardware and network
> features needed.

  that's the one part i'm unsure of and i'll have to look at. right
now, the BBB connects over the network via USB just fine, so all i
need to do is verify that that doesn't require any loadable modules.

  on the BBB, i have this from /proc/config.gz:

CONFIG_USB_NET_RNDIS_HOST=m
CONFIG_USB_NET_RNDIS_WLAN=m
CONFIG_USB_ETH_RNDIS=y
CONFIG_USB_FUNCTIONFS_RNDIS=y
CONFIG_USB_G_MULTI_RNDIS=y

and from lsmod, the only apparently related module is "g_multi":

g_multi                55905  2
libcomposite           15228  1 g_multi

but i don't know anything about that module. so first guess is that
the kernel on the BBB might have everything it needs, unless someone
who knows way more about RNDIS than i do can spot a flaw.

  will test all this shortly, thanks for your help.

rday

-- 

========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================



More information about the U-Boot mailing list