Petitboot for ODROID-M1

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

Petitboot for ODROID-M1

Post by tobetter »

Petitboot for ODROID-N2 has been improved a lot and helped many users to run multiple OS on the same machine. In the same manner, Petitboot is also shipped to on-board SPI flash memory to ODROID-M1 and it will support very similar features.

Major features:
  • Minimal bootloader
    Bootloader in SPI flash memory will help ODROID-M1 not to be bricked or boot failure due to incompatible memory cards.
  • Easy OS management
    Petitboot can help you to boot an OS from eMMC/SD cards as well as NVMe/SATA/USB storages, also select an OS when multiple OS are installed.
  • Installing OS images
    • USB Mass Storage:
      Flashing an OS image through USB cable attached with PC. This method won't let you detach a storage from ODROID-M1, but simply connect your ODROID-M1 to PC as a USB storage device and flashing an OS image with a flash tool such as balenaEtcher.
    • Netboot Installer:
      Instead of flashing an OS image to a storage, Netboot Installer method will help you to install an OS to a storage directly and this can help you to configure the partiition layout and mouting points while installing. In order to start the Netboot Installer method, select Exit to shell in the Petitboot screen and run commands.

      Code: Select all

      udhcpc
      netboot_default
      exit
      
  • Tiny Linux system
    The firmware in on-board SPI memory is a tiny Linux with useful Linux commands, althrough the number of commands are limited, you can diagnose your storages without any other Linux machine.
Screenshot 2022-04-12 04-05-17.png
Screenshot 2022-04-12 04-05-17.png (45.35 KiB) Viewed 23395 times
These users thanked the author tobetter for the post (total 4):
mctom (Tue Apr 12, 2022 6:55 am) • istanbulls (Tue Apr 12, 2022 4:09 pm) • iii (Mon Jul 18, 2022 2:14 pm) • Perfecto (Sun Apr 16, 2023 1:35 am)

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

Re: Petitboot for ODROID-M1

Post by tobetter »


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

Re: Petitboot for ODROID-M1

Post by tobetter »

Reserved #2

User avatar
mctom
Posts: 3526
Joined: Wed Nov 11, 2020 4:44 am
languages_spoken: english, polski
ODROIDs: XU4, M1, H3+, SP3, N2L, M1S
Location: Gdańsk, Poland
Has thanked: 499 times
Been thanked: 672 times
Contact:

Re: Petitboot for ODROID-M1

Post by mctom »

For completeness I'd add commands for USB Mass Storage method in the first post. It's three letters and I always forget them and struggle to find..
Punk ain't no religious cult, punk means thinking for yourself!
OpenUPS
PiStackMon

User avatar
istanbulls
Posts: 900
Joined: Tue May 14, 2019 10:18 pm
languages_spoken: Turkish
ODROIDs: ODROID; N2, C4, XU4, N2+, CH4
Location: Istanbul-Turkey
Has thanked: 560 times
Been thanked: 176 times
Contact:

Re: Petitboot for ODROID-M1

Post by istanbulls »

Petitoot and Netboot-installer are my favorite feature on Odroid SBCs.
I can install as many different ubuntu and debian versions as I want on the SSD. and in seconds I can test the OS I want.

I wish there were more OSes we could install in Netboot-installer eg CE, LE, Android.
I know it's just a nice dream but why not :)
These users thanked the author istanbulls for the post:
iii (Sun Jun 12, 2022 12:06 pm)

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

Re: Petitboot for ODROID-M1

Post by tobetter »

mctom wrote:
Tue Apr 12, 2022 6:57 am
For completeness I'd add commands for USB Mass Storage method in the first post. It's three letters and I always forget them and struggle to find..
Thanks, short instructions or links will be added to the reserved in this thread.

User avatar
mctom
Posts: 3526
Joined: Wed Nov 11, 2020 4:44 am
languages_spoken: english, polski
ODROIDs: XU4, M1, H3+, SP3, N2L, M1S
Location: Gdańsk, Poland
Has thanked: 499 times
Been thanked: 672 times
Contact:

