Petitboot for ODROID-M1

s.kachurin
Posts: 3
Joined: Tue Oct 04, 2022 7:48 pm
languages_spoken: english
ODROIDs: m1
Has thanked: 0
Been thanked: 0
Contact:

Re: Petitboot for ODROID-M1

Post by s.kachurin »

hi
I run in boot command line on my m1

Code: Select all

fw_setenv skip_spiboot true
how can i run for revert

Code: Select all

fw_setenv skip_spiboot false
?

now any operating system not boot from sd card :roll:

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

Re: Petitboot for ODROID-M1

Post by tobetter »

s.kachurin wrote:
Wed Oct 05, 2022 3:23 pm
hi
I run in boot command line on my m1

Code: Select all

fw_setenv skip_spiboot true
how can i run for revert

Code: Select all

fw_setenv skip_spiboot false
?

now any operating system not boot from sd card :roll:
Please check this thread,
viewtopic.php?f=215&t=45255

s.kachurin
Posts: 3
Joined: Tue Oct 04, 2022 7:48 pm
languages_spoken: english
ODROIDs: m1
Has thanked: 0
Been thanked: 0
Contact:

Re: Petitboot for ODROID-M1

Post by s.kachurin »

thx I saw this post, but link (viewtopic.php?f=215&t=45255#:~:text=%D0 ... 5%20ODROID) not work

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

Re: Petitboot for ODROID-M1

Post by tobetter »

s.kachurin wrote:
Wed Oct 05, 2022 4:31 pm
thx I saw this post, but link (viewtopic.php?f=215&t=45255#:~:text=%D0 ... 5%20ODROID) not work
What link does not work? This one?
http://ppa.linuxfactory.or.kr/images/pe ... /odroidm1/

kram
Posts: 13
Joined: Fri Jul 14, 2017 8:16 am
languages_spoken: english
ODROIDs: C2, M1
Location: Ashland, Wisconsin
Has thanked: 0
Been thanked: 1 time
Contact:

Re: Petitboot for ODROID-M1

Post by kram »

This video was very helpful for someone new to M1 and inexperienced with linux. I wrote down notes on how to use petitboot before I found the directions in this forum. Great to "see" it being done. After I watched it, I jumped right in and it worked flawlessly. Tried all the distros and even the rescue disk on both NVMe SSD and SD card. Still don't understand how it works, it just works. Thanks for posting video!! It would be MUCH more helpful if it were in a more prominent spot on the forum front page (at least for beginners). I actually found it on Youtube before I found it here.

Thanks tobetter, hope more people find their way to this video :)
These users thanked the author kram for the post:
tobetter (Mon Oct 17, 2022 12:51 am)

User avatar
Pyohwan
Posts: 99
Joined: Fri Jul 15, 2022 1:06 pm
languages_spoken: korean
ODROIDs: ODROID-M1, ODROID-GO ULTRA
Location: Youngin-si, Republic of Korea
Has thanked: 16 times
Been thanked: 9 times
Contact:

Re: Petitboot for ODROID-M1

Post by Pyohwan »

Is it possible to enable WiFi(WiFi Module 5BK) in Petitboot?
configure network only with wired Ethernet?

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

Re: Petitboot for ODROID-M1

Post by tobetter »

Pyohwan wrote:
Sun Oct 30, 2022 10:24 pm
Is it possible to enable WiFi(WiFi Module 5BK) in Petitboot?
configure network only with wired Ethernet?
Not at all, since the Petitboot is a small Linux system sitting in 16MB SPI flash memory and there is not space to add huge application. Only ethernet is possible to support.

User avatar
Pyohwan
Posts: 99
Joined: Fri Jul 15, 2022 1:06 pm
languages_spoken: korean
ODROIDs: ODROID-M1, ODROID-GO ULTRA
Location: Youngin-si, Republic of Korea
Has thanked: 16 times
Been thanked: 9 times
Contact:

Re: Petitboot for ODROID-M1

Post by Pyohwan »

The official OS, Ubuntu 20.04, used Rockchip's BSP, and I know that the kernel version is 4.19 set by Rockchip.
After enabling Netboot Installer in Petitboot, Ubuntu 20.04 (Focal Fossa) appears. Is it the same as the official OS Ubuntu 20.04?
If there are any differences, please let me know what the differences are.
official OS : https://wiki.odroid.com/odroid-m1/os_im ... ntu/ubuntu

Does Ubuntu 20.04 also use the mainline kernel?
viewtopic.php?f=217&t=44462
Last edited by Pyohwan on Fri Nov 11, 2022 1:21 pm, edited 1 time in total.

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

Re: Petitboot for ODROID-M1

Post by tobetter »

Pyohwan wrote:
Fri Nov 11, 2022 12:35 pm
The official OS, Ubuntu 20.04, used Rockchip's BSP, and I know that the kernel version is 4.19 set by Rawchip.
After enabling Netboot Installer in Petitboot, Ubuntu 20.04 (Focal Fossa) appears. Is it the same as the official OS Ubuntu 20.04?
If there are any differences, please let me know what the differences are.
official OS : https://wiki.odroid.com/odroid-m1/os_im ... ntu/ubuntu

Does Ubuntu 20.04 also use the mainline kernel?
viewtopic.php?f=217&t=44462
Basically the packages installed by Netboot Installer is almost same, difference is that OS image is created with a bit customized OS set up like a default user account. Other than that, feature wise, both are identical. Ubuntu 20.04 comes with 4.19 kernel while Ubuntu 22.04 comes with upstream kernel. Do not try to upgrade to 22.04 from 20.04 since 20.04 if you have Ubuntu desktop installed.
These users thanked the author tobetter for the post (total 2):
Pyohwan (Fri Nov 11, 2022 1:21 pm) • marcstraus (Tue Nov 29, 2022 12:12 am)

marcstraus
Posts: 3
Joined: Sun Nov 27, 2022 2:50 am
languages_spoken: english
ODROIDs: M1
Has thanked: 2 times
Been thanked: 0
Contact:

Re: Petitboot for ODROID-M1

Post by marcstraus »

It looks like I am now really up the creek without a paddle... PB doesn't like me anymore. After net install it will not show as a boot option anymore. I can't update my configuration anymore. If I use skip_spiboot option the only thing I see is the HardKernel logo but it won't boot from nvme. Tried erasing spi and booting from sd card with update (spiupdate_odroidm1_20220304.img), tried pb-update (now 20220424). At the end of the update it tells me there is a crc error and it will use default environment? pb-sos does not run. Instead it says:
  • cp: can't stat '/var/log/messages': No such file or directory
  • cat: can't open '/sys/firmware/opal/msglog': No such file or directory
  • Complete, tarfile location pb-sos.tar.gz

So the file exists, I just lack the knowledge to get to it.
Another error I do not understand is:
  • can't access tty: job control turned off
Is this a bug in the image or am I looking at a bad chip? At any rate, I cannot boot from nvme. Maybe I can from SD but that surely shouldn't happen.
Last edited by marcstraus on Tue Nov 29, 2022 12:19 am, edited 4 times in total.

AreaScout
Posts: 1907
Joined: Sun Jul 07, 2013 3:05 am
languages_spoken: german, english
ODROIDs: X2, U3, XU3, C2, HiFi Shield, XU4, XU4Q,
N1, Go, VU5A, Show2, CloudShell2,
H2, N2, VU7A, VuShell, Go2, C4
Has thanked: 155 times
Been thanked: 426 times
Contact:

Re: Petitboot for ODROID-M1

Post by AreaScout »

marcstraus wrote:
Sun Nov 27, 2022 5:16 am
It looks like I am now really up the creek without a paddle... PB doesn't like me anymore. After net install it will not show as a boot option anymore. I can't update my configuration anymore. If I use skip_spiboot option the only thing I see is the HardKernel logo but it won't boot from nvme. Tried erasing spi and booting from sd card with update, tried pb-update. At the end of the update it tells me there is a crc error and it will use default environment. pb-sos does not run. Is this a bug in the image or am I looking at a bad chip? At any rate, I cannot boot from nvme. Maybe I can from SD but that surely shouldn't happen.
That sounds not good, try to flash this image to SD card and boot from it http://ppa.linuxfactory.or.kr/images/pe ... 304.img.xz it will try to flash the SPI chip and you will have petitboot shell enabled again in case you have disabled it with fw_setenv skip_spiboot true

I hope it helps

RG,
Daniel
These users thanked the author AreaScout for the post:
marcstraus (Tue Nov 29, 2022 5:13 pm)

marcstraus
Posts: 3
Joined: Sun Nov 27, 2022 2:50 am
languages_spoken: english
ODROIDs: M1
Has thanked: 2 times
Been thanked: 0
Contact:

Re: Petitboot for ODROID-M1

Post by marcstraus »

Thanks AreaScout, tried that already ;-) Sorry, didnt work.

