野火电子论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 8822|回复: 17

默认编译出来的内核没支持LCD屏幕?

[复制链接]
发表于 2020-5-1 22:42:00 | 显示全部楼层 |阅读模式
请教一下,根据手册来编译,编译出来的debian固件,默认不支持开发板的7寸屏? 内核选项怎么打开这个?还是驱动没有写?


编译debian系统.jpg
+
回复

使用道具 举报

 楼主| 发表于 2020-5-2 10:43:40 | 显示全部楼层
我仔细用命令zcat /proc/config.gz 比较了自己编译出来和官方提供可以亮屏幕(7寸)的配置,都是一样的。看来并不是内核配置的影响。怎么我编译出来的就不支持7寸屏呢?
回复 支持 反对

使用道具 举报

发表于 2020-5-3 08:34:49 | 显示全部楼层
首先需要了解一下,你都改过哪些东西,如果是用野火提供的img文件做的SD卡,其他都不动,只是按照在线文档更新一下内核,是能带起7寸LCD的,开机会在加载内核阶段显示野火Logo,这个我在Pro的板子上验证过,如果你还修改过其他东西,还请详细说明一下。
另外,设备树的dtb文件是不支持LCD的,LCD以dtbo的方式加载,你可以检查一下SD卡BOOT分区下的uEnv.txt文件中,dtoverlay=/lib/firmware/imx-fire-lcd5-overlay.dtbo,这一句是不是被#注释了,如果被注释了需要把它放开才能加载LCD对应的dtbo。或者在终端下用fire-config工具来配置也可以。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2020-5-3 11:44:01 | 显示全部楼层
我按照官方的说明,编译的uboot,内核和debian文件系统,然后通过bale*exe烧录,启动之后屏幕没有带起来。之后也尝试通过fire-config 使能LCD5,没有看到7寸的选项,不过同样试过,还是失败。现在再检查一下你说的uEnv.txt
回复 支持 反对

使用道具 举报

 楼主| 发表于 2020-5-3 12:18:16 | 显示全部楼层
通过命令行查看确实有差别
uboot命令查看两个分区不一样的内容.jpg
回复 支持 反对

使用道具 举报

 楼主| 发表于 2020-5-3 13:08:04 | 显示全部楼层
本帖最后由 长风港 于 2020-5-3 15:28 编辑
gaofong 发表于 2020-5-3 08:34
首先需要了解一下,你都改过哪些东西,如果是用野火提供的img文件做的SD卡,其他都不动,只是按照在线文档 ...

比较乞丐,我进去使用fire-config配置之后,更改配置之后uEnv.txt居然是保存在mmc1的。而我的sd卡是在mmc0的。。。。没道理的感觉
回复 支持 反对

使用道具 举报

发表于 2020-5-4 09:27:30 | 显示全部楼层
长风港 发表于 2020-5-3 11:44
我按照官方的说明,编译的uboot,内核和debian文件系统,然后通过bale*exe烧录,启动之后屏幕没有带起来。 ...

开始以为你只是更新了内核,原来是连Debian都更新了。这样看来可能并不是内核配置或者驱动的问题。按照在线文档构建出来的Debian系统,是没有图形界面的。我按照在线文档构建的Debian,正常情况下,应该是boot阶段黑屏,启动内核阶段会显示几秒钟的野火Logo,然后又变成黑屏。如果要显示野火的图形桌面,需要把App拷过来,再把相关的库也补上,试过可以显示野火的桌面的。具体差了哪些东西,可以用对比工具,例如Meld,比较一下野火的img和自己构建的img,把自己系统中缺少的东西补上再试试。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2020-5-4 10:54:50 | 显示全部楼层
gaofong 发表于 2020-5-4 09:27
开始以为你只是更新了内核,原来是连Debian都更新了。这样看来可能并不是内核配置或者驱动的问题。按照在 ...

我完全没有看到uboot启动的logo界面。一直黑屏。 而且我进入看设备节点,/dev/fb0设备也没有看到。然后对比就发现,uboot启动的时候没有读取到uEnv.txt然后就使用了默认参数。
回复 支持 反对

使用道具 举报

发表于 2020-5-4 14:17:45 | 显示全部楼层
5寸和7寸的配置一样,检查一下5寸的DTBO有没有加载,可以附上uboot的启动log
回复 支持 反对

使用道具 举报

 楼主| 发表于 2020-5-4 14:36:34 | 显示全部楼层
本帖最后由 长风港 于 2020-5-6 19:30 编辑
Grit 发表于 2020-5-4 14:17
5寸和7寸的配置一样,检查一下5寸的DTBO有没有加载,可以附上uboot的启动log

我附上启动的log:
----------------------------------------------------------------------------------------
不带图形界面启动的log(自己编译出来的uboot kernel debian)
---------------------------------------------------------------------------------------


U-Boot 2019.04-g7c1d8e17-dirty (Jan 16 2020 - 11:30:16 +0000)

CPU:   Freescale i.MX6ULL rev1.1 792 MHz (running at 396 MHz)
CPU:   Industrial temperature grade (-40C to 105C) at 53C
Reset cause: POR
Model: Freescale i.MX6 ULL 14x14 EVK Board
Board: MX6ULL 14x14 EVK
DRAM:  512 MiB
NAND:  ID read error
0 MiB
MMC:   FSL_SDHC: 0, FSL_SDHC: 1
Loading Environment from MMC... *** Warning - bad CRC, using default environment

WARNING:init=/opt/scripts/tools/eMMC/init-eMMC-flasher-v3.sh
In:    serial
Out:   serial
Err:   serial
switch to partitions #0, OK
mmc1(part 0) is current device
flash target is MMC:1
Net:   
Error: ethernet@020b4000 address not set.

Error: ethernet@020b4000 address not set.

Error: ethernet@02188000 address not set.
eth-1: ethernet@020b4000
Error: ethernet@02188000 address not set.
, eth-1: ethernet@02188000
Fastboot: Normal
Normal Boot
Hit any key to stop autoboot:  0
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
switch to partitions #0, OK
mmc0 is current device
Checking for: /uEnv.txt ...
Checking for: /boot.scr ...
Checking for: /boot/boot.scr ...
Checking if flash_firmware is set
Checking for: /boot/uEnv.txt ...
Checking if uname_r is set in /boot/uEnv.txt...
** Invalid partition 3 **
** Invalid partition 3 **
** Invalid partition 4 **
** Invalid partition 4 **
** Invalid partition 5 **
** Invalid partition 5 **
** Invalid partition 6 **
** Invalid partition 6 **
** Invalid partition 7 **
** Invalid partition 7 **
switch to partitions #0, OK
mmc1(part 0) is current device
Scanning mmc 1:1...
switch to partitions #0, OK
mmc1(part 0) is current device
Checking for: /uEnv.txt ...
3322 bytes read in 12 ms (269.5 KiB/s)
Loaded environment from /uEnv.txt
Importing environment from mmc ...
Checking if uenvcmd is set ...
Checking if client_ip is set ...
Checking for: /boot.scr ...
Checking for: /boot/boot.scr ...
Checking if flash_firmware is set
Checking for: /boot/uEnv.txt ...
debug: [dtb=imx6ull-seeed-npi.dtb] ...
Using: dtb=imx6ull-seeed-npi.dtb ...
Checking if uname_r is set in /boot/uEnv.txt...
Running uname_boot ...
loading /vmlinuz-4.19.71-imx-r1 ...
debug: [enable_uboot_overlays=1] ...
debug: [uboot_base_dtb=] ...
loading /dtbs/4.19.71-imx-r1/imx6ull-seeed-npi.dtb ...
38661 bytes read in 12 ms (3.1 MiB/s)
uboot_overlays: [fdt_buffer=0x60000] ...
DTOVERLAY[debug]: param no:5  0x83000000  0x88000000 uEnv.txt 0x80800000

** Unable to read file uEnv.txt **
DTOVERLAY[debug]: ** uEnv.txt read error

DTOVERLAY[debug]: himport_r: can't malloc 2147483649 bytes

7982616 bytes read in 357 ms (21.3 MiB/s)
loading /initrd.img-4.19.71-imx-r1 ...
4710924 bytes read in 214 ms (21 MiB/s)
debug: [console=ttymxc0 root=/dev/mmcblk1p2 rw rootfstype=ext4 rootwait coherent_pool=1M net.ifnames=0 vt.global_cursor_default=0 quiet] ...
debug: [bootz 0x80800000 0x88000000:47e20c 0x83000000] ...
Kernel image @ 0x80800000 [ 0x000000 - 0x79ce18 ]
## Flattened Device Tree blob at 83000000
   Booting using the fdt blob at 0x83000000
   Using Device Tree in place at 83000000, end 8300c704
Modify /soc/aips-bus@2200000/epdc@228c000:status disabled
ft_system_setup for mx6

Starting kernel ...

.................省略.................

[  OK  ] Started Update UTMP about System Runlevel Changes.

Debian GNU/Linux 10 npi ttymxc0

SeeedStudio.com Debian Image 2020-03-12

Support/FAQ: https://github.com/Seeed-Studio/image-builder/issues

default username:password is [debian:temppwd]

npi login:


----------------------------------------------------------------------------------------
带图形界面启动的log(野火提供的SD卡可烧录的Debian with QT_demo)
----------------------------------------------------------------------------------------


U-Boot 2019.04-g7c1d8e17-dirty (Jan 16 2020 - 11:30:16 +0000)

CPU:   Freescale i.MX6ULL rev1.1 792 MHz (running at 396 MHz)
CPU:   Industrial temperature grade (-40C to 105C) at 51C
Reset cause: POR
Model: Freescale i.MX6 ULL 14x14 EVK Board
Board: MX6ULL 14x14 EVK
DRAM:  512 MiB
NAND:  ID read error
0 MiB
MMC:   FSL_SDHC: 0, FSL_SDHC: 1
Loading Environment from MMC... *** Warning - bad CRC, using default environment

WARNING:init=/opt/scripts/tools/eMMC/init-eMMC-flasher-v3.sh
In:    serial
Out:   serial
Err:   serial
switch to partitions #0, OK
mmc1(part 0) is current device
flash target is MMC:1
Net:   
Error: ethernet@020b4000 address not set.

Error: ethernet@020b4000 address not set.

Error: ethernet@02188000 address not set.
eth-1: ethernet@020b4000
Error: ethernet@02188000 address not set.
, eth-1: ethernet@02188000
Fastboot: Normal
Normal Boot
Hit any key to stop autoboot:  0
Card did not respond to voltage select!
Card did not respond to voltage select!
Card did not respond to voltage select!
Checking for: /uEnv.txt ...
Card did not respond to voltage select!
Checking for: /boot.scr ...
Card did not respond to voltage select!
Checking for: /boot/boot.scr ...
Card did not respond to voltage select!
Checking if flash_firmware is set
Checking for: /boot/uEnv.txt ...
Card did not respond to voltage select!
Card did not respond to voltage select!
Card did not respond to voltage select!
Card did not respond to voltage select!
Card did not respond to voltage select!
Card did not respond to voltage select!
Card did not respond to voltage select!
Card did not respond to voltage select!
Card did not respond to voltage select!
Card did not respond to voltage select!
Card did not respond to voltage select!
Card did not respond to voltage select!
Card did not respond to voltage select!
Card did not respond to voltage select!
switch to partitions #0, OK
mmc1(part 0) is current device
Scanning mmc 1:1...
switch to partitions #0, OK
mmc1(part 0) is current device
Checking for: /uEnv.txt ...
3248 bytes read in 11 ms (288.1 KiB/s)
Loaded environment from /uEnv.txt
Importing environment from mmc ...
Checking if uenvcmd is set ...
Checking if client_ip is set ...
Checking for: /boot.scr ...
Checking for: /boot/boot.scr ...
Checking if flash_firmware is set
Checking for: /boot/uEnv.txt ...
debug: [dtb=imx6ull-seeed-npi.dtb] ...
Using: dtb=imx6ull-seeed-npi.dtb ...
Checking if uname_r is set in /boot/uEnv.txt...
Running uname_boot ...
loading /vmlinuz-4.19.71-imx-r1 ...
debug: [enable_uboot_overlays=1] ...
debug: [uboot_base_dtb=] ...
loading /dtbs/4.19.71-imx-r1/imx6ull-seeed-npi.dtb ...
38661 bytes read in 13 ms (2.8 MiB/s)
uboot_overlays: [fdt_buffer=0x60000] ...
DTOVERLAY[debug]: param no:5  0x83000000  0x88000000 uEnv.txt 0x80800000

Card did not respond to voltage select!
DTOVERLAY[debug]: ** uEnv.txt file length:0xcb0

Card did not respond to voltage select!
DTOVERLAY[debug]: ** /lib/firmware/imx-fire-lcd43-overlay.dtbo file length:0x135a

loading overlay:/lib/firmware/imx-fire-lcd43-overlay.dtbo
Card did not respond to voltage select!
DTOVERLAY[debug]: ** /lib/firmware/imx-fire-led-overlay.dtbo file length:0x615

loading overlay:/lib/firmware/imx-fire-led-overlay.dtbo
Card did not respond to voltage select!
DTOVERLAY[debug]: ** /lib/firmware/imx-fire-lcd5-overlay.dtbo file length:0x175f

loading overlay:/lib/firmware/imx-fire-lcd5-overlay.dtbo
Card did not respond to voltage select!
DTOVERLAY[debug]: ** /lib/firmware/imx-fire-sound-overlay.dtbo file length:0xd72

loading overlay:/lib/firmware/imx-fire-sound-overlay.dtbo
Card did not respond to voltage select!
DTOVERLAY[debug]: ** /lib/firmware/imx-fire-key-overlay.dtbo file length:0x336

loading overlay:/lib/firmware/imx-fire-key-overlay.dtbo
Card did not respond to voltage select!
DTOVERLAY[debug]: ** /lib/firmware/imx-fire-mpu6050-overlay.dtbo file length:0x34e

loading overlay:/lib/firmware/imx-fire-mpu6050-overlay.dtbo
Card did not respond to voltage select!
DTOVERLAY[debug]: ** /lib/firmware/imx-fire-18b20-overlay.dtbo file length:0x30e

loading overlay:/lib/firmware/imx-fire-18b20-overlay.dtbo
Card did not respond to voltage select!
DTOVERLAY[debug]: ** /lib/firmware/imx-fire-hdmi-overlay.dtbo file length:0xade

loading overlay:/lib/firmware/imx-fire-hdmi-overlay.dtbo
Card did not respond to voltage select!
DTOVERLAY[debug]: ** /lib/firmware/imx-fire-dht11-overlay.dtbo file length:0x30e

loading overlay:/lib/firmware/imx-fire-dht11-overlay.dtbo
7982616 bytes read in 359 ms (21.2 MiB/s)
loading /initrd.img-4.19.71-imx-r1 ...
4710924 bytes read in 215 ms (20.9 MiB/s)
debug: [console=ttymxc0 root=/dev/mmcblk1p2 rw rootfstype=ext4 rootwait coherent_pool=1M net.ifnames=0 vt.global_cursor_default=0 quiet] ...
debug: [bootz 0x80800000 0x88000000:47e20c 0x83000000] ...
Kernel image @ 0x80800000 [ 0x000000 - 0x79ce18 ]
## Flattened Device Tree blob at 83000000
   Booting using the fdt blob at 0x83000000
   Using Device Tree in place at 83000000, end 8303cfff
