「T2チップを備えない古いIntel MacをNerves化しよう」という構想の実現に邁進する駄文シリーズの第4弾です.前回,仮説を立てましたが,実際にbuildrootの中身を見てみると,到底,仮説通りにいかないことがわかりました.ただし,眺めているうちに分かったような気がしてきました.そこで,今回は新たな設定でbuildrootを作成して,Mac Pro (Mid 2010)で動かしてみようということになりました.
シリーズ
- Nerves化構想を思い立つ
- buildrootをビルドして起動する
- 仮説を立てる
- 新たに仮説を立ててbuildrootを作ってみる(本記事)
やってみたbuildrootの設定
make pc_x86_64_efi_defconfig
make menuconfig
変更した設定は下記のとおりです.
- Target options
- Target Architecture Variant (westmare)
- Toolchain
- Enable C++
- Enable OpenMP
- Build options
- Enable compiler cache
- System configuration
- System hostname
- Passwords encoding (sha-512)
- Root password
- [C en_US ja_JP] Locales to keep
- [*] Install timezone info
- (Asia/Tokyo) default local time
- Kernel
- Linux Kernel Tools
- [*] cpupower
- [*] perf
- [*] enable installation of perf scripts
- [*] enable perf TUI
- Linux Kernel Tools
- Target Packages
- Busybox
- [*] Show packages that are also provided by busybox
- Filesystem and flash utilities
- [*] exFAT
- [*] exfat-utils
- [*] exfatprogs
- [*] f2fs-tools
- [*] squashfs
- [*] sshfs
- Hardware handling
- [*] memtest86
- [*] memtester
- [*] memtool
- System Tools
- [*] util-linux
- [*] libuuid
- [*] uuidd
- [*] util-linux
- Busybox
make linux-menuconfig
しばらく待ちました.変更した設定は下記のとおりです.
- Device Drivers
- Macintosh device drivers
- Support for mouse button 2+3 emulation
- Input device
- Mouse
- USB support
- USB announce new devices
- Apple Cinema Display Support
- Macintosh device drivers
- File systems
- <*> F2FS
- DOS/FAT/EXFAT
- Miscellanuous filesystems
- Apple Macintosh file system support
- Apple Extended HFS file system support
- SquashFS 4.0
- UTF-8 normalization and case folding support
make
しばらく待ちます.かなり待った後で,次のファイルができていることを確認しました.
ls output/images/disk.img
SSDを焼く
Mac Pro (Mid 2010) がUSBメモリで起動できなくなったので,今度はMac Pro (Mid 2010)でmacOSを起動し,SSDを焼きました.
diskutil list
この環境では,/dev/disk2でした.
dd if=disk.img of=/dev/disk2
起動する
SSDを入れ替えて,ドライブ1にbuildrootのSSDを装着します.さてどうなるか?
残念,またしてもここで止まってしまいました.
Nerves Project代表のFrank Hunlethさんより
I might try changing the Buildroot configuration to make a initramfs rather than a rootfs. That way the Linux kernel contains the root filesystem, and you should be able to get past the place where Linux hangs waiting for it. Once you can boot to a shell prompt, you'll have more tools to investigate why the root filesystem doesn't mount (assuming that that is the problem).
とありました.次はinitramfsを試してみたいと思います!
続きはこちら

