[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: cross-building with qemu-i386/aarch64
From: |
Philippe Mathieu-Daudé |
Subject: |
Re: cross-building with qemu-i386/aarch64 |
Date: |
Wed, 11 Aug 2021 18:26:51 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 |
On 8/11/21 1:15 PM, Frans de Boer wrote:
> LS,
>
> I have a puzzle for which I seek some assistance for the following case:
>
> I have build a cross-compiler for - say - the i586 architecture,
> including glibc and some others. The next step would be to transfer this
> together with other sources to the target machine and finish the
> building of a bootable system.
> Now, suppose I have no bootable target system (yet) and want to build
> everything using qemu-i386 to be transferred later.
>
> However when I start:
> qemu-i386 /path to i386
qemu-i386 -L /path/to/i386
You might want to also add '-cpu pentium'
> sbin/chroot "<path to new root> /usr/bin/env
> -i ....... /usr/bin/bash --login
> I end up that the chroot program complains that it can't find
> /lib/libc.so.6, which actually does exist on <path to new
> root>/lib/libc.so.6.
>
> Am I missing something and/or is there a solution that I am not aware of
> as yet.
>
> --- Frans.
>
>
>