busybox

ええと

  • rootfs のサイズがデカいと駄目
  • UNEVICTABLE_LRU 云々
  • find に -depth オプション付けれ

とか色々情報がある模様。UNEVICTABLE_LRU 云々は sh の話だったのでスルー。
rootfs のサイズは現状 1MB 足らずです。でも小さくする努力は大変そうなのでしてません。

とりあえず find|cpio するナニにおいて、find コマンドに -depth オプションを渡してみました。

$ find . -depth | cpio -o --format=newc > ../rootfs.img

で、これを -initrd に渡してみたんですが、panic する挙動は変わらなかったのですが、ダンプが微妙に違います。

<0>Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(1,0)
[<c0028aa8>] (unwind_backtrace+0x0/0xe4) from [<c023834c>] (panic+0x50/0x174)
[<c023834c>] (panic+0x50/0x174) from [<c0009034>] (mount_block_root+0x1c8/0x208)
[<c0009034>] (mount_block_root+0x1c8/0x208) from [<c00092cc>] (prepare_namespace+0x164/0x1b8)
[<c00092cc>] (prepare_namespace+0x164/0x1b8) from [<c00085e8>] (kernel_init+0x10c/0x14c)
[<c00085e8>] (kernel_init+0x10c/0x14c) from [<c0023e78>] (kernel_thread_exit+0x0/0x8)

ちなみに -depth 付けない形で rootfs 作ってリトライしてみましたが、以前の挙動が再現される事は確認してます。

とりあえず

今日はこれからドキュメント読んで寝ます。