U-boot进行操作指令全面实例解析

来源:互联网 发布:查看wdcp端口 编辑:程序博客网 时间:2024/06/05 10:31

 手工对U-boot进行操作

 U-Boot> printenv
bootdelay=3
baudrate=115200
stdin=serial
stdout=serial
stderr=serial 

Environment size: 69/16380 bytes 
U-Boot> setenv ipaddr 192.168.1.100 //设置主从机IP地址MAC地址
U-Boot> setenv serverip 192.168.1.140
U-Boot> setenv ethaddr 12:23:34:45:56:67
U-Boot> setenv nf_kernel nand read 21900000 100000 00145F10//设置SDRAM读写地址
U-Boot> setenv nf_ramdisk nand read 20300000 400000 0020632B
U-Boot> setenv bootcmd run nf_kernel/; run nf_ramdisk/; run boot
U-Boot> setenv boot bootm 21900000//设置内核启动地址
U-Boot> setenv bootdelay 3
U-Boot> saveenv
Saving Environment to dataflash... 

************************************************************
setenv ipaddr 192.168.0.230
//设置主从机IP地址MAC地址
 setenv serverip 192.168.0.23

 setenv ethaddr 12:23:34:45:56:68

 setenv nf_kernel nand read 22000000 0 200000
//设置SDRAM读写地址

 setenv nf_ramdisk nand read 21100000 200000 500000

 setenv bootcmd run nf_kernel/; run nf_ramdisk/; run boot

 setenv boot bootm 22000000
//设置内核启动地址

 setenv bootdelay 3

 saveenv

 

linux-2.6.19-sam9260.img

 tftp 22000000 linux-2.6.19-sam9260.img

 tftp 22000000 bzImage_2yaffs

//通过TFTP下载内核 TFTP from server         (13668a hex)
 tftp 21100000 sam9260.gz
//下载文件系统

nand write 22000000 0 200000
 //烧写内核和文件系统从SDRAM到nandflash

 nand write 21100000 200000 500000

nand write 21100000 200000 210000 //根据实际大小烧写

原创粉丝点击