zinka
Posts: 11
Joined: Thu Jan 31, 2013 1:57 pm

Dlink DUB-E100 don't work

Thu Jan 31, 2013 2:30 pm

Hi

I want to connect a 2nd LAN interface to the raspberrypi, and I try to use a DLink DUB-E100 which should work "out of the box".
So I expected a 2nd interface (eth1) by typing ifconfig -a.
But I can see eth0 only.
  • # uname -a
    Linux raspberrypi 3.2.27+ #250 PREEMPT Thu Oct 18 19:03:02 BST 2012 armv6l GNU/Linux

    # cat /etc/*release
    PRETTY_NAME="Debian GNU/Linux 7.0 (wheezy)"
    NAME="Debian GNU/Linux"
    VERSION_ID="7.0"
    VERSION="7.0 (wheezy)"
    ID=debian
the USB-device is shown in /var/log/message
  • Jan 31 15:20:59 raspberrypi kernel: [ 513.059293] usb 1-1.3.4: new high-speed USB device number 8 using dwc_otg
    Jan 31 15:20:59 raspberrypi kernel: [ 513.172454] usb 1-1.3.4: New USB device found, idVendor=2001, idProduct=1a02
    Jan 31 15:20:59 raspberrypi kernel: [ 513.172484] usb 1-1.3.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
    Jan 31 15:20:59 raspberrypi kernel: [ 513.172501] usb 1-1.3.4: Product: DUB-E100
    Jan 31 15:20:59 raspberrypi kernel: [ 513.172513] usb 1-1.3.4: Manufacturer: D-Link
    Jan 31 15:20:59 raspberrypi kernel: [ 513.172525] usb 1-1.3.4: SerialNumber: D72EB3
Can anybody give me a hint; how to start, or even test, the Interface?

drgeoff
Posts: 9748
Joined: Wed Jan 25, 2012 6:39 pm

Re: Dlink DUB-E100 don't work

Thu Jan 31, 2013 4:00 pm

Maybe needs a "driver" loaded. What does the "lsmod" command return?

zinka
Posts: 11
Joined: Thu Jan 31, 2013 1:57 pm

Re: Dlink DUB-E100 don't work

Thu Jan 31, 2013 4:32 pm

The DUB-E100 should work "out of the box".
this are the loded modules

Code: Select all

# lsmod
Module                  Size  Used by
snd_bcm2835            12808  0
snd_pcm                74834  1 snd_bcm2835
snd_seq                52536  0
snd_timer              19698  2 snd_seq,snd_pcm
snd_seq_device          6300  1 snd_seq
snd                    52489  5 snd_seq_device,snd_timer,snd_seq,snd_pcm,snd_bcm2835
snd_page_alloc          4951  1 snd_pcm
evdev                   8682  0
also #/modprobe usbnet don't work.

Spid
Posts: 525
Joined: Sat Jan 19, 2013 12:47 pm

Re: Dlink DUB-E100 don't work

Thu Jan 31, 2013 4:40 pm

Please can you post output of, thanks

lsusb

ifconfig

My Davicom USB to Ethernet in lsmod is is shown as

dm9601 13258 0
usbnet 25170 1 dm9601
I will always assume you are running Raspbian for desktop and Raspbmc for XMBC !

zinka
Posts: 11
Joined: Thu Jan 31, 2013 1:57 pm

Re: Dlink DUB-E100 don't work

Fri Feb 01, 2013 6:10 am

Code: Select all

/# lsmod
Module                  Size  Used by
snd_bcm2835            12808  0
snd_pcm                74834  1 snd_bcm2835
snd_seq                52536  0
snd_timer              19698  2 snd_seq,snd_pcm
snd_seq_device          6300  1 snd_seq
snd                    52489  5 snd_seq_device,snd_timer,snd_seq,snd_pcm,snd_bcm2835
snd_page_alloc          4951  1 snd_pcm
evdev                   8682  0
/# lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 0424:9512 Standard Microsystems Corp.
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp.
Bus 001 Device 004: ID 1a40:0101 Terminus Technology Inc. 4-Port HUB
Bus 001 Device 005: ID 1a40:0101 Terminus Technology Inc. 4-Port HUB
Bus 001 Device 008: ID 2001:1a02 D-Link Corp.
[email protected]:/#
/# ifconfig -a
eth0      Link encap:Ethernet  HWaddr b8:27:eb:b3:bb:38
          inet addr:10.16.170.6  Bcast:10.16.170.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:732 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1191 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:53787 (52.5 KiB)  TX bytes:838125 (818.4 KiB)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  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)