AreaScout
Posts: 1907
Joined: Sun Jul 07, 2013 3:05 am
languages_spoken: german, english
ODROIDs: X2, U3, XU3, C2, HiFi Shield, XU4, XU4Q,
N1, Go, VU5A, Show2, CloudShell2,
H2, N2, VU7A, VuShell, Go2, C4
Has thanked: 155 times
Been thanked: 426 times
Contact:

Re: Petitboot for ODROID-M1

Post by AreaScout »

marcstraus wrote:
Mon Nov 28, 2022 6:11 am
Thanks AreaScout, tried that already ;-) Sorry, didnt work.
Did you talked already with HK for a replacement or how did that end up ?

Regards,
Daniel

marcstraus
Posts: 3
Joined: Sun Nov 27, 2022 2:50 am
languages_spoken: english
ODROIDs: M1
Has thanked: 2 times
Been thanked: 0
Contact:

Re: Petitboot for ODROID-M1

Post by marcstraus »

I can return it to the party I bought it from here in Netherlands. No problem. But, I am not entirely convinced yet that it is a hardware malfunction. Another M1 gives similar problemens and the forum here is full of similar problems. It seems to me that the volatile part of flash memory used for config has gone corrupt and from what I can tell that part isnt updated when reflashing PetitBoot.

User avatar
Pyohwan
Posts: 99
Joined: Fri Jul 15, 2022 1:06 pm
languages_spoken: korean
ODROIDs: ODROID-M1, ODROID-GO ULTRA
Location: Youngin-si, Republic of Korea
Has thanked: 16 times
Been thanked: 9 times
Contact:

Re: Petitboot for ODROID-M1

Post by Pyohwan »

I installed EmuELEC v4.6k on a MicroSD card.
Can EmuELEC be default booted when entering Petitboot?

AreaScout
Posts: 1907
Joined: Sun Jul 07, 2013 3:05 am
languages_spoken: german, english
ODROIDs: X2, U3, XU3, C2, HiFi Shield, XU4, XU4Q,
N1, Go, VU5A, Show2, CloudShell2,
H2, N2, VU7A, VuShell, Go2, C4
Has thanked: 155 times
Been thanked: 426 times
Contact:

Re: Petitboot for ODROID-M1

Post by AreaScout »

Pyohwan wrote:
Wed Jan 04, 2023 5:29 pm
I installed EmuELEC v4.6k on a MicroSD card.
Can EmuELEC be default booted when entering Petitboot?
Yes, System configuration -> Boot Order -> Add Device

Regrads,
Daniel
These users thanked the author AreaScout for the post:
tobetter (Thu Jan 05, 2023 1:04 am)

dhns
Posts: 18
Joined: Sat Jun 04, 2022 7:53 pm
languages_spoken: english
Has thanked: 4 times
Been thanked: 1 time
Contact:

