移植:
- 编译
- 解决错误
2.1 头文件不对:去掉或改名
2.2 宏不对:改名使用新宏
2.3 有些函数没有了:改名使用新函数
mount -t nfs -o nolock,vers=2 192.168.31.202:/work/nfs_root/fs_mini_mdev_new /mnt
nfs 30000000 192.168.31.202:/work/nfs_root/uImage_net_new; bootm 30000000
set bootargs console=ttySAC0,115200 root=/dev/nfs nfsroot=192.168.31.202:/work/nfs_root/fs_mini_mdev_new ip=192.168.31.203:192.168.31.202:192.168.31.1:255.255.255.0::eth0:off
nfsroot=[
ip=
nfs 30000000 192.168.31.202:/work/nfs_root/uImage_nolcd; bootm 30000000
nfs 30000000 192.168.31.303:/work/nfs_root/uImage_nonand; bootm 30000000
set machid 16a
tslib:
/usr/local/arm/4.3.2/arm-none-linux-gnueabi/libc/usr/include/linux/input.h
define EV_VERSION 0x010000
改为
define EV_VERSION 0x010001
移植dm9000到linux-3.4.2
修改mach-smdk2440.c文件并覆盖源文件
make uImage
cp arch/arm/boot/uImage /work/nfs_root/uImage_net
开发板上操作
nfs 32000000 192.168.31.202:/work/nfs_root/uImage_net
set machid 16a //设置机器码
bootm 32000000
ifconfig eth0 192.168.31.203
mount -t nfs -o nolock,vers=2 192.168.31.202:/work/nfs_root/fs_mini_mdev_new /mnt
把最新的网卡驱动复制到新的内核
把mini2440源码drivers_and_test17th_dm9000c修改好的dm9dev9000c.c 复制到/work/drivers_and_test_new/17th_dm9000/ 内核drivers/net