PINE64
New motherboard - ANX firmware won't flash. - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: PinePhone (https://forum.pine64.org/forumdisplay.php?fid=120)
+--- Forum: PinePhone Hardware (https://forum.pine64.org/forumdisplay.php?fid=122)
+--- Thread: New motherboard - ANX firmware won't flash. (/showthread.php?tid=12506)

Pages: 1 2


RE: New motherboard - ANX firmware won't flash. - Nooblife - 12-17-2020

Nice! Must be something weird with Mobian then. Glad your device wasn't faulty Big Grin


RE: New motherboard - ANX firmware won't flash. - p1x3l3d - 12-22-2020

(12-16-2020, 11:26 PM)--- Wrote: Finally got the ANX firmware update accepted using postmarketOS & Phosh - 5:30AM - going to bed now.

Hey @--- , really wondering how you managed to flash new ANX firmware. I'm now trying it with postmarketOS with Phosh DE, aaannnnd:

Code:
# echo 1 > /sys/class/typec/port0/device/flash_eeprom
ash: write error: Operation timed out

Have tried with killswitches for modem on/off, bluetooth/wifi on/off, nothing helps. Also tried pmOS with Plasma Mobile and openSUSE with Phosh. Out of ideas now Tongue

So yeah. Would like to know what magic you conjured at around 5:30AM Wink


RE: New motherboard - ANX firmware won't flash. - --- - 12-22-2020

@p1x3l3d
Before attempting to flash I was able to usb/ssh in using Sxmo. Dmesg reported that the ANX chip required the flash update. I tried to flash with Sxmo, Mobian, UBPorts numerous times with numerous versions. Each time the flash failed due to a 'permission issue' or a 'flash timeout issue'. I zapped, pulled, checked status, and reinitialised pmbootstrap (postmarketOS) each time I used it. Eventually I tried the Librem 5 UI Phosh on postmarketOS. I have no idea why it worked but it did. Good luck


RE: New motherboard - ANX firmware won't flash. - p1x3l3d - 12-23-2020

thanks @---, good to know that it was more or less random for you when it did work. I did already try postmarketOS with the Phosh DE, but during that attempt also got the 'Operation timed out' error.

Guess I'm just going to have to keep trying! Will report back here once I've got it working.


RE: New motherboard - ANX firmware won't flash. - p1x3l3d - 12-23-2020

Okay, so I did it! Smile I gave up yesterday not long after I posted this message, and decided to give it a try again just now. What I did:

- Download latest Mobian nightly (specifically build mobian-pinephone-phosh-20201223), flash it to micro-SD card, boot from it with a USB-cable connected, supplying only power (no data!)
- Walk through intro wizard, connect to wifi
- Did not log into phone through SSH, but instead went straight to the wiki article describing how to flash the ANX firmware using Firefox on the phone
- Copy-pasted the commands from the webpage into a terminal (King's Cross) on the phone
- Profit! That was all there was to it Smile

All of the kill-switches were turned on during this process. I did not get any feedback of the flash actually being successful, but since I got only errors previously and none of those (or other messages) this time I'm just going to assume all went well.


RE: New motherboard - ANX firmware won't flash. - --- - 12-23-2020

Great! Yep, there is no direct indication that the flash succeeded. Dmesg should no longer suggest it is required though.


RE: New motherboard - ANX firmware won't flash. - ziggutas - 12-24-2020

Thanks @--- @p1x3l3d & all in this thread. Mobian worked for me (not connected to pc) after all others failed. No way I could copy and paste from browser!! Downloaded anx file and manually entered everything.

Others have been helped by this over on the UT forum too...

https://forums.ubports.com/topic/5338/pinephone-steps-after-swapping-in-a-new-mainboard-revision/4

Happy Christmas!!


RE: New motherboard - ANX firmware won't flash. - p1x3l3d - 12-26-2020

Glad our experiences were helpful @ziggutas, happy to help! Smile