Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fel connects but data not transferring #17

Closed
scheckley opened this issue Oct 26, 2019 · 13 comments
Closed

Fel connects but data not transferring #17

scheckley opened this issue Oct 26, 2019 · 13 comments

Comments

@scheckley
Copy link

scheckley commented Oct 26, 2019

Running the script on Debian Buster:

== Local/cached probe files located ==
== Staging for NAND probe ==
Image Name:   detect NAND
Created:      Sat Oct 26 19:58:32 2019
Image Type:   ARM Linux Script (uncompressed)
Data Size:    97 Bytes = 0.09 KiB = 0.00 MiB
Load Address: 00000000
Entry Point:  00000000
Contents:
   Image 0: 89 Bytes = 0.09 KiB = 0.00 MiB
waiting for fel....OK
usb_bulk_send() ERROR -7: Operation timed out

works ok on a Pi 3 running Jessie.

@Thore-Krug
Copy link
Owner

Did u run this on the same Pi ?

@scheckley
Copy link
Author

no - laptop running MX Linux 19 (Buster) and a separate Rpi3 running OSMC. Still searching to see if it's a local issue on the laptop.

@Thore-Krug
Copy link
Owner

Thore-Krug commented Oct 26, 2019 via email

@scheckley
Copy link
Author

scheckley commented Oct 26, 2019

ah ok, I will see if there's some kind of power saving on the usb port. otherwise, the only difference I can see is sunxi-tools is version 1.4.1 on the Pi and 1.4.2 on the laptop. I tried using a usb-c port on the laptop via an adapter and that gave the same -7 error, so possibly it's the OS rather than a malfunctioning socket, but I'll continue to investigate.

@scheckley
Copy link
Author

also investigating this linux-sunxi/sunxi-tools#100

could be related to sunxi-tools version in buster

@1sm1rk
Copy link

1sm1rk commented Nov 7, 2019

can confirm that, having the same problem with debian buster, did a downgrade of sunxi-tools to 1.4.1-1 from debian stretch. Works like a charm.

@thiemok
Copy link
Contributor

thiemok commented Nov 21, 2019

I had the same issue, but using sunxi-tools 1.4.1-1 from stretch on ubuntu 19.10 did not solve it for me.
However I could get it to work by connecting an external power supply to the chip.

@Thore-Krug
Copy link
Owner

It's a Power related issue so yeah providing more power should fix it.

@thiemok
Copy link
Contributor

thiemok commented Nov 21, 2019

Would it be worth to add this as a hint to the readme? Seems like people seem to miss this as a relatively simple fix when running into this problem.

@Thore-Krug
Copy link
Owner

I will add it later

@thiemok
Copy link
Contributor

thiemok commented Nov 21, 2019

No worries I can quickly make a pr

KeyTamer pushed a commit to KeyTamer/Flash-CHIP that referenced this issue Jan 1, 2020
+++
The only way witch worked for me to solve the time out problem. (Near to: Thore-Krug#17 (comment))
@RM250J
Copy link

RM250J commented Mar 19, 2020

I had the same problem, tried all sorts of different cables on an Ubuntu Eoan install with no luck. I had no idea how to downgrade sunxi tools to 1.4.1, so I went the long route, created a Debian Stretch Virtual machine and it worked first time with the same cables

@sridharrajagopal
Copy link

I'm facing the same issue. One chip successfully flashed, but the other is giving this problem. I modified the scripts to add verbosity to sunxi-fel, and saw that this is the command that fails:

sudo sunxi-fel --verbose spl .new/firmware/images/sunxi-spl.bin
Enabling the L2 cache
Stack pointers: sp_irq=0x00002000, sp=0x00005DF8
Reading the MMU translation table from 0x00008000
Disabling I-cache, MMU and branch prediction... done.
=> Executing the SPL... done.
usb_bulk_send() ERROR -7: Operation timed out

I've tried attaching the chip to a powered USB hub, but still have the same issue.

Thanks,
Sridhar

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants