Partition     Start Sector     Num Sectors     Type
    1              2048       7829504    83
## Unknown partition table
2. fatls 列出fat文件系统中的内容,i其用法如下:
usage: fatls <interface> <dev[:part]> [directory] interface是指定哪种类型的设备,此处笔者用的usb设备,因此填入usb,dev就是设备号,笔者从以上命令得知为0
linuxidc # fatls usb 0
   187495   check.png 
            system volume information/
  4051616   uimage 
            hello/
            .trash-1000/
  2 file(s), 3 dir(s)
3. fatload 从u盘加载文件到指定内存地址处,用法如下:
usage: fatload <interface> <dev[:part]> <addr> <filename> [bytes] interface和dev不再叙述,addr 指定要加载文件到内存的某个地址,filename指定要加载的文件名
linuxidc # fatload usb 0 0x42000000 uimage
reading uimage
..............................................................................
...............................................................................
................................................................................
...................................................................................
...........................................................................
4221634 bytes read
4.sf 支持spi/qspi flash的操作,必须先擦除再写
4.1 sf probe 在操作spi flash之前必须进行此操作:
linuxidc # sf probe 0
32768 KiB spi_flash at 0:0 is now current device
4.2 sf erase 擦除操作:
linuxidc # sf erase 0x100000 0x400000  (0x100000是要擦除的起始地址,0x400000为指定要擦除的大小)
Erasing at 0x500000 -- 100% complete.
4.3 sf write 写操作:
linuxidc # sf write 0x42000000 0x100000 0x400000
Writing at 0x500000 -- 100% complete.
分析uboot中 make xxx_config过程

