mini2440uboot移植-基本操作指令

mini2440uboot移植-基本操作指令

继续uboot移植的基础知识学习

1.首先学习下nandfalsh基本操作指令

nand info(显示可以使用的nand flash)

nand device [dev](显示或设定当前使用的nand flash)

nand read addr off size (nand flash读取命令,从nand的off偏移地址处读取size字节的数据到SDRAM的addr地址)

nand write addr off size (nand flash烧写命令,将SDRAM的addr地址处的size字节的数据烧写到nand flash的off偏移地址)

nand write[.yaffs[1]] addr off size(烧写yaffs映像专用命令,.yaffs1 for 512+16 nand)

nand erase [clean] [off size] (nand flash 擦除命令,擦除nand flash的off偏移地址处的size字节的数据)

nand bad (显示nand flash的坏块)

nand dump[.oob] off (以十六机制显示nand flash中的数据,显示一个扇区中512字节的内容)

nand scrub (彻底擦除整块nand flash中的数据,包括OOB,可以擦除软件坏块标志)

nand markbad off (标志nand flash的off偏移地址处的块为坏块)

使用实例:

 

[u-boot@MINI2440]# nand info



Device 0: NAND 256MiB 3,3V 8-bit, sector size 128 KiB

[u-boot@MINI2440]# nand device 0

Device 0: NAND 256MiB 3,3V 8-bit... is now current device

[u-boot@MINI2440]# nand bad



Device 0 bad blocks:

[u-boot@MINI2440]# nand markbad 0x500000

block 0x00500000 successfully marked as bad

[u-boot@MINI2440]# nand bad             



Device 0 bad blocks:

  00500000

[u-boot@MINI2440]# nand scrub



NAND scrub: device 0 whole chip

Warning: scrub option will erase all factory set bad blocks!

         There is no reliable way to recover them.

         Use this command only for testing purposes if you

         are sure of what you are doing!



Really scrub this NAND flash? <y/N>

Erasing at 0xffe000010000000 --   0% complete.

OK

[u-boot@MINI2440]# nand bad  



Device 0 bad blocks:

[u-boot@MINI2440]# nand dump 0x8000

Page 00008000 dump:

        ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff

        ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff

        ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff

        ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff

        ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff

        ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff

        ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff

        ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff

        ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff

        ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff

        ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff

        ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff

        ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff

        ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff

        ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff

        ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff

        ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff

        ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff

        ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff

        ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff

        ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff

        ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff

        ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff

        ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff

        ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff

        ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff

        ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff

        ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff

        ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff

        ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff

        ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff

        ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff

        ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff

        ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff

        ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff

        ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff

        ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff

        ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff

        ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff

        ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff

        ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff

        ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff

        ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff

        ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff

        ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff

        ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff

        ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff

        ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff

        ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff

        ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff

        ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff

        ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff

        ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff

        ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff

        ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff

        ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff

        ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff

        ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff

        ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff

        ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff

        ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff

        ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff

        ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff

        ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff

        ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff

        ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff

        ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff

        ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff

        ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff

        ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff

        ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff

        ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff

        ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff

        ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff

        ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff

        ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff

        ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff

        ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff

        ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff

        ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff

        ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff

        ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff

        ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff

        ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff

        ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff

        ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff

        ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff

        ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff

        ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff

        ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff

        ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff

        ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff

        ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff

        ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff

        ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff

        ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff

        ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff

        ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff

        ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff

        ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff

        ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff

        ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff

        ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff

        ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff

        ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff

        ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff

        ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff

        ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff

        ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff

        ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff

        ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff

        ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff

        ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff

        ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff

        ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff

        ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff

        ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff

        ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff

        ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff

        ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff

        ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff

        ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff

        ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff

        ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff

        ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff

        ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff

        ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff

        ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff

OOB:

        ff ff ff ff ff ff ff ff

        ff ff ff ff ff ff ff ff

        ff ff ff ff ff ff ff ff

        ff ff ff ff ff ff ff ff

        ff ff ff ff ff ff ff ff

        ff ff ff ff ff ff ff ff

        ff ff ff ff ff ff ff ff

        ff ff ff ff ff ff ff ff

