现在的位置: 首页 > 综合 > 正文

s3c2416 u-boot 常用命令使用

2013年02月01日 ⁄ 综合 ⁄ 共 5719字 ⁄ 字号 评论关闭

1 SD卡命令:                                                               

SMDK2416 # mmcinit                                                             

SDHC size: 7580 MB                                                                                                                

SMDK2416 # fatls mmc 0:1                                                       

           recycler/                                                          

   54408  autorun.inf                                                        

  218380  u-boot.bin                                                         

 1753372  zimage                                                             

 40617984  rootfs.yaffs2                                                      

                                                                               

4 file(s), 1 dir(s)                                                            

                                                                               

SMDK2416 # fatload mmc 0:1 30008000 u-boot.bin                                 

reading u-boot.bin                                                             

                                                                               

218380 bytes read

 

SMDK2416 # <INTERRUPT>

 

2 DNW
命令

SMDK2416 # dnw 30008000

Now, Waiting for DNW to transmit data

通过DNW工具传送数据

Download Done!! Download Address: 0x30008000, Download Filesize:0x379f0

Now, Checksum calculation

Checksum O.K !!!

 

SMDK2416 #

3U

SMDK2416 # usb stop                                                           

stopping USB..                                                                

SMDK2416 # usb start                                                          

(Re)start USB...                                                              

USB:  scanning bus for devices... 2 USB Device(s) found                      

      scanning bus for storage devices... 1 Storage Device(s) found

 

SMDK2416 # usb dev                                                            

                                                                              

USB device 0: Vendor: SanDisk Prod.: Cruzer Rev: 1.00                         

           Type: Removable Hard Disk                                         

           Capacity: 3827.0 MB = 3.7 GB (7837696 x 512)

SMDK2416 # fatls usb 0:1                                                      

   25234  tek00002.png                                                      

           inotouch editor v109b007d00_20111216/                             

           g.d./                                                             

  307498  1.jpg

              ……

  92 file(s), 87 dir(s)

SMDK2416 # fatload usb 0:1 30008000 1.jpg

reading 1.jpg

..............................

 

307498 bytes read

SMDK2416 #

 

4,JFFS2 文件系统使用

SMDK2416 # ls                                                                 

 

 -rw-r--r--       4 Thu Feb 23 02:34:49 2012 1.c                             

 -rwxr-xr-x 1803032 Thu Feb 23 06:44:55 2012 zImage

SMDK2416 # fsload 30008000 zImage                                             

### JFFS2 loading 'zImage' to 0x30008000                                      

### JFFS2 load complete: 1803032 bytes loaded to 0x30008000                   

SMDK2416 # bootm 30008000                                                     

Boot with zImage                                                              

                                                                              

Starting kernel ...                                                           

                                                                              

Uncompressing Linux............................................................

 

5 ,网络

SMDK2416 # ping 192.168.60.20                                                 

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

DM9000: running in 16 bit mode                                                

MAC: 00:40:5c:26:0a:5b                                                        

host 192.168.60.20 is alive                                                   

SMDK2416 #

SMDK2416 # tftp 30008000 zImage                                               

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

DM9000: running in 16 bit mode                                                

MAC: 00:40:5c:26:0a:5b                                                        

TFTP from server 192.168.60.20; our IP address is 192.168.60.21               

Filename 'zImage'.                                                            

Load address: 0x30008000                                                      

Loading: #################################################################    

        ##########################################################           

done                                                                          

Bytes transferred = 1802864 (0x1b8270)                                        

SMDK2416#

6,  nand flash命令

nand write.jffs2  烧写JFFS2文件系统,跳过坏块 

 Nand write.yaffs  烧写yaffs2文件系统,需叶对齐。

 Nand write.i     等同
nand write.jffs2

7 movi read/write 命令

 tftp 30008000 u-boot-movi.bin                                      

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

DM9000: running in 16 bit mode                                                

MAC: 00:40:5c:26:0a:5b                                                        

TFTP from server 192.168.60.20; our IP address is 192.168.60.21               

Filename 'u-boot-movi.bin'.                                                   

Load address: 0x30008000                                                      

Loading: ###################                                                  

done                        

SMDK2416# movi write 3911150# 270336 30008000                                  

Writing data to sector 3911150 (4994 sectors).. completed

此命令可以直接烧写u-boot-movi.binSD卡,无需IROM_Fusing_Tool.exe或者moviNAND_Fusing_Tool.exe

抱歉!评论已关闭.