歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
您现在的位置: Linux教程網 >> UnixLinux >  >> Linux編程 >> Linux編程

Linux 3.3.7內核移植到S3C6410開發板

解壓縮3.3.7內核
tar jxf linux-3.3.7.tar.bz2 -C /

cd /linux/3.3.7

修改基本make環境

vim Makefile
 195: ARCH        ?= arm
 196: CROSS_COMPILE  ?= arm-linux-

運行make help中找出最接近的平台

make s3c6400_defconfig

勾選平台MINI6410 注:s3c6410也可以,但是s3c6410默認並無網絡支持

make menuconfig
 System Type  --->
 [*] MINI6410

 uboot bootm啟動時會像內核傳遞平台代碼,設法解決平台編號問題

================= MACH-ID =================
u-boot:
 vim include/configs/up6410_nand.h
  or include/configs/up6410_sd.h

 //#define MACH_TYPE      1626
 #define MACH_TYPE      2520

or kernel:
 vim arch/arm/tools/mach-types
 
 #mini6410 MACH_MINI6410 MINI6410 2520
 mini6410 MACH_MINI6410 MINI6410 1626
 #smdk6410 MACH_SMDK6410 SMDK6410 1626

勾選相關的選項使內核支持NFS文件系統

=================== NFS ===================
make menuconfig
 [*] Networking support  --->
 Networking options  --->
 [*] TCP/IP networking
 [*]  IP: kernel level autoconfiguration

 Device Drivers  --->
 [*] Network device support  --->
 [*]  Ethernet driver support (NEW)  --->
 <*>  DM9000 support

 File systems  --->
 [*] Network File Systems (NEW)  --->
 <*>  NFS client support
 [*]  Root file system on NFS

============================================

make -j2 zImage

Copyright © Linux教程網 All Rights Reserved