您尚未登录。

楼主 #1 2021-02-01 15:22:34

大帅
会员
注册时间: 2019-01-17
已发帖子: 167
积分: 131.5

【解决】但不知原因,Nano主线uboot增加LCD和BMP启动卡在Starting kernel ...

问题现象描述:
主线是TF卡启动(系统可以正常),
uboot不带bmp命令,增加指令,做开机logo,
打开uboot几个相关配置之后开机一直卡在Starting kernel ...

不修改uboot之前正常开机log:

U-Boot SPL 2018.01 (Jan 31 2021 - 20:25:53)
DRAM: 32 MiB
Trying to boot from MMC1

U-Boot 2018.01 (Jan 31 2021 - 20:25:53 -0500) Allwinner Technology

CPU:   Allwinner F Series (SUNIV)
Model: Lichee Pi Nano
DRAM:  32 MiB
MMC:   SUNXI SD/MMC: 0
*** Warning - bad CRC, using default environment

In:    serial@1c25000
Out:   serial@1c25000
Err:   serial@1c25000
Net:   No ethernet found.
starting USB...
No controllers found
Hit any key to stop autoboot:  0
reading zImage
4043624 bytes read in 286 ms (13.5 MiB/s)
reading splash.bmp
385078 bytes read in 52 ms (7.1 MiB/s)
Unknown command 'bmp' - try 'help'
reading dtb.bin
11834 bytes read in 34 ms (339.8 KiB/s)
## Flattened Device Tree blob at 80c00000
   Booting using the fdt blob at 0x80c00000
   Loading Device Tree to 816fa000, end 816ffe39 ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.15.0-rc8-licheepi-nano (root@osboxes) (gcc version 7.2.1 20171011 (Linaro GCC 7.2-2017.11)) #34 Fri Jan 29 03:05:50 EST 2021
[    0.000000] CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=0005317f
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] OF: fdt: Machine model: Lichee Pi Nano
[    0.000000] Memory policy: Data cache writeback

修改uboot,使之增加bmp:

1.
-> ARM architecture
     [ * ] Enable graphical uboot console on HDMI, LCD or VGA
     LCD panel timing details:
            x:800,y:480,depth:18,pclk_khz:33000,le:87,ri:40,up:31,lo:13,hs:1,vs:1,sync:3,vmode:0
     (PE6) LCD panel backlight pwm pin
2.
      -> Device Drivers
    - > Graphics support
             [ * ]   Enable colour frame buffer console
3.
    -> Command line interface
                -> Misc commands                               
                                [ * ] Enable 'bmp' command

编译uboot,烧写到tf卡8k偏移,开机log:

U-Boot SPL 2018.01 (Feb 01 2021 - 01:53:16)
DRAM: 32 MiB
Trying to boot from MMC1


U-Boot 2018.01 (Feb 01 2021 - 01:53:16 -0500) Allwinner Technology

CPU:   Allwinner F Series (SUNIV)
Model: Lichee Pi Nano
DRAM:  32 MiB
MMC:   SUNXI SD/MMC: 0
*** Warning - bad CRC, using default environment

Setting up a 800x480 lcd console (overscan 0x0)
In:    serial@1c25000
Out:   serial@1c25000
Err:   serial@1c25000
Net:   No ethernet found.
starting USB...
No controllers found
Hit any key to stop autoboot:  0
reading zImage
4043624 bytes read in 287 ms (13.4 MiB/s)
reading dtb.bin
11834 bytes read in 34 ms (339.8 KiB/s)
## Flattened Device Tree blob at 80c00000
   Booting using the fdt blob at 0x80c00000
   Loading Device Tree to 80e01000, end 80e06e39 ... OK

Starting kernel ...

运行在这里系统就卡住了。。。

对比发现
Loading Device Tree to 816fa000, end 816ffe39
Loading Device Tree to 80e01000, end 80e06e39
修改前后设备树的地址相差很大,

求大佬指点!!!

【已解决】见下面

最近编辑记录 大帅 (2021-02-02 11:01:38)

离线

#2 2021-02-01 15:25:45

hzqlz
会员
注册时间: 2018-03-23
已发帖子: 141
积分: 135

Re: 【解决】但不知原因,Nano主线uboot增加LCD和BMP启动卡在Starting kernel ...

坐等楼下的大佬

离线

楼主 #3 2021-02-01 15:30:29

大帅
会员
注册时间: 2019-01-17
已发帖子: 167
积分: 131.5

Re: 【解决】但不知原因,Nano主线uboot增加LCD和BMP启动卡在Starting kernel ...

在这里淫侵多年,只发现路漫漫的固件里面的uboot有bmp命令,但不知道uboot的配置。
经过一番搜索学习,增加上面的几个配置,开机进入uboot,使用指令是可以显示bmp,
fatload mmc 0:1 0x80C00000 logo.bmp
bmp display 0x80C00000
屏幕可以显示,但是开机不知道为什么会卡在Starting kernel ...???

离线

#4 2021-02-01 15:41:31

raspberryman
会员
注册时间: 2019-12-27
已发帖子: 503
积分: 465

Re: 【解决】但不知原因,Nano主线uboot增加LCD和BMP启动卡在Starting kernel ...

是不是bmp把dtb或者zImage的地址覆盖了?

离线

楼主 #5 2021-02-01 15:49:10

大帅
会员
注册时间: 2019-01-17
已发帖子: 167
积分: 131.5

Re: 【解决】但不知原因,Nano主线uboot增加LCD和BMP启动卡在Starting kernel ...

raspberryman 说:

是不是bmp把dtb或者zImage的地址覆盖了?

bootcmd=fatload mmc 0:1 0x80008000 zImage;fatload mmc 0:1 0x80C00000 logo.bmp;bmp display 0x80C00000;fatload mmc 0:1 0x80C00000 dtb.bin;bootz 0x80008000 - 0x80C00000
bootdelay=0

把bootcmd里面的
fatload mmc 0:1 0x80C00000 logo.bmp;bmp display 0x80C00000;
去掉也是不能启动。。。

离线

楼主 #6 2021-02-01 15:57:20

大帅
会员
注册时间: 2019-01-17
已发帖子: 167
积分: 131.5

Re: 【解决】但不知原因,Nano主线uboot增加LCD和BMP启动卡在Starting kernel ...

uboot里面lcd的显存地址在哪里看?

离线

楼主 #7 2021-02-02 11:05:45

大帅
会员
注册时间: 2019-01-17
已发帖子: 167
积分: 131.5

Re: 【解决】但不知原因,Nano主线uboot增加LCD和BMP启动卡在Starting kernel ...

修改configs/suniv.h

屏蔽下面两句
#define CONFIG_VIDEO_LOGO
#define CONFIG_VIDEO_BMP_LOGO

系统可以正常启动了,开机先显示一个linux企鹅,然后是我的logo.bmp。
不屏蔽上面两句,uboot默认显示的是licheepi的800*480的logo,

虽然问题解决,但是不知道卡死在Starting kernel ...的具体原因是什么???

离线

#8 2021-02-10 15:51:21

1053dd
会员
注册时间: 2021-01-28
已发帖子: 5
积分: 0

Re: 【解决】但不知原因,Nano主线uboot增加LCD和BMP启动卡在Starting kernel ...

大帅 说:

修改configs/suniv.h

屏蔽下面两句
#define CONFIG_VIDEO_LOGO
#define CONFIG_VIDEO_BMP_LOGO

系统可以正常启动了,开机先显示一个linux企鹅,然后是我的logo.bmp。
不屏蔽上面两句,uboot默认显示的是licheepi的800*480的logo,

虽然问题解决,但是不知道卡死在Starting kernel ...的具体原因是什么???



和你同样的问题,我用的是SPI flash,也是卡内核,设备树也是会变,目前也找不到原因是啥

离线

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn