用Buildroot为OK6410编译系统Buildroot是一个Makefiles和patches的命令集,它可以非常简单的为你的目标系统产生一个交叉编译工具链和根文件系统。现在用Buildroot给OK6410开发个嵌入式linux操作系统。下载OK6410文件首先下载Buildroot(2011),解压到buildroot-2011.11目录下,并且在buildroot-2011.11目录内创建一个dl目录。下载OK6410的uboot和kernel文件。分别解压到uboot和kernel目录中。进uboot目录,输入make clean && make distclean&& make smdk6410_config。编辑Makefile,将其中的"CROSS_COMPILE=/usr/local/arm/4.4.1/bin/arm-linux-"屏蔽。退出目录,将uboot目录压缩成uboot1.1.6.tar.gz。进入kernel目录,输入make clean。并将FORLINX6410_CFG文件拷贝到arch/arm/configs目录下,并改名为smdk6410onenand_defconfig。退出目录,将kernel目录压缩成kernel3.0.1.tar.gz文件将uboot1.1.6.tar.gz和kernel3.0.1.tar.gz文件移动到builroot-2011.11/dl/内。配置buildroot进入buildroot-2011.11目录,输入"make menuconfig"进行buildroot的配置。按下面显示进行基本配置Target Architecture (i386) ---> (X) armTarget Architecture Variant (generic_arm) ---> (X) arm1176jzf-sTarget (EABI) ---> (X) EABI因飞凌的U-boot源代码不全,无法使用最新版的工具链,必须使用旧的工具链。Toolchain ---> Toolchain type ---> (X) External toolchain Toolchain (Sourcer CodeBench ARM 2009q3) ---> (X) Sourcer CodeBench ARM 2009q3 [*] Download toolchain automaticallySystem configuration ---> (ttySAC0) Port to run a getty (login prompt) on Baudrate to use (115200)Package selection for the target ---> [*] Busybox Busybox version (BusyBox 1.19.x)Filesystem images ---> [*] cramfs root filesystem [ ] tar the root filesystem (Unselect this option)设置U-boot:Bootloaders ---> [*] U-Boot ---> (smdk6410) U-boot board name U-boot version (Custom tarball) ---> (uboot1.1.6.tar.gz) URL of custom U-Boot tarball设置编译的内核Kernel ---> [*] Linux Kernel Kernel version (Custom tarball) ---> (kernel3.0.1.tar.gz) URL of custom kernel tarball Kernel configuration (use a defconfig) ---> (smdk6410onenand) Defconfig name Kernel binary format (zImage) --->如想增加Qt支持,则做如下配置Package Selection for the target ---> Graphic libraries and applictaions (graphic/text) ---> [*] Qt --->编译设置完成后,运行"make"进行编译。如无问题,则在buildroot-2011.11/output/image目录下生成u-boot.bin、zImage、rootfs.cramfs三个文件。将三个文件烧写到OK6410即可。