1、移植环境:html
一、 Ubuntu 10.10发行版linux
二、 u-boot.binvim
三、 目标机:FS_S5PC100平台服务器
四、 交叉编译器 arm-cortex_a8-linux-gnueabi-gcc网络
---------------------------------------------------------------------dom
2、移植步骤socket
一、平台代码修改post
$ vim arch/arm/mach-s5pc100/mach-smdkc100.c
#if defined(CONFIG_DM9000) #include <linux/dm9000.h> #include <linux/irq.h> #endif
#if defined(CONFIG_DM9000) &s5pc100_device_dm9000, #endif
二、配置内核url
$ make menuconfig
[*] Networking support(NEW) ---> Networking option ---> <*> Packet socket <*> Unix domain socket [*] TCP/IP networking [*] IP: multicasting [*] IP: kernel level autoconfiguration [*] IP: BOOTP support
[*] Device Drivers ---> [*] Network device support ---> [*] Ethernet(10 or 100Mbit) ---> <*> DM9000 support
File systems ---> [*] Network File Systems ---> <*> NFS client support [*] NFS client support for NFS version 3 [*] NFS client support for the NFSv3 ACL protocol extension [*] Root file system on NFS
---------------------------------------------------------------------spa
3、编译内核,并拷贝到tftpboot目录下
$ make zImage
$ cp arch/arm/boot/zImage /tftpboot
启动开发板,修改内核启动参数,经过NFS方式挂载根文件系统,挂载方式可参考 NFS服务器配置。
原文连接:http://www.cnblogs.com/lr-ting/archive/2012/07/05/2577288.html