Upgrade to Pro — share decks privately, control downloads, hide ads and more …

あっきぃのRaspberry Pi 2レポート / osc15tk-spring-rpi

Akira Ouchi
February 27, 2015

あっきぃのRaspberry Pi 2レポート / osc15tk-spring-rpi

OSC2015 Tokyo/Spring(2015/2/27)にて発表

Akira Ouchi

February 27, 2015
Tweet

More Decks by Akira Ouchi

Other Decks in Technology

Transcript

  1. $16ͷ௒؆୯ͳൺֱ •  8J'JυϯάϧͷυϥΠόʔΛίϯύΠϧ •  UNQGTʹιʔεΛஔ͍ͯNBLF͢Δ •  KͰίΞ਺͚ͩεϨου਺Λࢦఆ #!/bin/bash   THREADS=`cat

     /proc/cpuinfo  |  grep  ^processor  |  wc  -­‐l`   DRIVER=mt7610u_wifi_sta_v3002_dpo_20130916   sudo  mount  -­‐t  tmpfs  -­‐o  size=64m  /dev/shm  /var/tmp   cp  -­‐a  /home/pi/$DRIVER  /var/tmp/   cd  /var/tmp/$DRIVER   Sme  sudo  make  -­‐j  $THREADS
  2. ίϯύΠϧͯ͠Έͨ݁Ռ •  3BTQCFSSZ1J.PEFM#  •  3BTQCFSSZ1J.PEFM# •  ࣮ࡍͷ࣮ߦ࣌ؒ͸ഒ͘Β͍ૣ͔ͬͨʢʂʁʣ •  Ϣʔβʔ$16࣌ؒʹ͸ഒ͘Β͍ૣ͔ͬͨ

    •  ಺༰ʹΑͬͯ݁Ռ͸มΘΔɺ͸ͣ real  21m59.870s   user  20m58.260s   sys  0m44.940s real  2m21.143s   user  8m15.210s   sys  0m25.840s
  3. 3BTQCJBOͷΧʔωϧ •  ݱࡏͷ࠷৽͸  •  ͭͷΠϝʔδͰ31J BSNWM  31J BSNWM

    ྆ํʹରԠ •  $16͕ҧ͏ͷͰɺϞσϧʹΑͬͯಡΈࠐ ΉΧʔωϧΠϝʔδΛ͔͑Δ •  ͦͷଞͷόΠφϦ͸BSNWMͷ··ɻ31J ͸BSNWͷόΠφϦΛ࢖༻Ͱ͖ΔΑ͏ʹ ରԠ͍ͯ͠Δ
  4. 31JͷυϥΠόʔίϯύΠϧ •  MJCNPEVMFTҎԼʹ഑ஔ͞Εͨޙͷιʔεͷ όʔδϣϯදه͕ޡ͍ͬͯΔͷͰਖ਼͘͠ͳ͍ όΠφϦ͕Ͱ͖Δ •  ࣍ͷํ๏Ͱରॲ͢Δ –  ༗ࢤ͕࡞ͬͨMJOVYIFBEFSΛར༻͢Δ • 

    IUUQXXXOJLTVMBIVUpdNIJJFOLB3QJMJOVY IFBEFSTSQJ –  ιʔεΛमਖ਼͢Δ ×  3.18.7+-­‐v7   ◦  3.18.7-­‐v7+    or    3.18.7-­‐v7
  5. %FWJDF5SFF %5 ͷಋೖ •  ϋʔυ΢ΣΞσόΠεͷΞυϨεͷҧ͍ͳ ͲΛهड़͢ΔͨΊͷػߏ •  Χʔωϧ͔ΒϋʔυίʔσΟϯάͳΞυϨ ε৘ใͳͲΛ%5ʹө͢͜ͱͰΧʔωϧΛ ൚༻తʹ͍ͯ͘͠΋ͷΒ͍͠

    – IUUQNBTBIJSZCMPHTQPUKQ EFWJDFUSFFIUNMΛࢀরͨ͠ •  3BTQCFSSZ1JͰిࢠ޻࡞͢Δ࣌ʹɺ͜ͷ ΁Μͷઃఆ͕ඞཁʹͳΔ৔߹͕Ͱ͖ͯͨ
  6. -&%νΧνΧΛ͢Δͱ͖ •  มԽແ͠Ͱͨ͠ $  sudo  su  –   #  echo

     "17"  >  /sys/class/gpio/export   #  echo  "out"  >  /sys/class/gpio/gpio17/direction   #  ###  LED点灯   #  echo  "1"  >  /sys/class/gpio/gpio17/value   #  ###  LED消灯   #  echo  "0"  >  /sys/class/gpio/gpio17/value   #  echo  "17"  >  /sys/class/gpio/unexport