Beaglebone Black : miss mii.ko and usbnet.ko so no USB to ethernet converter work !

311 views
Skip to first unread message

lodam...@gmail.com

unread,
Sep 9, 2015, 8:02:35 PM9/9/15
to BeagleBoard
Hi guys ! 

I need  a second ethernet interface on my BBB ....  so I am using an asix usb to ethernet converter....

On my linux desktop I discovered that mii and usbnet modules access to the module asix ( lsmod ), but these modules miss from my BBB debian image ! 

so ifconfig don't recognize a second ethernet interface .... I think this is the reason cause it doesn't work 

I just set the interfaces file and "lsusb" command recognize the USB to ethernet converter.

Could you tell me where I can find an image with mii.ko and usbnet.ko modules ?

Or Could you tell me how to build these modules correctly ? 

I tried to build mii.ko and usbnet.ko but they don't work 

Thanks a lot guys ! 

Matt


William Hermans

unread,
Sep 9, 2015, 8:11:15 PM9/9/15
to beagl...@googlegroups.com
First off, you should probably tell us what you have running for Linux on your beaglebone black. Debian ? Is it custom, and if so where did it come from ?

Passed that, usbnet is probably on your system.

william@xanbustester:~/can-dev/can-web$ sudo find / -name usbnet.ko
[sudo] password for william:
/lib/modules/4.2.0-rc4-bone2/kernel/drivers/net/usb/usbnet.ko

As is mii . . .

william@xanbustester:~/can-dev/can-web$ sudo find / -name mii.ko
/lib/modules/4.2.0-rc4-bone2/kernel/drivers/net/mii.ko

Anything else ?

--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

lodam...@gmail.com

unread,
Sep 10, 2015, 9:37:12 AM9/10/15
to BeagleBoard, lodam...@gmail.com
Hi William, I have different Linux versions.

 

But it doesn't have mii.ko

2) 3.8.13-bone70  ( Debian Pass: tempwd ) from the beagle website: 

No usbnet.ko , no mii.ko 

I used find command on my pc and I have 3.16.0-48-generic ubuntu which has both modules

So could you tell me where did you download your image ? Thanks a lot

Matt







Robert Nelson

unread,
Sep 10, 2015, 9:38:52 AM9/10/15
to Beagle Board, lodam...@gmail.com
On Thu, Sep 10, 2015 at 6:03 AM, <lodam...@gmail.com> wrote:
> Hi William, I have different Linux versions.
>
> 1) 3.14.4.1-bone-armhf.com
>
> /lib/modules/3.14.4.1-bone-armhf.com/kernel/drivers/net/usb/usbnet.ko
>
> But it doesn't have mii.ko
>
> 2) 3.8.13-bone70 ( Debian Pass: tempwd ) from the beagle website:
>
> No usbnet.ko , no mii.ko

These are "built-in" with 3.8.13-bone70 as nfs root is very common..

Regards,

--
Robert Nelson
https://rcn-ee.com/

William Hermans

unread,
Sep 10, 2015, 10:56:40 AM9/10/15
to beagl...@googlegroups.com
Download and use, whichever official image you like. Those armhf.com images are not official.

Matteo Loda

unread,
Sep 10, 2015, 4:10:53 PM9/10/15
to beagl...@googlegroups.com

Hi William

"2) 3.8.13-bone70  ( Debian Pass: tempwd ) from the beagle website"

This one is the latest official image I found,I downloaded it from the debian image link in the official website. In this one I didn't find mii.ko , only usbnet.ko.

I could try other images.... but I have no idea if they have these modules

I suppose I must compile another kernel like yours.

I tried another official debian image, 4.1 kernel... but no modules....

Anyway thank you guys for your support.

I will appreciate any suggestions

Thanks a lot again

Regards

Matt

You received this message because you are subscribed to a topic in the Google Groups "BeagleBoard" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/beagleboard/ZLwor6m0KGQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to beagleboard...@googlegroups.com.

Robert Nelson

