Orange Pi zero買いました
Raspberry pi zeroが売ってない or 異様に高いので、
AliexpressでOrange pi zeroを注文しました。
拡張ボードとケースがセットになっているものです。
為替により若干の変動はありますが、送料込みで2,000円程度で購入できます。
※本体だけであれば、1,400円程度ですね
日本ではあまり流行っていない?ようなので、備忘録を兼ねてやったことを書いてみます。
用意するもの
- 本体
- MicroSDカード…手持ちの64GBのものを使いました
- OS…今回はUbuntu serverを使ってみます(ダウンロード先)
イメージ書き込み~起動
ダウンロードしたOSを解凍して、.imgファイルをSDカードに書きみます。
Windowsの場合、Win32 Disk Imagerを使って書き込みができます。
SDカードを入れて、LANケーブルを繋いだら、電源を入れて(Micro-USBケーブル繋いで)みます
※コンソールも繋げられるよう(左上)なので、繋いでおきました
U-Boot SPL 2017.01-armbian (Feb 02 2017 - 03:04:34) DRAM: 512 MiB Trying to boot from MMC1 U-Boot 2017.01-armbian (Feb 02 2017 - 03:04:34 +0100) Allwinner Technology CPU: Allwinner H3 (SUN8I 1680) Model: Xunlong Orange Pi Zero DRAM: 512 MiB MMC: SUNXI SD/MMC: 0 *** Warning - bad CRC, using default environment In: serial Out: serial Err: serial Net: phy interface0 eth0: ethernet@1c30000 Hit any key to stop autoboot: 0 6944 bytes read in 157 ms (43 KiB/s) switch to partitions #0, OK mmc0 is current device Scanning mmc 0:1... Found U-Boot script /boot/boot.scr 2652 bytes read in 195 ms (12.7 KiB/s) ## Executing script at 43100000 U-boot loaded from SD Boot script loaded from mmc 123 bytes read in 136 ms (0 Bytes/s) 5155509 bytes read in 664 ms (7.4 MiB/s) 4754648 bytes read in 653 ms (6.9 MiB/s) ** File not found /boot/.next ** ** File not found .next ** 35384 bytes read in 521 ms (65.4 KiB/s) ## Loading init Ramdisk from Legacy Image at 43300000 ... Image Name: uInitrd Image Type: ARM Linux RAMDisk Image (gzip compressed) Data Size: 5155445 Bytes = 4.9 MiB Load Address: 00000000 Entry Point: 00000000 Verifying Checksum ... OK Using machid 0x1029 from environment Starting kernel ... [sun8i_fixup]: From boot, get meminfo: Start: 0x40000000 Size: 512MB ion_carveout reserve: 160m@0 256m@0 130m@1 200m@1 ion_reserve_select: ion chipid [0x2c00042! ion_reserve_common: ion reserve: [0x57e00000, 0x60000000]! Loading, please wait... starting version 229 Begin: Loading essential drivers ... done. Begin: Running /scripts/init-premount ... done. Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done. Begin: Running /scripts/local-premount ... Scanning for Btrfs filesystems done. Begin: Will now check root file system ... fsck from util-linux 2.27.1 [/sbin/fsck.ext4 (1) -- /dev/mmcblk0p1] fsck.ext4 -a -C0 /dev/mmcblk0p1 /dev/mmcblk0p1: clean, 48583/89584 files, 253109/358144 blocks done. done. Begin: Running /scripts/local-bottom ... done. Begin: Running /scripts/init-bottom ... done. Welcome to Ubuntu 16.04.1 LTS! [ OK ] Listening on fsck to fsckd communication Socket. [ OK ] Listening on udev Kernel Socket. [ OK ] Reached target Encrypted Volumes. [ OK ] Started Forward Password Requests to Wall Directory Watch. [ OK ] Listening on Journal Socket. [ OK ] Listening on Syslog Socket. [ OK ] Listening on Journal Audit Socket. [ OK ] Reached target Remote File Systems (Pre). [ OK ] Created slice System Slice. Starting Set console keymap... Mounting POSIX Message Queue File System... Starting Create list of required st... nodes for the current kernel... Starting Load Kernel Modules... Starting Nameserver information manager... Starting Restore / save the current clock... [ OK ] Created slice system-serial\x2dgetty.slice. [ OK ] Reached target Swap. [ OK ] Set up automount Arbitrary Executab...ats File System Automount Point. [ OK ] Reached target Remote File Systems. [ OK ] Started Dispatch Password Requests to Console Directory Watch. [ OK ] Created slice User and Session Slice. [ OK ] Reached target Slices. [ OK ] Listening on /dev/initctl Compatibility Named Pipe. [ OK ] Listening on udev Control Socket. Starting Remount Root and Kernel File Systems... [ OK ] Listening on Journal Socket (/dev/log). Mounting Debug File System... [ OK ] Mounted Debug File System. [ OK ] Mounted POSIX Message Queue File System. [ OK ] Started Set console keymap. [ OK ] Started Create list of required sta...ce nodes for the current kernel. [ OK ] Started Restore / save the current clock. [FAILED] Failed to start Load Kernel Modules. See 'systemctl status systemd-modules-load.service' for details. [ OK ] Started Remount Root and Kernel File Systems. [ OK ] Started Nameserver information manager. Starting Load/Save Random Seed... Starting udev Coldplug all Devices... Starting Apply Kernel Variables... Mounting FUSE Control File System... Starting Create Static Device Nodes in /dev... [ OK ] Mounted FUSE Control File System. [ OK ] Started Load/Save Random Seed. [ OK ] Started Apply Kernel Variables. [ OK ] Started Create Static Device Nodes in /dev. [ OK ] Started udev Coldplug all Devices. Starting udev Kernel Device Manager... [ OK ] Reached target Local File Systems (Pre). Mounting /tmp... [ OK ] Mounted /tmp. [ OK ] Started udev Kernel Device Manager. [ OK ] Found device /dev/ttyGS0. [ OK ] Reached target Local File Systems. Starting Armbian enhanced Log2Ram... Starting Set console font and keymap... Starting Raise network interfaces... [ OK ] Started Entropy daemon using the HAVEGE algorithm. Starting Journal Service... [ OK ] Started Armbian enhanced Log2Ram. [ OK ] Started Journal Service. [ OK ] Found device /dev/ttyS0. [ OK ] Listening on Load/Save RF Kill Switch Status /dev/rfkill Watch. [ OK ] Started ifup for eth0. [ OK ] Reached target Sound Card. Starting Flush Journal to Persistent Storage... Starting Load/Save RF Kill Switch Status... [ OK ] Started Flush Journal to Persistent Storage. [ OK ] Started Load/Save RF Kill Switch Status. Starting Create Volatile Files and Directories... [ OK ] Started Raise network interfaces. [ OK ] Started Create Volatile Files and Directories. Starting Update UTMP about System Boot/Shutdown... [ OK ] Reached target System Time Synchronized. [ OK ] Started Update UTMP about System Boot/Shutdown. [ OK ] Reached target System Initialization. [ OK ] Listening on D-Bus System Message Bus Socket. [ OK ] Reached target Sockets. [ OK ] Reached target Paths. Starting Armbian filesystem resize service... [ OK ] Started Daily apt activities. [ OK ] Started Daily Cleanup of Temporary Directories. [ OK ] Reached target Timers. [ OK ] Started Armbian filesystem resize service. [ OK ] Reached target Basic System. Starting Login Service... [ OK ] Started Armbian first run tasks. Starting Save/Restore Sound Card State... [ OK ] Started D-Bus System Message Bus. Starting System Logging Service... Starting LSB: Start/stop sysstat's sadc... Starting Permit User Sessions... Starting LSB: Load kernel modules needed to enable cpufreq scaling... [ OK ] Started Regular background program processing daemon. Starting LSB: Starts LIRC daemon.... Starting LSB: Armbian gathering hardware information... Starting Network Manager... [ OK ] Started System Logging Service. [ OK ] Started Permit User Sessions. [ OK ] Started Save/Restore Sound Card State. [ OK ] Started LSB: Start/stop sysstat's sadc. [ OK ] Started Network Manager. [ OK ] Started LSB: Starts LIRC daemon.. [ OK ] Started Login Service. [ OK ] Started LSB: Load kernel modules needed to enable cpufreq scaling. Starting LSB: set CPUFreq kernel parameters... Starting Network Manager Script Dispatcher Service... [ OK ] Reached target Network. Starting OpenBSD Secure Shell server... Starting Network Manager Wait Online... Starting Set console scheme... [ OK ] Started LSB: Armbian gathering hardware information. [ OK ] Started Set console scheme. [ OK ] Started OpenBSD Secure Shell server. [ OK ] Started Network Manager Script Dispatcher Service. Starting Hostname Service... [ OK ] Started LSB: set CPUFreq kernel parameters. [ OK ] Started Hostname Service. Starting LSB: Set sysfs variables from /etc/sysfs.conf... [ OK ] Started LSB: Set sysfs variables from /etc/sysfs.conf. [ 21.421192] [STA] !!!xradio_vif_setup: id=0, type=2, p2p=0 [FAILED] Failed to start Set console font and keymap. See 'systemctl status console-setup.service' for details. Starting WPA supplicant... Starting Authenticate and Authorize Users to Run Privileged Tasks... [ OK ] Created slice system-getty.slice. [ OK ] Started WPA supplicant. [ OK ] Started Authenticate and Authorize Users to Run Privileged Tasks. [ OK ] Started Network Manager Wait Online. [ OK ] Reached target Network is Online. Starting LSB: Advanced IEEE 802.11 management daemon... Starting LSB: disk temperature monitoring daemon... Starting LSB: Start NTP daemon... Starting /etc/rc.local Compatibility... [ OK ] Started LSB: Advanced IEEE 802.11 management daemon. [ OK ] Started /etc/rc.local Compatibility. [ OK ] Started LSB: disk temperature monitoring daemon. [ OK ] Started LSB: Start NTP daemon. [ OK ] Started Serial Getty on ttyGS0. [ OK ] Started Getty on tty1. [ OK ] Started Serial Getty on ttyS0. [ OK ] Reached target Login Prompts. [ OK ] Reached target Multi-User System. [ OK ] Reached target Graphical Interface. Starting Update UTMP about System Runlevel Changes... [ OK ] Started Update UTMP about System Runlevel Changes. Ubuntu 16.04.1 LTS orangepizero ttyS0 orangepizero login:
ログイン
LANケーブルを繋いでいればDHCPでアドレスを取得しますので、SSHで接続します。
ユーザ名:root、パスワード:1234でログインできます。
初回ログイン時、rootパスワードを変える必要があるので、好きなものに変更します。
※↓はシリアルコンソールなので、SSHの場合は若干変わるかも
orangepizero login: root Password: 1234(表示されません) You are required to change your password immediately (root enforced) Changing password for root. (current) UNIX password: 1234(表示されません) Enter new UNIX password: 新規パスワード(表示されません) Retype new UNIX password: 新規パスワード再入力(表示されません)
また、新たなユーザを作るかどうかも聞かれるので、質問どおりに入力してください
※必要なければCtrl-Cでキャンセルできます
___ ____ _ _____ / _ \ _ __ __ _ _ __ __ _ ___ | _ \(_) |__ /___ _ __ ___ | | | | '__/ _` | '_ \ / _` |/ _ \ | |_) | | / // _ \ '__/ _ \ | |_| | | | (_| | | | | (_| | __/ | __/| | / /| __/ | | (_) | \___/|_| \__,_|_| |_|\__, |\___| |_| |_| /____\___|_| \___/ |___/ Welcome to ARMBIAN 5.25 stable Ubuntu 16.04.1 LTS 3.4.113-sun8i System load: 0.01 Up time: 10 min Memory usage: 5 % of 494Mb IP: 192.168.0.46 CPU temp: 54°C Usage of /: 82% of 1.4G [ 5 updates to install: apt-get upgrade ] Warning: a reboot is needed to finish resizing the filesystem Please reboot the system as soon as possible New to Armbian? Check the documentation first: docs.armbian.com Thank you for choosing Armbian! Support: www.armbian.com Creating a new user account. Press <Ctrl-C> to abort Please provide a username (eg. your forename): 好きな名前 Trying to add user 好きな名前 Adding user `好きな名前' ... Adding new group `好きな名前' (1000) ... Adding new user `好きな名前' (1000) with group `好きな名前' ... Creating home directory `/home/好きな名前' ... Copying files from `/etc/skel' ... Enter new UNIX password: Retype new UNIX password: passwd: password updated successfully Changing the user information for 好きな名前 Enter the new value, or press ENTER for the default(特に必要なければ、EnterでOKです) Full Name []: Room Number []: Work Phone []: Home Phone []: Other []: Is the information correct? [Y/n] Y(間違いなければ"Y"を) Dear 好きな名前, your account 好きな名前 has been created and is sudo enabled. Please use this account for your daily work from now on.
その他
無線LAN
内蔵の無線LANは日本の技適が通っていないので、OFFにしておきます(無線LANを使うときはUSBのドングルを使います)
$ ifconfig wlan0 wlan0 Link encap:Ethernet HWaddr xx:xx:xx:xx:xx:xx UP BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) ※デフォルトではupします $ sudo echo "blacklist xradio_wlan" &gt;&gt; /etc/modprobe.d/blacklist.conf $ sudo reboot ---リブート--- $ ifconfig wlan0 wlan0: error fetching interface information: Device not found
CPU温度
起動してから特に何もしていないにもかかわらず、CPUの温度が50℃を超えていますが、
こんなものなんですかね??
root@orangepizero:~# cat /sys/class/thermal/thermal_zone0/temp 53 ← 53℃