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


New motherboard - ANX firmware won't flash. - --- - 12-14-2020

Finally got the ANX firmware update accepted using postmarketOS & Phosh, anyone else solving the same issue might want to try this first.

Just replaced with 3GB version. The wiki instructs flashing ANX firmware but:
ash: write error: Operation timed out

I have usb ssh access but not usb file manager (Thunar) access. Not sure if this is an issue?


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

I think the anx firmware needs to be flashed from the phone directly.


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

Yep, that's how I tried it (Sxmo & Mobian).
Phone is accessible via usb ssh, and visable in gui file manager but won't mount.
"Failed to mount 'PINE64 PinePhone' - Unable to open MTP device 001,007"


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

if you use ssh through the usb and update part of the usb firmware the connection is broken no? Sorry if i'm misunderstanding.


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

When I try to update the ANX firmware as directed (as root 'sudo su'), and USING the touch screen interface (NO usb connected):

Smxo = ash: write error: Operation timed out

Mobian = bash: /sys/class/typec/port0/device/flash_eeprom: Permission denied


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

on mobian try writing:

sudo -i

echo 1 > /sys/class/typec/port0/device/flash_eeprom

Source: https://askubuntu.com/questions/230476/how-to-solve-permission-denied-when-using-sudo-with-redirection-in-bash


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

(12-16-2020, 10:56 AM)Nooblife Wrote: on mobian try writing:

sudo -i

echo 1 > /sys/class/typec/port0/device/flash_eeprom

Source: https://askubuntu.com/questions/230476/how-to-solve-permission-denied-when-using-sudo-with-redirection-in-bash
Thanks for the suggestion, I had also tried that but same result.


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

Sorry i can't help you out. Hopefully someone more knowledgeable can help you. ?

It does sound like some permission issue, i did it on megis multiboot image, but i don't remember if it was manjaro or postmarketos that i used.


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

@Nooblife Hopefully someone more knowledgeable can help you?

Thanks - yep, as a replacement for the original faulty motherboard I would appreciate complete instructions.
I believe there is nothing non-standard that I am doing in this setup/process.
I'm am not even sure whether the firmware is required in my case however I do have multiple issues at the moment:
Sxmo = no charging, no touchscreen, distorted gui interface.
Charging is available on Mobian.

/sys/class/typec/port0/device/flash_eeprom contains text "Write 1 to this file to initiate firmware flashing. Consult dmesg for results."

After echo 1 > /sys/class/typec/port0/device/flash_eeprom dmesg reports:
anx7688 1-0028: power enabled
anx7688 1-0028: eeprom wr 10 02 00 26 02 19 fb 00 00 00 00 00 02 02 57 90 72
anx7688 1-0028: eeprom wr 20 05 e4 f0 a3 e0 44 02 f0 e0 54 fd f0 12 76 65 02
anx7688 1-0028: timeout waiting for eeprom
anx7688 1-0028: power disabled

echo 1 > /sys/class/typec/port0/device/flash after booting with 'modem killswitch ON' dmesg reports:

IPv6: ADDRCONF(NETDEV_CHANGE): usb0: link becomes ready
anx7688 1-0028: boot firmware load failed (you may need to flash FW to anx7688 first)
anx7688 1-0028: power disabled
anx7688 1-0028: OCM configuration failed
anx7688 1-0028: power enabled
anx7688 1-0028: eeprom wr 10 02 00 26 02 19 fb 00 00 00 00 00 02 02 57 90 72
anx7688 1-0028: eeprom wr 20 05 e4 f0 a3 e0 44 02 f0 e0 54 fd f0 12 76 65 02
anx7688 1-0028: timeout waiting for eeprom
anx7688 1-0028: power disabled


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

Finally got the ANX firmware update accepted using postmarketOS & Phosh - 5:30AM - going to bed now.