{"id":2109,"date":"2016-02-14T20:37:05","date_gmt":"2016-02-14T11:37:05","guid":{"rendered":"https:\/\/hack.gpl.jp\/?p=2109"},"modified":"2016-02-14T20:37:05","modified_gmt":"2016-02-14T11:37:05","slug":"post-2109","status":"publish","type":"post","link":"https:\/\/hack.gpl.jp\/2016\/02\/14\/post-2109.html","title":{"rendered":"OrangePi One \u306bFan \u3092\u4ed8\u3051\u3066\u5168\u958b\u30d9\u30f3\u30c1\u30de\u30fc\u30af"},"content":{"rendered":"

Orange Pi One \u306b\u30d5\u30a1\u30f3\u3092\u4ed8\u3051\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n

Orange Pi PC \u3068\u6bd4\u8f03\u3059\u308b\u3068\u4e00\u56de\u308a\u5c0f\u3055\u3044\u3067\u3059\u3002<\/p>\n

\"one_pc\" <\/p>\n

\u30d5\u30a1\u30f3\u3092\u4ed8\u3051\u308b\u524d\u306bCPU \u306e\u523b\u5370\u3092\u30ad\u30e3\u30d7\u30c1\u30e3\u30fc\u3057\u3066\u304a\u304d\u307e\u3059\u3002G1035BA 61A3 \u3068\u3042\u308a\u307e\u3059\u3002FAN \u3092\u4ed8\u3051\u306a\u3044\u3068\u8ca0\u8377\u664280\u5ea6\u3092\u8d85\u3048\u307e\u3059\u306e\u3067\u30011GHz \u4ee5\u5185\u306b\u3057\u306a\u3044\u3068\u30d5\u30a1\u30f3\u306f\u5fc5\u9808\u3067\u3059\u3002<\/p>\n

\"SingleShot0029\" <\/p>\n

\u3053\u306e\u30b3\u30a4\u30eb\u304c\u3058\u3083\u307e\u306a\u306e\u3067\u30d2\u30fc\u30c8\u30b7\u30f3\u30af\u3092\u5207\u308a\u843d\u3068\u3057\u307e\u3059\u3002<\/p>\n

\"aa\" \u3053\u3093\u306a\u611f\u3058\u3002<\/p>\n

\"b\" <\/p>\n

\u30d5\u30a1\u30f3\u3068\u30d2\u30fc\u30c8\u30b7\u30f3\u30af\u306f\u9069\u5f53\u306a\u30cd\u30b8\u3092\u30d2\u30fc\u30c8\u30b7\u30f3\u30af\u306b\u9593\u306b\u306d\u3058\u8fbc\u307f\u307e\u3059\u3002<\/p>\n

\"a\" <\/p>\n

\u4ed8\u3051\u305f\u304b\u3093\u3058\u3002\u5e38\u6642\u56de\u3057\u3063\u3071\u306a\u3057\u306b\u3057\u3066\u304a\u304f\u306e\u3067\u88cf\u9762\u306e\u96fb\u6e90\u90e8\u304b\u3089\u534a\u7530\u3065\u3051\u3057\u3066\u76f4\u63a55V \u3092\u3068\u308a\u307e\u3057\u305f\u3002GPIO \u304b\u3089\u6e29\u5ea6\u3092\u898b\u3066\u56de\u3059\u3063\u3066\u3044\u3046\u306e\u3082\u3042\u308a\u3067\u3059\u304c\u3001\uff11\u3064\u30d7\u30ed\u30bb\u30b9\u3092\u6d88\u8cbb\u3059\u308b\u3057\u3001GPIO \u304b\u3089\u306e\u914d\u7dda\u304c\u9762\u5012\u3060\u3063\u305f\u306e\u3067\u3002\u56de\u3057\u3063\u3071\u306a\u3057\u3067\u3082\u30010.3W \u7a0b\u5ea6\u306a\u306e\u3067\u6708\u7d04\uff15\u5186\u3067\u3059\u3002<\/p>\n

\n

\"c\" <\/p>\n

\u6e29\u5ea6\u306f\u3001\u30d9\u30f3\u30c1\u30de\u30fc\u30af\u4e2d\u3067\u3082\u5ba4\u6e2924\u5ea6\u3067\u300160\u5ea6\u304f\u3089\u3044\u307e\u3067\u3057\u304b\u3042\u304c\u308a\u307e\u305b\u3093\u3002\u306a\u304b\u306a\u304b\u51b7\u3048\u3066\u3044\u308b\u3088\u3046\u3067\u3059\u3002\u3061\u306a\u307f\u306b\u3001\u5e73\u5e38\u6642\u306f\u300145\u5ea6\u304f\u3089\u3044\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n

\"one\" <\/p>\n

\"h3_temp\" <\/p>\n

\u30d9\u30f3\u30c1\u30de\u30fc\u30af\u4e2d\u306eCPU \u6e29\u5ea6<\/p>\n

<\/p>\n

\"ESP12_DHT22_-_ThingSpeak\" <\/p>\n

\u30d9\u30f3\u30c1\u30de\u30fc\u30af\u4e2d\u306e\u5ba4\u6e29<\/p>\n

 <\/p>\n<\/p>\n

lobo kernel \u306b\u3066\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n

========================================================================\n   BYTE UNIX Benchmarks (Version 5.1.3)\n\n   System: OrangePi: GNU\/Linux\n   OS: GNU\/Linux -- 3.4.39-01-lobo -- #1 SMP PREEMPT Sun Oct 25 14:46:41 CET 2015\n   Machine: armv7l (armv7l)\n   Language: en_US.utf8 (charmap="UTF-8", collate="UTF-8")\n   20:13:59 up 8 min,  2 users,  load average: 0.70, 0.77, 0.44; runlevel 3\n\n------------------------------------------------------------------------\nBenchmark Run: Sun Feb 14 2016 20:13:59 - 20:43:47\n0 CPUs in system; running 4 parallel copies of tests\n\nDhrystone 2 using register variables       15869153.7 lps   (10.0 s, 7 samples)\nDouble-Precision Whetstone                     2987.1 MWIPS (9.9 s, 7 samples)\nExecl Throughput                               1479.8 lps   (29.4 s, 2 samples)\nFile Copy 1024 bufsize 2000 maxblocks        150225.4 KBps  (30.0 s, 2 samples)\nFile Copy 256 bufsize 500 maxblocks           40862.0 KBps  (30.0 s, 2 samples)\nFile Copy 4096 bufsize 8000 maxblocks        395921.5 KBps  (30.0 s, 2 samples)\nPipe Throughput                              944200.7 lps   (10.0 s, 7 samples)\nPipe-based Context Switching                  84816.2 lps   (10.0 s, 7 samples)\nProcess Creation                               3927.2 lps   (30.0 s, 2 samples)\nShell Scripts (1 concurrent)                   1942.7 lpm   (60.1 s, 2 samples)\nShell Scripts (8 concurrent)                    261.9 lpm   (60.3 s, 2 samples)\nSystem Call Overhead                        2197538.2 lps   (10.0 s, 7 samples)\n\nSystem Benchmarks Index Values               BASELINE       RESULT    INDEX\nDhrystone 2 using register variables         116700.0   15869153.7   1359.8\nDouble-Precision Whetstone                       55.0       2987.1    543.1\nExecl Throughput                                 43.0       1479.8    344.1\nFile Copy 1024 bufsize 2000 maxblocks          3960.0     150225.4    379.4\nFile Copy 256 bufsize 500 maxblocks            1655.0      40862.0    246.9\nFile Copy 4096 bufsize 8000 maxblocks          5800.0     395921.5    682.6\nPipe Throughput                               12440.0     944200.7    759.0\nPipe-based Context Switching                   4000.0      84816.2    212.0\nProcess Creation                                126.0       3927.2    311.7\nShell Scripts (1 concurrent)                     42.4       1942.7    458.2\nShell Scripts (8 concurrent)                      6.0        261.9    436.5\nSystem Call Overhead                          15000.0    2197538.2   1465.0\n                                                                   ========\nSystem Benchmarks Index Score                                         499.1<\/pre>\n

 <\/p>\n

CPU\u306f\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u898b\u3048\u3066\u3044\u307e\u3059\u3002<\/p>\n

# cat \/proc\/cpuinfo \nProcessor    : ARMv7 Processor rev 5 (v7l)\nprocessor    : 0\nBogoMIPS    : 4800.00\n\nprocessor    : 1\nBogoMIPS    : 4800.00\n\nprocessor    : 2\nBogoMIPS    : 4800.00\n\nprocessor    : 3\nBogoMIPS    : 4800.00\n\nFeatures    : swp half thumb fastmult vfp edsp thumbee neon vfpv3 tls vfpv4 idiva idivt \nCPU implementer    : 0x41\nCPU architecture: 7\nCPU variant    : 0x0\nCPU part    : 0xc07\nCPU revision    : 5\n\nHardware    : sun8i\nRevision    : 0000\nSerial        : 64005035410c1027084e<\/pre>\n

 <\/p>\n

\u30e1\u30e2\u30ea\u30fc\u306f\u3001512MB<\/p>\n

# cat \/proc\/meminfo \nMemTotal:         507372 kB\nMemFree:          219756 kB\nBuffers:            1852 kB\nCached:            34468 kB\nSwapCached:            0 kB\nActive:           216236 kB\nInactive:          17940 kB\nActive(anon):     198284 kB\nInactive(anon):      836 kB\nActive(file):      17952 kB\nInactive(file):    17104 kB\nUnevictable:           0 kB\nMlocked:               0 kB\nHighTotal:             0 kB\nHighFree:              0 kB\nLowTotal:         507372 kB\nLowFree:          219756 kB\nSwapTotal:             0 kB\nSwapFree:              0 kB\nDirty:               996 kB\nWriteback:             0 kB\nAnonPages:        197840 kB\nMapped:            12744 kB\nShmem:              1264 kB\nSlab:              21524 kB\nSReclaimable:       8720 kB\nSUnreclaim:        12804 kB\nKernelStack:        1296 kB\nPageTables:         3632 kB\nNFS_Unstable:          0 kB\nBounce:                0 kB\nWritebackTmp:          0 kB\nCommitLimit:      253684 kB\nCommitted_AS:    1065072 kB\nVmallocTotal:     499712 kB\nVmallocUsed:       17300 kB\nVmallocChunk:     213772 kB<\/pre>\n

 <\/p>\n

nginx \u3068 php-fpm \u3068 mariadb \u3092\u52d5\u4f5c\u3057\u3066\u3044\u308b\u72b6\u614b\u3067\u8a08\u6e2c\u3002<\/p>\n

# ps axu | egrep '[n]ginx|[p]hp|[m]aria'\nroot       539  0.0  0.8  37836  4516 ?        Ss   20:06   0:00 php-fpm: master process (\/etc\/php-fpm.conf)\nnginx      657  0.0  2.9  57212 15056 ?        S    20:06   0:03 php-fpm: pool www\nnginx      658  0.0  2.3  54172 12084 ?        S    20:06   0:03 php-fpm: pool www\nnginx      659  0.0  0.6  37836  3432 ?        S    20:06   0:00 php-fpm: pool www\nnginx      660  0.0  3.0  57188 15372 ?        S    20:06   0:02 php-fpm: pool www\nnginx      661  0.0  1.2  48140  6104 ?        S    20:06   0:02 php-fpm: pool www\nmysql      870  0.1 12.3 629000 62764 ?        Sl   20:06   0:12 \/usr\/libexec\/mysqld --basedir=\/usr --datadir=\/var\/lib\/mysql --plugin-dir=\/usr\/lib\/mysql\/plugin --log-error=\/var\/log\/mariadb\/mariadb.log --pid-file=\/var\/run\/mariadb\/mariadb.pid --socket=\/var\/lib\/mysql\/mysql.sock\nroot       972  0.0  0.4  32032  2092 ?        Ss   20:06   0:00 nginx: master process \/usr\/sbin\/nginx\nnginx      974  0.0  0.5  32036  2816 ?        S    20:06   0:01 nginx: worker process\nnginx      975  0.0  0.5  32036  2700 ?        S    20:06   0:01 nginx: worker process\nnginx      976  0.0  0.5  32036  2912 ?        S    20:06   0:01 nginx: worker process\nnginx      977  0.0  0.5  32036  2768 ?        S    20:06   0:01 nginx: worker process\nnginx     1491  0.0  2.3  54228 12144 ?        S    20:06   0:02 php-fpm: pool www\nnginx     2009  0.0  3.0  47920 15224 ?        S    20:07   0:02 php-fpm: pool www<\/pre>\n

 <\/p>\n

GPIO \u3082 WirelingOP \u304c\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u4f7f\u3048\u307e\u3059\u3002<\/p>\n

# gpio readall\n +-----+-----+----------+------+---+--OrangePiPC--+---+------+---------+-----+--+\n | BCM | wPi |   Name   | Mode | V | Physical | V | Mode | Name     | wPi | BCM |\n +-----+-----+----------+------+---+----++----+---+------+----------+-----+-----+\n |     |     |     3.3v |      |   |  1 || 2  |   |      | 5v       |     |     |\n |   2 |  -1 |    SDA.0 |      |   |  3 || 4  |   |      | 5V       |     |     |\n |   3 |  -1 |    SCL.0 |      |   |  5 || 6  |   |      | 0v       |     |     |\n |   4 |   6 | IO6 PA06 |  OUT | 0 |  7 || 8  |   |      | TxD3     |     |     |\n |     |     |       0v |      |   |  9 || 10 |   |      | RxD3     |     |     |\n |  17 |  -1 |     RxD2 |      |   | 11 || 12 | 0 | OUT  | IO1 PD14 | 1   | 18  |\n |  27 |  -1 |     TxD2 |      |   | 13 || 14 |   |      | 0v       |     |     |\n |  22 |  -1 |     CTS2 |      |   | 15 || 16 | 0 | OUT  | IO4 PC04 | 4   | 23  |\n |     |     |     3.3v |      |   | 17 || 18 | 0 | OUT  | IO5 PC07 | 5   | 24  |\n |  10 |  -1 |     MOSI |      |   | 19 || 20 |   |      | 0v       |     |     |\n |   9 |  -1 |     MISO |      |   | 21 || 22 |   |      | RTS2     |     |     |\n |  11 |  -1 |     SCLK |      |   | 23 || 24 |   |      | SPI-CE0  |     |     |\n |     |     |       0v |      |   | 25 || 26 |   |      | CE1      |     |     |\n |   0 |  -1 |    SDA.1 |      |   | 27 || 28 |   |      | SCL.1    |     |     |\n |   5 |   7 |  IO7 PA7 |  OUT | 0 | 29 || 30 |   |      | 0v       |     |     |\n |   6 |   8 |  IO8 PA8 |  OUT | 0 | 31 || 32 | 0 | OUT  | IO9 PG08 | 9   | 12  |\n |  13 |  10 | IO10 PA9 |  OUT | 0 | 33 || 34 |   |      | 0v       |     |     |\n |  19 |  12 | IO12PA10 |  OUT | 0 | 35 || 36 | 0 | OUT  | IO13PG09 | 13  | 16  |\n |  26 |  14 | IO14PA20 | ALT3 | 0 | 37 || 38 | 0 | OUT  | IO15PG06 | 15  | 20  |\n |     |     |       0v |      |   | 39 || 40 | 0 | OUT  | IO16PG07 | 16  | 21  |\n +-----+-----+----------+------+---+----++----+---+------+----------+-----+-----+\n | BCM | wPi |   Name   | Mode | V | Physical | V | Mode | Name     | wPi | BCM |\n +-----+-----+----------+------+---+--OrangePIPC--+------+----------+-----+-----+<\/pre>\n

 <\/p>\n

\u3053\u308c\u304c\u30011600\u5186\uff08\u9001\u6599\u8fbc\u307f\uff09\u3067\u8cb7\u3048\u308b\u3068\u306f\u3044\u3044\u6642\u4ee3\u306b\u306a\u308a\u307e\u3057\u305f\u3002\u3055\u3066\u3001\u3053\u308c\u3067Orange Pi \u304c2\u53f0\u306b\u306a\u3063\u305f\u306e\u3067\u3044\u308d\u3044\u308d\u3068\u904a\u3079\u305d\u3046\u3067\u3059\u3002\u3068\u308a\u3042\u3048\u305a\u3001\u30b1\u30fc\u30b9\u4f5c\u308a\u3092\u8003\u3048\u306a\u3044\u3068\u3067\u3059\u306d\u3002<\/p>\n

\"X2GO\"<\/a><\/p>\n

osx \u304b\u3089 X2Go \u3057\u305f\u56f3<\/p>\n

 <\/p>\n

\u30e1\u30e2\u30ea\u306f\u3001512MB \u3068\u5c11\u306a\u3044\u3067\u3059\u304cCPU \u30d1\u30ef\u30fc\u304c\u3042\u308b\u306e\u3067\u30e1\u30e2\u30ea\u306e\u7bc4\u56f2\u5185\u306a\u3089\u3001GUI \u3082\u305d\u308c\u306a\u308a\u306b\u52d5\u304d\u307e\u3059\u3002<\/p>\n

CPU \u30af\u30ed\u30c3\u30af\u306f\u30011.2MHz \u306b\u8a2d\u5b9a\u3057\u305f\u307b\u3046\u304c\u3088\u3055\u305d\u3046\u3067\u3059\u3002\u6b63\u5e38\u306b\u5468\u6ce2\u6570\u304c\u3068\u308c\u3066\u3044\u306a\u3044\u3088\u3046\u306a\u306e\u3067\u3002\u307c\u3061\u307c\u3061\u3084\u3063\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n

Orange Pi PC \u306e\u8a2d\u5b9a\u30671.6G \u306e\u8a2d\u5b9a\u3092\u3057\u3066\u3044\u3066\u3082\u30011.2GHz \u307e\u3067\u306e\u3088\u3046\u3067\u3059\u3002<\/p>\n

 <\/p>\n

\u8ca0\u8377\u6642\u306eCPU \u30af\u30ed\u30c3\u30af\u306e\u72b6\u614b<\/p>\n

# cpupower frequency-info\nanalyzing CPU 0:\n  driver: cpufreq-sunxi\n  CPUs which run at the same hardware frequency: 0 1 2 3\n  CPUs which need to have their frequency coordinated by software: 0 1 2 3\n  maximum transition latency: 2.00 ms.\n  hardware limits: 480 MHz - 1.54 GHz\n  available cpufreq governors: conservative, ondemand, userspace, powersave, interactive, performance\n  current policy: frequency should be within 480 MHz and 1.54 GHz.\n                  The governor "interactive" may decide which speed to use\n                  within this range.\n  current CPU frequency is 1.20 GHz (asserted by call to hardware).\n  cpufreq stats: 60.0 MHz:0.00%, 120 MHz:0.00%, 240 MHz:0.00%, 312 MHz:0.00%, 408 MHz:0.00%, 480 MHz:0.00%, 504 MHz:0.00%, 600 MHz:0.00%, 648 MHz:0.00%, 720 MHz:0.00%, 816 MHz:0.00%, 912 MHz:0.00%, 1.01 GHz:0.00%, 1.10 GHz:0.00%, 1.20 GHz:100.00%, 1.34 GHz:0.00%, 1.44 GHz:0.00%, 1.54 GHz:0.00%<\/pre>\n

 <\/p>\n

\u25bc\u307e\u3068\u3081<\/p>\n

\u30fbOrangePi PC \u7528\u306e Fedora22 \u3067\u305d\u306e\u307e\u307e\u30d6\u30fc\u30c8\u3057\u305f<\/p>\n

\u30fbCPU\u30af\u30ed\u30c3\u30af\u306f\u3001\u4e0a\u96501.2GHz<\/p>\n

\u30fb\u3076\u3093\u56de\u3059\u306a\u3089\u3001\u30d5\u30a1\u30f3\u306f\u5fc5\u9808<\/p>\n

\u30fbUnixBench \u306f\u7dcf\u5408\u30b9\u30b3\u30a2 500\u7a0b\u5ea6\uff08OrangePi PC \u30921.2GHz \u99c6\u52d5\u3057\u305f\u3068\u304d\u3068\u540c\u7b49\uff09<\/p>\n

\u30fbOrangePi PC \u3068\u306e\u4fa1\u683c\u5dee\u306f\u3001600\u5186\u7a0b\u5ea6<\/p>\n

\u30fbLinux \u3092\u4f7f\u3063\u305f\u7d44\u307f\u8fbc\u307f\u3067\u5177\u4f53\u7684\u306b\u4f55\u304c\u3067\u304d\u308b\u304b\u3001\u3069\u3093\u306a\u7528\u9014\u304c\u3042\u308b\u304b\u306f\u307e\u3060\u3053\u308c\u304b\u3089\u6a21\u7d22<\/p>\n","protected":false},"excerpt":{"rendered":"

Orange Pi One \u306b\u30d5\u30a1\u30f3\u3092\u4ed8\u3051\u3066\u307f\u307e\u3057\u305f\u3002 Orange Pi PC \u3068\u6bd4\u8f03\u3059\u308b\u3068\u4e00\u56de\u308a\u5c0f\u3055\u3044\u3067\u3059\u3002 \u30d5\u30a1\u30f3\u3092\u4ed8\u3051\u308b\u524d\u306bCPU \u306e\u523b\u5370\u3092\u30ad\u30e3\u30d7\u30c1\u30e3\u30fc\u3057\u3066\u304a\u304d\u307e\u3059\u3002G1035BA 61A3 \u3068\u3042\u308a\u307e\u3059\u3002FAN […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_uag_custom_page_level_css":"","footnotes":""},"categories":[6,57,59],"tags":[],"acf":[],"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false,"post-thumbnail":false},"uagb_author_info":{"display_name":"JunkHack","author_link":"https:\/\/hack.gpl.jp\/author\/junkhack\/"},"uagb_comment_info":1,"uagb_excerpt":"Orange Pi One \u306b\u30d5\u30a1\u30f3\u3092\u4ed8\u3051\u3066\u307f\u307e\u3057\u305f\u3002 Orange Pi PC \u3068\u6bd4\u8f03\u3059\u308b\u3068\u4e00\u56de\u308a\u5c0f\u3055\u3044\u3067\u3059…","_links":{"self":[{"href":"https:\/\/hack.gpl.jp\/wp-json\/wp\/v2\/posts\/2109"}],"collection":[{"href":"https:\/\/hack.gpl.jp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hack.gpl.jp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hack.gpl.jp\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hack.gpl.jp\/wp-json\/wp\/v2\/comments?post=2109"}],"version-history":[{"count":0,"href":"https:\/\/hack.gpl.jp\/wp-json\/wp\/v2\/posts\/2109\/revisions"}],"wp:attachment":[{"href":"https:\/\/hack.gpl.jp\/wp-json\/wp\/v2\/media?parent=2109"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hack.gpl.jp\/wp-json\/wp\/v2\/categories?post=2109"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hack.gpl.jp\/wp-json\/wp\/v2\/tags?post=2109"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}