Re: Error when using './boards/x86/common/scripts/build_grub.sh x86_64' on Clear Linux
Quick update following some more testing I did. I hit the same "packed-not-aligned" issue on Fedora 29. I applied the same fix and subsequently hit another issue (see error below), which got resolved by cherry-picking another commit from Grub2 that's in their master but not in 2.02. Here is the diff that allowed be to build the GRUB2 boot loader image (not tested yet on real hardware):
[gvancuts@geoffroy-nuc-fedora zephyr]$ git diff diff --git a/boards/x86/common/scripts/build_grub.sh b/boards/x86/common/scripts/build_grub.sh index 8b628ab809..7247a904c2 100755 --- a/boards/x86/common/scripts/build_grub.sh +++ b/boards/x86/common/scripts/build_grub.sh @@ -23,6 +23,8 @@ prepare() { pushd src git checkout grub-2.02 git cherry-pick c36c2a86404f373100775305f532c09d46f3c6ce + git cherry-pick 563b1da6e6ae7af46cc8354cadb5dab416989f0a + git cherry-pick 842c390469e2c2e10b5aa36700324cd3bde25875 git clean -fdx popd }
Should I submit this to Zephyr (as a PR)?
Thanks, Geoffroy
* Second error after cherry-picking the fix for "packed-not-aligned": <snip> make[2]: Entering directory '/home/gvancuts/work/zephyrproject/zephyr/boards/x86/common/scripts/grub/src/util/bash-completion.d' ../../config.status --file=grub:grub-completion.bash.in config.status: creating grub make[2]: Leaving directory '/home/gvancuts/work/zephyrproject/zephyr/boards/x86/common/scripts/grub/src/util/bash-completion.d' make[1]: Leaving directory '/home/gvancuts/work/zephyrproject/zephyr/boards/x86/common/scripts/grub/src' ./grub-mkimage: error: relocation 0x4 is not implemented yet.
From: devel@... [mailto:devel@...]
On Behalf Of Geoffroy Van Cutsem
Sent: Monday, March 11, 2019 4:42 PM To: devel@... Subject: [Zephyr-devel] Error when using './boards/x86/common/scripts/build_grub.sh x86_64' on Clear Linux
Hi folks,
|
|