s3c6410移植3.3.7内核

时间:2022-01-17 03:11:17

解压缩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