Petitboot, yet another bootloader based on KEXEC

Post Reply
jackk11111
Posts: 25
Joined: Sun Aug 20, 2023 1:33 am
languages_spoken: english, italian
ODROIDs: Odroid n2+
Has thanked: 2 times
Been thanked: 1 time
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Post by jackk11111 »

tobetter wrote:
Wed Aug 23, 2023 6:50 pm
jackk11111 wrote:
Wed Aug 23, 2023 5:13 pm
tobetter wrote:
Tue Aug 22, 2023 11:56 pm
jackk11111 wrote:
Tue Aug 22, 2023 11:44 pm
Start MMC with android
Strange...that's a bit weird...let me check why.
FYI, pressing any key on a keyboard will stop booting an OS in Petitboot.
the problem could be that after pressing OK I remove the power from the plug without crtl+alt+canc?
The setting configuration is no stored right after pressing OK, it stores after a several minutes. So you need to take a breath a bit, but fw_setenv does affect but it didn't change...so maybe some bug. :ugeek:
Bug petiboot? should i just wait fix?

User avatar
mad_ady
Posts: 11755
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, yet another bootloader based on KEXEC

Post by mad_ady »

I'm running petitboot dev.20220317 on an N2+ (apparently it's the latest version according to pb_update). I'm now using my N2+ as a desktop computer, with the rootfs attached to a USB SATA adapter and a SSD plugged in. I am able to boot correctly, however, on boot it doesn't see the disk and doesn't list it as an option unless I exit and re-enter petitboot, or hit Rescan devices.

I seem to rememeber being an option to wait/delay boot to give mechanical disks a chance to spin up (it isn't my case, but it might help), but for the life of me, I can't find the option name on the forum... Any ideas what it's called?

The USB-SATA adapter is a Hardkernel one - JMicron JMS578, if it's relevant.

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, yet another bootloader based on KEXEC

Post by tobetter »

mad_ady wrote:
Thu Nov 16, 2023 5:52 pm
I'm running petitboot dev.20220317 on an N2+ (apparently it's the latest version according to pb_update). I'm now using my N2+ as a desktop computer, with the rootfs attached to a USB SATA adapter and a SSD plugged in. I am able to boot correctly, however, on boot it doesn't see the disk and doesn't list it as an option unless I exit and re-enter petitboot, or hit Rescan devices.

I seem to rememeber being an option to wait/delay boot to give mechanical disks a chance to spin up (it isn't my case, but it might help), but for the life of me, I can't find the option name on the forum... Any ideas what it's called?

The USB-SATA adapter is a Hardkernel one - JMicron JMS578, if it's relevant.
Technically the storage must be presented even later when any OS is not started yet, but it's worth to try adding usb-storage.quirks to kernel command line of Petitboot.
viewtopic.php?p=363680#p363680

User avatar
istanbulls
Posts: 902
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, yet another bootloader based on KEXEC

Post by istanbulls »

mad_ady wrote:
Thu Nov 16, 2023 5:52 pm
I'm running petitboot dev.20220317 on an N2+ (apparently it's the latest version according to pb_update). I'm now using my N2+ as a desktop computer, with the rootfs attached to a USB SATA adapter and a SSD plugged in. I am able to boot correctly, however, on boot it doesn't see the disk and doesn't list it as an option unless I exit and re-enter petitboot, or hit Rescan devices.

I seem to rememeber being an option to wait/delay boot to give mechanical disks a chance to spin up (it isn't my case, but it might help), but for the life of me, I can't find the option name on the forum... Any ideas what it's called?

The USB-SATA adapter is a Hardkernel one - JMicron JMS578, if it's relevant.
I have been using OS via SSD for a long time, sometimes it is necessary to wait 30-40 seconds. If the OSes are not listed after waiting 30-40 seconds, I recommend you to switch to a USB-SATA adapter with ASM 225CM chipset.
According to my experience, the most trouble-free USB-SATA adapters for SSD are ASM branded ones.

User avatar
mad_ady
Posts: 11755
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, yet another bootloader based on KEXEC

Post by mad_ady »

Thanks for the suggestion! usbquirks did the trick!
152d:0578:u can be added to the default list!
These users thanked the author mad_ady for the post (total 2):
tobetter (Fri Nov 17, 2023 4:30 am) • istanbulls (Fri Nov 17, 2023 7:07 am)

Post Reply

Return to “Projects”

Who is online

Users browsing this forum: No registered users and 1 guest