« rasberry pie3 centosその後 | メイン | Vmwaretool CUIインストール »
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 : 2016年07月08日 14:04