loading usbnet don't work, but ends with errorcode " 0 ". And no additional interface ( eth1 ) is shown; as discrubte in other diskussions.
I think I need to load the right driver ;-)

Spid
Posts: 525
Joined: Sat Jan 19, 2013 12:47 pm

Re: Dlink DUB-E100 don't work

Fri Feb 01, 2013 8:05 am

Only revision B & C are Linux Supported:

Rev B http://www.dlink.com/us/en/support/prod ... on=us_revb

Rev C http://www.dlink.com/us/en/support/prod ... on=us_revc

Also see this it is supposed to be supported, is Raspbian totally up-to-date ? http://www.linux-usb.org/devices.html
I will always assume you are running Raspbian for desktop and Raspbmc for XMBC !

zinka
Posts: 11
Joined: Thu Jan 31, 2013 1:57 pm

Re: Dlink DUB-E100 don't work

Fri Feb 01, 2013 8:51 pm

my DUB-E100 is HW-Rev C1
-> driver downloaded - compiled and loaded ( icluded in /etc/modules ) - but still the same.
no eth1 visible....
I'm using Debian wheezy (3.2.27+); and apdated with apt-get [update|upgrade] - in this case it is actually with all patches.
I will try raspbian-image tomorrow.

Code: Select all

# lsmod
Module                  Size  Used by
asix                   13617  0
snd_bcm2835            12808  0
snd_pcm                74834  1 snd_bcm2835
snd_seq                52536  0
snd_timer              19698  2 snd_seq,snd_pcm
snd_seq_device          6300  1 snd_seq
snd                    52489  5 snd_seq_device,snd_timer,snd_seq,snd_pcm,snd_bcm2835
snd_page_alloc          4951  1 snd_pcm
evdev                   8682  0
# lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 0424:9512 Standard Microsystems Corp.
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp.
Bus 001 Device 004: ID 1a40:0101 Terminus Technology Inc. 4-Port HUB
Bus 001 Device 005: ID 1a40:0101 Terminus Technology Inc. 4-Port HUB
Bus 001 Device 007: ID 2001:1a02 D-Link Corp.
any idea

Cloudcentric
Posts: 982
Joined: Fri Sep 14, 2012 9:13 am

Re: Dlink DUB-E100 don't work

Fri Feb 01, 2013 10:12 pm

TRY:

apt-get update
apt-get dist-upgrade
sync
reboot
I know everything about nothing"

zinka
Posts: 11
Joined: Thu Jan 31, 2013 1:57 pm

Re: Dlink DUB-E100 don't work

Sat Feb 02, 2013 12:59 pm

@ Cloudcentric
-> this will not work - it's still the stabel release of Debian. I've tried a dist-update and it had done no changes.

any other suggestions?

Spid
Posts: 525
Joined: Sat Jan 19, 2013 12:47 pm

Re: Dlink DUB-E100 don't work

Sat Feb 02, 2013 1:01 pm

zinka wrote:@ Cloudcentric
-> this will not work - it's still the stabel release of Debian. I've tried a dist-update and it had done no changes.

any other suggestions?
I was talking about Raspbian “wheezy” distribution................................
I will always assume you are running Raspbian for desktop and Raspbmc for XMBC !

zinka
Posts: 11
Joined: Thu Jan 31, 2013 1:57 pm

Re: Dlink DUB-E100 don't work

Sun Feb 03, 2013 10:07 am

Yes - "Raspbian wheezy” is UpToDate.
This was the first action after raspi-config.

zinka
Posts: 11
Joined: Thu Jan 31, 2013 1:57 pm

Re: Dlink DUB-E100 don't work

Sun Feb 03, 2013 11:29 am

I have just done some teste after I found a related problem.

first I added the VendorID and ProductID to "/sys/bus/usb/drivers/asix/new_id" with :
  • echo 'install asix modprobe --ignore-install asix ; /bin/echo "2001 1a0" > /sys/bus/usb/drivers/asix/new_id'
