要使内核支持开机logo显示需要配置内核
配置如下:
make menuconfig:
Device Drivers --->
Graphics support --->
[*] Bootup logo --->
........
[*] Standard 224-color Linux logo
同时还需要配置
Device Drivers --->
Graphics support --->
[*] Console display driver support --->
[*] Framebuffer Console support --->
[*] Map the console to the primary display device
这样内核就支持开机logo显示了
在项目中LCD显示屏背光芯片输入电源受gpio控制,并且芯片pwm输出使能也受gpio控制,所以要在内核阶段显示logo,必须在pwm的驱动中使能这些gpio
做法如下:设备树配置好gpio资源,在drivers/video/backlight/pwm_bl.c中解析,申请和使用这些gpio资源,就可以了
参考:http://blog.csdn.net/qq_29729577/article/details/50580096
http://blog.csdn.net/luoshengyang/article/details/7691321/