Cross build environment up and running
We want to use the T1000 as a build server which produces binaries for the ARM processor platform. So the main application we need is a cross platform gcc.Finally I succeeded in building an arm-elf-gcc-4.1.0. In order to do that I had to install lots of packages from Sunfreeware.com. They have the main gnu applications built for Solaris 10. Some things I had to build on my own, e.g. the binutils. But after all it worked.
Another obstacle on the way was cmake which is the buildsystem we use.
Also the tools for ecos, our embedded operating system had to be built. But now it is all up and running.
"make -j 24" looks quite impressive:
load averages: 1.27, 1.10, 1.04 13:38:56
113 processes: 87 sleeping, 3 running, 23 on cpu
CPU states: 62.6% idle, 31.2% user, 6.2% kernel, 0.0% iowait, 0.0% swap
Memory: 8184M real, 6393M free, 406M swap in use, 7985M swap free
PID USERNAME LWP PRI NICE SIZE RES STATE TIME CPU COMMAND
7667 de 1 20 0 21M 18M cpu/16 0:01 0.30% cc1plus
7665 de 1 30 0 21M 17M cpu/17 0:01 0.30% cc1plus
7680 de 1 20 0 21M 18M cpu/1 0:01 0.29% cc1plus
7673 de 1 30 0 21M 17M cpu/6 0:01 0.29% cc1plus
7677 de 1 30 0 21M 17M cpu/20 0:01 0.29% cc1plus
7686 de 1 30 0 21M 18M cpu/18 0:01 0.29% cc1plus
7689 de 1 30 0 21M 17M cpu/10 0:01 0.29% cc1plus
7692 de 1 30 0 21M 17M cpu/8 0:01 0.29% cc1plus
7688 de 1 30 0 21M 17M cpu/22 0:01 0.29% cc1plus
7690 de 1 30 0 21M 17M cpu/0 0:01 0.29% cc1plus
7694 de 1 30 0 21M 17M cpu/9 0:01 0.29% cc1plus
7685 de 1 30 0 19M 14M cpu/21 0:01 0.29% cc1plus
7684 de 1 30 0 17M 14M cpu/15 0:01 0.29% cc1plus
7696 de 1 30 0 21M 17M cpu/19 0:01 0.29% cc1plus
7705 de 1 20 0 15M 13M cpu/13 0:01 0.28% cc1plus
It's fun watching how all this little compile processes are balanced to different threads. In the end performance is only about 20% better than on our 3.0 GHz Pentium IV, but there are lot of ideas for tuning. More detailed benchmarks will follow later on.
At the moment I'm using Dan Kegels crosstool for building a arm-linux-gcc-3.4.5. When it's finished I will start cross compiling the linux kernel for ARM.
I guess that will be fun ;)

0 Comments:
Post a Comment
<< Home