|
EDA365欢迎您登录!
您需要 登录 才可以下载或查看,没有帐号?注册
x
有个问题请教:我下载了tisdk包,里面有的uboot是201109的,我使用的开发板是335xd,我想自己编译个uboot测试功能,在没有任何修改的情况下编译报错, , 使用的编译命令是:make CROSS_COMPILE=ARM-linux-gnueabihf- am335x_evm_config
4 i( D) j! Z5 J! ~make CROSS_COMPILE=arm-linux-gnueabihf- am335x_evm
* p. ^7 O% O- p6 b& ^) e9 q这样编译后报错; K; G+ X: o% V8 y5 n! |1 q
+ ~! p {. T& J) Z) H
ake[1]: Entering directory `/root/work/TOD_uboot/335xd_uboot_201109/drivers/net'
' B7 J5 @+ p9 u/ rmake[1]: Leaving directory `/root/work/TOD_uboot/335xd_uboot_201109/drivers/net', ~7 g& k- j/ L$ T& d0 b" D
make[1]: Entering directory `/root/work/TOD_uboot/335xd_uboot_201109/drivers/net'
& I6 }! d1 y7 S* a# o, ^arm-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 -c4 p4 j! d9 |" p
cpsw.c: In function ‘cpsw_init’:
. K3 P! ^5 @7 h" o) _cpsw.c:831:8: warning: passing argument 3 of ‘cpdma_submit’ discards ‘volatile’ qualIFier from pointer target type [enabLED by default]
5 {' _4 P4 k. B* r7 Gcpsw.c:652:12: note: expected ‘void *’ but argument is of type ‘volatile uchar *’1 }9 v6 v1 n& ~9 G
cpsw.c: In function ‘cpsw_phy_init’:
1 [* S% b4 J N- Acpsw.c:923:4: error: ‘CONFIG_PHY_ADDR’ undeclared (first use in this function)+ e* y: ^ o+ |# Z
cpsw.c:923:4: note: each undeclared identifier is reported only once for each function it appears in
" L% ?7 ^6 g- ] `& {1 v: q8 X! ccpsw.c: In function ‘cpsw_register’:& ]/ Q% F( @/ E- ]8 V. k
cpsw.c:981:12: warning: assignment from incompatible pointer type [enabled by default]
! U8 b; O6 B: S, a5 X/ Wmake[1]: *** [/root/work/TOD_uboot/335xd_uboot_201109/am335x_evm/drivers/net/cpsw.o] Error 1
7 E0 S2 o+ k+ @ l9 H# b' Q0 ^make[1]: Leaving directory `/root/work/TOD_uboot/335xd_uboot_201109/drivers/net'
4 V5 j, G0 e! n! ]1 }# `make: *** [/root/work/TOD_uboot/335xd_uboot_201109/am335x_evm/drivers/net/libnet.o] Error 2/ U* [2 a2 p0 S" \5 @9 g9 ]
l. P! o7 @6 ~6 G2 @# c4 ?
请教这个是什么错误,我在网上找了半天,别人都是可以编译过的
" J' { H, F1 O4 k
3 B0 n9 n* T7 e2 z( F2 e. Z0 J* ], q+ e+ S4 p
+ x4 R0 p; A) B6 v1 K1 J r
- @5 x, a& O$ G) A+ t. Q- M1 _
" y3 V$ a2 ~) i* c: b
9 F% M( M8 Q( y/ y5 m% |; d, `
3 D6 X9 o4 `9 O5 Q
& N: D, x6 {0 o9 n( ~ r8 h: q/ x' l1 F; l
8 b1 i! w3 S2 _" X5 z) v
' g) V B9 q* Z; o/ s( f |
|