Petitboot, yet another bootloader based on KEXEC

User avatar
mad_ady
Posts: 6365
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1, H2, N2
Location: Bucharest, Romania
Has thanked: 145 times
Been thanked: 106 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by mad_ady » Mon Jun 03, 2019 1:01 am

Great progress, but you do realize it's sunday, right? :D

Since you're mounting the rootfs of the target os you could extract its name from /etc/hostname and its type from /etc/lsb-release (except for redhat/centos which has /etc/redhat-release).

mxmilkb
Posts: 10
Joined: Fri Apr 26, 2019 9:28 am
languages_spoken: English
ODROIDs: N2
Has thanked: 5 times
Been thanked: 3 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by mxmilkb » Mon Jun 03, 2019 2:30 am

a wee request - could petitboot be made to display somewhere information on the firmware version installed? so as to confirm if flashing has been successful.

edit: aah, i had hdmi to vga adapter problems that cut off the edge of the screen. i switched back to a sometimes intermittent hdmi cable and i can see the rev[ision] number.
Last edited by mxmilkb on Mon Jun 03, 2019 5:00 am, edited 1 time in total.
These users thanked the author mxmilkb for the post (total 2):
mad_ady (Mon Jun 03, 2019 2:36 am) • xabolcs (Mon Jun 03, 2019 4:27 am)

mxmilkb
Posts: 10
Joined: Fri Apr 26, 2019 9:28 am
languages_spoken: English
ODROIDs: N2
Has thanked: 5 times
Been thanked: 3 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by mxmilkb » Mon Jun 03, 2019 4:58 am

shift+tab moves through menu items forward like tab, not in reverse

User avatar
tobetter
Posts: 3764
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: 28 times
Been thanked: 128 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by tobetter » Mon Jun 03, 2019 8:32 am

mxmilkb wrote:
Mon Jun 03, 2019 4:58 am
shift+tab moves through menu items forward like tab, not in reverse
Unfortunately, shift+tab is not be possible since Petitboot is based on ncurses library and looks like it does not support it. Let me look into if any modifier is supported.

User avatar
tobetter
Posts: 3764
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: 28 times
Been thanked: 128 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by tobetter » Mon Jun 03, 2019 8:34 am

mxmilkb wrote:
Mon Jun 03, 2019 2:30 am
a wee request - could petitboot be made to display somewhere information on the firmware version installed? so as to confirm if flashing has been successful.

edit: aah, i had hdmi to vga adapter problems that cut off the edge of the screen. i switched back to a sometimes intermittent hdmi cable and i can see the rev[ision] number.
Thanks, good to know.

User avatar
tobetter
Posts: 3764
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: 28 times
Been thanked: 128 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by tobetter » Mon Jun 03, 2019 8:37 am

mad_ady wrote:
Mon Jun 03, 2019 1:01 am
Great progress, but you do realize it's sunday, right? :D

Since you're mounting the rootfs of the target os you could extract its name from /etc/hostname and its type from /etc/lsb-release (except for redhat/centos which has /etc/redhat-release).
Yes, I do... ;)

It's good idea reading /etc/hostname or /etc/lsb-release which to use for the lable. I guess there would be a some limitation but it would good approach to indicate the OS.

phaseshifter
Posts: 3452
Joined: Fri May 08, 2015 9:12 am
languages_spoken: english
ODROIDs: U-2,U3+,,XU-3,,XU3-LITE,,XU-4
C1+,,C-2,,,
N-1,,N-2,...other odroid acc`s as well
Has thanked: 35 times
Been thanked: 42 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by phaseshifter » Mon Jun 03, 2019 9:01 am

i can grasp the concept but yet it still does not clarify that the os install flash was successful ..etcher is usually an indication for that purpose..

yes it would give an indication of the opp sys that was flashed to the chip... but not an indication that the "flash" was true..with respect to the os sys..
Build It And They Will Come...Be Bold And Mighty Forces Will Come To Your Aid..!!!

mxmilkb
Posts: 10
Joined: Fri Apr 26, 2019 9:28 am
languages_spoken: English
ODROIDs: N2
Has thanked: 5 times
Been thanked: 3 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by mxmilkb » Tue Jun 04, 2019 4:21 am

i joined #manjaro-arm on Freenode. after i mentioned the recent petitboot update, a minimal image without uboot was created - https://nextcloud.strits.dk/index.php/s/Ds45SK3Ndaxgff4 - not that i have tried it myself yet as some other life things happened.

User avatar
mad_ady
Posts: 6365
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1, H2, N2
Location: Bucharest, Romania
Has thanked: 145 times
Been thanked: 106 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by mad_ady » Thu Jun 06, 2019 7:04 pm

@tobetter: I made a bit of time to play with your new petitboot image. Flashed it (apparently correctly), it boots (nice to see the kernel log on serial), but it never starts petitboot. Last messages on the serial line are:

Code: Select all

dwc_otg: OTG VER PARAM: 1, OTG VER FLAG: 1
dwc_otg: Working on port type = SLAVE
dwc_otg: Dedicated Tx FIFOs mode
gxbb_pm: enter meson_pm_probe!
gxbb_pm: meson_pm_probe done
Freeing unused kernel memory: 1472K
It probably tries to mount its root filesystem and fails. Tried with an empty SD card and with no storage attached too. Let me know if you want more messages.

User avatar
tobetter
Posts: 3764
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: 28 times
Been thanked: 128 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by tobetter » Thu Jun 06, 2019 7:09 pm

mad_ady wrote:
Thu Jun 06, 2019 7:04 pm
@tobetter: I made a bit of time to play with your new petitboot image. Flashed it (apparently correctly), it boots (nice to see the kernel log on serial), but it never starts petitboot. Last messages on the serial line are:

Code: Select all

dwc_otg: OTG VER PARAM: 1, OTG VER FLAG: 1
dwc_otg: Working on port type = SLAVE
dwc_otg: Dedicated Tx FIFOs mode
gxbb_pm: enter meson_pm_probe!
gxbb_pm: meson_pm_probe done
Freeing unused kernel memory: 1472K
It probably tries to mount its root filesystem and fails. Tried with an empty SD card and with no storage attached too. Let me know if you want more messages.
Don't you have the Petitboot on HDMI?
Petitboot won't start on the serial port, while it will come to HDMI.

User avatar
mad_ady
Posts: 6365
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1, H2, N2
Location: Bucharest, Romania
Has thanked: 145 times
Been thanked: 106 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by mad_ady » Thu Jun 06, 2019 7:12 pm

I have hdmi turned on, but it says no signal. The previous version would display the menu. I'm using a hdmi-dvi adapter on a 1280x1024 monitor.

User avatar
tobetter
Posts: 3764
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: 28 times
Been thanked: 128 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by tobetter » Thu Jun 06, 2019 7:27 pm

mad_ady wrote:
Thu Jun 06, 2019 7:12 pm
I have hdmi turned on, but it says no signal. The previous version would display the menu. I'm using a hdmi-dvi adapter on a 1280x1024 monitor.
Oh...I see...unfortunately, the test version is not doing display autodetection since mmc card detection is failure is not working if display autodetection is enabled and only 1080p60hz is supporting properly. They are not relevant features but they are, I have not fixed yet. :(
FIY, this is the U-boot source tree running for the Petitboot.
https://github.com/tobetter/u-boot/blob ... mon.h#L268

User avatar
mad_ady
Posts: 6365
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1, H2, N2
Location: Bucharest, Romania
Has thanked: 145 times
Been thanked: 106 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by mad_ady » Thu Jun 06, 2019 7:32 pm

Oh, I see. No problem. Maybe if it's possible in a future release to spawn a sh on the console line. That way users can run a second petitboot instance over serial and maybe change things. Or troubleshoot further.
These users thanked the author mad_ady for the post:
tobetter (Thu Jun 06, 2019 7:40 pm)

User avatar
tobetter
Posts: 3764
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: 28 times
Been thanked: 128 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by tobetter » Thu Jun 06, 2019 7:40 pm

mad_ady wrote:
Thu Jun 06, 2019 7:32 pm
Oh, I see. No problem. Maybe if it's possible in a future release to spawn a sh on the console line. That way users can run a second petitboot instance over serial and maybe change things. Or troubleshoot further.
The original intention was doing everything in the display, your suggestion is also good for the case when Petitboot boot is not working properly. Let me consider the case as well, current init system must be fixed but...will see after fixing display issue why it brings mmc detection problem. Thank you for your suggestion.

juanjo1024
Posts: 12
Joined: Sat Sep 02, 2017 10:07 pm
languages_spoken: english, spanish
ODROIDs: C2 N2
Has thanked: 0
Been thanked: 0
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by juanjo1024 » Sun Jun 09, 2019 4:11 am

is there any way to make it autoboot ?
balbes150 has made a patch to make it autoboot, but it needs the usb uart cable, which i dont have. is it possible to include his patch in petitboot image ?

https://yadi.sk/d/WrgbX_4ZSlnOXg/0.4

User avatar
tobetter
Posts: 3764
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: 28 times
Been thanked: 128 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by tobetter » Tue Jun 11, 2019 7:20 am

201906-RC2
Petitboot update image is uploaded, https://drive.google.com/open?id=1CDkKd ... bJc0O_HDvx. The file must be copied as spiupdate.img to the first partition in your SD card, not eMMC. In order to update properly, the boot select switch must be placed to SPI and must do a power cycle, unless ODROID-N2 will keep boot MMC cards.
https://wiki.odroid.com/odroid-n2/os_im ... grade_mode
Please note that this is still WIP image in order to let users can select an OS in the storages attached to ODROID-N2.

Before running this version:
I've mentioned several times here and another thread that SPI flash memory cannot be accessed once Petitboot is up since eMMC shares the hardware bus with SPI. Since eMMC has the higher priority, SPI is not, this leads the feature limitation that Petitboot configuration cannot be stored in the SPI flash memory. Due to the high demand of the boot order, I've made the workaround to store the Petitboot configuration to SD card instead of SPI flash memory, this means that the SD card must be attached to the slot as formatted and lower than 1kB of free space is required in an SD card.

What's improved:
  • Autoboot is enabled, the timeout for autoboot can set in the "System Configuration"
  • Boot Order can change by adding the device path and it's UUID, one can select the boot device in the menu.
  • Display issue in the previous version 201906-RC1 has been "MAYBE" fixed.
What's not yet:
  • Android cannot boot from Petitboot, practically any OS which uses Android boot image format cannot boot since a tool using Petitboot is not supporting it. Will try to port the code in June, hopefully, next week with -RC3.
  • Petitboot configuration won't be stored to SPI flash memory due to the hardware limitation that SPI flash memory and eMMC shares the hardware bus. Will see the chance to store to SPI flash memory but lower priority.
  • Network booting is not supporting yet.
  • Minor issues reported by users are not fixed yet. :( Expecting some of them can be resolved in June.
Text-based Petitboot UI is not very handy to manage the boot devices and their order, but it's feasible with keyboard or Hardkernel's IR remote. I have not finished all features in the System Configuration, but at least Boot Order and Autoboot worked for me. That's why I am releasing my local build for someone who wants to try. :D My ODROID-N2 has been set up to boot from USB as shown in the picture and it just boots after 5 seconds once USB storage is detected.

I would welcome your feedback or suggestion.
IMG_20190611_0643358.jpg
IMG_20190611_0643358.jpg (539.89 KiB) Viewed 2110 times
These users thanked the author tobetter for the post (total 2):
mad_ady (Tue Jun 11, 2019 1:51 pm) • XOR (Tue Jun 11, 2019 6:30 pm)

phaseshifter
Posts: 3452
Joined: Fri May 08, 2015 9:12 am
languages_spoken: english
ODROIDs: U-2,U3+,,XU-3,,XU3-LITE,,XU-4
C1+,,C-2,,,
N-1,,N-2,...other odroid acc`s as well
Has thanked: 35 times
Been thanked: 42 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by phaseshifter » Tue Jun 11, 2019 8:26 pm

if i have this correct your using the sd card memory as extra memory for the spi chip...
if that is the case could it be possible to piggy back the onboard spi with the spi addon chip that i used for the N-1and using the gpio`s for connectivity...
basically an expansion board to the onboard spi..for the extra memory...????
Build It And They Will Come...Be Bold And Mighty Forces Will Come To Your Aid..!!!

User avatar
tobetter
Posts: 3764
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: 28 times
Been thanked: 128 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by tobetter » Tue Jun 11, 2019 8:43 pm

Using SD as an extra memory is not a good solution but it's decent solution as of now. Adding another SPI to GPIO pin header is also ok to use as a storage but it cannot boot up.

What I am not resolving is to use SPI directly when eMMC is not attached which might be feasible but offering the current solution since most uses who willing to use multiboot are having SD card as well.

For me, storing the configuration to SD is not the major issue. The major one what I am thinking is that Android image format cannot boot up from Petitboot. Obviously there are a few problem more as well. :)

"Tapatalk wishes you to have fun with ODROID"


phaseshifter
Posts: 3452
Joined: Fri May 08, 2015 9:12 am
languages_spoken: english
ODROIDs: U-2,U3+,,XU-3,,XU3-LITE,,XU-4
C1+,,C-2,,,
N-1,,N-2,...other odroid acc`s as well
Has thanked: 35 times
Been thanked: 42 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by phaseshifter » Tue Jun 11, 2019 8:49 pm

https://www.waveshare.com/w25qxx-dataflash-board.htm

this is what i used...

i had realized that android booting had been an ongoing issue from the posts .....
Build It And They Will Come...Be Bold And Mighty Forces Will Come To Your Aid..!!!

User avatar
tobetter
Posts: 3764
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: 28 times
Been thanked: 128 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by tobetter » Tue Jun 18, 2019 9:13 pm

@mad_ady, by any chance have you tried the last Petitboot to boot with your monitor if it shows the face?

User avatar
mad_ady
Posts: 6365
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1, H2, N2
Location: Bucharest, Romania
Has thanked: 145 times
Been thanked: 106 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by mad_ady » Tue Jun 18, 2019 11:25 pm

Sorry @tobetter - I was away at a training last week and will be missing a few days from the office this week, so I didn't have a chance to try it. Will try to test it as soon as possible and let you know!
Quick question - since I don't have visual feedback of the flashing process, can I flash it from uboot (from SD?) If yes, how would I do it? I'd be using the petitboot uboot.
Last edited by mad_ady on Tue Jun 18, 2019 11:34 pm, edited 1 time in total.

User avatar
tobetter
Posts: 3764
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: 28 times
Been thanked: 128 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by tobetter » Tue Jun 18, 2019 11:34 pm

mad_ady wrote:
Tue Jun 18, 2019 11:25 pm
Sorry @tobetter - I was away at a training last week and will be missing a few days from the office this week, so I didn't have a chance to try it. Will try to test it as soon as possible and let you know!
That's ok, no hurry. I was curious if it works or not, I am about to release a new one so... :)

User avatar
tobetter
Posts: 3764
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: 28 times
Been thanked: 128 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by tobetter » Wed Jun 19, 2019 3:50 am

201906-RC3
Please welcome new update of Petitboot, https://drive.google.com/open?id=1TP2X1 ... weV9N0ShLi. The file must be copied as spiboot.img to the first partition in your SD card, not eMMC. In order to update properly, the boot select switch must be placed to SPI and must do a power cycle, unless ODROID-N2 will keep boot MMC cards.
https://wiki.odroid.com/odroid-n2/os_im ... grade_mode
Please note that this is still a WIP image.

What's improved:
  • Keep having the features of 201906-RC2
  • Android boot image format can be booted, i.e Hardkernel Android and CoreELEC, but some work is required.
  • Added to display parameter from Petitboot to selected OS.
  • In order to display the label of each OS, you will need to add one line setenv bootlabel "THE OS NAME" in boot.ini. This will show the label to the boot entry instead of NOLABEL when a label is missing.
Known issues:
  • Supporting custom features implemented by OS distro team, for example, CE team has its own change of U-boot apart from HK's one and have customized features. That's why some features of CE won't work, I will discuss with the team which patch can be integrated into HK's U-boot.
  • USB storage may come and recognized by Petitboot, this is not a hardware issue but suspect if the kernel does something with device-mapper. No clue yet. But eventually, it comes in 1 min in my test with Samsung SSD 128GB.
  • Have not been fixed the minor issues of former versions reported by users while improving the booting features
  • Network booting is not supported yet, the menus are just decorations...don't believe them.
This is my working setup and all can launched by Petitboot respectively
  • Hardkernel Android on eMMC installed by selfinstaller
  • CoreELEC on uSD flashed with dd command
  • Debian Stretch installed by Netboot installler directly
IMG_20190618_2342203.jpg
IMG_20190618_2342203.jpg (326.16 KiB) Viewed 1805 times
IMG_20190618_2342510.jpg
IMG_20190618_2342510.jpg (307.61 KiB) Viewed 1805 times
For CE users:
I indicated that CE team has custom U-boot change which improves the hardware features and boot config is a bit different from HK's one. In order to make CE boot.ini boot by Petitboot, it has to be modified to be recognized and this is my change for the reference. I would communicate with CE team how this change can be applied without features regression.

Code: Select all

--- boot.ini.orig    2019-06-19 12:16:14.000000000 +0900
+++ boot.ini    2019-06-19 12:28:06.000000000 +0900
@@ -9,7 +9,8 @@
#
#------------------------------------------------------------------------------------------------------

-setenv label "CoreELEC"
+setenv bootlabel "CoreELEC"
+
setenv max_freq_a73 "1800"
setenv max_freq_a53 "1896"
setenv hdmi_cec "1"
@@ -30,8 +31,6 @@
setenv dtb_mem_addr 0x1000000
setenv uenv_addr 0x13000000

-fatload mmc ${mmc_dev}:1 ${loadaddr} kernel.img
-fatload mmc ${mmc_dev}:1 ${dtb_mem_addr} dtb.img
if fatload mmc ${mmc_dev}:1 ${uenv_addr} config.ini; then env import -t ${uenv_addr} $filesize; fi

if test "${hdmi_cec}" = "1"; then setenv cec "hdmitx=cec3f"; fi
@@ -40,9 +39,10 @@
setenv initargs "${rootopt} ${consoleopt} max_freq_a53=${max_freq_a53} max_freq_a73=${max_freq_a73} enable_wol=${wol} ${cec} ${irsetup} gpiopower=${gpiopower}"
setenv bootargs "${initargs} ${displayopt} ${coreelec}"

-bootm start
-bootm loados
-bootm fdt
+fatload mmc ${mmc_dev}:1 ${loadaddr} kernel.img
+fatload mmc ${mmc_dev}:1 ${dtb_mem_addr} dtb.img
+fdt addr ${dtb_mem_addr}
+
if test "${heartbeat}" = "0"; then fdt set /leds/blueled linux,default-trigger "none"; fi
-bootm prep
-bootm go
+booti ${loadaddr} - ${dtb_mem_addr}
+bootm
Last edited by tobetter on Fri Jun 21, 2019 2:14 am, edited 2 times in total.
These users thanked the author tobetter for the post:
mad_ady (Wed Jun 19, 2019 2:12 pm)

wdehoog
Posts: 11
Joined: Wed Jun 19, 2019 5:24 am
languages_spoken: english
ODROIDs: n2
Has thanked: 0
Been thanked: 0
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by wdehoog » Wed Jun 19, 2019 5:32 am

Hi @tobetter. A newby here. I installed RC3 using an SD card which was created using a petitboot recovery image. So I had to rename the file to spiboot.img.
Upgrade seems successful.

Boot fails though. I try to boot from USB using an armbian image made by balbes150. This one has two partitions. The kernel commandline contains

Code: Select all

root=LABEL=ROOTFS
. Kernel panic says

Code: Select all

VFS: Cannot open root device "LABEL=ROOTFS" or unknown-block(0,0): error -6
.

Thanks for making multi/auto boot possible.

User avatar
tobetter
Posts: 3764
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: 28 times
Been thanked: 128 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by tobetter » Wed Jun 19, 2019 5:36 am

Thank you for trying. I've not tested with Armbian yet and no plan actually. But the problem what I am seeing can be resolved by replace "LABEL=" to "UUID=". The UUID of the root file system can be copied with the command blkid. Please try replacing with UUID and try with Petitboot when Armbian can boot by itself.

"Tapatalk wishes you to have fun with ODROID"


wdehoog
Posts: 11
Joined: Wed Jun 19, 2019 5:24 am
languages_spoken: english
ODROIDs: n2
Has thanked: 0
Been thanked: 0
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by wdehoog » Wed Jun 19, 2019 6:51 am

Using UUID did not help. The logs shows:

Code: Select all

Kernel command line: root=/dev/sda2 rootflags=data=writeback ...
and

Code: Select all

VFS: Cannot open root device "sda2" or unknown-block(0,0): error -6
Using PARTUUID also does not help.

User avatar
tobetter
Posts: 3764
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: 28 times
Been thanked: 128 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by tobetter » Wed Jun 19, 2019 8:55 am

wdehoog wrote:
Wed Jun 19, 2019 6:51 am
Using UUID did not help. The logs shows:

Code: Select all

Kernel command line: root=/dev/sda2 rootflags=data=writeback ...
and

Code: Select all

VFS: Cannot open root device "sda2" or unknown-block(0,0): error -6
Using PARTUUID also does not help.
Do you have "rootwait" on the bootargs, this option makes kernel waits for the root device, unless it would reboot after 5 seconds.

binhex
Posts: 17
Joined: Wed Jun 19, 2019 5:54 pm
languages_spoken: english
ODROIDs: N2
Has thanked: 3 times
Been thanked: 1 time
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by binhex » Wed Jun 19, 2019 6:06 pm

tobetter wrote:
Wed Jun 19, 2019 3:50 am
Known issues:
  • Supporting custom features implemented by OS distro team, for example, CE team has its own change of U-boot apart from HK's one and have customized features. That's why some features of CE won't work, I will discuss with the team which patch can be integrated into HK's U-boot.
I'm watching this thread with great interest, i have CoreELEC running on eMMC and would love the ability to boot off either Micro SD or eMMC, from my understanding this project would make this possible, i would just toggle the boot switch on the N2 and (once the niggles have been ironed out with regards to CE and custom boot features) should then be able to booth from either media, yes?

User avatar
tobetter
Posts: 3764
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: 28 times
Been thanked: 128 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by tobetter » Wed Jun 19, 2019 7:02 pm

binhex wrote:
Wed Jun 19, 2019 6:06 pm
tobetter wrote:
Wed Jun 19, 2019 3:50 am
Known issues:
  • Supporting custom features implemented by OS distro team, for example, CE team has its own change of U-boot apart from HK's one and have customized features. That's why some features of CE won't work, I will discuss with the team which patch can be integrated into HK's U-boot.
I'm watching this thread with great interest, i have CoreELEC running on eMMC and would love the ability to boot off either Micro SD or eMMC, from my understanding this project would make this possible, i would just toggle the boot switch on the N2 and (once the niggles have been ironed out with regards to CE and custom boot features) should then be able to booth from either media, yes?
Thank you for your interesting. If my understanding is correct, you are willing to run CoreELEC on any of eMMC or SD...right? Then it's doable even I've checked CoreELEC can run on USB after attaching the SD card to USB card reader. Once Petitboot manages all OS on your N2, custom features in the bootloader should be supported by Peitboot U-boot or could be deprecated. I guess there would not be many changes, I only see the CE has some features interesting which I am planning to merge it.

binhex
Posts: 17
Joined: Wed Jun 19, 2019 5:54 pm
languages_spoken: english
ODROIDs: N2
Has thanked: 3 times
Been thanked: 1 time
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by binhex » Wed Jun 19, 2019 8:58 pm

tobetter wrote:
Wed Jun 19, 2019 7:02 pm
Thank you for your interesting. If my understanding is correct, you are willing to run CoreELEC on any of eMMC or SD...right?
sorry that's my bad, i wasn't clear, what i meant was i currently boot CoreELEC from eMMC, i would like this to always be the case, but would like the ability to alternatively boot another OS from Micro SD card WITHOUT the need to physical remove the eMMC, which is currently the only way of doing it.

I am hoping with the work you have done i will be able to put petitboot on the Micro SD card, toggle the boot switch and then be able to boot either from the Micro SD card (same micro-sd card that petitboot is running from) or to eMMC (which is where CoreELEC is installed), hopefully with some sort of configurable default boot option (would like eMMC to be default) with a configurable timeout, not exactly sure how much of this can be achieved right now as i see you are still working through some issues, loving your work though :-)

User avatar
tobetter
Posts: 3764
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: 28 times
Been thanked: 128 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by tobetter » Wed Jun 19, 2019 10:42 pm

binhex wrote:
Wed Jun 19, 2019 8:58 pm
tobetter wrote:
Wed Jun 19, 2019 7:02 pm
Thank you for your interesting. If my understanding is correct, you are willing to run CoreELEC on any of eMMC or SD...right?
sorry that's my bad, i wasn't clear, what i meant was i currently boot CoreELEC from eMMC, i would like this to always be the case, but would like the ability to alternatively boot another OS from Micro SD card WITHOUT the need to physical remove the eMMC, which is currently the only way of doing it.
You will never remove eMMC or SD unless they are corrupted when Petitboot works even today and you can change the boot order.
I am hoping with the work you have done i will be able to put petitboot on the Micro SD card, toggle the boot switch and then be able to boot either from the Micro SD card (same micro-sd card that petitboot is running from) or to eMMC (which is where CoreELEC is installed), hopefully with some sort of configurable default boot option (would like eMMC to be default) with a configurable timeout, not exactly sure how much of this can be achieved right now as i see you are still working through some issues, loving your work though :-)
Even if you don't use Petitboot today, it's good to try to update. The update is not difficult and you can update further version later. The default boot option can be configured and autoboot timeout as shown in the photo. Basically, the current version can manage the booting devices and their orders, the rest what I have to do is to port the features like power management or DTB modification on boot in Petitboot.
download/file.php?id=9023

As far as I know, CE will update the boot.ini to be bootable by Petitboot in a couple of days.

binhex
Posts: 17
Joined: Wed Jun 19, 2019 5:54 pm
languages_spoken: english
ODROIDs: N2
Has thanked: 3 times
Been thanked: 1 time
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by binhex » Thu Jun 20, 2019 12:06 am

tobetter wrote:
Wed Jun 19, 2019 10:42 pm
binhex wrote:
Wed Jun 19, 2019 8:58 pm
tobetter wrote:
Wed Jun 19, 2019 7:02 pm
Thank you for your interesting. If my understanding is correct, you are willing to run CoreELEC on any of eMMC or SD...right?
sorry that's my bad, i wasn't clear, what i meant was i currently boot CoreELEC from eMMC, i would like this to always be the case, but would like the ability to alternatively boot another OS from Micro SD card WITHOUT the need to physical remove the eMMC, which is currently the only way of doing it.
You will never remove eMMC or SD unless they are corrupted when Petitboot works even today and you can change the boot order.
I am hoping with the work you have done i will be able to put petitboot on the Micro SD card, toggle the boot switch and then be able to boot either from the Micro SD card (same micro-sd card that petitboot is running from) or to eMMC (which is where CoreELEC is installed), hopefully with some sort of configurable default boot option (would like eMMC to be default) with a configurable timeout, not exactly sure how much of this can be achieved right now as i see you are still working through some issues, loving your work though :-)
Even if you don't use Petitboot today, it's good to try to update. The update is not difficult and you can update further version later. The default boot option can be configured and autoboot timeout as shown in the photo. Basically, the current version can manage the booting devices and their orders, the rest what I have to do is to port the features like power management or DTB modification on boot in Petitboot.
download/file.php?id=9023

As far as I know, CE will update the boot.ini to be bootable by Petitboot in a couple of days.
Excellent!, i will be having a play with your latest build tonight, i appreciate the reply.

User avatar
mad_ady
Posts: 6365
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1, H2, N2
Location: Bucharest, Romania
Has thanked: 145 times
Been thanked: 106 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by mad_ady » Thu Jun 20, 2019 1:56 am

@tobetter: Congratulations on getting android to boot. I'm sure it wasn't easy.

Regarding supporting all the custom/3rd party images out there - I have a suggestion. Your os scanner should also look for a special petitboot.ini (or whatever) before scanning boot.ini. If its found, load settings from there. This way projects can keep their esoteric boot.inis while also providing something for petitboot (if they want to support it). This way you don't have to always modify petitboot and the community can step in and provide suitable support. The cost would be two configuration files, which could be misleading for end users.

wdehoog
Posts: 11
Joined: Wed Jun 19, 2019 5:24 am
languages_spoken: english
ODROIDs: n2
Has thanked: 0
Been thanked: 0
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by wdehoog » Thu Jun 20, 2019 2:28 am

@tobetter adding "rootwait" makes it work. thanks.

User avatar
tobetter
Posts: 3764
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: 28 times
Been thanked: 128 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by tobetter » Thu Jun 20, 2019 9:00 am

wdehoog wrote:
Thu Jun 20, 2019 2:28 am
@tobetter adding "rootwait" makes it work. thanks.
Glad to hear it works, by the way what's the image file name you flashed? What I downloaded from Armbian has single partition. Please keep beeing updated the new release with this thread.

User avatar
tobetter
Posts: 3764
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: 28 times
Been thanked: 128 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by tobetter » Thu Jun 20, 2019 9:13 am

mad_ady wrote:
Thu Jun 20, 2019 1:56 am
@tobetter: Congratulations on getting android to boot. I'm sure it wasn't easy.

Regarding supporting all the custom/3rd party images out there - I have a suggestion. Your os scanner should also look for a special petitboot.ini (or whatever) before scanning boot.ini. If its found, load settings from there. This way projects can keep their esoteric boot.inis while also providing something for petitboot (if they want to support it). This way you don't have to always modify petitboot and the community can step in and provide suitable support. The cost would be two configuration files, which could be misleading for end users.
Thanks, I could keep up with such a great interesting. ;)

Basically I'd like to let other OS can be started by Petitboot if they can boot from memory slot on N2. That makes to add one module that parse boot.ini or boot.scr, and build the boot configuration without an effort. It seems not many OS use the custom feature in U-boot and as long as their features are compatible with HK's official U-boot, they would work.

After reading your suggestion I am feeling that some guide lines must be introduced for OS distributors to let their image can run with Petitboot. Let's see after releasing RC4 next week which may boot more close to native boot up.

wdehoog
Posts: 11
Joined: Wed Jun 19, 2019 5:24 am
languages_spoken: english
ODROIDs: n2
Has thanked: 0
Been thanked: 0
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by wdehoog » Thu Jun 20, 2019 4:40 pm

tobetter wrote:
Thu Jun 20, 2019 9:00 am
Glad to hear it works, by the way what's the image file name you flashed? What I downloaded from Armbian has single partition. Please keep beeing updated the new release with this thread.
I was using version 5.89 of the N2 images made by balbes150 see https://forum.armbian.com/topic/7930-ar ... x-ver-555/

wdehoog
Posts: 11
Joined: Wed Jun 19, 2019 5:24 am
languages_spoken: english
ODROIDs: n2
Has thanked: 0
Been thanked: 0
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by wdehoog » Thu Jun 20, 2019 6:31 pm

@tobetter I tried an official armbian N2 image. It did not appear in the boot list. Maybe because the boot.ini is stored in /boot not in /?
When I make a link to it in / the image appears in the boot list and it can boot. (I have put the image on an SSD inside a usb/sata thingy.)

Please allow me a question. First I tried to copy the boot.ini from within the petitboot shell. It worked but the copied /boot.ini disappeared after booting the image and rebooting into petitboot. When I created the link from armbian itself then the /boot.ini remained and when rebooting into petitboot the armbian image appears in the boot list.
How can this happen?

User avatar
mad_ady
Posts: 6365
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1, H2, N2
Location: Bucharest, Romania
Has thanked: 145 times
Been thanked: 106 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by mad_ady » Thu Jun 20, 2019 7:16 pm

I think petitboot mounts the disks readonly with a rw overlay on top, so any changes don't get written to disk without your explicit command. Could be wrong, though

User avatar
tobetter
Posts: 3764
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: 28 times
Been thanked: 128 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by tobetter » Thu Jun 20, 2019 7:17 pm

wdehoog wrote:
Thu Jun 20, 2019 6:31 pm
@tobetter I tried an official armbian N2 image. It did not appear in the boot list. Maybe because the boot.ini is stored in /boot not in /?
When I make a link to it in / the image appears in the boot list and it can boot. (I have put the image on an SSD inside a usb/sata thingy.)

Please allow me a question. First I tried to copy the boot.ini from within the petitboot shell. It worked but the copied /boot.ini disappeared after booting the image and rebooting into petitboot. When I created the link from armbian itself then the /boot.ini remained and when rebooting into petitboot the armbian image appears in the boot list.
How can this happen?
Hi, Good to know Armbian stores the boot.ini into /boot. I would consider to scan it by Petitboot by default. I also had the similar experience that the file I stored in Petitboot is not present or changed after rebooting. I haven't intended to look into this since that's not a lower priority than others. Just suspect that the storage is mounted by the device-mapper such that it prevents something in the layer.

User avatar
mad_ady
Posts: 6365
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1, H2, N2
Location: Bucharest, Romania
Has thanked: 145 times
Been thanked: 106 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by mad_ady » Thu Jun 20, 2019 7:55 pm

I think I learned it in this talk: https://www.youtube.com/watch?v=4JbDb4bRBK4

Sholander
Posts: 39
Joined: Wed Jun 05, 2019 1:02 am
languages_spoken: english
ODROIDs: ODROID N2
Has thanked: 0
Been thanked: 3 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by Sholander » Thu Jun 20, 2019 8:39 pm

tobetter wrote:
Wed Jun 19, 2019 3:50 am
201906-RC3
Please welcome new update of Petitboot, https://drive.google.com/open?id=1TP2X1 ... weV9N0ShLi. The file must be copied as spiupdate.img to the first partition in your SD card, not eMMC. In order to update properly, the boot select switch must be placed to SPI and must do a power cycle, unless ODROID-N2 will keep boot MMC cards.
https://wiki.odroid.com/odroid-n2/os_im ... grade_mode
Please note that this is still a WIP image.
Hi, I got my uSD cards finally and started to try your RC3.
First, I could not update only with "spiupdate.img" in root of my uSD, always stayed on last dev.20190417 version. So I flashed my uSD with "spiupdate_odroidn2_20190417+95.img" and replaced old spiboot.img with new RC3. The flash went OK and I got new Petitboot version.

Then I tried to boot latest CE nightly version (20190619) that has a new boot.ini with changes suggested by you. But I could not get CE to boot. After selecting "Coreelec" I get this error mesage:
Read on /usr/var/petitboot/mnt/dev/sda1/kernel.img failed: Input/output error.

So, not able to move further than that. I was using uSD card inserted in USB gongle. Am I missing something, or doing something wrong?

Edit: Just to add, when the same CE installation is placed in uSD slot, CE boots normally via Petitboot.

User avatar
tobetter
Posts: 3764
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: 28 times
Been thanked: 128 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by tobetter » Thu Jun 20, 2019 11:03 pm

Sholander wrote:
Thu Jun 20, 2019 8:39 pm
tobetter wrote:
Wed Jun 19, 2019 3:50 am
201906-RC3
Please welcome new update of Petitboot, https://drive.google.com/open?id=1TP2X1 ... weV9N0ShLi. The file must be copied as spiupdate.img to the first partition in your SD card, not eMMC. In order to update properly, the boot select switch must be placed to SPI and must do a power cycle, unless ODROID-N2 will keep boot MMC cards.
https://wiki.odroid.com/odroid-n2/os_im ... grade_mode
Please note that this is still a WIP image.
Hi, I got my uSD cards finally and started to try your RC3.
First, I could not update only with "spiupdate.img" in root of my uSD, always stayed on last dev.20190417 version. So I flashed my uSD with "spiupdate_odroidn2_20190417+95.img" and replaced old spiboot.img with new RC3. The flash went OK and I got new Petitboot version.

Then I tried to boot latest CE nightly version (20190619) that has a new boot.ini with changes suggested by you. But I could not get CE to boot. After selecting "Coreelec" I get this error mesage:
Read on /usr/var/petitboot/mnt/dev/sda1/kernel.img failed: Input/output error.

So, not able to move further than that. I was using uSD card inserted in USB gongle. Am I missing something, or doing something wrong?

Edit: Just to add, when the same CE installation is placed in uSD slot, CE boots normally via Petitboot.
I guess you are missing anything at all, just what I am seeing is Input/output error. which usually happen when the files are not accessible. Since your CE is attached to USB, I doubt if USB is fine. Which USB reader is it?

Sholander
Posts: 39
Joined: Wed Jun 05, 2019 1:02 am
languages_spoken: english
ODROIDs: ODROID N2
Has thanked: 0
Been thanked: 3 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by Sholander » Fri Jun 21, 2019 12:37 am

It' a Kingston USB microSD reader. Will try later with another one I got - Kingston MobileLite G4 which at least looks like the real thingy :)

Here on the picture are both: https://www.kingston.com/en/flash/readers/fcr-mlg4

binhex
Posts: 17
Joined: Wed Jun 19, 2019 5:54 pm
languages_spoken: english
ODROIDs: N2
Has thanked: 3 times
Been thanked: 1 time
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by binhex » Fri Jun 21, 2019 1:51 am

binhex wrote:
Thu Jun 20, 2019 12:06 am
Excellent!, i will be having a play with your latest build tonight, i appreciate the reply.
ok so i gave it a go last night, i downloaded the RC3 file, renamed the filename to spiupdate.img and copied to (what i think) is the first partition on the micro-sd card.

The micro-sd card had a copy of EmuELEC burnt to it using etcher and i could see the boot.ini and other files in the partition (card inserted into windows pc). so i just copied the renamed spiupdate.img to this partition, safely removed the micro-sd card, powered down the N2, inserted the micro-sd card into the micro-sd card slot on the N2, toggled the white switch and turned the unit on, but unfortunately petitboot did not load, i just got a black screen. i saw it can take some time to load so i left it for a few mins, and sadly didnt see any progress.

I then shutdown the unit, toggled the switch back and booted, where upon the micro-sd card was picked up and booted, so im confident the copy of EmuELEC on the micro-sd card is fine, @tobetter am i missing a step here? my only thought is perhaps the fs on the partition is not compatible with petitboot?

Sholander
Posts: 39
Joined: Wed Jun 05, 2019 1:02 am
languages_spoken: english
ODROIDs: ODROID N2
Has thanked: 0
Been thanked: 3 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by Sholander » Fri Jun 21, 2019 2:03 am

Sholander wrote:
Fri Jun 21, 2019 12:37 am
It' a Kingston USB microSD reader. Will try later with another one I got - Kingston MobileLite G4 which at least looks like the real thingy :)

Here on the picture are both: https://www.kingston.com/en/flash/readers/fcr-mlg4
Tried with proper USB reader (Kingston MobileLite G4) and CoreElec boots from USB same as from uSD via Petitboot.
So everything is fine except my dubious hardware :)

User avatar
tobetter
Posts: 3764
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: 28 times
Been thanked: 128 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by tobetter » Fri Jun 21, 2019 2:13 am

binhex wrote:
Fri Jun 21, 2019 1:51 am
binhex wrote:
Thu Jun 20, 2019 12:06 am
Excellent!, i will be having a play with your latest build tonight, i appreciate the reply.
ok so i gave it a go last night, i downloaded the RC3 file, renamed the filename to spiupdate.img and copied to (what i think) is the first partition on the micro-sd card.

The micro-sd card had a copy of EmuELEC burnt to it using etcher and i could see the boot.ini and other files in the partition (card inserted into windows pc). so i just copied the renamed spiupdate.img to this partition, safely removed the micro-sd card, powered down the N2, inserted the micro-sd card into the micro-sd card slot on the N2, toggled the white switch and turned the unit on, but unfortunately petitboot did not load, i just got a black screen. i saw it can take some time to load so i left it for a few mins, and sadly didnt see any progress.

I then shutdown the unit, toggled the switch back and booted, where upon the micro-sd card was picked up and booted, so im confident the copy of EmuELEC on the micro-sd card is fine, @tobetter am i missing a step here? my only thought is perhaps the fs on the partition is not compatible with petitboot?
Thank you for your try and interesting if EmuELEC can work with Petitboot.

I now realized that the file name must be spiboot.img, not spiupdate.img. It's my bad, sorry about it. Could you please do rename it to spiboot.img again?

Sholander
Posts: 39
Joined: Wed Jun 05, 2019 1:02 am
languages_spoken: english
ODROIDs: ODROID N2
Has thanked: 0
Been thanked: 3 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by Sholander » Fri Jun 21, 2019 2:24 am

I tried also with your 201906-RC3 renamed to "spiboot.img" placed to root of my uSD card, with no luck. Same result as with "spiupdate.img" name.
The only way I got successful SPI reflash is as described above:
"I flashed my uSD with "spiupdate_odroidn2_20190417+95.img" and replaced old spiboot.img with new RC3. The flash went OK and I got new Petitboot version." Don't know why is that...

everlasting
Posts: 44
Joined: Thu Mar 28, 2019 7:10 am
languages_spoken: english
ODROIDs: N2
Has thanked: 7 times
Been thanked: 0
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by everlasting » Fri Jun 21, 2019 6:40 am

im on rc3 and my core elec sd card and ubuntu emmc can both booted. my only problen is that when i change settings, it wont be saved. so it is stuck on auto boot and always boots my emmc first. am i the only one where the changed settings wont save?

edit: so spiboot.img must always be in the sd card in order to save the configuration? and its impossible to set the the boot timeout to 0 seconds?

i tried 0 seconds and the boot order didnt work but when put it to 1 second the boot order works...

User avatar
tobetter
Posts: 3764
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: 28 times
Been thanked: 128 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by tobetter » Fri Jun 21, 2019 8:47 am

The "spiboot.img" is only required to update the SPI flash memory and will be removed when updating is done. The configuration is basically saving to the first partition of SD.

If Petitboot does not boot as you expected, please check if petitboot.cfg is in the SD and copy to here to review. When timeout is 0, I think Petitboot must stop and wait for user input, I think. If you think 1 second is long, can you try 0.5? I have not tested 0.5 seconds.

"Tapatalk wishes you to have fun with ODROID"

These users thanked the author tobetter for the post:
everlasting (Fri Jun 21, 2019 9:14 am)

Post Reply

Return to “Projects”

Who is online

Users browsing this forum: No registered users and 1 guest