-
-
Notifications
You must be signed in to change notification settings - Fork 622
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
"Empty" firmware.bin (with flash utility) #2481
Comments
Hello, we already have it. Please check https://github.com/portapack-mayhem/shipping-firmware Thank you. |
Cool, didn't know that, thanks. |
https://github.com/portapack-mayhem/mayhem-firmware/wiki/Update-firmware |
Thanks. |
BTW, does the shipping-firmware support ExFAT on the SD? |
Hmm I don't think it was updated to support it. |
I was just thinking that is Hackrfone/Portapack capable of booting via sd card slot or from the usb port? I mean could it be possible to create a bootable sd card or a usb stick that would install the latest firmware from the sd card or via usb port installed usb stick even in DFU mode automatically or almost automatically? |
I think it’s impossible to do that, because we can’t do modification to DFU, because DFU is hard defined in the NXP mcu chip and no one can touch it. But if you just want sort of “automatically” flash firmware then yes, it’s easy to modify the firmware to detect specific file name and flash on boot. It however sounds meaningless because it cannot behave like sort of “recover device from bad situation” because if boot failed, then it cannot automatically flash, and if the boot succeed, then it’s pointless to flash again. And for your first question, if I read it correctly, you are asking if it’s possible to directly boot from sdcard, (like PlutoSDR I assume). I could be wrong about this tho, because I had never took a deep look of the NXP mcu on HackRF (and even if I take a deep look, I may not able to understand it completely), so I’m re-opening this issue so people who’s interested can check. A bit update: |
Hmm...does |
From what i understood, it’s not really possible to touch the DFU program, because that’s why it can be used as DFU. If you can modify it, it could be broken. |
You need a computer to download the firmware anyway. |
Mainly the reason is that if you need to use it in place where you don't have access to computer (or very poor access) and the amount of stuff you can carry is limited. And you need to travel with only shipping firmware installed. So to have self booting SD or USB could have been convenient in case something goes wrong when switching from shipping firware to the official firmware. And also downloading and writng a bootable card in general might be a bit easier than uploading firmware with terminal commands. At least for basic users like me :) I was also thinking that it would be nice if Hackrf.app could have an option to upload firmware and all the required commands when the device is in DFU mode? At least I tried it, but it was not able to detect the device in DFU mode. I understood that it could be at least theoretically possible via Google Web Serial API? |
DFU doesn’t have serial support. And even we completely implemented the DFU tool inside of MayhemHub with WebUSB instead of Web Serial or sort, we still cannot modify the DFU program of hackrf like I mentioned above. |
If what you actually want is just hide some apps in specific case, just use App Manager to hide apps |
Oh yes, hmm..... I understand what u mean.....But still I think I'd prefer a "totally empty" shipping firmware with only tetris and pacman available :) But anyway thank you for the answers and the effort of investigating all the possibilities and details about the NXP. I really appreciate this. |
You are welcome. |
Thanks. And I totally understand that there is a lot of things to do. But I like to send some ideas that I find interesting and hope that that some of them might be useful or at least interesting to someone else too, or for the whole community. Been doing some small apps for ESP32 and I know that a simple working code needs many hours of work if it is wanted be work well and robustly. AI helps (amateurs like me) but a real human coders can make things happen so much faster cause they know what to do. For me a rather simple code for ESP32 (with a help of AI) it takes at least 12 hours to make it compileable (or perhaps better say "working" than compileable). But for a person who is a real coder it takes only 5 minutes :) That is why I consider myself a person who sends ideas rather than codes them to reality.....cause I can't......Or it takes forever :) |
Description of the feature you're suggesting.
Request for future development...
It would be nice to have an option that you could easily "empty" the whole firmware from HackRF/Portapack combo. Or you could have an option to update such firmware to the device that has no applications/function at all.
Idea is that it makes the device just a device that has no functions, only the capability to update firmware from sd card (Only flash utility). So if you want to turn the device to a "non functional circuit board" you could upload this "empty firmware" and the device would be just a dummy computer with only one capability to receive/install new firmware from sd-card.
And when you want to make the device a fully functional again you could just load the latest package to sd card and run the installation of the official firmware with flash utility.
Also a good instruction to Wiki how to erase flash totally and install firmware.bin from scratch would be nice.
And/or perhaps a tool for doing that could be another option...
Anything else?
No response
The text was updated successfully, but these errors were encountered: