Skip to content

编译uboot时报错:undefined reference to 'i2c_read' #11

@Any012

Description

@Any012

环境:VMware虚拟机,Ubuntu14.04,64位,GCC4.8(后改为4.7,问题依旧)。

问题:执行
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions