【yocto】14.我其实很想把图像搞出来的。但是他老是说Guest has not initialized the display (yet)

Guest has not initialized the display (yet)

看到这句话,我头就疼
也许是累了吧

我是通过runqemu执行的

runqemu bananapi_m5
runqemu - INFO - Running MACHINE=bananapi_m5 bitbake -e  ...
runqemu - ERROR - /home/xxx/yocto_poky/poky/build_sato/tmp/deploy/images/bananapi_m5 not a directory valid DEPLOY_DIR_IMAGE
runqemu - INFO - Continuing with the following parameters:
KERNEL: [/home/xxx/yocto_poky/poky/build_sato/tmp/deploy/images/bananapi_m5/Image]
MACHINE: [bananapi_m5]
FSTYPE: [cpio.gz]
ROOTFS: [/home/xxx/yocto_poky/poky/build_sato/tmp/deploy/images/bananapi_m5/wahaha-bananapi_m5-20230719033657.rootfs.cpio.gz]
CONFFILE: [/home/xxx/yocto_poky/poky/build_sato/tmp/deploy/images/bananapi_m5/wahaha-bananapi_m5-20230719033657.qemuboot.conf]

runqemu - INFO - Setting up tap interface under sudo
runqemu - INFO - Network configuration: ip=192.168.7.2::192.168.7.1:255.255.255.0::eth0:off:8.8.8.8
runqemu - INFO - Running /home/xxx/yocto_poky/poky/build_sato/tmp/work/x86_64-linux/qemu-helper-native/1.0-r1/recipe-sysroot-native/usr/bin/qemu-system-aarch64 -device virtio-net-pci,netdev=net0,mac=52:54:00:12:34:02 -netdev tap,id=net0,ifname=tap0,script=no,downscript=no -object rng-random,filename=/dev/urandom,id=rng0 -device virtio-rng-pci,rng=rng0 -initrd /home/xxx/yocto_poky/poky/build_sato/tmp/deploy/images/bananapi_m5/wahaha-bananapi_m5-20230719033657.rootfs.cpio.gz -net nic -no-reboot -device qemu-xhci -device usb-tablet -device usb-kbd  -machine virt -cpu cortex-a55 -smp 4 -m 10240 -serial mon:vc -serial null -display gtk,show-cursor=on -device virtio-gpu-pci -kernel /home/xxx/yocto_poky/poky/build_sato/tmp/deploy/images/bananapi_m5/Image -append 'root=/dev/ram0 rw debugshell  mem=10240M ip=192.168.7.2::192.168.7.1:255.255.255.0::eth0:off:8.8.8.8 console=ttyAMA0,115200 init=/sbin/init rw rootwait panic=2 '

runqemu - INFO - Host uptime: 8625.54

当我手动执行的时候

qemu-system-aarch64: -display gtk,show-cursor=on: Parameter 'type' does not accept value 'gtk'

咋的,又搞幺蛾子啦

根据网上的教程继续改,加了个vga–》

在这里插入图片描述
我明明看到这里有的,但是不知道为什么就是报错

qemu-system-aarch64: unknown vga type: xenfb

还是不行

qemu-system-aarch64: -display vnc=VGA,show-cursor=on: Invalid parameter 'show-cursor'

感觉不行,我有点想放弃了

qemu-system-aarch64: warning: hub 0 is not connected to host network
qemu-system-aarch64: warning: A -vga option was passed but this machine type does not use that option; No VGA device has been created
qemu-system-aarch64: -display vnc=VGA:0: address resolution failed for VGA:5900: Name or service not known
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
Develop powerful embedded Linux systems with the Yocto Project components About This Book A hands-on guide to enhance your ability to develop captivating embedded Linux projects Learn about the compelling features offered by the Yocto Project, such as customization, virtualization, and many more Illustrates concepts such device-emulation and cross-compiling in a pragmatic and lucid way Who This Book Is For If you are a Yocto and Linux enthusiast who wants to build embedded Linux systems but do not have the knowledge to do it, this is the book for you. It will also help those of you who have a bit of knowledge about Linux and the embedded world and are keen on learning more about the technology. This book will provide you with the skills needed to successfully interact with the Yocto Project components regardless of the fact that you are new to embedded development or an expert. In Detail This book offers readers an idea of what embedded Linux software and hardware architecture looks like, cross-compiling, and also presents information about the bootloader and how it can be built for a specific board. This book will go through Linux kernel features and source code, present information on how to build a kernel source, modules, and the Linux root filesystem. You'll be given an overview of the available Yocto Project components, how to set up Yocto Project Eclipse IDE, and how to use tools such as Wic and Swabber that are still under development. It will present the meta-realtime layer and the newly created meta-cgl layer, its purpose, and how it can add value to poky. Table of Contents Chapter 1. Introduction Chapter 2. Cross-compiling Chapter 3. Bootloaders Chapter 4. Linux Kernel Chapter 5. The Linux Root Filesystem Chapter 6. Components of the Yocto Project Chapter 7. ADT Eclipse Plug-ins Chapter 8. Hob, Toaster, and Autobuilder Chapter 9. Wic and Other Tools Chapter 10. Real-time Chapter 11. Security Chapter 12. Virtualization Chapter 13. CGL and LSB
Build Complete Embedded Linux Systems Quickly and Reliably Developers are increasingly integrating Linux into their embedded systems: It supports virtually all hardware architectures and many peripherals, scales well, offers full source code, and requires no royalties. The Yocto Project makes it much easier to customize Linux for embedded systems. If you’re a developer with working knowledge of Linux, Embedded Linux Systems with the Yocto Project™ will help you make the most of it. An indispensable companion to the official documentation, this guide starts by offering a solid grounding in the embedded Linux landscape and the challenges of creating custom distributions for embedded systems. You’ll master the Yocto Project’s toolbox hands-on, by working through the entire development lifecycle with a variety of real-life examples that you can incorporate into your own projects. Author Rudolf Streif offers deep insight into Yocto Project’s build system and engine, and addresses advanced topics ranging from board support to compliance management. You’ll learn how to Overcome key challenges of creating custom embedded distributions Jumpstart and iterate OS stack builds with the OpenEmbedded Build System Master build workflow, architecture, and the BitBake Build Engine Quickly troubleshoot build problems Customize new distros with built-in blueprints or from scratch Use BitBake recipes to create new software packages Build kernels, set configurations, and apply patches Support diverse CPU architectures and systems Create Board Support Packages (BSP) for hardware-specific adaptations Provide Application Development Toolkits (ADT) for round-trip development Remotely run and debug applications on actual hardware targets Ensure open-source license compliance Scale team-based projects with Toaster, Build History, Source Mirrors, and Autobuilder Table of Contents Chapter 1. Linux for Embedded Systems Chapter 2. The Yocto Project Chapter 3. OpenEmbedded Build System Chapter 4. BitBake Build Engine Chapter 5. Troubleshooting Chapter 6. Linux System Architecture Chapter 7. Building a Custom Linux Distribution Chapter 8. Software Package Recipes Chapter 9. Kernel Recipes Chapter 10. Board Support Packages Chapter 11. Application Development Chapter 12. Licensing and Compliance Chapter 13. Advanced Topics Appendix A. Open Source Licenses Appendix B. Metadata Reference

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值