新しいのが出たので入れなおし。
インストール・初期設定
[root@sarah Cubieboard2]# 7za e cubieez_1.0.0_A20.7z 7-Zip (A) 9.20 Copyright (c) 1999-2010 Igor Pavlov 2010-11-18 p7zip Version 9.20 (locale=ja_JP.UTF-8,Utf16=on,HugeFiles=on,2 CPUs) Processing archive: cubieez_1.0.0_A20.7z Extracting cubieez_1.0.0_A20.img Everything is Ok Size: 1955594240 Compressed: 462695610 [root@sarah Cubieboard2]# dd if=./cubieez_1.0.0_A20.img of=/dev/sde 3819520+0 レコード入力 3819520+0 レコード出力 1955594240 バイト (2.0 GB) コピーされました、 686.935 秒、 2.8 MB/秒
ボードに挿入しブート
- Expand Filesystem => 実行
- Change User Password => root
- Enable Boot to Desktop => そのまま
- Internationalisation Options
- Change Locale(ja.JP.UTF-8、USとESも選ばれる)、Time Zoneは「Tokyo」、Keyboard Layoutは「Hewlett-Packard Internet Keyboard」でJPレイアウトにしとく
- Advaned Option =>Hostname変更、SSHを有効化
- 「Finish」 reboot
ネットワーク設定</etc/network/interfaces>
iface eth0 inet static address 192.168.0.220 netmask 255.255.255.0 gateway 192.168.0.1 dns-search tk.net dns-nameservers 192.168.0.1
DNS</etc/resolv.conf>
# Generated by NetworkManager #nameserver 8.8.8.8 nameserver 192.168.0.1
ホスト名</etc/hostname>
root@cubie2:~# cat /etc/hostname cubie2
NTP編集
root@cubie2:~# /etc/init.d/ntp stop [ ok ] Stopping NTP server: ntpd. root@cubie2:~# vi /etc/ntp.conf root@cubie2:~# cd /etc/ root@cubie2:/etc# cp ntp.conf ntp.conf.20140505 root@cubie2:/etc# vi ntp.conf (server 192.168.0.1 iburst) root@cubie2:/etc# /etc/init.d/ntp start [ ok ] Starting NTP server: ntpd. root@cubie2:/etc# ntpq -p remote refid st t when poll reach delay offset jitter ============================================================================== 192.168.0.1 .INIT. 16 u - 64 0 0.000 0.000 0.000 root@cubie2:/etc#
アップグレード・パッケージ追加
apt-get update
apt-get upgrade
apt-get install host
apt-get install ntpdate
apt-get install libusb-1.0
VGA設定
こちら と同じように実施
Kernel
root@cubie2:~# uname -r 3.4.43-sun7i root@cubie2:~# lsb_release -a No LSB modules are available. Distributor ID: Debian Description: Debian GNU/Linux 7.5 (wheezy) Release: 7.5 Codename: wheezy root@cubie2:~#
SSDの認識
root@cubie2:~# cat /sys/block/sda/queue/rotational 0 root@cubie2:~# cat /sys/block/sda/queue/scheduler [noop] deadline cfq root@cubie2:~#
もとから、noop IOスケジューラに設定されている。
F2FS
Kernel 3.8でないと駄目ー
f2fs-toolsをビルドするので以下いれた、あとベンチも。
apt-get install uuid
apt-get install uuid-dev
apt-get install bonnie++
mkfs.f2fs の実行までログ
http://sourceforge.net/projects/f2fs-tools/
root@cubie2:~# git clone git://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs-tools.git root@cubie2:~/f2fs-tools# root@cubie2:~/f2fs-tools# autoreconf --install root@cubie2:~/f2fs-tools# apt-get install uuid root@cubie2:~/f2fs-tools# apt-get install uuid-dev root@cubie2:~/f2fs-tools# ./configure root@cubie2:~/f2fs-tools# make
root@cubie2:~/f2fs-tools# ./mkfs/mkfs.f2fs -l f2fs /dev/sda1
F2FS-tools: mkfs.f2fs Ver: 1.2.0 (2014-04-07)
Info: Label = f2fs Info: sector size = 512 Info: total sectors = 234439600 (in 512bytes) Info: zone aligned segment0 blkaddr: 256 Info: Discarding device Info: format successful root@cubie2:~/f2fs-tools#