首页 > 解决方案 > buildroot 我得到一个 xorg 黑屏

问题描述

我正在使用 Buildroot 构建一个小型 Linux 映像。我在 Qemu 中加载图像,我只是得到一个黑屏。

default ----> pc_x86_64_bios_defconfig

我所做的配置更改是:

Toolchain ----> Enable C++ support
Target packages
       Show packages that are also provided by busybox

Graphic libraries and applications (graphic/text)
       X.org X Window System
              X11R7 Servers ----> xorg-server
              X11R7 Drivers ----> xf86-input-evdev,xf86-input-keyboard,xf86-input-mouse,xf86-video-cirrus,xf86-video-fbdev
       xterm
       openbox

Filesystem images
       exact size ----> 200M
       initial RAM filesystem linked into linux kernel

然后我使用运行脚本:

qemu-system-x86_64 \
  -kernel ./bzImage \
  -append "console=tty0" \
  -initrd rootfs.cpio \
  -m 2G

标签: linuxlinux-kernelembedded-linuxbuildrootxorg

解决方案


推荐阅读