unread,
Sep 10, 2015, 4:17:08 PM9/10/15
to Beagle Board
On Thu, Sep 10, 2015 at 2:10 PM, Matteo Loda <lodam...@gmail.com> wrote:
> Hi William
>
> "2) 3.8.13-bone70 ( Debian Pass: tempwd ) from the beagle website"
>
> This one is the latest official image I found,I downloaded it from the
> debian image link in the official website. In this one I didn't find mii.ko
> , only usbnet.ko.

mii.ko is 'built-in' for nfs root...

> I could try other images.... but I have no idea if they have these modules
>
> I suppose I must compile another kernel like yours.
>
> I tried another official debian image, 4.1 kernel... but no modules....
>
> Anyway thank you guys for your support.
>
> I will appreciate any suggestions

What's the actual issue?

Matteo Loda

unread,
Sep 11, 2015, 9:17:02 AM9/11/15
to beagl...@googlegroups.com
Sorry Robert , maybe I don't understand. 

You told me I must install nfs on my Beaglebone. ( nfs = network file system isnt't it ? ) . 
 If this is the only way to have mii.ko I will do it. 

I thought there was a "ready to use " beaglebone image with mii.ko

If the answer is no I will install nfs like you suggested. 

I quick looked in the web and lots of guides lead to your name hehe ^^

Thanks again !

Regards

Matt



--
For more options, visit http://beagleboard.org/discuss
---

Robert Nelson

unread,
Sep 11, 2015, 9:42:53 AM9/11/15
to Beagle Board
On Fri, Sep 11, 2015 at 5:31 AM, Matteo Loda <lodam...@gmail.com> wrote:
> Sorry Robert , maybe I don't understand.
>
> You told me I must install nfs on my Beaglebone. ( nfs = network file system
> isnt't it ? ) .
> If this is the only way to have mii.ko I will do it.

No that's not what i said..

I said "mii.ko" is "built-in" for "nfs" "users"... Therefore your not
going to find the "mii.ko" module when you search /lib/modules/

>
> I thought there was a "ready to use " beaglebone image with mii.ko
>
> If the answer is no I will install nfs like you suggested.
>
> I quick looked in the web and lots of guides lead to your name hehe ^^

Since "mii.ko" is built-in, there is nothing stopping you from using it...

Matteo Loda

unread,
Sep 11, 2015, 11:20:17 AM9/11/15
to beagl...@googlegroups.com
A ok Robert, now I understand what you mean.

So why the USB to Ethernet adapter doesn't work ? 

debian@beaglebone:~$ uname -r
3.8.13-bone47

debian@beaglebone:~$ lsusb
Bus 001 Device 002: ID 0b95:7720 ASIX Electronics Corp. AX88772

debian@beaglebone:~$ lsmod
Module                  Size  Used by
g_multi                47670  2 
libcomposite           14299  1 g_multi
asix                   35075  0 
mt7601Usta            601404  0 

ifconfig don't show eth1 ..... which is defined in /etc/network/interfaces:

# The primary network interface
auto eth0
iface eth0 inet static
        address 192.168.1.71
        netmask 255.255.255.0
        gateway 0.0.0.0

auto eth1
iface eth1 inet static
        address 192.168.1.88
        netmask 255.255.255.0
        gateway 0.0.0.0

iface usb0 inet static
    address 192.168.7.2
    netmask 255.255.255.0
    network 192.168.7.0
    gateway 192.168.7.1

debian@beaglebone:/etc/network$ sudo ifup eth1
Cannot find device "eth1"
Failed to bring up eth1.

The ifconfig commadn doesn't show eth1 .

In my ubuntu desktop I got both modules mii.ko and usbnet.ko and this USB to Ethernet adapter works .. so I asked you where to find these modules ...

Thanks a lot Robert

Regards

Matt





Robert Nelson

unread,
Sep 11, 2015, 11:31:40 AM9/11/15
to Beagle Board
i bet it says "rename0"

sudo ifconfig -a

I fixed that a while ago, but if your still running the 2014.05 (cat
/etc/dogtag) then that's why..

Matteo Loda

unread,
Sep 11, 2015, 2:44:22 PM9/11/15
to beagl...@googlegroups.com

So fast Robert :)

I will be back on the BBB in 2 days.

I will check this as soon as possible and I'll tell you what's going on.

Regards

Matt

Matteo Loda

unread,
Sep 15, 2015, 9:39:50 AM9/15/15
to beagl...@googlegroups.com
Hi Robert, This is what happened:

1) Debian in the SD card:

