ubuntu-12.04-desktop-i386
root
sudo apt-get install openssh-server
cd /usr/local/src
1 安装交叉工具链arm-linux-gcc-4.3.2.tgz
(1) tar zxvf arm-linux-gcc-4.3.2.tgz -C /
(2) gedit /etc/profile
export PATH=/usr/local/arm/4.3.2/bin:$PATH
(3) source /etc/profile
(4) echo $PATH
arm-linux-gcc -v
2 编译u-boot
(1) tar zxvf uboot1.1.6-2012-09-25.tar.gz
(2) make clean
make forlinx_nand_ram256_config /* config */
make
3 编译linux内核
(1) tar zxvf linux-3.0.1-2012-09-23.tar.gz
(2) sudo apt-get install libncurses5-dev
make menuconfig ARCH=arm /* 配置内核 .config*/
(3) make zImage ARCH=arm CROSS_COMPILE=arm-linux-
4 制作yaffs2文件系统
(1) tar zxvf FileSystem-Yaffs2.tar.gz
(2) ./mkyaffs2image-nand2g FileSystem-Yaffs2 rootfs.yaffs2
5 一键烧写u-boot.bin(208KB)、zImage(3.46MB)、rootfs.yaffs2(136MB)到OK6410