Author Topic: Usb Recover Accross Suspend Resume ??  (Read 9498 times)

YoG

  • Jr. Member
  • **
  • Posts: 56
    • View Profile
Usb Recover Accross Suspend Resume ??
« Reply #30 on: December 13, 2005, 01:21:48 pm »
lardman:
Quote
First of all, I fully agree with hrw, upgrade to one of the 2.6.x kernel images we have on oz.org.

if you'll read my post you'll see that:
Quote
I'm running kernel 2.6.11-3.5.3...

I've purchased the Z with some costumized version of OZ, I then reflashed the Z following the howto on openzaurus.org, using the following images:

zImage-c7x0-20050411221036.bin
opie-image-c7x0-20050411221036.rootfs.img

any chances that there are leftovers from the previous installation?

Hrw:
Quote
man... with 2.6 kernel on Zaurus all you need is loading "g_ether" module once - then you will have usb networking without reloading any modules. No more crap sharp 'drivers'.

I searched for "g_ether" on my Z, i found a directory with a bunch of files but being a newbie I didn't recognize any of them as a module (shouldn't they be something like blabla.ko?).
So my question remains, how do I restart the module responsible for the usb networking?

I have found out that if I suspend the Z before disconnecting the cable everything works fine... so I guess that's exactly what I'll do.

Thanx guys, you are doing great job.

YoG.
C860 Autobuilt Angstrom (OPIE) & Zubuntu 9.04  dual boot using kexec
SanDisk SDHC 4GB, Agiwara Sys-Com CF 1GB, Sandisk CF 256MB, Socket BT, Linksys WCF12 Wifi card, RoyalTek RBT-1000 Bluetooth GPS
yogzlog.blogspot.com

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Usb Recover Accross Suspend Resume ??
« Reply #31 on: December 14, 2005, 06:46:22 am »
Quote
if you'll read my post you'll see that: <snip>

My apologies.

Quote
I searched for "g_ether" on my Z, i found a directory with a bunch of files but being a newbie I didn't recognize any of them as a module (shouldn't they be something like blabla.ko?).

Yes, there should be a g_ether.ko somewhere under /lib/modules

Quote
So my question remains, how do I restart the module responsible for the usb networking?

Try:

"rmmod g_ether; modprobe g_ether"


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

YoG

  • Jr. Member
  • **
  • Posts: 56
    • View Profile
Usb Recover Accross Suspend Resume ??
« Reply #32 on: December 15, 2005, 04:38:10 am »
Hi,

I tried "find / | grep g_ether.ko" - I get no results,

when I try "find / | grep g_ether" I get:
Quote
/sys/module/g_ether
/sys/module/g_ether/parameters
/sys/module/g_ether/parameters/idVendor
/sys/module/g_ether/parameters/idProduct
/sys/module/g_ether/parameters/iProduct
/sys/module/g_ether/parameters/dev_addr
/sys/module/g_ether/parameters/host_addr

trying "rmmod g_ether"
Quote
rmmod: g_ether: No such file or directory

trying "modprobe g_ether"
Quote
modprobe: module g_ether not found.
modprobe: failed to load module g_ether

but, since the usb-network works after reboot, I guess that that module exists somewhere under some name...

BTW, any better way finding files on linux than doing "find / | grep"?

Thanx, YoG.
C860 Autobuilt Angstrom (OPIE) & Zubuntu 9.04  dual boot using kexec
SanDisk SDHC 4GB, Agiwara Sys-Com CF 1GB, Sandisk CF 256MB, Socket BT, Linksys WCF12 Wifi card, RoyalTek RBT-1000 Bluetooth GPS
yogzlog.blogspot.com

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Usb Recover Accross Suspend Resume ??
« Reply #33 on: December 15, 2005, 07:06:38 am »
Quote
/sys/module/g_ether

This means the module is loaded; it may be compiled into the kernel.

I'm a bit hazy about how to manipulate it (reset it, etc.) if it's compiled in though. Any one else have any suggestions?


Si
« Last Edit: December 15, 2005, 07:06:47 am by lardman »
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva