linux-sunxi / sunxi-tools

A collection of command line tools for ARM devices with Allwinner SoCs.
http://linux-sunxi.org/
GNU General Public License v2.0
573 stars 419 forks source link

usb_bulk_send() ERROR -7: Operation timed out on Raspberry PI 3 B+ #162

Open studiofuga opened 2 years ago

studiofuga commented 2 years ago

When trying to boot from FEL mode on a perfectly working setup (cable and board) from a Raspberry PI 3B+ board, timeout happen:


pi@raspberrypi:~/sunxi-tools-1 $ ./sunxi-fel  ver
AWUSBFEX soc=00001667(A33) 00000001 ver=0001 44 08 scratchpad=00007e00 00000000 00000000

pi@raspberrypi:~/sunxi-tools-1 $ ./sunxi-fel -v uboot u-boot-sunxi-with-spl.bin 
Stack pointers: sp_irq=0x00002000, sp=0x00005E08
MMU is not enabled by BROM
=> Executing the SPL... done.
Writing image "U-Boot 2018.05 for sunxi board", 549287 bytes @ 0x4A000000.
usb_bulk_send() ERROR -7: Operation timed out

According to this thread, the issue may be related to the maximum transfert block size. Indeed changing from 512kib to 128kib fixes the issue.


pi@raspberrypi:~/sunxi-tools-1 $ ./sunxi-fel -v uboot u-boot-sunxi-with-spl.bin 
Stack pointers: sp_irq=0x00002000, sp=0x00005E08
MMU is not enabled by BROM
=> Executing the SPL... done.
Writing image "U-Boot 2018.05 for sunxi board", 549287 bytes @ 0x4A000000.
Starting U-Boot (0x4A000000).
pi@raspberrypi:~/sunxi-tools-1 $ 
tu95 commented 2 years ago

Though you use apt source to install sunxi-tools, you will get error which tell you "usb_bulk_send() ERROR -7: Operation timed out". You should git clone sunxi-tools and build it from source code, you will solve this problem.

aslubsky commented 6 months ago

The same story, increased the timeout, reduced the size from 512kb to 128kb, nothing helps, both the version with apt (v1.4.2) and the master branch (v1.4.2-178-gdf60a46-dirty) do not work. Any suggestions?