maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N900 (https://talk.maemo.org/forumdisplay.php?f=44)
-   -   Usb NIC problem (https://talk.maemo.org/showthread.php?t=66667)

hardkorek 2010-12-06 22:40

Usb NIC problem
 
1 Attachment(s)
Hi,

I bought cheap no-name card on auction and I'm trying to make it work with N900 using h-e-n full speed hostmode. Card seems to be reconized but no interface is created.

Here is dmesg output:
Code:

[15315.749542] twl4030_usb twl4030_usb: HW_CONDITIONS 0xd0/208; link 2
[15321.371368] usb usb1: usb resume
[15321.390014] hub 1-0:1.0: hub_resume
[15321.390075] hub 1-0:1.0: port 1: status 0101 change 0001
[15321.499511] hub 1-0:1.0: state 7 ports 1 chg 0002 evt 0000
[15321.499572] hub 1-0:1.0: port 1, status 0101, change 0000, 12 Mb/s
[15321.624511] usb 1-1: new full speed USB device using musb_hdrc and address 75
[15321.772918] usb 1-1: ep0 maxpacket = 8
[15321.773895] usb 1-1: default language 0x0409
[15321.775848] usb 1-1: uevent
[15321.776062] usb 1-1: usb_probe_device
[15321.776123] usb 1-1: configuration #1 chosen from 1 choice
[15321.779876] usb 1-1: adding 1-1:1.0 (config #1, interface 0)
[15321.780212] usb 1-1:1.0: uevent
[15321.781951] /home/builder2/maemo-fremantle-armel-extras-devel/work/kernel-power-2.6.28/drivers/usb/core/inode.c: creating file '075'
[15321.782623] usb 1-1: New USB device found, idVendor=0fe6, idProduct=8101
[15321.782653] usb 1-1: New USB device strings: Mfr=0, Product=2, SerialNumber=3
[15321.782714] usb 1-1: Product: USB Network Controller
[15321.782745] usb 1-1: SerialNumber:
[15321.782775] hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0002
[15321.782867] hub 1-0:1.0: port 1 enable change, status 00000103
Nokia-N900:~# ifconfig
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:32 errors:0 dropped:0 overruns:0 frame:0
TX packets:32 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1390 (1.3 KiB) TX bytes:1390 (1.3 KiB)

phonet0 Link encap:UNSPEC HWaddr 15-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
UP POINTOPOINT RUNNING NOARP MTU:4000 Metric:1
RX packets:3435 errors:0 dropped:0 overruns:0 frame:0
TX packets:126 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:123284 (120.3 KiB) TX bytes:1978 (1.9 KiB)

Nokia-N900:~#

I tryed to plug card in my ubuntu machine and seems work fine:
Code:

[124331.852181] usb 2-2: new full speed USB device using uhci_hcd and
address 4
[124332.039608] usb 2-2: configuration #1 chosen from 1 choice
[124332.076971] eth1: register 'dm9601' at usb-0000:00:1d.0-2, Davicom
DM9601 USB Ethernet, 00:10:14:02:21:7d
[124332.431275] eth1: link down
[124332.446918] ADDRCONF(NETDEV_UP): eth1: link is not ready
korek@misio:~$ ifconfig

eth1      Link encap:Ethernet  HWaddr 00:10:14:02:21:7d
        UP 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)

Can some one help me to make it work?

storkus 2010-12-06 22:50

Re: Usb NIC problem
 
Off-hand, I'd say the driver is missing from the kernel: even the power kernel doesn't have EVERYTHING compiled in it as it would eat too much memory and slow things down. If Titan or someone else can confirm it, this means you'll just have to compile your own kernel, assuming this driver will compile on ARM. You may also be able to get away with just compiling a module by itself in Scratchbox, Easy Debian, or (sounds hardest) cross-compiling openly in your Ubuntu box.

Mike

hardkorek 2010-12-06 22:57

Re: Usb NIC problem
 
It was my first guess to. But this line makes me wonder:


Code:

[15321.781951] /home/builder2/maemo-fremantle-armel-extras-devel/work/kernel-power-2.6.28/drivers/usb/core/inode.c: creating file '075'

Do you know what this thing mean?

hardkorek 2010-12-10 06:36

Re: Usb NIC problem
 
Can some one tell me how to find what kind of driver is my ubuntu using for that network card,
I would try to compile module then.

kureyon 2010-12-10 11:25

Re: Usb NIC problem
 
Try using lsmod?

blue_led 2010-12-10 13:08

Re: Usb NIC problem
 
Quote:

Originally Posted by hardkorek (Post 893799)
Can some one tell me how to find what kind of driver is my ubuntu using for that network card,
I would try to compile module then.


you need dm9601.ko driver for Davicom . i tried compile for but i get error ( unknown symbol ) when insmod the module.
need more attention for that. when i will have some time i will try again. curiously on same setup i compiled pl2303.ko driver with success.

hardkorek 2010-12-12 02:53

Re: Usb NIC problem
 
Quote:

Originally Posted by kureyon (Post 893933)
Try using lsmod?

How to check it if it would be compiled in to kernel? I'm just courious.


Quote:

you need dm9601.ko driver for Davicom . i tried compile for but i get error ( unknown symbol ) when insmod the module.
need more attention for that. when i will have some time i will try again. curiously on same setup i compiled pl2303.ko driver with success.
Damn, if you have a probems with it i'll fail as well. I'm noob in driver stuff.
If you would successfully compile it can you post step by step instruction.

I'll try tommorow anyway.

Sonny_Jim 2010-12-14 16:22

Re: Usb NIC problem
 
When I tried out h-e-n with my Belkin USB ethernet adapter I found that I needed a cable plugged in and linked *before* applying vbus and enumerating:

http://talk.maemo.org/showthread.php...941#post883941

trx 2010-12-14 16:51

Re: Usb NIC problem
 
connect the device (lan cable too), start h-e-n, high speed, vbus boost on, enumerate.
open terminal, and as root : udhcpc

blue_led 2010-12-14 19:39

Re: Usb NIC problem
 
2 Attachment(s)
@hardkorek here is your driver. i modprobe-it but not tested because i don't have davicom device


All times are GMT. The time now is 21:22.

vBulletin® Version 3.8.8