[SOLVED] How to restore Petitboot on HC-4

Post Reply
fkreuz
Posts: 5
Joined: Sun Nov 15, 2020 3:47 am
languages_spoken: english
ODROIDs: HC 4
Has thanked: 1 time
Been thanked: 0
Contact:

[SOLVED] How to restore Petitboot on HC-4

Post by fkreuz »

Hi,

it seems like my firmware / Petitboot is broken on my HC4.

Only the red light is on after power connection, no flashing blue light anymore. If I keep pressing the switch at the bottom of the case (to enforce boot from SD Card), it works with your Ubuntu Mate image provided.
But I always have to keep pushing this button at boot time.

Where can I please get the HC4 Petitboot firmware image and how to restore it?

You can assume I made a mistake like "Exit to shell" , run "flash_eraseall /dev/mtd0" in the command line of the Petitboot"...

Thank you for your kind help in advance.

Best regards,
Frank

User avatar
tobetter
Posts: 8666
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 503 times
Been thanked: 1383 times
Contact:

Re: How to restore Petitboot on HC-4

Post by tobetter »

Where did you get the command "flash_eraseall /dev/mtd0"? And why did you try? Doesn't it boot from SD card after the command?

Download "spiupdate_odroidhc4_20201112.img" from the link, and flash it to SD card. Boot with SD card while keep pressing the switch until the blue LED on, then the SPI flash memory will be restored.
http://ppa.linuxfactory.or.kr/images/pe ... odroidhc4/

fkreuz
Posts: 5
Joined: Sun Nov 15, 2020 3:47 am
languages_spoken: english
ODROIDs: HC 4
Has thanked: 1 time
Been thanked: 0
Contact:

Re: How to restore Petitboot on HC-4

Post by fkreuz »

Hi,

I got it from this post: viewtopic.php?p=310908#p310908

After numerous tries, I got it to work with my HDMI screen (without doing anything special but kept trying). Then I did the stupid mistake of deleting Petitboot (my bad).

Now the blue light is back (not flashing though) and I am back with my initial problem again, no HDMI output visible...

fkreuz
Posts: 5
Joined: Sun Nov 15, 2020 3:47 am
languages_spoken: english
ODROIDs: HC 4
Has thanked: 1 time
Been thanked: 0
Contact:

Re: How to restore Petitboot on HC-4

Post by fkreuz »

Hi, sorry, do not get it to work. Did create the image as you suggested. Pressing button during power on, then blue light blinks but nothing else happens. No HDMI output whatsoever.

If I use the Ubuntu Mate SD card, do the same (push button during power on), it boots into Mate and all is fine.

Any idea what else I could do? Something from within Ubuntu Mate with ODROIDBIOS.BIN maybe?

Without manual intervention during power up, the device does not boot anything, not even Ubuntu Mate.

THX for you kind help in advance.

User avatar
tobetter
Posts: 8666
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 503 times
Been thanked: 1383 times
Contact:

Re: How to restore Petitboot on HC-4

Post by tobetter »

fkreuz wrote:
Sun Nov 15, 2020 6:49 am
Hi, sorry, do not get it to work. Did create the image as you suggested. Pressing button during power on, then blue light blinks but nothing else happens. No HDMI output whatsoever.

If I use the Ubuntu Mate SD card, do the same (push button during power on), it boots into Mate and all is fine.

Any idea what else I could do? Something from within Ubuntu Mate with ODROIDBIOS.BIN maybe?

Without manual intervention during power up, the device does not boot anything, not even Ubuntu Mate.

THX for you kind help in advance.
Are you sure you have flash the image with Etcher and let it start with button pressing on the bottom? When the blue LED blinks, it boots. If you are not able to see HDMI, why don't you let it be for 10 minutes? Maybe it would recover it while showing nothing.
Or you can try another image,
http://ppa.linuxfactory.or.kr/images/pe ... 201101.img

