NetBSD starting mirror for making embedded chip s3c2410 Board Card

Source: Internet
Author: User
Tags ftp gdb debugger linux

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.