The Target Platform this transplant is a JX44B0-1B teaching laboratory launched by Wuhan Chuangwitch (http://www.cvtech.com.cn), Host Platform is a PC equipped with Red Hat Linux 9.
The process of the entire transplant is as follows:
1, get UCLinux-dist
Log in to Red Hat in root, copy uclinux-dist-jx44b0.tar.gz from the attached CD of the teaching experiment board (UCLinux-DIST-20040408 release version) Compact package to / root / directory, create a new terminal, enter Command tar -zxvf uclinux-dist-jx44b0.tar.gz decompressed. After the decompression is successful, you get a new directory called UCLinux-Dist in / root /, which is the source code directory of Uclinux.
2, UCLinux cross-compilation environment establishment and use
Since the PC uses Intel X86-compatible AMD ATHLON XP 1800 CPU, the target platform is used by SAMSUNG S3C44B0 chips with ARM7TDMI cores. The two instruction sets are incompatible, so they need to be operated on the PC It is capable of generating a cross-compiler that can be operated on the ARM. The cross-compiled environment used in this transplant is arm-elf-tools, from http://www.uclinux.org, the command sh arm-elf-tools-20030314.sh after executing from http://www.uclinux.org Install the environment.
3, UCLinux kernel configuration and compilation
Enter / root / uclinux-dist /, you can see three versions of Linux kernel source code, Linux-2.0.x, Linux-2.4.x and Linux-2.6.x, this transplant is relatively stable Linux -2.4.x. Enter /Root/uclinux/linux-2.4.x/, execute the Make MenuConfig to start the Linux kernel menu configuration tool, then select Load An Alternate Configuration File, enter config-jx44b0, then select the standard configuration file CONFIG-JX44B0 using JX44B0, This file is located in /root/uclinux-dist/linux-2.4.x/ directory. Then select OK to confirm, click the ESC button to exit, select YES to save, the configuration is complete when prompted to save. Next, execute the file-dependent relationship of the command Make DEP, and then execute the Make Zimage to compile the Make Zimage, Zimage will generate a compressed kernel. After the completion is completed, the generated UCLinux executable image is located in the / root / uclinux-dist / images / directory.