gcc-4.7.3 potential issue with barebox
Hi all,
I noticed an issue with barebox binary about the nandflash detection.
Indeed barebox is unable to detect the nandflash when i build barebox from gcc-4.7.3 (buildroot-2013.05)
By digging a little bit i noticed that the size of atmel_nand.o was different according to the toolchain release (atmel_nand.o 4732bytes vs 5096 bytes for gcc-4.6.3 ) If i disassemble atmel_nand.o i notice that atmel_nand_enable & atmel_nand_disable are missing.
Is it an known issue ?
Gr?gory
Dear Gr?gory Hermant,
Quoted 5 lines · Gr?gory Hermant
I noticed an issue with barebox binary about the nandflash detection.
Indeed barebox is unable to detect the nandflash when i build barebox from gcc-4.7.3 (buildroot-2013.05)
By digging a little bit i noticed that the size of atmel_nand.o was different according to the toolchain release (atmel_nand.o 4732bytes vs 5096 bytes for gcc-4.6.3 ) If i disassemble atmel_nand.o i notice thatatmel_nand_enable&atmel_nand_disableare missing.
Is it an known issue ?
I don't remember hearing about this, but maybe you could check with another ARM gcc 4.7 based toolchain such as the Linaro toolchain, and see if the generated code is correct or not. If the generated code is also not correct, then maybe it's a Barebox issue, otherwise it would most likely be a Buildroot toolchain issue.
Best regards,
Thomas
Signature · 4 lines
Thomas Petazzoni, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com
Hi thomas,
Same issue with gcc version 4.7.3 (Sourcery CodeBench Lite 2013.05-24) toolchain. BR,
gr?gory
Le 17/06/2013 16:25, Thomas Petazzoni a ?crit :
Quoted 18 lines
Dear Gr?gory Hermant,
Quoted 5 lines · Gr?gory Hermant
I noticed an issue with barebox binary about the nandflash detection.
Indeed barebox is unable to detect the nandflash when i build barebox from gcc-4.7.3 (buildroot-2013.05)
By digging a little bit i noticed that the size of atmel_nand.o was different according to the toolchain release (atmel_nand.o 4732bytes vs 5096 bytes for gcc-4.6.3 ) If i disassemble atmel_nand.o i notice thatatmel_nand_enable&atmel_nand_disableare missing.
Is it an known issue ?I don't remember hearing about this, but maybe you could check with another ARM gcc 4.7 based toolchain such as the Linaro toolchain, and see if the generated code is correct or not. If the generated code is also not correct, then maybe it's a Barebox issue, otherwise it would most likely be a Buildroot toolchain issue.
Best regards,
Thomas
Dear Gr?gory Hermant,
Quoted 1 line · Gr?gory Hermant
Same issue with gcc version 4.7.3 (Sourcery CodeBench Lite 2013.05-24) toolchain.
Then maybe it's a Barebox vs. gcc 4.7.x issue that should be reported to the Barebox people? I'm pretty sure they have already built and tested Barebox with gcc 4.7, but maybe there are some remaining problems in specific areas?
Best regards,
Thomas
Signature · 4 lines
Thomas Petazzoni, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com