qemu-system-x86_64  -kernel bzImage -initrd /mnt/rootfs.cpio.gz  /dev/zero -m 2G -nographic -append "console=ttyS0"

-m 参数表示内存多大,默认128M,明显太小。

-append 代表附加参数,"console=ttyS0"  和-nographic配合后,使得启动后的串口重定向到宿主机终端,能在宿主机的终端看到调试信息。

 

参考:

http://blog.csdn.net/defeattroy/article/details/8849057

相关文章:

  • 2021-12-25
  • 2021-08-17
  • 2021-12-22
  • 2021-11-29
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-12-13
  • 2021-12-04
  • 2022-12-23
  • 2021-11-28
  • 2022-02-25
相关资源
相似解决方案