linux-sunxi / u-boot-sunxi

Allwinner A1x native u-boot support
https://github.com/linux-sunxi/u-boot-sunxi/wiki
316 stars 333 forks source link

A13 uboot:undefined reference to 'i2c_read' #95

Open Any012 opened 7 years ago

Any012 commented 7 years ago

make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- A13-Lichee_config time make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- 2>&1 | tee build.log

error: arch/arm/mach-sunxi/built-in.o: In function pmic_bus_read: /home/any/ilichee/u-boot-sunxi/arch/arm/mach-sunxi/pmic_bus.c:64:undefined reference to i2c_read' arch/arm/mach-sunxi/built-in.o: In function pmic_bus_read: /home/any/ilichee/u-boot-sunxi/arch/arm/mach-sunxi/pmic_bus.c:64:undefined reference to 'i2c_write' make[1]: * [spl/u-boot-spl] Error 1 make: * [spl/u-boot-spl] Error 2

the 'arm-linux-gnueabihf- A13-Lichee_config' file was downlaod from https://github.com/Zepan/ilichee/tree/master/ConfigFiles

the operationsystem is Ubuntu 14.04. the version of GCC is 4.7.

ghost commented 7 years ago

Download again the config file, it has been updated. CONFIG_SPL_I2C_SUPPORT=y has to be added.