Re: Petitboot for ODROID-M1

Post by mctom »

It's a minor complaint, but using Odroid Wi-Fi dongle during Netboot-installation of Ubuntu it couldn't pair with my router. It said that "password exchange" failed after 1 minute of progress bar. Installation via LAN continues without issues though.
Punk ain't no religious cult, punk means thinking for yourself!
OpenUPS
PiStackMon

heritage
Posts: 12
Joined: Tue Apr 19, 2022 8:52 am
languages_spoken: english
ODROIDs: M1
Has thanked: 0
Been thanked: 0
Contact:

Re: Petitboot for ODROID-M1

Post by heritage »

My problem was posted on the other forum. I erased the data in SPI. I followed the instructions in topic 347732. The blue led is on but the monitor is dark. What can I do next?
Thanks

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

Re: Petitboot for ODROID-M1

Post by tobetter »

heritage wrote:
Wed Apr 20, 2022 12:27 am
My problem was posted on the other forum. I erased the data in SPI. I followed the instructions in topic 347732. The blue led is on but the monitor is dark. What can I do next?
Thanks
Does the blue LED blink or just on?
Did you flash the image to SD card and booted after presseing the boot select switch? Also when you press the boot select switch, you must not keep pressing it after the blue LED turns on.

heritage
Posts: 12
Joined: Tue Apr 19, 2022 8:52 am
languages_spoken: english
ODROIDs: M1
Has thanked: 0
Been thanked: 0
Contact:

Re: Petitboot for ODROID-M1

Post by heritage »

Blue light just on
Blue light did not come on when I flashed image on sd card. It came on when I flashed an eMMC card.
I continued pressing the switch but did not do that after reading your post but it is just on not blinking

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

Re: Petitboot for ODROID-M1

Post by tobetter »

heritage wrote:
Wed Apr 20, 2022 12:44 am
Blue light just on
Blue light did not come on when I flashed image on sd card. It came on when I flashed an eMMC card.
I continued pressing the switch but did not do that after reading your post but it is just on not blinking
What's the image file name you have flashed? And you do not try eMMC for this.

heritage
Posts: 12
Joined: Tue Apr 19, 2022 8:52 am
languages_spoken: english
ODROIDs: M1
Has thanked: 0
Been thanked: 0
Contact:

Re: Petitboot for ODROID-M1

Post by heritage »

I tried this "spiupdate_odroidm1_20220304.img"

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

Re: Petitboot for ODROID-M1

Post by tobetter »

heritage wrote:
Wed Apr 20, 2022 1:07 am
I tried this "spiupdate_odroidm1_20220304.img"
The file is coorect if you did unxz it, did you flash it using BalenaEtcher?
What's the vendor/model of your SD card?
When you flash the same image to eMMC, are you able to see a picture or the blue LED just turns on?

heritage
Posts: 12
Joined: Tue Apr 19, 2022 8:52 am
languages_spoken: english
ODROIDs: M1
Has thanked: 0
Been thanked: 0
Contact:

Re: Petitboot for ODROID-M1

Post by heritage »

Yes flashed with Balena.
i had used 3 sd cards: samsung, sandisk and patriot
with eMMC no picture, just the blue LED turning on but not blinking

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

Re: Petitboot for ODROID-M1

Post by tobetter »

heritage wrote:
Wed Apr 20, 2022 1:21 am
Yes flashed with Balena.
i had used 3 sd cards: samsung, sandisk and patriot
with eMMC no picture, just the blue LED turning on but not blinking
What command did you invoke exactly when you remove SPI flash?

heritage
Posts: 12
Joined: Tue Apr 19, 2022 8:52 am
languages_spoken: english
ODROIDs: M1
Has thanked: 0
Been thanked: 0
Contact:

Re: Petitboot for ODROID-M1

Post by heritage »

from the other forum

flash_eraseall /dev/mtd0
flash_eraseall /dev/mtd1
flash_eraseall /dev/mtd2
flash_eraseall /dev/mtd3

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

Re: Petitboot for ODROID-M1

Post by tobetter »

heritage wrote:
Wed Apr 20, 2022 1:44 am
from the other forum

flash_eraseall /dev/mtd0
flash_eraseall /dev/mtd1
flash_eraseall /dev/mtd2
flash_eraseall /dev/mtd3
Then flash spiupdate_odroidm1_20220304.img.xz to Sandisk SD card, this time connect SD card only and do not press the boot select switch and do power cycle.

heritage
Posts: 12
Joined: Tue Apr 19, 2022 8:52 am
languages_spoken: english
ODROIDs: M1
Has thanked: 0
Been thanked: 0
Contact:

Re: Petitboot for ODROID-M1

Post by heritage »

I cannot find this file with the xz extension. Can you send me the link? thanks

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

Re: Petitboot for ODROID-M1

Post by tobetter »

heritage wrote:
Wed Apr 20, 2022 2:53 am
I cannot find this file with the xz extension. Can you send me the link? thanks
http://ppa.linuxfactory.or.kr/images/pe ... /odroidm1/
These users thanked the author tobetter for the post:
iii (Tue Apr 26, 2022 3:38 am)

heritage
Posts: 12
Joined: Tue Apr 19, 2022 8:52 am
languages_spoken: english
ODROIDs: M1
Has thanked: 0
Been thanked: 0
Contact:

Re: Petitboot for ODROID-M1

Post by heritage »

I am using a brand new sandisk. I can write flash with Rufus but not with Balena. The Rufus flashing still doesn't give me the blue LED.
Attachments
PXL_20220419_203105081.jpg
PXL_20220419_203105081.jpg (476.76 KiB) Viewed 23217 times

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

Re: Petitboot for ODROID-M1

Post by tobetter »

heritage wrote:
Wed Apr 20, 2022 5:35 am
I am using a brand new sandisk. I can write flash with Rufus but not with Balena. The Rufus flashing still doesn't give me the blue LED.
It says that the image seems to be corrupted, and it also shows 60.8MB while the original file size is 22MB. Please check the md5sum value of the file.

heritage
Posts: 12
Joined: Tue Apr 19, 2022 8:52 am
languages_spoken: english
ODROIDs: M1
Has thanked: 0
Been thanked: 0
Contact:

Re: Petitboot for ODROID-M1

Post by heritage »

Thank you for your help. This picture shows the downloaded file to be 22mb, MD5 sum is good but when I select the file in balenaetcher it shows 60mb.
I upgraded Balena from 1.5.109 to the most recent version.
Attachments
PXL_20220419_212229353.jpg
PXL_20220419_212229353.jpg (479.23 KiB) Viewed 23215 times

heritage
Posts: 12
Joined: Tue Apr 19, 2022 8:52 am
languages_spoken: english
ODROIDs: M1
Has thanked: 0
Been thanked: 0
Contact:

Re: Petitboot for ODROID-M1

Post by heritage »

Just realized that i didn't finish my email. I still didn't resolve my problem. The picture was to show that the file downloaded was the proper size, and that the MD5 was good. What do you advise now?

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

Re: Petitboot for ODROID-M1

Post by tobetter »

heritage wrote:
Thu Apr 21, 2022 11:58 am
Just realized that i didn't finish my email. I still didn't resolve my problem. The picture was to show that the file downloaded was the proper size, and that the MD5 was good. What do you advise now?
I have reproduced the same issue after removing the SPI flash memory with the command flash_eraseall and booting from SD after flashing the image spiupdate_odroidm1_20220304.img.xz, since you have erased the SPI flash memory it must boot from SD regardless you press the boot select button or not. I've run balenaEtcher in Ubuntu, not Windows. Would you be able to try Ubuntu on your PC to flash it? Or can you try this, https://jfrog.com/connect/imgflasher/, instead of Rufus?

heritage
Posts: 12
Joined: Tue Apr 19, 2022 8:52 am
languages_spoken: english
ODROIDs: M1
Has thanked: 0
Been thanked: 0
Contact:

Re: Petitboot for ODROID-M1

Post by heritage »

I ran Etcher on Ubuntu and I was able to boot. I ran the command fw_setenv skip_spiboot false. It was executed properly. However, when I took the sdcard out Ubuntu did not start either using an eMMC or an SD card.
If I leave the sdcard in then the eMMC Ubuntu runs.

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

Re: Petitboot for ODROID-M1

Post by tobetter »

heritage wrote:
Fri Apr 22, 2022 2:49 am
I ran Etcher on Ubuntu and I was able to boot. I ran the command fw_setenv skip_spiboot false. It was executed properly. However, when I took the sdcard out Ubuntu did not start either using an eMMC or an SD card.
If I leave the sdcard in then the eMMC Ubuntu runs.
Wait, so you are not able to boot from SD card...then did you update/flash SPI flash memory or just seen Petitboot screen from SD card?
If you are not sure if Petitboot is flashed or not, download this file and copy it as spiboot.img to SD card which you have flashed using Etcher.
http://ppa.linuxfactory.or.kr/images/pe ... 220306.img
These users thanked the author tobetter for the post:
mhoffrogge (Mon Oct 24, 2022 8:46 pm)

heritage
Posts: 12
Joined: Tue Apr 19, 2022 8:52 am
languages_spoken: english
ODROIDs: M1
Has thanked: 0
Been thanked: 0
Contact:

Re: Petitboot for ODROID-M1

Post by heritage »

Thank you for your patience. That last "spiboot.img" fixed it.

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

Re: Petitboot for ODROID-M1

Post by tobetter »

New Netboot Installer entries for Ubuntu 22.04 and Debian 11 are appended to Petitboot. But please note that these two OS are inteded to boot by upstream kernel rather than Hardkernel's vendor kernel (v4.19). so it would be unstable or supported features would be very limited. Please use another thread, viewtopic.php?f=217&t=44462, if you like to be updated about its progress or report issues.
Screenshot 2022-05-18 01-39-57.png
Screenshot 2022-05-18 01-39-57.png (88.46 KiB) Viewed 22660 times
These users thanked the author tobetter for the post:
Neo2SHYAlien (Wed May 18, 2022 3:52 pm)

User avatar
spikerguy
Posts: 62
Joined: Thu Apr 30, 2020 12:35 am
languages_spoken: english
ODROIDs: HC4
Has thanked: 25 times
Been thanked: 24 times
Contact:

Re: Petitboot for ODROID-M1

Post by spikerguy »

Any reason why petitboot cannot read gpt partition table as our test image does not read the boot partition and extlinux.conf inside it.

I will move the partition table to mbr and see if that helps, but most of our rockchip device images are using gpt.

No Luck with mbr partition table too :(

Petitboot is not able to find the extlinux.conf in the partition.

Can you advice what is needed for petitboot look for to make the drive as bootable ?
Manjaro ARM Team

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

Re: Petitboot for ODROID-M1

Post by tobetter »

spikerguy wrote:
Sun May 22, 2022 1:58 am
Any reason why petitboot cannot read gpt partition table as our test image does not read the boot partition and extlinux.conf inside it.

I will move the partition table to mbr and see if that helps, but most of our rockchip device images are using gpt.

No Luck with mbr partition table too :(

Petitboot is not able to find the extlinux.conf in the partition.

Can you advice what is needed for petitboot look for to make the drive as bootable ?
I don't think its GPT partition issue, you can check in the command line if the partitions are mounted or not. extlinux.conf is not supported by Petitboot, you need to add boot.scr.
These users thanked the author tobetter for the post:
spikerguy (Wed May 25, 2022 6:48 am)

specs
Posts: 152
Joined: Sun Nov 24, 2019 12:14 pm
languages_spoken: english
ODROIDs: Odroid N2/N2+/C4/M1
Has thanked: 37 times
Been thanked: 25 times
Contact:

Re: Petitboot for ODROID-M1

Post by specs »

tobetter wrote:
Wed May 18, 2022 1:51 am
New Netboot Installer entries for Ubuntu 22.04 and Debian 11 are appended to Petitboot. But please note that these two OS are inteded to boot by upstream kernel rather than Hardkernel's vendor kernel (v4.19). so it would be unstable or supported features would be very limited. Please use another thread, viewtopic.php?f=217&t=44462, if you like to be updated about its progress or report issues.
Today I tried installing Debian with petitboot.
Debian11, grey screen, no installation.
Debian10, full installation, no USB Wifi Module (8821au and 8821cu don't compile for the 5A and 5B and the linux-firmware is missing, there is no easily installable Wifi).

Ubuntu 22.04 (5.18-kernel) and Ubuntu 20.04 (4.19-kernel) are easily installed via petitboot. The 22.04 without 5B and the 20.04 including 5B (wifi) support.

Note, I only tested Debian10 to see if it worked, I don't want a M1 running Debian with a 4.19-kernel, therefore the test is half-assed at best.

Addition, as drolid remarked in the 5.18 thread:
The grey screen is a sign the monitor is not configured right. It worked by replacing the monitor with a HDMI-monitor in full-HD mode (1920x1080).
Last edited by specs on Sun Jun 19, 2022 7:18 pm, edited 5 times in total.

Enig123
Posts: 79
Joined: Mon Mar 09, 2020 12:13 pm
languages_spoken: english
ODROIDs: Odroid HC1
Has thanked: 3 times
Been thanked: 3 times
Contact:

Re: Petitboot for ODROID-M1

Post by Enig123 »

Can I install os to the m.2 ssd directly with petiboot and boot from it?

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

Re: Petitboot for ODROID-M1

Post by tobetter »

Enig123 wrote:
Sat May 28, 2022 11:44 am
Can I install os to the m.2 ssd directly with petiboot and boot from it?
Yes, you can when you use Netboot Installer. In the command line of Petitboot, run udhcpc and netboot_default in a row.
Image
These users thanked the author tobetter for the post:
iii (Sun Jun 12, 2022 12:04 pm)

sbruynin
Posts: 5
Joined: Sat Jul 02, 2022 5:04 pm
languages_spoken: Dutch, French, English
ODROIDs: M1
Has thanked: 0
Been thanked: 0
Contact:

Re: Petitboot for ODROID-M1

Post by sbruynin »

I do not get the OS install options when I exit back to petitboot after udhcpc and netboot_default.
I have a sd with ubuntu server in the SD-slot where I can boot from and a EXT4 formatted m2.
Network cable is attached and ipaddress assigned by router.
Petitboot version: 20220306. (Where can I find the latest petitboot version and how to install it?)

User avatar
mad_ady
Posts: 11753
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4 (HC1, HC2), C1+, C2, C4 (HC4), N1, N2, N2L, H2, H3+, Go, Go Advance, M1, M1S
Location: Bucharest, Romania
Has thanked: 656 times
Been thanked: 1197 times
Contact:

Re: Petitboot for ODROID-M1

Post by mad_ady »

There's currently an issue with tobetter's server, where the images are hosted. Try again after the weekend.

sbruynin
Posts: 5
Joined: Sat Jul 02, 2022 5:04 pm
languages_spoken: Dutch, French, English
ODROIDs: M1
Has thanked: 0
Been thanked: 0
Contact:

Re: Petitboot for ODROID-M1

Post by sbruynin »

I could update petitboot to version 20220424 this morning but still do not get the OS versions to install. (after #udhcpc and #netboot_default and #exit)
If I remove the sd card and retry the procedure then:
[eth0] Probing from base tftp://192.168.2.1/pxelinux.cfg
What can be wrong?

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

Re: Petitboot for ODROID-M1

Post by tobetter »

sbruynin wrote:
Mon Jul 11, 2022 4:53 pm
I could update petitboot to version 20220424 this morning but still do not get the OS versions to install. (after #udhcpc and #netboot_default and #exit)
If I remove the sd card and retry the procedure then:
[eth0] Probing from base tftp://192.168.2.1/pxelinux.cfg
What can be wrong?
You did nothing wrong, I think.
Run the commands udhcpc and netboot_default again, and check if your ODROID-M1 get IP address. In cetain network environment, downloading the OS installer manifest file could be slow.
Also you can ignore the message [eth0] Probing from base ..., this log happens every time but not an error.

sbruynin
Posts: 5
Joined: Sat Jul 02, 2022 5:04 pm
languages_spoken: Dutch, French, English
ODROIDs: M1
Has thanked: 0
Been thanked: 0
Contact:

Re: Petitboot for ODROID-M1

Post by sbruynin »

The odroid gets his local ip address after the udhcpc command.
But I can't get the OS's to be displayed.
When does it load the manifest file? While in the shell, or after the exit command. Do I need a delay before the exit command?
I waited 2 to 3 minutes between the commands without result.

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

Re: Petitboot for ODROID-M1

Post by tobetter »

sbruynin wrote:
Mon Jul 11, 2022 7:38 pm
The odroid gets his local ip address after the udhcpc command.
But I can't get the OS's to be displayed.
When does it load the manifest file? While in the shell, or after the exit command. Do I need a delay before the exit command?
I waited 2 to 3 minutes between the commands without result.
It should be loaded when you run netboot_install in the command line.
Does pint 8.8.8.8 or ping ppa.linuxfactory.or.kr work?

sbruynin
Posts: 5
Joined: Sat Jul 02, 2022 5:04 pm
languages_spoken: Dutch, French, English
ODROIDs: M1
Has thanked: 0
Been thanked: 0
Contact:

Re: Petitboot for ODROID-M1

Post by sbruynin »

ping 8.8.8.8 works
ping ppa.linuxfactory.or.kr doesn't work
I'll try again later today.

sbruynin
Posts: 5
Joined: Sat Jul 02, 2022 5:04 pm
languages_spoken: Dutch, French, English
ODROIDs: M1
Has thanked: 0
Been thanked: 0
Contact:

Re: Petitboot for ODROID-M1

Post by sbruynin »

When I powerup the M1 and skip the udhcpc command, so only execute netboot_default then the installed OS's show up. Using udhcpc it constantly fails.
Anyway It now works and I'm happy.
Thanks for the support.

xtlc
Posts: 1
Joined: Wed Jul 27, 2022 10:10 pm
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: Petitboot for ODROID-M1

Post by xtlc »

I had the exact same issue on my new M1. 220220306 was installed when I got it, I did not update it. Omitting the udhcpc command made a list of OS show up, nothing other worked.

I also tried flashing a SD card using the Ubuntu 20.04 image from the website (https://dn.odroid.com/RK3568/ODROID-M1/ ... 531.img.xz) using etcher, but after booting to petitboot only two mmc devices are shown, but when selecting them to boot (either of them) and restarting nothing happens, but landing in petitboot again :(

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

Re: Petitboot for ODROID-M1

Post by tobetter »

xtlc wrote:
Wed Jul 27, 2022 10:15 pm
I had the exact same issue on my new M1. 220220306 was installed when I got it, I did not update it. Omitting the udhcpc command made a list of OS show up, nothing other worked.

I also tried flashing a SD card using the Ubuntu 20.04 image from the website (https://dn.odroid.com/RK3568/ODROID-M1/ ... 531.img.xz) using etcher, but after booting to petitboot only two mmc devices are shown, but when selecting them to boot (either of them) and restarting nothing happens, but landing in petitboot again :(
What's the brand/model of your SD card? Can you please share the photo of the screen displays two mmc devices in Petitboot?

multiblitz
Posts: 8
Joined: Fri Sep 09, 2022 7:22 pm
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: Petitboot for ODROID-M1

Post by multiblitz »

How Can I do a re-install onto my SSD through petitboot from the net ? NoINstall options are presented anymore:

I got my M1 today...I followed your guide here to Net-install and was very pleased to see debian bullseye offered as stable install to my SSD...followed that and it worked like a charme !!! I am really impressed.

I tried than to run a generic Dietpi-Script which went through, but gave me a new error ("No root device specified (initramfs)")...I posted that error on the dietpi forum...

Not sure if that will ever get solved, so I tried to roll back to the original install by simply going through petitboot OS-Install-process again as the SSD gets formatted there and we start basically vanilla.

To my surprise I cant get there.

When I run run udhcpc and netboot_default

Nothing happens. It only shows the original Debian Install on my SSD (which is now defective). So, no additional INstall options or option to delte the existing install....I basically want a hard factory-reset of everything incl. the SSD.

So...how can I make petitboot to forget that there is an installed OS to offer and instead make it offering me the install options for the different OS again like in post 10441 above ?

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

Re: Petitboot for ODROID-M1

Post by tobetter »

multiblitz wrote:
Fri Sep 09, 2022 7:41 pm
How Can I do a re-install onto my SSD through petitboot from the net ? NoINstall options are presented anymore:

I got my M1 today...I followed your guide here to Net-install and was very pleased to see debian bullseye offered as stable install to my SSD...followed that and it worked like a charme !!! I am really impressed.

I tried than to run a generic Dietpi-Script which went through, but gave me a new error ("No root device specified (initramfs)")...I posted that error on the dietpi forum...

Not sure if that will ever get solved, so I tried to roll back to the original install by simply going through petitboot OS-Install-process again as the SSD gets formatted there and we start basically vanilla.

To my surprise I cant get there.

When I run run udhcpc and netboot_default

Nothing happens. It only shows the original Debian Install on my SSD (which is now defective). So, no additional INstall options or option to delte the existing install....I basically want a hard factory-reset of everything incl. the SSD.

So...how can I make petitboot to forget that there is an installed OS to offer and instead make it offering me the install options for the different OS again like in post 10441 above ?
Netboot Installer boot entry sometimes does not come to the screen due to the network, please check if you properly received IP address and can ping to ppa.linuxfactory.or.kr from the command line in the Petitboot. You should keep trying a bit more running netboot_default if the problem happens, this is not matter if you have installed OS in any storage or not.

User avatar
joerg
Posts: 1957
Joined: Tue Apr 01, 2014 2:14 am
languages_spoken: german, english, español
ODROIDs: C1, C1+, C2, N1, N2, C4
Location: Germany
Has thanked: 200 times
Been thanked: 431 times
Contact:

Re: Petitboot for ODROID-M1

Post by joerg »

I have the same with my N2. I don't want to hyjack here, but it seems that the server of ppa.linuxfactory.or.kr is not responding a ping.
I make ping from my host pc that is in the same network, one time with only 1.1.1.1 and one time also with 8.8.8.8 as dns server. It's the same, always says 106.250.177.235 as ip address.
Seems that the dns server knows about ppa.linuxfactory.or.kr.

Code: Select all

joerg@JW-Mint ~ $ ping 106.250.177.235
PING 106.250.177.235 (106.250.177.235) 56(84) Bytes Daten.
^C
--- 106.250.177.235 ping-Statistik ---
44 Pakete übertragen, 0 empfangen, 100% Paketverlust, Zeit 44021ms
Paketverlust means lost packages.

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

Re: Petitboot for ODROID-M1

Post by tobetter »

joerg wrote:
Sat Sep 10, 2022 1:00 am
I have the same with my N2. I don't want to hyjack here, but it seems that the server of ppa.linuxfactory.or.kr is not responding a ping.
I make ping from my host pc that is in the same network, one time with only 1.1.1.1 and one time also with 8.8.8.8 as dns server. It's the same, always says 106.250.177.235 as ip address.
Seems that the dns server knows about ppa.linuxfactory.or.kr.

Code: Select all

joerg@JW-Mint ~ $ ping 106.250.177.235
PING 106.250.177.235 (106.250.177.235) 56(84) Bytes Daten.
^C
--- 106.250.177.235 ping-Statistik ---
44 Pakete übertragen, 0 empfangen, 100% Paketverlust, Zeit 44021ms
Paketverlust means lost packages.
ICMP is disabled in the server ppa.linuxfactory.or.kr, so ping won't response, but you will be able to open a web page of it on a browser with http://ppa.linuxfactory.or.kr. netboot_default is a problem sometime when server is busy or for some reason, it does not query the boot entries or take slowly. Have not properly figured out in current version other than repeating the command again when the boot menu does not appear.

multiblitz
Posts: 8
Joined: Fri Sep 09, 2022 7:22 pm
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: Petitboot for ODROID-M1

Post by multiblitz »

I think the M1 has indeed a problem with bringing the network / LAN to life quickly. Maybe we need a firmware update as this would not only solve the petitboot installer issue but help as well to mount NAS drives as they should...I found when mounting my NAS to the M1 that i could do it manually but the fstab entry did not work...first time...all other small SinglboardComputer, even the slowest and oldest, had never have theis phenomen...i fixed this with an addition to wait for the the network before mounting...but not sure if there is not a bigger issues with the network driver.

So, I tried and tried...and you have been right, suddenly petitboot came back with the install menu. But this is not a stable solution.

BTW I installe dmy system on a internal SSD...so if I want a fast boot...and I would reduce petitboot time to 0 sec...is there a way to get back to petitboot like "press delete" when applying power ? The USB keyboard typically is frozen for a second at least as well, so i was sofar nit brave enough and stayed at 3sec waiting time before petitboot starts Debian Bullseye now.

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

Re: Petitboot for ODROID-M1

Post by tobetter »

multiblitz wrote:
Sat Sep 10, 2022 3:11 pm
I think the M1 has indeed a problem with bringing the network / LAN to life quickly. Maybe we need a firmware update as this would not only solve the petitboot installer issue but help as well to mount NAS drives as they should...I found when mounting my NAS to the M1 that i could do it manually but the fstab entry did not work...first time...all other small SinglboardComputer, even the slowest and oldest, had never have theis phenomen...i fixed this with an addition to wait for the the network before mounting...but not sure if there is not a bigger issues with the network driver.
Petitboot installer menu entry issue is not from network driver, it's about the latency of the server and how Petitboot manages the response. Since Petitboot and practical Linux system uses different kernel, your NAS issue would be different problem and would be good to understand what's the issue is. Please start your thread with the issue what you made in fstab.
So, I tried and tried...and you have been right, suddenly petitboot came back with the install menu. But this is not a stable solution.
It's not stable, likely random but not stable solution yet.
BTW I installe dmy system on a internal SSD...so if I want a fast boot...and I would reduce petitboot time to 0 sec...is there a way to get back to petitboot like "press delete" when applying power ? The USB keyboard typically is frozen for a second at least as well, so i was sofar nit brave enough and stayed at 3sec waiting time before petitboot starts Debian Bullseye now.
No, Petitboot does not have such hotkey yet. Loading driver and recognize the USB keyboards takes a several seconds and this affects booting time, this leads to set the similar timeout value in the Petitboot. Give small seconds 1 or 2 seconds and try to pressing any key UP/DOWN key since the blue LED starts blinking. USB keyboard event won't be recognized when the blue LED is solid.

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

Re: Petitboot for ODROID-M1

Post by tobetter »

Finally, we have a video in pure native English speaking about Petitboot on ODROID-M1, Please checkout the video at 7:50
These users thanked the author tobetter for the post (total 4):
istanbulls (Sun Sep 18, 2022 10:24 pm) • odroid (Mon Sep 19, 2022 11:17 am) • AreaScout (Mon Sep 19, 2022 8:54 pm) • lmdiablo (Mon Oct 24, 2022 4:12 pm)

Post Reply

Return to “Projects”

Who is online

Users browsing this forum: No registered users and 1 guest