how to create a powerpc64 poudriere jail ?

Kurt Jaeger lists at opsec.eu
Mon May 23 04:39:38 UTC 2016


Hi!

> > [00:00:08] ====>> Starting jail p64-default
> > [00:00:08] ====>> Error: Unable to execute id(1) in jail. Emulation or ABI wrong.
> 
> Check foreign ABI support by running a static binary. If you see something
> like the following then --magic or --mask argument (for ELF header) is wrong.
> 
>   $ /poudriere/jails/head-powerpc64/rescue/ls
>   sh: /poudriere/jails/head-powerpc64/rescue/ls: Exec format error

Yes, this happened.

> but it may not help if dynamically linked binaries still fail
> 
>   [00:00:01] ====>> Starting jail head-powerpc64-default
>   Invalid data memory access: 0x000007ec00000000
>   qemu: uncaught target signal 11 (Segmentation fault) - core dumped
>   Segmentation fault
>   [00:00:01] ====>> Error: Unable to execute id(1) in jail. Emulation or ABI wrong.
> 
> > magic: 0x7f 0x45 0x4c 0x46  0x01 0x02 0x01 0x00  0x00 0x00 0x00 0x00 
>                                 ^^
> This byte looks wrong. After applying the attached patch run

The source of that byte was:

https://wiki.freebsd.org/QemuUserModeHowTo

(now fixed). After fixing this:

/pou/jails/p64/rescue/ls 

works.

But:

/pou/jails/p64/usr/bin/id
Unable to load interpreter

-- 
pi at opsec.eu            +49 171 3101372                         4 years to go !


More information about the freebsd-ports mailing list