Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Maemo: Developers

Issues with using flasher utility on Linux and eventual solution

 

 

Maemo developers RSS feed   Index | Next | Previous | View Threaded


alevinsn at aracnet

Dec 19, 2005, 10:23 AM

Post #1 of 4 (3755 views)
Permalink
Issues with using flasher utility on Linux and eventual solution

Yesterday, I spent some time trying to use flasher to flash the latest
firmware, take the 770 into RD mode, and finally take the 770 out of RD
mode. Please note that the latter step isn't really mentioned in the
relevant Wiki entries, and it is probably advisable to turn off RD mode
once the user is finished using RD mode.

The first use of flasher, to flash the latest firmware, went flawlessly.
However, the next attempt to use flasher, to take the 770 into RD mode,
failed numerous times. Here are some of the messages that I saw:

Suitable USB device not found, waiting
USB device found found at bus 005, device address 046
NOLO_REQ_GET_STATUS: Cannot send after transport endpoint shutdown
Device status query failed

Suitable USB device not found, waiting
USB device found found at bus 005, device address 051
NOLO_REQ_GET_STATUS: No such device
Device status query failed

Suitable USB device not found, waiting
USB device found found at bus 005, device address 054
Error opening USB device: No such file or directory

Suitable USB device not found, waiting
USB device found found at bus 005, device address 055
Error setting alternate interface 2: Protocol error

A search for the various error messages I encountered did not turn up on
any of the maemo e-mail lists or on the Internet Tablet Talk forums,
although some of them do turn up on in Google, having to do with USB.

I was doing this on an FC2 system with updated components (I use it as a
mythtv server), so it's possible that there were USB issues.

This problem repeated over and over again, even after a reboot of the PC.
I started to wonder if there were issues with the new firmware with
respect to the flasher tool, as the first use of the flasher tool, when
the firmware was at version 0.2005.45-7, went flawlessly. In addition, it
appeared that even if I wanted to go back to the previous firmware, I was
out of luck, because first, I didn't have the previous firmware and it
doesn't seem to be available, and in addition, attempting to use flasher
to reflash the latest firmware failed with the same errors.

I ran apt-get update and apt-get dist-upgrade on the FC2 system to get the
latest files. There were no new kernel updates. This didn't result in
any changes with my flasher problems.

I kept on trying to use flasher, and then the same steps that had been
previously unsuccessful suddenly worked, and I was able to enter RD mode.
I ran sudo gainroot and modified gainroot using vim to just invoke the
shell. All right, two steps were complete, and it was time to turn off RD
mode, but unfortunately, I found myself encountering the same issues. I
started to suspect some sort of USB timing issue and that the first
successful use of flasher was possibly a fluke and had nothing to do with
the firmware version. At this point, I did yet another search through the
maemo e-mail lists, and I discovered a thread that mentioned that if the
home button is pressed and held at the beginning of the boot process, the
boot process will be delayed until the button is released. So, I gave
this a shot as follows:

1. I turned of the 770 (switch off!).
2. I plugged in the USB cable to the 770 and the computer.
3. I turned on the 770 and held down the home key (to be more precise,
the hardware button that has the picture of a house on it). This worked
as described in the e-mail thread.
4. I invoked flasher (as root) as follows: ./flasher --disable-rd-mode .

And this worked! No more errors. A subsequent call to ./flasher --reboot
worked fine as well. I was able to repeat this process today, but it
seems that you have to be really quick with the home button press and then
really quick with issuing the flasher command. This technique may be
easier when already in RD mode.

Anyway, I hope this has been helpful to some people out there, and it may
be useful to include the new information in the relevant Wiki entries.

Aaron Levinson

_______________________________________________
maemo-developers mailing list
maemo-developers [at] maemo
https://maemo.org/mailman/listinfo/maemo-developers


juha.yrjola at nokia

Dec 19, 2005, 11:24 AM

Post #2 of 4 (3527 views)
Permalink
Re: Issues with using flasher utility on Linux and eventual solution [In reply to]

On Mon, Dec 19, 2005 at 10:23:52AM -0800, ext Aaron Levinson wrote:

> 1. I turned of the 770 (switch off!).
> 2. I plugged in the USB cable to the 770 and the computer.
> 3. I turned on the 770 and held down the home key (to be more precise,
> the hardware button that has the picture of a house on it). This worked
> as described in the e-mail thread.
> 4. I invoked flasher (as root) as follows: ./flasher --disable-rd-mode .
>
> And this worked! No more errors. A subsequent call to ./flasher --reboot
> worked fine as well. I was able to repeat this process today, but it
> seems that you have to be really quick with the home button press and then
> really quick with issuing the flasher command. This technique may be
> easier when already in RD mode.

If the USB cable is connected when the device is powered up, there is approx.
two-second timeout in waiting for flashing commands. If no flashing
commands arrive during the time period, we start the booting process.

If the home button is pressed while powering on, the timeout is removed.

Looks like your problem is indeed because of the timeout. The timeout can
also be removed by setting the "no-usb-timeout" R&D flag.

Cheers,
Juha
_______________________________________________
maemo-developers mailing list
maemo-developers [at] maemo
https://maemo.org/mailman/listinfo/maemo-developers


ilkka.poutanen at tut

Dec 20, 2005, 3:38 AM

Post #3 of 4 (3504 views)
Permalink
Re: Issues with using flasher utility on Linux and eventual solution [In reply to]

ma, 2005-12-19 kello 21:24 +0200, Juha Yrjölä kirjoitti:
> Looks like your problem is indeed because of the timeout. The timeout can
> also be removed by setting the "no-usb-timeout" R&D flag.

Slightly offtopic, but it'd be great if someone with Knowledge of all
the R&D flags could document them in the Maemo wiki. The flasher tool
usage page[1] could do with an overhaul anyway, it'd be a nice place for
this information too.

1. http://maemo.org/maemowiki/Flasher_tool_usage


--
Ilkka Poutanen, research assistant
Tampere University of Technology Institute of Software Systems

_______________________________________________
maemo-developers mailing list
maemo-developers [at] maemo
https://maemo.org/mailman/listinfo/maemo-developers


juha.yrjola at nokia

Dec 20, 2005, 5:38 AM

Post #4 of 4 (3509 views)
Permalink
Re: R&D flags [In reply to]

On Tue, 2005-12-20 at 13:38 +0200, ext Ilkka Poutanen wrote:

> Slightly offtopic, but it'd be great if someone with Knowledge of all
> the R&D flags could document them in the Maemo wiki. The flasher tool
> usage page[1] could do with an overhaul anyway, it'd be a nice place for
> this information too.

Yeah, I'm planning on adding the descriptions to the tool itself when I
have the time.

Cheers,
Juha


_______________________________________________
maemo-developers mailing list
maemo-developers [at] maemo
https://maemo.org/mailman/listinfo/maemo-developers

Maemo developers RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.