Anyone seen this u-boot project?

Post Reply
wallyz21
Posts: 293
Joined: Thu Apr 04, 2019 11:00 am
languages_spoken: english
ODROIDs: N2, N2+
Has thanked: 15 times
Been thanked: 32 times
Contact:

Anyone seen this u-boot project?

Post by wallyz21 »

I like the idea of using GRUB to select kernels during boot and it looks more like mainline Linux (on Intel).

http://rglinuxtech.com/?p=2689
http://rglinuxtech.com/?p=2595

https://gitlab.denx.de/u-boot/u-boot/-/tree/master

This seems to go well with the mainline installer I have working with aarch64. I have been playing with the mainline installer and it does download any mainline kernel and build it and save it to the /boot folder. Except it is not a kernel blob but appears to be the kernel files typically used on an Intel system.

Here is an ls of /boot after using mainline installer to install a new kernel

Code: Select all

root@odroid:~# ls -l /boot
total 170832
-rw-r--r-- 1 root root  9337091 Nov 11 22:02 Image.gz
-rw------- 1 root root  6553541 Nov 10 21:35 System.map-5.9.8-050908-generic
drwxr-xr-x 3 root root     4096 Nov 13 12:22 amlogic
-rw-r--r-- 1 root root   276293 Nov 10 21:35 config-5.9.8-050908-generic
lrwxrwxrwx 1 root root       31 Nov 13 13:33 initrd.img -> initrd.img-5.9.8-050908-generic
-rw-r--r-- 1 root root 11722639 Jul 14 01:33 initrd.img-4.9.230-87
-rw-r--r-- 1 root root 11722581 Jul 14 03:54 initrd.img-4.9.230-88
-rw-r--r-- 1 root root  7877525 Nov 13 12:22 initrd.img-4.9.230-89
-rw-r--r-- 1 root root 11936041 Nov 13 12:22 initrd.img-4.9.236-104
-rw-r--r-- 1 root root 55593586 Nov 13 13:34 initrd.img-5.9.8-050908-generic
lrwxrwxrwx 1 root root       31 Nov 13 13:33 initrd.img.old -> initrd.img-5.9.8-050908-generic
-rw-r--r-- 1 root root 11722703 Jul 14 01:33 uInitrd-4.9.230-87
-rw-r--r-- 1 root root 11722645 Jul 14 03:54 uInitrd-4.9.230-88
-rw-r--r-- 1 root root 11722947 Jul 14 13:36 uInitrd-4.9.230-89
-rw-r--r-- 1 root root 11936105 Nov 13 12:22 uInitrd-4.9.236-104
lrwxrwxrwx 1 root root       28 Nov 13 13:33 vmlinuz -> vmlinuz-5.9.8-050908-generic
-rw------- 1 root root 12773981 Nov 10 21:35 vmlinuz-5.9.8-050908-generic
lrwxrwxrwx 1 root root       28 Nov 13 13:33 vmlinuz.old -> vmlinuz-5.9.8-050908-generic
root@odroid:~# 

So a u-boot that provides a grub sound like the perfect match.

Any thoughts people?
Walter Zambotti
N2 - HK 18.04 Ubuntu Mate Desktop
N2+ - 21.04 Ubuntu Mate Desktop (Panfrost)

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

Re: Anyone seen this u-boot project?

Post by tobetter »

-- MOVED FROM ODROID-XU4 THREADS --
These users thanked the author tobetter for the post:
jonathon (Tue Nov 17, 2020 11:09 pm)

jonathon
Posts: 109
Joined: Fri Oct 30, 2020 4:40 am
languages_spoken: English
ODROIDs: N2+
Has thanked: 33 times
Been thanked: 32 times
Contact:

Re: Anyone seen this u-boot project?

Post by jonathon »

wallyz21 wrote:
Sat Nov 14, 2020 7:31 pm
Any thoughts people?
First thought: How do we build this for the N2/N2+ ?
--
N2+ 4GB - Arch Linux ARM - MATE - Xorg - Kernel 5.11-zen - Desktop use
<sangy>jonathon: big fan, happy to see you back

jonathon
Posts: 109
Joined: Fri Oct 30, 2020 4:40 am
languages_spoken: English
ODROIDs: N2+
Has thanked: 33 times
Been thanked: 32 times
Contact:

Re: Anyone seen this u-boot project?

Post by jonathon »

An updated set of instructions are here: https://gitlab.denx.de/u-boot/u-boot/-/ ... oid-n2.rst

It looks like this still requires some proprietary bits from amlogic - the rest of the build process is straightforward, i.e. u-boot 2020.10 will build without issue on the N2, but there's no way of natively creating a working boot image. It's still possible to cross-compile on an x86 box, but that's not useful for distros which package natively.
--
N2+ 4GB - Arch Linux ARM - MATE - Xorg - Kernel 5.11-zen - Desktop use
<sangy>jonathon: big fan, happy to see you back

User avatar
m_ueberall
Posts: 44
Joined: Thu Jul 23, 2020 6:13 pm
languages_spoken: english, german
ODROIDs: N2+
Location: Hanau, Germany
Has thanked: 46 times
Been thanked: 19 times
Contact:

Re: Anyone seen this u-boot project?

Post by m_ueberall »

jonathon wrote:
Sun Dec 13, 2020 6:10 am
An updated set of instructions are here: https://gitlab.denx.de/u-boot/u-boot/-/ ... oid-n2.rst package natively.
I'm very interested in using Grub on the arm64 platform as well (in combination with an Ubuntu 20.04 Root on ZFS setup), but only began to target this the other day.
In case you've looked at it, could you elaborate on how the above differs from the currently proposed u-boot package update for Ubuntu Focal which also contains a u-boot-amlogic_2020.10+dfsg-1ubuntu0~20.04.1_arm64.deb?

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

Re: Anyone seen this u-boot project?

Post by tobetter »

m_ueberall wrote:
Mon Dec 21, 2020 6:11 pm
jonathon wrote:
Sun Dec 13, 2020 6:10 am
An updated set of instructions are here: https://gitlab.denx.de/u-boot/u-boot/-/ ... oid-n2.rst package natively.
I'm very interested in using Grub on the arm64 platform as well (in combination with an Ubuntu 20.04 Root on ZFS setup), but only began to target this the other day.
In case you've looked at it, could you elaborate on how the above differs from the currently proposed u-boot package update for Ubuntu Focal which also contains a u-boot-amlogic_2020.10+dfsg-1ubuntu0~20.04.1_arm64.deb?
I know what's Grub and I also use it everyday...but...yes, I don't customize it very often.
Out of curiosity, what's the advantage to use Grub on ARM64 system?

User avatar
m_ueberall
Posts: 44
Joined: Thu Jul 23, 2020 6:13 pm
languages_spoken: english, german
ODROIDs: N2+
Location: Hanau, Germany
Has thanked: 46 times
Been thanked: 19 times
Contact:

Re: Anyone seen this u-boot project?

Post by m_ueberall »

tobetter wrote:
Mon Dec 21, 2020 7:15 pm
m_ueberall wrote:
Mon Dec 21, 2020 6:11 pm
jonathon wrote:
Sun Dec 13, 2020 6:10 am
An updated set of instructions are here: https://gitlab.denx.de/u-boot/u-boot/-/ ... oid-n2.rst package natively.
I'm very interested in using Grub on the arm64 platform as well (in combination with an Ubuntu 20.04 Root on ZFS setup), but only began to target this the other day.
In case you've looked at it, could you elaborate on how the above differs from the currently proposed u-boot package update for Ubuntu Focal which also contains a u-boot-amlogic_2020.10+dfsg-1ubuntu0~20.04.1_arm64.deb?
I know what's Grub and I also use it everyday...but...yes, I don't customize it very often.
Out of curiosity, what's the advantage to use Grub on ARM64 system?
With respect to the above (and apart from the advantage of having a "unified boot menu"/the same boot menu known to the majority of AMD64 users): Grub has (limited) ZFS ZPool support which should allow to re-use existing How-tos (like the one I referenced above)/installation procedures without changes. There's an article series by Didier Roche detailing how Ubuntu supports ZFS by means of their ZSys daemon and client for ZFS systems – now installed by default – which also provides boot enhancements tied to Grub.
These users thanked the author m_ueberall for the post:
tobetter (Mon Dec 21, 2020 7:40 pm)

jonathon
Posts: 109
Joined: Fri Oct 30, 2020 4:40 am
languages_spoken: English
ODROIDs: N2+
Has thanked: 33 times
Been thanked: 32 times
Contact:

Re: Anyone seen this u-boot project?

Post by jonathon »

m_ueberall wrote:
Mon Dec 21, 2020 6:11 pm
could you elaborate on how the above differs from the currently proposed u-boot package update for Ubuntu Focal
Sure. The one in the Ubuntu repositories does not support the N2. ;)
--
N2+ 4GB - Arch Linux ARM - MATE - Xorg - Kernel 5.11-zen - Desktop use
<sangy>jonathon: big fan, happy to see you back

jonathon
Posts: 109
Joined: Fri Oct 30, 2020 4:40 am
languages_spoken: English
ODROIDs: N2+
Has thanked: 33 times
Been thanked: 32 times
Contact:

Re: Anyone seen this u-boot project?

Post by jonathon »

tobetter wrote:
Mon Dec 21, 2020 7:15 pm
Out of curiosity, what's the advantage to use Grub on ARM64 system?
No need for platform-specific kernel preparation - they can all use the same initramfs setup as x86, and that also brings in support for having multiple kernels available at boot time (e.g. you could have 4.9, 5.4, and 5.10 all available for booting from the GRUB menu).
--
N2+ 4GB - Arch Linux ARM - MATE - Xorg - Kernel 5.11-zen - Desktop use
<sangy>jonathon: big fan, happy to see you back

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

Re: Anyone seen this u-boot project?

Post by tobetter »

jonathon wrote:
Tue Dec 22, 2020 3:52 am
tobetter wrote:
Mon Dec 21, 2020 7:15 pm
Out of curiosity, what's the advantage to use Grub on ARM64 system?
No need for platform-specific kernel preparation - they can all use the same initramfs setup as x86, and that also brings in support for having multiple kernels available at boot time (e.g. you could have 4.9, 5.4, and 5.10 all available for booting from the GRUB menu).
If one needs a method to select a kernel version from multiple versions in /boot partition on booting, the Petitboot on ODROID-N2 can help this out. And this would be a bit more easier for some advanced user who is familiar to change grub.cfg to change the kernel parameter. This must be a bit easier than updating boot.ini or boot.scr, IMO.
IMG_20201222_0411238.jpg
IMG_20201222_0411238.jpg (163 KiB) Viewed 1472 times
The picture shows the kernel version installed in /boot partition, but the latest Petitboot still does not boot with them yet since I have not finished the change and still I am thinking what's the best way to manage the device tree and kernel parameters that is not supported by the official Grub package.

Maybe I am wrong, one my doubt is how the device tree can be dramatically supported although I prefer to go for Grub if supported. :)

The text from @m_ueberall is a bit complicated since I am not familiar with ZFS enough, but that's quite interesting topic.
These users thanked the author tobetter for the post (total 2):
m_ueberall (Tue Dec 22, 2020 7:43 pm) • istanbulls (Tue Dec 22, 2020 7:55 pm)

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

Re: Anyone seen this u-boot project?

Post by mad_ady »

Kernel selection from petitboot does look sweet! Congratulations!

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

Re: Anyone seen this u-boot project?

Post by tobetter »

mad_ady wrote:
Tue Dec 22, 2020 5:00 am
Kernel selection from petitboot does look sweet! Congratulations!
Thanks, but it's not supported yet. I am still learning...what to do and hearing people. LoL
These users thanked the author tobetter for the post:
istanbulls (Tue Dec 22, 2020 7:55 pm)

User avatar
m_ueberall
Posts: 44
Joined: Thu Jul 23, 2020 6:13 pm
languages_spoken: english, german
ODROIDs: N2+
Location: Hanau, Germany
Has thanked: 46 times
Been thanked: 19 times
Contact:

Re: Anyone seen this u-boot project?

Post by m_ueberall »

tobetter wrote:
Tue Dec 22, 2020 4:20 am
IMG_20201222_0411238.jpg
The picture shows the kernel version installed in /boot partition, but the latest Petitboot still does not boot with them yet since I have not finished the change and still I am thinking what's the best way to manage the device tree and kernel parameters that is not supported by the official Grub package.

Maybe I am wrong, one my doubt is how the device tree can be dramatically supported although I prefer to go for Grub if supported. :)
I'd love to play with that once it's usable! :mrgreen:
IIRC, Grub should not parse/filter "unknown" kernel parameters and newer Grub releases for Debian/Ubuntu already have a devicetree command. If additional kernel parameters are needed, they might initially be placed into GRUB_CMDLINE_LINUX (usually defined in /etc/default/grub). OTOH, Grub has a built-in scripting language as well, so both definitions and conditionals found in boot.scr (defined in /usr/share/flash-kernel/ubootenv.d/.../...) like setenv bootargs "${bootargs} ds=nocloud;seedfrom=${prefix}cloud-init.yaml" should be "convertible" by e.g. placing them into /etc/grub.d/NN-custom_odroid_MODEL.

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

Re: Anyone seen this u-boot project?

Post by tobetter »

m_ueberall wrote:
Tue Dec 22, 2020 8:54 pm
tobetter wrote:
Tue Dec 22, 2020 4:20 am
IMG_20201222_0411238.jpg
The picture shows the kernel version installed in /boot partition, but the latest Petitboot still does not boot with them yet since I have not finished the change and still I am thinking what's the best way to manage the device tree and kernel parameters that is not supported by the official Grub package.

Maybe I am wrong, one my doubt is how the device tree can be dramatically supported although I prefer to go for Grub if supported. :)
I'd love to play with that once it's usable! :mrgreen:
IIRC, Grub should not parse/filter "unknown" kernel parameters and newer Grub releases for Debian/Ubuntu already have a devicetree command. If additional kernel parameters are needed, they might initially be placed into GRUB_CMDLINE_LINUX (usually defined in /etc/default/grub). OTOH, Grub has a built-in scripting language as well, so both definitions and conditionals found in boot.scr (defined in /usr/share/flash-kernel/ubootenv.d/.../...) like setenv bootargs "${bootargs} ds=nocloud;seedfrom=${prefix}cloud-init.yaml" should be "convertible" by e.g. placing them into /etc/grub.d/NN-custom_odroid_MODEL.
Thanks, I would share the Petitboot sometime soon and you can advice me.

For devicetree, I knew recent Grub has the command "devicetree" which I patched to the Petitboot. But Grub discovers more kernel from the storage attached and add to grub.cfg and the Petitboot shows all. So one can select the boot entry which cannot boot since missing device tree file or initrd. This makes me add more change to drop the boot entry when any of such files is missing in the grub.cfg. Currently, I am seeing the default kernel parameter which is not given by Grub but needs for the mainline kernel...so..I am thinking of packaging the Grub for ODROID.... :)

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

Re: Anyone seen this u-boot project?

Post by tobetter »

tobetter wrote:
Tue Dec 22, 2020 9:10 pm
m_ueberall wrote:
Tue Dec 22, 2020 8:54 pm
tobetter wrote:
Tue Dec 22, 2020 4:20 am
IMG_20201222_0411238.jpg
The picture shows the kernel version installed in /boot partition, but the latest Petitboot still does not boot with them yet since I have not finished the change and still I am thinking what's the best way to manage the device tree and kernel parameters that is not supported by the official Grub package.

Maybe I am wrong, one my doubt is how the device tree can be dramatically supported although I prefer to go for Grub if supported. :)
I'd love to play with that once it's usable! :mrgreen:
IIRC, Grub should not parse/filter "unknown" kernel parameters and newer Grub releases for Debian/Ubuntu already have a devicetree command. If additional kernel parameters are needed, they might initially be placed into GRUB_CMDLINE_LINUX (usually defined in /etc/default/grub). OTOH, Grub has a built-in scripting language as well, so both definitions and conditionals found in boot.scr (defined in /usr/share/flash-kernel/ubootenv.d/.../...) like setenv bootargs "${bootargs} ds=nocloud;seedfrom=${prefix}cloud-init.yaml" should be "convertible" by e.g. placing them into /etc/grub.d/NN-custom_odroid_MODEL.
Thanks, I would share the Petitboot sometime soon and you can advice me.

For devicetree, I knew recent Grub has the command "devicetree" which I patched to the Petitboot. But Grub discovers more kernel from the storage attached and add to grub.cfg and the Petitboot shows all. So one can select the boot entry which cannot boot since missing device tree file or initrd. This makes me add more change to drop the boot entry when any of such files is missing in the grub.cfg. Currently, I am seeing the default kernel parameter which is not given by Grub but needs for the mainline kernel...so..I am thinking of packaging the Grub for ODROID.... :)
I've uploaded new Petitboot which can manage /boot/grub.cfg to show up the Linux kernels installed. Please refer to the link, viewtopic.php?p=315967#p315967.

The default kernel configuration is in /etc/default/grub and this file is created by the package odroid-grub2 if not exist. Please try if you have a chance and advice me. :)

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

Re: Anyone seen this u-boot project?

Post by tobetter »

@wallyz21, I am really sorry to post the topic something different from the subject.

User avatar
m_ueberall
Posts: 44
Joined: Thu Jul 23, 2020 6:13 pm
languages_spoken: english, german
ODROIDs: N2+
Location: Hanau, Germany
Has thanked: 46 times
Been thanked: 19 times
Contact:

Re: Anyone seen this u-boot project?

Post by m_ueberall »

tobetter wrote:
Thu Dec 24, 2020 12:12 am
I've uploaded new Petitboot which can manage /boot/grub.cfg to show up the Linux kernels installed. Please refer to the link, viewtopic.php?p=315967#p315967.

The default kernel configuration is in /etc/default/grub and this file is created by the package odroid-grub2 if not exist. Please try if you have a chance and advice me. :)
This works great! As long as you use an ext2 partition instead of the mentioned ZFS "bpool" (as detailed in this howto), it should even allow for an encrypted "Root on ZFS" configuration.
I will certainly give this a try (while trying to get a current U-Boot version to work with Grub in parallel which… will require more time) — Thanks a lot, @tobetter! :D

Image

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

Re: Anyone seen this u-boot project?

Post by tobetter »

m_ueberall wrote:
Thu Dec 24, 2020 5:10 am
tobetter wrote:
Thu Dec 24, 2020 12:12 am
I've uploaded new Petitboot which can manage /boot/grub.cfg to show up the Linux kernels installed. Please refer to the link, viewtopic.php?p=315967#p315967.

The default kernel configuration is in /etc/default/grub and this file is created by the package odroid-grub2 if not exist. Please try if you have a chance and advice me. :)
This works great! As long as you use an ext2 partition instead of the mentioned ZFS "bpool" (as detailed in this howto), it should even allow for an encrypted "Root on ZFS" configuration.
I will certainly give this a try (while trying to get a current U-Boot version to work with Grub in parallel which… will require more time) — Thanks a lot, @tobetter! :D

Image
Thank you for updating....and glad see it works. Should we open a new thread regarding to Grub support? Small concern of mine is this thread is not about Grub but new upstream U-boot while the Grub support of mine is not U-boot. For ZFS support, the Linux kernel for the Petitboot is based on HK 4.9 kernel and ZFS is not supported. So Root on ZFS would not be possible, but having encrypted root file system is also interesting personally as well. Let me go through the pages. :)
These users thanked the author tobetter for the post:
superpowter77 (Thu Dec 24, 2020 1:07 pm)

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

Re: Anyone seen this u-boot project?

Post by mad_ady »

Encrypted root and zfs-rootfs should still work if you have an unencrypted extfs /boot partition.

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

Re: Anyone seen this u-boot project?

Post by tobetter »

Sorry for saying about GRUB2 here, not about U-boot.

I've been using GRUB2 on my working N2Plus and HC4, I am very satisified to use GRUB2 with them. The scope of using GRUB2 is only for switching between multiple kernel versions, this makes me debug kernel and no huddle to change the boot.ini or copy new kernel image. Even when kernel booting is failed, I was able to boot again with another kernel or from the recovery mode. I would keep using this. :)

User avatar
m_ueberall
Posts: 44
Joined: Thu Jul 23, 2020 6:13 pm
languages_spoken: english, german
ODROIDs: N2+
Location: Hanau, Germany
Has thanked: 46 times
Been thanked: 19 times
Contact:

Re: Anyone seen this u-boot project?

Post by m_ueberall »

tobetter wrote:
Tue Jan 05, 2021 10:01 am
Sorry for saying about GRUB2 here, not about U-boot.
I've been using GRUB2 on my working N2Plus and HC4, I am very satisified to use GRUB2 with them. […]
So… is there a how-to/wiki page somewhere explaining how to access GRUB2—especially on the N2(Plus)—either directly from U-Boot or via Petitboot? :D

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

Re: Anyone seen this u-boot project?

Post by tobetter »

m_ueberall wrote:
Tue Jan 05, 2021 6:52 pm
tobetter wrote:
Tue Jan 05, 2021 10:01 am
Sorry for saying about GRUB2 here, not about U-boot.
I've been using GRUB2 on my working N2Plus and HC4, I am very satisified to use GRUB2 with them. […]
So… is there a how-to/wiki page somewhere explaining how to access GRUB2—especially on the N2(Plus)—either directly from U-Boot or via Petitboot? :D
U-boot is not, but the Petitboot can read '/boot/grub/grub.cfg'.
The instruction to create the grub configuration is not N2 specific and you already tried to generate the grub configuration. Is there anything missing? :?:

User avatar
m_ueberall
Posts: 44
Joined: Thu Jul 23, 2020 6:13 pm
languages_spoken: english, german
ODROIDs: N2+
Location: Hanau, Germany
Has thanked: 46 times
Been thanked: 19 times
Contact:

Re: Anyone seen this u-boot project?

Post by m_ueberall »

tobetter wrote:
Tue Jan 05, 2021 6:59 pm
m_ueberall wrote:
Tue Jan 05, 2021 6:52 pm
tobetter wrote:
Tue Jan 05, 2021 10:01 am
Sorry for saying about GRUB2 here, not about U-boot.
I've been using GRUB2 on my working N2Plus and HC4, I am very satisified to use GRUB2 with them. […]
So… is there a how-to/wiki page somewhere explaining how to access GRUB2—especially on the N2(Plus)—either directly from U-Boot or via Petitboot? :D
U-boot is not, but the Petitboot can read '/boot/grub/grub.cfg'.
The instruction to create the grub configuration is not N2 specific and you already tried to generate the grub configuration. Is there anything missing? :?:
I haven't checked yet whether Petitboot will parse/adhere to GRUB_DEFAULT and GRUB_TIMEOUT (cf. https://www.gnu.org/software/grub/manua ... ation.html) which I'd like to see, but the above question brings me back to my previous post--GRUB can access Zpools (which according to an article I've seen some months ago in a German magazine U-boot should also be able to do?) out-of-the-box, so you can basically use exactly the same configuration (a "bpool" containing all vmlinuz/initrd images) as on AMD64/I386 systems.

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

Re: Anyone seen this u-boot project?

Post by tobetter »

m_ueberall wrote:
Tue Jan 05, 2021 8:23 pm
tobetter wrote:
Tue Jan 05, 2021 6:59 pm
m_ueberall wrote:
Tue Jan 05, 2021 6:52 pm
tobetter wrote:
Tue Jan 05, 2021 10:01 am
Sorry for saying about GRUB2 here, not about U-boot.
I've been using GRUB2 on my working N2Plus and HC4, I am very satisified to use GRUB2 with them. […]
So… is there a how-to/wiki page somewhere explaining how to access GRUB2—especially on the N2(Plus)—either directly from U-Boot or via Petitboot? :D
U-boot is not, but the Petitboot can read '/boot/grub/grub.cfg'.
The instruction to create the grub configuration is not N2 specific and you already tried to generate the grub configuration. Is there anything missing? :?:
I haven't checked yet whether Petitboot will parse/adhere to GRUB_DEFAULT and GRUB_TIMEOUT (cf. https://www.gnu.org/software/grub/manua ... ation.html) which I'd like to see, but the above question brings me back to my previous post--GRUB can access Zpools (which according to an article I've seen some months ago in a German magazine U-boot should also be able to do?) out-of-the-box, so you can basically use exactly the same configuration (a "bpool" containing all vmlinuz/initrd images) as on AMD64/I386 systems.
Good point. GRUB with the Petitboot would not support full features but it would only manage the boot kernels in the screen. Since the Petitboot itself already has the timeout or boot priority, the same feature in GRUB would be ignored...I guess. For users who need to manage multiple kernels, GRUB with the Petitboot would be easiest way at the moment.
I am also a bit interesting to encrypt the rootfs with zpools I would try later once a bug of the Petitboot is resolved and will see if the space of SPI flash memory allows to have more blobs for ZPOOOL. :)

Post Reply

Return to “General Topics”

Who is online

Users browsing this forum: No registered users and 2 guests