LinuxQuestions.org
Review your favorite Linux distribution.
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, 10:25 PM   #1
stormtracknole
Senior Member
 
Registered: Aug 2005
Distribution: Slackware, RHEL
Posts: 1,076

Rep: Reputation: 153Reputation: 153
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, 07:23 AM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: CentOS 6 & 7
Posts: 3,025

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

Original Poster
Rep: Reputation: 153Reputation: 153
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, 02:27 PM   #4
drmozes
Slackware Contributor
 
Registered: Apr 2008
Location: Surrey, England
Distribution: Slackware
Posts: 718

Rep: Reputation: 555Reputation: 555Reputation: 555Reputation: 555Reputation: 555Reputation: 555
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, 02:34 PM   #5
stormtracknole
Senior Member
 
Registered: Aug 2005
Distribution: Slackware, RHEL
Posts: 1,076

Original Poster
Rep: Reputation: 153Reputation: 153
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, 02:37 PM   #6
stormtracknole
Senior Member
 
Registered: Aug 2005
Distribution: Slackware, RHEL
Posts: 1,076

Original Poster
Rep: Reputation: 153Reputation: 153
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 08:13 AM
[SOLVED] running c code in ARM QEMU rupeshkp728 Linux - General 9 06-14-2012 01: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 04:19 PM
[SOLVED] arm linux kernel booting problems with qemu vinodk_gautam Linux - Mobile 1 04-21-2011 12:16 AM
Can't build qemu for the Overo Arm drcummings Linux - Software 0 05-17-2010 05:51 PM

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

All times are GMT -5. The time now is 05:03 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration