今天试着改变logo,先在我自己的电脑里找到一个png格式的图片,折腾很久 正常 ,的确把logo改啦,但是在LCD上显示的很小,只在屏幕左上角显示,我想实现整屏的显示,就自己随便用QQ截图得到一个png格式的图片,生成xxx.ppm个时候替换了内核自带的logo_linux_tft480272_clut224.ppm,然后编译
出问题啦
<stdin>:1265:2: warning: #warning syscall migrate_pages not implemented
<stdin>:1321:2: warning: #warning syscall pselect6 not implemented
<stdin>:1325:2: warning: #warning syscall ppoll not implemented
<stdin>:1365:2: warning: #warning syscall epoll_pwait not implemented
CHK include/linux/compile.h
LOGO drivers/video/logo/logo_linux_tft480272_clut224.c
Image has more than 224 colors
Use ppmquant(1) to reduce the number of colors
make[3]: *** [drivers/video/logo/logo_linux_tft480272_clut224.c] Error 1
make[2]: *** [drivers/video/logo] Error 2
make[1]: *** [drivers/video] Error 2
make: *** [drivers] Error 2
提示超过224位,刚开始以为是大小问题,把图片尺寸截的很小 再说,
制作ppm文件时有如下提示
a123@a123-virtual-machine:~/lx/picture$ cp /mnt/hgfs/Ub/QQ.png .
a123@a123-virtual-machine:~/lx/picture$ pngtopnm QQ.png >QQ.pnm
a123@a123-virtual-machine:~/lx/picture$ pnmquant 244 QQ.pnm >logo224.pnm
pnmcolormap: making histogram...
pnmcolormap: 9066 colors found
pnmcolormap: choosing 244 colors...
pnmremap: 244 colors found in colormap
a123@a123-virtual-machine:~/lx/picture$
生成ppm格式文件替换
logo_linux_tft480272_clut224.ppm文件编译后还是出错
<stdin>:1325:2: warning: #warning syscall ppoll not implemented
<stdin>:1365:2: warning: #warning syscall epoll_pwait not implemented
CHK include/linux/compile.h
LOGO drivers/video/logo/logo_linux_tft480272_clut224.c
Image has more than 224 colors
Use ppmquant(1) to reduce the number of colors
make[3]: *** [drivers/video/logo/logo_linux_tft480272_clut224.c] Error 1
make[2]: *** [drivers/video/logo] Error 2
make[1]: *** [drivers/video] Error 2
make: *** [drivers] Error 2