Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 May 2016 06:39:36 +0200
From:      Kurt Jaeger <lists@opsec.eu>
To:        Jan Beich <jbeich@vfemail.net>
Cc:        ports@freebsd.org, Sean Bruno <sbruno@FreeBSD.org>
Subject:   Re: how to create a powerpc64 poudriere jail ?
Message-ID:  <20160523043936.GJ41922@home.opsec.eu>
In-Reply-To: <iny5-65em-wny@vfemail.net>
References:  <20160522093001.GB41922@home.opsec.eu> <20160522093156.GC41922@home.opsec.eu> <bn3x-yif4-wny@vfemail.net> <20160522211938.GI41922@home.opsec.eu> <iny5-65em-wny@vfemail.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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@opsec.eu            +49 171 3101372                         4 years to go !



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20160523043936.GJ41922>