Author Topic: Belkin Usb To Lan Adapter Locks Up Cacko Zaurus [fixed]  (Read 6799 times)

Jon_J

  • Hero Member
  • *****
  • Posts: 1853
    • View Profile
    • http://
Belkin Usb To Lan Adapter Locks Up Cacko Zaurus [fixed]
« on: October 25, 2007, 01:21:03 am »
I have a Belkin USB to LAN adapter that works in pdaxrom. It uses the pegasus driver.
(Belkin - F5D5050 USB 1.1 10/100 Ethernet Adapter)
manfid
vend: 0x50d
prod: 0x121
In pdaxrom, I can connect with LAN settings set to auto. (DHCP and auto detect DNS)
I decided to purchase this dongle after I read that it is compatible with the Zaurus in this thread:
https://www.oesf.org/forum/index.php?showto...=Belkin+F5D5050

When I try this dongle on my Cacko C3100, it just locks up my Zaurus and I have to use the reset switch in the battery compartment.
When I plug it in, the USB icon comes on the taskbar and the interface is only available for about 2 seconds.
I have a console open with dmesg ready. I plug it in and hit my "Enter" key.
The following is the results of any usb related stuff in dmesg.
Code: [Select]
dmesg
usbh: monitor_int_hndlr:
usbh: monitor_bh:
usbh: udc_connected: ACTIVE_LOW: 1<7>usbh: monitor_connected: 1
usbh: monitor_load: 4
usbh: monitor_hotplug: agent usbh interface: monitor action: load
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
usb-ohci.c: USB OHCI at membase 0xfe000000, IRQ 3
usb.c: new USB bus registered, assigned bus number 1
usb.c: USB hub found
usb.c: 2 ports detected
usb.c: new USB device -2, assigned address 2
usb.c: USB device 2 (vend/prod 0x50d/0x121) is not claimed by any active driver.
What can I do besides reflashing Cacko?
I have all the usb module IPKs installed from the original Cacko feed.
I have quite a few incremental backup NANDs, but I also have a lot of stuff working and don't want to restore or reflash if I don't have to.
I have 40 MB left in /home (NAND), so I'm not out of space.
I uninstalled netswitch_0.4 and re-installed it.
It locks up so tight that nothing works except pulling the battery or using the reset switch.

Thank you,
Jon
« Last Edit: October 27, 2007, 01:09:35 pm by Jon_J »
C3100 Multiboot-->Angstrom 2007.12-r18 | Cacko 1.23 | ArchLinuxARM
C3200 pdaxii13v2-5.5-alpha4 Akita on NAND

Ambicom WL1100C-CF Wifi - Ambicom CF modem - Ambicom CF GPS - Belkin-F5D5050 USB LAN
Socket CF Bluetooth rev K - Iogear 4 port USB micro hub - pocket CF card reader
Targus mini USB optical mouse - 2 Targus SD card readers

Jon_J

  • Hero Member
  • *****
  • Posts: 1853
    • View Profile
    • http://
Belkin Usb To Lan Adapter Locks Up Cacko Zaurus [fixed]
« Reply #1 on: October 25, 2007, 01:47:08 am »
I solved the lock up problems.
The netswitch package contains a pegasus driver. Then I reviewed the Cacko released thread. (I have it printed)
Quote maslovsky:
- Updated Pegasus USB Network drivers to 0.4.32
    - Included driver modules to support for USB Ethernet devices
    - Updated USBNET driver from 2.4.32 kernel source, supporting many USB Ethernet dongles


So I uninstalled the netswitch package, and now I have no lock ups.  

Now I need to figure out how to make it connect.
I cannot seem to get the pegasus module to stay loaded.
I do a modprobe pegasus, and dmesg says it loaded, (pegasus 4.3.2), but when I do a lsmod, its not included in the output.
My dongle shows up in the system info, but it has a yellow triangle next to it.
I try ifconfig -a but my ethernet doesn't show up.
I tried ifconfig eth0 up
I get message that eth0 doesn't exist.
« Last Edit: October 25, 2007, 03:56:20 am by Jon_J »
C3100 Multiboot-->Angstrom 2007.12-r18 | Cacko 1.23 | ArchLinuxARM
C3200 pdaxii13v2-5.5-alpha4 Akita on NAND

Ambicom WL1100C-CF Wifi - Ambicom CF modem - Ambicom CF GPS - Belkin-F5D5050 USB LAN
Socket CF Bluetooth rev K - Iogear 4 port USB micro hub - pocket CF card reader
Targus mini USB optical mouse - 2 Targus SD card readers

Jon_J

  • Hero Member
  • *****
  • Posts: 1853
    • View Profile
    • http://
Belkin Usb To Lan Adapter Locks Up Cacko Zaurus [fixed]
« Reply #2 on: October 25, 2007, 07:40:48 pm »
Since very few people read or troubleshoot in the Sharp forum these days, I am having to use a very unusual method to get a good, working, stable USB to LAN connection with my Belkin dongle in Cacko.
I currently am not using meanie's netswitch package, since it was causing lockups.
What is wrong with my Z, that I have to use such a method to "make" it connect and stay connected?
This is my unorthodox method to connect, and stay connected.
1. Plug in USB to LAN dongle.
2. Open terminal, su to root, issue "modprobe usb_ohci_pxa27x"
3. Then, issue "modprobe pegasus"
4. Dongle lights up.
5. USB icon on taskbar says: USB Ethernet Detected. Sysinfo now has: USB to LAN Converter
6. Open browser, then the connect icon on the taskbar connects. (Still not a good connection)
7. Close browser and when the disconnect dialog pops up, disconnect from "Dummy Device"
8. Open browser again, when Connect dialog pops up, connect to USB LAN TCP/IP
9. Now I have a good, stable, working connection. Now, I can browse the web without it stopping.
« Last Edit: October 25, 2007, 07:50:48 pm by Jon_J »
C3100 Multiboot-->Angstrom 2007.12-r18 | Cacko 1.23 | ArchLinuxARM
C3200 pdaxii13v2-5.5-alpha4 Akita on NAND

Ambicom WL1100C-CF Wifi - Ambicom CF modem - Ambicom CF GPS - Belkin-F5D5050 USB LAN
Socket CF Bluetooth rev K - Iogear 4 port USB micro hub - pocket CF card reader
Targus mini USB optical mouse - 2 Targus SD card readers

Meanie

  • Hero Member
  • *****
  • Posts: 2803
    • View Profile
    • http://www.users.on.net/~hluc/myZaurus/
Belkin Usb To Lan Adapter Locks Up Cacko Zaurus [fixed]
« Reply #3 on: October 25, 2007, 08:04:23 pm »
Quote from: Jon_J
Since very few people read or troubleshoot in the Sharp forum these days, I am having to use a very unusual method to get a good, working, stable USB to LAN connection with my Belkin dongle in Cacko.
I currently am not using meanie's netswitch package, since it was causing lockups.
What is wrong with my Z, that I have to use such a method to "make" it connect and stay connected?
This is my unorthodox method to connect, and stay connected.
1. Plug in USB to LAN dongle.
2. Open terminal, su to root, issue "modprobe usb_ohci_pxa27x"
3. Then, issue "modprobe pegasus"
4. Dongle lights up.
5. USB icon on taskbar says: USB Ethernet Detected. Sysinfo now has: USB to LAN Converter
6. Open browser, then the connect icon on the taskbar connects. (Still not a good connection)
7. Close browser and when the disconnect dialog pops up, disconnect from "Dummy Device"
8. Open browser again, when Connect dialog pops up, connect to USB LAN TCP/IP
9. Now I have a good, stable, working connection. Now, I can browse the web without it stopping.


how about trying netswitch-lite?
SL-C3000 - pdaXii13 build5.4.9 (based on pdaXrom beta3) / SL-C3100 - Sharp ROM 1.02 JP (heavily customised)
Netgear MA701 CF, SanDisk ConnectPlus CF, Socket Bluetooth CF, 4GB Kingston CF,  4GB pqi SD, 4GB ChoiceOnly SD, 2GB SanDisk SD USB Plus, 1GB SanDisk USB Plus, 1GB Transcend SD, 2GB SanDisk MicroSD with SD adaptor, Piel Frama Leather Case, GoldX 5-in-1 USB cable, USB hub, USB mouse, USB keyboard, USB ethernet, USB HDD, many other USB accessories...
(Zaurus SL-C3000 owner since March 14. 2005, Zaurus SL-C3100 owner since September 21. 2005)
http://members.iinet.net.au/~wyso/myZaurus - zBook3K

Jon_J

  • Hero Member
  • *****
  • Posts: 1853
    • View Profile
    • http://
Belkin Usb To Lan Adapter Locks Up Cacko Zaurus [fixed]
« Reply #4 on: October 26, 2007, 12:47:32 am »
Thanks Meanie, netswitch-lite stopped my Zaurus from locking up.
The USB icon on the taskbar shows "USB ethernet detected"
My dongle lights up. ifconfig only shows lo and ifconfig -a shows eth0 and lo
I still cannot use the "connection" icon on the taskbar.
It goes into a continous state where it's trying to connect.
So I tried just opening a browser, after plugging in my dongle.
Netfront connects to "Dummy Device", so I disconnect from that and try my LAN connection, then the connection applet goes back into its continuous state of trying to connect.
So I tried Opera.
Both of these browsers automatically connect to the "Dummy Device" upon their launch.
In either situation, if I disconnect from the "Dummy Device" and try to re-connect to USB LAN, I get a message from the USB icon, that says "A cable is unplugged" and the USB icon shuts off. (This only happens when I try to re-connect to USB LAN)
Then, as usual, the "connect icon" is in a continuous state of trying to connect.
I can wait about 5 minutes?, or restart Qtopia to stop this "continuous state of trying to connect"

Now, after trying this several times and restarting Qtopia, the browsers don't automatically connect to "Dummy Device" anymore.
You may ask why I'm trying my browsers to connect? Because it was the only way I could connect earlier today, (5 hours ago).
But I still cannot use the "connect" icon to connect to USB LAN without the continuous state of trying to connect.
If I try "ifconfig eth0 up" after my dongle lights up, I "seem" to get a connection, but cannot surf the web.

After several attempts of using "ifconfig eth0 up" and launching Opera and switching off "Dummy Device" and doing this all over again, I finally got connected for the first time since I installed netswitch-lite.
The browsers started auto-connecting again after I used the console and "ifconfig eth0 up"
I got to tyrannozaurus, but my surfing halted midway to opening the entire page.. (I have to do more tinkering)
I opened netfront (again), shut down "Dummy Device", closed netfront. Now I opened Opera, and guess what?? It automatically connected to USB LAN
It's still connected!  I wonder how long...
I just went to 3 very big websites with no problem.
It seems like the only way I can connect, is by using a browser, all other methods don't seem to work fully.
Opera just made the connection for me.
The connect icon, shows I'm not connected now. hmmm..
10 minutes later, I'm still surfing using this connection. I now have a good, stable connection.
I hope I can do it all over again.
I was able to repeat the steps that I posted earlier, and get a good, stable connection.
I actually got to the point, where I only needed to open a browser once.

Edit
One thing I forgot to add is:
netswitch-lite does these 2 steps for me now:
modprobe usb_ohci_pxa27x
modprobe pegasus

Oh, and the main reason I'm being so persistent to get this working smoothly is, I still think Opera is the best browser for the Zaurus, hands down. (I wish they would open source it).
« Last Edit: October 26, 2007, 01:09:23 am by Jon_J »
C3100 Multiboot-->Angstrom 2007.12-r18 | Cacko 1.23 | ArchLinuxARM
C3200 pdaxii13v2-5.5-alpha4 Akita on NAND

Ambicom WL1100C-CF Wifi - Ambicom CF modem - Ambicom CF GPS - Belkin-F5D5050 USB LAN
Socket CF Bluetooth rev K - Iogear 4 port USB micro hub - pocket CF card reader
Targus mini USB optical mouse - 2 Targus SD card readers

Meanie

  • Hero Member
  • *****
  • Posts: 2803
    • View Profile
    • http://www.users.on.net/~hluc/myZaurus/
Belkin Usb To Lan Adapter Locks Up Cacko Zaurus [fixed]
« Reply #5 on: October 26, 2007, 02:55:38 am »
net dhcp
net refresh


would do the job, no need to make the browser setup a network
SL-C3000 - pdaXii13 build5.4.9 (based on pdaXrom beta3) / SL-C3100 - Sharp ROM 1.02 JP (heavily customised)
Netgear MA701 CF, SanDisk ConnectPlus CF, Socket Bluetooth CF, 4GB Kingston CF,  4GB pqi SD, 4GB ChoiceOnly SD, 2GB SanDisk SD USB Plus, 1GB SanDisk USB Plus, 1GB Transcend SD, 2GB SanDisk MicroSD with SD adaptor, Piel Frama Leather Case, GoldX 5-in-1 USB cable, USB hub, USB mouse, USB keyboard, USB ethernet, USB HDD, many other USB accessories...
(Zaurus SL-C3000 owner since March 14. 2005, Zaurus SL-C3100 owner since September 21. 2005)
http://members.iinet.net.au/~wyso/myZaurus - zBook3K

Jon_J

  • Hero Member
  • *****
  • Posts: 1853
    • View Profile
    • http://
Belkin Usb To Lan Adapter Locks Up Cacko Zaurus [fixed]
« Reply #6 on: October 26, 2007, 03:09:23 am »
I just tried that and it selects the "Dummy Device"
The numbers are all incorrect for me to get on the net (internet)

I then selected USB LAN and it is now getting the same numbers from the Dummy Device.
This connection shows:
IP      192.268.1.2
Mask    255.255.255.0
DNS     192.268.1.1   192.268.1.1
 No default gateway

It should be: (these are the numbers that allow me to browse the net)
IP      192.268.1.102 (DHCP)
Mask    255.255.255.0
DNS     64.40.75.20   64.40.72.25
Gateway 192.168.1.1

EDIT:
The next day I plugged this dongle in and the light never came on. I tried to connect, but it wasn't working.
So I tried this dongle with my pdaxii13 Zaurus, and the light didn't light up.
At this point I thought my retractable cable could be bad, so I used a heavy duty cat5 cable and the light worked.
I'm now thinking that "some" of my above problems could have been caused by a faulty cable. (It hasn't been used much and is almost new).
Now I can get a connection in Cacko. I don't use the icon, I open a console and issue the commands Meanie posted above.
Code: [Select]
su
net dhcp
net refresh
The first time I did this, it connected me with the wrong IP and DNS, so I did it again and I now have the correct numbers and am connected.
« Last Edit: October 27, 2007, 01:08:40 pm by Jon_J »
C3100 Multiboot-->Angstrom 2007.12-r18 | Cacko 1.23 | ArchLinuxARM
C3200 pdaxii13v2-5.5-alpha4 Akita on NAND

Ambicom WL1100C-CF Wifi - Ambicom CF modem - Ambicom CF GPS - Belkin-F5D5050 USB LAN
Socket CF Bluetooth rev K - Iogear 4 port USB micro hub - pocket CF card reader
Targus mini USB optical mouse - 2 Targus SD card readers