Modify /soc/aips-bus@2200000/epdc@228c000:status disabled
ft_system_setup for mx6

Starting kernel ...
.................省略.................
[  OK  ] Started Update UTMP about System Runlevel Changes.

Debian GNU/Linux 10 npi ttymxc0

SeeedStudio.com Debian Image 2020-03-12

Support/FAQ: https://github.com/Seeed-Studio/image-builder/issues

default username:password is [debian:temppwd]

npi login:


回复 支持 反对

使用道具 举报

 楼主| 发表于 2020-5-4 14:38:21 | 显示全部楼层
我附上,两个带图形界面和不带图形界面的启动的log

启动log.rar

5.54 KB, 下载次数: 3

回复 支持 反对

使用道具 举报

发表于 2020-5-5 08:46:23 | 显示全部楼层
长风港 发表于 2020-5-4 14:36
我附上启动的log:
-------------------------------------------------------------------------------- ...

野火的这个也不能显示吗
回复 支持 反对

使用道具 举报

 楼主| 发表于 2020-5-6 19:28:48 | 显示全部楼层
Grit 发表于 2020-5-5 08:46
野火的这个也不能显示吗

不能哦,一直都是黑屏。
回复 支持 反对

使用道具 举报

发表于 2020-5-27 13:58:26 | 显示全部楼层
gaofong 发表于 2020-5-4 09:27
开始以为你只是更新了内核,原来是连Debian都更新了。这样看来可能并不是内核配置或者驱动的问题。按照在 ...

你好,如果只想更新设备树和内核,不更新Debian系统需要怎么操作,麻烦大佬指点一下
回复 支持 反对

使用道具 举报

发表于 2020-5-30 08:56:12 | 显示全部楼层
天之饺子馅儿 发表于 2020-5-27 13:58
你好,如果只想更新设备树和内核,不更新Debian系统需要怎么操作,麻烦大佬指点一下 ...

只更新设备树的话,只要用新的dtb文件,替换BOOT分区下的/dtbs/4.19.71-imx-r1/imx6ull-seeed-npi.dtb就可以了;
只更新内核的话,也是替换BOOT分区下的/vmlinuz-4.19.71-imx-r1就行了。
回复 支持 反对

使用道具 举报

发表于 2020-5-31 12:33:17 | 显示全部楼层
gaofong 发表于 2020-5-30 08:56
只更新设备树的话,只要用新的dtb文件,替换BOOT分区下的/dtbs/4.19.71-imx-r1/imx6ull-seeed-npi.dtb就 ...

是需要把zImage的名字直接改成vmlinuz-4.19.71-imx-r1就可以了么
回复 支持 反对

使用道具 举报

发表于 2020-5-31 12:48:40 | 显示全部楼层
天之饺子馅儿 发表于 2020-5-31 12:33
是需要把zImage的名字直接改成vmlinuz-4.19.71-imx-r1就可以了么

如果你是照着野火的教程做的,并且编译顺利,那在主机/home/pi/目录下直接就会有一个vmlinuz-4.19.71-imx-r1文件,并不是改名得到的。
回复 支持 反对

使用道具 举报

发表于 2020-5-31 15:44:42 | 显示全部楼层
gaofong 发表于 2020-5-31 12:48
如果你是照着野火的教程做的,并且编译顺利,那在主机/home/pi/目录下直接就会有一个vmlinuz-4.19.71-imx ...

谢谢,是有这个
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

联系站长|手机版|野火电子官网|野火淘宝店铺|野火电子论坛 ( 粤ICP备14069197号 ) 大学生ARM嵌入式2群

GMT+8, 2024-5-12 23:35 , Processed in 0.045654 second(s), 26 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表