Other OS image cannot recover SPI flash memory. So please try again with the images I shared and let me know so I can help you.

fkreuz
Posts: 5
Joined: Sun Nov 15, 2020 3:47 am
languages_spoken: english
ODROIDs: HC 4
Has thanked: 1 time
Been thanked: 0
Contact:

Re: How to restore Petitboot on HC-4

Post by fkreuz »

Sorry to say, no success. Did find an old monitor now which shows a screen, do get by pressing the button at power up to a menu.

One time during boot it said something like "invalid SPI partition for firmware".

However, nothing else happens, no automatic flash process etc.

Any way to enforce it to re-install the initial flash?`

THX for any help in advance.

screenshot from boot screen: Image

User avatar
tobetter
Posts: 8666
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 503 times
Been thanked: 1383 times
Contact:

Re: How to restore Petitboot on HC-4

Post by tobetter »

I've tried the same many times and the same screen I have if I press the button long more the the blue LED lits. Can you try to release the key pressing no longer than the blue LED turns on.
These users thanked the author tobetter for the post:
fkreuz (Mon Nov 16, 2020 12:09 am)

fkreuz
Posts: 5
Joined: Sun Nov 15, 2020 3:47 am
languages_spoken: english
ODROIDs: HC 4
Has thanked: 1 time
Been thanked: 0
Contact:

Re: How to restore Petitboot on HC-4

Post by fkreuz »

You made my day! It worked, thank you so much. Netboot install of Ubuntu worked in consequence like a charm! Kind regards, Frank

User avatar
tobetter
Posts: 8666
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 503 times
Been thanked: 1383 times
Contact:

Re: How to restore Petitboot on HC-4

Post by tobetter »

fkreuz wrote:
Mon Nov 16, 2020 12:08 am
You made my day! It worked, thank you so much. Netboot install of Ubuntu worked in consequence like a charm! Kind regards, Frank
Glad to hear you finally recover it and use Netboot Installer. :)

dafart
Posts: 4
Joined: Fri Aug 20, 2021 3:21 pm
languages_spoken: english
Has thanked: 0
Been thanked: 1 time
Contact:

Re: [SOLVED] How to restore Petitboot on HC-4

Post by dafart »

Dear People

yesterday I received this odroid board
After powering it up it booted into petitboot so I assume everything was working.
I did not use the network installer since I wanted to install from sdcard (try some distro's first before deciding what to pick)
and since my plan was first to try to install raspbian the first thing I did was removing petitboot following this guide https://www.armbian.com/odroid-hc4/using these commands:

Code: Select all

# flash_eraseall /dev/mtd0
# flash_eraseall /dev/mtd1
# flash_eraseall /dev/mtd2
# flash_eraseall /dev/mtd3
After writing the armbian image to SD card I tried to boot the machine but no matter what image I use I am not able to boot, all I see is a blinking cursor in de upper left corner on my HDMI attached screen.

After this I tried the above guide to restore petitboot to try the netinstaller, but I run into a problem: when flashing the drive with the different images I'm not able to restore petitboot

Here's what I'm donig

- flash sdcard with several images from http://ppa.linuxfactory.or.kr/images/pe ... 201101.img
- take out the power cord
- insert the sdcard into the slot
- use a pencil to press the button on the bottom of the machine
- with the button still pressed I put in the powercord

Everytime the red light start to blink continuously I no matter how long I press (even up to 20 seconds) I don't see the blue blinking light start.

I asume the blue blinking light would indicate that petitboot is being written to SPI.

I also tried to continuously click the button with short clicks but also nothing happens except for the red led blinking.

I also tried a different sdcard with no change in effect

Now I have 2 questions

1. Is this the correct procedure to restore petitboot?
2. Can someone help me out how to get this problem solved?

Thanks already for your advise.

Daf

dafart
Posts: 4
Joined: Fri Aug 20, 2021 3:21 pm
languages_spoken: english
Has thanked: 0
Been thanked: 1 time
Contact:

Re: [SOLVED] How to restore Petitboot on HC-4

Post by dafart »

Ow and since this problem is not solved for me should I open a new tread?

User avatar
tobetter
Posts: 8666
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 503 times
Been thanked: 1383 times
Contact:

Re: [SOLVED] How to restore Petitboot on HC-4

Post by tobetter »

dafart wrote:
Fri Aug 20, 2021 3:36 pm
After this I tried the above guide to restore petitboot to try the netinstaller, but I run into a problem: when flashing the drive with the different images I'm not able to restore petitboot

Here's what I'm donig

- flash sdcard with several images from http://ppa.linuxfactory.or.kr/images/pe ... 201101.img
- take out the power cord
- insert the sdcard into the slot
- use a pencil to press the button on the bottom of the machine
- with the button still pressed I put in the powercord

Everytime the red light start to blink continuously I no matter how long I press (even up to 20 seconds) I don't see the blue blinking light start.
Does the red LED blink, not the blue one?
Since you have erased the SPI flash memory, you do not need to press the button on the bottom. So...please do try reinsert the power cord without pressing the button.
I asume the blue blinking light would indicate that petitboot is being written to SPI.
What's the vendor and the model of your SD card?

dafart
Posts: 4
Joined: Fri Aug 20, 2021 3:21 pm
languages_spoken: english
Has thanked: 0
Been thanked: 1 time
Contact:

Re: [SOLVED] How to restore Petitboot on HC-4

Post by dafart »

Dear tobetter, thanks for your quick respons!

I'm currently at the office so I cannot do a proper debugging however to answer your questions:

- the red light is just burning, not blinking, there's no blue light.
- I use 2 GB kingston SD card, I will have to check to exact number/type.
- what behaviour will he lights show when flashing the SPI?

Daf

User avatar
tobetter
Posts: 8666
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 503 times
Been thanked: 1383 times
Contact:

Re: [SOLVED] How to restore Petitboot on HC-4

Post by tobetter »

dafart wrote:
Fri Aug 20, 2021 6:05 pm
Dear tobetter, thanks for your quick respons!

I'm currently at the office so I cannot do a proper debugging however to answer your questions:

- the red light is just burning, not blinking, there's no blue light.
- I use 2 GB kingston SD card, I will have to check to exact number/type.
- what behaviour will he lights show when flashing the SPI?

Daf
The red LED means power is supplied, the blue LED is on only when a bootloader is started then start to blink when Linux kernel is started.
The Kingston SD card is not very compatible with ODROID boards, you "must" use other SD card (UHS-I grade) and this will work.
The blue LED will blink when SPI recovery is started. :)

dafart
Posts: 4
Joined: Fri Aug 20, 2021 3:21 pm
languages_spoken: english
Has thanked: 0
Been thanked: 1 time
Contact:

Re: [SOLVED] How to restore Petitboot on HC-4

Post by dafart »

Dear tobetter, thanks for your support, I bought a samsung UHS-I microSD card and it got recognized straight away, now petitboot has been restored and looks like the device works as it should.

Never realized the brand / type of microSD card would make a difference...

Kind Regards

Daf
These users thanked the author dafart for the post:
tobetter (Mon Aug 23, 2021 8:14 am)

sebi009
Posts: 11
Joined: Sat Sep 04, 2021 7:57 pm
languages_spoken: english
ODROIDs: HC4
Has thanked: 1 time
Been thanked: 1 time
Contact:

Re: [SOLVED] How to restore Petitboot on HC-4

Post by sebi009 »

Hello, I'm trying to do the same.
Put PetitBoot (flashed with balena Etcher) on a SD card and a USB key.
When I boot with SD card : blue light without anything on HDMI.
When I boot with USB : no blue light (only red)

When I try the reset button before putting the 220v cord : idem with both.

I need some help, please :-)

Post Reply

Return to “Issues”

Who is online

Users browsing this forum: No registered users and 2 guests