OpenWRT firmware, serial port burning flash

Original address: http://blog.chinaunix.net/uid-25631578-id-4011568.html


AR series partition address


4M flash span>Partition address:
Partition name Start address Partition length< /span>
uboot 0x9f000000 0x9f020000 0x20000
firmware 0x9f020000 0x9f3e0000 0x3c0000
art 0x9f3f0000 0x9f3e0000 0x10000 0x10000








“> 8M​flashPartition address:
Partition name Start address End address Partition length
uboot 0x9 f000000 0x9f020000 0x20000
firmware 0x9f020000 0x9f7e0000 0x7c0000
art 0x9f7f0000 0x9f7e0000 0x10000

/p>

1. Command line brush system

The firmware is transferred to /tmp

  1. cd /tmp
  2. cat /proc/mtd
  3. < li style="word-wrap:break-word; margin:0px; padding:0px 0px 0px 10px; list-style:none outside none"> dev:sizeerasesizename

  4. mtd0: 00020000 00010000 “uboot”
  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”

< p style="word-wrap:break-word; margin-top:0px; margin-bottom:0px; padding-top:0px; padding-bottom:0px; color:rgb(69,69,69); font-family :Tahoma,Helvetica,Arial,STHeiti; font-s ize:14px; line-height:21px"> From the above command, we can know that mtd5 is firmare

#Use mtd to update the system

< ol start="1" class="dp-css none_number" style="word-wrap:break-word; margin:0px 1px 0px 0px; padding:5px 0pt; list-style:none outside none; color:rgb(92 ,92,92); line-height:1.3">

  • mtdr write factory.bin firmware
  • #Using sysupgrade to update the system is recommended.

    1. sysupgrade factory.bin

    2.ttl refresh programmer firmware, fw, uboot, art< /p>

    4M:

    Flash programmer firmware:

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

    brush uboot:

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

    Brush fw:

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

    brush art:

    1. tftp 0x80000000 art.bin
    2. er ase 0x9f3f0000 +0x10000
    3. < li style="word-wrap:break-word; margin:0px; padding:0px 0px 0px 10px; list-style:none outside none"> cp.b 0x80000000 0x9f3f0000 0x10000

    8M:

    Flash programmer firmware:

    1. < span style="word-wrap:break-word; color:rgb(0,0,0)">tftp 0x80000000 full .bin
    2. erase 0x9f000000 +0x800000
    3. cp.b 0x80000000 0x9f000000 0x800000

    brush uboot:

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

    brush fw: p>

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

    brush art:

    1. tftp 0x80000000 art.bin
    2. erase 0x9f7f0000+ 0x10000
    3. cp.b 0x80000000 0x9f7f0000 0x10000
    1. cd /tmp
    2. cat /proc /mtd
    3. dev:sizeerasesizename
    4. mtd0: 00020000 00010000 “Uboot”
    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”
    1. mtdr write factory.bin firmware< /span>
    1. sysupgrade factory.bin< /li>
    1. tftp 0x80000000 full.bin
    2. erase 0x9f000000 +< /span>0x400000
    3. cp.b 0x80000000 0x9f000000 0x400000
    1. tftp 0x80000000 uboot.bin
    2. erase 0x9f000000+0x20000
    3. cp.b 0x80000000 0x9f000000 0x20000
      1. tftp 0x80000000 fw.bin
      2. erase 0x9f020000+0x3c0000
      3. cp.b 0x80000000 0x9f020000 0x3c0000
      1. tftp 0x80000000 art.bin
      2. erase 0x9f3f0000 +0x10000
      3. cp.b 0x80000000 0x9f3f0000 0x10000

      < ol start="1" class="dp-css none_number" style="word-wrap:break-word; margin:0px 1px 0px 0px; padding:5px 0pt; list-style:none outside none; color:rgb(92 ,92,92); line-height:1.3">

    4. tftp 0x80000000 full.bin
    5. erase 0x9f000000+0x800000
    6. cp.b 0x80000000 0x9f000000 0x800000
    1. tftp 0x80000000 uboot.bin
    2. erase 0x9f000000 +0x20000
    3. cp.b 0x80000000 0x9f000000 0x20000
    1. tftp 0x80000000 fw.bin
    2. erase 0x9f020000 +0x7c0000
    3. cp.b 0x80000000 0x9f020000 0x7c0000
    1. tftp 0x80000000 art.bin
    2. erase 0x9f7f0000 +0x10000
    3. cp.b 0x80000000 0x9f7f0000 0x10000

    WordPress database error: [Table 'yf99682.wp_s6mz6tyggq_comments' doesn't exist]
    SELECT SQL_CALC_FOUND_ROWS wp_s6mz6tyggq_comments.comment_ID FROM wp_s6mz6tyggq_comments WHERE ( comment_approved = '1' ) AND comment_post_ID = 1235 ORDER BY wp_s6mz6tyggq_comments.comment_date_gmt ASC, wp_s6mz6tyggq_comments.comment_ID ASC

    Leave a Comment

    Your email address will not be published.