|
From: | Frans de Boer |
Subject: | Re: cross-building with qemu-i386/aarch64 - SOLVED |
Date: | Wed, 11 Aug 2021 20:41:39 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.12.0 |
On 8/11/21 6:26 PM, Philippe Mathieu-Daudé wrote:
@Philippe, thanks for your response. I missed the -L option although I was looking for something similar.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 i386qemu-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.
By the way, qemu-i386/aarch64 already assumes - I guess - that the binaries are properly coded. Is there a real need to add "-cpu pentium", or just a precautionary addition?
--- Frans -- A: Yes, just like that A: Ja, net zo Q: Oh, Just like reading a book backwards Q: Oh, net als een boek achterstevoren lezen A: Because it upsets the natural flow of a story A: Omdat het de natuurlijke gang uit het verhaal haalt Q: Why is top-posting annoying? Q: Waarom is Top-posting zo irritant?
[Prev in Thread] | Current Thread | [Next in Thread] |