Recently, a lot of time in Arm9 s3c2410a ran a NetBSD3.0. Refer to some information on the Internet, especially a Korean website (do not understand Ah, Shingwen), I recorded the process in detail, to the AIDS enthusiasts.
The whole process is very simple! I think the reason is that NetBSD is a complete OS.
The following is a detailed description of the process (due to NetBSD itself excellent build framework, so the steps are not much, I can do is to say more details, say wordy, ah ~)
Production of the host environment, casual, both: can be NetBSD themselves, can also be freebsd,linux can be, the same method.
Target operating environment S3C2410 chip development version (I tested two pieces, but do not guarantee that all boards can be run without modification)
References: Download NetBSD source code in ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.0.1/source/sets/, including Src.tgz, Syssrc.tgz, Gnusrc.tgz, Share.tgz
% foreach file (*.tgz)
? TAR-XZF $file-C/
? End #解压缩所有元码文件到/USR/SRC Directory
Src.tgz is the source code for/usr/bin,/usr/sbin,/bin,/sbin tools,/lib/libexec library files, etc.
Syssrc.tgz is the kernel source code for the NetBSD system
Gnusrc.tgz is the source code for the GNU community's software, including the GCC compiler, the GDB debugger, binutils, and so on, and the libraries required by these GNU tools
SHARE.TGZ contains the compiled control files needed for makefile, and also has a copy of the/USR/SHARE/MK under
References: Cross compilers
Cd/usr/src
Mkdir.. /obj
./build.sh-mevbarm Tools
Cross-compile arm cross compiler (see Add: 1), the-M option is to tell build.sh what we need is arm's compiler.
After this step, a tooldir.xx folder is generated under/USR/SRC.
I compiled it under FreeBSD6.1, so this folder is named Tooldir. Freebsd-6.1-release-i386.
Under Zenwalk Linux, the name is Tooldir. Linux-2.6.16-unknow-i386
The default generation is 4.1.2, and if you need to use the 3.3.3 compiler, you can add have_gcc=3 in/etc/mk.conf (which may need to be built manually)
In ~/.CSHRC, set path is last added:/usr/src/tooldir. Freebsd-6.1-release-i386/bin, in this way, a complete cross-compilation environment has been built. Don't forget tcsh need rehash.
References: Compiling the kernel (some detailed instructions will explain in a minute that this is just a step)
Since NetBSD has ported the code for the smdk2410 development version of the Samsung S3C2410 chip, our process is very simple.
Cd/usr/src
VI sys/arch/evbarm/conf/smdk2410