Petitboot, yet another bootloader based on KEXEC

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

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by wdehoog » Sun Jun 30, 2019 9:43 pm

tobetter wrote:
Sun Jun 30, 2019 7:22 pm
I experienced but with another OS image, maybe I would try the same one what you tried.
Could you let me know the exact file name of your Armbian?
The main problem is not armbian I think but in my case petitboot itself. Even if armbian is detected I cannot move the cursor to boot or edit. Every key I press makes petitboot start the shell or makes it reboot. The shell has incorrect terminal behaviour and on exit of the shell the petitboot menu is not repainted.

Btw I think I used Armbian_5.89.

User avatar
tobetter
Posts: 4265
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: 59 times
Been thanked: 235 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by tobetter » Sun Jun 30, 2019 9:49 pm

wdehoog wrote:
Sun Jun 30, 2019 9:43 pm
tobetter wrote:
Sun Jun 30, 2019 7:22 pm
I experienced but with another OS image, maybe I would try the same one what you tried.
Could you let me know the exact file name of your Armbian?
The main problem is not armbian I think but in my case petitboot itself. Even if armbian is detected I cannot move the cursor to boot or edit. Every key I press makes petitboot start the shell or makes it reboot. The shell has incorrect terminal behaviour and on exit of the shell the petitboot menu is not repainted.

Btw I think I used Armbian_5.89.
I didn't mention Armbian is the problem.

EDIT: You don't have to move or link the /boot/boot.ini to boot.ini. Current Petitboot has an issue to parse boot.ini of Armbian, the workaround I can offer you today is to modify the boot.ini like below. Since I have no plan to release Petitboot for a few weeks, I only can provide this solution as of now.

Code: Select all

--- boot.ini.orig	2019-06-30 21:57:55.459846355 +0900
+++ boot.ini	2019-06-30 22:20:40.829548988 +0900
@@ -101,9 +101,9 @@
 setenv initrd_loadaddr "0x3700000"
 
 # Load kernel, dtb and initrd
-ext4load mmc ${devno}:1 ${k_addr} boot/zImage
-ext4load mmc ${devno}:1 ${dtb_loadaddr} boot/dtb/amlogic/meson64_odroidn2.dtb
-ext4load mmc ${devno}:1 ${initrd_loadaddr} boot/uInitrd
+load mmc ${devno}:1 ${k_addr} zImage
+load mmc ${devno}:1 ${dtb_loadaddr} dtb/amlogic/meson64_odroidn2.dtb
+load mmc ${devno}:1 ${initrd_loadaddr} uInitrd
 fdt addr ${dtb_loadaddr}
 # unzip the kernel
 unzip ${k_addr} ${loadaddr}

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

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by wdehoog » Sun Jun 30, 2019 10:57 pm

@tobetter If I sounded harsh I apologize. I know you are very busy and I am gratefull of the work you do. I just wanted to notify there might be a problem with release 20190626.
For me keep on using RC3 is fine.

User avatar
tobetter
Posts: 4265
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: 59 times
Been thanked: 235 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by tobetter » Sun Jun 30, 2019 11:12 pm

wdehoog wrote:
Sun Jun 30, 2019 10:57 pm
@tobetter If I sounded harsh I apologize. I know you are very busy and I am gratefull of the work you do. I just wanted to notify there might be a problem with release 20190626.
For me keep on using RC3 is fine.
No, you didn't...please accept my apologies if I made a wrong. I've tested the image Armbian 5.89, luckily I was making a use case that Petitboot users might be interested in and I was about to test with Armbian. Since Petitboot is not smart to recognize all OS images, it still has to run with others. :)

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

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by wdehoog » Sun Jun 30, 2019 11:24 pm

tobetter wrote:
Sun Jun 30, 2019 11:12 pm
Since Petitboot is not smart to recognize all OS images, it still has to run with others. :)
The thing is in my case, using a wireless keyboard with a USB dongle, it looks like it can probably boot none. Since the menu is not working I cannot choose what to boot nor edit an entry nor use the shell to check what is going on.

User avatar
tobetter
Posts: 4265
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: 59 times
Been thanked: 235 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by tobetter » Sun Jun 30, 2019 11:33 pm

wdehoog wrote:
Sun Jun 30, 2019 11:24 pm
tobetter wrote:
Sun Jun 30, 2019 11:12 pm
Since Petitboot is not smart to recognize all OS images, it still has to run with others. :)
The thing is in my case, using a wireless keyboard with a USB dongle, it looks like it can probably boot none. Since the menu is not working I cannot choose what to boot nor edit an entry nor use the shell to check what is going on.
Doesn't the change of boot.ini in my post work? Can you just remove boot/ from the filenames which start with ext4load?
viewtopic.php?f=182&t=33873#p261005

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

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by wdehoog » Sun Jun 30, 2019 11:42 pm

tobetter wrote:
Sun Jun 30, 2019 11:33 pm
Doesn't the change of boot.ini in my post work? Can you just remove boot/ from the filenames which start with ext4load?
viewtopic.php?f=182&t=33873#p261005
Sorry for being not clear enough. Even if I remove the USB drive (containing the armbian partition) from the N2 petitboot does not work correctly for me. The menu remains unusable.

User avatar
tobetter
Posts: 4265
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: 59 times
Been thanked: 235 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by tobetter » Sun Jun 30, 2019 11:50 pm

wdehoog wrote:
Sun Jun 30, 2019 11:42 pm
tobetter wrote:
Sun Jun 30, 2019 11:33 pm
Doesn't the change of boot.ini in my post work? Can you just remove boot/ from the filenames which start with ext4load?
viewtopic.php?f=182&t=33873#p261005
Sorry for being not clear enough. Even if I remove the USB drive (containing the armbian partition) from the N2 petitboot does not work correctly for me. The menu remains unusable.
I don't understand if you remove the USB drive Armbian then what do you have with N2? If you do not figure out with the 201906, even next release won't work.

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

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by wdehoog » Mon Jul 01, 2019 12:13 am

tobetter wrote:
Sun Jun 30, 2019 11:50 pm
I don't understand if you remove the USB drive Armbian then what do you have with N2? If you do not figure out with the 201906, even next release won't work.
Well I have to apologize again. I flashed 20190626 again and without armbian image petitboot works. Then I inserted my armbian image and the weird behaviour begun again. Then I applied the fixes you proposed for boot.ini and now it works.
I should have tested better. Thanks for your help and sorry for wasting your time.

User avatar
tobetter
Posts: 4265
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: 59 times
Been thanked: 235 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by tobetter » Mon Jul 01, 2019 10:53 am

wdehoog wrote:
Mon Jul 01, 2019 12:13 am
tobetter wrote:
Sun Jun 30, 2019 11:50 pm
I don't understand if you remove the USB drive Armbian then what do you have with N2? If you do not figure out with the 201906, even next release won't work.
Well I have to apologize again. I flashed 20190626 again and without armbian image petitboot works. Then I inserted my armbian image and the weird behaviour begun again. Then I applied the fixes you proposed for boot.ini and now it works.
I should have tested better. Thanks for your help and sorry for wasting your time.
NP, good to know it works. Will task some time to make way better in July for update release. Thank you for sharing.

User avatar
tobetter
Posts: 4265
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: 59 times
Been thanked: 235 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by tobetter » Mon Jul 01, 2019 2:17 pm

I found one interesting Youtube regarding Petitboot running on N2 which is uploaded by ODROID user. :)
https://www.youtube.com/watch?v=HH4-Om1wg0U&t=220s

User avatar
hungphutho
Posts: 21
Joined: Fri Jun 09, 2017 1:42 am
languages_spoken: english
ODROIDs: N2
Has thanked: 2 times
Been thanked: 9 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by hungphutho » Mon Jul 01, 2019 5:38 pm

tobetter wrote:
Mon Jul 01, 2019 2:17 pm
I found one interesting Youtube regarding Petitboot running on N2 which is uploaded by ODROID user. :)
https://www.youtube.com/watch?v=HH4-Om1wg0U&t=220s
that's my video .
Version 20190626 works .
Those who have problems may be using the 2.4Ghz wireless keyboard on USB 3.0 port, please use USB2.0 OTG Cable to fix the problem.
65527811_2272677352780030_7998498581520580608_n.jpg
65527811_2272677352780030_7998498581520580608_n.jpg (117.91 KiB) Viewed 4670 times
For armbian I only add 1 single line, and move /boot/boot.ini to /boot.ini

Code: Select all

setenv bootlabel "Armbian"
Attachments
boot.ini
(4.34 KiB) Downloaded 113 times
These users thanked the author hungphutho for the post:
rooted (Tue Jul 02, 2019 1:42 pm)

User avatar
tobetter
Posts: 4265
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: 59 times
Been thanked: 235 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by tobetter » Mon Jul 01, 2019 7:06 pm

@hungphutho,
Thanks, I know it's your video... :)
Also, I know the issue of Armbian...I've looked it yesterday with another user in this thread.
That would be resolved a bit later...

User avatar
tobetter
Posts: 4265
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: 59 times
Been thanked: 235 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by tobetter » Tue Jul 02, 2019 6:48 am

I published one article for someone who may be interesting to install two different OS images into single eMMC. The aim of the article is to explain how to compose two OS images usually installed in eMMC and uSD which does not run with the same performance. Using this way both OS will run in the same performance as much as eMMC supports.

https://medium.com/@tobetter/installing ... pe=initial

Since there are limitations some OS is not able to be composed, what I've tested images are:
1) Ubuntu Mate 18.04 + CoreELEC
2) Debian Stretch + CoreELEC
3) Ubuntu Mate 18.04 + Armbian
4) Debian Stretch + Armbian

Instead of CoreELEC, I think EmuELEC would work since their build farm is the same. Also, please note that as some users reported Armbian needs some change of boot.ini even you made to compose the dual-OS memory card, still you will need to change the same.

Image

Also, since this the trial to publish a use case of Petitboot, please do compose at your own risk. Requesting and helping to me is still available. :)
These users thanked the author tobetter for the post (total 5):
rooted (Tue Jul 02, 2019 1:43 pm) • binhex (Tue Jul 02, 2019 3:29 pm) • mad_ady (Tue Jul 02, 2019 8:36 pm) • istanbulls (Fri Aug 09, 2019 12:03 am) • xabolcs (Sat Aug 10, 2019 12:48 am)

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

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by mad_ady » Tue Jul 02, 2019 9:09 pm

Great job. If I ever get time I might look into loboris' triple boot scripts - it handled android as well.
One more suggestion. You can create an extended partition and install the second (and third/fourth) OS in logical partitions.

User avatar
tobetter
Posts: 4265
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: 59 times
Been thanked: 235 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by tobetter » Tue Jul 02, 2019 9:17 pm

mad_ady wrote:Great job. If I ever get time I might look into loboris' triple boot scripts - it handled android as well.
One more suggestion. You can create an extended partition and install the second (and third/fourth) OS in logical partitions.
That's true, just personally not prefer to use extended partition. ;) I was thinking to use GPT alternatively. BUT actually I have something another plan which I want to do and hope to be done some day. :)

Anyway, thank you for great instresting and I noticed the view count of this thread is already 10+k. Yay!!

"Tapatalk wishes you to have fun with ODROID"


User avatar
tobetter
Posts: 4265
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: 59 times
Been thanked: 235 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by tobetter » Fri Jul 05, 2019 11:22 pm

201907-RC1

This is the experimental update of only U-boot change and no improvement of Petitboot is included.
If you do not have any issue using ODROID-N2, specifically USB devices, not necessary to proceed the update at all.
https://drive.google.com/open?id=1r9MA2 ... ZwlXbrU9Dp

Please rename the file to spiboot.img and copy to your uSD for update.

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

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by mad_ady » Tue Jul 09, 2019 10:43 pm

I've tried 201907-RC1 to see if there were any changes with my monitor detection. It still goes into standby in petitboot if it is any help.

IgaBiva
Posts: 44
Joined: Tue May 07, 2019 4:00 pm
languages_spoken: english, deutsch, srpski
ODROIDs: N2
Has thanked: 0
Been thanked: 5 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by IgaBiva » Mon Jul 15, 2019 9:00 pm

Sorry for a noob question but is there any way to use petitboot without keybord?

I plan to use my N2 for dual boot with CoreELEC and for TheRA (or EMUElec) and I would like to avoid usage of keyboard if anyhow possible.

Can we access boot menu via SSH or Telnet?

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

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by mad_ady » Tue Jul 16, 2019 3:20 am

Yes - you can use the HK IR remote!
You can clone the codes on a universal remote.

IgaBiva
Posts: 44
Joined: Tue May 07, 2019 4:00 pm
languages_spoken: english, deutsch, srpski
ODROIDs: N2
Has thanked: 0
Been thanked: 5 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by IgaBiva » Tue Jul 16, 2019 5:51 pm

Great thanks!

I do have universal remote so I will try with this first.

brad
Posts: 984
Joined: Tue Mar 29, 2016 1:22 pm
languages_spoken: english
ODROIDs: C2 N1 N2 H2 (64 bit ftw)
Location: Australia
Has thanked: 16 times
Been thanked: 39 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by brad » Tue Jul 16, 2019 6:01 pm

I though about this some time ago and another possible option (if petitboot was updated somehow) might be to hold down a button (or a switch) connected to a GPIO which petitboot used to determine the boot option.

I was going to try to simplify this by using mainline uboot instead of petitboot to decide but I have not had time to get back to it.

IgaBiva
Posts: 44
Joined: Tue May 07, 2019 4:00 pm
languages_spoken: english, deutsch, srpski
ODROIDs: N2
Has thanked: 0
Been thanked: 5 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by IgaBiva » Thu Jul 18, 2019 8:13 pm

Well, I believe that ideal solution would be something like PINN in Pi world but don't kow if this is possible - https://github.com/procount/pinn/blob/m ... ME_PINN.md

This would give much more fredom for different options and functionalities.

Unfortunately, I am not a developer so I cannot contribute to this...

User avatar
tobetter
Posts: 4265
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: 59 times
Been thanked: 235 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by tobetter » Thu Jul 18, 2019 8:28 pm


IgaBiva wrote:Well, I believe that ideal solution would be something like PINN in Pi world but don't kow if this is possible - https://github.com/procount/pinn/blob/m ... ME_PINN.md

This would give much more fredom for different options and functionalities.

Unfortunately, I am not a developer so I cannot contribute to this...
That's the features what I am expecting to have in the SPI flash memory along with Petitboot. But due to the capacity of SPI flash memory and lack of resources, the development would go slow unfortunately.

Since Petitboot supports plugin feature, similar feature can be feasible and could be more that that.

"Tapatalk wishes you to have fun with ODROID"


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

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by istanbulls » Mon Jul 22, 2019 11:16 pm

hungphutho wrote:
Mon Jul 01, 2019 5:38 pm
tobetter wrote:
Mon Jul 01, 2019 2:17 pm
I found one interesting Youtube regarding Petitboot running on N2 which is uploaded by ODROID user. :)
https://www.youtube.com/watch?v=HH4-Om1wg0U&t=220s
that's my video .
Version 20190626 works .
Those who have problems may be using the 2.4Ghz wireless keyboard on USB 3.0 port, please use USB2.0 OTG Cable to fix the problem.
65527811_2272677352780030_7998498581520580608_n.jpg

For armbian I only add 1 single line, and move /boot/boot.ini to /boot.ini

Code: Select all

setenv bootlabel "Armbian"
"

Code: Select all

setenv bootlabel "Armbian"
"
where should I add this line?


I did Boot.ini as in the following example, it didn't work

Code: Select all

ODROIDN2-UBOOT-CONFIG

setenv bootlabel "Armbian"
setenv rootdev "UUID=a3a05e7d-a376-4128-9dfe-429f1bbb17ef"
setenv rootfstype "ext4"

ODROIDN2-UBOOT-CONFIG

# Default Console Device Setting
setenv condev "console=ttyS0,115200n8 console=tty1 loglevel=1"   # on both

# Auto Detection of Monitor settings based on your Screen information
setenv display_autodetect "true"

# HDMI Mode
# Resolution Configuration
#    Symbol             | Resolution
# ----------------------+-------------
#    "480x320p60hz"     | 480x320 Progressive 60Hz
#    "480p60hz"         | 720x480 Progressive 60Hz
#    "576p50hz"         | 720x576 Progressive 50Hz
#    "720p60hz"         | 1280x720 Progressive 60Hz
#    "720p50hz"         | 1280x720 Progressive 50Hz
#    "1080p60hz"        | 1920x1080 Progressive 60Hz
#    "1080p50hz"        | 1920x1080 Progressive 50Hz
#    "1080p30hz"        | 1920x1080 Progressive 30Hz
#    "1080p24hz"        | 1920x1080 Progressive 24Hz
#    "1080i60hz"        | 1920x1080 Interlaced 60Hz
#    "1080i50hz"        | 1920x1080 Interlaced 50Hz
#    "2160p60hz"        | 3840x2160 Progressive 60Hz
#    "2160p50hz"        | 3840x2160 Progressive 50Hz
#    "2160p30hz"        | 3840x2160 Progressive 30Hz
#    "2160p25hz"        | 3840x2160 Progressive 25Hz
#    "2160p24hz"        | 3840x2160 Progressive 24Hz
#    "smpte24hz"        | 3840x2160 Progressive 24Hz SMPTE
#    "2160p60hz420"     | 3840x2160 Progressive 60Hz YCbCr 4:2:0
#    "2160p50hz420"     | 3840x2160 Progressive 50Hz YCbCr 4:2:0
#    "640x480p60hz"     | 640x480 Progressive 60Hz
#    "800x480p60hz"     | 800x480 Progressive 60Hz
#    "800x600p60hz"     | 800x600 Progressive 60Hz
#    "1024x600p60hz"    | 1024x600 Progressive 60Hz
#    "1024x768p60hz"    | 1024x768 Progressive 60Hz
#    "1280x800p60hz"    | 1280x800 Progressive 60Hz
#    "1280x1024p60hz"   | 1280x1024 Progressive 60Hz
#    "1360x768p60hz"    | 1360x768 Progressive 60Hz
#    "1440x900p60hz"    | 1440x900 Progressive 60Hz
#    "1600x900p60hz"    | 1600x900 Progressive 60Hz
#    "1600x1200p60hz"   | 1600x1200 Progressive 60Hz
#    "1680x1050p60hz"   | 1680x1050 Progressive 60Hz
#    "1920x1200p60hz"   | 1920x1200 Progressive 60Hz
#    "2560x1080p60hz"   | 2560x1080 Progressive 60Hz
#    "2560x1440p60hz"   | 2560x1440 Progressive 60Hz
#    "2560x1600p60hz"   | 2560x1600 Progressive 60Hz
#    "3440x1440p60hz"   | 3440x1440 Progressive 60Hz
setenv hdmimode "1080p60hz"

# Overscan percentage
# This value scales down the actual screen size by the percentage below
# valid range is 80 to 100
setenv overscan "100"

### voutmode : hdmi or dvi
setenv voutmode "hdmi"
# setenv voutmode "dvi"

# HPD enable/disable option
setenv disablehpd "false"

# max cpu frequency for big core, A73 in MHz unit
# setenv max_freq_a73 "2004"  # 2.004 GHz
# setenv max_freq_a73 "1992"  # 1.992 GHz
# setenv max_freq_a73 "1908"  # 1.908 GHz
setenv max_freq_a73 "1800"  # 1.8 GHz, default value
# setenv max_freq_a73 "1704"  # 1.704 GHz
 
# max cpu frequency for little core, A53 in MHz unit
# setenv max_freq_a53 "1992"  # 1.992 GHz
setenv max_freq_a53 "1896"  # 1.896 GHz, default value
# setenv max_freq_a53 "1704"  # 1.704 GHz


# max cpu-cores
# Note:
# CPU's 0 and 1 are the A53 (small cores)
# CPU's 2 to 5 are the A73 (big cores)
# Lowering this value disables only the bigger cores (the last cores).
# setenv maxcpus "4"
# setenv maxcpus "5"
setenv maxcpus "6"

### Normal HDMI Monitors
if test "${display_autodetect}" = "true"; then hdmitx edid; fi
if test "${hdmimode}" = "custombuilt"; then setenv cmode "modeline=${modeline}"; fi

# Boot Args
setenv bootargs "root=${rootdev} rootwait rootflags=data=writeback rw rootfstype=${rootfstype} ${condev} ${amlogic} no_console_suspend fsck.repair=yes net.ifnames=0 elevator=noop hdmimode=${hdmimode} cvbsmode=576cvbs max_freq_a53=${max_freq_a53} max_freq_a73=${max_freq_a73} maxcpus=${maxcpus} voutmode=${voutmode} ${cmode} disablehpd=${disablehpd} cvbscable=${cvbscable} overscan=${overscan}"

# Set load addresses
setenv dtb_loadaddr "0x1000000"
setenv k_addr "0x1100000"
setenv loadaddr "0x1B00000"
setenv initrd_loadaddr "0x3700000"

# Load kernel, dtb and initrd
ext4load mmc ${devno}:1 ${k_addr} boot/zImage
ext4load mmc ${devno}:1 ${dtb_loadaddr} boot/dtb/amlogic/meson64_odroidn2.dtb
ext4load mmc ${devno}:1 ${initrd_loadaddr} boot/uInitrd
fdt addr ${dtb_loadaddr}
# unzip the kernel
unzip ${k_addr} ${loadaddr}

# boot
booti ${loadaddr} ${initrd_loadaddr} ${dtb_loadaddr}

User avatar
tobetter
Posts: 4265
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: 59 times
Been thanked: 235 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by tobetter » Mon Jul 22, 2019 11:22 pm

@kardanadm, can you move the line below after second "ODROIDN2-UBOOT-CONFIG"?

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

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by istanbulls » Mon Jul 22, 2019 11:34 pm

tobetter wrote:
Mon Jul 22, 2019 11:22 pm
@kardanadm, can you move the line below after second "ODROIDN2-UBOOT-CONFIG"?
I don't understand what you mean, I'm so sorry :( :oops:

User avatar
tobetter
Posts: 4265
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: 59 times
Been thanked: 235 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by tobetter » Mon Jul 22, 2019 11:37 pm

kardanadm wrote:
Mon Jul 22, 2019 11:34 pm
tobetter wrote:
Mon Jul 22, 2019 11:22 pm
@kardanadm, can you move the line below after second "ODROIDN2-UBOOT-CONFIG"?
I don't understand what you mean, I'm so sorry :( :oops:
In your boot.ini there are two "ODROIDN2-BOOT_CONFIG" lines at line #1 as well as line #7. What I asked you to try is this.

Code: Select all

ODROIDN2-UBOOT-CONFIG

setenv rootdev "UUID=a3a05e7d-a376-4128-9dfe-429f1bbb17ef"
setenv rootfstype "ext4"

ODROIDN2-UBOOT-CONFIG

setenv bootlabel "Armbian"
# Default Console Device Setting
setenv condev "console=ttyS0,115200n8 console=tty1 loglevel=1"   # on both

# Auto Detection of Monitor settings based on your Screen information
setenv display_autodetect "true"


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

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by istanbulls » Mon Jul 22, 2019 11:52 pm

copy and paste the code you sent me, will all errors be corrected?

Code: Select all

ODROIDN2-UBOOT-CONFIG

setenv rootdev "UUID=a3a05e7d-a376-4128-9dfe-429f1bbb17ef"
setenv rootfstype "ext4"

ODROIDN2-UBOOT-CONFIG

setenv bootlabel "Armbian"
# Default Console Device Setting
setenv condev "console=ttyS0,115200n8 console=tty1 loglevel=1"   # on both

# Auto Detection of Monitor settings based on your Screen information
setenv display_autodetect "true"

# HDMI Mode
# Resolution Configuration
#    Symbol             | Resolution
# ----------------------+-------------
#    "480x320p60hz"     | 480x320 Progressive 60Hz
#    "480p60hz"         | 720x480 Progressive 60Hz
#    "576p50hz"         | 720x576 Progressive 50Hz
#    "720p60hz"         | 1280x720 Progressive 60Hz
#    "720p50hz"         | 1280x720 Progressive 50Hz
#    "1080p60hz"        | 1920x1080 Progressive 60Hz
#    "1080p50hz"        | 1920x1080 Progressive 50Hz
#    "1080p30hz"        | 1920x1080 Progressive 30Hz
#    "1080p24hz"        | 1920x1080 Progressive 24Hz
#    "1080i60hz"        | 1920x1080 Interlaced 60Hz
#    "1080i50hz"        | 1920x1080 Interlaced 50Hz
#    "2160p60hz"        | 3840x2160 Progressive 60Hz
#    "2160p50hz"        | 3840x2160 Progressive 50Hz
#    "2160p30hz"        | 3840x2160 Progressive 30Hz
#    "2160p25hz"        | 3840x2160 Progressive 25Hz
#    "2160p24hz"        | 3840x2160 Progressive 24Hz
#    "smpte24hz"        | 3840x2160 Progressive 24Hz SMPTE
#    "2160p60hz420"     | 3840x2160 Progressive 60Hz YCbCr 4:2:0
#    "2160p50hz420"     | 3840x2160 Progressive 50Hz YCbCr 4:2:0
#    "640x480p60hz"     | 640x480 Progressive 60Hz
#    "800x480p60hz"     | 800x480 Progressive 60Hz
#    "800x600p60hz"     | 800x600 Progressive 60Hz
#    "1024x600p60hz"    | 1024x600 Progressive 60Hz
#    "1024x768p60hz"    | 1024x768 Progressive 60Hz
#    "1280x800p60hz"    | 1280x800 Progressive 60Hz
#    "1280x1024p60hz"   | 1280x1024 Progressive 60Hz
#    "1360x768p60hz"    | 1360x768 Progressive 60Hz
#    "1440x900p60hz"    | 1440x900 Progressive 60Hz
#    "1600x900p60hz"    | 1600x900 Progressive 60Hz
#    "1600x1200p60hz"   | 1600x1200 Progressive 60Hz
#    "1680x1050p60hz"   | 1680x1050 Progressive 60Hz
#    "1920x1200p60hz"   | 1920x1200 Progressive 60Hz
#    "2560x1080p60hz"   | 2560x1080 Progressive 60Hz
#    "2560x1440p60hz"   | 2560x1440 Progressive 60Hz
#    "2560x1600p60hz"   | 2560x1600 Progressive 60Hz
#    "3440x1440p60hz"   | 3440x1440 Progressive 60Hz
setenv hdmimode "1080p60hz"

# Overscan percentage
# This value scales down the actual screen size by the percentage below
# valid range is 80 to 100
setenv overscan "100"

### voutmode : hdmi or dvi
setenv voutmode "hdmi"
# setenv voutmode "dvi"

# HPD enable/disable option
setenv disablehpd "false"

# max cpu frequency for big core, A73 in MHz unit
# setenv max_freq_a73 "2004"  # 2.004 GHz
# setenv max_freq_a73 "1992"  # 1.992 GHz
# setenv max_freq_a73 "1908"  # 1.908 GHz
setenv max_freq_a73 "1800"  # 1.8 GHz, default value
# setenv max_freq_a73 "1704"  # 1.704 GHz
 
# max cpu frequency for little core, A53 in MHz unit
# setenv max_freq_a53 "1992"  # 1.992 GHz
setenv max_freq_a53 "1896"  # 1.896 GHz, default value
# setenv max_freq_a53 "1704"  # 1.704 GHz


# max cpu-cores
# Note:
# CPU's 0 and 1 are the A53 (small cores)
# CPU's 2 to 5 are the A73 (big cores)
# Lowering this value disables only the bigger cores (the last cores).
# setenv maxcpus "4"
# setenv maxcpus "5"
setenv maxcpus "6"

### Normal HDMI Monitors
if test "${display_autodetect}" = "true"; then hdmitx edid; fi
if test "${hdmimode}" = "custombuilt"; then setenv cmode "modeline=${modeline}"; fi

# Boot Args
setenv bootargs "root=${rootdev} rootwait rootflags=data=writeback rw rootfstype=${rootfstype} ${condev} ${amlogic} no_console_suspend fsck.repair=yes net.ifnames=0 elevator=noop hdmimode=${hdmimode} cvbsmode=576cvbs max_freq_a53=${max_freq_a53} max_freq_a73=${max_freq_a73} maxcpus=${maxcpus} voutmode=${voutmode} ${cmode} disablehpd=${disablehpd} cvbscable=${cvbscable} overscan=${overscan}"

# Set load addresses
setenv dtb_loadaddr "0x1000000"
setenv k_addr "0x1100000"
setenv loadaddr "0x1B00000"
setenv initrd_loadaddr "0x3700000"

# Load kernel, dtb and initrd
ext4load mmc ${devno}:1 ${k_addr} boot/zImage
ext4load mmc ${devno}:1 ${dtb_loadaddr} boot/dtb/amlogic/meson64_odroidn2.dtb
ext4load mmc ${devno}:1 ${initrd_loadaddr} boot/uInitrd
fdt addr ${dtb_loadaddr}
# unzip the kernel
unzip ${k_addr} ${loadaddr}

# boot
booti ${loadaddr} ${initrd_loadaddr} ${dtb_loadaddr}

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

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by istanbulls » Tue Jul 23, 2019 12:03 am

kardanadm wrote:
Mon Jul 22, 2019 11:52 pm
copy and paste the code you sent me, will all errors be corrected?

Code: Select all

ODROIDN2-UBOOT-CONFIG

setenv rootdev "UUID=a3a05e7d-a376-4128-9dfe-429f1bbb17ef"
setenv rootfstype "ext4"

ODROIDN2-UBOOT-CONFIG

setenv bootlabel "Armbian"
# Default Console Device Setting
setenv condev "console=ttyS0,115200n8 console=tty1 loglevel=1"   # on both

# Auto Detection of Monitor settings based on your Screen information
setenv display_autodetect "true"

# HDMI Mode
# Resolution Configuration
#    Symbol             | Resolution
# ----------------------+-------------
#    "480x320p60hz"     | 480x320 Progressive 60Hz
#    "480p60hz"         | 720x480 Progressive 60Hz
#    "576p50hz"         | 720x576 Progressive 50Hz
#    "720p60hz"         | 1280x720 Progressive 60Hz
#    "720p50hz"         | 1280x720 Progressive 50Hz
#    "1080p60hz"        | 1920x1080 Progressive 60Hz
#    "1080p50hz"        | 1920x1080 Progressive 50Hz
#    "1080p30hz"        | 1920x1080 Progressive 30Hz
#    "1080p24hz"        | 1920x1080 Progressive 24Hz
#    "1080i60hz"        | 1920x1080 Interlaced 60Hz
#    "1080i50hz"        | 1920x1080 Interlaced 50Hz
#    "2160p60hz"        | 3840x2160 Progressive 60Hz
#    "2160p50hz"        | 3840x2160 Progressive 50Hz
#    "2160p30hz"        | 3840x2160 Progressive 30Hz
#    "2160p25hz"        | 3840x2160 Progressive 25Hz
#    "2160p24hz"        | 3840x2160 Progressive 24Hz
#    "smpte24hz"        | 3840x2160 Progressive 24Hz SMPTE
#    "2160p60hz420"     | 3840x2160 Progressive 60Hz YCbCr 4:2:0
#    "2160p50hz420"     | 3840x2160 Progressive 50Hz YCbCr 4:2:0
#    "640x480p60hz"     | 640x480 Progressive 60Hz
#    "800x480p60hz"     | 800x480 Progressive 60Hz
#    "800x600p60hz"     | 800x600 Progressive 60Hz
#    "1024x600p60hz"    | 1024x600 Progressive 60Hz
#    "1024x768p60hz"    | 1024x768 Progressive 60Hz
#    "1280x800p60hz"    | 1280x800 Progressive 60Hz
#    "1280x1024p60hz"   | 1280x1024 Progressive 60Hz
#    "1360x768p60hz"    | 1360x768 Progressive 60Hz
#    "1440x900p60hz"    | 1440x900 Progressive 60Hz
#    "1600x900p60hz"    | 1600x900 Progressive 60Hz
#    "1600x1200p60hz"   | 1600x1200 Progressive 60Hz
#    "1680x1050p60hz"   | 1680x1050 Progressive 60Hz
#    "1920x1200p60hz"   | 1920x1200 Progressive 60Hz
#    "2560x1080p60hz"   | 2560x1080 Progressive 60Hz
#    "2560x1440p60hz"   | 2560x1440 Progressive 60Hz
#    "2560x1600p60hz"   | 2560x1600 Progressive 60Hz
#    "3440x1440p60hz"   | 3440x1440 Progressive 60Hz
setenv hdmimode "1080p60hz"

# Overscan percentage
# This value scales down the actual screen size by the percentage below
# valid range is 80 to 100
setenv overscan "100"

### voutmode : hdmi or dvi
setenv voutmode "hdmi"
# setenv voutmode "dvi"

# HPD enable/disable option
setenv disablehpd "false"

# max cpu frequency for big core, A73 in MHz unit
# setenv max_freq_a73 "2004"  # 2.004 GHz
# setenv max_freq_a73 "1992"  # 1.992 GHz
# setenv max_freq_a73 "1908"  # 1.908 GHz
setenv max_freq_a73 "1800"  # 1.8 GHz, default value
# setenv max_freq_a73 "1704"  # 1.704 GHz
 
# max cpu frequency for little core, A53 in MHz unit
# setenv max_freq_a53 "1992"  # 1.992 GHz
setenv max_freq_a53 "1896"  # 1.896 GHz, default value
# setenv max_freq_a53 "1704"  # 1.704 GHz


# max cpu-cores
# Note:
# CPU's 0 and 1 are the A53 (small cores)
# CPU's 2 to 5 are the A73 (big cores)
# Lowering this value disables only the bigger cores (the last cores).
# setenv maxcpus "4"
# setenv maxcpus "5"
setenv maxcpus "6"

### Normal HDMI Monitors
if test "${display_autodetect}" = "true"; then hdmitx edid; fi
if test "${hdmimode}" = "custombuilt"; then setenv cmode "modeline=${modeline}"; fi

# Boot Args
setenv bootargs "root=${rootdev} rootwait rootflags=data=writeback rw rootfstype=${rootfstype} ${condev} ${amlogic} no_console_suspend fsck.repair=yes net.ifnames=0 elevator=noop hdmimode=${hdmimode} cvbsmode=576cvbs max_freq_a53=${max_freq_a53} max_freq_a73=${max_freq_a73} maxcpus=${maxcpus} voutmode=${voutmode} ${cmode} disablehpd=${disablehpd} cvbscable=${cvbscable} overscan=${overscan}"

# Set load addresses
setenv dtb_loadaddr "0x1000000"
setenv k_addr "0x1100000"
setenv loadaddr "0x1B00000"
setenv initrd_loadaddr "0x3700000"

# Load kernel, dtb and initrd
ext4load mmc ${devno}:1 ${k_addr} boot/zImage
ext4load mmc ${devno}:1 ${dtb_loadaddr} boot/dtb/amlogic/meson64_odroidn2.dtb
ext4load mmc ${devno}:1 ${initrd_loadaddr} boot/uInitrd
fdt addr ${dtb_loadaddr}
# unzip the kernel
unzip ${k_addr} ${loadaddr}

# boot
booti ${loadaddr} ${initrd_loadaddr} ${dtb_loadaddr}
It didn't work. What am I doing wrong?

User avatar
tobetter
Posts: 4265
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: 59 times
Been thanked: 235 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by tobetter » Tue Jul 23, 2019 12:16 am

kardanadm wrote:
Tue Jul 23, 2019 12:03 am
kardanadm wrote:
Mon Jul 22, 2019 11:52 pm
copy and paste the code you sent me, will all errors be corrected?

Code: Select all

ODROIDN2-UBOOT-CONFIG

setenv rootdev "UUID=a3a05e7d-a376-4128-9dfe-429f1bbb17ef"
setenv rootfstype "ext4"

ODROIDN2-UBOOT-CONFIG

setenv bootlabel "Armbian"
# Default Console Device Setting
setenv condev "console=ttyS0,115200n8 console=tty1 loglevel=1"   # on both

# Auto Detection of Monitor settings based on your Screen information
setenv display_autodetect "true"

# HDMI Mode
# Resolution Configuration
#    Symbol             | Resolution
# ----------------------+-------------
#    "480x320p60hz"     | 480x320 Progressive 60Hz
#    "480p60hz"         | 720x480 Progressive 60Hz
#    "576p50hz"         | 720x576 Progressive 50Hz
#    "720p60hz"         | 1280x720 Progressive 60Hz
#    "720p50hz"         | 1280x720 Progressive 50Hz
#    "1080p60hz"        | 1920x1080 Progressive 60Hz
#    "1080p50hz"        | 1920x1080 Progressive 50Hz
#    "1080p30hz"        | 1920x1080 Progressive 30Hz
#    "1080p24hz"        | 1920x1080 Progressive 24Hz
#    "1080i60hz"        | 1920x1080 Interlaced 60Hz
#    "1080i50hz"        | 1920x1080 Interlaced 50Hz
#    "2160p60hz"        | 3840x2160 Progressive 60Hz
#    "2160p50hz"        | 3840x2160 Progressive 50Hz
#    "2160p30hz"        | 3840x2160 Progressive 30Hz
#    "2160p25hz"        | 3840x2160 Progressive 25Hz
#    "2160p24hz"        | 3840x2160 Progressive 24Hz
#    "smpte24hz"        | 3840x2160 Progressive 24Hz SMPTE
#    "2160p60hz420"     | 3840x2160 Progressive 60Hz YCbCr 4:2:0
#    "2160p50hz420"     | 3840x2160 Progressive 50Hz YCbCr 4:2:0
#    "640x480p60hz"     | 640x480 Progressive 60Hz
#    "800x480p60hz"     | 800x480 Progressive 60Hz
#    "800x600p60hz"     | 800x600 Progressive 60Hz
#    "1024x600p60hz"    | 1024x600 Progressive 60Hz
#    "1024x768p60hz"    | 1024x768 Progressive 60Hz
#    "1280x800p60hz"    | 1280x800 Progressive 60Hz
#    "1280x1024p60hz"   | 1280x1024 Progressive 60Hz
#    "1360x768p60hz"    | 1360x768 Progressive 60Hz
#    "1440x900p60hz"    | 1440x900 Progressive 60Hz
#    "1600x900p60hz"    | 1600x900 Progressive 60Hz
#    "1600x1200p60hz"   | 1600x1200 Progressive 60Hz
#    "1680x1050p60hz"   | 1680x1050 Progressive 60Hz
#    "1920x1200p60hz"   | 1920x1200 Progressive 60Hz
#    "2560x1080p60hz"   | 2560x1080 Progressive 60Hz
#    "2560x1440p60hz"   | 2560x1440 Progressive 60Hz
#    "2560x1600p60hz"   | 2560x1600 Progressive 60Hz
#    "3440x1440p60hz"   | 3440x1440 Progressive 60Hz
setenv hdmimode "1080p60hz"

# Overscan percentage
# This value scales down the actual screen size by the percentage below
# valid range is 80 to 100
setenv overscan "100"

### voutmode : hdmi or dvi
setenv voutmode "hdmi"
# setenv voutmode "dvi"

# HPD enable/disable option
setenv disablehpd "false"

# max cpu frequency for big core, A73 in MHz unit
# setenv max_freq_a73 "2004"  # 2.004 GHz
# setenv max_freq_a73 "1992"  # 1.992 GHz
# setenv max_freq_a73 "1908"  # 1.908 GHz
setenv max_freq_a73 "1800"  # 1.8 GHz, default value
# setenv max_freq_a73 "1704"  # 1.704 GHz
 
# max cpu frequency for little core, A53 in MHz unit
# setenv max_freq_a53 "1992"  # 1.992 GHz
setenv max_freq_a53 "1896"  # 1.896 GHz, default value
# setenv max_freq_a53 "1704"  # 1.704 GHz


# max cpu-cores
# Note:
# CPU's 0 and 1 are the A53 (small cores)
# CPU's 2 to 5 are the A73 (big cores)
# Lowering this value disables only the bigger cores (the last cores).
# setenv maxcpus "4"
# setenv maxcpus "5"
setenv maxcpus "6"

### Normal HDMI Monitors
if test "${display_autodetect}" = "true"; then hdmitx edid; fi
if test "${hdmimode}" = "custombuilt"; then setenv cmode "modeline=${modeline}"; fi

# Boot Args
setenv bootargs "root=${rootdev} rootwait rootflags=data=writeback rw rootfstype=${rootfstype} ${condev} ${amlogic} no_console_suspend fsck.repair=yes net.ifnames=0 elevator=noop hdmimode=${hdmimode} cvbsmode=576cvbs max_freq_a53=${max_freq_a53} max_freq_a73=${max_freq_a73} maxcpus=${maxcpus} voutmode=${voutmode} ${cmode} disablehpd=${disablehpd} cvbscable=${cvbscable} overscan=${overscan}"

# Set load addresses
setenv dtb_loadaddr "0x1000000"
setenv k_addr "0x1100000"
setenv loadaddr "0x1B00000"
setenv initrd_loadaddr "0x3700000"

# Load kernel, dtb and initrd
ext4load mmc ${devno}:1 ${k_addr} boot/zImage
ext4load mmc ${devno}:1 ${dtb_loadaddr} boot/dtb/amlogic/meson64_odroidn2.dtb
ext4load mmc ${devno}:1 ${initrd_loadaddr} boot/uInitrd
fdt addr ${dtb_loadaddr}
# unzip the kernel
unzip ${k_addr} ${loadaddr}

# boot
booti ${loadaddr} ${initrd_loadaddr} ${dtb_loadaddr}
It didn't work. What am I doing wrong?
I am not sure, it should work...
Do you use the latest update?
viewtopic.php?f=182&t=33873#p261451

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

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by istanbulls » Tue Jul 23, 2019 12:25 am

tobetter wrote:
Tue Jul 23, 2019 12:16 am
kardanadm wrote:
Tue Jul 23, 2019 12:03 am
kardanadm wrote:
Mon Jul 22, 2019 11:52 pm
copy and paste the code you sent me, will all errors be corrected?

Code: Select all

ODROIDN2-UBOOT-CONFIG

setenv rootdev "UUID=a3a05e7d-a376-4128-9dfe-429f1bbb17ef"
setenv rootfstype "ext4"

ODROIDN2-UBOOT-CONFIG

setenv bootlabel "Armbian"
# Default Console Device Setting
setenv condev "console=ttyS0,115200n8 console=tty1 loglevel=1"   # on both

# Auto Detection of Monitor settings based on your Screen information
setenv display_autodetect "true"

# HDMI Mode
# Resolution Configuration
#    Symbol             | Resolution
# ----------------------+-------------
#    "480x320p60hz"     | 480x320 Progressive 60Hz
#    "480p60hz"         | 720x480 Progressive 60Hz
#    "576p50hz"         | 720x576 Progressive 50Hz
#    "720p60hz"         | 1280x720 Progressive 60Hz
#    "720p50hz"         | 1280x720 Progressive 50Hz
#    "1080p60hz"        | 1920x1080 Progressive 60Hz
#    "1080p50hz"        | 1920x1080 Progressive 50Hz
#    "1080p30hz"        | 1920x1080 Progressive 30Hz
#    "1080p24hz"        | 1920x1080 Progressive 24Hz
#    "1080i60hz"        | 1920x1080 Interlaced 60Hz
#    "1080i50hz"        | 1920x1080 Interlaced 50Hz
#    "2160p60hz"        | 3840x2160 Progressive 60Hz
#    "2160p50hz"        | 3840x2160 Progressive 50Hz
#    "2160p30hz"        | 3840x2160 Progressive 30Hz
#    "2160p25hz"        | 3840x2160 Progressive 25Hz
#    "2160p24hz"        | 3840x2160 Progressive 24Hz
#    "smpte24hz"        | 3840x2160 Progressive 24Hz SMPTE
#    "2160p60hz420"     | 3840x2160 Progressive 60Hz YCbCr 4:2:0
#    "2160p50hz420"     | 3840x2160 Progressive 50Hz YCbCr 4:2:0
#    "640x480p60hz"     | 640x480 Progressive 60Hz
#    "800x480p60hz"     | 800x480 Progressive 60Hz
#    "800x600p60hz"     | 800x600 Progressive 60Hz
#    "1024x600p60hz"    | 1024x600 Progressive 60Hz
#    "1024x768p60hz"    | 1024x768 Progressive 60Hz
#    "1280x800p60hz"    | 1280x800 Progressive 60Hz
#    "1280x1024p60hz"   | 1280x1024 Progressive 60Hz
#    "1360x768p60hz"    | 1360x768 Progressive 60Hz
#    "1440x900p60hz"    | 1440x900 Progressive 60Hz
#    "1600x900p60hz"    | 1600x900 Progressive 60Hz
#    "1600x1200p60hz"   | 1600x1200 Progressive 60Hz
#    "1680x1050p60hz"   | 1680x1050 Progressive 60Hz
#    "1920x1200p60hz"   | 1920x1200 Progressive 60Hz
#    "2560x1080p60hz"   | 2560x1080 Progressive 60Hz
#    "2560x1440p60hz"   | 2560x1440 Progressive 60Hz
#    "2560x1600p60hz"   | 2560x1600 Progressive 60Hz
#    "3440x1440p60hz"   | 3440x1440 Progressive 60Hz
setenv hdmimode "1080p60hz"

# Overscan percentage
# This value scales down the actual screen size by the percentage below
# valid range is 80 to 100
setenv overscan "100"

### voutmode : hdmi or dvi
setenv voutmode "hdmi"
# setenv voutmode "dvi"

# HPD enable/disable option
setenv disablehpd "false"

# max cpu frequency for big core, A73 in MHz unit
# setenv max_freq_a73 "2004"  # 2.004 GHz
# setenv max_freq_a73 "1992"  # 1.992 GHz
# setenv max_freq_a73 "1908"  # 1.908 GHz
setenv max_freq_a73 "1800"  # 1.8 GHz, default value
# setenv max_freq_a73 "1704"  # 1.704 GHz
 
# max cpu frequency for little core, A53 in MHz unit
# setenv max_freq_a53 "1992"  # 1.992 GHz
setenv max_freq_a53 "1896"  # 1.896 GHz, default value
# setenv max_freq_a53 "1704"  # 1.704 GHz


# max cpu-cores
# Note:
# CPU's 0 and 1 are the A53 (small cores)
# CPU's 2 to 5 are the A73 (big cores)
# Lowering this value disables only the bigger cores (the last cores).
# setenv maxcpus "4"
# setenv maxcpus "5"
setenv maxcpus "6"

### Normal HDMI Monitors
if test "${display_autodetect}" = "true"; then hdmitx edid; fi
if test "${hdmimode}" = "custombuilt"; then setenv cmode "modeline=${modeline}"; fi

# Boot Args
setenv bootargs "root=${rootdev} rootwait rootflags=data=writeback rw rootfstype=${rootfstype} ${condev} ${amlogic} no_console_suspend fsck.repair=yes net.ifnames=0 elevator=noop hdmimode=${hdmimode} cvbsmode=576cvbs max_freq_a53=${max_freq_a53} max_freq_a73=${max_freq_a73} maxcpus=${maxcpus} voutmode=${voutmode} ${cmode} disablehpd=${disablehpd} cvbscable=${cvbscable} overscan=${overscan}"

# Set load addresses
setenv dtb_loadaddr "0x1000000"
setenv k_addr "0x1100000"
setenv loadaddr "0x1B00000"
setenv initrd_loadaddr "0x3700000"

# Load kernel, dtb and initrd
ext4load mmc ${devno}:1 ${k_addr} boot/zImage
ext4load mmc ${devno}:1 ${dtb_loadaddr} boot/dtb/amlogic/meson64_odroidn2.dtb
ext4load mmc ${devno}:1 ${initrd_loadaddr} boot/uInitrd
fdt addr ${dtb_loadaddr}
# unzip the kernel
unzip ${k_addr} ${loadaddr}

# boot
booti ${loadaddr} ${initrd_loadaddr} ${dtb_loadaddr}
It didn't work. What am I doing wrong?
I am not sure, it should work...
Do you use the latest update?
viewtopic.php?f=182&t=33873#p261451
I am using the petitboot version 201907-RC1. coreELEC and Ubuntu is running.

User avatar
tobetter
Posts: 4265
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: 59 times
Been thanked: 235 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by tobetter » Tue Jul 23, 2019 12:34 am

kardanadm wrote:
Tue Jul 23, 2019 12:25 am
tobetter wrote:
Tue Jul 23, 2019 12:16 am
kardanadm wrote:
Tue Jul 23, 2019 12:03 am
kardanadm wrote:
Mon Jul 22, 2019 11:52 pm
copy and paste the code you sent me, will all errors be corrected?

Code: Select all

ODROIDN2-UBOOT-CONFIG

setenv rootdev "UUID=a3a05e7d-a376-4128-9dfe-429f1bbb17ef"
setenv rootfstype "ext4"

ODROIDN2-UBOOT-CONFIG

setenv bootlabel "Armbian"
# Default Console Device Setting
setenv condev "console=ttyS0,115200n8 console=tty1 loglevel=1"   # on both

# Auto Detection of Monitor settings based on your Screen information
setenv display_autodetect "true"

# HDMI Mode
# Resolution Configuration
#    Symbol             | Resolution
# ----------------------+-------------
#    "480x320p60hz"     | 480x320 Progressive 60Hz
#    "480p60hz"         | 720x480 Progressive 60Hz
#    "576p50hz"         | 720x576 Progressive 50Hz
#    "720p60hz"         | 1280x720 Progressive 60Hz
#    "720p50hz"         | 1280x720 Progressive 50Hz
#    "1080p60hz"        | 1920x1080 Progressive 60Hz
#    "1080p50hz"        | 1920x1080 Progressive 50Hz
#    "1080p30hz"        | 1920x1080 Progressive 30Hz
#    "1080p24hz"        | 1920x1080 Progressive 24Hz
#    "1080i60hz"        | 1920x1080 Interlaced 60Hz
#    "1080i50hz"        | 1920x1080 Interlaced 50Hz
#    "2160p60hz"        | 3840x2160 Progressive 60Hz
#    "2160p50hz"        | 3840x2160 Progressive 50Hz
#    "2160p30hz"        | 3840x2160 Progressive 30Hz
#    "2160p25hz"        | 3840x2160 Progressive 25Hz
#    "2160p24hz"        | 3840x2160 Progressive 24Hz
#    "smpte24hz"        | 3840x2160 Progressive 24Hz SMPTE
#    "2160p60hz420"     | 3840x2160 Progressive 60Hz YCbCr 4:2:0
#    "2160p50hz420"     | 3840x2160 Progressive 50Hz YCbCr 4:2:0
#    "640x480p60hz"     | 640x480 Progressive 60Hz
#    "800x480p60hz"     | 800x480 Progressive 60Hz
#    "800x600p60hz"     | 800x600 Progressive 60Hz
#    "1024x600p60hz"    | 1024x600 Progressive 60Hz
#    "1024x768p60hz"    | 1024x768 Progressive 60Hz
#    "1280x800p60hz"    | 1280x800 Progressive 60Hz
#    "1280x1024p60hz"   | 1280x1024 Progressive 60Hz
#    "1360x768p60hz"    | 1360x768 Progressive 60Hz
#    "1440x900p60hz"    | 1440x900 Progressive 60Hz
#    "1600x900p60hz"    | 1600x900 Progressive 60Hz
#    "1600x1200p60hz"   | 1600x1200 Progressive 60Hz
#    "1680x1050p60hz"   | 1680x1050 Progressive 60Hz
#    "1920x1200p60hz"   | 1920x1200 Progressive 60Hz
#    "2560x1080p60hz"   | 2560x1080 Progressive 60Hz
#    "2560x1440p60hz"   | 2560x1440 Progressive 60Hz
#    "2560x1600p60hz"   | 2560x1600 Progressive 60Hz
#    "3440x1440p60hz"   | 3440x1440 Progressive 60Hz
setenv hdmimode "1080p60hz"

# Overscan percentage
# This value scales down the actual screen size by the percentage below
# valid range is 80 to 100
setenv overscan "100"

### voutmode : hdmi or dvi
setenv voutmode "hdmi"
# setenv voutmode "dvi"

# HPD enable/disable option
setenv disablehpd "false"

# max cpu frequency for big core, A73 in MHz unit
# setenv max_freq_a73 "2004"  # 2.004 GHz
# setenv max_freq_a73 "1992"  # 1.992 GHz
# setenv max_freq_a73 "1908"  # 1.908 GHz
setenv max_freq_a73 "1800"  # 1.8 GHz, default value
# setenv max_freq_a73 "1704"  # 1.704 GHz
 
# max cpu frequency for little core, A53 in MHz unit
# setenv max_freq_a53 "1992"  # 1.992 GHz
setenv max_freq_a53 "1896"  # 1.896 GHz, default value
# setenv max_freq_a53 "1704"  # 1.704 GHz


# max cpu-cores
# Note:
# CPU's 0 and 1 are the A53 (small cores)
# CPU's 2 to 5 are the A73 (big cores)
# Lowering this value disables only the bigger cores (the last cores).
# setenv maxcpus "4"
# setenv maxcpus "5"
setenv maxcpus "6"

### Normal HDMI Monitors
if test "${display_autodetect}" = "true"; then hdmitx edid; fi
if test "${hdmimode}" = "custombuilt"; then setenv cmode "modeline=${modeline}"; fi

# Boot Args
setenv bootargs "root=${rootdev} rootwait rootflags=data=writeback rw rootfstype=${rootfstype} ${condev} ${amlogic} no_console_suspend fsck.repair=yes net.ifnames=0 elevator=noop hdmimode=${hdmimode} cvbsmode=576cvbs max_freq_a53=${max_freq_a53} max_freq_a73=${max_freq_a73} maxcpus=${maxcpus} voutmode=${voutmode} ${cmode} disablehpd=${disablehpd} cvbscable=${cvbscable} overscan=${overscan}"

# Set load addresses
setenv dtb_loadaddr "0x1000000"
setenv k_addr "0x1100000"
setenv loadaddr "0x1B00000"
setenv initrd_loadaddr "0x3700000"

# Load kernel, dtb and initrd
ext4load mmc ${devno}:1 ${k_addr} boot/zImage
ext4load mmc ${devno}:1 ${dtb_loadaddr} boot/dtb/amlogic/meson64_odroidn2.dtb
ext4load mmc ${devno}:1 ${initrd_loadaddr} boot/uInitrd
fdt addr ${dtb_loadaddr}
# unzip the kernel
unzip ${k_addr} ${loadaddr}

# boot
booti ${loadaddr} ${initrd_loadaddr} ${dtb_loadaddr}
It didn't work. What am I doing wrong?
I am not sure, it should work...
Do you use the latest update?
viewtopic.php?f=182&t=33873#p261451
I am using the petitboot version 201907-RC1. coreELEC and Ubuntu is running.
Not sure what's wrong, but one doubt is that you have changed the right file. I understand that Armbian has /boot/boot.ini, not boot.ini. Please check if you have two boot.ini.

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

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by istanbulls » Tue Jul 23, 2019 12:49 am

yes I'm modifying the /boot/boot.ini file. I have no idea where the other boot.ini file is :(

I replace it with "sudo nano"

phaseshifter
Posts: 3506
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: 41 times
Been thanked: 43 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by phaseshifter » Tue Jul 23, 2019 10:07 am

you have ...auto detect enabled yet you 1080p enabled..dont know if that is a hiccup or not,...just a passing thought your forcing 1080p...

Yes i did...just a ...passing thought ..i brezzed over your problem..like i said a passing thought...seems pointless though might not be...
Last edited by phaseshifter on Thu Jul 25, 2019 6:41 pm, edited 1 time in total.
Build It And They Will Come...Be Bold And Mighty Forces Will Come To Your Aid..!!!

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

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by istanbulls » Wed Jul 24, 2019 8:41 pm

phaseshifter wrote:
Tue Jul 23, 2019 10:07 am
you have ...auto detect enabled yet you 1080p enabled..dont know if that is a hiccup or not,...just a passing thought your forcing 1080p...
did you write this article for my problem?

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

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by istanbulls » Sat Aug 10, 2019 12:39 am

tobetter wrote:
Tue Jul 02, 2019 6:48 am
I published one article for someone who may be interesting to install two different OS images into single eMMC. The aim of the article is to explain how to compose two OS images usually installed in eMMC and uSD which does not run with the same performance. Using this way both OS will run in the same performance as much as eMMC supports.

https://medium.com/@tobetter/installing ... pe=initial

Since there are limitations some OS is not able to be composed, what I've tested images are:
1) Ubuntu Mate 18.04 + CoreELEC
2) Debian Stretch + CoreELEC
3) Ubuntu Mate 18.04 + Armbian
4) Debian Stretch + Armbian

Instead of CoreELEC, I think EmuELEC would work since their build farm is the same. Also, please note that as some users reported Armbian needs some change of boot.ini even you made to compose the dual-OS memory card, still you will need to change the same.

Image

Also, since this the trial to publish a use case of Petitboot, please do compose at your own risk. Requesting and helping to me is still available. :)
The Armbian-CoreELEC combination works very nicely when I've installed it on the Micro SD card. Thanks

woodyl
Posts: 18
Joined: Mon Aug 05, 2019 2:04 am
languages_spoken: english
ODROIDs: Odroid N2
Has thanked: 3 times
Been thanked: 0
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by woodyl » Sat Aug 10, 2019 4:23 am

I'm using an HDMI-to-USB converter to boot up the Petitboot menu. This works when I boot up the recovery image with boot.ini edited to have the right video parameters. What do I need to do the actually change the boot.ini image in SPI so that I don't have boot from the SD card with the recovery image?

woodyl
Posts: 18
Joined: Mon Aug 05, 2019 2:04 am
languages_spoken: english
ODROIDs: Odroid N2
Has thanked: 3 times
Been thanked: 0
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by woodyl » Sat Aug 10, 2019 6:26 am

@mad_ady
I'm trying to replicate the process used to boot into Arch Linux on a USB drive. I'm using an SD card in a USB adapter right now, but if I can get it to work, I'm going to install Arch on a USB HDD and boot into that. Right now, I can boot into Arch Linux using the sd card in the sd slot. I copied your boot.ini, changed the UUID to match the one on my ROOTFS and tried to boot. The blue light stays solid and never starts blinking, so I think the boot is failing. Do you have any ideas of what I'm doing wrong?

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

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by mad_ady » Sat Aug 10, 2019 3:05 pm

@woodyl:
1. Have you flashed the latest petitboot image on this thread?
2. Note that it starts in 1080p mode and you won't get a display if it doesn't support 1080p. What resolution is your display and what do you mean by hdmi to usb?
3. Petitboot scans all attached disks and looks for their boot.inis and parses those. You shouldn't need to use a different boot.ini than what your distribution provides. But I doubt petitboot uses the video settings from bootini for itself.

@tobetter: in order to force a resolution on petitboot I suspect one would need to build it, but where should I try to set the resolution? I might try to tinker next week if I find the time,

JrCs
Posts: 1
Joined: Sun Feb 25, 2018 4:15 am
languages_spoken: english
ODROIDs: ODROID-C2
Has thanked: 0
Been thanked: 0
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by JrCs » Sat Aug 10, 2019 8:30 pm

Hi,

i very interested in this project.
Sorry to be off topic but how can we use petitboot on an Odroid-C2 device ?

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

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by mad_ady » Sat Aug 10, 2019 9:01 pm

@JrCS: you can't. In theory you could by adding a spi flash chip via the gpio pins, but on C2 spi is used for ethernet, so it can't boot from it.
You might run petitboot from sd or emmc though, but it needs to be built with C2's uboot/kernel. It might be a way to multiboot on the C2...

woodyl
Posts: 18
Joined: Mon Aug 05, 2019 2:04 am
languages_spoken: english
ODROIDs: Odroid N2
Has thanked: 3 times
Been thanked: 0
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by woodyl » Sat Aug 10, 2019 11:22 pm

@mad_ady
1. I've tried it with both the 20190407 version and the 201906-RC3 version.

2. I tried it on a TV which supports 1080p. I'm also trying to use it with an HDMI-to-VGA adapter which works at 720p.

3. Here's what I think is happening:

Petitboot sees my boot partition on /dev/sda1. I think it parses the boot.ini on the Arch partition but fails for some reason.
Looking at the boot.ini on my Arch installation I see:

Code: Select all

setenv bootargs "root=/dev/mmcblk${devno}p2......
I'm thinking that the boot process is not finding the root partition and that I need to relabel the partitions or use some other directive. If you are successfully booting into Arch, what do you have in the bootargs on your Arch boot partition?

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

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by mad_ady » Sun Aug 11, 2019 3:22 am

Sorry, I'm using ubuntu. But you can experiment with mmcblk0p2 if you're using an emmc or mmcblk1p2 if you're using sd.

karog
Posts: 22
Joined: Fri Oct 09, 2015 3:28 am
languages_spoken: english
ODROIDs: XU4,N2
Has thanked: 0
Been thanked: 1 time
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by karog » Sun Aug 11, 2019 4:54 am

@woodyl That setenv bootargs is where I suggested over on your arch thread to set root=/dev/sda1 as that is your root partition. Did you try that?

That current setting root=/dev/mmcblk${devno}p2 is appropriate for booting from emmc/sd depending on devno 0 for emmc, 1 for sd I think. The p2 is the second partition because those installs have p1 VFAT for /boot and p2 ext4 for /root. I'm guessing the u-boot.bin there cannot read the ext4. But Petitboot can.

woodyl
Posts: 18
Joined: Mon Aug 05, 2019 2:04 am
languages_spoken: english
ODROIDs: Odroid N2
Has thanked: 3 times
Been thanked: 0
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by woodyl » Sun Aug 11, 2019 5:56 am

@karog
Yes, I tried setting root=/dev/sda1. When I tried that, the boot fails. I also tried setting root=UUID={uuid for 2nd partition}.

Code: Select all

setenv bootargs "root=UUID=ba0a5962-ab86-4b38-be31-0302338ab7da .....etc..
When I set the UUID as the bootarg, I get a partial boot. The blue light blinks, indicating that kernel was loaded (I think). I also can see that the odroid is getting far enough along that it connects to DHCP and gets assigned an IP address, which I can ping. But the device never completely boots up to the point where I can SSH in or get anything on the display. The fstab only has 1 entry; it mounts the boot directory.

Code: Select all

/dev/mmcblk1p1  /boot   vfat    defaults        0       0
I tried changing the fstab entry to point to /dev/sda1 or to the UUID for /dev/sda1, but that didn't work either. I feel that pointing boot.ini to the UUID is almost there, but something is failing a little way into the boot. Any suggestions appreciated.

woodyl
Posts: 18
Joined: Mon Aug 05, 2019 2:04 am
languages_spoken: english
ODROIDs: Odroid N2
Has thanked: 3 times
Been thanked: 0
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by woodyl » Sun Aug 11, 2019 6:22 am

Ok, success! I cloned the SD card to a USB hard drive. I changed the bootargs to point root=/dev/sda2. I changed fstab to point to /dev/sda1 for the boot directory. I'm now able to boot into the USB drive from Petiboot. I don't know why it didn't work with the SD card. One difference is that I formatted the the boot partition on the USB drive as ext2. Whatever it is that makes it work, I'm glad to finally get it going!

karog
Posts: 22
Joined: Fri Oct 09, 2015 3:28 am
languages_spoken: english
ODROIDs: XU4,N2
Has thanked: 0
Been thanked: 1 time
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by karog » Sun Aug 11, 2019 7:53 am

@woodyl Nice perseverance. So you did the two partition solution like on the eMMC and sd. Except you formatted the boot partition (first partition) as ext2 rather than VFAT, right? If so, maybe Petitboot does not understand VFAT.

Did you also set Petitboot to auto boot or do you first go into Petitboot and then have to manually boot?

ETA: I still don't understand why you cannot have a single partition. If you had made the boot partition ext4, would it not work? What if the single partition were all ext2? Of course one would rather have root be ext4.

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

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by mad_ady » Sun Aug 11, 2019 11:22 am

Petitboot can read fat. I think it can read ext4 as well and ext2/3 through the ext4 driver. A serial dump might help to identify the problem.

woodyl
Posts: 18
Joined: Mon Aug 05, 2019 2:04 am
languages_spoken: english
ODROIDs: Odroid N2
Has thanked: 3 times
Been thanked: 0
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by woodyl » Mon Aug 12, 2019 1:49 am

karog wrote:
Sun Aug 11, 2019 7:53 am
@woodyl Nice perseverance. So you did the two partition solution like on the eMMC and sd. Except you formatted the boot partition (first partition) as ext2 rather than VFAT, right? If so, maybe Petitboot does not understand VFAT.

Did you also set Petitboot to auto boot or do you first go into Petitboot and then have to manually boot?

ETA: I still don't understand why you cannot have a single partition. If you had made the boot partition ext4, would it not work? What if the single partition were all ext2? Of course one would rather have root be ext4.
I'm sure I could make this work with a single partition, and it would probably work with a single ext4 partition. but I decided to keep the boot partition separate. Some people think there are some minor advantages to doing it that way. For instance, you can probably change out the OS in the root partition without making changes to the boot partition.

Petitboot just looks for boot.ini on the 1st partition it sees, then automatically boots. At least that works well on the RC3 version of Petitboot.

Post Reply

Return to “Projects”

Who is online

Users browsing this forum: No registered users and 0 guests