Aujourd’hui, je vais m’intéresser au concurrent low cost du Raspberry Pi 2 : l’orange Pi Pc.
Présentation
L’orange Pi Pc est une carte de développement de la société Orange http://www.orangepi.org/orangepipc/ .
Elle est très abordable puisqu’on peut la trouver a 17€76 su Ali (14€30 + 3€46 de frais de port).
Caractéristiques principales :
Doc : https://docs.armbian.com/Hardware_Allwinner-H3/
Communauté : http://linux-sunxi.org/Xunlong_Orange_Pi_PC
Logiciels :
Le fabricant propose Android, Lubuntu, Debian, Raspbian et Fedora 22 sur sa page de téléchargement (http://www.orangepi.org/downloadresources/ )
Je recommande la distribution Armbian pour OPI PC téléchargeable ici https://www.armbian.com/orange-pi-pc/
Tweaks :
activation de la led rouge en cas d’activité de la carte sd ( kernel legacy 3) :
1 2 3 |
echo none >/sys/class/leds/red_led/trigger echo mmc0 >/sys/class/leds/red_led/trigger echo 1 >/sys/class/leds/green_led/brightness |
affichage de la température (mise à jour toutes les 2s.) :
1 |
# watch -n 2 cat /sys/devices/virtual/thermal/thermal_zone0/temp |
affichage de la vitesse actuelle du cpu :
1 |
# cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq |
test simple de la vitesse du cpu :
1 |
# sysbench --num-threads=4 --test=cpu --cpu-max-prime=20000 --validate run |
copie d’une carte sd vers une autre carte sd (plus grande) :
1 2 3 4 5 |
(sur un autre pc linux, brancher les 2 cartes sd) # dd if=/dev/sda of=/dev/sdb bs=1M ou # pv < /dev/sda > /dev/sdb 1.75GiB 0:03:04 [9.74MiB/s] [==> ] 10% ETA 0:24:56 |
redimensionnement de la nouvelle carte sd :
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
root@orangepi:~# fdisk /dev/mmcblk0 Command (m for help): p Disk /dev/mmcblk0: 15.8 GB, 15804137472 bytes 4 heads, 16 sectors/track, 482304 cylinders, total 30867456 sectors ... Disk identifier: 0x34605ba5 Device Boot Start End Blocks Id System /dev/mmcblk0p1 40960 124927 41984 83 Linux /dev/mmcblk0p2 124928 7170047 3522560 83 Linux Command (m for help): d Partition number (1-4): 2 Command (m for help): n Partition type: p primary (1 primary, 0 extended, 3 free) e extended Select (default p): p Partition number (1-4, default 2): 2 First sector (2048-30867455, default 2048): 124928 Last sector, +sectors or +size{K,M,G} (124928-30867455, default 30867455): Using default value 30867455 Command (m for help): w Theen quit (command q), reboot. You will then be able to use resize: resizefs /dev/mmcblk0p2 |
Fix thermal problem for OPI One :
1 2 3 |
# tail -f /var/log/messages : ... kernel: [ 948.007540] [ARISC WARING] :callback not install ... kernel: [ 948.007564] [cpu_freq] ERR:set cpu frequency to 480MHz failed! |
Useable with all common Debian based OS images that rely on kernel 3.4.x (not needed with Armbian that ships with sane/safe defaults — the fixes are already applied).
If you’re already using mainline kernel (4.x or above) then simply ignore this — you’re not affected 🙂
1 2 3 4 |
Login as root # wget http://kaiser-edv.de/tmp/H9rWPf/fix-thermal-problems.sh # chmod a+x fix-thermal-problems.sh # ./fix-thermal-problems.sh |
Affichage de la dtc (Device tree) :
1 2 |
# dtc -I dtb /boot/dtb-4.10.11-sun8i/sun8i-h3-orangepi-one.dtb -O dts -o /tmp/foo.dts # nano /temp/foo.dts |