entropia / tip-toi-reveng

Trying to understand the file format of Tip Toi
http://tttool.entropia.de/
MIT License
657 stars 123 forks source link

The procedure to flash a firmware in USB Storage Boot Mode is not clear #144

Open severin-lemaignan opened 7 years ago

severin-lemaignan commented 7 years ago

this issue tracks the experiments to flash anew a firmware onto the tiptoi in USB Storage Boot Mode

After an interrupted firmware update (reported in #143), the tiptoi pen looks completely bricked: it does not turn on/off, the test mode does not work, it is not recognized when plugged over USB.

However, I was able to start in USB Storage Boot Mode.

So, once in USB Storage Boot Mode, I've fired up my Windows 10 virtual machine, with Anyka's BurnTool 3.0.18.2. BurnTool happily imports the firmware (Update3202MT_fr.upd in my case).

What to do next is less clear. I've ticked both Update mode and UDisk Burn and then clicked on Download. It apparently did something as after ~20 sec, the tiptoi eventually disconnected. But it did not reboot either...

What experiences do you have with this process?

thawn commented 7 years ago

for convenience, i am copying Ulis comment in the other thread here:

That's the problem: unfortunately noone has managed yet to flash a tiptoi with burntool. Burntool creates a logfil, maybe the errors in there can help.

wernight commented 6 years ago

https://maehw.wordpress.com/tag/tiptoi/ explains some may help.

uli42 commented 5 years ago

Maybe you need the m3usb driver as mentioned here: http://www.sweet.org.ua/camera/802-anyka-burntool-m3usb-driver---usb-anyka.html (translated: https://translate.google.de/translate?sl=ru&tl=en&js=y&prev=_t&hl=de&ie=UTF-8&u=http%3A%2F%2Fwww.sweet.org.ua%2Fcamera%2F802-anyka-burntool-m3usb-driver---usb-anyka.html&edit-text= )

clean31 commented 5 years ago

What to do next is less clear. I've ticked both Update mode and UDisk Burn and then clicked on Download. It apparently did something as after ~20 sec, the tiptoi eventually disconnected. But it did not reboot either...

What experiences do you have with this process?

OK, maybe it's little bit too late.

But, after importing the upd file and check the update and the udisk options, you must connect the tiptoi with usb then hold the power button and maintain the resistor between GPIO13 and GND during all process (and not remove one of them after 2s)

uli42 commented 5 years ago

On Sun, Oct 13, 2019 at 2:19 PM clean31 notifications@github.com wrote:

What to do next is less clear. I've ticked both Update mode and UDisk Burn and then clicked on Download. It apparently did something as after ~20 sec, the tiptoi eventually disconnected. But it did not reboot either...

What experiences do you have with this process?

OK, maybe it's little bit too late.

But, after importing the upd file and check the update and the udisk options, you must connect the tiptoi with usb then hold the power button and maintain the resistor between GPIO13 and GND during all process.

Have you successfully flashed a pen with this method?

There are different types of TipTois around as mentioned here: https://github.com/entropia/tip-toi-reveng/wiki/Firmware#usb-storage-boot-mode-firmware-flashing. Could you please extend that wiki page with your finding(s)?

Thanks,

Uli

clean31 commented 5 years ago

Yes I had corrupted my pen during a software update with used batteries. My pen is a 4GB B6.

With the method above and the software Burntool.exe v3.0.18 and the file Update3202MT_fr.upd, i have succesfully flashed my pen. Thanks to all for the informations and the wiki.

I have updated the wiki page.

Update: It is so hard to find the tool and the good version, so I share the link and the video to understand how the tool works.

Burntool V3.0.18: https://cloud.mail.ru/public/M3sf/RncLHL7YH/ Youtube video : https://www.youtube.com/watch?v=SOUAX99RO6g

uli42 commented 5 years ago

Thank you! We should encourage people with a broken pen to try that!

Uli

clean31 notifications@github.com schrieb am So., 13. Okt. 2019, 15:25:

Yes I had corrupted my pen during a software update with used batteries. My pen is a 4GB B6.

With the method above and the software Burntool.exe v3.18 and the file Update3202MT_fr.upd, i have succesfully flashed my pen. Thanks to all for the informations and the wiki.

I have updated the wiki page.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/entropia/tip-toi-reveng/issues/144?email_source=notifications&email_token=ABQHBZCDT5A7KZS2PPB5A5TQOMOTLA5CNFSM4C72WAF2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEBCWG4I#issuecomment-541418353, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABQHBZBB44ZVKKNKRKEGFADQOMOTLANCNFSM4C72WAFQ .

B-G-T commented 5 years ago

I can confirm that it works fine!

B-G-T commented 5 years ago

One more remark: The 1 kOhm resistor can be removed after the pen has started. It is not necessary to keep it in place during the flash process.

clean31 commented 5 years ago

In my case, it does not work if I remove the resistance or if I release the power button ... I do not understand why, it stops the flash process.

Le lun. 14 oct. 2019 à 22:51, B-G-T notifications@github.com a écrit :

One more remark: The 1 kOhm resistor can be removed after the pen has started. It is not necessary to keep it in place during the flash process.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/entropia/tip-toi-reveng/issues/144?email_source=notifications&email_token=ANPDTV3YZU7UKXNGK2XRVVTQOTLWPA5CNFSM4C72WAF2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEBGPJZA#issuecomment-541914340, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANPDTV2K6OF4DTUJCHEYTITQOTLWPANCNFSM4C72WAFQ .

uli42 commented 5 years ago

Might be depending on the pen version. I am still wondering why we did not find this out much earlier. We already had it...

B-G-T commented 5 years ago

The level of port GPIO13 is checked only at the beginning of the SOC booting process. Hence the SOC remains in the selected mode until reset. The power button must be kept pressed because the "auto-hold function" (incl. automatic power down) is active only in "user mode". I experienced also failed flash processes but from what I could see it's not related to disconnecting the resistor.

B-G-T commented 5 years ago

Flashing is now understood and works. Can we close this issue?

maehw commented 4 years ago

Sounds great.

Three questions:

  1. Has anyone further tried to sniff the USB data with a packet analyzer?
  2. Has anyone recorder further UART debug output on GPIO13? (We've seen a debug message here earlier.)
  3. Has anyone tried the update mechanism under Linux with a Windows VM?

Cheers

maehw commented 4 years ago

Update:

I cannot reproduce flashing a pen with the BurnTool. Is there anything specific one should do? Can somebody provide a detailed step-by-step guide, please?

Could anyone provide a detailed log of the USB data (this can be done wit Wireshark + USBPcap), this would be very much appreciated. My findings concerning the SCSI-based USB mass storage boot are currently documented here: https://github.com/maehw/snowbirdopter/wiki/USB

B-G-T commented 4 years ago

Can you enter the Storage Boot Mode (https://github.com/entropia/tip-toi-reveng/wiki/PEN-Firmware)?

maehw commented 4 years ago

Yes, I've even identified Boot ROM code responsible for the SCSI commands that are used, but it's not 100% clear. See also: https://github.com/maehw/snowbirdopter/wiki/USB

nomeata commented 4 years ago

Is this discussion still active or can I close this issue?

jurgenvdven commented 10 months ago

Hi all,

I tried to flash my tiptoi B6 using method 1 https://github.com/entropia/tip-toi-reveng/wiki/PEN-Firmware

But get stuck with step 5, when I try to get the device into boot mode I hear the Chime sound but without talking. So it seems that the resistor is doing something. (because without resistor i hear a chime sound and talking)

Unclear if this is enough, when i connect the device with USB, the USB drive is mapped and the ankay burn tool doesn't start automatically to download, When i click on download it is doing something like disconnect usb and connect again but the USB drive is mapped again.

I tried different scenario's but without a solution.

What could be the problem?

B-G-T commented 10 months ago

Hi,

As you hear the chime sound, I suppose you haven't entered the Storage Boot Mode.

Do you have the possibility to read the log output which is sent on GPIO13?

jurgenvdven commented 10 months ago

How can i read from gpio 13?

I have an usb uart device but not sure how to connect on tiptoi

B-G-T commented 10 months ago

You connect GPIO13 (Tiptoi UART TXD) to the UART RXD pin of your USB UART device. Of course, GND needs to be connected too. Then you listen at 38400 bps.

That's all.

jurgenvdven commented 10 months ago

thank you for your comment. The tiptoi is working.

When de tiptoi is booting in normal mode, is say's "Hello, please wait" so i expect that when the pen is ready there will be another sound or voice but it does not say anything or sound. Also the manual from ravensburger notes when the pen led is flashing a reset is needed. But that was not the case.

After all i found that when the pen says "hello, please wait" open a book and hit something and the pen is working as expected. After a normal reboot the pen say's "Hello" without please wait.

I don't know human error or crappy instructions.