-
-
Notifications
You must be signed in to change notification settings - Fork 718
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
DFU Flashing error for the new DFU files on Windows #1070
Comments
Hi, This feels like you have an old For example this is flashing the file for me:
If I try and use the
So I'm suspect the version of dfu-util you are using is too old for this and is flashing the dfu header to the device instead. (And thus it wont boot as its not riscv code) |
You might be right. I used the dfu-util included with the Pinecil Updater tool from here: So you might want to warn those guys as well. About the new DFU changes and the binary they include not being compatible 👍 NVM, ill write them :D |
@Johnex I think I got ahead of you: pine64/pine64_updater#17 |
Almost 😂 |
Ah that would make sense as a reason for the issue. |
I downloaded the 0.11 dfu-util from http://dfu-util.sourceforge.net/releases/ flashed 2.16 using: And it flashes successfully, but now I have a garbled screen instead of the blank screen? |
Now that is odd |
I flashed the dfu file yeah. Do you have the command for dumping? I tried just
|
Just to note, I flashed back to 2.15 just to test and it works fine, so no permanent damage at least 😋 I flashed 2.16 again and it's the same corrupted :( Might be unrelated or related, the automatic screen orientation option in the semi corrupt 2.16 does not work. I thought it might be related to the QC changes, but i tested both using just USB legacy power and USB-C PD, same issue. Could it still be that though? There is a consistent timeout from poweron -> corrupted screen -> fixes itself, about 70 seconds. |
You will need to specify the alt to be 0 by adding The corruption looks like I2C is having a bad day but how you get to that state I'm really not sure. On the 2.16, does PD work? Does the accerometer work? (You can check this by going into debug menu down to the PCB/ACC option) |
I'm having the same issue on Mac OS (11.6), though |
You should not require the -a 0 if you are using the |
Updated dfu-util, works fine now without -a 0 |
Ah PCB is the older name sorry, |
On 2.15 everything works flawlessly *(got same weird screen with dots as Johnex, after some time it became OK, but after plugging power out and in it just shows "Advanced Options" menu preview and doesn't recover even after some time) |
Hrmm very weird,
Can you please try using a non multi-lingual firmware release to narrow down if the issue is related to that or not? (We do some interesting repacking to make them work) Additionally, have attached a local build with Realise its effort and I apologies, I have not been able to replicate this with local builds or with github builds and would love to narrow down if its firmware or dfu-util related :) |
Just to clear up a few misunderstandings and misconceptions:
|
I had the same problem with dfu-util 0.11, then the problem disappears and it no longer did it, on the other hand at each start it hangs for 2/3 seconds like a mini-freeze, and on a PD power supply it is as if it confused PD and QC, because it does not exceed the value set in the QC parameters I am using a pinepower USB-C PD 20V
|
Sorry for waiting, I've remembered that my solder was not made for just playing with firmware xd |
The mini freeze would indicate that I2C is not working. You should be able to see the accelerometer model under either ACC or PCB (depending on firmware version). Trying to figure out what it is out of :
|
I tried the RC yesterday and had the same issue with the dots on the screen, The old firmware (2.15.40087E6) indicates PCB 5. But I'm going to flash to the RC again with the bin file to see if there are any changes. Edit: no changes. Just dots on a screen and buttons don't appear to do anything (I did not wait long enough to see if it fixes itself). |
Same here, PCB 5 |
Hmm okay PDB 5 is interesting as the SC7A20 is a bit odd. |
I re-flashed the stable release, in the debug menu it is also a PCB 5 |
So I reverted back to 2.15 again and noticed the readings were waaaay off. It was reporting USB-C PD voltage as 45V 🤣, so i did a factory reset and that fixed it. If you revert back after testing, make sure to factory reset even if things look normal 👍 I am on PCB 5 as well. I updated to 2.16 yet again, same issues as before. In the debug menu it says |
I have the same problem with the PD power supply, when you go up to 20V in the QC settings, it goes up to 20V in PD? Strange |
Okay have narrowed this down to a bug somewhere in the I2C state machine setup not playing well with this accelerometer. Sadly dont have time left tonight to sort this out, but will be on this asap
That would be, because you are using QC not PD |
I use a pinepower and a lenovo charger, so yes it's PD, but taking the version in the artifacts, to the right of the pinecil screen it shows me the voltage which is set in "QCMaxVoltage", even with PD power supplies I have tested multiple values to be sure and it always shows me the value of this option |
I'm unsure of the Lenovo one, but I can vouch the pinepower does QC to 20V too. If you adjust the menu without a restart and it updates it has to be QC as the current PD only ever negotiates once per boot cycle. :/ Otherwise I don't see how it's working like that |
I was pointing this out thinking it was a problem other users were having as well, it's the portable pinepower with two USB-C (PD) ports and one USB-A (which does QC), I plugged in a 5V fan on it to try and the Pinecil turns on again at 15V it must be normal, otherwise the power supply has a problem, but in all cases the PD values are fixed, from what I think, 15V, 20V ... And by putting 16, 17V in the QC parameters it shows me well 16V, 17V it's really strange My lenovo PSU is a ADLX65YDC3D |
If you have time (don't feel pressured) This works on my unit with the SCA, but would love external validation |
I tested the new version, flashed the Pinecil_multi_compressed_European, no issues when flashing and on first boot I got a warning saying some settings had changed. The message was displayed for a long time too, I thought the pinecil had hanged 😅 Accelerometer works fine, PD works fine and everything is work as expected so far 😍👍 When connecting via legacy USB to the computer, I do get a "device not recognized" warning. Would it be possible to fix that in the future so that windows knows at least to only supply power, and not try to mount the device? |
Hmm, how long did it show up for?
Not without disabling support for QuickCharge or adding some method of telling QC chargers apart from a USB host, which I suspect without actually doing USB would be not-fun. |
It showed for like 5 seconds or so? And the boot after that took another few seconds before the main screen showed. After that first boot the main screen shows instantly. I guess it was just related to the settings reset? |
Hmm interesting. Will have a look and see what I can find when I get time |
It's probably just nit picking honestly 😅, just something I observed. |
Its a hint something isnt optimal so work at least a quick poke :) |
I guess we can lock this unless anyone else finds any issues 😎 |
👍 confirmed working on the ACC SC7A20. Thank You!
If I press the |
Ohh, I interpreted that as it hung ignoring button presses. Excellent glad its working properly now 😓 that was a fun one to figure out (bugs hiding bugs) |
No I never tried the button, I just guessed it would go away on it's own 😁 Thanks for all the hard work! 🤗 |
Ah well that explains it 🤟🏼 |
Sounds great, this will be an awesome release 😎 |
Describe the bug
"More than one DFU capable USB device found!" Error when flashing Pinecil 2.16 dfu file on Windows.
To Reproduce
Following the Flashing Guide for Pinecil I ran the following command:
dfu-util -D Pinecil_multi_compressed_European.dfu
The output is the following:
More than one DFU capable USB device found! Try --list and specify the serial number or disconnect all but one device
Running the --list command gives:
Flashing with more flags to set the partition succeeds:
dfu-util -a 0 -D Pinecil_multi_compressed_European.dfu -s 0x08000000
But the device does not boot at all. The screen is black and usb reports a bad usb device. Reverting back to 2.15 works fine.
Expected behavior
Flashing to succeed without the error
Details on your device:
The text was updated successfully, but these errors were encountered: