|
|
EDA365欢迎您登录!
您需要 登录 才可以下载或查看,没有帐号?注册
x
有个问题请教:我下载了tisdk包,里面有的uboot是201109的,我使用的开发板是335xd,我想自己编译个uboot测试功能,在没有任何修改的情况下编译报错, , 使用的编译命令是:make CROSS_COMPILE=ARM-linux-gnueabihf- am335x_evm_config8 |! Q. O: e$ b. @. c& w0 l1 C# _2 X
make CROSS_COMPILE=arm-linux-gnueabihf- am335x_evm
5 n" S5 J) j/ W) k这样编译后报错
7 Y! H9 N) |8 m7 ~2 S( x* N
7 |: F- Q( l" Q! o0 |8 _4 _ake[1]: Entering directory `/root/work/TOD_uboot/335xd_uboot_201109/drivers/net'3 ^5 j1 c4 F a+ e
make[1]: Leaving directory `/root/work/TOD_uboot/335xd_uboot_201109/drivers/net'
) l! i5 W- q/ l6 r4 ]make[1]: Entering directory `/root/work/TOD_uboot/335xd_uboot_201109/drivers/net'
; s+ y" } o7 E& W( yarm-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 -c
# }& M0 u: t1 ~) C1 J, Mcpsw.c: In function ‘cpsw_init’:
- z$ T1 v; u7 t {7 A+ I# ?cpsw.c:831:8: warning: passing argument 3 of ‘cpdma_submit’ discards ‘volatile’ qualIFier from pointer target type [enabLED by default]
. j4 x8 `9 U$ q3 S! F1 {cpsw.c:652:12: note: expected ‘void *’ but argument is of type ‘volatile uchar *’* |" U' n, [6 E/ h4 }1 q4 r
cpsw.c: In function ‘cpsw_phy_init’:
/ T! F5 ~$ g8 m" `cpsw.c:923:4: error: ‘CONFIG_PHY_ADDR’ undeclared (first use in this function)8 c8 `3 t! W' a1 z. i7 F
cpsw.c:923:4: note: each undeclared identifier is reported only once for each function it appears in
/ F+ O! ^% u5 A* P1 t$ Zcpsw.c: In function ‘cpsw_register’:
6 g/ T0 _: G! V! M2 `cpsw.c:981:12: warning: assignment from incompatible pointer type [enabled by default]
3 n( m$ q7 Y, h6 p9 K9 r" _make[1]: *** [/root/work/TOD_uboot/335xd_uboot_201109/am335x_evm/drivers/net/cpsw.o] Error 16 r. Q! u& D) i! ]# K1 T/ [
make[1]: Leaving directory `/root/work/TOD_uboot/335xd_uboot_201109/drivers/net'- F2 u" O1 o t$ {+ H
make: *** [/root/work/TOD_uboot/335xd_uboot_201109/am335x_evm/drivers/net/libnet.o] Error 2
- t& A# f0 R2 M: x8 z7 |! |+ \6 M; q$ f$ P6 |' Z7 W# p
请教这个是什么错误,我在网上找了半天,别人都是可以编译过的* { q8 O: p% c3 D8 O4 }
; X# s N* i o, G$ m& o4 G
6 L+ m" f; d& [" e: p
9 b) E$ p; n: E; e+ g# W5 p
; n; T7 E4 b; Y) L2 }" a! @
5 l/ d1 f/ V0 L) s) C9 N }+ N2 ^9 K2 }" k6 A, p
' \+ X5 S j+ s, b- e) l! G0 P- ]& N) d8 z0 V8 A' x
' q/ u, I3 ]% u4 {+ }8 J1 t& m. m5 u7 S9 p$ G% ]( L
: I) V7 j& {4 q2 y- v
|
|