TERMINAL:

debian@beaglebone:/etc$ cat dogtag
BeagleBoard.org Debian Image 2015-03-01


debian@beaglebone:~$ ifconfig -a
eth0      Link encap:Ethernet  HWaddr d0:39:72:54:05:e4  
          inet addr:10.22.189.89  Bcast:10.22.255.255  Mask:255.255.0.0
          inet6 addr: fe80::d239:72ff:fe54:5e4/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2502 errors:0 dropped:0 overruns:0 frame:0
          TX packets:195 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:264416 (258.2 KiB)  TX bytes:22276 (21.7 KiB)
          Interrupt:40 

eth2      Link encap:Ethernet  HWaddr 00:50:b6:63:39:02  
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

usb0      Link encap:Ethernet  HWaddr 76:21:05:26:66:13  
          inet addr:192.168.7.2  Bcast:192.168.7.3  Mask:255.255.255.252
          inet6 addr: fe80::7421:5ff:fe26:6613/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:144 errors:0 dropped:0 overruns:0 frame:0
          TX packets:116 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:20261 (19.7 KiB)  TX bytes:25466 (24.8 KiB)

I defined eth1 in interfaces , not eth2 . The MAC 00:50:b6:63:39:02 is that of the USB to Ethernet Adapter.


2) Debian eMCC

TERMINAL

debian@beaglebone:~$ uname -r            
4.1.6-ti-r14
debian@beaglebone:~$ uname -a
Linux beaglebone 4.1.6-ti-r14 #1 SMP PREEMPT Thu Sep 3 20:56:12 UTC 2015 armv7l GNU/Linux

debian@beaglebone:~$ sudo ifconfig
eth0      Link encap:Ethernet  HWaddr d0:39:72:54:05:e4  
          inet addr:10.22.189.89  Bcast:10.22.255.255  Mask:255.255.0.0
          inet6 addr: fe80::d239:72ff:fe54:5e4/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:3268 errors:0 dropped:0 overruns:0 frame:0
          TX packets:219 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:289954 (283.1 KiB)  TX bytes:30615 (29.8 KiB)
          Interrupt:170 

eth1      Link encap:Ethernet  HWaddr 00:50:b6:63:39:02  
          inet addr:10.22.189.41  Bcast:10.22.255.255  Mask:255.255.0.0
          inet6 addr: fe80::250:b6ff:fe63:3902/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:3327 errors:0 dropped:5 overruns:0 frame:0
          TX packets:59 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:241860 (236.1 KiB)  TX bytes:6258 (6.1 KiB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

usb0      Link encap:Ethernet  HWaddr d0:39:72:54:05:e0  
          inet addr:192.168.7.2  Bcast:192.168.7.3  Mask:255.255.255.252
          inet6 addr: fe80::d239:72ff:fe54:5e0/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:94 errors:0 dropped:0 overruns:0 frame:0
          TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:18258 (17.8 KiB)  TX bytes:1050 (1.0 KiB)

It's working in this test version ! :)  I get both images from the official site 

How could I fix BeagleBoard.org Debian Image 2015-03-01  ? 

Regards

Matt

Robert Nelson

unread,
Sep 15, 2015, 10:23:25 AM9/15/15
to Beagle Board

That's just udev persistent network names. Look under /etc/udev/rules...

You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.

Matteo Loda

unread,
Oct 18, 2015, 8:49:19 PM10/18/15
to beagl...@googlegroups.com
Bingo Robert !

Sorry for time I took but I was very busy .... the problem was exactly the udev/rules .... the system recognized the asix mac address  but assigned him the eth2 interface .... the eth1 was assigned to another asix mac address, not the mine. I changed the assignement and now everything works.

So Robert .... I can only say " thank you  " :)

Now I am fighting with xenomai kernel ... compile ok , install ok but I have boot trouble... 

Maybe I will open another topic about this 

Thanks again

Matt


Reply all
Reply to author
Forward
0 new messages