mkimage segfault on MacOS

Alexander von Gluck IV kallisti5 at unixzen.com
Wed Feb 19 17:20:41 CET 2020


I know this one is pretty far out there (and not expecting a solution here tbh),

mkimage (installed via homebrew) is segfaulting under MacOS X (10.15.3)

 $ mkimage -A arm -O linux -T kernel -C none -a 0x1000000 -e 0x1000010 -n 'Haiku arm loader' -d objects/haiku/arm/release/system/boot/u-boot/boot_loader_u-boot haiku_loader.u-boot
Segmentation fault: 11

I went through all the hoops to get gdb working (https://gist.github.com/gravitylow/fb595186ce6068537a6e9da6d8b5b96d) (https://gist.github.com/gravitylow/fb595186ce6068537a6e9da6d8b5b96d),
but homebrew doesn't include debug symbols in mkimage :-|

(gdb) run -A arm -O linux -T kernel -C none -a 0x1000000 -e 0x1000010 -d objects/haiku/arm/release/system/boot/u-boot/boot_loader_u-boot haiku_loader.u-boot
Starting program: /usr/local/bin/mkimage -A arm -O linux -T kernel -C none -a 0x1000000 -e 0x1000010 -d objects/haiku/arm/release/system/boot/u-boot/boot_loader_u-boot haiku_loader.u-boot
[New Thread 0x170b of process 76451]
[New Thread 0x2503 of process 76451]
warning: unhandled dyld version (16)

Thread 2 received signal SIGSEGV, Segmentation fault.
0x00007fff6e8ba2be in ?? ()
(gdb) bt
#0 0x00007fff6e8ba2be in ?? ()
#1 0x00007ffeefbff8f0 in ?? ()
#2 0x000000010002b000 in ?? ()
#3 0x00000000000004d9 in ?? ()
#4 0x0000000100020fb1 in copy_file ()
#5 0x000000010002ca10 in padding_algos ()
#6 0x00007ffeefbff818 in ?? ()
#7 0x0000000000000003 in ?? ()
#8 0x0000000100020dec in main ()
I need to install linux once the Apple T2 chipset driver is upstreamed. :-)
Mostly posting this here as an FYI for any future folks who run into it.
 -- Alex


More information about the U-Boot mailing list