qemuにLinuxのMIPSポートをインストールしました。だから私はinitrdとvmlinux(カーネル4.9.0)のイメージを次からダウンロードしました。http://ftp.debian.org/debian/dists/Debian9.5/main/installer-mips/20170615+deb9u4/images/malta/netboot/ インストールが正常に完了し、qemuを起動できます。
$ qemu-system-mips -M malta -m 1G -hda ./debian-mips.qcow2 \
-initrd $initrd \
-kernel $vmlinux \
-append "nokaslr root=/dev/sda1" -nographic
$initrd と $vmlinux は上記のリンクからのものです。
ただし、4.9.0と同じ構成で新しいカーネル4.18.0をクロスコンパイルしてqemuを再起動すると、次のように失敗します。
...
[ 4.019974] serial8250.0: ttyS1 at I/O 0x2f8 (irq = 3, base_baud = 115200) is a 16550A
[ 4.022670] cacheinfo: Failed to find cpu0 device node
[ 4.022950] cacheinfo: Unable to detect cache hierarchy for CPU 0
[ 4.024763] mousedev: PS/2 mouse device common for all mice
[ 4.027981] rtc_cmos 70.rtc: registered as rtc0
[ 4.028277] rtc_cmos 70.rtc: alarms up to one day, 242 bytes nvram
[ 4.030893] NET: Registered protocol family 10
[ 4.036155] Segment Routing with IPv6
[ 4.036660] mip6: Mobile IPv6
[ 4.036903] NET: Registered protocol family 17
... [ 4.045894] rtc_cmos 70.rtc: setting system clock to 2018-07-23 02:26:58 UTC (1532312818)
[ 4.076247] Freeing unused kernel memory: 1528K
[ 4.076491] This architecture does not have kernel memory protection.
Loading, please wait...
starting version 232
[ 4.685538] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[ 4.703542] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[ 4.754874] random: udevadm: uninitialized urandom read (16 bytes read)
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... Begin: Waiting for suspend/resume device ... Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
...
done.
Gave up waiting for suspend/resume device
done.
Begin: Waiting for root file system ... Begin: Running /scripts/local-block ...
done.
done.
Gave up waiting for root file system device. Common problems:
- Boot args (cat /proc/cmdline)
- Check rootdelay= (did the system wait long enough?)
- Missing modules (cat /proc/modules; ls /dev)
ALERT! /dev/sda1 does not exist. Dropping to a shell!
BusyBox v1.22.1 (Debian 1:1.22.0-19+b3) built-in shell (ash)
Enter 'help' for a list of built-in commands.
(initramfs)
したがって、何らかの理由でカーネルが必要なすべてのサポート(ファイルシステム、SCSIドライバなど)を備えているにもかかわらず、/ dev / sda1デバイスをマウントすることはできません。
なぜですか?新しいカーネルをビルドするたびにinitrdイメージを再構築する必要がありますか?
ありがとうございます。