平台 AT91SAM9261EK 别的平台应该也可以,没试过
这里修改的主要是u-boot开机logo下面的输出信息
- [root@localhost ~]# gedit /work/u-boot-1.3.4/common/lcd.c
修改大约827行后的sprintf()函数的字符串参数
- #ifdef CONFIG_ATMEL_LCD
- # ifdef CONFIG_LCD_INFO
- sprintf (info, "%s", U_BOOT_VERSION);
- lcd_drawchars (LCD_INFO_X, LCD_INFO_Y, (uchar *)info, strlen(info));
- sprintf (info, "(C) 2008 ATMEL Corp");
- lcd_drawchars (LCD_INFO_X, LCD_INFO_Y + VIDEO_FONT_HEIGHT,
- (uchar *)info, strlen(info));
- // sprintf (info, "at91support@atmel.com");
- /* ******************************************************************* */
- /* Date: 20120414 */
- /* Author: xjf616 */
- /* ******************************************************************* */
- sprintf (info, "HUNAN UNIVERSITY");
- lcd_drawchars (LCD_INFO_X, LCD_INFO_Y + VIDEO_FONT_HEIGHT * 2,
- (uchar *)info, strlen(info));
- sprintf (info, "%s CPU at %s MHz",
- AT91_CPU_NAME,
- strmhz(temp, AT91_MAIN_CLOCK));
- lcd_drawchars (LCD_INFO_X, LCD_INFO_Y + VIDEO_FONT_HEIGHT * 3,
- (uchar *)info, strlen(info));
- dram_size = 0;
- for (i = 0; i < CONFIG_NR_DRAM_BANKS; i++)
- dram_size += gd->bd->bi_dram[i].size;
- nand_size = 0;
- for (i = 0; i < CFG_MAX_NAND_DEVICE; i++)
- nand_size += nand_info[i].size;
- sprintf (info, " %ld MB SDRAM, %ld MB NAND",
- dram_size >> 20,
- nand_size >> 20 );
- lcd_drawchars (LCD_INFO_X, LCD_INFO_Y + VIDEO_FONT_HEIGHT * 4,
- (uchar *)info, strlen(info));
- # endif /* CONFIG_LCD_INFO */
- #endif /* CONFIG_ATMEL_LCD */
重新编译,OK。
效果图对比
参考资料:
http://blog.csdn.net/voice_shen/article/details/6789424
阅读(1839) | 评论(0) | 转发(1) |