Re: Petitboot for ODROID-M1

Post by dhns »

I thought I'd give it another try to port our LetuxOS to the Odroid M1 as a plug&play alternative.

The main barrier is getting a bootable SD card without relying on any of the hardkernel's tools and running any setup tools within Petitboot or a booted Odroid M1. This excludes all the flashing and fw_setenv tools and almost all documentation provided.

Therefore I've analyzed how the Odroid Petitboot is searching for a boot.scr and parsing its contents: https://github.com/JeonghwaCho/petitboo ... 1291435f0d by calling a tool /usr/bin/uboot-parser.

So far I could not locate the source code. I only found a hint in: https://github.com/JeonghwaCho/odroid_p ... _n2.sh#L90 where it seems to be packed into the Petitboot initrd.

That source tells that it should be downloaded and built from: https://github.com/tobetter/uboot-parser.git but that repository does not exist.

My question: where is the source of the /usr/bin/uboot-parser tool?

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

Re: Petitboot for ODROID-M1

Post by tobetter »

dhns wrote:
Mon Jan 09, 2023 12:56 am
I thought I'd give it another try to port our LetuxOS to the Odroid M1 as a plug&play alternative.

The main barrier is getting a bootable SD card without relying on any of the hardkernel's tools and running any setup tools within Petitboot or a booted Odroid M1. This excludes all the flashing and fw_setenv tools and almost all documentation provided.

Therefore I've analyzed how the Odroid Petitboot is searching for a boot.scr and parsing its contents: https://github.com/JeonghwaCho/petitboo ... 1291435f0d by calling a tool /usr/bin/uboot-parser.

So far I could not locate the source code. I only found a hint in: https://github.com/JeonghwaCho/odroid_p ... _n2.sh#L90 where it seems to be packed into the Petitboot initrd.

That source tells that it should be downloaded and built from: https://github.com/tobetter/uboot-parser.git but that repository does not exist.

My question: where is the source of the /usr/bin/uboot-parser tool?
Petitboot support multiple boot script, you can use Grub/SYSLINUX or Yaboot rather than boot.scr. Also boot.scr is a script of U-Boot, so if you use the commands that understand U-Boot in ODROID-M1 can understand, it will work. You do not need to understand how uboot-parser works.

dhns
Posts: 18
Joined: Sat Jun 04, 2022 7:53 pm
languages_spoken: english
Has thanked: 4 times
Been thanked: 1 time
Contact:

Re: Petitboot for ODROID-M1

Post by dhns »

tobetter wrote:
Mon Jan 09, 2023 1:03 am
dhns wrote:
Mon Jan 09, 2023 12:56 am
I thought I'd give it another try to port our LetuxOS to the Odroid M1 as a plug&play alternative.

The main barrier is getting a bootable SD card without relying on any of the hardkernel's tools and running any setup tools within Petitboot or a booted Odroid M1. This excludes all the flashing and fw_setenv tools and almost all documentation provided.

Therefore I've analyzed how the Odroid Petitboot is searching for a boot.scr and parsing its contents: https://github.com/JeonghwaCho/petitboo ... 1291435f0d by calling a tool /usr/bin/uboot-parser.

So far I could not locate the source code. I only found a hint in: https://github.com/JeonghwaCho/odroid_p ... _n2.sh#L90 where it seems to be packed into the Petitboot initrd.

That source tells that it should be downloaded and built from: https://github.com/tobetter/uboot-parser.git but that repository does not exist.

My question: where is the source of the /usr/bin/uboot-parser tool?
Petitboot support multiple boot script, you can use Grub/SYSLINUX or Yaboot rather than boot.scr. Also boot.scr is a script of U-Boot, so if you use the commands that understand U-Boot in ODROID-M1 can understand, it will work. You do not need to understand how uboot-parser works.
That is a pretty deflective response...
I have reasons why I want to do it this way. And therefore I still want to understand it.
So please can you answer my question?
Thanks!