and created a udev rule.
After this the drives is loaded during the startup.
But with the same result.
udevadm shows the adding and removing from the device

# udevadm monitor --kernel
monitor will print the received events for:
KERNEL - the kernel uevent

KERNEL[2764.422798] remove /devices/platform/bcm2708_usb/usb1/1-1/1-1.3/1-1.3.1/1-1.3.1.3/1-1.3.1.3:1.0 (usb)
KERNEL[2764.427319] remove /devices/platform/bcm2708_usb/usb1/1-1/1-1.3/1-1.3.1/1-1.3.1.3/usb_device/usbdev1.11 (usb_device)
KERNEL[2764.429041] remove /devices/platform/bcm2708_usb/usb1/1-1/1-1.3/1-1.3.1/1-1.3.1.3 (usb)


KERNEL[2764.429041] add /devices/platform/bcm2708_usb/usb1/1-1/1-1.3/1-1.3.1/1-1.3.1.3 (usb)
KERNEL[2764.427319] add /devices/platform/bcm2708_usb/usb1/1-1/1-1.3/1-1.3.1/1-1.3.1.3/usb_device/usbdev1.11 (usb_device)
KERNEL[2764.422798] add /devices/platform/bcm2708_usb/usb1/1-1/1-1.3/1-1.3.1/1-1.3.1.3/1-1.3.1.3:1.0 (usb)

zinka
Posts: 11
Joined: Thu Jan 31, 2013 1:57 pm

Re: Dlink DUB-E100 don't work

Sun Feb 03, 2013 11:30 am

I think this is a kernel problem - could this be an option to build a new one?

zinka
Posts: 11
Joined: Thu Jan 31, 2013 1:57 pm

Re: Dlink DUB-E100 don't work

Wed Feb 06, 2013 4:32 pm

I've got the Problem:
Modinfo shows as supported Hardware
  • alias: usb:v2001p3C05d*dc*dsc*dp*ic*isc*ip*
lsusb shows
  • Bus 001 Device 009: ID 2001:1a02 D-Link Corp.
The Produkt ID dose not match.
OK - building a new driver using the sources from DLink. but this will even not work, because the rule.make File is missing. in the Makefile

Code: Select all

CURRENT = $(shell uname -r)
TARGET  = asix
OBJS    = asix.o
MDIR    = drivers/net/usb
KDIR    = /lib/modules/$(CURRENT)/build
SUBLEVEL= $(shell uname -r | cut -d '.' -f 3 | cut -d '.' -f 1 | cut -d '-' -f 1 | cut -d '_' -f 1)

ifneq (,$(filter $(SUBLEVEL),14 15 16 17 18 19 20 21))
MDIR = drivers/usb/net
endif

EXTRA_CFLAGS = -DEXPORT_SYMTAB
PWD = $(shell pwd)
DEST = /lib/modules/$(CURRENT)/kernel/$(MDIR)

obj-m      := $(TARGET).o

default:
        make -C $(KDIR) SUBDIRS=$(PWD) modules

$(TARGET).o: $(OBJS)
        $(LD) $(LD_RFLAG) -r -o [email protected] $(OBJS)

install:
        su -c "cp -v $(TARGET).ko $(DEST) && /sbin/depmod -a"

clean:
        $(MAKE) -C $(KDIR) SUBDIRS=$(PWD) clean

.PHONY: modules clean

[b]-include $(KDIR)/Rules.make[/b]
  • #:/lib/modules/3.2.27+/build# make
    make -C /lib/modules/3.2.27+/build SUBDIRS=/lib/modules/3.2.27+/build modules
    make[1]: Entering directory `/lib/modules/3.2.27+/build'
    make[1]: Nothing to be done for `modules'.
    make[1]: Leaving directory `/lib/modules/3.2.27+/build'
    #:/lib/modules/3.2.27+/build# cat Makefile
I'll try to get some help from DLink - or use another adapter....... let's see what happens

Drubih
Posts: 3
Joined: Thu Dec 20, 2012 11:34 pm

Re: Dlink DUB-E100 don't work

Mon Feb 18, 2013 6:17 pm

Good evening,

I've got mine to work ;)
I've bought two D-Link DUB-E100's Rev C (probably for the same reason; works out of the box, just what I needed) with the intention to replace my "bridge" machine (FreeBSD with 3 ethernet cards, 1 for administration from LAN, 2 unnumbered for transparent bridging and applying filter rules).

Ran into the same issue; at startup (/var/log/messages) they're seen, lsusb sees them but nothing works, nothing active :(

I'm using the Rasberry Model B (512Mb) with 2012-12-16-wheezy-raspbian.img

- apt-get install bridge-utils
- apt-get update
- apt-get dist-upgrade
- sync;sync;shutdown -r now

(after reboot)

- modprobe usbnet
- modprobe asix

and taaaa daaaaaa ... Both D-Link's lit up :)


[email protected]:/# ifconfig
eth0 Link encap:Ethernet HWaddr b8:27:eb:4a:0d:6d
inet addr:********* Bcast:********* Mask:255.255.255.128
inet6 addr: fe80::ba27:ebff:fe4a:d6d/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:385125 errors:0 dropped:0 overruns:0 frame:0
TX packets:16686 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:32581427 (31.0 MiB) TX bytes:2291276 (2.1 MiB)

eth1 Link encap:Ethernet HWaddr bc:f6:85:d7:2f:95
inet6 addr: fe80::bef6:85ff:fed7:2f95/64 Scope:Link
UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1
RX packets:1005106 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:199942435 (190.6 MiB) TX bytes:527191710 (502.7 MiB)

eth2 Link encap:Ethernet HWaddr bc:f6:85:d7:2f:91
inet6 addr: fe80::bef6:85ff:fed7:2f91/64 Scope:Link
UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1
RX packets:801981 errors:2760 dropped:0 overruns:0 frame:85
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:514747283 (490.9 MiB) TX bytes:209440618 (199.7 MiB)

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:16436 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)

mybridge Link encap:Ethernet HWaddr bc:f6:85:d7:2f:91
inet6 addr: fe80::bef6:85ff:fed7:2f91/64 Scope:Link
UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1
RX packets:1806536 errors:0 dropped:0 overruns:0 frame:0
TX packets:56 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:712592535 (679.5 MiB) TX bytes:2568 (2.5 KiB)



[email protected]:/# lsusb
Bus 001 Device 002: ID 0424:9512 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp.
Bus 001 Device 004: ID 2001:1a02 D-Link Corp.
Bus 001 Device 005: ID 2001:1a02 D-Link Corp.



However, in complete contradiction what I've read left and right, I did not use a powered USB hub; they're both directly connected to an onboard USB port each and they work.

(using remotly by ssh, no keyboard/console)

Then I've made a small batch (ran at boot) :

#!/bin/bash
# Load asix driver
modprobe asix

brctl addbr mybridge
brctl addif mybridge eth1
brctl addif mybridge eth2
ifconfig eth1 0.0.0.0 promisc up
ifconfig eth2 0.0.0.0 promisc up
echo 1 > /proc/sys/net/ipv4/ip_forward
brctl stp mybridge off
ifconfig mybridge promisc up

sleep 1

iptables --flush

... iptables default policies and rules here ....



I did notice on the D-Link website that they did publish a new Linux driver for the DUB-E100 but I didn't need/use it, the standard (recent) asix will do.

Drubih
Posts: 3
Joined: Thu Dec 20, 2012 11:34 pm

Re: Dlink DUB-E100 don't work

Mon Feb 18, 2013 7:02 pm

Edit (just too late, couldn't edit my post anymore)

- apt-get install bridge-utils
- apt-get update
- apt-get dist-upgrade
- apt-get dist-upgrade --fix-missing <-- had to put this somewhere also
- sync;sync;shutdown -r now

zinka
Posts: 11
Joined: Thu Jan 31, 2013 1:57 pm

Re: Dlink DUB-E100 don't work

Tue Feb 19, 2013 5:58 pm

I've made some tests, and now I've got it.

-using 2012-08-08-wheezy-armel -> made an update/upgrade to the latest version -> DUB still don't work :-(
-using 2012-12-16-wheezy-raspbian -> after a apt-get update/upgrade -> DUB works
-using the latest version 2013-02-09-wheezy-raspbian -> DUB works out of the box.

I use the Wheezy-raspbian on my device.

THX to all. Problem solved. ;)

Return to “Troubleshooting”