Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to extlinux.conf #571

Open
Shatur opened this issue Aug 1, 2023 · 6 comments
Open

Switch to extlinux.conf #571

Shatur opened this issue Aug 1, 2023 · 6 comments
Labels
enhancement New feature or request

Comments

@Shatur
Copy link
Contributor

Shatur commented Aug 1, 2023

Recently megi released rk2aw with patched U-Boot builds
This bootloaders have many benefits (especially for PPP), but looks like patched U-Boot uses extlinux.conf while boot.scr. I would suggest to migrate to simplify setup for users.
I tried creating boot/extlinux/extlinux.conf with the following content:

MENU TITLE Pinephone Pro Boot Menu
MENU BACKGROUND /splash.bmp

LABEL emmc
        MENU LABEL eMMC - Arch Linux
        FDT /dtbs/rockchip/rk3399-pinephone-pro.dtb
        KERNEL /Image.gz
        INITRD /initramfs-linux.img
        APPEND loglevel=4 console=ttyS2,115200 console=tty0 root=/dev/mmcblk2p2 rw rootwait fbcon=rotate:1 pinephone_keyboard.disable_input

But it doesn't work for some reason... The issue was on U-Boot side, now creating this file and /boot/splash.bmp is enough.

Edit: Megi added support for CONFIG_CMD_UNZIP, so boot.scr can also be loaded without any configuration. But you can't set a nice label and put a background this way.

@Shatur
Copy link
Contributor Author

Shatur commented Aug 2, 2023

Talked with megi, the issue were on the U-Boot side. And switching to extlinux.conf is not necessary, it should work with boot.scr too.
I tried the updated version from https://megous.com/dl/tmp/ppp.tar.zst and the phone, removed extlinux.conf and now I how the output:
изображение

But still unable to boot. First item just boots me into console.

@Shatur
Copy link
Contributor Author

Shatur commented Aug 2, 2023

@Danct12 I think extlinux.conf is way better and simpler way configure the system. I would suggest to migrate to it.

@Shatur
Copy link
Contributor Author

Shatur commented Aug 2, 2023

I talked with danct and looks like we can't because we need dynamically identify a boot device on boot up and it's impossible from extlinux.conf.

boot.scr doesn't work because we megi's builds missing CONFIG_CMD_UNZIP enabled. We could enable it.

@Shatur Shatur closed this as completed Aug 2, 2023
@Shatur
Copy link
Contributor Author

Shatur commented Aug 3, 2023

I talked with megi and he enabled CONFIG_CMD_UNZIP. So now it boots without configuration.

@Shatur
Copy link
Contributor Author

Shatur commented Aug 3, 2023

But it will look like this: #571 (comment).
With extlinux.conf I can set label and background. So I would consider migration to extlinux.conf. Maybe we could generate it or let user choose correct one from the menu?

For example, here is my setup:
изображение

@oklopfer
Copy link

oklopfer commented Aug 11, 2023

An easy way to provide this in a package is by using the Mobian team's fork of u-boot-menu for a PKGBUILD.

@Danct12 Danct12 added the enhancement New feature or request label Sep 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants