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
(Linux) Problems installing Mayhem firmware to PortaPack H2+ #802
Comments
Hello.
There are a few cases where the compatibility check is failing without outputting any informations about the failure.
The last firmware is having more boot up keys: Please see https://github.com/eried/portapack-mayhem/wiki/Won't-boot |
Please not that I do not support or endorse any failure ;-p |
So I guess my first problem is actually being able to ensure that the PortaPack is in "HackRF mode" before trying to update the firmware. I have tried holding each of the buttons down as I switch on the device, but none of them seem to help me get past the black screen. |
Ok, so I can see why the compatibility check is failing. The function
The It looks like GSG are using a new firmware info structure on the latest boards? Not sure how this would affect the flashing process if I chose to ignore the compatibility check ... |
Ah, so looking through the There is also a hackrf_one_usb.bin firmware blob within the nightly build, but this doesn't appear to contain the "HACKRFFW" magic at all so not sure what it's used for ... |
disabling the compatibility check, with the |
Apologies for the spam ... so after disconnecting my HRF1/PP from the USB and then reconnecting it, my device can no longer be found - the USB LED on the HRF1 does not light up when connected. The only way I have found to re-establish the USB connection is to detach the PP and enter DFU mode on the HRF1, then use |
Hi Phil, |
Hi , let me copy / paste an old post from january that I shared in discord. In my case , dont ask me why , but I got the same problem than you. The strange way that I found to solve that H2+ (and H1) when no power up , just black LCD, it is the following one : (2) pic up Hackrf, and if you have correct LED green and correct USB Comm., flash it ,if H2+, with special fw jumbo77 1.43 (if H1 use official fw 1.43) binary (if it is not bricked ) (if it is bricked ,-no LED green (3) assembly boards , confirm correct power up . (4) put the device in Hackrf mode and reflash latest Mayhem binary ex 1.60) ,.and in the first power up , keep pressing left button (in a H2+ with WM8731 big CPLD QFP100, ex my unit ) for > 2 secs till getting correct LCD display. (After that intermediate process just black LCD-->1.43-->1.60 , from 1.60 onwards , you will be able to upgrade it to any new 1.6x directly , without that recover process) . |
Seems like the solution for me as well 👍 |
From fw version 1.5.4 onwards , it was introduced that PR #662 that uses the persistent memory to test and store the hardware and LCD config settings . And that memory uses the same back up voltage than the Real Time Clock calendar, both needs a healthy cell battery button voltage . But sometimes, in a reflashing process , although we got good battery cell button voltage, the unit seems to be bad initialized in those persistent bytes and we got strange black screen . (And probably doing those above steps we are re initializing them , just my guess ) . |
I agree with @Brumi-2021 explanations. Maybe we should add something about it in the FAQ ! |
@Brumi-2021 done. Feel free to adjust :-) |
As the issue is resolved and now documented, I'm closing it. |
Yeah I tried the jumbo77 firmware build but it still didn’t work correctly for the R9 hardware, so that doesn’t solve the problem sadly. Apparently GSG have submittier a pull request to the original PP firmware (sharebrained/portapack-hackrf#187) to add support. I’ll try and take a look to see what the changes are, that are required to get the Portapack supporting the latest hardware. |
Been looking at the 30+ changed files compared to the master https://github.com/sharebrained/portapack-hackrf, but Mayhem has added quite a lot of code that specifically addresses the max2837, for instance. Looks like max283x will be helpful, though. Any quick way of doing this or is this a line-by-line scrub? Might take some time to get R9 boards working with the H2. |
I went through the changes submitted in the GSG pull request and, with a couple of additional edits, managed to get the Mayhem firmware working on the R9 build. I haven’t been through and tested all the Apps but the device is at least functional now. I still lose USB connectivity after updating the firmware, so I need to figure out what’s going on there. I can work around the USB issue temporarily, using DFU mode as necessary. So almost there … 😎 |
Good progress and good news ! |
It turns out the USB issue was a misunderstanding on my part - once I switched correctly to "HackRF Mode" on the PortaPack I was able to successfully use the USB interface. I've submitted a new Pull Request with the changes needed to get the Mayhem firmware working for the latest HackRF One R9. I've not been through and tested each of the Apps, but as far as I can tell there are no changes that should directly affect them. |
I separately purchased a PortaPack H2+R3 and HackRF One but am having trouble installing the Mayhem firmware to the PortaPack. My HackRF One is running the latest firmware (2023.01.1) as shown in the output from
hackrf_info
:I downloaded the latest nightly Mayhem build (230208) to be sure that it would be built from the same base firmware and tried to install it using the command
hackrf_spiflash -w portapack-h1_h2-mayhem.bin
, but received the following error:I'm running Ubuntu 22.04.1 LTS. When I switch the PortaPack/HackRF on the screen flashes briefly before reverting to a black screen, so I don't have any option to select "HackRF Mode". I've tried rebooting whilst holding the LEFT button, and separately whilst holding the UP button, but the display just does the same thing each time (flashing briefly before reverting to a black screen).
Both the PortaPack and HackRF are both new devices so I have not previously updated the firmware on either device.
The text was updated successfully, but these errors were encountered: