Tom Seago
2008-01-04 10:37:10 UTC
I have managed to turn what was a working G1G1 machine into a machine
which can no longer see it's wireless card on the USB bus. I thought
I caused this to happen with the following software gyrations, but it
is quite possible that I am the victim of an unfortunately timed and
entirely coincidental hardware failure. If anyone has any pointers to
help me figure out which of those two is the case - I will be
eternally grateful (or at least grateful for a really really long time
indistinguishable from eternity :) ).
The stupid part is how I started on this little odyssey of mine. I
stupidly tried to just run "olpc-update joyride-1492" from the command
line without having a developer key. The update process appeared to
run fine (which one could argue it should NOT have done if it wasn't
going to work later), but when the machine rebooted I got the "boot
failed" screen. Realizing that I probably _needed_ that whole
developer key thing, I attempted to give up on this ill-fated upgrade
by doing the "circle key" boot from the alternate OS image.
When doing the circle key reboot, the machine rebooted fine, except I
had no networking. No lights, no nothing. After some irrelevant
silliness on my part where I didn't check the $path variable but
started freaking out that ifconfig couldn't be found, I decided what I
needed was a fresh install to get everything back to the way it was so
I could continue to sit in my corner with the shipping version of the
software and avoid the joyride that I was clearly not qualified to be
on.
Thus, I found the wiki page about downloading the os653.img and fs.zip
files, I threw those on a USB stick, and did the "all buttons, I
really really mean it" reboot. The reflash proceeded without a hitch.
The machine restarted, had lost the things I had downloaded and it's
nickname (as expected), but alas - still no network.
At this point, I dug in to the exact situation as best I could. I
noticed a "eth0 no private ioctls" message during startup, which lead
me to this old ticket http://dev.laptop.org/ticket/1969 . That
ticket describes exactly what I have going on, in so far as the
wireless card has apparently disappeared.
Having a second, working G1G1 machine, I was able to determine that
normally there are 3 devices listed in /proc/bus/usb/devices on a
working machine. On my broken machine I only have 2. Also, the
usb8xxx and 802.11 modules aren't loaded - but that's not surprising
if the usb device wasn't found as the kernel loaded.
Looking in /var/log/messages from my good machine I see the following
during a _good_working_ boot.
Jan 4 17:59:56 localhost kernel: [ 19.120404] hub 1-0:1.0: USB hub
found
Jan 4 17:59:56 localhost kernel: [ 19.120730] hub 1-0:1.0: 4 ports
detected
Jan 4 17:59:56 localhost kernel: [ 19.244457] ohci_hcd 0000:00:0f.
4: OHCI Host Controller
Jan 4 17:59:56 localhost kernel: [ 19.269021] ohci_hcd 0000:00:0f.
4: new USB bus registered, assigned bus number 2
Jan 4 17:59:56 localhost kernel: [ 19.285507] ohci_hcd 0000:00:0f.
4: irq 10, io mem 0xfe01a000
Jan 4 17:59:56 localhost kernel: [ 19.404162] usb usb2:
configuration #1 chosen from 1 choice
Jan 4 17:59:56 localhost kernel: [ 19.428806] hub 2-0:1.0: USB hub
found
Jan 4 17:59:56 localhost kernel: [ 19.444807] hub 2-0:1.0: 4 ports
detected
<-- Same up to here -->
Jan 4 17:59:56 localhost kernel: [ 19.460720] hub_port_wait_reset:
portstatus=503 portchange=10
Jan 4 17:59:56 localhost kernel: [ 19.533567] usb 1-1: new high
speed USB device using ehci_hcd and address 2
Jan 4 17:59:56 localhost kernel: [ 19.580477] Initializing USB Mass
Storage driver...
Jan 4 17:59:56 localhost kernel: [ 19.610342] hub_port_wait_reset:
portstatus=503 portchange=10
Jan 4 17:59:56 localhost kernel: [ 19.720163] usb 1-1:
configuration #1 chosen from 1 choice
Jan 4 17:59:56 localhost kernel: [ 19.752491] usbcore: registered
new interface driver usb-storage
Jan 4 17:59:56 localhost kernel: [ 19.768864] USB Mass Storage
support registered.
Jan 4 17:59:56 localhost kernel: [ 19.799984] usbcore: registered
new interface driver libusual
which can no longer see it's wireless card on the USB bus. I thought
I caused this to happen with the following software gyrations, but it
is quite possible that I am the victim of an unfortunately timed and
entirely coincidental hardware failure. If anyone has any pointers to
help me figure out which of those two is the case - I will be
eternally grateful (or at least grateful for a really really long time
indistinguishable from eternity :) ).
The stupid part is how I started on this little odyssey of mine. I
stupidly tried to just run "olpc-update joyride-1492" from the command
line without having a developer key. The update process appeared to
run fine (which one could argue it should NOT have done if it wasn't
going to work later), but when the machine rebooted I got the "boot
failed" screen. Realizing that I probably _needed_ that whole
developer key thing, I attempted to give up on this ill-fated upgrade
by doing the "circle key" boot from the alternate OS image.
When doing the circle key reboot, the machine rebooted fine, except I
had no networking. No lights, no nothing. After some irrelevant
silliness on my part where I didn't check the $path variable but
started freaking out that ifconfig couldn't be found, I decided what I
needed was a fresh install to get everything back to the way it was so
I could continue to sit in my corner with the shipping version of the
software and avoid the joyride that I was clearly not qualified to be
on.
Thus, I found the wiki page about downloading the os653.img and fs.zip
files, I threw those on a USB stick, and did the "all buttons, I
really really mean it" reboot. The reflash proceeded without a hitch.
The machine restarted, had lost the things I had downloaded and it's
nickname (as expected), but alas - still no network.
At this point, I dug in to the exact situation as best I could. I
noticed a "eth0 no private ioctls" message during startup, which lead
me to this old ticket http://dev.laptop.org/ticket/1969 . That
ticket describes exactly what I have going on, in so far as the
wireless card has apparently disappeared.
Having a second, working G1G1 machine, I was able to determine that
normally there are 3 devices listed in /proc/bus/usb/devices on a
working machine. On my broken machine I only have 2. Also, the
usb8xxx and 802.11 modules aren't loaded - but that's not surprising
if the usb device wasn't found as the kernel loaded.
Looking in /var/log/messages from my good machine I see the following
during a _good_working_ boot.
Jan 4 17:59:56 localhost kernel: [ 19.120404] hub 1-0:1.0: USB hub
found
Jan 4 17:59:56 localhost kernel: [ 19.120730] hub 1-0:1.0: 4 ports
detected
Jan 4 17:59:56 localhost kernel: [ 19.244457] ohci_hcd 0000:00:0f.
4: OHCI Host Controller
Jan 4 17:59:56 localhost kernel: [ 19.269021] ohci_hcd 0000:00:0f.
4: new USB bus registered, assigned bus number 2
Jan 4 17:59:56 localhost kernel: [ 19.285507] ohci_hcd 0000:00:0f.
4: irq 10, io mem 0xfe01a000
Jan 4 17:59:56 localhost kernel: [ 19.404162] usb usb2:
configuration #1 chosen from 1 choice
Jan 4 17:59:56 localhost kernel: [ 19.428806] hub 2-0:1.0: USB hub
found
Jan 4 17:59:56 localhost kernel: [ 19.444807] hub 2-0:1.0: 4 ports
detected
<-- Same up to here -->
Jan 4 17:59:56 localhost kernel: [ 19.460720] hub_port_wait_reset:
portstatus=503 portchange=10
Jan 4 17:59:56 localhost kernel: [ 19.533567] usb 1-1: new high
speed USB device using ehci_hcd and address 2
Jan 4 17:59:56 localhost kernel: [ 19.580477] Initializing USB Mass
Storage driver...
Jan 4 17:59:56 localhost kernel: [ 19.610342] hub_port_wait_reset:
portstatus=503 portchange=10
Jan 4 17:59:56 localhost kernel: [ 19.720163] usb 1-1:
configuration #1 chosen from 1 choice
Jan 4 17:59:56 localhost kernel: [ 19.752491] usbcore: registered
new interface driver usb-storage
Jan 4 17:59:56 localhost kernel: [ 19.768864] USB Mass Storage
support registered.
Jan 4 17:59:56 localhost kernel: [ 19.799984] usbcore: registered
new interface driver libusual