luckfox_lvgl_demo 运行时找不到/dev/dri/card0
Posted: 2025-04-21 13:10
我编译的固件烧录到luckfox-pico-ultra-w开发板上,/dev目录下为什么没有dri/card0目录,以至于运行luckfox_lvgl_demo时出现:cannot open /dev/dri/card0错误。编译选项要如何选择才能生成/dev/dri/card0目录?
[root@luckfox root]# ./luckfox_lvgl_demo
cannot open /dev/dri/card0
: No such file or directory
[root@luckfox root]# ls /dev
block mpp_service ram3 tty20 tty51 vcodec
char mtd0 ram4 tty21 tty52 vcs
console mtd0ro ram5 tty22 tty53 vcs1
cpu_dma_latency mtd1 ram6 tty23 tty54 vcsa
disk mtd1ro ram7 tty24 tty55 vcsa1
fb0 mtd2 ram8 tty25 tty56 vcsu
fd mtd2ro ram9 tty26 tty57 vcsu1
full mtd3 random tty27 tty58 video0
gpiochip0 mtd3ro rfkill tty28 tty59 video1
gpiochip1 mtd4 rga tty29 tty6 video10
gpiochip2 mtd4ro rk_dma_heap tty3 tty60 video11
gpiochip3 mtd5 rknpu tty30 tty61 video12
gpiochip4 mtd5ro rtc tty31 tty62 video13
hwrng mtd6 rtc0 tty32 tty63 video14
i2c-4 mtd6ro rve tty33 tty7 video15
iio:device0 mtdblock0 shm tty34 tty8 video16
input mtdblock1 snd tty35 tty9 video17
iomux mtdblock2 stderr tty36 ttyFIQ0 video18
kmsg mtdblock3 stdin tty37 ttyS0 video19
log mtdblock4 stdout tty38 ubi0 video2
loop-control mtdblock5 tty tty39 ubi0_0 video20
loop0 mtdblock6 tty0 tty4 ubi4 video3
loop1 null tty1 tty40 ubi4_0 video4
loop2 ptmx tty10 tty41 ubi5 video5
loop3 pts tty11 tty42 ubi5_0 video6
[root@luckfox root]# ./luckfox_lvgl_demo
cannot open /dev/dri/card0
: No such file or directory
[root@luckfox root]# ls /dev
block mpp_service ram3 tty20 tty51 vcodec
char mtd0 ram4 tty21 tty52 vcs
console mtd0ro ram5 tty22 tty53 vcs1
cpu_dma_latency mtd1 ram6 tty23 tty54 vcsa
disk mtd1ro ram7 tty24 tty55 vcsa1
fb0 mtd2 ram8 tty25 tty56 vcsu
fd mtd2ro ram9 tty26 tty57 vcsu1
full mtd3 random tty27 tty58 video0
gpiochip0 mtd3ro rfkill tty28 tty59 video1
gpiochip1 mtd4 rga tty29 tty6 video10
gpiochip2 mtd4ro rk_dma_heap tty3 tty60 video11
gpiochip3 mtd5 rknpu tty30 tty61 video12
gpiochip4 mtd5ro rtc tty31 tty62 video13
hwrng mtd6 rtc0 tty32 tty63 video14
i2c-4 mtd6ro rve tty33 tty7 video15
iio:device0 mtdblock0 shm tty34 tty8 video16
input mtdblock1 snd tty35 tty9 video17
iomux mtdblock2 stderr tty36 ttyFIQ0 video18
kmsg mtdblock3 stdin tty37 ttyS0 video19
log mtdblock4 stdout tty38 ubi0 video2
loop-control mtdblock5 tty tty39 ubi0_0 video20
loop0 mtdblock6 tty0 tty4 ubi4 video3
loop1 null tty1 tty40 ubi4_0 video4
loop2 ptmx tty10 tty41 ubi5 video5
loop3 pts tty11 tty42 ubi5_0 video6