移植最新uboot的总结
C0 root=/dev/mtdblock3 rootfstype=jffs2
二:
烧写YAFFS
tftp 30000000 fs_mini_mdev.yaffs2
nand erase.part rootfs
nand write.yaffs 30000000 260000
更新UBOOT:
tftp 30000000 u-boot.bin; protect off all; erase 0 3ffff; cp.b 30000000 0 40000
colin 查看数据:
SMDK2410 # nand dump 260000
制作补丁:
book@book-desktop:/work/system/u-boot-2012.04.01$
book@book-desktop:/work/system/u-boot-2012.04.01$
book@book-desktop:/work/system/u-boot-2012.04.01$
book@book-desktop:/work/system$
book@book-desktop:/work/system$
book@book-desktop:/work/system$
book@book-desktop:/work/system$
diff -urN u-boot-2012.04.01 u-boot-2012.04.01_100ask > u-boot-2012.04.01_100ask.patch
怎么用这个补丁:
book@book-desktop:/work/system$
book@book-desktop:/work/system/u-boot-2012.04.01$
book@book-desktop:/work/system/u-boot-2012.04.01$
book@book-desktop:/work/system/u-boot-2012.04.01$
最重要的一点:
修改NFS.C里面的#define NFS_TIMEOUT (10*2000UL)
这样可以解决
SMDK2410 # nfs 32000000 192.168.1.51:/work/nfs_root/uImage_new
dm9000 i/o: 0x20000000, id: 0x90000a46
DM9000: running in 16 bit mode
MAC: 08:00:3e:26:0a:5b
could not establish link
Using dm9000 device
File transfer via NFS from server 192.168.1.51; our IP address is 192.168.1.17
Filename /work/nfs_root/uImage_new.
Load address: 0x32000000
Loading: #################################################################
分析"重定位之修改代码为新地址":
#ifndef CONFIG_SPL_BUILD
fixloop:
fixabs:
fixrel:
fixnext:
#endif
=====================================================================================
1、下载、建立source insight工程、编译、烧写、如果无运行分析原因
tar xjf u-boot-2012.04.01.tar.bz2
cd u-boot-2012.04.01
make smdk2410_config
make
由于arm-linux-gcc版本太低,编译出错
arm-linux-gcc -v
下面来更换arm-linux-gcc到最新版本,以arm-linux-gcc-4.3.2.tar.bz2为例:
a、到服务器上安装工具链:
移植uboo 相关文章:
- minis3c2440移植之uboot移植(11-24)
- 移植uboot2010.09到S3C2440二(11-20)
- Windows CE 进程、线程和内存管理(11-09)
- RedHatLinux新手入门教程(5)(11-12)
- uClinux介绍(11-09)
- openwebmailV1.60安装教学(11-12)