The Elektor Forum will close. See also this link. From Friday March 1st it is no longer possible to log in to the forum. However, the content of the forum will remain visible until the end of March. As of April 1st the forum will definitely go off the air.

Problems to get Embedded Linux to network.

The topic on number crunching

Postby matias-t » Thu Jan 31, 2013 12:00 am

I have a D-link adapter, Dub-E100 H/W Ver C1, that black one, the "smaller" model. Linux does not find port Eth0. There is only loopback address. I think, I have done, as Benedict wrote in his article. I have compiled asix drivers and modules and zImage again . cat / proc devices command does not show any new device. What to do? Could someone advise me step by step, I'm not very familiar with linux


root@gnublin:~#
usb 1-1: new high speed USB device using lpc-ehci and address 3
usb 1-1: New USB device found, idVendor=2001, idProduct=1a02
usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 1-1: Product: DUB-E100
usb 1-1: Manufacturer: D-Link
usb 1-1: SerialNumber: D7545D
root@gnublin:~#
root@gnublin:~# lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 2001:1a02 D-Link Corp. [hex]
root@gnublin:~#
root@gnublin:~#

matias-t
matias-t
 
Posts: 9
Joined: Thu Jan 02, 2014 10:43 am

Postby ag » Fri Feb 01, 2013 12:00 am

Hi matias-t,

The article series was targeted at linux novices, so you are OK here. I too am a linux novice. To me, it looks like the device is up and available. I assume you have tried "ifup eth0". Could you post the content of your /etc/network/interfaces file, in particular, the section for eth0? That might reveal something.

Also, it might help if you could post the results when entering "modprobe asix".

For a step by step, try this link:

http://en.gnublin.org/index.php/LAN

Regards,
Ag
Ag
ag
 
Posts: 533
Joined: Thu Jan 02, 2014 10:37 am

Postby matias-t » Fri Feb 01, 2013 12:00 am

Hi Ag!

Here is some commands, that I entered:

root@gnublin:/lib/modules/2.6.33/kernel/drivers/net/usb# modprobe asix
usbcore: registered new interface driver asix

root@gnublin:/# ifup eth0
ifup: interface eth0 already configured

root@gnublin:/lib/modules/2.6.33/kernel/drivers/net/usb# ifconfig
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)

root@gnublin:/# cat /etc/network/interfaces
# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)

# The loopback interface
auto lo
iface lo inet loopback

# Wireless interfaces
iface wlan0 inet dhcp
wireless_mode managed
wireless_essid any
wpa-driver wext
wpa-conf /etc/wpa_supplicant.conf

iface atml0 inet dhcp

# Wired or wireless interfaces
# iface eth0 inet dhcp
# iface eth1 inet dhcp

# Ethernet/RNDIS gadget (g_ether)
# ... or on host side, usbnet and random hwaddr
iface usb0 inet static
address 192.168.7.2
netmask 255.255.255.0
network 192.168.7.0
gateway 192.168.7.1

# Bluetooth networking
iface bnep0 inet dhcp

# Intranet Hochschule Augsburg
auto eth0
# allow-hotplug eth0
iface eth0 inet static
address 141.82.48.197
netmask 255.255.240.0
network 141.82.48.0
broadcast 141.82.63.255
gateway 141.82.63.1
dns-nameservers 141.82.16.200
dns-search informatik.fh-augsburg.de

root@gnublin:/#

It might be something really simply, but I do not understand what!

matias-t
matias-t
 
Posts: 9
Joined: Thu Jan 02, 2014 10:43 am

Postby ag » Fri Feb 01, 2013 12:00 am

Hi matias-t,

try ifdown eth0, then ifup eth0, and post the result of the ifup.

Regards,
Ag
Ag
ag
 
Posts: 533
Joined: Thu Jan 02, 2014 10:37 am

Postby matias-t » Fri Feb 01, 2013 12:00 am

Hi Ag,

root@gnublin:/# ifdown eth0
ifconfig: SIOCGIFFLAGS: No such device

root@gnublin:/# ifup eth0
ifconfig: SIOCGIFFLAGS: No such device
ifconfig: SIOCSIFADDR: No such device
route: SIOCADDRT: No such device

When Benidikt give his command "modprobe asix", the operatin system said:
eth0: register 'asix' at usb-lpc-ehci.....
usbcore: register new interface driver asix

I think, thats my problem. My system says only:
root@gnublin:~# modprobe asix
usbcore: registered new interface driver asix

Is it driver broblem?

matias-t
matias-t
 
Posts: 9
Joined: Thu Jan 02, 2014 10:43 am

Postby ag » Sat Feb 02, 2013 12:00 am

Hi matias-t,

yeah, it does look like a driver problem to me. I'm afraid I'm just stabbing around, but I would try dmesg | grep asix and see if any errors are listed.

I read in the german language forum that the asix module also requires the USB_USBNET module to be loaded. Did you load that module in your kernel configuration?

I don't think I can be of much more help. Somebody with better linux experience will have to jump in and help.

Regards,
Ag
Ag
ag
 
Posts: 533
Joined: Thu Jan 02, 2014 10:37 am

Postby ag » Sun Feb 03, 2013 12:00 am

Hi matias-t,

Since no other help has come up yet, I'll give it another try.

What do you see after entering the following:

lsmod

That should display all loaded modules. Can you list the results here?

Regards,
Ag
Ag
ag
 
Posts: 533
Joined: Thu Jan 02, 2014 10:37 am

Postby ag » Sun Feb 03, 2013 12:00 am

Hi matias-t,

I think I have found the cause of your problem. I checked in my asix.c file and see that your product id (1a02) is not listed.

root@gnublin:~#
usb 1-1: new high speed USB device using lpc-ehci and address 3
usb 1-1: New USB device found, idVendor=2001, idProduct=1a02
usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 1-1: Product: DUB-E100


Instead, the file (./drivers/net/usb/asix.c in your toolchain path)shows product id 1a00. You need to edit your asix.c file (nano asix.c, then ctrlW to find 1a00) in your toolchain system, replacing the 1a00 with 1a02, then recompile with

make modules

and finally copy the newly compiled asix.ko file to the SD card. After that, your network adapter should work.

I had a similar problem with my dm9601 network adapter, and this procedure fixed it.

Try it and let me know the results.

Regards,
Ag
Ag
ag
 
Posts: 533
Joined: Thu Jan 02, 2014 10:37 am

Postby matias-t » Sun Feb 03, 2013 12:00 am

Thanks a lot for your advice Ag! I wonder, does anyone else have come across this problem. I have not found yet solution.

But what did you mean with id? That is 1A02, isnt it? I think, I already modified that asix.c -file earlier. But that did not solve my broblem.

gnublin root @: ~ # usb 1-1: new high speed USB device using lpc-EHCI and address 4
usb 1-1: New USB device found, idVendor = 2001, idProduct = 1A02
usb 1-1: New USB device strings: Mfr = 1, Product = 2, SerialNumber = 3
usb 1-1: Product: DUB-E100
usb 1-1: Manufacturer: D-Link
usb 1-1: Serial Number: D7545D

lsmod says:
root@gnublin:~# lsmod
Module Size Used by
asix 11280 0
usbnet 12409 1 asix
pegasus 16772 0
mii 3416 3 asix,usbnet,pegasus


matias-t
matias-t
 
Posts: 9
Joined: Thu Jan 02, 2014 10:43 am

Postby matias-t » Sun Feb 03, 2013 12:00 am

This is the place in asix.c witch I modified:

3411 // DLink DUB-E100 H/W Ver C1
3412 USB_DEVICE (0x2001, 0x1a02),
3413 .driver_info = (unsigned long) &ax88772_info,

matias-t
matias-t
 
Posts: 9
Joined: Thu Jan 02, 2014 10:43 am

Next

Return to Microcontrollers & Embedded

Who is online

Users browsing this forum: No registered users and 2 guests