经过两天的奋战终于把开机logo给搞定了啊。
首先修改开机logo要从哪里入手呢?先分析一下源码看看. --->
1 voiddisplay_image_on_screen()2 {3 struct fbimage default_fbimg, *fbimg;4 bool flag = true;5
6 fbcon_clear();7 fbimg =fetch_image_from_partition(); //从splash镜像分区抓取图片8 if(fbimg){9 dprintf(CRITICAL, "zbzhuang### ->fetch_image_from_partition\n");10 }11
12 if(!fbimg) { //如果splash.img分区的内容不存在或者被擦除则从splash.h头文件从获取要显示图像的数组13 dprintf(CRITICAL, "zbzhuang### ->not fetch_image_from_partition\n");14 flag = false;15 fbimg = &default_fbimg;16 fbimg->header.width =SPLASH_IMAGE_HEIGHT;17 fbimg->header.height =SPLASH_IMAGE_WIDTH;18 #if DISPLAY_TYPE_MIPI
19 fbimg->image = (unsigned char *)imageBuffer_rgb888;20 #else
21 fbimg->ima