天嵌 ARM开发社区

 找回密码
 注册
查看: 2546|回复: 2

uboot移植的问题

[复制链接]
我爱linux 发表于 2010-5-24 12:20:43 | 显示全部楼层 |阅读模式
你好,在进行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屏是按此思路修改吗?如果不是,那应该怎么做呢?
embedsky_lhh 发表于 2012-5-13 09:01:01 | 显示全部楼层
有编译LCD.c?你看下LCD.o有没有生成
552002499 发表于 2012-6-3 02:17:00 | 显示全部楼层
给力,加油,我还不懂,路过
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

i.MX8系列ARM cortex A53 M4 工控板上一条 /1 下一条

Archiver|手机版|小黑屋|天嵌 嵌入式开发社区 ( 粤ICP备11094220号 )

GMT+8, 2024-5-6 07:54 , Processed in 1.046875 second(s), 18 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表