Chinaunix首页 | 论坛 | 博客
  • 博客访问: 91600
  • 博文数量: 19
  • 博客积分: 760
  • 博客等级: 军士长
  • 技术积分: 260
  • 用 户 组: 普通用户
  • 注册时间: 2009-07-30 16:30
文章存档

2011年(1)

2009年(18)

我的朋友

分类: 嵌入式

2009-08-07 15:28:30

5     编译并下载uboot

5.1        编译uboot

$make distclean

$make edukit2410_config

$make

编译成功之后,在当前目录下会生成uboot.bin文件。

5.2        下载uboot

这里我们采用powericeuboot.bin下载到nandflash0偏移处。

烧写完成后,运行minicom,显示串口输出信息:

U-Boot 1.3.1 (Nov 29 2008 - 15:21:16)                                          

DRAM:  64 MB                                                                    

Flash:  1 MB                                                                   

NAND:  NAND flash probing at 0x4E000000                                        

 64 MB                                                                        

In:    serial                                                                  

Out:   serial                                                                  

Err:   serial                                                                  

dm9000 i/o: 0x20000000, id: 0x90000a46                                         

MAC: 08:00:3e:26:0a:5b                                                         

operating at 100M full duplex mode                                             

lcd initial start                                                               

lcd initial end                                                                

Hit any key to stop autoboot:  0 

[ edukit2410]#

按任意键终止自动运行模式。

5.3        使用uboot自更新

1)更新不带图片显示的u-boot.bin

(1)           将编译生成的uboot.bin拷贝到处tftp目录下面。

(2)           uboot.bin下载到sdram中间

[ edukit2410]# tftp 30000000 u-boot.bin                                         

(3)           擦除nandflash,起始地址为0,大小为0x30000

[ edukit2410]# nand erase 0 30000                                                                                                                             

(4)           uboot.bin固化到nandflash

[ edukit2410]# nand write 30000000 0 30000

2)更新不带图片显示的u-boot.bin

(1)        将编译生成的uboot.bin拷贝到处tftp目录下面。

(2)        uboot.bin下载到sdram中间

[ edukit2410]# tftp 30000000 u-boot.bin                                         

(3)        擦除nandflash,起始地址为0,大小为0x100000

[ edukit2410]# nand erase 0 100000                                                                                                                             

(4)        uboot.bin固化到nandflash

[ edukit2410]# nand write 30000000 0 100000

阅读(2494) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~