LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 05-10-2006, 02:44 PM   #1
Zoombie
Member
 
Registered: Jul 2003
Distribution: Debian Testing
Posts: 180

Rep: Reputation: 30
Question Joystick doesn't work inside 32-bit chroot


I just upgraded my computer to a 64-bit AMD processor, and I installed the AMD64 version of Debian. Most packages are available in 64-bit flavor, but a few (like zsnes) had to be installed in a 32-bit chroot.

I successfully setup the 32-bit chroot, and I can run zsnes inside of it fine, except that joysticks won't work. Outside of the chroot, I have a device (/dev/input/js0) which works fine, but inside, no such device exists. How can I get the joystick to work?

I installed using the beta Debian installer for Etch. I'm using Xorg 6.9.0, and the joystick is a simple USB device which worked fine in zsnes when I was running 32-bit.

Thanks in advance for any advice.
 
Old 05-10-2006, 04:59 PM   #2
ioerror
Member
 
Registered: Sep 2005
Location: Old Blighty
Distribution: Slackware, NetBSD
Posts: 536

Rep: Reputation: 34
You just need the device node available in your chroot environment.

Code:
cd /top/of/chroot
mkdir -p dev/input
cp -a /dev/input/js0 dev/input
or if you want the whole of /dev

Code:
cd /top/of/chroot
mkdir dev
mount --bind /dev dev
Either way should work.
 
Old 05-10-2006, 06:25 PM   #3
Zoombie
Member
 
Registered: Jul 2003
Distribution: Debian Testing
Posts: 180

Original Poster
Rep: Reputation: 30
Thanks. That worked perfectly. I guess I probably should have known that after using Linux for several years, but I've never had to muck with device files much.
 
  


Reply

Tags
amd64, chroot, joystick


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
chroot 32 bit to compile wine CVS (cannot find -lXext) 1veedo Linux - Software 0 01-14-2006 08:20 PM
Build a 32 bit chroot? Tomex Fedora 1 11-14-2005 01:31 PM
how o i get my joystick to work? Poul Linux - Hardware 1 07-26-2005 09:14 AM
how to build a 32 bit chroot for 64bit nathj72 Linux - Newbie 1 03-26-2005 04:14 PM
serving website from inside chroot "Permissions" jeffpoulsen Linux - Security 1 07-01-2004 02:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 12:49 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