tag:blogger.com,1999:blog-313659922933043795.post1544153850268807244..comments2019-04-25T21:32:34.619+02:00Comments on Tinkering Is Fun: Running ARM Linux on your desktop PC: The foreign chroot wayDavidhttp://www.blogger.com/profile/13178241043421906804noreply@blogger.comBlogger9125tag:blogger.com,1999:blog-313659922933043795.post-43118909111979209432014-05-13T13:04:19.819+02:002014-05-13T13:04:19.819+02:00I'm not able to run any commands once setup th...I'm not able to run any commands once setup the chroot. When I try to run any command(even the internal commands) it is giving a warning that cannot execute the binary.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-313659922933043795.post-17358940125006863262012-09-24T22:38:58.154+02:002012-09-24T22:38:58.154+02:00I just wanted to add some thanks for this. I have ...I just wanted to add some thanks for this. I have got an arm chroot working on Arch Linux. I had to build a static qemu like you said. To build that I had to build static glib2 libraries because there are only dynamic in the default configuration of the glib2 package. Regardless, I got it working and it's quite amusing to do "uname -a" on my x86 box and see it tell me its arm :)<br /><br />In testing it, however, I did find doing some things caused qemu to report it didn't support a system call. As I was just doing the eqivalent of debootstrap I was surprised by this.<br /><br />But very cool, nonetheless :) John Lanenoreply@blogger.comtag:blogger.com,1999:blog-313659922933043795.post-18912166606254780882012-09-21T15:47:28.454+02:002012-09-21T15:47:28.454+02:00sorry for the typo, I meant .bin binary format.sorry for the typo, I meant .bin binary format.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-313659922933043795.post-64020826692717508982012-09-21T15:46:27.954+02:002012-09-21T15:46:27.954+02:00Does anybody knows how to build ARM static executa...Does anybody knows how to build ARM static executable with codesourcery armgcc tool-chain involving many .c and .s files? Or is it possible to run .bix binary format using static qemu library?<br />Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-313659922933043795.post-59353220832050441122012-05-04T19:25:33.464+02:002012-05-04T19:25:33.464+02:00Nevermind! I figured out my mistake. I did the fi...Nevermind! I figured out my mistake. I did the first stage debootstrap with fakeroot and it didn't like that. Doing the steps as root and then using schroot seems to be working fine. Thanks for the steps! That's really helpful.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-313659922933043795.post-45981778411537567152012-05-04T18:17:37.570+02:002012-05-04T18:17:37.570+02:00I was wondering if anyone had any issue with runni...I was wondering if anyone had any issue with running the debootstrap within the chroot environment. I installed the qemu-arm-static package on my Ubuntu Lucid box and attempted to setup a Debian ARM squeeze-based chroot. I was able to chroot fine, but I get the following error:<br /><br />W: Failure trying to run: mount -t proc proc /proc<br /><br />I tried using schroot to see if it made a difference, but no luck. <br /><br />Thanks!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-313659922933043795.post-15698901212634896492011-07-10T02:17:27.872+02:002011-07-10T02:17:27.872+02:00Yours is by far the clearest post I've encount...Yours is by far the clearest post I've encountered on the subject of running a foreign chroot using QEMU. Sincere thanks!<br /><br />The remaining puzzle for me is how to use the native cross-compilers while inside the foreign chroot. Basically, to run ./configure and make via QEMU, but then have those invoke the cross gcc (e.g. arm-none-linux-gnuabi-gcc), while still having access to the dynamic libraries in the chroot. Why? Emulated compilers are slow, while static binaries are big.<br /><br />I had high hopes for scratchbox2 to do this, but after several hours of trying, got nowhere. If you get bored one day and figure this out, please write another article like this! I've spent hours searching the net, and there really isn't one which Just Works :/Xhttp://xaph.netnoreply@blogger.comtag:blogger.com,1999:blog-313659922933043795.post-104974184299078982010-08-02T10:41:37.759+02:002010-08-02T10:41:37.759+02:00Yes, static qemu is no so common in distro reposit...Yes, static qemu is no so common in distro repositories. That's why I addressed it in the post, just search for the paragraph beginning with "There's one last thing to resolve: We need a static build of QEMU" You gave up reading too early. :)Davidhttps://www.blogger.com/profile/13178241043421906804noreply@blogger.comtag:blogger.com,1999:blog-313659922933043795.post-58027947709362415672010-08-02T05:54:35.318+02:002010-08-02T05:54:35.318+02:00The Problem I am facing is Fedora Don't have s...The Problem I am facing is Fedora Don't have static libs. And I can't find a Static version of qemu-arm/qemu-armebswldashttps://www.blogger.com/profile/16460318253761783703noreply@blogger.com