嵌入式爱好者

查看: 7903|回复: 5

uboot编译问题

[复制链接]

2

主题

4

帖子

15

积分

AM335x通行证

扫一扫,手机访问本帖
发表于 2017-6-23 21:24:33 | 显示全部楼层 |阅读模式
我用fedora12编译环境4.4.6,编译uboot_ok2416_1.3.4出现错误:
In file included from i2c.c:34:
/home/fedora/workspace/uboot_ok2416_1.3.4/include/regs.h:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
i2c.c: In function 'GetI2CSDA':
i2c.c:72: error: 'ELFIN_GPIO_BASE' undeclared (first use in this function)
i2c.c:72: error: (Each undeclared identifier is reported only once
i2c.c:72: error: for each function it appears in.)
i2c.c:72: error: 'GPEDAT_OFFSET' undeclared (first use in this function)
i2c.c: In function 'SetI2CSCL':
i2c.c:94: error: 'ELFIN_GPIO_BASE' undeclared (first use in this function)
i2c.c:94: error: 'GPEDAT_OFFSET' undeclared (first use in this function)
i2c.c: In function 'WaitForXfer':
i2c.c:104: error: 'S3C24X0_I2C' undeclared (first use in this function)
i2c.c:104: error: expected expression before 'const'
i2c.c:110: error: 'i2c' undeclared (first use in this function)
i2c.c: In function 'IsACK':
i2c.c:122: error: 'S3C24X0_I2C' undeclared (first use in this function)
i2c.c:122: error: expected expression before 'const'
i2c.c:126: error: 'i2c' undeclared (first use in this function)
i2c.c: In function 'ReadWriteByte':
i2c.c:131: error: 'S3C24X0_I2C' undeclared (first use in this function)
i2c.c:131: error: expected expression before 'const'
i2c.c:135: error: 'i2c' undeclared (first use in this function)
i2c.c: In function 'i2c_init':
i2c.c:140: error: 'S3C24X0_I2C' undeclared (first use in this function)
i2c.c:140: error: expected expression before 'const'
i2c.c:149: error: 'ELFIN_GPIO_BASE' undeclared (first use in this function)
i2c.c:149: error: 'GPECON_OFFSET' undeclared (first use in this function)
i2c.c:155: error: 'i2c' undeclared (first use in this function)
i2c.c:191: warning: implicit declaration of function 'get_PCLK'
i2c.c: In function 'i2c_transfer':
i2c.c:225: error: 'S3C24X0_I2C' undeclared (first use in this function)
i2c.c:225: error: expected expression before 'const'
i2c.c:238: error: 'i2c' undeclared (first use in this function)
i2c.c: At top level:
i2c.c:421: warning: function declaration isn't a prototype
i2c.c: In function 'vga_init':
i2c.c:432: warning: passing argument 4 of 'i2c_write' from incompatible pointer type
/home/fedora/workspace/uboot_ok2416_1.3.4/include/i2c.h:152: note: expected 'uchar *' but argument is of type 'int *'
make[1]: *** [i2c.o] 错误 1
make[1]: Leaving directory `/home/fedora/workspace/uboot_ok2416_1.3.4/cpu/s3c24xx'
make: *** [cpu/s3c24xx/libs3c24xx.a] 错误 2
[fedora@localhost uboot_ok2416_1.3.4]$
百度一下说是声明的问题,改了声明还是一样的,自己刚刚入门,求解,谢谢!

回复

使用道具 举报

2

主题

4

帖子

15

积分

AM335x通行证

 楼主| 发表于 2017-6-25 12:26:59 | 显示全部楼层
:'(:'(:'(:'(:'(:'(:'(:'(:'(:'(:'(:'(:'(:'(:'(:'(:'(:'(没人理。
点评回复 支持 反对

使用道具 举报

1

主题

3669

帖子

3887

积分

发表于 2017-6-26 17:41:21 | 显示全部楼层

您好:
    如无必要,请使用与我们相同的开发环境,否则出了状况也是不好分析的
技术支持电话:0312-3119192
技术支持邮箱:Android@forlinx.com
点评回复 支持 反对

使用道具 举报

1

主题

3669

帖子

3887

积分

发表于 2017-6-26 17:41:25 | 显示全部楼层

您好:
    如无必要,请使用与我们相同的开发环境,否则出了状况也是不好分析的
技术支持电话:0312-3119192
技术支持邮箱:Android@forlinx.com
点评回复 支持 反对

使用道具 举报

0

主题

3

帖子

5

积分

发表于 2018-1-3 22:02:11 来自手机 | 显示全部楼层
请问,有替代2416核心板方案吗?
点评回复 支持 反对

使用道具 举报

0

主题

3

帖子

5

积分

发表于 2018-1-3 22:07:31 来自手机 | 显示全部楼层
哪位有2416核心板,救急。二手的也可以。
点评回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|小黑屋| 飞凌嵌入式 ( 冀ICP备12004394号-1 )

GMT+8, 2024-3-29 18:34

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

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