aarch64: relocation 0x105 is not implemented yet.
I tried to build RPM for aarch64; it fails building image with
[ 1273s] + ./grub-mkimage -O arm64-efi -o grub.efi --prefix= -d grub-core all_video boot cat chain configfile echo efinet font gfxmenu gfxterm gzio halt iso9660 jpeg minicmd normal part_apple part_msdos part_gpt password_pbkdf2 png reboot search search_fs_uuid search_fs_file search_label sleep test video fat loadenv linux ext2 btrfs ext2 xfs jfs reiserfs efinet tftp mdraid09 mdraid1x lvm
[ 1273s] ./grub-mkimage: error: relocation 0x105 is not implemented yet.
Tools are
gcc48-4.8.2+r203692-2.1
binutils-2.24-1.1
This is native build, no cross.
[ 420s] checking build system type... aarch64-unknown-linux-gnu [ 420s] checking host system type... aarch64-unknown-linux-gnu [ 420s] checking target system type... aarch64-suse-linux-gnu
I do not have access to build system itself (OBS) only logs are available.
Quoted 10 lines · Andrey Borzenkov
I tried to build RPM for aarch64; it fails building image with
[ 1273s] + ./grub-mkimage -O arm64-efi -o grub.efi --prefix= -d grub-core
all_videoboot cat chain configfile echo efinet font gfxmenu gfxterm gzio halt iso9660 jpeg minicmd normalpart_applepart_msdospart_gptpassword_pbkdf2png reboot searchsearch_fs_uuidsearch_fs_filesearch_labelsleep test video fat loadenv linux ext2 btrfs ext2 xfs jfs reiserfs efinet tftp mdraid09 mdraid1x lvm
[ 1273s] ./grub-mkimage: error: relocation0x105is not implemented yet.
This shouldn't happen as those relocation assume 32-bit range. Is -mcmodel=large properly passed?
Quoted 21 lines
Tools are
gcc48-4.8.2+r203692-2.1
binutils-2.24-1.1This is native build, no cross.
[ 420s] checking build system type... aarch64-unknown-linux-gnu [ 420s] checking host system type... aarch64-unknown-linux-gnu [ 420s] checking target system type... aarch64-suse-linux-gnuI do not have access to build system itself (OBS) only logs are available.
_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel
В Сб, 28/12/2013 в 18:11 +0100, Vladimir 'φ-coder/phcoder' Serbinenko пишет:
Quoted 11 lines · Andrey Borzenkov
Quoted 10 lines
I tried to build RPM for aarch64; it fails building image with
[ 1273s] + ./grub-mkimage -O arm64-efi -o grub.efi --prefix= -d grub-core
all_videoboot cat chain configfile echo efinet font gfxmenu gfxterm gzio halt iso9660 jpeg minicmd normalpart_applepart_msdospart_gptpassword_pbkdf2png reboot searchsearch_fs_uuidsearch_fs_filesearch_labelsleep test video fat loadenv linux ext2 btrfs ext2 xfs jfs reiserfs efinet tftp mdraid09 mdraid1x lvm
[ 1273s] ./grub-mkimage: error: relocation0x105is not implemented yet.
Quoted 2 lines
This shouldn't happen as those relocation assume 32-bit range. Is -mcmodel=large properly passed?
Looks like some files are compiled without it
[ 992s] gcc -DHAVE_CONFIG_H -I. -I../../grub-core -I.. -Wall -W -I../../include -I../include -DGRUB_MACHINE_EFI=1 -DGRUB_MACHINE=ARM64_EFI -nostdinc
-isystem /usr/lib64/gcc/aarch64-suse-linux/4.8/include -DGRUB_FILE= \"lib/setjmp.S\" -I. -I../../grub-core -I.. -I../.. -I../../include
-I../include -I../../grub-core/lib/libgcrypt-grub/src/ -g
-DGRUB_FILE=\"lib/setjmp.S\" -I. -I../../grub-core -I.. -I../.. -I../../include -I../include -I../../grub-core/lib/libgcrypt-grub/src/
-DASM_FILE=1 -fno-strict-aliasing -fno-inline-functions-called-once
-MT lib/setjmp_module-setjmp.o -MD -MP -MF lib/.deps-core/setjmp_module-setjmp.Tpo -c -o lib/setjmp_module-setjmp.o test -f 'lib/setjmp.S' || echo '../../grub-core/'lib/setjmp.S
[ 1161s] gcc -DHAVE_CONFIG_H -I. -I../../grub-core -I.. -Wall -W -I../../include -I../include -DGRUB_MACHINE_EFI=1 -DGRUB_MACHINE=ARM64_EFI -nostdinc
-isystem /usr/lib64/gcc/aarch64-suse-linux/4.8/include -DGRUB_FILE= \"kern/arm64/efi/startup.S\" -I. -I../../grub-core -I.. -I../.. -I../../include -I../include -I../../grub-core/lib/libgcrypt-grub/src/
-DGRUB_KERNEL=1 -g -DGRUB_FILE=\"kern/arm64/efi/startup.S\" -I.
-I../../grub-core -I.. -I../.. -I../../include -I../include -I../../grub-core/lib/libgcrypt-grub/src/ -DASM_FILE=1 -fno-strict-aliasing -fno-inline-functions-called-once -MT kern/arm64/efi/kernel_exec-startup.o -MD -MP -MF kern/arm64/efi/.deps-core/kernel_exec-startup.Tpo -c -o kern/arm64/efi/kernel_exec-startup.o test -f 'kern/arm64/efi/startup.S' || echo '../../grub-core/'kern/arm64/efi/startup.S
[ 1163s] gcc -DHAVE_CONFIG_H -I. -I../../grub-core -I.. -Wall -W -I../../include -I../include -DGRUB_MACHINE_EFI=1 -DGRUB_MACHINE=ARM64_EFI -nostdinc
-isystem /usr/lib64/gcc/aarch64-suse-linux/4.8/include -DGRUB_FILE= \"kern/arm64/cache_flush.S\" -I. -I../../grub-core -I.. -I../.. -I../../include -I../include -I../../grub-core/lib/libgcrypt-grub/src/
-DGRUB_KERNEL=1 -g -DGRUB_FILE=\"kern/arm64/cache_flush.S\" -I.
-I../../grub-core -I.. -I../.. -I../../include -I../include -I../../grub-core/lib/libgcrypt-grub/src/ -DASM_FILE=1 -fno-strict-aliasing -fno-inline-functions-called-once -MT kern/arm64/kernel_exec-cache_flush.o -MD -MP -MF kern/arm64/.deps-core/kernel_exec-cache_flush.Tpo -c -o kern/arm64/kernel_exec-cache_flush.o test -f 'kern/arm64/cache_flush.S' || echo '../../grub-core/'kern/arm64/cache_flush.S
Quoted 27 lines
Quoted 12 lines
Tools are
gcc48-4.8.2+r203692-2.1
binutils-2.24-1.1This is native build, no cross.
[ 420s] checking build system type... aarch64-unknown-linux-gnu [ 420s] checking host system type... aarch64-unknown-linux-gnu [ 420s] checking target system type... aarch64-suse-linux-gnuQuoted 9 lines
I do not have access to build system itself (OBS) only logs are available.
_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel
В Сб, 28/12/2013 в 21:48 +0400, Andrey Borzenkov пишет:
Quoted 56 lines
В Сб, 28/12/2013 в 18:11 +0100, Vladimir 'φ-coder/phcoder' Serbinenko пишет:
Quoted 11 lines · Andrey Borzenkov
Quoted 10 lines
I tried to build RPM for aarch64; it fails building image with
[ 1273s] + ./grub-mkimage -O arm64-efi -o grub.efi --prefix= -d grub-core
all_videoboot cat chain configfile echo efinet font gfxmenu gfxterm gzio halt iso9660 jpeg minicmd normalpart_applepart_msdospart_gptpassword_pbkdf2png reboot searchsearch_fs_uuidsearch_fs_filesearch_labelsleep test video fat loadenv linux ext2 btrfs ext2 xfs jfs reiserfs efinet tftp mdraid09 mdraid1x lvm
[ 1273s] ./grub-mkimage: error: relocation0x105is not implemented yet.Quoted 2 lines
This shouldn't happen as those relocation assume 32-bit range. Is -mcmodel=large properly passed?
Looks like some files are compiled without it
[ 992s] gcc -DHAVE_CONFIG_H -I. -I../../grub-core -I.. -Wall -W
(quoted diff) +0
-3-I../../include -I../include -DGRUB_MACHINE_EFI=1 -DGRUB_MACHINE=ARM64_EFI -nostdinc -isystem /usr/lib64/gcc/aarch64-suse-linux/4.8/include -DGRUB_FILE=\"lib/setjmp.S\" -I. -I../../grub-core -I.. -I../.. -I../../include
(quoted diff) +0
-5-I../include -I../../grub-core/lib/libgcrypt-grub/src/ -g -DGRUB_FILE=\"lib/setjmp.S\" -I. -I../../grub-core -I.. -I../.. -I../../include -I../include -I../../grub-core/lib/libgcrypt-grub/src/ -DASM_FILE=1 -fno-strict-aliasing -fno-inline-functions-called-once -MT lib/setjmp_module-setjmp.o -MD -MP -MF
lib/.deps-core/setjmp_module-setjmp.Tpo-c -olib/setjmp_module-setjmp.otest -f 'lib/setjmp.S' || echo '../../grub-core/'lib/setjmp.S[ 1161s] gcc -DHAVE_CONFIG_H -I. -I../../grub-core -I.. -Wall -W
(quoted diff) +0
-3-I../../include -I../include -DGRUB_MACHINE_EFI=1 -DGRUB_MACHINE=ARM64_EFI -nostdinc -isystem /usr/lib64/gcc/aarch64-suse-linux/4.8/include -DGRUB_FILE=\"kern/arm64/efi/startup.S\" -I. -I../../grub-core -I.. -I../..
(quoted diff) +0
-5-I../../include -I../include -I../../grub-core/lib/libgcrypt-grub/src/ -DGRUB_KERNEL=1 -g -DGRUB_FILE=\"kern/arm64/efi/startup.S\" -I. -I../../grub-core -I.. -I../.. -I../../include -I../include -I../../grub-core/lib/libgcrypt-grub/src/ -DASM_FILE=1 -fno-strict-aliasing -fno-inline-functions-called-once -MT
kern/arm64/efi/kernel_exec-startup.o-MD -MP -MF kern/arm64/efi/.deps-core/kernel_exec-startup.Tpo -c -okern/arm64/efi/kernel_exec-startup.otest -f 'kern/arm64/efi/startup.S' || echo '../../grub-core/'kern/arm64/efi/startup.S[ 1163s] gcc -DHAVE_CONFIG_H -I. -I../../grub-core -I.. -Wall -W
(quoted diff) +0
-3-I../../include -I../include -DGRUB_MACHINE_EFI=1 -DGRUB_MACHINE=ARM64_EFI -nostdinc -isystem /usr/lib64/gcc/aarch64-suse-linux/4.8/include -DGRUB_FILE=\"kern/arm64/cache_flush.S\" -I. -I../../grub-core -I.. -I../..
(quoted diff) +0
-5-I../../include -I../include -I../../grub-core/lib/libgcrypt-grub/src/ -DGRUB_KERNEL=1 -g -DGRUB_FILE=\"kern/arm64/cache_flush.S\" -I. -I../../grub-core -I.. -I../.. -I../../include -I../include -I../../grub-core/lib/libgcrypt-grub/src/ -DASM_FILE=1 -fno-strict-aliasing -fno-inline-functions-called-once -MT
Quoted 6 lines
kern/arm64/kernel_exec-cache_flush.o-MD -MP -MF kern/arm64/.deps-core/kernel_exec-cache_flush.Tpo -c -okern/arm64/kernel_exec-cache_flush.otest -f 'kern/arm64/cache_flush.S' || echo '../../grub-core/'kern/arm64/cache_flush.S
Still the same even after adding -mcmodel=large to CCASFLAGS. Is it possible that compiler generates small relocation where appropriate even with -mcmodel=large?
Hi Andrey,
Quoted 53 lines · Andrey Borzenkov
Quoted 53 lines
Quoted 11 lines · Andrey Borzenkov
Quoted 10 lines
I tried to build RPM for aarch64; it fails building image with
[ 1273s] + ./grub-mkimage -O arm64-efi -o grub.efi --prefix= -d grub-core
all_videoboot cat chain configfile echo efinet font gfxmenu gfxterm gzio halt iso9660 jpeg minicmd normalpart_applepart_msdospart_gptpassword_pbkdf2png reboot searchsearch_fs_uuidsearch_fs_filesearch_labelsleep test video fat loadenv linux ext2 btrfs ext2 xfs jfs reiserfs efinet tftp mdraid09 mdraid1x lvm
[ 1273s] ./grub-mkimage: error: relocation0x105is not implemented yet.Quoted 2 lines
This shouldn't happen as those relocation assume 32-bit range. Is -mcmodel=large properly passed?
Looks like some files are compiled without it
[ 992s] gcc -DHAVE_CONFIG_H -I. -I../../grub-core -I.. -Wall -W
(quoted diff) +0
-3-I../../include -I../include -DGRUB_MACHINE_EFI=1 -DGRUB_MACHINE=ARM64_EFI -nostdinc -isystem /usr/lib64/gcc/aarch64-suse-linux/4.8/include -DGRUB_FILE=\"lib/setjmp.S\" -I. -I../../grub-core -I.. -I../.. -I../../include
(quoted diff) +0
-5-I../include -I../../grub-core/lib/libgcrypt-grub/src/ -g -DGRUB_FILE=\"lib/setjmp.S\" -I. -I../../grub-core -I.. -I../.. -I../../include -I../include -I../../grub-core/lib/libgcrypt-grub/src/ -DASM_FILE=1 -fno-strict-aliasing -fno-inline-functions-called-once -MT lib/setjmp_module-setjmp.o -MD -MP -MF
lib/.deps-core/setjmp_module-setjmp.Tpo-c -olib/setjmp_module-setjmp.otest -f 'lib/setjmp.S' || echo '../../grub-core/'lib/setjmp.S[ 1161s] gcc -DHAVE_CONFIG_H -I. -I../../grub-core -I.. -Wall -W
(quoted diff) +0
-3-I../../include -I../include -DGRUB_MACHINE_EFI=1 -DGRUB_MACHINE=ARM64_EFI -nostdinc -isystem /usr/lib64/gcc/aarch64-suse-linux/4.8/include -DGRUB_FILE=\"kern/arm64/efi/startup.S\" -I. -I../../grub-core -I.. -I../..
(quoted diff) +0
-5-I../../include -I../include -I../../grub-core/lib/libgcrypt-grub/src/ -DGRUB_KERNEL=1 -g -DGRUB_FILE=\"kern/arm64/efi/startup.S\" -I. -I../../grub-core -I.. -I../.. -I../../include -I../include -I../../grub-core/lib/libgcrypt-grub/src/ -DASM_FILE=1 -fno-strict-aliasing -fno-inline-functions-called-once -MT
kern/arm64/efi/kernel_exec-startup.o-MD -MP -MF kern/arm64/efi/.deps-core/kernel_exec-startup.Tpo -c -okern/arm64/efi/kernel_exec-startup.otest -f 'kern/arm64/efi/startup.S' || echo '../../grub-core/'kern/arm64/efi/startup.S[ 1163s] gcc -DHAVE_CONFIG_H -I. -I../../grub-core -I.. -Wall -W
(quoted diff) +0
-3-I../../include -I../include -DGRUB_MACHINE_EFI=1 -DGRUB_MACHINE=ARM64_EFI -nostdinc -isystem /usr/lib64/gcc/aarch64-suse-linux/4.8/include -DGRUB_FILE=\"kern/arm64/cache_flush.S\" -I. -I../../grub-core -I.. -I../..
(quoted diff) +0
-4-I../../include -I../include -I../../grub-core/lib/libgcrypt-grub/src/ -DGRUB_KERNEL=1 -g -DGRUB_FILE=\"kern/arm64/cache_flush.S\" -I. -I../../grub-core -I.. -I../.. -I../../include -I../include -I../../grub-core/lib/libgcrypt-grub/src/ -DASM_FILE=1
Quoted 8 lines
Quoted 6 lines
-fno-strict-aliasing -fno-inline-functions-called-once -MT
kern/arm64/kernel_exec-cache_flush.o-MD -MP -MF kern/arm64/.deps-core/kernel_exec-cache_flush.Tpo -c -okern/arm64/kernel_exec-cache_flush.otest -f 'kern/arm64/cache_flush.S' || echo '../../grub-core/'kern/arm64/cache_flush.SStill the same even after adding -mcmodel=large to CCASFLAGS.
This shouldn't matter for asm though: it's a compiler option instructing the compiler what code sequences to use for indirect calls/accesses.
Quoted 3 lines
Is it
possible that compiler generates small relocation where appropriate even with -mcmodel=large?
It shouldn't, but difficult to say without knowing more details. Can you run the mkimage with -v and pinpoint the triggering module?
/
Leif
В Вс, 29/12/2013 в 01:55 +0000, Leif Lindholm пишет:
Quoted 3 lines
It shouldn't, but difficult to say without knowing more details. Can you run the mkimage with -v and pinpoint the triggering module?
This comes from .eh_frame section and fails for kernel.exec already.
RELOCATION RECORDS FOR [.eh_frame]:
OFFSET TYPE VALUE 000000000000001c R_AARCH64_PREL32 .text+0x0000000000009b70 0000000000000044 R_AARCH64_PREL32 .text+0x0000000000009b78
Also there are ABS32 relocations in various .debug_* sections but I presume they are handled by --strip-unneeded.
Quoted 6 lines · Andrey Borzenkov
В Вс, 29/12/2013 в 01:55 +0000, Leif Lindholm пишет:
Quoted 2 lines
It shouldn't, but difficult to say without knowing more details. Can you run the mkimage with -v and pinpoint the triggering module?
This comes from .eh_frame section and fails for kernel.exec already.
Quoted 7 lines
RELOCATION RECORDS FOR [.eh_frame]:
OFFSET TYPE VALUE 000000000000001c R_AARCH64_PREL32 .text+0x0000000000009b70 0000000000000044 R_AARCH64_PREL32 .text+0x0000000000009b78Also there are ABS32 relocations in various .debug_* sections but I presume they are handled by --strip-unneeded.
Ah, yes (Fedora also saw this):
https://plus.google.com/u/0/106265217227408958782/posts/RYNT8RwFHDB
While it might be interesting to dig out what causes this toolchain difference vs. Linaro, I am reasonably confident this relocation cannot be generated in actual C code with -mcmodel=large. So my suggestion would be to ignore this relocation. Or should we explicitly strip .eh_frame?
/
Leif
В Вс, 29/12/2013 в 12:44 +0000, Leif Lindholm пишет:
Quoted 15 lines · Andrey Borzenkov
Quoted 6 lines
В Вс, 29/12/2013 в 01:55 +0000, Leif Lindholm пишет:
Quoted 2 lines
It shouldn't, but difficult to say without knowing more details. Can you run the mkimage with -v and pinpoint the triggering module?
This comes from .eh_frame section and fails for kernel.exec already.
Quoted 7 lines
RELOCATION RECORDS FOR [.eh_frame]:
OFFSET TYPE VALUE 000000000000001c R_AARCH64_PREL32 .text+0x0000000000009b70 0000000000000044 R_AARCH64_PREL32 .text+0x0000000000009b78Also there are ABS32 relocations in various .debug_* sections but I presume they are handled by --strip-unneeded.
Quoted 8 lines
Ah, yes (Fedora also saw this):
https://plus.google.com/u/0/106265217227408958782/posts/RYNT8RwFHDBWhile it might be interesting to dig out what causes this toolchain difference vs. Linaro, I am reasonably confident this relocation cannot be generated in actual C code with -mcmodel=large. So my suggestion would be to ignore this relocation. Or should we explicitly strip .eh_frame?
If it is not needed to run the binaries on target - I sure suggest stripping it off. I was not sure as I expected --strip-unneeded to do it in this case.
Ignoring does not sound right in case we actually hit in in code.
Andrey,
Can you give this a try?
(Sent through gmail, so garbled.)
grub-core/Makefile.core.def +0 -1
@@ -96,7 +96,7 @@ kernel = { emu_cflags = '$(CFLAGS_GNULIB)'; emu_cppflags = '$(CPPFLAGS_GNULIB)'; arm_uboot_ldflags = '-Wl,-Ttext=0x08000000'; - arm_uboot_stripflags = '--strip-unneeded -K start -R .note -R
.comment -R .note.gnu.gold-version';
+ arm_uboot_stripflags = '--strip-unneeded -K start -R .note -R
.comment -R .note.gnu.gold-version -R .eh_frame';
i386_pc_startup = kern/i386/pc/startup.S; i386_efi_startup = kern/i386/efi/startup.S;
/
Leif
Umm, I'm officially going to go make some coffee.
On arm64_efi stripflags obviously.
Quoted 23 lines · Leif Lindholm
Andrey,
Can you give this a try?
(Sent through gmail, so garbled.)grub-core/Makefile.core.def +1
-1@@ -96,7 +96,7 @@ kernel = { emu_cflags = '$(CFLAGS_GNULIB)'; emu_cppflags = '$(CPPFLAGS_GNULIB)'; arm_uboot_ldflags = '-Wl,-Ttext=0x08000000'; - arm_uboot_stripflags = '--strip-unneeded -K start -R .note -R .comment -R .note.gnu.gold-version'; + arm_uboot_stripflags = '--strip-unneeded -K start -R .note -R .comment -R .note.gnu.gold-version -R .eh_frame';i386_pc_startup = kern/i386/pc/startup.S; i386_efi_startup = kern/i386/efi/startup.S;/
Leif
В Вс, 29/12/2013 в 13:09 +0000, Leif Lindholm пишет:
Quoted 4 lines
Umm, I'm officially going to go make some coffee.
On
arm64_efistripflags obviously.
Yes, this works (i.e. - grub-mkimage does not fail). Of course, module relocation happens at run time and I do not have hardware or software to test it - could you do it? You can download RPM here:
From: Andrey Borzenkov <[email protected]>
Subject: [PATCH] strip .eh_frame section from kernel
Fixes grub-mkimage error
./grub-mkimage: error: relocation 0x105 is not implemented yet.
Suggested by Leif Lindholm
--- grub-core/Makefile.core.def | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
grub-core/Makefile.core.def +1 -1
@@ -66,7 +66,7 @@ kernel = { arm_efi_stripflags = '--strip-unneeded -K start -R .note -R .comment -R .note.gnu.gold-version'; arm64_efi_ldflags = '-Wl,-r,-d'; - arm64_efi_stripflags = '--strip-unneeded -K start -R .note -R .comment -R .note.gnu.gold-version'; + arm64_efi_stripflags = '--strip-unneeded -K start -R .note -R .comment -R .note.gnu.gold-version -R .eh_frame'; i386_pc_ldflags = '$(TARGET_IMG_LDFLAGS)'; i386_pc_ldflags = '$(TARGET_IMG_BASE_LDOPT),0x9000';
Signature · 1 line
tg: (093dec7..) u/arm64-cmodel-large (depends on: master)
Quoted 10 lines · Andrey Borzenkov
В Вс, 29/12/2013 в 13:09 +0000, Leif Lindholm пишет:
Quoted 3 lines
Umm, I'm officially going to go make some coffee.
On
arm64_efistripflags obviously.Yes, this works (i.e. - grub-mkimage does not fail). Of course, module relocation happens at run time and I do not have hardware or software to test it - could you do it? You can download RPM here:
Thanks - I'll give it a go tonight (need to leave now). If you can't wait, you can read my instructions for how to set up the software model environment:
https://wiki.linaro.org/LEG/Engineering/Kernel/GRUBonAArch64
:)
/
Leif
Quoted 35 lines
From: Andrey Borzenkov <[email protected]>
Subject: [PATCH] strip .eh_frame section from kernelFixes grub-mkimage error
./grub-mkimage: error: relocation
0x105is not implemented yet.Suggested by Leif Lindholm
--- grub-core/Makefile.core.def | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)grub-core/Makefile.core.def +1
-2@@ -66,7 +66,7 @@ kernel = { arm_efi_stripflags = '--strip-unneeded -K start -R .note -R .comment -R .note.gnu.gold-version'; arm64_efi_ldflags = '-Wl,-r,-d'; - arm64_efi_stripflags = '--strip-unneeded -K start -R .note -R .comment -R .note.gnu.gold-version'; + arm64_efi_stripflags = '--strip-unneeded -K start -R .note -R .comment -R .note.gnu.gold-version -R .eh_frame'; i386_pc_ldflags = '$(TARGET_IMG_LDFLAGS)'; i386_pc_ldflags = '$(TARGET_IMG_BASE_LDOPT),0x9000'; --tg: (093dec7..) u/arm64-cmodel-large (depends on: master)
_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel
Quoted 7 lines · Andrey Borzenkov
Quoted 1 line
On
arm64_efistripflags obviously.Yes, this works (i.e. - grub-mkimage does not fail). Of course, module relocation happens at run time and I do not have hardware or software to test it - could you do it? You can download RPM here:
Unfortunately, this link appears to require authentication.
/
Leif
В Вс, 29/12/2013 в 18:12 +0000, Leif Lindholm пишет:
Quoted 11 lines · Andrey Borzenkov
Quoted 7 lines
Quoted 1 line
On
arm64_efistripflags obviously.Yes, this works (i.e. - grub-mkimage does not fail). Of course, module relocation happens at run time and I do not have hardware or software to test it - could you do it? You can download RPM here:
Unfortunately, this link appears to require authentication.
Sorry.
https://dl.dropboxusercontent.com/u/25585681/grub2-arm64-efi-2.02~beta2-225.1.aarch64.rpm
https://dl.dropboxusercontent.com/u/25585681/grub2-2.02~beta2-225.1.aarch64.rpm
Quoted 10 lines · Andrey Borzenkov
В Вс, 29/12/2013 в 18:12 +0000, Leif Lindholm пишет:
Quoted 9 lines · Andrey Borzenkov
Quoted 7 lines
Quoted 1 line
On
arm64_efistripflags obviously.Yes, this works (i.e. - grub-mkimage does not fail). Of course, module relocation happens at run time and I do not have hardware or software to test it - could you do it? You can download RPM here:
Quoted 7 lines
Quoted 2 lines
Unfortunately, this link appears to require authentication.
Sorry.
https://dl.dropboxusercontent.com/u/25585681/grub2-arm64-efi-2.02~beta2-225.1.aarch64.rpm
https://dl.dropboxusercontent.com/u/25585681/grub2-2.02~beta2-225.1.aarch64.rpm
Thanks, but lacking liblzma.so.5 and libdevmapper.so.1.03 - any chance you could pass those across?
/
Leif
В Пн, 30/12/2013 в 00:40 +0000, Leif Lindholm пишет:
Quoted 14 lines · Andrey Borzenkov
Quoted 13 lines
В Вс, 29/12/2013 в 18:12 +0000, Leif Lindholm пишет:
Quoted 11 lines · Andrey Borzenkov
Quoted 7 lines
Quoted 1 line
On
arm64_efistripflags obviously.Yes, this works (i.e. - grub-mkimage does not fail). Of course, module relocation happens at run time and I do not have hardware or software to test it - could you do it? You can download RPM here:
Unfortunately, this link appears to require authentication.
Quoted 8 lines
Quoted 4 lines
Sorry.
https://dl.dropboxusercontent.com/u/25585681/grub2-arm64-efi-2.02~beta2-225.1.aarch64.rpm
https://dl.dropboxusercontent.com/u/25585681/grub2-2.02~beta2-225.1.aarch64.rpmThanks, but lacking liblzma.so.5 and libdevmapper.so.1.03 - any chance you could pass those across?
You can actually use your own user tools on any platform, but let's make it simple - here is standalone image:
https://dl.dropboxusercontent.com/u/25585681/grubaarch64.efi
Quoted 7 lines · Andrey Borzenkov
Quoted 2 lines
Thanks, but lacking liblzma.so.5 and libdevmapper.so.1.03 - any chance you could pass those across?
You can actually use your own user tools on any platform, but let's make it simple - here is standalone image:
https://dl.dropboxusercontent.com/u/25585681/grubaarch64.efi
Much appreciated.
I can successfully boot Linux on the ARMv8 Foundation model.
/
Leif
Pushed after test and discussion with Vladimir on irc.
Quoted 47 lines · Andrey Borzenkov
В Вс, 29/12/2013 в 13:09 +0000, Leif Lindholm пишет:
Quoted 4 lines
Umm, I'm officially going to go make some coffee.
On
arm64_efistripflags obviously.Yes, this works (i.e. - grub-mkimage does not fail). Of course, module relocation happens at run time and I do not have hardware or software to test it - could you do it? You can download RPM here:
From: Andrey Borzenkov <[email protected]>
Subject: [PATCH] strip .eh_frame section from kernelFixes grub-mkimage error
./grub-mkimage: error: relocation
0x105is not implemented yet.Suggested by Leif Lindholm
--- grub-core/Makefile.core.def | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)grub-core/Makefile.core.def +1
-1@@ -66,7 +66,7 @@ kernel = { arm_efi_stripflags = '--strip-unneeded -K start -R .note -R .comment -R .note.gnu.gold-version'; arm64_efi_ldflags = '-Wl,-r,-d'; - arm64_efi_stripflags = '--strip-unneeded -K start -R .note -R .comment -R .note.gnu.gold-version'; + arm64_efi_stripflags = '--strip-unneeded -K start -R .note -R .comment -R .note.gnu.gold-version -R .eh_frame'; i386_pc_ldflags = '$(TARGET_IMG_LDFLAGS)'; i386_pc_ldflags = '$(TARGET_IMG_BASE_LDOPT),0x9000';Signature · 8 lines
tg: (093dec7..) u/arm64-cmodel-large (depends on: master) _______________________________________________ Grub-devel mailing list [email protected] https://lists.gnu.org/mailman/listinfo/grub-devel