Allwinner H616 FEL mode times out

496 views
Skip to first unread message

Nam Nguyễn

unread,
Mar 25, 2022, 3:11:01 AM3/25/22
to linux-sunxi
Hi All,
I'm working on H616 based board and trying to execute/upload uboot using sunxi-fel but not success after many tries.
I tried with windows 10 and ubuntu 20 (native, no virtualization), the device was detected but it always stuck at "usb_bulk_send() ERROR -7: Operation timed out".
I found that this error will appear when I try to upload a large file (larger than 32kb I think) or execute a successfully uploaded file in memory:

sunxi-fel -v uboot u-boot-sunxi-with-spl.bin
Stack pointers: sp_irq=0x00021400, sp=0x00053FFC
MMU is not enabled by BROM
=> Executing the SPL... done.
usb_bulk_send() ERROR -7: Operation timed out

Even I tried to turn the device from FEL mode to FES mode following this article (using boot 2.0 method): https://linux-sunxi.org/FES 

sunxi-fel version
AWUSBFEX soc=00001823(H616) 00000001 ver=0001 44 08 scratchpad=00027e00 00000000 00000000
(my device was detected at this line)

sunxi-fel -p write 0x2000 fes1.fex
100% [================================================] 31 kB, 167.4 kB/s (successfully uploaded fes1.fex, this file only 31kb) - At this step, fes1.fex is uploaded but it gave a timeout error when i tried to execute the code at that address.
I think the devices was hang after execute:
sunxi-fel -v execute 0x2000
(nothing is displayed after this command line)
sunxi-fel version
usb_bulk_send() ERROR -7: Operation timed out
(timed out error) I noticed that LiveSuit or PhoenixSuit can still switch the device to FES mode to flash the firmware,
It could be the same method on the article above because I saw the extracted img rom contains fes1.fex and u-boot.fex but somehow it's not working for me or I have missed some steps compared to PhoenixSuit.
Anyone can give me some advice/suggest? I'm quite new to this process and want to learn about it. My board is Tanix TX6s (Android TV board). Best regards, NamNH

Daft Soft

unread,
Mar 25, 2022, 10:51:11 AM3/25/22
to linux-sunxi
Hi!
I would advise rebuild sunxi-tools. I had problems with "usb_bulk_send() ERROR -7: Operation timed out" while trying to use sunxi-tools from binary.
Rebuilding (mostly relinking with actual libusb, I suppose) solved the problem in my case.

nya sun

unread,
Oct 9, 2022, 6:35:04 AM10/9/22
to linux-sunxi
same situation.
So much time has passed, have you found a solution?

jose vigno moura sousa

unread,
Sep 6, 2023, 10:56:54 AM9/6/23
to linux-sunxi
Sorry for my ignorance, but I have a problem. I have hardware with the ik316/h313, which I know is similar to the h616, but uses EMCP-type memory, and I'm trying to compile an image for it but when I use a mainline image it displays this error: U-Boot SPL 2021.10-->debian (Sep 05 2023 - 14:59:07 -0300) This DRAM setup is currently not supported. when using legacy this error appears: 355]vaild to:8 select dram to0 [358]board init ok [360] DRAM BOOT DRIVE INFO: V0.52 [363] the chip id is 0x5d00 [366]ic cant match axp, please check...
I already tried to recompile with the parameters of the dts that comes from the tvbox, but nothing, does anyone have any tips on how to redo the u-boot-spl.bin?? Another thing should I open a new topic on this subject???
Reply all
Reply to author
Forward
0 new messages