[mc1322x] CodeSourcery , flash loader

Dean Hall dwhall256 at gmail.com
Wed May 5 12:06:36 EDT 2010


Andrew,  I was able to recreate the issue of the CodeSourcery
assembler segfault on start-romvars.s.  I built the CS toolchain
manually on Mac OS X and got this error when building libmc1322x:

arm-none-eabi-gcc -E -Wa,-gstabs -D__ASSEMBLY__ -g -DDEBUG -Os
-fno-strict-aliasing  -fno-common -ffixed-r8 -ffunction-sections
-Wcast-align -Wall -D__KERNEL__ -DTEXT_BASE= -fno-builtin
-ffreestanding -isystem
/Users/dwhall/arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.4.1/include
-pipe -march=armv4t -mlong-calls -mtune=arm7tdmi-s -DCONFIG_ARM
-D__ARM__ -mthumb -mthumb-interwork  -DUSE_INTS -DUSE_ROM_VECTS
-DUSE_ROM_VARS -o ../src/start-romvars.s ../src/start.S
arm-none-eabi-gcc -Wa,-gstabs -D__ASSEMBLY__ -g -DDEBUG -Os
-fno-strict-aliasing  -fno-common -ffixed-r8 -ffunction-sections
-Wcast-align -Wall -D__KERNEL__ -DTEXT_BASE= -fno-builtin
-ffreestanding -isystem
/Users/dwhall/arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.4.1/include
-pipe -march=armv4t -mlong-calls -mtune=arm7tdmi-s -DCONFIG_ARM
-D__ARM__ -mthumb -mthumb-interwork  -c -o ../src/start-romvars.o
../src/start-romvars.s
arm-none-eabi-gcc: Internal error: Bus error (program as)
Please submit a full bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.
make[1]: *** [../src/start-romvars.o] Error 1

Looks like I am going to go build the straight GNU ARM toolchain manually now.

!!Dean


On Fri, Apr 30, 2010 at 8:30 PM, Andrew Pullin <pullin at berkeley.edu> wrote:
> Here's a couple of things that I've discovered in my tinkering:
>
> CodeSourcery released a new version of their ARM toolchain recently, and it
> supposedly fixes a lot of issue for minimal ARM targets, specifically the
> atexit() calls. It's pretty nice to just be able to unpack a TAR file and
> not have to build the whole toolchain!
>
> <snip>
>
> The downside: none of application that reference NVM code seem to compile.
> The compiler segfaults when trying to assemble start-romvars.o . No idea
> why, though.



More information about the mc1322x mailing list