Openwrt常用烧写命令 (tftp)

AR系列分区地址

4M flash的分区地址:
分区名        起始地址        结束地址         分区长度 
uboot        0x9f000000    0x9f020000     0x20000 
firmware    0x9f020000    0x9f3e0000     0x3c0000
art              0x9f3f0000     0x9f3e0000     0x10000

8M flash的分区地址:
分区名        起始地址        结束地址         分区长度 
uboot        0x9f000000    0x9f020000     0x20000 
firmware    0x9f020000    0x9f7e0000     0x7c0000
art              0x9f7f0000     0x9f7e0000     0x10000

1.命令行刷系统

固件传至/tmp

  1. cd /tmp
  2. cat /proc/mtd
  3. dev: size erasesize name
  4. mtd0: 00020000 00010000 “u-boot”
  5. mtd1: 000e01c4 00010000 “kernel”
  6. mtd2: 002efe3c 00010000 “rootfs”
  7. mtd3: 00060000 00010000 “rootfs_data”
  8. mtd4: 00010000 00010000 “art”
  9. mtd5: 003d0000 00010000 “firmware”

从上面的命令可以得知,mtd5是 firmare

#使用mtd更新系统

  1. mtd -r write factory.bin firmware

#使用sysupgrade更新系统,推荐。

  1. sysupgrade factory.bin

2.ttl刷新编程器固件、fw、uboot、art

4M的:

刷编程器固件:

  1. tftp 0x80000000 full.bin
  2. erase 0x9f000000 +0x400000
  3. cp.b 0x80000000 0x9f000000 0x400000

刷uboot:

  1. tftp 0x80000000 uboot.bin
  2. erase 0x9f000000 +0x20000
  3. cp.b 0x80000000 0x9f000000 0x20000

刷fw:

  1. tftp 0x80000000 fw.bin
  2. erase 0x9f020000 +0x3c0000
  3. cp.b 0x80000000 0x9f020000 0x3c0000

刷art:

  1. tftp 0x80000000 art.bin
  2. erase 0x9f3f0000 +0x10000
  3. cp.b 0x80000000 0x9f3f0000 0x10000

8M的:

刷编程器固件:

  1. tftp 0x80000000 full.bin
  2. erase 0x9f000000 +0x800000
  3. cp.b 0x80000000 0x9f000000 0x800000

刷uboot:

  1. tftp 0x80000000 uboot.bin
  2. erase 0x9f000000 +0x20000
  3. cp.b 0x80000000 0x9f000000 0x20000

刷fw:

  1. tftp 0x80000000 fw.bin
  2. erase 0x9f020000 +0x7c0000
  3. cp.b 0x80000000 0x9f020000 0x7c0000

刷art:

  1. tftp 0x80000000 art.bin
  2. erase 0x9f7f0000 +0x10000
  3. cp.b 0x80000000 0x9f7f0000 0x10000


本地启用tftp上传

        tftp -i 192.168.1.1  put  uboot.bin

        -i 上传二进制文件  192.168.1.1  是目标IP地址   put 是上传命令  uboot.bin 是文件名

你可能感兴趣的:(openwrt)