EDA365电子论坛网
标题:
求助:关于am335xd编译报错的问题
[打印本页]
作者:
ubeautqq
时间:
2020-4-13 13:34
标题:
求助:关于am335xd编译报错的问题
有个问题请教:我下载了tisdk包,里面有的uboot是201109的,我使用的开发板是飞凌的ok335xd,我想自己编译个uboot测试功能,在没有任何修改的情况下编译报错, , 使用的编译命令是:make CROSS_COMPILE=ARM-linux-gnueabihf- am335x_evm_config
9 L! ~8 Z. p4 J' o
make CROSS_COMPILE=arm-linux-gnueabihf- am335x_evm
1 Z' B/ c# M* y
这样编译后报错
6 t( R* o: E8 M, k I8 @( {' W
2 @' {& n1 Z4 c! F
ake[1]: Entering directory `/root/work/TOD_uboot/335xd_uboot_201109/drivers/net'
$ h4 W! |2 z9 c3 R' ^5 G3 | J6 z
make[1]: Leaving directory `/root/work/TOD_uboot/335xd_uboot_201109/drivers/net'
( w5 [* f( e. H. l6 k, B0 e) C# {
make[1]: Entering directory `/root/work/TOD_uboot/335xd_uboot_201109/drivers/net'
) h- U/ v: d5 k6 b P+ B
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 -c
0 o0 n+ I) j. [5 P" |" {
cpsw.c: In function ‘cpsw_init’:
/ }3 H' N6 o, p0 N8 ~- i
cpsw.c:831:8: warning: passing argument 3 of ‘cpdma_submit’ discards ‘volatile’ qualIFier from pointer target type [enabLED by default]
7 E& i' G3 ^4 G; Y
cpsw.c:652:12: note: expected ‘void *’ but argument is of type ‘volatile uchar *’
* w2 F% W! X6 g$ {
cpsw.c: In function ‘cpsw_phy_init’:
; V( C" y9 N: L, E# y
cpsw.c:923:4: error: ‘CONFIG_PHY_ADDR’ undeclared (first use in this function)
/ q: q q! z a% C- E
cpsw.c:923:4: note: each undeclared identifier is reported only once for each function it appears in
* @9 D2 l k- O6 k% ]0 o
cpsw.c: In function ‘cpsw_register’:
, @6 Q0 l/ y0 T
cpsw.c:981:12: warning: assignment from incompatible pointer type [enabled by default]
" F3 f9 [$ j% `! s1 C
make[1]: *** [/root/work/TOD_uboot/335xd_uboot_201109/am335x_evm/drivers/net/cpsw.o] Error 1
3 T9 G ]9 u+ `1 E' O
make[1]: Leaving directory `/root/work/TOD_uboot/335xd_uboot_201109/drivers/net'
0 r. l9 G/ S, {; K
make: *** [/root/work/TOD_uboot/335xd_uboot_201109/am335x_evm/drivers/net/libnet.o] Error 2
4 z' p( r# E: ^' F# ^
' k- n2 R4 z* n$ F- G
请教这个是什么错误,我在网上找了半天,别人都是可以编译过的
$ v. ]) s/ t8 b( h3 y3 H! h# I
作者:
ExxNEN
时间:
2020-4-13 19:56
是不是这个CONFIG_PHY_ADDR未声明啊
欢迎光临 EDA365电子论坛网 (https://bbs.eda365.com/)
Powered by Discuz! X3.2