« 2016年06月 | メイン | 2016年08月 »
2016年07月08日
razberry pie3にfedora入れよう
Centos7がrazberry pie3対応が中途半端でGUIなど未対応っぽいので、似ているfedoraを入れてみようと思い作業メモをここに残す
参考
http://linux.yebisu.jp/memo/984
さてこのサイトrazberry pie2だけど3でもいけるだろうという軽いノリでスタート。
海苔食いたい。
スクリプトを作ってくれてるエロい人がいるので感謝
git clone https://github.com/sjenning/rpi2-fedora-image-builder.git
スクリプトの内容は
Downloads the official image from IMAGEURL
Decompresses the official image
Strips the root filesystem image out of the official image (root.img)
Creates a vfat boot partition image (boot.img) of size BOOTSIZE
Clones the raspberrypi/firmware repository from Github
Copies the boot files into the boot filesystem
Resizes the root filesystem to ROOTSIZE
Copies the kernel modules into the root filesystem
Generates an /etc/fstab
Creates a disk image file, partitions it, and copies the boot and root filesystem images into the created partitions
だってさw
settings.conf 変更
mkimage.sh:をcentosでも動くように変更
###ROOTOFFSET=$(partx –show $IMAGEFILE | tail -n 1 | awk '{print $2}')
ROOTOFFSET=$(kpartx -dl $IMAGEFILE | tail -n 2 | awk '{print $6}')
:
###sudo mount boot.img $MNTDIR || exit 1
sudo mount -o loop boot.img $MNTDIR || exit 1
:
###sudo mount root.img $MNTDIR || exit 1
sudo mount -o loop root.img $MNTDIR || exit 1
がりがり動きます。正常終了すればディスクイメージ出来てる。
おー rasberry pie3でも起動できそうだよ
初回になにかセッティングあるのね。がんばれ
初期パスワードは・・・・なんだ・・・・
投稿者 muuming : 14:04
rasberry pie3 centosその後
やったことメモ
参考 http://qiita.com/k-sh/items/1e4d3ef8d10cc8271963
yum install rpmdevtools
yum install yum-utils
yum install gcc-c++
うぉおお Centos「とりあえず、最小インストールイメージだけ作ったけど、まだGUIは未対応だよ」っぽいなぁ。
https://www.centos.org/forums/viewtopic.php?t=55708
しょうがない別のディストリビューションあたってみるか・・・・
CUIだけなら十分ぽいんだけどねぇ。VNCで家の回線上のブラウザを使うのが目的なので
投稿者 muuming : 11:33