1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

その4 新たに仮説を立ててbuildrootを作ってみる〜T2チップを備えない古いIntel MacをNerves化しようとする日々

Last updated at Posted at 2024-01-06

「T2チップを備えない古いIntel MacをNerves化しよう」という構想の実現に邁進する駄文シリーズの第4弾です.前回,仮説を立てましたが,実際にbuildrootの中身を見てみると,到底,仮説通りにいかないことがわかりました.ただし,眺めているうちに分かったような気がしてきました.そこで,今回は新たな設定でbuildrootを作成して,Mac Pro (Mid 2010)で動かしてみようということになりました.

シリーズ

  1. Nerves化構想を思い立つ
  2. buildrootをビルドして起動する
  3. 仮説を立てる
  4. 新たに仮説を立てて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
  • 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
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
  • 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を装着します.さてどうなるか?

buildrootのGRUB
buildrootのブートログ

残念,またしてもここで止まってしまいました.

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を試してみたいと思います!

続きはこちら

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?