Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 15789 - net.usb0 does not remove link when connect killed
Summary: net.usb0 does not remove link when connect killed
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High minor (vote)
Assignee: Martin Schlemmer (RETIRED)
: 10627 (view as bug list)
Depends on:
Reported: 2003-02-16 12:37 UTC by john read
Modified: 2003-12-06 18:53 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---

kernel patch for usbdnet (for Zaurus) (usbdnet-2.4.20-patch.gz,18.82 KB, patch)
2003-03-23 16:41 UTC, john read
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description john read 2003-02-16 12:37:59 UTC
after patching in the usbdnet into the 2.4.20 the connection via usb (net.usb0)
works fine to a zaurus. Dhcpd is enabled on the usb connection due to the
security restrictions on the zaurus. 
But when the usb connection is killed (the zaurus is removed) the net.usb0 is
called with stop and the dhcpd crashes out before the net.usb0 finishes. This
leaves the net.usb0 link in /mnt/.init/started/

log file when connection killed:
Feb 16 18:07:06 [kernel] usb.c: USB disconnect on device 00:07.2-2.2 address 5
Feb 16 18:07:06 [/etc/hotplug/net.agent] invoke /etc/init.d/net.usb0 stop
Feb 16 18:07:06 [dhcpcd] dhcpRelease: sendto: No such device 
Feb 16 18:07:06 [dhcpcd] arpRelease: sendto: No such device 
Feb 16 18:07:07 [dhcpcd] terminating on signal 1 
Feb 16 18:07:07 [modprobe] modprobe: Can't locate module usb0
Feb 16 18:07:07 [dhcpcd] dhcpStop: ioctl SIOCSIFADDR: No such device 
Feb 16 18:07:07 [modprobe] modprobe: Can't locate module usb0
Feb 16 18:07:07 [dhcpcd] dhcpStop: ioctl SIOCSIFFLAGS: No such device 

Reproducible: Always
Steps to Reproduce:
1. connect to zaurus via usb (dhcpd enabled)
2. remove zaurus
3. connect zaurus
Actual Results:  
the connect is not restarted. If the link is delected manually (or by calling
net.usb0 stop) then the connection can be started automatically when the zaurus
is replaced in the cradle (usb)

Portage 2.0.46-r12 (default-x86-1.4, gcc-3.2.2, glibc-2.3.1-r3)
System uname: 2.4.20-acpi-r9 i686 Pentium III (Coppermine)
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config
/usr/kde/3/share/config /usr/X11R6/lib/X11/xkb
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
USE="x86 oss 3dnow apm arts avi crypt cups encode gif jpeg libg++ mikmod mmx
mpeg ncurses nls pdflib png qtmt quicktime spell truetype xml2 xmms xv zlib
gtkhtml gdbm berkdb slang readline tcltk java guile X sdl gpm tcpd pam libwww
ssl perl python esd imlib oggvorbis gnome gtk qt motif opengl acpi alsa bonobo
evo gb imap -kde ldap libgda maildir mozilla pcmcia pda sasl -svga tetex"
CFLAGS="-march=pentium3 -O3 -pipe"
CXXFLAGS="-march=pentium3 -O3 -pipe"
FEATURES="sandbox ccache"
Comment 1 Zach Welch (RETIRED) gentoo-dev 2003-03-19 22:52:46 UTC
I would like to help with this, but I can't develop a solution without more
information.  Have you been able to develop a patch to your init scripts
that helps?  Also, I'm guessing you had to make some changes to get the Zaurus
working, and those might be part of the situation.  If you have another distro
that works, perhaps see what solution they employed.
Comment 2 john read 2003-03-23 16:41:11 UTC
Created attachment 9736 [details, diff]
kernel patch for usbdnet (for Zaurus)

The patch for the Zaurus was not included upto 2.4.20. I have not checked
versions after this.
I patched the acpi kernel. The new usbdnet module must be selected in the
kernel build, and the following parameters entered:
USBD Network Vendor = 04dd
USBD Network idProduct = 8004
Because of security restrictions in the Zaurus, the IP address should be
obtained from the Zaurus DHCP-server. 
Create the net.usb0 and edit the net entry for usb0 for DHCP.
The Zaurus will go online correctly, and can be seen in ifconfig.
(It can also be synchronized by the Qtopia Desktop, which must be installed
I have not yet experimented with the net.usb0, but will do so in the next few
Comment 3 Jay Pfeifer (RETIRED) gentoo-dev 2003-07-09 21:31:25 UTC
*** Bug 10627 has been marked as a duplicate of this bug. ***
Comment 4 Martin Schlemmer (RETIRED) gentoo-dev 2003-07-17 11:28:07 UTC
Does only the kernel changes work ?
Comment 5 Andrew Cooks (RETIRED) gentoo-dev 2003-12-06 04:24:10 UTC
It's been months since any useful updates were made to this bug.

Please test with a recent kernel and reopen this bug if the problem persists.
Comment 6 SpanKY gentoo-dev 2003-12-06 18:53:22 UTC
please try the latest kernel and baselayout and see if that makes any difference