login : root
password: centos
キーボード設定を行う
$ localectl set-keymap jp106
$ localectl set-keymap jp-OADG109A
##System Localeを変更もしておきます
$ localectl set-locale LANG=ja_JP.utf8
cd /etc/yum.repos.d
vi kernel.repo
vi /etc/yum.repos.d/CentOS-armhfp-kernel.repo
-------------------------------------------------------------------
-----------------------------------------------------------------------------------------
<不要>
<追加>
baseurl=http://mirror.centos.org/altarch/7/kernel/$basearch/kernel-$kvariant
<追加>
baseurl=http://mirror.centos.org/altarch/7/kernel/$basearch/kernel-rpi2
パーテーションの設定:
--------------------------------------------------------------
[root@centos-rpi3 ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/root 2.0G 1.1G 804M 57% /
devtmpfs 459M 0 459M 0% /dev
tmpfs 463M 0 463M 0% /dev/shm
tmpfs 463M 12M 451M 3% /run
tmpfs 463M 0 463M 0% /sys/fs/cgroup
/dev/mmcblk0p1 500M 50M 450M 10% /boot
tmpfs 93M 0 93M 0% /run/user/0
[root@centos-rpi3 ~]# parted /dev/mmcblk0
GNU Parted 3.1
Using /dev/mmcblk0
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) p
Model: SD USD (sd/mmc)
Disk /dev/mmcblk0: 31.7GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:
Number Start End Size Type File system Flags
1 1049kB 525MB 524MB primary fat16 lba
2 525MB 1062MB 537MB primary linux-swap(v1)
3 1062MB 3210MB 2147MB primary ext4
(parted) rm 3
Error: Partition(s) 3 on /dev/mmcblk0 have been written, but we have been unable to inform the kernel of the change, probably because it/they are in use. As a
result, the old partition(s) will remain in use. You should reboot now before making further changes.
Ignore/Cancel? i
(parted) p
Model: SD USD (sd/mmc)
Disk /dev/mmcblk0: 31.7GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:
Number Start End Size Type File system Flags
1 1049kB 525MB 524MB primary fat16 lba
2 525MB 1062MB 537MB primary linux-swap(v1)
(parted) p
Model: SD USD (sd/mmc)
Disk /dev/mmcblk0: 31.7GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:
Number Start End Size Type File system Flags
1 1049kB 525MB 524MB primary fat16 lba
2 525MB 1062MB 537MB primary linux-swap(v1)
(parted) mkpart primary 1062MB 31.7GB
Error: Partition(s) 3 on /dev/mmcblk0 have been written, but we have been unable to inform the kernel of the change, probably because it/they are in use. As a
result, the old partition(s) will remain in use. You should reboot now before making further changes.
Ignore/Cancel? i
(parted) p
Model: SD USD (sd/mmc)
Disk /dev/mmcblk0: 31.7GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:
Number Start End Size Type File system Flags
1 1049kB 525MB 524MB primary fat16 lba
2 525MB 1062MB 537MB primary linux-swap(v1)
3 1062MB 31.7GB 30.6GB primary ext4
(parted) quit
Information: You may need to update /etc/fstab.
[root@centos-rpi3 ~]# reboot
------------------------------------------------------------------
------------------------------------------------------------------
[root@centos-rpi3 ~]# fdisk -l /dev/mmcblk0
Disk /dev/mmcblk0: 31.7 GB, 31674335232 bytes, 61863936 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0x00051d7c
Device Boot Start End Blocks Id System
/dev/mmcblk0p1 2048 1026047 512000 c W95 FAT32 (LBA)
/dev/mmcblk0p2 1026048 2074623 524288 82 Linux swap / Solaris
/dev/mmcblk0p3 2074624 61863935 29894656 83 Linux
[root@centos-rpi3 ~]# resize2fs /dev/mmcblk0p3
resize2fs 1.42.9 (28-Dec-2013)
Filesystem at /dev/mmcblk0p3 is mounted on /; on-line resizing required
old_desc_blocks = 1, new_desc_blocks = 4
The filesystem on /dev/mmcblk0p3 is now 7473664 blocks long.
-------------------------------------------------------------------------------------------------
WIFIの設定:
# yum -y install git
# git clone https://github.com/RPi-Distro/firmware-nonfree.git
# mv /lib/firmware/brcm{,.org}
# cp -R firmware-nonfree/brcm80211/brcm /lib/firmware/brcm
rpi-updateをダウンロードして実行します。この中でFirmwareのアップデートなどが行われます。アップデート後は再起動します。
# curl -L --output /usr/bin/rpi-update https://raw.githubusercontent.com/Hexxeh/rpi-update/master/rpi-update
# chmod +x /usr/bin/rpi-update
# rpi-update
# reboot