Petitboot, yet another bootloader based on KEXEC

Post Reply
User avatar
tobetter
Posts: 5082
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 159 times
Been thanked: 486 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Post by tobetter » Fri Jan 17, 2020 9:13 pm

istanbulls wrote:
Fri Jan 17, 2020 9:08 pm
We see Petitboot, no problem.
we can choose, no problem.
Problem: The operating system we selected does not start.
The same N2 on another 1080p television. The operating system selected in Petitboot starts.

On 4K TV: When we make a selection Petitboot is restarted and we see petitboot on the screen again. we select the operating system again and start again. it always repeats like this. Yeah, we can make every choice. does restart again.
Ok, thanks...it's more clear now. At least it's not a display issue...still not clear why...
That's strange that the problem only happens with 4K TV...Just what I am not sure is if the target OS kernel is started or not.
By any chance, does anyone has UART debugging module?

Do you set the Petitboot as 4K resolution or a smaller resolution?
Can you please take a picture of Petitboot when the OS are showing on the TV?

User avatar
tobetter
Posts: 5082
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 159 times
Been thanked: 486 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Post by tobetter » Fri Jan 17, 2020 9:26 pm

I'd like to post an image that pours a coffee to cups and it overflows... :)
These users thanked the author tobetter for the post:
istanbulls (Fri Jan 17, 2020 9:37 pm)

istanbulls
Posts: 191
Joined: Tue May 14, 2019 10:18 pm
languages_spoken: Turkish
ODROIDs: ODROID N2
Has thanked: 89 times
Been thanked: 10 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Post by istanbulls » Fri Jan 17, 2020 9:33 pm

istanbulls wrote:
Fri Jan 17, 2020 2:55 am

1. Do "Exit to shell"
2. Run these commands to set the display resolution and save.

Code: Select all

# spimmc.sh
# fw_setenv hdmimode 720p60hz
3. Press "Ctrl-Alt-Del" to reboot
I tried the 2160p30hz
I tried the 2160p50hz
I tried the 2160p60hz

also
For Ubuntu Mate.
I tried (setenv display_autodetect "true") (I replaced setenv display_autodetect with "false")

User avatar
tobetter
Posts: 5082
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 159 times
Been thanked: 486 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Post by tobetter » Fri Jan 17, 2020 9:55 pm


istanbulls wrote:
istanbulls wrote:
Fri Jan 17, 2020 2:55 am

1. Do "Exit to shell"
2. Run these commands to set the display resolution and save.

Code: Select all

# spimmc.sh
# fw_setenv hdmimode 720p60hz
3. Press "Ctrl-Alt-Del" to reboot
I tried the 2160p30hz
I tried the 2160p50hz
I tried the 2160p60hz

also
For Ubuntu Mate.
I tried (setenv display_autodetect "true") (I replaced setenv display_autodetect with "false")
Thanks...
I think the solution is something else, the method what you have tried is worth to do when screen does not come but the problem you are facing looks like something else. I am not sure yet what it is. If you have a chance, please try lower resolution not 4K. And check after rebooting if the change is applied with another command, " fw_printenv | grep hdmomode". It must shows the same value you set before rebooting as well as the display must be changed.

Are the boards of your friends all 4GB model?

"Tapatalk wishes you to have fun with ODROID"


istanbulls
Posts: 191
Joined: Tue May 14, 2019 10:18 pm
languages_spoken: Turkish
ODROIDs: ODROID N2
Has thanked: 89 times
Been thanked: 10 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Post by istanbulls » Fri Jan 17, 2020 10:09 pm

"fw_printenv | grep hdmomode" command, should we exit the shell?
On the Petitboot screen:
"Exit to shell."
# fw_printenv | grep hdmomode
Should I do it this way?
--------
I'll also try lower resolution.
Like this:
# spimmc.sh
# fw_setenv hdmimode 720p60hz
-------
Yes, we all have a 4GB model.

User avatar
tobetter
Posts: 5082
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 159 times
Been thanked: 486 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Post by tobetter » Fri Jan 17, 2020 10:10 pm


istanbulls wrote:"fw_printenv | grep hdmomode" command, should we exit the shell?
On the Petitboot screen:
"Exit to shell."
# fw_printenv | grep hdmomode
Should I do it this way?
--------
I'll also try lower resolution.
Like this:
# spimmc.sh
# fw_setenv hdmimode 720p60hz
-------
Yes, we all have a 4GB model.
Exactly.

"Tapatalk wishes you to have fun with ODROID"

These users thanked the author tobetter for the post:
istanbulls (Fri Jan 17, 2020 10:15 pm)

User avatar
tobetter
Posts: 5082
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 159 times
Been thanked: 486 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Post by tobetter » Sat Jan 18, 2020 2:31 am

@istanbulls, quick question.
You said you have 3 OS setup on 64GB eMMC, what are them and what is the order of them? Can you share the output of fdisk with your eMMC?

istanbulls
Posts: 191
Joined: Tue May 14, 2019 10:18 pm
languages_spoken: Turkish
ODROIDs: ODROID N2
Has thanked: 89 times
Been thanked: 10 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Post by istanbulls » Sat Jan 18, 2020 3:06 am

tobetter wrote:
Sat Jan 18, 2020 2:31 am
@istanbulls, quick question.
You said you have 3 OS setup on 64GB eMMC, what are them and what is the order of them? Can you share the output of fdisk with your eMMC?
Can this picture answer your question?


also
"fw_printenv | grep hdmomode" and the result: the other image.
Attachments
photo5841258593641411624.jpg
photo5841258593641411624.jpg (138.06 KiB) Viewed 3779 times
Ekran görüntüsü_2020-01-17_20-58-26.png
Ekran görüntüsü_2020-01-17_20-58-26.png (722.03 KiB) Viewed 3779 times

User avatar
tobetter
Posts: 5082
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 159 times
Been thanked: 486 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Post by tobetter » Sat Jan 18, 2020 3:14 am

istanbulls wrote:
Sat Jan 18, 2020 3:06 am
tobetter wrote:
Sat Jan 18, 2020 2:31 am
@istanbulls, quick question.
You said you have 3 OS setup on 64GB eMMC, what are them and what is the order of them? Can you share the output of fdisk with your eMMC?
Can this picture answer your question?


also
"fw_printenv | grep hdmomode" and the result: the other image.
It is...thank you.

By the way, why didn't you run spimmc.sh before running fw_printenv ...? You must run spimmc.sh before running fw_printenv or fw_setenv, and run it again once you do not need to run both commands. Please give it a try.
These users thanked the author tobetter for the post:
istanbulls (Sat Jan 18, 2020 3:18 am)

istanbulls
Posts: 191
Joined: Tue May 14, 2019 10:18 pm
languages_spoken: Turkish
ODROIDs: ODROID N2
Has thanked: 89 times
Been thanked: 10 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Post by istanbulls » Sat Jan 18, 2020 4:23 am

tobetter wrote:
Sat Jan 18, 2020 3:14 am

It is...thank you.

By the way, why didn't you run spimmc.sh before running fw_printenv ...? You must run spimmc.sh before running fw_printenv or fw_setenv, and run it again once you do not need to run both commands. Please give it a try.
I did as you described.

https://youtu.be/7TAVsQbZ-ig

edit:

4K TV general petitboot issue.

https://youtu.be/qh6mTRDqhcQ

User avatar
tobetter
Posts: 5082
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 159 times
Been thanked: 486 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Post by tobetter » Sun Jan 19, 2020 7:12 am

20200118

Let me introduce a new version of the year 2020, please click spiboot-20200118.img to download and copy the file to your uSD card as spiboot.img or you can update with pb-update command in shell of the Petitboot if you have the version 20191127
https://wiki.odroid.com/odroid-n2/os_im ... grade_mode

What's improved:
  • Experimental codes are added to fix the problems, blank display issue and booting failure, but needs testing by a user
  • Recent patches for ODROID-N2 are merged to Petitboot kernel.
To the users who has a problem of booting failure or display blank issue:
Actually, I do not find out the root cause yet but I suspect that a certain OS on uSD card has the issue. Many users informed me that OS in Samsung EVO Plus memory card does not boot from the Petitboot and I suggest to swap the memory card to another vendor. In order to mitigate the issue on the Petitboot, I've added another kernel parameter 'disable_uhs=<true|false>' and I was able to see that a couple of failures cases reported by the user were resolved.

disable_uhs=<false|true>
After upgrading the Petitboot to 20200118, the kernel command line in SPI flash memory has to be changed, so please follow the instruction one by one carefully.

1. Go for "Exit to shell" in the Petitboot main menu screen.
2. Run spimmc.sh to open SPI flash memory.
/ # spimmc.sh
W: SPI flash memory is accessible.
/ # fw_printenv disable_uhs
## Error: "disable_uhs" not defined
/ # fw_printenv initargs
initargs=rootfstype=ramfs init=/init console=ttyS0,115200n8 no_console_suspend earlyprintk=aml-uart,0xff803000 ramoops.pstore_en
=1 ramoops.record_size=0x8000 ramoops.console_size=0x4000
3. Run /etc/uboot/fixup.sh in order to change the kernel command line for the Petitboot.
/ # /etc/uboot/fixup.sh
Please use 'fw_setenv disable_uhs true' in order to disable
UHS (Ultra-High-Speed) for Micro SD card, it affects from
next power cycle.

/ # fw_printenv disable_uhs
disable_uhs=false
/ # fw_printenv initargs
initargs=rootfstype=ramfs init=/init console=ttyS0,115200n8 no_console_suspend earlyprintk=aml-uart,0xff803000 ramoops.pstore_en
=1 ramoops.record_size=0x8000 ramoops.console_size=0x4000 disable_uhs=${disable_uhs}
4. By default after running /etc/boot/fixup.sh, UHS support is enabled same as usual. So if you have not met the issue with the previous version, you are not required to change the value disable_uhs. But if you have faced a booting issue when SD card is connected or the OS is installed to SD card, do run command fw_setenv disable_uhs true.
5. Once you run the command fw_setenv disable_uhs true or fw_setenv disable_uhs false, you must power cycle your ODROID-N2. Otherwise, the chance would not affect and disable UHS only affects to the Petitboot, regular OS will still keep using UHS support.
Note: The commands fw_printenv or fw_setenv must run after spimmc.sh is executed once.
Please keep sharing your experience with the Petitboot.
These users thanked the author tobetter for the post (total 4):
mad_ady (Sun Jan 19, 2020 2:51 pm) • istanbulls (Sun Jan 19, 2020 6:04 pm) • odroid (Mon Jan 20, 2020 10:12 am) • xabolcs (Tue Jan 21, 2020 7:15 pm)

istanbulls
Posts: 191
Joined: Tue May 14, 2019 10:18 pm
languages_spoken: Turkish
ODROIDs: ODROID N2
Has thanked: 89 times
Been thanked: 10 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Post by istanbulls » Sun Jan 19, 2020 11:08 pm

I did everything as you described.
Operating systems did not open.
Finally, I implemented "fw_setenv enable_uhs true". The operating system is sometimes started, but often does not start. Sometimes it starts again. When the operating system boots up, it runs unstable, and after a while it crashes and restarts.
Armbian opened once, but it was unstable. I rebooted and now wants to re-install for Armbian. :)
Android never opens,
Coreelec: There is the Coreelec boot image, but it starts again.
You are waiting too long to open Ubuntu Mate, it gives a lot of errors when it is opened and it is unstable and restarts after a while.
Attachments
WhatsApp Image 2020-01-19 at 16.46.47.jpeg
WhatsApp Image 2020-01-19 at 16.46.47.jpeg (283.71 KiB) Viewed 3587 times
WhatsApp Image 2020-01-19 at 16.46.46 (2).jpeg
WhatsApp Image 2020-01-19 at 16.46.46 (2).jpeg (340.45 KiB) Viewed 3587 times
WhatsApp Image 2020-01-19 at 16.46.46 (1).jpeg
WhatsApp Image 2020-01-19 at 16.46.46 (1).jpeg (163.5 KiB) Viewed 3587 times
WhatsApp Image 2020-01-19 at 16.46.46.jpeg
WhatsApp Image 2020-01-19 at 16.46.46.jpeg (160.35 KiB) Viewed 3587 times

c9v87kh2
Posts: 5
Joined: Sat Jan 11, 2020 12:50 am
languages_spoken: french,english
ODROIDs: Odroid-N2
Has thanked: 0
Been thanked: 0
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Post by c9v87kh2 » Mon Jan 20, 2020 7:02 pm

Hello everybody,

I've been trying to build petitboot for my fresh new N2 but I struggle into compilation issue.

For those interested in, here the dedicated thread with full description and logs => viewtopic.php?f=181&t=37351

@tobetter could I have some help ?

Thanks a lot and sorry for disturbing

User avatar
tobetter
Posts: 5082
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 159 times
Been thanked: 486 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Post by tobetter » Tue Jan 21, 2020 11:08 pm

@istanbulls, I am seeing that you have 3 OS in a single uSD and none of them work by Petitboot, what I am not sure is if Android works after when uSD is removed. What I suggest is that flashing one OS to uSD like regular users and try if the OS can boot by Petitboot and also Android can boot when uSD is attached. If it does not boot, please apply the option disable_uhs=true and try again. If that way does work, I would suspect the layout of OS in the uSD flashed, somehow they could be corrupted or one disturbs another not to boot. At least, I would like to see if you N2 works for Android on eMMC and CoreElect on uSD with the Petitboot 20200118 for sure.

istanbulls
Posts: 191
Joined: Tue May 14, 2019 10:18 pm
languages_spoken: Turkish
ODROIDs: ODROID N2
Has thanked: 89 times
Been thanked: 10 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Post by istanbulls » Wed Jan 22, 2020 12:00 am

tobetter wrote:
Tue Jan 21, 2020 11:08 pm
@istanbulls, I am seeing that you have 3 OS in a single uSD and none of them work by Petitboot, what I am not sure is if Android works after when uSD is removed. What I suggest is that flashing one OS to uSD like regular users and try if the OS can boot by Petitboot and also Android can boot when uSD is attached. If it does not boot, please apply the option disable_uhs=true and try again. If that way does work, I would suspect the layout of OS in the uSD flashed, somehow they could be corrupted or one disturbs another not to boot. At least, I would like to see if you N2 works for Android on eMMC and CoreElect on uSD with the Petitboot 20200118 for sure.
I am back to the 20191127 version.
I will try again soon.
For all stages, I will record video separately.

User avatar
tobetter
Posts: 5082
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 159 times
Been thanked: 486 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Post by tobetter » Wed Jan 22, 2020 12:03 am

istanbulls wrote:
tobetter wrote:
Tue Jan 21, 2020 11:08 pm
@istanbulls, I am seeing that you have 3 OS in a single uSD and none of them work by Petitboot, what I am not sure is if Android works after when uSD is removed. What I suggest is that flashing one OS to uSD like regular users and try if the OS can boot by Petitboot and also Android can boot when uSD is attached. If it does not boot, please apply the option disable_uhs=true and try again. If that way does work, I would suspect the layout of OS in the uSD flashed, somehow they could be corrupted or one disturbs another not to boot. At least, I would like to see if you N2 works for Android on eMMC and CoreElect on uSD with the Petitboot 20200118 for sure.
I am back to the 20191127 version.
I will try again soon.
For all stages, I will record video separately.
Wait, does 20191127 works for your set up but 20200118 does not?

"Tapatalk wishes you to have fun with ODROID"


istanbulls
Posts: 191
Joined: Tue May 14, 2019 10:18 pm
languages_spoken: Turkish
ODROIDs: ODROID N2
Has thanked: 89 times
Been thanked: 10 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Post by istanbulls » Wed Jan 22, 2020 12:19 am

N2 in my home, media center, pc. I use it very extensively.
I want to use it at any time.
20200118 did not work, it was not stable for me. I am back to the old version.
Yes, it didn't work for me.

pepeEL
Posts: 35
Joined: Fri Jan 17, 2020 4:03 pm
languages_spoken: english
ODROIDs: Odroid N2
Has thanked: 0
Been thanked: 0
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Post by pepeEL » Wed Jan 22, 2020 2:41 am

Hi. Today i buy odroid n2. Then write first recovery petiboot then update to version 201907 rc1 and then update to version 201911. Then i write on my also SD card and also on my usb SSD disk image HASSOS 4.0 with home assistant hassio. And HASSOS no boot also not from sdcard and also from usb SSD. When i try Save settings in petiboot i get error as on screen. Please help me....
IMG_20200121_182945.jpg
IMG_20200121_182945.jpg (281.2 KiB) Viewed 3380 times

User avatar
tobetter
Posts: 5082
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 159 times
Been thanked: 486 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Post by tobetter » Wed Jan 22, 2020 2:45 am

pepeEL wrote:
Wed Jan 22, 2020 2:41 am
Hi. Today i buy odroid n2. Then write first recovery petiboot then update to version 201907 rc1 and then update to version 201911. Then i write on my also SD card and also on my usb SSD disk image HASSOS 4.0 with home assistant hassio. And HASSOS no boot also not from sdcard and also from usb SSD. When i try Save settings in petiboot i get error as on screen. Please help me....
Are you able to boot any OS from it?

pepeEL
Posts: 35
Joined: Fri Jan 17, 2020 4:03 pm
languages_spoken: english
ODROIDs: Odroid N2
Has thanked: 0
Been thanked: 0
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Post by pepeEL » Wed Jan 22, 2020 2:50 am

No. Now only try HASSOS.
Where i can found any os to download?

User avatar
mad_ady
Posts: 7911
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, C4, N1, N2, H2, Go, Go Advance
Location: Bucharest, Romania
Has thanked: 502 times
Been thanked: 350 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Post by mad_ady » Wed Jan 22, 2020 2:53 am


User avatar
tobetter
Posts: 5082
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 159 times
Been thanked: 486 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Post by tobetter » Wed Jan 22, 2020 2:54 am

pepeEL wrote:
Wed Jan 22, 2020 2:50 am
No. Now only try HASSOS.
Where i can found any os to download?
You can download Ubuntu,
https://wiki.odroid.com/odroid-n2/os_images/ubuntu
CoreELEC, https://coreelec.org/
or Armbian, https://www.armbian.com/odroid-n2/

What's the file name of HASSOS 4.0 you installed?

pepeEL
Posts: 35
Joined: Fri Jan 17, 2020 4:03 pm
languages_spoken: english
ODROIDs: Odroid N2
Has thanked: 0
Been thanked: 0
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Post by pepeEL » Wed Jan 22, 2020 2:59 am


pepeEL
Posts: 35
Joined: Fri Jan 17, 2020 4:03 pm
languages_spoken: english
ODROIDs: Odroid N2
Has thanked: 0
Been thanked: 0
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Post by pepeEL » Wed Jan 22, 2020 3:09 am

Also now try Ubuntu minimal on usb SSD. Now i can Save settings but also no boot.
IMG_20200121_190651.jpg
IMG_20200121_190651.jpg (272.2 KiB) Viewed 3361 times

User avatar
tobetter
Posts: 5082
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 159 times
Been thanked: 486 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Post by tobetter » Wed Jan 22, 2020 3:15 am

pepeEL wrote:
Wed Jan 22, 2020 3:09 am
Also now try Ubuntu minimal on usb SSD. Now i can Save settings but also no boot.
Have you tried to select the OS from the main menu? not the setting screen?
Also I am looking into the Hasso OS downloaded from the link you shared, and seems it's not work...let me look into it.

pepeEL
Posts: 35
Joined: Fri Jan 17, 2020 4:03 pm
languages_spoken: english
ODROIDs: Odroid N2
Has thanked: 0
Been thanked: 0
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Post by pepeEL » Wed Jan 22, 2020 3:16 am

But how ? When i power ON my Odroid N2 autostart petiboot....

pepeEL
Posts: 35
Joined: Fri Jan 17, 2020 4:03 pm
languages_spoken: english
ODROIDs: Odroid N2
Has thanked: 0
Been thanked: 0
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Post by pepeEL » Wed Jan 22, 2020 3:20 am

From SD card it looks as show
IMG_20200121_191932.jpg
IMG_20200121_191932.jpg (216.88 KiB) Viewed 3362 times

User avatar
tobetter
Posts: 5082
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 159 times
Been thanked: 486 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Post by tobetter » Wed Jan 22, 2020 3:21 am

pepeEL wrote:
Wed Jan 22, 2020 3:16 am
But how ? When i power ON my Odroid N2 autostart petiboot....
Petitboot is a boot manager and it will start another OS, when Petitboot start keep as is and you would be able to see the OS menu at the first screen and if you select it the OS will start or will start automatically.

User avatar
tobetter
Posts: 5082
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 159 times
Been thanked: 486 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Post by tobetter » Wed Jan 22, 2020 3:48 am

I've checked the image and it's very exciting to know it's a way more complicated system. In other words, HASSOS cannot be supported by the Petitboot as of now. It's because it's a complicated system using a seamless system (A/B) and HASSOS itself manages it with the boot script which is not recognized by the Petitboot and many commands are using to read/write from MMC device directly.

In order to support HASSOS by Petitboot, I need to work for some time to understand the boot script and its partition layout. But, what I am not understanding is that if you run HASSOS on ODROID-N2, you may not need the Petitboot IMO. Regardless of the Petitboot, HASSOS is not designed to run on USB storage.

pepeEL
Posts: 35
Joined: Fri Jan 17, 2020 4:03 pm
languages_spoken: english
ODROIDs: Odroid N2
Has thanked: 0
Been thanked: 0
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Post by pepeEL » Wed Jan 22, 2020 3:53 am

Hmm developer start first relase HASSOS whcih should run on Odroid N2.
Hassos is designed to work on USB. Some time ago it was implemented....

But i try also run from USB SSD and also from SD Card Ubuntu Minimal and also no boot... I am waiting waiting and nothing.

pepeEL
Posts: 35
Joined: Fri Jan 17, 2020 4:03 pm
languages_spoken: english
ODROIDs: Odroid N2
Has thanked: 0
Been thanked: 0
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Post by pepeEL » Wed Jan 22, 2020 3:55 am


User avatar
tobetter
Posts: 5082
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 159 times
Been thanked: 486 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Post by tobetter » Wed Jan 22, 2020 4:03 am

pepeEL wrote:
Wed Jan 22, 2020 3:53 am
Hmm developer start first relase HASSOS whcih should run on Odroid N2.
Hassos is designed to work on USB. Some time ago it was implemented....

But i try also run from USB SSD and also from SD Card Ubuntu Minimal and also no boot... I am waiting waiting and nothing.
I have no idea if HASSOS has been designed to work on USB or not, but when I read the boot script and my understanding of the script, it's not for ODROID-N2 yet. This is the part of the boot script that is very different from other OS. For now, can you try to run it from uSD if it works or not? Are you only intended to run it on USB for a certain reason?

Code: Select all

part start mmc ${devnum} 9 mmc_env
mmc dev ${devnum}
setenv loadbootstate " \
    echo 'loading env...'; \
    mmc read ${ramdisk_addr_r} ${mmc_env} 0x10; \
    env import -c ${ramdisk_addr_r} 0x2000;"

setenv storebootstate " \
    echo 'storing env...'; \
    env export -c -s 0x2000 ${ramdisk_addr_r} BOOT_ORDER BOOT_A_LEFT BOOT_B_LEFT; \
    mmc write ${ramdisk_addr_r} ${mmc_env} 0x10;"

run loadbootstate
test -n "${BOOT_ORDER}" || setenv BOOT_ORDER "A B"
test -n "${BOOT_A_LEFT}" || setenv BOOT_A_LEFT 3
test -n "${BOOT_B_LEFT}" || setenv BOOT_B_LEFT 3

if load mmc ${devnum}:1 ${ramdisk_addr_r} config.txt; then
  env import -t ${ramdisk_addr_r} ${filesize};
fi

# Board bootargs
if test "${hdmimode}" = "custombuilt"; then setenv cmode "modeline=${modeline}"; fi

# Boot Args
setenv bootargs_odroidn2 "clk_ignore_unused hdmimode=${hdmimode} cvbsmode=576cvbs max_freq_a53=${max_freq_a53} max_freq_a73=${max_freq_a73} maxcpus=${maxcpus} ${cmode} voutmode=${voutmode} disablehpd=${disablehpd} overscan=${overscan}"

# HassOS bootargs
setenv bootargs_hassos "zram.enabled=1 zram.num_devices=3 apparmor=1 security=apparmor cgroup_enable=memory"

# HassOS system A/B
setenv bootargs_a "root=PARTUUID=48617373-06 rootfstype=squashfs ro rootwait"
setenv bootargs_b "root=PARTUUID=48617373-08 rootfstype=squashfs ro rootwait"

pepeEL
Posts: 35
Joined: Fri Jan 17, 2020 4:03 pm
languages_spoken: english
ODROIDs: Odroid N2
Has thanked: 0
Been thanked: 0
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Post by pepeEL » Wed Jan 22, 2020 4:10 am

But it is not working also from Micro SD card. I also write on SD Card Ubuntu Minimal from Odroid page and it also not working and no boot. Still show screen Petiboot with menu.

User avatar
tobetter
Posts: 5082
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 159 times
Been thanked: 486 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Post by tobetter » Wed Jan 22, 2020 4:20 am

pepeEL wrote:
Wed Jan 22, 2020 4:10 am
But it is not working also from Micro SD card. I also write on SD Card Ubuntu Minimal from Odroid page and it also not working and no boot. Still show screen Petiboot with menu.
Not booting? Even if you select the boot entry for Ubuntu minimal in the Petitboot, it does not boot?

And for HASSOS, I believe your intention is to run HASSOS, would you please do test if it works on ODROID-N2 using uSD? Are you planning to run multiple OS other than HASSOS?

pepeEL
Posts: 35
Joined: Fri Jan 17, 2020 4:03 pm
languages_spoken: english
ODROIDs: Odroid N2
Has thanked: 0
Been thanked: 0
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Post by pepeEL » Wed Jan 22, 2020 4:40 am

On Ubuntu i try on microSD CArd and no boot.


On Hassos i try also first from USB SSD Disk and no boot.
Then i try on MicroSD card and also no boot.

User avatar
mad_ady
Posts: 7911
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, C4, N1, N2, H2, Go, Go Advance
Location: Bucharest, Romania
Has thanked: 502 times
Been thanked: 350 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Post by mad_ady » Wed Jan 22, 2020 5:07 am

I'll try to have a look at it in a cople of days

pepeEL
Posts: 35
Joined: Fri Jan 17, 2020 4:03 pm
languages_spoken: english
ODROIDs: Odroid N2
Has thanked: 0
Been thanked: 0
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Post by pepeEL » Wed Jan 22, 2020 5:14 am

I can not run any OS on my Odroid N2.... :( Or maybe i was doing wrong...

istanbulls
Posts: 191
Joined: Tue May 14, 2019 10:18 pm
languages_spoken: Turkish
ODROIDs: ODROID N2
Has thanked: 89 times
Been thanked: 10 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Post by istanbulls » Wed Jan 22, 2020 6:21 am

tobetter wrote:
Wed Jan 22, 2020 12:03 am
Wait, does 20191127 works for your set up but 20200118 does not?

"Tapatalk wishes you to have fun with ODROID"
I tried again now.
For me, petitboot 20200118 does not work.

Petitiboot 20200118 Youtube
https://youtu.be/VOYsIr_ZDGs

petitiboot 20191127 youtube
https://youtu.be/xonjdqKitD8

I did not make the arrangements you recommended in this vaccine.
tobetter wrote:
Sun Jan 19, 2020 7:12 am

To the users who has a problem of booting failure or display blank issue:
Actually, I do not find out the root cause yet but I suspect that a certain OS on uSD card has the issue. Many users informed me that OS in Samsung EVO Plus memory card does not boot from the Petitboot and I suggest to swap the memory card to another vendor. In order to mitigate the issue on the Petitboot, I've added another kernel parameter 'disable_uhs=<true|false>' and I was able to see that a couple of failures cases reported by the user were resolved.

disable_uhs=<false|true>
After upgrading the Petitboot to 20200118, the kernel command line in SPI flash memory has to be changed, so please follow the instruction one by one carefully.

1. Go for "Exit to shell" in the Petitboot main menu screen.
2. Run spimmc.sh to open SPI flash memory.
/ # spimmc.sh
W: SPI flash memory is accessible.
/ # fw_printenv disable_uhs
## Error: "disable_uhs" not defined
/ # fw_printenv initargs
initargs=rootfstype=ramfs init=/init console=ttyS0,115200n8 no_console_suspend earlyprintk=aml-uart,0xff803000 ramoops.pstore_en
=1 ramoops.record_size=0x8000 ramoops.console_size=0x4000
3. Run /etc/uboot/fixup.sh in order to change the kernel command line for the Petitboot.
/ # /etc/uboot/fixup.sh
Please use 'fw_setenv disable_uhs true' in order to disable
UHS (Ultra-High-Speed) for Micro SD card, it affects from
next power cycle.

/ # fw_printenv disable_uhs
disable_uhs=false
/ # fw_printenv initargs
initargs=rootfstype=ramfs init=/init console=ttyS0,115200n8 no_console_suspend earlyprintk=aml-uart,0xff803000 ramoops.pstore_en
=1 ramoops.record_size=0x8000 ramoops.console_size=0x4000 disable_uhs=${disable_uhs}
4. By default after running /etc/boot/fixup.sh, UHS support is enabled same as usual. So if you have not met the issue with the previous version, you are not required to change the value disable_uhs. But if you have faced a booting issue when SD card is connected or the OS is installed to SD card, do run command fw_setenv disable_uhs true.
5. Once you run the command fw_setenv disable_uhs true or fw_setenv disable_uhs false, you must power cycle your ODROID-N2. Otherwise, the chance would not affect and disable UHS only affects to the Petitboot, regular OS will still keep using UHS support.
Note: The commands fw_printenv or fw_setenv must run after spimmc.sh is executed once.

pepeEL
Posts: 35
Joined: Fri Jan 17, 2020 4:03 pm
languages_spoken: english
ODROIDs: Odroid N2
Has thanked: 0
Been thanked: 0
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Post by pepeEL » Wed Jan 22, 2020 7:13 am

I found a problem.... booting Ubuntu. I use Samsung Pro 16GB microSD card and on this card no boot. I change on some (slower) 8GB microSD Card and boot ok. Now i test Hassos on this card. But why good or very good card not working ?

Sav
Posts: 206
Joined: Mon Sep 02, 2019 2:33 am
languages_spoken: english
ODROIDs: odroid-n2
Has thanked: 42 times
Been thanked: 17 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Post by Sav » Wed Jan 22, 2020 8:06 am

pepeEL wrote:I found a problem.... booting Ubuntu. I use Samsung Pro 16GB microSD card and on this card no boot. I change on some (slower) 8GB microSD Card and boot ok. Now i test Hassos on this card. But why good or very good card not working ?
If you take sometime to read this thread from the beginning, you'll find many complains about Samsung sd cards and some solutions developed by tobetter, especially in the latest petitboot release.


Inviato dal mio iPad utilizzando Tapatalk

pepeEL
Posts: 35
Joined: Fri Jan 17, 2020 4:03 pm
languages_spoken: english
ODROIDs: Odroid N2
Has thanked: 0
Been thanked: 0
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Post by pepeEL » Wed Jan 22, 2020 8:22 am

I try solution with disable uhs from user to better but nothing change for Samsung card.

Tobetter is any chance to Mode Petitboot to works with HASSOS?
Developer HASSOS write that Odroid N2 is the Best hardware for Hassos(hassio)

User avatar
tobetter
Posts: 5082
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 159 times
Been thanked: 486 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Post by tobetter » Wed Jan 22, 2020 8:56 am

I've tested with Samsung EVO many times with the latest Petitboot and it worked, I'd like to suggest you to share more detail how it does not work and what you've done, where the OS is stucked.

I've learned the boot script and I would be able to manage it to boot from USB at least, but the problem I can imagine is that HASSO could update the firmware to MMC via OTA and this will lead another failure later.

In personal, it's good to support more OS but it would take some time to support HASSO.

"Tapatalk wishes you to have fun with ODROID"


pepeEL
Posts: 35
Joined: Fri Jan 17, 2020 4:03 pm
languages_spoken: english
ODROIDs: Odroid N2
Has thanked: 0
Been thanked: 0
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Post by pepeEL » Wed Jan 22, 2020 2:44 pm

Nooo Hassos no update firmware.... I dont know about it...
What i need to give you about Samsung Pro 16GB. Please write me step by step and i give you full info.

User avatar
tobetter
Posts: 5082
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 159 times
Been thanked: 486 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Post by tobetter » Wed Jan 22, 2020 2:56 pm

pepeEL wrote:
Wed Jan 22, 2020 2:44 pm
Nooo Hassos no update firmware.... I dont know about it...
What i need to give you about Samsung Pro 16GB. Please write me step by step and i give you full info.
I have no idea whether or not HASSOS updates firmware, but I learned from the boot script is it seems like...I can confirm after having some study.

For Samsung EVO, confirm if you have the Petitboot 20200118 or not and if it so, exit to command shell and run these two commands and let me know output.

Code: Select all

# spimmc.sh
# fw_printenv disable_uhs
Also, let have have the picture of your Samsung EVO...AFAIK there are different types of EVO memory cards.

User avatar
mad_ady
Posts: 7911
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, C4, N1, N2, H2, Go, Go Advance
Location: Bucharest, Romania
Has thanked: 502 times
Been thanked: 350 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Post by mad_ady » Wed Jan 22, 2020 3:33 pm

HASSIO (the Home Assistant component of HassOS) uses docker to update and run. So even if HassOS can't be easily updated, you can still update Home Assistant.

pepeEL
Posts: 35
Joined: Fri Jan 17, 2020 4:03 pm
languages_spoken: english
ODROIDs: Odroid N2
Has thanked: 0
Been thanked: 0
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Post by pepeEL » Wed Jan 22, 2020 3:44 pm


User avatar
tobetter
Posts: 5082
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 159 times
Been thanked: 486 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Post by tobetter » Wed Jan 22, 2020 3:46 pm

pepeEL wrote:
Wed Jan 22, 2020 3:44 pm
This is my microSD Card:
https://cdn.neo24.pl/karty/pliki/zdjeci ... 8556F1.jpg
Thanks, what about the output of fw_printenv disable_uhs?
Also, can you try to insert you uSD to a USB card reader and attach to ODROID-N2 USB port if it comes to Petitboot and can boot?

pepeEL
Posts: 35
Joined: Fri Jan 17, 2020 4:03 pm
languages_spoken: english
ODROIDs: Odroid N2
Has thanked: 0
Been thanked: 0
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Post by pepeEL » Wed Jan 22, 2020 3:51 pm

OK i test. Give me some time.... Maybe 1-2hours.

pepeEL
Posts: 35
Joined: Fri Jan 17, 2020 4:03 pm
languages_spoken: english
ODROIDs: Odroid N2
Has thanked: 0
Been thanked: 0
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Post by pepeEL » Wed Jan 22, 2020 5:18 pm

# spimmc.sh
# fw_printenv disable_uhs



show me error:
#Error: "disable_uhs" not defined

By card reader on USB Samsung Pro(which i show on screen prev post) works ok. Only no boot from slot microSD.

User avatar
tobetter
Posts: 5082
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 159 times
Been thanked: 486 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Post by tobetter » Wed Jan 22, 2020 5:27 pm

pepeEL wrote:
Wed Jan 22, 2020 5:18 pm
# spimmc.sh
# fw_printenv disable_uhs



show me error:
#Error: "disable_uhs" not defined

By card reader on USB Samsung Pro(which i show on screen prev post) works ok. Only no boot from slot microSD.
Please refer to the link for the Petitbiit 20200118, there is an instruction on how you can set disable_uhs specifically at step 3.
viewtopic.php?f=182&t=33873#p278201

Post Reply

Return to “Projects”

Who is online

Users browsing this forum: No registered users and 3 guests