找回密码
 注册
关于网站域名变更的通知
查看: 225|回复: 1
打印 上一主题 下一主题

求助:关于am335xd编译报错的问题

[复制链接]
  • TA的每日心情

    2019-11-19 15:32
  • 签到天数: 1 天

    [LV.1]初来乍到

    跳转到指定楼层
    1#
    发表于 2020-4-13 13:34 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式

    EDA365欢迎您登录!

    您需要 登录 才可以下载或查看,没有帐号?注册

    x
    有个问题请教:我下载了tisdk包,里面有的uboot是201109的,我使用的开发板是飞凌的ok335xd,我想自己编译个uboot测试功能,在没有任何修改的情况下编译报错, , 使用的编译命令是:make CROSS_COMPILE=ARM-linux-gnueabihf-  am335x_evm_config
    ; e: F" v5 T. v+ P8 v/ Y, Y* e% @' u2 Umake CROSS_COMPILE=arm-linux-gnueabihf-  am335x_evm
    / G, h% \/ z; ^& @6 R0 P+ j; g这样编译后报错
    & P- R1 [- q* J& {& B
    ! q+ [  R" F/ R* l/ \6 [2 t- Sake[1]: Entering directory `/root/work/TOD_uboot/335xd_uboot_201109/drivers/net'' t8 I1 X8 M, K& B0 f; M, n. I& m
    make[1]: Leaving directory `/root/work/TOD_uboot/335xd_uboot_201109/drivers/net'
    ) a1 k7 d; q" B+ e( Umake[1]: Entering directory `/root/work/TOD_uboot/335xd_uboot_201109/drivers/net'
    : o* U# `# f" p2 C! o8 Uarm-linux-gnueabihf-gcc  -g  -Os   -fno-common -ffixed-r8 -msoft-float   -D__KERNEL__ -DCONFIG_SYS_TEXT_BASE=0x80800000 -DCONFIG_SPL_TEXT_BASE=0x402F0400 -I/root/work/TOD_uboot/335xd_uboot_201109/am335x_evm/include2 -I/root/work/TOD_uboot/335xd_uboot_201109/am335x_evm/include -I/root/work/TOD_uboot/335xd_uboot_201109/include -fno-builtin -ffreestanding -nostdinc -isystem /usr/local/arm/gcc-linaro-arm-linux-gnueabihf-4.7/bin/../lib/gcc/arm-linux-gnueabihf/4.7.3/include -pipe  -DCONFIG_ARM -D__ARM__ -marm  -mabi=aapcs-linux -mno-thumb-interwork -march=armv5 -Wall -Wstrict-prototypes -fno-stack-protector -Wno-format-nonliteral -Wno-format-security   -o /root/work/TOD_uboot/335xd_uboot_201109/am335x_evm/drivers/net/cpsw.o cpsw.c -c8 w4 Z, x* r  `
    cpsw.c: In function ‘cpsw_init’:4 P& Q3 \7 X! ?4 G& O; L
    cpsw.c:831:8: warning: passing argument 3 of ‘cpdma_submit’ discards ‘volatile’ qualIFier from pointer target type [enabLED by default]: o  A3 `: j( _5 j5 h
    cpsw.c:652:12: note: expected ‘void *’ but argument is of type ‘volatile uchar *’
    . A# M- k: ?! \: Ocpsw.c: In function ‘cpsw_phy_init’:
    + C+ u7 q8 k, S' _# X7 ycpsw.c:923:4: error: ‘CONFIG_PHY_ADDR’ undeclared (first use in this function)* _1 d2 D1 ]& p) S$ }7 p( \6 o( X
    cpsw.c:923:4: note: each undeclared identifier is reported only once for each function it appears in- a* P1 P# n6 z8 R4 k/ b
    cpsw.c: In function ‘cpsw_register’:
    & g/ F0 P5 d9 U& T2 Ycpsw.c:981:12: warning: assignment from incompatible pointer type [enabled by default]0 S9 }5 w0 R, m6 `  @
    make[1]: *** [/root/work/TOD_uboot/335xd_uboot_201109/am335x_evm/drivers/net/cpsw.o] Error 15 F5 \) d; C% x6 `" a
    make[1]: Leaving directory `/root/work/TOD_uboot/335xd_uboot_201109/drivers/net'
    ! r6 C! M9 h& |7 d* l6 b7 `make: *** [/root/work/TOD_uboot/335xd_uboot_201109/am335x_evm/drivers/net/libnet.o] Error 2
    . S5 \3 c! z9 J; Y) g  L: v: }) F
    0 v# N4 I2 O# y% ~$ c" |请教这个是什么错误,我在网上找了半天,别人都是可以编译过的, k* L0 P5 _; q3 V0 H+ ]0 S8 A" V

    该用户从未签到

    2#
    发表于 2020-4-13 19:56 | 只看该作者
    是不是这个CONFIG_PHY_ADDR未声明啊
    您需要登录后才可以回帖 登录 | 注册

    本版积分规则

    关闭

    推荐内容上一条 /1 下一条

    EDA365公众号

    关于我们|手机版|EDA365电子论坛网 ( 粤ICP备18020198号-1 )

    GMT+8, 2025-7-1 12:11 , Processed in 0.093750 second(s), 23 queries , Gzip On.

    深圳市墨知创新科技有限公司

    地址:深圳市南山区科技生态园2栋A座805 电话:19926409050

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