Friendly ARM NanoPC-T4を入手したので試してみることに。
特徴
- Rockchiip RK3399(ARMv8-A) 2core+4core
- LPDDR3 4GB
- M.2 M-Key PCIe x4 socket(NVMe-SSD)
- WiFi/BT: 802.11a/b/g/n/ac,BT4.1
- USB 2.0×2
- USB 3.0×1
- USB Type-C
- eMMC 16GB
- micorSD
OSテスト
- eMMCブート
- ubuntu 18.04(64bit)
- f29化は断念
- microSDブート
- ubuntu 18.04(64bit)
- Fedora 29 (64bit) ※ubuntu 18.04のブートイメージ利用
- nvmeマウント
- 問題なし
- USB-NIC
- Buffalo LUA3-U2-AGT (USB2.0 GbE) OK
- USB-Serial
- CP210 OK
- PL2303 OK
- オンボード WiFi wlan0 OK
GPIO
- WinringPi(WiringNP)は、ubuntu環境のバイナリでf29環境でも実行OK
- ユーザが自由に使えるgpioポートは少ない感じ
-
+------+-----+----------+------+ Model NanoPC-T4 +------+----------+-----+------+ | GPIO | wPi | Name | Mode | V | Physical | V | Mode | Name | wPi | GPIO | +------+-----+----------+------+---+----++----+---+------+----------+-----+------+ | | | 3.3V | | | 1 || 2 | | | 5V | | | | | | I2C2_SDA | | | 3 || 4 | | | 5V | | | | | | I2C2_SCL | | | 5 || 6 | | | GND(0V) | | | | 32 | 7 | GPIO1_A0 | IN | 0 | 7 || 8 | | | I2C3_SCL | | | | | | GND(0V) | | | 9 || 10 | | | I2C3_SDA | | | | 33 | 0 | GPIO1_A1 | IN | 0 | 11 || 12 | 1 | IN | GPIO1_C2 | 1 | 50 | | 35 | 2 | GPIO1_A3 | IN | 0 | 13 || 14 | | | GND(0V) | | | | 36 | 3 | GPIO1_A4 | IN | 0 | 15 || 16 | 0 | IN | GPIO1_C6 | 4 | 54 | | | | 3.3V | | | 17 || 18 | 0 | IN | GPIO1_C7 | 5 | 55 | | | | UART4_TX | | | 19 || 20 | | | GND(0V) | | | | | | UART4_RX | | | 21 || 22 | 0 | IN | GPIO1_D0 | 6 | 56 | | | | SPI1_CLK | | | 23 || 24 | | | SPI1_CSn | | | | | | GND(0V) | | | 25 || 26 | | | SPDIF_TX | | | | | | I2C2_SDA | | | 27 || 28 | | | I2C2_SCL | | | | | | I2S1_LRX | | | 29 || 30 | | | GND(0V) | | | | | | I2S1_LTX | | | 31 || 32 | | | I2S_CLK | | | | | | I2S1_SCL | | | 33 || 34 | | | GND(0V) | | | | | | I2S1SDI0 | | | 35 || 36 | | | I2S1SDO0 | | | | 124 | 25 | GPIO3_D4 | ALT | | 37 || 38 | | ALT | GPIO3_D5 | 28 | 125 | | | | GND(0V) | | | 39 || 40 | | ALT | GPIO3_D6 | 29 | 126 | +------+-----+----------+------+---+----++----+---+------+----------+-----+------+
-
- i2cは未テスト(i2cdetectのみテスト)
-
# i2cdetect -y 0 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: -- -- -- -- -- -- -- -- -- -- -- -- -- 10: -- -- -- -- -- -- -- -- -- -- -- UU -- -- -- -- 20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 40: UU UU -- -- -- -- -- -- -- -- -- -- -- -- -- -- 50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 70: -- -- -- -- -- -- -- -- # i2cdetect -y 1 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: -- -- -- -- -- -- -- -- -- -- -- -- -- 10: UU -- -- -- -- -- -- -- -- -- UU -- -- -- -- -- 20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 30: -- -- -- -- -- -- UU -- -- -- -- -- -- -- -- -- 40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 70: -- -- -- -- -- -- -- --
-
unixbench
# cat unixbench-5.1.3/results/mz20mon-nanopct4-2019-02-21-02 BYTE UNIX Benchmarks (Version 5.1.3) System: mz20mon-nanopct4: GNU/Linux OS: GNU/Linux -- 4.4.143 -- #1 SMP Tue Nov 20 11:10:11 CST 2018 Machine: aarch64 (aarch64) Language: en_US.utf8 (charmap="UTF-8", collate="UTF-8") 00:37:42 up 1:30, 1 user, load average: 0.32, 0.18, 0.06; runlevel 2019-02-20 ------------------------------------------------------------------------ Benchmark Run: 木 2月 21 2019 00:37:42 - 01:05:52 6 CPUs in system; running 1 parallel copy of tests Dhrystone 2 using register variables 19474064.5 lps (10.0 s, 7 samples) Double-Precision Whetstone 3075.6 MWIPS (9.3 s, 7 samples) Execl Throughput 2767.9 lps (29.7 s, 2 samples) File Copy 1024 bufsize 2000 maxblocks 269133.3 KBps (30.0 s, 2 samples) File Copy 256 bufsize 500 maxblocks 107569.0 KBps (30.0 s, 2 samples) File Copy 4096 bufsize 8000 maxblocks 559066.4 KBps (30.0 s, 2 samples) Pipe Throughput 748520.7 lps (10.0 s, 7 samples) Pipe-based Context Switching 95552.3 lps (10.0 s, 7 samples) Process Creation 3587.5 lps (30.0 s, 2 samples) Shell Scripts (1 concurrent) 2235.1 lpm (60.1 s, 2 samples) Shell Scripts (8 concurrent) 544.3 lpm (60.1 s, 2 samples) System Call Overhead 716059.3 lps (10.0 s, 7 samples) System Benchmarks Index Values BASELINE RESULT INDEX Dhrystone 2 using register variables 116700.0 19474064.5 1668.7 Double-Precision Whetstone 55.0 3075.6 559.2 Execl Throughput 43.0 2767.9 643.7 File Copy 1024 bufsize 2000 maxblocks 3960.0 269133.3 679.6 File Copy 256 bufsize 500 maxblocks 1655.0 107569.0 650.0 File Copy 4096 bufsize 8000 maxblocks 5800.0 559066.4 963.9 Pipe Throughput 12440.0 748520.7 601.7 Pipe-based Context Switching 4000.0 95552.3 238.9 Process Creation 126.0 3587.5 284.7 Shell Scripts (1 concurrent) 42.4 2235.1 527.1 Shell Scripts (8 concurrent) 6.0 544.3 907.2 System Call Overhead 15000.0 716059.3 477.4 ======== System Benchmarks Index Score 604.7 ------------------------------------------------------------------------ Benchmark Run: 木 2月 21 2019 01:05:52 - 01:34:19 6 CPUs in system; running 6 parallel copies of tests Dhrystone 2 using register variables 59809688.0 lps (10.0 s, 7 samples) Double-Precision Whetstone 11855.9 MWIPS (9.1 s, 7 samples) Execl Throughput 5007.9 lps (29.9 s, 2 samples) File Copy 1024 bufsize 2000 maxblocks 249096.7 KBps (30.0 s, 2 samples) File Copy 256 bufsize 500 maxblocks 77409.4 KBps (30.0 s, 2 samples) File Copy 4096 bufsize 8000 maxblocks 630809.2 KBps (30.0 s, 2 samples) Pipe Throughput 2800513.8 lps (10.0 s, 7 samples) Pipe-based Context Switching 351782.5 lps (10.0 s, 7 samples) Process Creation 8008.9 lps (30.0 s, 2 samples) Shell Scripts (1 concurrent) 4412.2 lpm (60.1 s, 2 samples) Shell Scripts (8 concurrent) 619.7 lpm (60.3 s, 2 samples) System Call Overhead 2055544.3 lps (10.0 s, 7 samples) System Benchmarks Index Values BASELINE RESULT INDEX Dhrystone 2 using register variables 116700.0 59809688.0 5125.1 Double-Precision Whetstone 55.0 11855.9 2155.6 Execl Throughput 43.0 5007.9 1164.6 File Copy 1024 bufsize 2000 maxblocks 3960.0 249096.7 629.0 File Copy 256 bufsize 500 maxblocks 1655.0 77409.4 467.7 File Copy 4096 bufsize 8000 maxblocks 5800.0 630809.2 1087.6 Pipe Throughput 12440.0 2800513.8 2251.2 Pipe-based Context Switching 4000.0 351782.5 879.5 Process Creation 126.0 8008.9 635.6 Shell Scripts (1 concurrent) 42.4 4412.2 1040.6 Shell Scripts (8 concurrent) 6.0 619.7 1032.8 System Call Overhead 15000.0 2055544.3 1370.4 ======== System Benchmarks Index Score 1184.5
その他情報
# uname -a Linux mz20mon-nanopct4 4.4.143 #1 SMP Tue Nov 20 11:10:11 CST 2018 aarch64 aarch64 aarch64 GNU/Linux # cat /etc/redhat-release Fedora release 29 (Twenty Nine) # lsusb Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 003 Device 002: ID 0411:006e BUFFALO INC. (formerly MelCo., Inc.) LUA-U2-GT 10/100/1000 Ethernet Adapter Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 002 Device 002: ID 1c4f:0002 SiGma Micro Keyboard TRACER Gamma Ivory Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub # lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT mmcblk1 179:0 0 14.6G 0 disk mmcblk1boot0 179:32 0 4M 1 disk mmcblk1boot1 179:64 0 4M 1 disk mmcblk1rpmb 179:96 0 4M 0 disk mmcblk0 179:128 0 14.9G 0 disk └─mmcblk0p1 179:129 0 14.8G 0 part / nvme0n1 259:0 0 232.9G 0 disk └─nvme0n1p1 259:1 0 232.9G 0 part /data # lscpu アーキテクチャ: aarch64 バイト順序: Little Endian CPU: 6 オンラインになっている CPU のリスト: 0-5 コアあたりのスレッド数: 1 ソケットあたりのコア数: 3 ソケット数: 2 ベンダー ID: ARM モデル: 4 モデル名: Cortex-A53 ステッピング: r0p4 CPU 最大 MHz: 1800.0000 CPU 最小 MHz: 408.0000 BogoMIPS: 48.00 フラグ: fp asimd evtstrm aes pmull sha1 sha2 crc32 # lspci 00:00.0 PCI bridge: Fuzhou Rockchip Electronics Co., Ltd RK3399 PCI Express Root Port 01:00.0 Non-Volatile memory controller: Sandisk Corp WD Black 2018/PC SN720 NVMe SSD # df -h ファイルシス サイズ 使用 残り 使用% マウント位置 udev 1.9G 0 1.9G 0% /dev tmpfs 386M 5.7M 381M 2% /run /dev/mmcblk0p1 15G 2.3G 13G 16% / tmpfs 1.9G 8.0K 1.9G 1% /dev/shm tmpfs 1.9G 0 1.9G 0% /sys/fs/cgroup /dev/nvme0n1p1 229G 14G 204G 7% /data tmpfs 1.9G 4.0K 1.9G 1% /tmp tmpfs 1.9G 0 1.9G 0% /var/tmp tmpfs 386M 0 386M 0% /run/user/0 # cat /proc/interrupts CPU0 CPU1 CPU2 CPU3 CPU4 CPU5 14: 0 0 0 0 0 0 GICv3 29 Edge arch_timer 15: 29915 13843 19905 17540 17986 21483 GICv3 30 Edge arch_timer 17: 39716 15911 15339 39364 14158 14063 GICv3 113 Level rk_timer 20: 0 0 0 0 0 0 GICv3 37 Level ff6d0000.dma-controller 21: 0 0 0 0 0 0 GICv3 38 Level ff6d0000.dma-controller 22: 0 0 0 0 0 0 GICv3 39 Level ff6e0000.dma-controller 23: 0 0 0 0 0 0 GICv3 40 Level ff6e0000.dma-controller 24: 3532 0 0 0 0 0 GICv3 44 Level eth0 25: 127974 0 0 0 0 0 GICv3 96 Level dw-mci 26: 30090 0 0 0 0 0 GICv3 97 Level dw-mci 27: 504 0 0 0 0 0 GICv3 43 Level mmc1 28: 4 0 0 0 0 0 GICv3 58 Level ehci_hcd:usb5 29: 79 0 0 0 0 0 GICv3 60 Level ohci_hcd:usb6 30: 2 0 0 0 0 0 GICv3 62 Level ehci_hcd:usb1 31: 34 0 0 0 0 0 GICv3 64 Level ohci_hcd:usb2 33: 25930 0 0 0 0 0 GICv3 94 Level ff100000.saradc 34: 8553 0 0 0 0 0 GICv3 89 Level ff3c0000.i2c 35: 378 0 0 0 0 0 GICv3 91 Level ff110000.i2c 36: 12 0 0 0 0 0 GICv3 67 Level ff120000.i2c 37: 45 0 0 0 0 0 GICv3 68 Level ff160000.i2c 39: 0 0 0 0 0 0 GICv3 132 Level debug 40: 0 0 0 0 0 0 GICv3 129 Level rockchip_thermal 42: 60 0 0 0 0 0 GICv3 88 Level ff3d0000.i2c 43: 1 0 0 0 0 0 GICv3 81 Level pcie-sys 45: 0 0 0 0 0 0 GICv3 83 Level pcie-client 47: 0 0 0 0 0 0 GICv3 145 Level ff650000.vpu_service 48: 0 0 0 0 0 0 GICv3 146 Level ff650000.vpu_service 50: 0 0 0 0 0 0 GICv3 148 Level ff660000.rkvdec 56: 1 0 0 0 0 0 GICv3 51 Level ff9a0000.gpu 57: 1 0 0 0 0 0 GICv3 52 Level ff9a0000.gpu 58: 1 0 0 0 0 0 GICv3 53 Level ff9a0000.gpu 59: 1076 0 0 0 0 0 GICv3 151 Level ff8f0000.vop, ff8f0000.vop 60: 1096 0 0 0 0 0 GICv3 150 Level ff900000.vop, ff900000.vop 61: 0 0 0 0 0 0 GICv3 75 Level ff910000.cif_isp 62: 0 0 0 0 0 0 GICv3 76 Level ff920000.cif_isp 63: 3 0 0 0 0 0 GICv3 55 Level ff940000.hdmi 64: 3 0 0 0 0 0 GICv3 42 Level analogix-dp 73: 4509 0 0 0 0 0 gpio0 3 Level bcmsdh_sdmmc 74: 0 0 0 0 0 0 gpio0 4 Edge bt_default_wake_host_irq 75: 0 0 0 0 0 0 gpio0 5 Edge GPIO Key Power 104: 0 0 0 0 0 0 gpio1 2 Level fusb302 123: 5 0 0 0 0 0 gpio1 21 Level rk808 226: 0 0 0 0 0 0 gpio4 28 Edge Headphone detection 230: 1 0 0 0 0 0 GICv3 63 Level rockchip_usb2phy 231: 0 0 0 0 0 0 GICv3 143 Level rockchip_usb2phy 232: 1 0 0 0 0 0 dummy 0 Edge 233: 0 0 0 0 0 0 ITS-MSI 0 Edge PCIe PME, aerdrv 235: 18938 0 0 0 0 0 GICv3 142 Level xhci-hcd:usb3 236: 2624 0 0 0 0 0 ITS-MSI 524288 Edge nvme0q0, nvme0q1 237: 0 622 0 0 0 0 ITS-MSI 524289 Edge nvme0q2 238: 0 0 3335 0 0 0 ITS-MSI 524290 Edge nvme0q3 239: 0 0 0 357 0 0 ITS-MSI 524291 Edge nvme0q4 240: 1 0 0 0 859 0 ITS-MSI 524292 Edge nvme0q5 241: 0 0 0 0 0 220 ITS-MSI 524293 Edge nvme0q6 247: 0 0 0 0 0 0 rk808 5 Edge RTC alarm 251: 1 0 0 0 0 0 GICv3 59 Level rockchip_usb2phy 252: 0 0 0 0 0 0 GICv3 138 Level rockchip_usb2phy 253: 0 0 0 0 0 0 GICv3 135 Level rockchip_usb2phy_bvalid IPI0: 26343 18968 12109 61120 19313 29886 Rescheduling interrupts IPI1: 28 37 39 34 27 32 Function call interrupts IPI2: 0 0 0 0 0 0 CPU stop interrupts IPI3: 0 0 0 0 0 0 CPU stop (for crash dump) interrupts IPI4: 1035 1003 1770 1014 759 973 Timer broadcast interrupts IPI5: 0 0 0 0 0 0 IRQ work interrupts IPI6: 0 0 0 0 0 0 CPU wake-up interrupts Err: 0 # systemctl -t service UNIT LOAD ACTIVE SUB DESCRIPTION atd.service loaded active running Deferred execution scheduler crond.service loaded active running Command Scheduler dbus-daemon.service loaded active running D-Bus System Message Bus dracut-shutdown.service loaded active exited Restore /run/initramfs on shutdown getty@tty1.service loaded active running Getty on tty1 irqbalance.service loaded active running irqbalance daemon kmod-static-nodes.service loaded active exited Create list of required static device nodes for the current kernel mariadb.service loaded active running MariaDB 10.3 database server NetworkManager-wait-online.service loaded active exited Network Manager Wait Online NetworkManager.service loaded active running Network Manager polkit.service loaded active running Authorization Manager postgresql.service loaded active running PostgreSQL database server rc-local.service loaded active exited /etc/rc.d/rc.local Compatibility rngd.service loaded active running Hardware RNG Entropy Gatherer Daemon rpc-statd-notify.service loaded active exited Notify NFS peers of a restart rsyslog.service loaded active running System Logging Service smartd.service loaded active running Self Monitoring and Reporting Technology (SMART) Daemon sshd.service loaded active running OpenSSH server daemon systemd-backlight@backlight:backlight.service loaded active exited Load/Save Screen Backlight Brightness of backlight:backlight systemd-fsck@dev-nvme0n1p1.service loaded active exited File System Check on /dev/nvme0n1p1 systemd-journal-flush.service loaded active exited Flush Journal to Persistent Storage systemd-journald.service loaded active running Journal Service systemd-logind.service loaded active running Login Service systemd-modules-load.service loaded active exited Load Kernel Modules systemd-random-seed.service loaded active exited Load/Save Random Seed systemd-remount-fs.service loaded active exited Remount Root and Kernel File Systems systemd-sysctl.service loaded active exited Apply Kernel Variables systemd-tmpfiles-setup-dev.service loaded active exited Create Static Device Nodes in /dev systemd-tmpfiles-setup.service loaded active exited Create Volatile Files and Directories systemd-udev-settle.service loaded active exited udev Wait for Complete Device Initialization systemd-udev-trigger.service loaded active exited udev Coldplug all Devices systemd-udevd.service loaded active running udev Kernel Device Manager systemd-update-utmp.service loaded active exited Update UTMP about System Boot/Shutdown systemd-user-sessions.service loaded active exited Permit User Sessions user-runtime-dir@0.service loaded active exited User Runtime Directory /run/user/0 user@0.service loaded active running User Manager for UID 0 wpa_supplicant.service loaded active running WPA supplicant LOAD = Reflects whether the unit definition was properly loaded. ACTIVE = The high-level unit activation state, i.e. generalization of SUB. SUB = The low-level unit activation state, values depend on unit type. 37 loaded units listed. Pass --all to see loaded but inactive units, too. To show all installed unit files use 'systemctl list-unit-files'. # free total used free shared buff/cache available Mem: 3950696 158236 3553792 25996 238668 3692384 Swap: 2047996 0 2047996
続く