Thore-Krug / Flash-CHIP

Ready to use Flash environment for the C.H.I.P Single Board Computer
260 stars 80 forks source link

Flashing CHIP on Raspberry Pi - usb_bulk_send() ERROR -7 #15

Closed Superlub closed 5 years ago

Superlub commented 5 years ago

root@raspberrypi:/home/pi/Flash-CHIP/CHIP-tools# sunxi-fel -l USB device 001:027 Allwinner A13 16254291:50303743:39383030:0d4267de

root@raspberrypi:/home/pi/Flash-CHIP/CHIP-tools# FEL='sudo sunxi-fel' FASTBOOT='sudo fastboot' SNIB=false ./chip-update-firmware.sh -gn == Gui selected == == No Limit mode == == preparing images == == Local/cached probe files located == == Staging for NAND probe == Image Name: detect NAND Created: Tue Oct 15 21:28:18 2019 Image Type: ARM Linux Script (uncompressed) Data Size: 97 Bytes = 0.09 kB = 0.00 MB Load Address: 00000000 Entry Point: 00000000 Contents: Image 0: 89 Bytes = 0.09 kB = 0.00 MB waiting for fel...OK usb_bulk_send() ERROR -7: Operation timed out

53K70R29 commented 5 years ago

Could it be your USB cable is inadequate? Received this a couple of times then changed to a better cable and this solved it!

Thore-Krug commented 5 years ago

Its Power related, Pls use a Proper Power supply and cable

Superlub commented 5 years ago

I tried several USB cables on various Pi's and a VM virtualbox (Debian) on Windows 10.

All ending with the usb_bulk_send() error -7.

Maybe this is relevant:

https://github.com/linux-sunxi/sunxi-tools/blob/master/fel_lib.c { /*