ARMのgcc環境を構築する5
cygwinでgcc環境を構築する
数年ぶりにcygwin使う。
あれ? cygwinにperl入っていないやん。ってことでperl追加インストール。
...cygwin環境がぶっ壊れたw
cygwin再インストール
http://www.gnuarm.com/bu-2.17_gcc-4.1.1-c-c++_nl-1.14.0_gi-6.5.exe
よりcygwin用のGNU ARM toolchainをダウンロードし、
/home/houo/tools/gnuarm_tools
にインストール。
パスはインストール時に設定するか聞いてくる。
動作確認。
$ arm-elf-gcc -v 213 [main] ? (2500) D:\cygwin\home\houo\tools\gnuarm_tools\bin\arm-elf-gcc.e xe: *** fatal error - D:\cygwin\home\houo\tools\gnuarm_tools\bin\arm-elf-gcc.exe : *** system shared memory version mismatch detected - 0x8A88009C/0x75BE009C. This problem is probably due to using incompatible versions of the cygwin DLL. Search for cygwin1.dll using the Windows Start->Find/Search facility and delete all but the most recent version. The most recent version *should* reside in x:\cygwin\bin, where 'x' is the drive on which you have installed the cygwin distribution. Rebooting is also suggested if you are unable to find another cygwin DLL. 6 [main] ? (4036) D:\cygwin\home\houo\tools\gnuarm_tools\bin\arm-elf-gcc.e 〜〜 略 〜〜
cygwin1.dllのバージョンが合わないみたいなので、今回はバージョンが古かったgnuarmのcygwin1.dllを捨てる。
$ arm-elf-gcc -v Using built-in specs. Target: arm-elf Configured with: ../gcc-4.1.1/configure --target=arm-elf --prefix=/g/gnuarm-4.1. 1 --enable-interwork --enable-multilib --with-float=soft --with-newlib --with-he aders=../newlib-1.14.0/newlib/libc/include --enable-languages=c,c++ Thread model: single gcc version 4.1.1
問題なさそうなのでTOPPERS/JSPのAZ9360MB版sample1をコンパイルしてみる。
$ cd jsp143 $ mkdir OBJ $ mkdir armv4_test01 $ cd armv4_test01 $ perl ../../configure -C armv4 -S az9360mb $ make depend $ make 〜〜 略 〜〜 start.o sample1.o timer.o serial.o logtask.o log_ou tput.o vasyslog.o t_perror.o strerror.o kernel_cfg.o libkernel.a -lgcc arm-elf-nm jsp.exe > jsp.syms arm-elf-objcopy -O srec -S jsp.exe jsp.srec ../../cfg/chk -m jsp.syms,jsp.srec \ -obj -cs jsp.chk -cpu armv4 -system az9360mb Program failed in its process by following reason. [Internel error] Module loading failure [jsp.syms,jsp.srec] make: *** [jsp.exe] Error 1
chk.exe実行で内部エラーになっている。
ROMは一応できているのかな?