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

All nightly firmwares after V2.0.2-stable crash the portpapack H1 #2285

Open
ebs-10 opened this issue Oct 6, 2024 · 23 comments
Open

All nightly firmwares after V2.0.2-stable crash the portpapack H1 #2285

ebs-10 opened this issue Oct 6, 2024 · 23 comments
Labels
bug Something isn't working

Comments

@ebs-10
Copy link

ebs-10 commented Oct 6, 2024

Describe the bug.

All nightly firmwares after V2.0.2-stable crash my portpapack H1.
It boots to the HACKRF Portapack Mayhem splahscreen (also the hack.app still works then).
If you then press the middle button to go to the menu, the firmware (in this case Nightly Release - 2024-10-06) crashes with error:

M0 Guru Meditation
Hint: hardware Error
See screenshot for all details
I also added a pdf with screenshots of the the DFU stack dump.
I can revert back to V2.0.2 stable and this works without any issue.

I tried Nightly release 2024-10-06 back to 2024-09-26.
DFU.pdf
M0.pdf

Reproduction

Connect HackRf with Portapack H1 to hackrf.app
Upgrade to latest nigthly (2024-10-06)
Reboot the device
Starting up with splashscreen
Press middle button to go to the menu

Expected behavior

After pressing the middle button, it should go to the menu screen of Mayhem.

Environment/versions

All nightly firmwares after V2.0.2-stable

Anything else?

No response

@ebs-10 ebs-10 added the bug Something isn't working label Oct 6, 2024
@gullradriel
Copy link
Member

gullradriel commented Oct 6, 2024

Cannot reproduce on my own H1.
Please follow this:

Most of the time this is happening:

  • because you are not waiting for the device to reboot BY ITSELF at the end of flashing
  • because you have too much files in SD card
  • because of settings incompability between updates

A dying coin battery can also have strange consequences, like unexpected gurus.

@zxkmm
Copy link
Contributor

zxkmm commented Oct 6, 2024

could you pls try if touch the screen in splash works?
could be this but it shouldn't , since i didn't change button press handle logic. only touch screen. #2260

@zxkmm
Copy link
Contributor

zxkmm commented Oct 6, 2024

also delete custom splash (if you are using) and try again

@ebs-10
Copy link
Author

ebs-10 commented Oct 6, 2024

Thank you all for the fast responses.

Awnsers to your suggestions:

  • I did follow the factory procedure, even used a complete empty SDcard. Unfortunately with the same result for the nightly.
  • because you are not waiting for the device to reboot BY ITSELF at the end of flashing
    -After the flashing (Blinking of the leds) it takes about 60 seconds before it reboots automatically. (so i do wait for reboot).
  • because you have too much files in SD card
  • Even without a SDcard i get this error.
  • because of settings incompability between updates
  • I also treid using a complete new / empty SDcard

A dying coin battery can also have strange consequences, like unexpected gurus.

  • The Firmware 2.0.2 an 2.0.0. work fine. I also swapped the coin bettery to be sure.

([zxkmm])

could you pls try if touch the screen in splash works? could be this but it shouldn't , since i didn't change button press handle logic. only touch screen. #2260

  • *** this older version of the portapack i bought in spetember 2019 from OpenSourceSDRLab Store was delivered without a touchscreen, so i can't test this. Could this cause the HARDWARE error?

also delete custom splash (if you are using) and try again

  • I used a new/empty SDcard and got the same error.

@zxkmm
Copy link
Contributor

zxkmm commented Oct 6, 2024

I don’t think there’s portapack without touchscreen.
Would you mind post a video/picture of the backside of your portapack?

and are you sure it says “hardware error”?

also could you pls use a firmware that doesn’t have issue when booting, and enter debug menu and test those functions that related to touchscreen?

@zxkmm
Copy link
Contributor

zxkmm commented Oct 6, 2024

Also “without touchscreen” you meant without a screen, or with screen but not touchable? (I can identify it if you post a picture of your screen (without metal case, plastic case would be ok)

and also take out sdcard and button batter (coin batter) and try again

@gullradriel
Copy link
Member

@ebs-10 we may need photos of the portapack and hackrf board to see if it's a strange edition
Would you be OK to dismantle the whole thing and send us pictures of each side of each board (without enclosure/battery/internal speaker hiding the board) ?

@ebs-10
Copy link
Author

ebs-10 commented Oct 6, 2024

The screen is not a touchscreen. After my purchase, i asked the seller why the touch wasn't working. The reply was that this version didn't have touch. This is confirmed when i tried to calibrate the screen. So this version of the portapack only has a screen without touch. This would explain the problem after the alteration of the firmware i guess.
I've added some pictures of the boards.

IMG20241006220236
IMG20241006220243
IMG20241006215639
IMG20241006215704
IMG20241006215807

@gullradriel
Copy link
Member

Thanks for taking the time to dismantle and send us photo, I hope it will help us to fix it or state if it's no more fixable.

@ebs-10
Copy link
Author

ebs-10 commented Oct 6, 2024

Thanks for taking the time to dismantle and send us photo, I hope it will help us to fix it or state if it's no more fixable.

Is it possible to make #2260 selectable (in a ini file) so we can enable or disable this feature through the SDcard? This way we can rule out if this is the problem.

@zxkmm
Copy link
Contributor

zxkmm commented Oct 7, 2024

We are not yet sure if it’s from #2260 . Just suspect but it doesn’t make sense

@zxkmm
Copy link
Contributor

zxkmm commented Oct 7, 2024

Just confirmed it’s not from #2260 , since 2.0.2 already included it and you said it works good

@ebs-10
Copy link
Author

ebs-10 commented Oct 7, 2024

Just confirmed it’s not from #2260 , since 2.0.2 already included it and you said it works good

  • Yes, that is correct v2.0.2 is working fine.

  • I just traced back all the nightly firmware's starting from september (Nightly Release - 2024-09-08).
    All nightly firmware' s worked up to n_240923 - nightly (worked)
    The problem started with nightly n_240924 - nightly (failed with the same error as originally posted)
    Strange thing is that V2.0.2 works fine while touch to pop splash #2260 in included.
    Now i'm back on v2.0.2 without a problem....

IMG20241007065509
IMG20241007070447

@zxkmm
Copy link
Contributor

zxkmm commented Oct 7, 2024

Oh wait ya sorry 2.0.2 is actually before 240924, it seems GitHub have some issue displaying the order.

could you pls go to Debug - Button Test and also Touch Test to see if they crash?

@ebs-10
Copy link
Author

ebs-10 commented Oct 7, 2024

Hi,
Here is a video of the button test en touch test (which is not available on this LCD screen)
No crashing :)
https://github.com/user-attachments/assets/d57799d2-ca61-4330-8329-ad36851929a2

@zxkmm
Copy link
Contributor

zxkmm commented Oct 7, 2024

thank you very much for the video, I made a custom firmware package, if you don't mind, please flash it (with hackrf.app AKA mayhem hub, use the button following:), and do follow:

image

  1. if crashed: take a picture of the red outline screen firstly, and then press DFU button and use up and down buttons to show me all address that shows on the screen. (plz make sure the image is from this specific firmware, because all the address is different among of all the firmware versions) (rename and remove the .PDF extension firstly to get the .tar file (so you can flash wth mayhem hub) because github won't allow me to upload tar files)

portapack-mayhem_OCI.ppfw.tar.PDF

  1. if not crashed: lemme know and i'll send another test firmware.

@zxkmm
Copy link
Contributor

zxkmm commented Oct 7, 2024

also pls join our discord server (and pin me at #dev-general channel (username: zzztentacion)), because use github to chat is a little bit laggy and limited.
the invite link is on the main page of this repo

@ebs-10
Copy link
Author

ebs-10 commented Oct 7, 2024

thank you very much for the video, I made a custom firmware package, if you don't mind, please flash it (with hackrf.app AKA mayhem hub, use the button following:), and do follow:

image

  1. if crashed: take a picture of the red outline screen firstly, and then press DFU button and use up and down buttons to show me all address that shows on the screen. (plz make sure the image is from this specific firmware, because all the address is different among of all the firmware versions) (rename and remove the .PDF extension firstly to get the .tar file (so you can flash wth mayhem hub) because github won't allow me to upload tar files)

portapack-mayhem_OCI.ppfw.tar.PDF

  1. if not crashed: lemme know and i'll send another test firmware.

This firmware works like a charm. so it looks like you found the issue?
I'll install discord tonight.

@zxkmm
Copy link
Contributor

zxkmm commented Oct 7, 2024

you don't need to install it, just use https://discord.com/app , personally i had never install discord

@htotoo
Copy link
Member

htotoo commented Oct 7, 2024

You can use discord from the web, no need to install! What about the newest nightly? still bad?
how you start the portapack? is the usb plugged in when you turn it on, ore not? if yes, to a computer, or to just a power source?

@zxkmm
Copy link
Contributor

zxkmm commented Oct 7, 2024

also sorry for the thing but pls test this one (should crash) and show me all the address like i asked above
portapack-mayhem_OCI.ppfw.tar.PDF

@ebs-10
Copy link
Author

ebs-10 commented Oct 7, 2024

Here is the requested file for the testfirmware you send me (the latest portapack-mayhem_OCI.ppfw.tar Firmware Version: e3facb0).
This one crashed as you predicted.
I start by connecting to the PC or an external powerbank (with 2.1A). With both the firmware crashes.
Tested n_241007, this firmware also crashes On USB via PC and External powerbank and also and external power supply of 65w.

Scan - 2024-10-07 18_43_51.pdf

I'm on discord with username 'ebs_10_1'

@ebs-10
Copy link
Author

ebs-10 commented Oct 8, 2024

Issue resoved by disabeling the touchscreen under

  • Settings, User Interface
  • option ' Disable touchscreen' had a red cross, so was disabled.
  • I set it to enabled (under working firmware V2.0.2) and save the config.
  • Then i flashed the former faulty firmware n_240924 and it worked.
  • After that i flashed the latest n_241008 also without a problem.
  • So the setting was the problem.
    touch-disabled
    touch-enabled

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants