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

add ESP to boot image? #26

Open
sarnold opened this issue Nov 11, 2023 · 1 comment
Open

add ESP to boot image? #26

sarnold opened this issue Nov 11, 2023 · 1 comment

Comments

@sarnold
Copy link

sarnold commented Nov 11, 2023

If you could add a small ESP to the disk image, then it would be possible to use u-boot(efi) => grub/EFI kernel instead of depending on just the u-boot commands for specific kernel images (eg, bootz or booti). Something like this works nicely:

echo 'label: gpt' | sudo sfdisk ${DISK}
echo -e '16M,512M,U\n,+,\n' | sudo sfdisk ${DISK}

Also, thanks for publishing this!

Edit: 512 MB is apparently the minimum recommended ESP size.

@sarnold
Copy link
Author

sarnold commented Jan 9, 2024

The above is verified working on nanopi-r5c and roc-rk3328-cc booting from mmc and emmc (among others) as documented here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant