uboot移植的问题
你好,在进行uboot移植过程中,我想把启动信息打印在LCD屏上.我按如下步骤进行操作修改u-boot-1.1.6\common下的console.c文件1. 添加头文件lcd.h #include <lcd.h>
2. 修改puts (const char *s)函数如下:
void puts (const char *s)
{
#ifdef CONFIG_SILENT_CONSOLE
if (gd->flags & GD_FLG_SILENT)
return;
#endif
if (gd->flags & GD_FLG_DEVINIT) {
/* Send to the standard output */
fputs (stdout, s);
} else {
/* Send directly to the handler */
serial_puts (s);
lcd_puts (s);
}
}
然后进行编译时,总是出现错误,错误提示是 lcd_puts (s)没有定义,但lcd_puts (s)这个函数在u-boot-1.1.6\common下的lcd.c文件中做过定义,并且我已经通过lcd.h头文件包含进来了,为什么还是找不到呢?
并且同时请问斑竹,实现把启动信息打印在LCD屏是按此思路修改吗?如果不是,那应该怎么做呢? 有编译LCD.c?你看下LCD.o有没有生成 给力,加油,我还不懂,路过
页:
[1]