2:安裝netpbm
apt-get install netpbm
儲存乙個pnglogo.png,按如下方式操作:
#pngtopnm logo.png > linuxlogo.pnm
# pnmquant 224 linuxlogo.pnm > linuxlogo224.pnm
# pnmtoplainpnm linuxlogo224.pnm > logo_linux_clut224.ppm
將logo_linux_clut224.ppm 拷貝至drivers/video/logo/目錄下
4:配置核心
device drivers ->
graphics support ->
[*] support for frame buffer devices
[*] vesa vga graphics support
console display driver support ->
[*] video mode selection support
[*] framebuffer console support
[*]select compiled-in fonts
[*]vga 8x16 font
logo configuration->
[*]bootup logo
5:修改核心**
修改drivers/video/fbmem.c : 471-474行
image.dx = 0;
image.dy = y;
image.width = logo->width;
image.height = logo->height; 為
= 0;
= y;
image.width = logo->width;
image.height = logo->height;
image.dx=(info->var.xres - image.width)/2;
image.dy=(info->var.yres - image.height)/2;
修改drivers/video/console/fbcon.c, 在582行
logo_height = fb_prepare_logo(info, ops->rotate);
後面加入
logo_height += (info->var.yres - logo_height)/2;
重新編譯核心即可;
linux啟動成功修改logo
2 使用linux 命令將轉換為 ppm pngtopnm logo linux clut224.png logo linux clut224.pnm pnmquant 224 logo linux clut224.pnm logo linux clut224.pnm pnmtoplainpnm l...
修改Linux啟動Logo技術
1 修改啟動logo,換成自定義的 1 準備一張.png 2 使用linux命令將轉換為ppm pngtopnm logo linux clut224.png logo linux clut224.pnm pnmquant 224 logo linux clut224.pnm logo linux ...
修改Linux核心啟動logo
建立logo 1 核心預設的logo為drivers video logo logo linux clut224.ppm filelogo linux clut224.ppm 先得到的大小,然後再用gimp等工具建立乙個同樣大小的png 2 把自己建立的png轉換為只有224色的ppm 在linux...