のねのBlog

パソコンやソフト開発で起きた問題など書きます。よろしくお願いします。

qemu raspi2

qemu-system-arm -kernel <your_kernel_image> 
-cpu arm1176 
-m 256 
-M versatilepb 
-serial stdio 
-append "root=/dev/sda2 panic=1 rootfstype=ext4 rw" 
-drive  "file=<your_rapsbian_image>,index=0,media=disk,format=raw"
-redir tcp:2222::22

これで、起動した。
起動するまで、少し時間がかかる。

qemu-system-arm 
-kernel kernel-qemu-4.4.34-jessie 
-cpu arm1176 
-m 256 
-M versatilepb 
-serial stdio 
-append "root=/dev/sda2 panic=1 rootfstype=ext4 rw" 
-drive "file=2017-04-10-raspbian-jessie.img,index=0,media=disk,format=raw"
-redir tcp:2222::22
>qemu-system-arm -kernel kernel-qemu-4.4.34-jessie -cpu arm1176 -m 256 -M versatilepb -serial stdio -append "root=/dev/sda2 panic=1 rootfstype=ext4 rw" -drive "file=2017-04-10-raspbian-jessie.img,index=0,media=disk,format=raw" -redir tcp:2222::22
qemu-system-arm: -redir tcp:2222::22: The -redir option is deprecated. Please use '-netdev user,hostfwd=...' instead.
Uncompressing Linux... done, booting the kernel.

"-M raspi2にしてみたら、起動に失敗したみたいだ。"

>qemu-system-arm -kernel kernel-qemu-4.4.34-jessie -cpu arm1176 -m 256 -M raspi2 -serial stdio -append "root=/dev/sda2 panic=1 rootfstype=ext4 rw" -drive "file=2017-04-10-raspbian-jessie.img,index=0,media=disk,format=raw" -redir tcp:2222::22
qemu-system-arm: -redir tcp:2222::22: The -redir option is deprecated. Please use '-netdev user,hostfwd=...' instead.

blogs.msdn.microsoft.com