[u-boot@MINI2440]# 

2.下面学习内存/寄存器操作指令

 

nm (修改内存值,指定地址) 格式:nm [.b, .w, .l] address

mm (修改内存值,地址自动加1) 格式:mm [.b, .w, .l] address

md (显示内存值) 格式:md [.b, .w, .l] address [# of objects]

mw (用指定的数据填充内存) 格式:mw [.b, .w, .l] address value [count]

cp (内存的拷贝,包括内存与nor flash间的数据拷贝) 格式:cp [.b, .w, .l] source target count

上面是查看和修改内存值的指令,可以查看和修改SDRAM和寄存器的值,[.b, .w, .l]代表了查看和修改形式:bit,word,long

使用实例:

 

[u-boot@MINI2440]# md.b 0x30008000 20

30008000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff    ................

30008010: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff    ................

[u-boot@MINI2440]# md.b 0x30008000 20

30008000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff    ................

30008010: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff    ................

[u-boot@MINI2440]# md.w 0x30008000 20

30008000: ffff ffff ffff ffff ffff ffff ffff ffff    ................

30008010: ffff ffff ffff ffff ffff ffff ffff ffff    ................

30008020: ffff ffff ffff ffff ffff ffff ffff ffff    ................

30008030: ffff ffff ffff ffff ffff ffff ffff ffff    ................

[u-boot@MINI2440]# md.l 0x30008000 20

30008000: ffffffff ffffffff ffffffff ffffffff    ................

30008010: ffffffff ffffffff ffffffff ffffffff    ................

30008020: ffffffff ffffffff ffffffff ffffffff    ................

30008030: ffffffff ffffffff ffffffff ffffffff    ................

30008040: ffffffff ffffffff ffffffff ffffffff    ................

30008050: ffffffff ffffffff ffffffff ffffffff    ................

30008060: ffffffff ffffffff ffffffff ffffffff    ................

30008070: ffffffff ffffffff ffffffff ffffffff    ................

[u-boot@MINI2440]# nm 0x30008000

30008000: ffffffff ? 12345678

30008000: 12345678 ? 34567890

30008000: 34567890 ? q

[u-boot@MINI2440]# nm.b 0x30008000

30008000: 90 ? 11

30008000: 11 ? 12

30008000: 12 ? q

[u-boot@MINI2440]# mm 0x30008000

30008000: 34567812 ? 12121212

30008004: ffffffff ? 23344556

30008008: ffffffff ? q

[u-boot@MINI2440]# md.b 0x30008000 20

30008000: 12 12 12 12 56 45 34 23 ff ff ff ff ff ff ff ff    ....VE4#........

30008010: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff    ................

[u-boot@MINI2440]# mw.b 0x30008000 aa 10

[u-boot@MINI2440]# mw.b 0x30008010 55 10

[u-boot@MINI2440]# md.b 0x30008000 20

30008000: aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa    ................

30008010: 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55    UUUUUUUUUUUUUUUU

[u-boot@MINI2440]# cp.b 0x300080000 0x30008010 10

[u-boot@MINI2440]# md.b 0x30008000 20            

30008000: aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa    ................

30008010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................

[u-boot@MINI2440]# cp.b 0x30008000 0x30008010 10 

[u-boot@MINI2440]# md.b 0x30008000 20           

30008000: aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa    ................

30008010: aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa    ................

[u-boot@MINI2440]#

下面是一个实例直接通过修改内存控制led的开与关,试着修改LED相连的GPIO寄存器的数据寄存器值,可以控制LED的开与关,具体就要自己去看手册了

 

 

[u-boot@MINI2440]# md 0x56000014

56000014: 0000060e 000007ff 00000000 aaaaaaaa    ................

56000024: 0000001c 0000ffff 00000000 aaaaaaaa    ................

56000034: 00000000 0000ffff 00000000 aaaaaaaa    ................

56000044: 0000ffe5 0000ffff 00000000 000055aa    .............U..

56000054: 0000000f 000000ff 00000000 ff95ff3a    ............:...

56000064: 0000a8ff 0000ffff 00000000 0016faaa    ................

56000074: 000001fe 000007ff 00000000 00010330    ............0...

56000084: 00000000 22222222 22222222 22222222    ....""""""""""""

[u-boot@MINI2440]# md 0x56000014 1

56000014: 0000060e    ....

[u-boot@MINI2440]# nm.w 0x56000014 

56000014: 060e ? 620

56000014: 0222 ? 600

56000014: 0202 ? q

[u-boot@MINI2440]#

上面写入620是灯灭,写入600时灯亮

3.学习Nor Flash的基本指令

 

nor flash命令经常用于烧写数据到nor flash

flinfo (打印flash存储器的信息,并列出所有Sector)

flinfo N (单独打印flash存储器N Block的信息,在有多块nor flash时,N就代表nor flash的索引)

 

[u-boot@MINI2440]# flinfo



Bank # 1: SST: 1x SST39VF1601 (2MB)

  Size: 2 MB in 32 Sectors

  Sector Start Addresses:

    00000000 (RO) 00010000 (RO) 00020000 (RO) 00030000 (RO) 00040000     

    00050000      00060000 (RO) 00070000 (RO) 00080000      00090000     

    000A0000      000B0000      000C0000      000D0000      000E0000     

    000F0000      00100000      00110000      00120000      00130000     

    00140000      00150000      00160000      00170000      00180000     

    00190000      001A0000      001B0000      001C0000      001D0000     

    001E0000      001F0000     

[u-boot@MINI2440]# flinfo 1



Bank # 1: SST: 1x SST39VF1601 (2MB)

  Size: 2 MB in 32 Sectors

  Sector Start Addresses:

    00000000 (RO) 00010000 (RO) 00020000 (RO) 00030000 (RO) 00040000     

    00050000      00060000 (RO) 00070000 (RO) 00080000      00090000     

    000A0000      000B0000      000C0000      000D0000      000E0000     

    000F0000      00100000      00110000      00120000      00130000     

    00140000      00150000      00160000      00170000      00180000     

    00190000      001A0000      001B0000      001C0000      001D0000     

    001E0000      001F0000     

[u-boot@MINI2440]# flinfo 2

Only FLASH Banks # 1 ... # 1 supported

[u-boot@MINI2440]# 

后面带有(RO)的说明这个Sector已经写保护了

 

Nor Flash的读取接口和SDRAM是一样的,所以Nor Flash的读取也是使用md命令

[u-boot@MINI2440]# md. 0x0 20

00000000: ea000012 e59ff014 e59ff014 e59ff014    ................

00000010: e59ff014 e59ff014 e59ff014 e59ff014    ................

00000020: 33f80260 33f802c0 33f80320 33f80380    `..3...3 ..3...3

00000030: 33f803e0 33f80440 33f804a0 deadbeef    [email protected]....

00000040: 33f80000 33f80000 33fbe8dc 3400374c    ...3...3...3L7.4

00000050: e10f0000 e3c0001f e38000d3 e129f000    ..............).

00000060: e3a00453 e3a01000 e5801000 e3e01000    S...............

00000070: e59f0488 e5801000 e59f1484 e59f0484    ................

[u-boot@MINI2440]# md.b 0x0 20

00000000: 12 00 00 ea 14 f0 9f e5 14 f0 9f e5 14 f0 9f e5    ................

00000010: 14 f0 9f e5 14 f0 9f e5 14 f0 9f e5 14 f0 9f e5    ................

[u-boot@MINI2440]# 

但是nor flash的烧写时序和SDRAM的写入不同,烧写nor flash不能使用mm等命令,只能使用cp命令从内存拷贝到nor flash。而且之前必须解除保护并擦除!命令如下:

 

pretect (对flash写保护的操作,可以使能和解除写保护)

格式:

protect on/off start end
protect on/off start +end
protect on/off N:SF[-SL]
protect on/off bank N
protect on/off all 

第一个参数on代表使能写保护;off代表解除写保护
第 2 、3 参数是指定 Flash 写保护操作范围
start end 是照起始地址和结束地址定义范围,start 是擦除块的起始地址;end 是擦除末尾块的结束地址。
例如:擦除 Sector 2 和 Sector 3 区域命令为 erase 20000 3ffff 。
start +end 是照起始地址和操作字节数定义范围,这种方式最常用。start 是擦除块的起始地址;end 是擦除的字节数。
例如:擦除 Sector 2 和 Sector 3 区域命令为 erase 20000 +20000

N:SF[-SL]是按照组和扇区,N 表示 Flash 的 Block 号,SF 表示擦除起始 Sector 号,SL 表示擦除结束 Sector 号。
例如:擦除 Block1 的 Sector 2 和 Sector 3 区域命令为 erase 1:2-3。
bank N 是擦除整个 Block,擦除 Block 号为 N 的整个 Flash。
all 是擦除全部 Flash。

注意:Nor Flash 擦除的最小单位是 Sector,也就是 0x10000 字节,如果你定义的大小不满 1 Sector 或超过 Sector 的边界,那么被定义到的 Sector 会被全部擦除。

 

[u-boot@MINI2440]# flinfo 1



Bank # 1: SST: 1x SST39VF1601 (2MB)

  Size: 2 MB in 32 Sectors

  Sector Start Addresses:

    00000000 (RO) 00010000 (RO) 00020000 (RO) 00030000 (RO) 00040000     

    00050000      00060000 (RO) 00070000 (RO) 00080000      00090000     

    000A0000      000B0000      000C0000      000D0000      000E0000     

    000F0000      00100000      00110000      00120000      00130000     

    00140000      00150000      00160000      00170000      00180000     

    00190000      001A0000      001B0000      001C0000      001D0000     

    001E0000      001F0000     

[u-boot@MINI2440]# protect on 1:16[-16]

Bad sector specification

[u-boot@MINI2440]# protect on 1:16-16  

Protect Flash Sectors 16-16 in Bank # 1

[u-boot@MINI2440]# flinfo 1            



Bank # 1: SST: 1x SST39VF1601 (2MB)

  Size: 2 MB in 32 Sectors

  Sector Start Addresses:

    00000000 (RO) 00010000 (RO) 00020000 (RO) 00030000 (RO) 00040000     

    00050000      00060000 (RO) 00070000 (RO) 00080000      00090000     

    000A0000      000B0000      000C0000      000D0000      000E0000     

    000F0000      00100000 (RO) 00110000      00120000      00130000     

    00140000      00150000      00160000      00170000      00180000     

    00190000      001A0000      001B0000      001C0000      001D0000     

    001E0000      001F0000     

[u-boot@MINI2440]# protect off 0x100000 0x10ffff

Un-Protected 1 sectors

[u-boot@MINI2440]# flinfo 1                     



Bank # 1: SST: 1x SST39VF1601 (2MB)

  Size: 2 MB in 32 Sectors

  Sector Start Addresses:

    00000000 (RO) 00010000 (RO) 00020000 (RO) 00030000 (RO) 00040000     

    00050000      00060000 (RO) 00070000 (RO) 00080000      00090000     

    000A0000      000B0000      000C0000      000D0000      000E0000     

    000F0000      00100000      00110000      00120000      00130000     

    00140000      00150000      00160000      00170000      00180000     

    00190000      001A0000      001B0000      001C0000      001D0000     

    001E0000      001F0000     

[u-boot@MINI2440]#

上面输出的信息可以很清楚的看到0x00100000这个地址保护属性的变化

 

erase :擦除 Flash 的命令
格式:
erase start end
erase start +end
erase N:SF[-SL]
erase bank N
erase all
参数是指定 Flash 擦除操作范围,跟写保护的方式相同。


这里没有继续讨论USB操作指令,SD卡(mmc)操作指令,还有FAT文件系统指令,暂且不做考虑,将来需要再研究

待续。。。。

 

你可能感兴趣的:(基本操作)