LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - ARM
User Name
Password
Slackware - ARM This forum is for the discussion of Slackware ARM.

Notices


Reply
  Search this Thread
Old 06-01-2015, 09:25 PM   #1
stormtracknole
Senior Member
 
Registered: Aug 2005
Distribution: Slackware, RHEL
Posts: 1,278

Rep: Reputation: 251Reputation: 251Reputation: 251
Question chroot to arm with qemu


Has anyone been successful in setting up a chroot for slackwarearm? I tried following this guide here,but I am still getting the dreaded:
Code:
chroot: failed to run command '/bin/bash': No such file or directory
I have tried other tutorials that I have found on Google, but still have not been successful.

I even tried this one, but still no luck.

Before I throw in the towel, wanted to come here and see if anyone could help. Thanks!
 
Old 06-03-2015, 06:23 AM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,331

Rep: Reputation: 1331Reputation: 1331Reputation: 1331Reputation: 1331Reputation: 1331Reputation: 1331Reputation: 1331Reputation: 1331Reputation: 1331Reputation: 1331
Have you populated a filesystem with arm executables? Does its bin directory contain bash?
 
Old 06-03-2015, 01:06 PM   #3
stormtracknole
Senior Member
 
Registered: Aug 2005
Distribution: Slackware, RHEL
Posts: 1,278

Original Poster
Rep: Reputation: 251Reputation: 251Reputation: 251
It turned out that qemu-arm-static was not being built as a static binary. Once I did that, everything was fine. However, even using chroot, compiling programs is still painfully slow.
 
Old 06-03-2015, 01:27 PM   #4
drmozes
Slackware Contributor
 
Registered: Apr 2008
Distribution: Slackware
Posts: 1,677

Rep: Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375
Quote:
Originally Posted by stormtracknole View Post
It turned out that qemu-arm-static was not being built as a static binary. Once I did that, everything was fine. However, even using chroot, compiling programs is still painfully slow.
Well it's being emulated, after all. It's faster to build natively than inside QEMU. A Banana Pi is a cheap and fast ARM machine.
 
Old 06-03-2015, 01:34 PM   #5
stormtracknole
Senior Member
 
Registered: Aug 2005
Distribution: Slackware, RHEL
Posts: 1,278

Original Poster
Rep: Reputation: 251Reputation: 251Reputation: 251
Quote:
Originally Posted by drmozes View Post
Well it's being emulated, after all. It's faster to build natively than inside QEMU. A Banana Pi is a cheap and fast ARM machine.
I may have to give that a try. Thank you for pointing that out.
 
Old 06-03-2015, 01:37 PM   #6
stormtracknole
Senior Member
 
Registered: Aug 2005
Distribution: Slackware, RHEL
Posts: 1,278

Original Poster
Rep: Reputation: 251Reputation: 251Reputation: 251
I did recently purchase a raspberry pi 2 b and it's pretty good. Much faster than building on qemu or chroot. I may just get extra sd drives and keep a clone to quickly restore.
 
  


Reply

Tags
arm, binfmt, binfmt_misc, chroot, qemu


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
help with kernel panic in qemu (arm) larry7 Linux - Embedded & Single-board computer 0 07-30-2012 07:13 AM
[SOLVED] running c code in ARM QEMU rupeshkp728 Linux - General 9 06-14-2012 12:35 PM
Qemu 0.15.0 compiled on ARM works with Win95 but not XP. Why? OrokuSaki Linux - Virtualization and Cloud 2 09-08-2011 03:19 PM
[SOLVED] arm linux kernel booting problems with qemu vinodk_gautam Linux - Mobile 1 04-20-2011 11:16 PM
Can't build qemu for the Overo Arm drcummings Linux - Software 0 05-17-2010 04:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - ARM

All times are GMT -5. The time now is 12:25 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration