Closed nrichards closed 6 months ago
Padding might be related how the code finds the header, but padding at the end should be fine, qunmk2.bin is just an expanded bin file. How much is the likelihood of the issue? Issue (i) can happen only when firmware was not written, this case you should not see "Firmware uploaded" message on Qun's screen. Issue (ii) is almost impossible, firmware updater is located different address of flash, if it's broken, it;s bricked.
I believe the issue should be closed. I just need to press harder.
More:
I believe it is my hardware: the actual REC button (needed to trigger firmware update during reboot) might need to be pressed harder than I have previously pressed. The issue started when I received a new, modded board, recently. I am used to pressing gently. I am able to reliably flash, now, when I press hard.
Padding might be related how the code finds the header, but padding at the end should be fine, qunmk2.bin is just an expanded bin file.
Yes. I just successfully updated firmware (to 5.04 from 5.02). I confirmed the BIN file has padding at the end of the file. Since it was successful, I agree the padding is not a problem.
Thank you for thinking this through with me.
Various numbers of bytes of padding is added to firmware files (
qunmk2.bin
) on SD card when uploaded through the web interface, unpredictably.Browser header identification data is appended during the Chrome web interface file upload process, per the "WebKit" string in the second experiment, below.
Noticed this behavior first when updating to 5.00.
Impact
I am unable to reliably flash firmware through the web interface. Device refuses to install padded firmware files.
Workaround
Details
Copied firmware from Qun SD card and examined
NOTE:
qunmk2\(8\).bin
is my freshly downloaded file, direct from the internet.qunmk2_from_QUNMK2.bin
is copied from the SD card.(From Firefox)
Calculate filesize differences
Compared contents of firmware files
Files are the same, until the end of the SD card. Left file is ORIGINAL. Middle (second .. Chrome), and right-hand (first .. Firefox) side shows padding added to end of uploaded firmware file, undesirably. Notice "WebKit" string in the Chrome web browser uploaded file.
Questions