- 积分
- 15
贡献79
飞刀20 FD
注册时间2016-9-30
在线时间3 小时
扫一扫,手机访问本帖
|
我用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]$
百度一下说是声明的问题,改了声明还是一样的,自己刚刚入门,求解,谢谢!
|
|