[질문] jstest /dev/input/js0 명령어시 문제.



  • 테스트를 하려고 jstest /dev/input/js0 를 치면

    jstest: No such file or director 이처럼 나오는데 js0파일 생성은 어디서 연관이 되는건지요?

    Manual Installation으로 설치했습니다.

    어떤과정에서 잘못되었는지 도저히 찾을 수가 없습니다. 이걸로 얼마나 많은 시간을 소비했는지 모르겠네요.;

    이미지로업로드가 안되서 로그를 붙여넣었습니다.^^;

    그리고 아래과정도 해야되는 부분인가요?

    3.b - Or compile and install with dkms:

    3.b.1 - Download the files:

    git clone https://github.com/pinuct/mk_arcade_joystick_rpi/tree/customgpio

    3.b.2 - Create a folder under “/usr/src/module-module-version/”

    mkdir /usr/src/mk_arcade_joystick_rpi-0.1.5/

    3.b.3 - Copy the files into the folder:

    cd mk_arcade_joystick_rpi/
    cp -a * /usr/src/mk_arcade_joystick_rpi-0.1.5/

    3.b.4 - Compile and install the module:

    dkms build -m mk_arcade_joystick_rpi -v 0.1.5
    dkms install -m mk_arcade_joystick_rpi -v 0.1.5

    ------------------------------------- 아래는 로그 입니다. ---------------------
    [BEGIN] 2016-05-30 오후 6:34:11
    pi@retropie:~ $ sudo apt-get update
    Get:1 http://dl.bintray.com ./ InRelease [2,085 B]
    Hit http://mirrordirector.raspbian.org jessie InRelease
    Hit http://archive.raspberrypi.org jessie InRelease
    Get:2 http://dl.bintray.com ./ Packages [60.5 kB]
    Hit http://mirrordirector.raspbian.org jessie/main armhf Packages
    Hit http://mirrordirector.raspbian.org jessie/contrib armhf Packages
    Hit http://archive.raspberrypi.org jessie/main armhf Packages
    Hit http://mirrordirector.raspbian.org jessie/non-free armhf Packages
    Hit http://mirrordirector.raspbian.org jessie/rpi armhf Packages
    Hit http://archive.raspberrypi.org jessie/ui armhf Packages
    Ign http://dl.bintray.com ./ Translation-en_GB
    Ign http://dl.bintray.com ./ Translation-en
    Ign http://archive.raspberrypi.org jessie/main Translation-en_GB
    Ign http://archive.raspberrypi.org jessie/main Translation-en
    Ign http://archive.raspberrypi.org jessie/ui Translation-en_GB
    Ign http://archive.raspberrypi.org jessie/ui Translation-en
    Ign http://mirrordirector.raspbian.org jessie/contrib Translation-en_GB
    Ign http://mirrordirector.raspbian.org jessie/contrib Translation-en
    Ign http://mirrordirector.raspbian.org jessie/main Translation-en_GB
    Ign http://mirrordirector.raspbian.org jessie/main Translation-en
    Ign http://mirrordirector.raspbian.org jessie/non-free Translation-en_GB
    Ign http://mirrordirector.raspbian.org jessie/non-free Translation-en
    Ign http://mirrordirector.raspbian.org jessie/rpi Translation-en_GB
    Ign http://mirrordirector.raspbian.org jessie/rpi Translation-en
    Fetched 62.6 kB in 15s (3,954 B/s)
    Reading package lists… Done
    pi@retropie:~ $ sudo apt-get upgrade
    Reading package lists… Done
    Building dependency tree
    Reading state information… Done
    Calculating upgrade… The following packages were automatically installed and are no longer required:
    libgssapi3-heimdal libheimntlm0-heimdal libkdc2-heimdal
    Use ‘apt-get autoremove’ to remove them.
    Done
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
    pi@retropie:~ $ sudo rpi-update
    *** Raspberry Pi firmware updater by Hexxeh, enhanced by AndrewS and Dom
    *** Performing self-update
    !!! Failed to download update for rpi-update!
    !!! Make sure you have ca-certificates installed and that the time is set correctly
    pi@retropie:~ $ sudo apt-get install -y --force-yes dkms cpp-4.7 gcc-4.7 git joystick
    Reading package lists… Done
    Building dependency tree
    Reading state information… Done
    cpp-4.7 is already the newest version.
    dkms is already the newest version.
    gcc-4.7 is already the newest version.
    git is already the newest version.
    joystick is already the newest version.
    The following packages were automatically installed and are no longer required:
    libgssapi3-heimdal libheimntlm0-heimdal libkdc2-heimdal
    Use ‘apt-get autoremove’ to remove them.
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
    pi@retropie:~ $ wget http://www.niksula.hut.fi/~mhiienka/Rpi/linux-headers-rpi/linux-headers-uname -r_uname -r-2_armhf.deb
    –2016-05-30 09:36:32-- http://www.niksula.hut.fi/~mhiienka/Rpi/linux-headers-rpi/linux-headers-4.1.19-v7+_4.1.19-v7±2_armhf.deb
    Resolving www.niksula.hut.fi (www.niksula.hut.fi)… 130.233.43.7, 2001:708:20:e337:8:20ff:fedd:f36a
    Connecting to www.niksula.hut.fi (www.niksula.hut.fi)|130.233.43.7|:80… connected.
    HTTP request sent, awaiting response… 302 Moved Temporarily
    Location: https://www.niksula.hut.fi/~mhiienka/Rpi/linux-headers-rpi/linux-headers-4.1.19-v7+_4.1.19-v7±2_armhf.deb [following]
    –2016-05-30 09:36:35-- https://www.niksula.hut.fi/~mhiienka/Rpi/linux-headers-rpi/linux-headers-4.1.19-v7+_4.1.19-v7±2_armhf.deb
    Connecting to www.niksula.hut.fi (www.niksula.hut.fi)|130.233.43.7|:443… connected.
    HTTP request sent, awaiting response… 200 OK
    Length: 8923122 (8.5M) [application/octet-stream]
    Saving to: ‘linux-headers-4.1.19-v7+_4.1.19-v7±2_armhf.deb’

    linux-headers-4.1.19-v7+_4.1 100%[===============================================>] 8.51M 1.73MB/s in 5.2s

    2016-05-30 09:36:42 (1.62 MB/s) - ‘linux-headers-4.1.19-v7+_4.1.19-v7±2_armhf.deb’ saved [8923122/8923122]

    pi@retropie:~ $ sudo dpkg -i linux-headers-uname -r_uname -r-2_armhf.deb
    (Reading database … 99133 files and directories currently installed.)
    Preparing to unpack linux-headers-4.1.19-v7+_4.1.19-v7±2_armhf.deb …
    make: Entering directory '/usr/src/linux-headers-4.1.19-v7+'
    CLEAN .
    scripts/Makefile.clean:14: drivers/gpu/drm/nouveau/Makefile: No such file or directory
    make[4]: *** No rule to make target ‘drivers/gpu/drm/nouveau/Makefile’. Stop.
    scripts/Makefile.clean:86: recipe for target ‘drivers/gpu/drm/nouveau’ failed
    make[3]: [drivers/gpu/drm/nouveau] Error 2 (ignored)
    scripts/Makefile.clean:14: drivers/infiniband/hw/amso1100/Makefile: No such file or directory
    make[4]: *** No rule to make target ‘drivers/infiniband/hw/amso1100/Makefile’. Stop.
    scripts/Makefile.clean:86: recipe for target ‘drivers/infiniband/hw/amso1100’ failed
    make[3]: [drivers/infiniband/hw/amso1100] Error 2 (ignored)
    scripts/Makefile.clean:14: drivers/infiniband/ulp/srp/Makefile: No such file or directory
    make[4]: *** No rule to make target ‘drivers/infiniband/ulp/srp/Makefile’. Stop.
    scripts/Makefile.clean:86: recipe for target ‘drivers/infiniband/ulp/srp’ failed
    make[3]: [drivers/infiniband/ulp/srp] Error 2 (ignored)
    scripts/Makefile.clean:14: drivers/scsi/cxgbi/cxgb3i/Makefile: No such file or directory
    make[4]: *** No rule to make target ‘drivers/scsi/cxgbi/cxgb3i/Makefile’. Stop.
    scripts/Makefile.clean:86: recipe for target ‘drivers/scsi/cxgbi/cxgb3i’ failed
    make[3]: [drivers/scsi/cxgbi/cxgb3i] Error 2 (ignored)
    scripts/Makefile.clean:14: drivers/scsi/cxgbi/cxgb4i/Makefile: No such file or directory
    make[4]: *** No rule to make target ‘drivers/scsi/cxgbi/cxgb4i/Makefile’. Stop.
    scripts/Makefile.clean:86: recipe for target ‘drivers/scsi/cxgbi/cxgb4i’ failed
    make[3]: [drivers/scsi/cxgbi/cxgb4i] Error 2 (ignored)
    scripts/Makefile.clean:14: drivers/scsi/osd/Makefile: No such file or directory
    make[3]: *** No rule to make target ‘drivers/scsi/osd/Makefile’. Stop.
    scripts/Makefile.clean:86: recipe for target ‘drivers/scsi/osd’ failed
    make[2]: [drivers/scsi/osd] Error 2 (ignored)
    scripts/Makefile.clean:14: drivers/usb/host/whci/Makefile: No such file or directory
    make[4]: *** No rule to make target ‘drivers/usb/host/whci/Makefile’. Stop.
    scripts/Makefile.clean:86: recipe for target ‘drivers/usb/host/whci’ failed
    make[3]: [drivers/usb/host/whci] Error 2 (ignored)
    scripts/Makefile.clean:14: fs/exofs/Makefile: No such file or directory
    make[2]: *** No rule to make target ‘fs/exofs/Makefile’. Stop.
    scripts/Makefile.clean:86: recipe for target ‘fs/exofs’ failed
    make[1]: [fs/exofs] Error 2 (ignored)
    fs/hostfs/Makefile:11: arch/um/scripts/Makefile.rules: No such file or directory
    make[2]: *** No rule to make target ‘arch/um/scripts/Makefile.rules’. Stop.
    scripts/Makefile.clean:86: recipe for target ‘fs/hostfs’ failed
    make[1]: [fs/hostfs] Error 2 (ignored)
    scripts/Makefile.clean:14: fs/nfs/objlayout/Makefile: No such file or directory
    make[3]: *** No rule to make target ‘fs/nfs/objlayout/Makefile’. Stop.
    scripts/Makefile.clean:86: recipe for target ‘fs/nfs/objlayout’ failed
    make[2]: [fs/nfs/objlayout] Error 2 (ignored)
    CLEAN .tmp_versions
    ls: cannot access ./Documentation/DocBook/media/*.b64: No such file or directory
    CLEAN scripts/basic
    CLEAN scripts/dtc
    CLEAN scripts/genksyms
    CLEAN scripts/kconfig
    CLEAN scripts/mod
    CLEAN scripts
    CLEAN include/config include/generated arch/arm/include/generated
    CLEAN .config Module.symvers
    make: Leaving directory '/usr/src/linux-headers-4.1.19-v7+'
    Unpacking linux-headers-4.1.19-v7+ (4.1.19-v7±2) over (4.1.19-v7±2) …
    Setting up linux-headers-4.1.19-v7+ (4.1.19-v7±2) …
    make: Entering directory '/usr/src/linux-headers-4.1.19-v7+'
    HOSTCC scripts/basic/fixdep
    HOSTCC scripts/basic/bin2c
    HOSTCC scripts/kconfig/conf.o
    HOSTCC scripts/kconfig/zconf.tab.o
    HOSTLD scripts/kconfig/conf
    *** Default configuration is based on ‘bcm2709_defconfig’

    configuration written to .config

    make: Leaving directory '/usr/src/linux-headers-4.1.19-v7+'
    make: Entering directory '/usr/src/linux-headers-4.1.19-v7+'
    scripts/kconfig/conf --silentoldconfig Kconfig
    CHK include/config/kernel.release
    UPD include/config/kernel.release
    WRAP arch/arm/include/generated/asm/bitsperlong.h
    WRAP arch/arm/include/generated/asm/cputime.h
    WRAP arch/arm/include/generated/asm/current.h
    WRAP arch/arm/include/generated/asm/emergency-restart.h
    WRAP arch/arm/include/generated/asm/errno.h
    WRAP arch/arm/include/generated/asm/exec.h
    WRAP arch/arm/include/generated/asm/ioctl.h
    WRAP arch/arm/include/generated/asm/ipcbuf.h
    WRAP arch/arm/include/generated/asm/irq_regs.h
    WRAP arch/arm/include/generated/asm/kdebug.h
    WRAP arch/arm/include/generated/asm/local.h
    WRAP arch/arm/include/generated/asm/local64.h
    WRAP arch/arm/include/generated/asm/mcs_spinlock.h
    WRAP arch/arm/include/generated/asm/msgbuf.h
    WRAP arch/arm/include/generated/asm/param.h
    WRAP arch/arm/include/generated/asm/parport.h
    WRAP arch/arm/include/generated/asm/poll.h
    WRAP arch/arm/include/generated/asm/preempt.h
    WRAP arch/arm/include/generated/asm/resource.h
    WRAP arch/arm/include/generated/asm/rwsem.h
    WRAP arch/arm/include/generated/asm/scatterlist.h
    WRAP arch/arm/include/generated/asm/seccomp.h
    WRAP arch/arm/include/generated/asm/sections.h
    WRAP arch/arm/include/generated/asm/segment.h
    WRAP arch/arm/include/generated/asm/sembuf.h
    WRAP arch/arm/include/generated/asm/serial.h
    WRAP arch/arm/include/generated/asm/shmbuf.h
    WRAP arch/arm/include/generated/asm/siginfo.h
    WRAP arch/arm/include/generated/asm/simd.h
    WRAP arch/arm/include/generated/asm/sizes.h
    WRAP arch/arm/include/generated/asm/socket.h
    WRAP arch/arm/include/generated/asm/sockios.h
    WRAP arch/arm/include/generated/asm/termbits.h
    WRAP arch/arm/include/generated/asm/termios.h
    WRAP arch/arm/include/generated/asm/timex.h
    WRAP arch/arm/include/generated/asm/trace_clock.h
    WRAP arch/arm/include/generated/asm/unaligned.h
    CHK include/generated/uapi/linux/version.h
    UPD include/generated/uapi/linux/version.h
    CHK include/generated/utsrelease.h
    UPD include/generated/utsrelease.h
    Generating include/generated/mach-types.h
    CC kernel/bounds.s
    CHK include/generated/bounds.h
    UPD include/generated/bounds.h
    CC arch/arm/kernel/asm-offsets.s
    CHK include/generated/asm-offsets.h
    UPD include/generated/asm-offsets.h
    CALL scripts/checksyscalls.sh
    grep: scripts/…/arch/x86/syscalls/syscall_32.tbl: No such file or directory
    HOSTCC scripts/dtc/dtc.o
    HOSTCC scripts/dtc/flattree.o
    HOSTCC scripts/dtc/fstree.o
    HOSTCC scripts/dtc/data.o
    HOSTCC scripts/dtc/livetree.o
    HOSTCC scripts/dtc/treesource.o
    HOSTCC scripts/dtc/srcpos.o
    HOSTCC scripts/dtc/checks.o
    HOSTCC scripts/dtc/util.o
    SHIPPED scripts/dtc/dtc-lexer.lex.c
    SHIPPED scripts/dtc/dtc-parser.tab.h
    HOSTCC scripts/dtc/dtc-lexer.lex.o
    SHIPPED scripts/dtc/dtc-parser.tab.c
    HOSTCC scripts/dtc/dtc-parser.tab.o
    HOSTLD scripts/dtc/dtc
    HOSTCC scripts/genksyms/genksyms.o
    SHIPPED scripts/genksyms/parse.tab.c
    HOSTCC scripts/genksyms/parse.tab.o
    SHIPPED scripts/genksyms/lex.lex.c
    SHIPPED scripts/genksyms/keywords.hash.c
    SHIPPED scripts/genksyms/parse.tab.h
    HOSTCC scripts/genksyms/lex.lex.o
    HOSTLD scripts/genksyms/genksyms
    CC scripts/mod/empty.o
    HOSTCC scripts/mod/mk_elfconfig
    MKELF scripts/mod/elfconfig.h
    HOSTCC scripts/mod/modpost.o
    CC scripts/mod/devicetable-offsets.s
    GEN scripts/mod/devicetable-offsets.h
    HOSTCC scripts/mod/file2alias.o
    HOSTCC scripts/mod/sumversion.o
    HOSTLD scripts/mod/modpost
    HOSTCC scripts/kallsyms
    HOSTCC scripts/pnmtologo
    HOSTCC scripts/conmakehash
    HOSTCC scripts/recordmcount
    HOSTCC scripts/sortextable
    make: Leaving directory ‘/usr/src/linux-headers-4.1.19-v7+’

    -------- Uninstall Beginning --------
    Module: mk_arcade_joystick_rpi
    Version: 0.1.4
    Kernel: 4.1.19-v7+ (armv7l)

    Status: Before uninstall, this module version was ACTIVE on this kernel.

    mk_arcade_joystick_rpi.ko:

    • Uninstallation
      • Deleting from: /lib/modules/4.1.19-v7+/updates/dkms/
    • Original module
      • No original module was found for this module on this kernel.
      • Use the dkms install command to reinstall any previous module version.

    depmod…

    DKMS: uninstall completed.


    Deleting module version: 0.1.4
    completely from the DKMS tree.

    Done.
    Loading new mk_arcade_joystick_rpi-0.1.4 DKMS files…
    First Installation: checking all kernels…
    It is likely that 4.1.19-v7+ belongs to a chroot’s host
    Building for architecture armv7l
    Building initial module for 4.1.19-v7+
    Done.

    mk_arcade_joystick_rpi:
    Running module version sanity check.

    • Original module
      • No original module exists within this kernel
    • Installation
      • Installing to /lib/modules/4.1.19-v7+/updates/dkms/

    depmod…

    DKMS: install completed.
    pi@retropie:~ $ sudo rm linux-headers-uname -r_uname -r-2_armhf.deb
    pi@retropie:~ $ wget https://github.com/digitalLumberjack/mk_arcade_joystick_rpi/releases/download/v0.1.4/mk-arcade-joystick-rpi-0.1.4.deb
    –2016-05-30 09:40:31-- https://github.com/digitalLumberjack/mk_arcade_joystick_rpi/releases/download/v0.1.4/mk-arcade-joystick-rpi-0.1.4.deb
    Resolving github.com (github.com)… 192.30.252.122
    Connecting to github.com (github.com)|192.30.252.122|:443… connected.
    HTTP request sent, awaiting response… 301 Moved Permanently
    Location: https://github.com/recalbox/mk_arcade_joystick_rpi/releases/download/v0.1.4/mk-arcade-joystick-rpi-0.1.4.deb [following]
    –2016-05-30 09:40:33-- https://github.com/recalbox/mk_arcade_joystick_rpi/releases/download/v0.1.4/mk-arcade-joystick-rpi-0.1.4.deb
    Reusing existing connection to github.com:443.
    HTTP request sent, awaiting response… 302 Found
    Location: https://github-cloud.s3.amazonaws.com/releases/20679079/466af20e-b4ef-11e4-8b67-8ae00696e5f6.deb?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAISTNZFOVBIJMK3TQ%2F20160530%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20160530T094033Z&X-Amz-Expires=300&X-Amz-Signature=da5dbac310a50b3dd857403f039cfd1905d123d3100f967ae8efae4ba564bacd&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B filename%3Dmk-arcade-joystick-rpi-0.1.4.deb&response-content-type=application%2Foctet-stream [following]
    –2016-05-30 09:40:33-- https://github-cloud.s3.amazonaws.com/releases/20679079/466af20e-b4ef-11e4-8b67-8ae00696e5f6.deb?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAISTNZFOVBIJMK3TQ%2F20160530%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20160530T094033Z&X-Amz-Expires=300&X-Amz-Signature=da5dbac310a50b3dd857403f039cfd1905d123d3100f967ae8efae4ba564bacd&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B filename%3Dmk-arcade-joystick-rpi-0.1.4.deb&response-content-type=application%2Foctet-stream
    Resolving github-cloud.s3.amazonaws.com (github-cloud.s3.amazonaws.com)… 54.231.33.171
    Connecting to github-cloud.s3.amazonaws.com (github-cloud.s3.amazonaws.com)|54.231.33.171|:443… connected.
    HTTP request sent, awaiting response… 200 OK
    Length: 14908 (15K) [application/octet-stream]
    Saving to: ‘mk-arcade-joystick-rpi-0.1.4.deb.2’

    mk-arcade-joystick-rpi-0.1.4 100%[===============================================>] 14.56K 32.9KB/s in 0.4s

    2016-05-30 09:40:34 (32.9 KB/s) - ‘mk-arcade-joystick-rpi-0.1.4.deb.2’ saved [14908/14908]

    pi@retropie:~ $ wget https://github.com/digitalLumberjack/mk_arcade_joystick_rpi/releases/download/v0.1.4/mk-arcad
    pi@retropie:~ $ sudo dpkg -i mk-arcade-joystick-rpi-0.1.4.deb
    (Reading database … 99133 files and directories currently installed.)
    Preparing to unpack mk-arcade-joystick-rpi-0.1.4.deb …

    -------- Uninstall Beginning --------
    Module: mk_arcade_joystick_rpi
    Version: 0.1.4
    Kernel: 4.1.19-v7+ (armv7l)

    Status: Before uninstall, this module version was ACTIVE on this kernel.

    mk_arcade_joystick_rpi.ko:

    • Uninstallation
      • Deleting from: /lib/modules/4.1.19-v7+/updates/dkms/
    • Original module
      • No original module was found for this module on this kernel.
      • Use the dkms install command to reinstall any previous module version.

    depmod…

    DKMS: uninstall completed.


    Deleting module version: 0.1.4
    completely from the DKMS tree.

    Done.
    Unpacking mk-arcade-joystick-rpi-dkms (0.1.4) over (0.1.4) …
    Setting up mk-arcade-joystick-rpi-dkms (0.1.4) …
    Loading new mk_arcade_joystick_rpi-0.1.4 DKMS files…
    First Installation: checking all kernels…
    It is likely that 4.1.19-v7+ belongs to a chroot’s host
    Building for architecture armv7l
    Building initial module for 4.1.19-v7+
    Done.

    mk_arcade_joystick_rpi:
    Running module version sanity check.

    • Original module
      • No original module exists within this kernel
    • Installation
      • Installing to /lib/modules/4.1.19-v7+/updates/dkms/

    depmod…

    DKMS: install completed.
    pi@retropie:~ $ sudo modprobe mk_arcade_joystick_rpi map=1
    pi@retropie:~ $ sudo modprobe mk_arcade_joystick_rpi map=1,2
    pi@retropie:~ $ sudo modprobe mk_arcade_joystick_rpi map=3
    pi@retropie:~ $ sudo modprobe mk_arcade_joystick_rpi map=1,2
    pi@retropie:~ $ sudo modprobe mk_arcade_joystick_rpi map=1,2
    pi@retropie:~ $ sudo modprobe mk_arcade_joystick_rpi map=1,2
    pi@retropie:~ $ jstest /dev/input/js0
    jstest: No such file or directory
    pi@retropie:/usr/src/mk_arcade_joystick_rpi-0.1.4 $
    pi@retropie:/usr/src/mk_arcade_joystick_rpi-0.1.4 $ sudo reboot


답변을 위해 로그인하기