Description
I bought a development board called MangoPi MQ-Quad
It has H616 Soc and an empty SPI flash pad
I tried to compile mainline uboot for it, but there was something wrong when I tried to boot from FEL.
I used sun50i-h616-orangepi-zero2 as template so DT name is sun50i-h616-orangepi-zero2
$ sudo sunxi-tools/sunxi-fel ver
AWUSBFEX soc=00001823(H616) 00000001 ver=0001 44 08 scratchpad=00007e00 00000000 00000000l
$ sudo sunxi-tools/sunxi-fel -v uboot u-boot-sunxi-with-spl.bin
found DT name in SPL header: sun50i-h616-orangepi-zero2
Stack pointers: sp_irq=0x00021400, sp=0x00053FD4
MMU is not enabled by BROM
=> Executing the SPL... done.
usb_bulk_send() ERROR -7: Operation timed out
and the serial output
U-Boot SPL 2022.10-00409-g2afa989fbe-dirty (Oct 07 2022 - 23:37:55 +0800)
pmic id is 0x4b
DRAM: 1024 MiB
Trying to boot from FEL
and then It stuck, no more output, sunxi-fel can't recognize fel device, I have to plug USB again.
To make sure it wasn't the compiled uboot that was the problem, I used someone else's compiled uboot.
$ sudo ../sunxi-tools/sunxi-fel -v uboot u-boot-sunxi-with-spl-armbian.bin
found DT name in SPL header: sun50i-h616-mangopi-mcore
Stack pointers: sp_irq=0x00021400, sp=0x00053FD4
MMU is not enabled by BROM
=> Executing the SPL... done.
usb_bulk_send() ERROR -7: Operation timed out
still stuck:
U-Boot SPL 2021.10-00409-armbian-dirty (Sep 29 2022 - 17:22:28 +0800)
pmic id is 0x4b
DRAM: 1024 MiB
Trying to boot from FEL
I also made some other attempts to try to solve the problem, including:
- downgrade my binutils (binutils 2.39 has some rwx-segment warning, I have to modify Makefile to compile ATF and uboot)
- connect my board to a USB2.0 Hub (my laptop all USB ports are USB3.0)
- change USB_TIMEOUT in fel-lib.c from 10s to 60s
- change AW_USB_MAX_BULK_SEND in fel-lib.c from 512KiB to 128KiB (usb_bulk_send() ERROR -7: Operation timed out on Raspberry PI 3 B+ #162 )
- replace another USB Cable
however, it still stuck at "Trying to boot from FEL".
#162 also Mentioned with the installation source
but my sunxi-tools is git clone from this repository. I also tried AUR pakage: sunxi-tools-git, still not solved.
Thore-Krug/Flash-CHIP#21 Mentioned downgrade sunxi-tools. This is obviously not appropriate for a new model like H616.
Activity