![](/img/trans.png)
[英]How do I run XEN on arm64 and Qemu 6.0.0 with Linux 4.20.11 as Dom0
[英]How to run Linux on a QEMU ARM Versatile machine?
我正在嘗試在qemu上運行linux,尤其是通用版本。
我從github下載了qemu和linux。 (qemu: https : //github.com/qemu/qemu.git,linux : https : //github.com/torvalds/linux.git )
我認為這兩個存儲庫是它們的主要項目。
無論如何,我用2個步驟編譯了linux。
還用3個步驟編譯了qemu。
我用以下命令運行它:
../qemu/arm-softmmu/qemu-system-arm -M versatilepb -m 128M -kernel ./arch/arm/boot/zImage
然后彈出一個只有黑屏的窗口。 之后我該怎么辦?
我從github下載了qemu和linux。 (qemu: https : //github.com/qemu/qemu.git,linux : https : //github.com/torvalds/linux.git )
我認為這兩個存儲庫是它們的主要項目。
無論如何,我用2個步驟編譯了linux。
還用3個步驟編譯了qemu。
要安裝根文件系統,我下載了busybox。 (我不確定,但是當他們想創建簡單的環境時,這個busybox是最常用的文件系統)
我下載了busybox,然后執行了一些步驟。
所以,我的最后命令是
../qemu/arm-softmmu/qemu-system-arm -M versatilepb -kernel ./arch/arm/boot/zImage -nographic -dtb arch/arm/boot/dts/versatile-pb.dtb -initrd ../rootfs.img.gz -append "root=/dev/ram0 initrd=/bin/sh"
我在qemu上運行了linux特別是通用版本
這是我使用'ls'命令的文件的當前狀態
要運行上面的命令,應該像這樣放置linux,qemu和文件系統映像(除了FreeRTOS之類的其他項目,這僅適合我的情況)
Buildroot里面
git clone https://github.com/buildroot/buildroot
cd buildroot
git checkout 2017.02
make qemu_arm_versatile_defconfig
make BR2_JLEVEL="$(($(nproc) - 2))"
# From: https://github.com/buildroot/buildroot/blob/master/board/qemu/arm-versatile/readme.txt
qemu-system-arm -M versatilepb -kernel output/images/zImage -append "console=ttyAMA0,115200" -serial stdio -net user -net nic,model=smc91c111
歡迎使用自動化涅磐。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.