【发布时间】:2018-06-09 19:22:36
【问题描述】:
我已经编译了一个 linux 内核并使用 buildroot 为 64 位 powerpc 生成了根文件系统。目标 CPU POWER7。
buildroot 的输出:
1] rootfs.cpio 2] rootfs.ext2 3] rootfs.tar.gz 4] vmlinux
启动qemu模拟
qemu-system-ppc64 -m 1024 -kernel output/images/vmlinux -initrd output/images/rootfs.cpio -serial stdio
--> 输出: Output Of 1st command
qemu-system-ppc64 -M pseries -cpu POWER7 -m 1024 -kernel output/images/vmlinux -append 'console=hvc0 root=/dev/sda' -drive file=output/images/rootfs.ext2,if=scsi,index=0,format=raw -serial stdio
--> 输出: Output of 2nd command
我做错了什么,我能做些什么来解决它?
【问题讨论】:
-
欢迎来到 Stack Overflow!在这里,我们倾向于将与问题相关的所有信息在问题帖子本身(作为文本)中,而不是链接。当您使用 QEMU 运行内核时,准备一个带有输出的文本文件并将其内容插入问题帖子中应该不难。通过edit提出问题来做到这一点。
标签: linux linux-kernel qemu powerpc buildroot