[U-Boot] onenand compile failures w/top of tree on ARM

When trying to build the apollon_config w/top of tree I get:
arm-linux-gcc -g -Os -fno-strict-aliasing -fno-common -ffixed-r8 - msoft-float -D__KERNEL__ -DTEXT_BASE=0x80e80000 -I/tmp/u-boot-85xx/ include -fno-builtin -ffreestanding -nostdinc -isystem /local/opt/eldk/ 4.1/arm-linux-x86/usr/bin/../lib/gcc/arm-linux/4.0.0/include -pipe - DCONFIG_ARM -D__ARM__ -march=armv5 -mabi=apcs-gnu -mno-thumb-interwork -Wall -Wstrict-prototypes -c -o onenand_base.o onenand_base.c onenand_base.c: In function 'onenand_bufferram_offset': onenand_base.c:331: error: 'struct mtd_info' has no member named 'oobblock' onenand_base.c: In function 'onenand_read_ecc': onenand_base.c:541: error: 'struct mtd_info' has no member named 'oobblock' onenand_base.c:543: error: 'struct mtd_info' has no member named 'oobblock' onenand_base.c:544: error: 'struct mtd_info' has no member named 'oobblock' onenand_base.c:545: error: 'struct mtd_info' has no member named 'oobblock' onenand_base.c:549: error: 'struct mtd_info' has no member named 'oobblock' onenand_base.c: In function 'onenand_read_oob': onenand_base.c:664: error: 'struct mtd_info' has no member named 'oobblock' onenand_base.c: In function 'onenand_write_ecc': onenand_base.c:749: error: 'struct mtd_info' has no member named 'oobblock' onenand_base.c:749: error: 'struct mtd_info' has no member named 'oobblock' onenand_base.c:760: error: 'struct mtd_info' has no member named 'oobblock' onenand_base.c:762: error: 'struct mtd_info' has no member named 'oobblock' onenand_base.c:768: error: 'struct mtd_info' has no member named 'oobblock' onenand_base.c: In function 'onenand_probe': onenand_base.c:1212: error: 'struct mtd_info' has no member named 'oobblock' onenand_base.c:1214: error: 'struct mtd_info' has no member named 'oobblock' onenand_base.c:1216: error: 'struct mtd_info' has no member named 'oobblock' onenand_base.c:1219: error: 'struct mtd_info' has no member named 'oobblock' onenand_base.c:1221: error: 'struct mtd_info' has no member named 'oobblock' onenand_base.c:1243: error: 'struct mtd_info' has no member named 'read_ecc' onenand_base.c:1244: error: 'struct mtd_info' has no member named 'write_ecc' onenand_base.c:1245: warning: assignment from incompatible pointer type onenand_base.c:1246: warning: assignment from incompatible pointer type make[1]: *** [onenand_base.o] Error 1 make[1]: Leaving directory `/tmp/u-boot-85xx/drivers/mtd/onenand' make: *** [drivers/mtd/onenand/libonenand.a] Error 2

On Fri, Aug 15, 2008 at 08:51:45AM -0500, Kumar Gala wrote:
When trying to build the apollon_config w/top of tree I get:
What SHA-1?
arm-linux-gcc -g -Os -fno-strict-aliasing -fno-common -ffixed-r8 - msoft-float -D__KERNEL__ -DTEXT_BASE=0x80e80000 -I/tmp/u-boot-85xx/ include -fno-builtin -ffreestanding -nostdinc -isystem /local/opt/eldk/ 4.1/arm-linux-x86/usr/bin/../lib/gcc/arm-linux/4.0.0/include -pipe - DCONFIG_ARM -D__ARM__ -march=armv5 -mabi=apcs-gnu -mno-thumb-interwork -Wall -Wstrict-prototypes -c -o onenand_base.o onenand_base.c onenand_base.c: In function 'onenand_bufferram_offset': onenand_base.c:331: error: 'struct mtd_info' has no member named 'oobblock' onenand_base.c: In function 'onenand_read_ecc': onenand_base.c:541: error: 'struct mtd_info' has no member named 'oobblock' onenand_base.c:543: error: 'struct mtd_info' has no member named 'oobblock' onenand_base.c:544: error: 'struct mtd_info' has no member named 'oobblock' onenand_base.c:545: error: 'struct mtd_info' has no member named
...etc.
This should be fixed by d438d50848e9425286e5fb0493e0affb5a0b1e1b.
onenand_base.c:1245: warning: assignment from incompatible pointer type onenand_base.c:1246: warning: assignment from incompatible pointer type
This needs updating for the new API, though nothing should be calling onenand via this interface yet.
-Scott

Hi,
I checked it and compiled okay except read_oob/write_oob function incompatibility.
It required some big changes since it also modify read/write function too.
anyway I will make it soon.
Thank you, Kyungmin Park
This should be fixed by d438d50848e9425286e5fb0493e0affb5a0b1e1b.
onenand_base.c:1245: warning: assignment from incompatible pointer type onenand_base.c:1246: warning: assignment from incompatible pointer type
This needs updating for the new API, though nothing should be calling onenand via this interface yet.
-Scott _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
participants (3)
-
Kumar Gala
-
Kyungmin Park
-
Scott Wood