glenno
Posts: 25
Joined: Sun Nov 23, 2014 8:34 am
languages_spoken: english
ODROIDs: Odroid M1, XU4, XU, X, SHOW2, Weather, M1 & about 25 emmc and microSD cards
Has thanked: 1 time
Been thanked: 8 times
Contact:

Re: Petitboot for ODROID-M1

Post by glenno »

I presume when ppa.linuxfactory.or.kr is down then this causes netboot_default to be unable to get its manifest and hence cant install a new OS?

glenno
Posts: 25
Joined: Sun Nov 23, 2014 8:34 am
languages_spoken: english
ODROIDs: Odroid M1, XU4, XU, X, SHOW2, Weather, M1 & about 25 emmc and microSD cards
Has thanked: 1 time
Been thanked: 8 times
Contact:

Re: Petitboot for ODROID-M1

Post by glenno »

glenno wrote:
Wed Feb 15, 2023 9:03 am
I presume when ppa.linuxfactory.or.kr is down then this causes netboot_default to be unable to get its manifest and hence cant install a new OS?
Site is back up and Netboot is working. Guess I answered my own question!

Melab
Posts: 43
Joined: Thu Feb 09, 2023 12:06 am
languages_spoken: English
Has thanked: 0
Been thanked: 2 times
Contact:

Re: Petitboot for ODROID-M1

Post by Melab »

tobetter wrote:
Mon Jan 09, 2023 1:03 am
dhns wrote:
Mon Jan 09, 2023 12:56 am
I thought I'd give it another try to port our LetuxOS to the Odroid M1 as a plug&play alternative.

The main barrier is getting a bootable SD card without relying on any of the hardkernel's tools and running any setup tools within Petitboot or a booted Odroid M1. This excludes all the flashing and fw_setenv tools and almost all documentation provided.

Therefore I've analyzed how the Odroid Petitboot is searching for a boot.scr and parsing its contents: https://github.com/JeonghwaCho/petitboo ... 1291435f0d by calling a tool /usr/bin/uboot-parser.

So far I could not locate the source code. I only found a hint in: https://github.com/JeonghwaCho/odroid_p ... _n2.sh#L90 where it seems to be packed into the Petitboot initrd.

That source tells that it should be downloaded and built from: https://github.com/tobetter/uboot-parser.git but that repository does not exist.

My question: where is the source of the /usr/bin/uboot-parser tool?
Petitboot support multiple boot script, you can use Grub/SYSLINUX or Yaboot rather than boot.scr. Also boot.scr is a script of U-Boot, so if you use the commands that understand U-Boot in ODROID-M1 can understand, it will work. You do not need to understand how uboot-parser works.
Has the modified source code been released to the public like the GPL requires?

lgold1p
Posts: 1
Joined: Fri Mar 03, 2023 8:12 am
languages_spoken: english
ODROIDs: m-1
Has thanked: 0
Been thanked: 0
Contact:

Re: Petitboot for ODROID-M1

Post by lgold1p »

How do I update Petiboot?

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

Re: Petitboot for ODROID-M1

Post by tobetter »

lgold1p wrote:
Tue Mar 14, 2023 10:22 am
How do I update Petiboot?
In case Petitboot is completely out of work, flash the image below to SD card and boot with it. Then Petitboot will appear in the screen, then run udhcpc and pb-update.
http://ppa.linuxfactory.or.kr/images/pe ... 304.img.xz

In case you want to try upgrade if any newer firmware exists, run udhdpc and pb-update in the command line of Petitboot.

If both does not help, please let me know what's happening.

Melab
Posts: 43
Joined: Thu Feb 09, 2023 12:06 am
languages_spoken: English
Has thanked: 0
Been thanked: 2 times
Contact:

Re: Petitboot for ODROID-M1

Post by Melab »

Are there instructions for building Petitboot? I want to modify it to perform payload verification and TPM initialization.

Post Reply

Return to “Projects”

Who is online

Users browsing this forum: No registered users and 2 guests