Bug 1448 - flasher fails to find/flash n800 on Debian sid with 2.6.20 kernel
: flasher fails to find/flash n800 on Debian sid with 2.6.20 kernel
Status: RESOLVED WORKSFORME
Product: Flasher
Linux
: 3.0
: x86 Debian
: Low normal (vote)
: ---
Assigned To: unassigned
: flasher-linux-bugs
:
: moreinfo
:
:
  Show dependency tree
 
Reported: 2007-05-16 23:02 UTC by Tim Riker
Modified: 2009-02-01 23:14 UTC (History)
3 users (show)

See Also:


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description Tim Riker (reporter) 2007-05-16 23:02:25 UTC
usbfs is mounted thusly:

# mount | grep usbfs
procbususb on /proc/bus/usb type usbfs (rw)

running flasher-3.0-static as root the n800 is not seen when connecting it over
usb. This happens both with and without the patch.

Kernel is 2.6.20 debian kernel:

$ uname -r
2.6.20-1-686

dpkg shows:
linux-image-2.6.20-1-686

running flasher under strace shows that it does in fact wake up and see a usb
event, but it apparently does not think the device is an n800.

Tried this with multiple devices. Same host and device can flash fine under
that Other (excuse for an) OS.

Side note: It sure would be nice if the bootloader was a usb-serial device and
you could get a console prompt on it just by loading usbserial. Then it could
use xmodem or similar to upload images. I've done this with u-boot on other
omap platforms. There are also u-boot patches that include tftp support which
would be great too. The windows flashing tools could easily use this same
standard interface. Why is this proprietary when it does not need to be?
Comment 1 Jake Kunnari 2007-06-06 15:58:16 UTC
Under investigation.
Comment 2 Marcell Lengyel maemo.org 2007-06-08 10:37:13 UTC
I tried to reproduce it with Sidux, a Debian sid based distro
(http://www.vmware.com/vmtn/appliances/directory/811) under vmware. Both
flasher-3.0 and flasher-3.0-static seems to work just fine.

bagvapp:~# uname -a
Linux bagvapp 2.6.21.3-slh-smp-4 #1 SMP PREEMPT Mon May 28 13:55:43 CEST 2007
i686 GNU/Linux

usbfs is mounted the same way as in the original error report.

Some addition info: both the vmware image and the host system are 32bit
systems.
Steps I followed:

- start up vmware player and load the sidux image
- switch off n800
- connect usb cable to the host PC and n800
- in a root shell in sidux execute "./flasher-3.0-static -i"
- check that the "Suitable USB device not found, waiting" prompt is displayed
- hold the "Home" key on n800 (it is not needed on a normal linux pc, but
vmware does not pick up the new usb device otherwise)
- switch on n800 and wait for the usb logo
- release "Home" key

Tim, if you could repeat the same and report where does it fail for you, that
would be most helpful.
Comment 3 Andre Klapper maemo.org 2008-05-05 14:19:36 UTC
tim, can you please answer marcell's questions?
Comment 4 Quim Gil nokia 2009-02-01 23:14:04 UTC
WORKSFORME as per comment #2