Openwrt常用烧写命令 (tftp)
2015-06-08 15:44
344 查看
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
cd /tmp
cat /proc/mtd
dev: size erasesize
name
mtd0: 00020000 00010000 “u-boot”
mtd1: 000e01c4 00010000 “kernel”
mtd2: 002efe3c 00010000 “rootfs”
mtd3: 00060000 00010000 “rootfs_data”
mtd4: 00010000 00010000 “art”
mtd5: 003d0000 00010000 “firmware”
从上面的命令可以得知,mtd5是 firmare
#使用mtd更新系统
mtd -r write factory.bin firmware
#使用sysupgrade更新系统,推荐。
sysupgrade factory.bin
2.ttl刷新编程器固件、fw、uboot、art
4M的:
刷编程器固件:
tftp 0x80000000 full.bin
erase 0x9f000000 +0x400000
cp.b 0x80000000 0x9f000000 0x400000
刷uboot:
tftp 0x80000000 uboot.bin
erase 0x9f000000 +0x20000
cp.b 0x80000000 0x9f000000 0x20000
刷fw:
tftp 0x80000000 fw.bin
erase 0x9f020000 +0x3c0000
cp.b 0x80000000 0x9f020000 0x3c0000
刷art:
tftp 0x80000000 art.bin
erase 0x9f3f0000 +0x10000
cp.b 0x80000000 0x9f3f0000 0x10000
8M的:
刷编程器固件:
tftp 0x80000000 full.bin
erase 0x9f000000 +0x800000
cp.b 0x80000000 0x9f000000 0x800000
刷uboot:
tftp 0x80000000 uboot.bin
erase 0x9f000000 +0x20000
cp.b 0x80000000 0x9f000000 0x20000
刷fw:
tftp 0x80000000 fw.bin
erase 0x9f020000 +0x7c0000
cp.b 0x80000000 0x9f020000 0x7c0000
刷art:
tftp 0x80000000 art.bin
erase 0x9f7f0000 +0x10000
cp.b 0x80000000 0x9f7f0000 0x10000
本地启用tftp上传
tftp -i 192.168.1.1 put uboot.bin
-i 上传二进制文件 192.168.1.1 是目标IP地址 put 是上传命令 uboot.bin 是文件名
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
cd /tmp
cat /proc/mtd
dev: size erasesize
name
mtd0: 00020000 00010000 “u-boot”
mtd1: 000e01c4 00010000 “kernel”
mtd2: 002efe3c 00010000 “rootfs”
mtd3: 00060000 00010000 “rootfs_data”
mtd4: 00010000 00010000 “art”
mtd5: 003d0000 00010000 “firmware”
从上面的命令可以得知,mtd5是 firmare
#使用mtd更新系统
mtd -r write factory.bin firmware
#使用sysupgrade更新系统,推荐。
sysupgrade factory.bin
2.ttl刷新编程器固件、fw、uboot、art
4M的:
刷编程器固件:
tftp 0x80000000 full.bin
erase 0x9f000000 +0x400000
cp.b 0x80000000 0x9f000000 0x400000
刷uboot:
tftp 0x80000000 uboot.bin
erase 0x9f000000 +0x20000
cp.b 0x80000000 0x9f000000 0x20000
刷fw:
tftp 0x80000000 fw.bin
erase 0x9f020000 +0x3c0000
cp.b 0x80000000 0x9f020000 0x3c0000
刷art:
tftp 0x80000000 art.bin
erase 0x9f3f0000 +0x10000
cp.b 0x80000000 0x9f3f0000 0x10000
8M的:
刷编程器固件:
tftp 0x80000000 full.bin
erase 0x9f000000 +0x800000
cp.b 0x80000000 0x9f000000 0x800000
刷uboot:
tftp 0x80000000 uboot.bin
erase 0x9f000000 +0x20000
cp.b 0x80000000 0x9f000000 0x20000
刷fw:
tftp 0x80000000 fw.bin
erase 0x9f020000 +0x7c0000
cp.b 0x80000000 0x9f020000 0x7c0000
刷art:
tftp 0x80000000 art.bin
erase 0x9f7f0000 +0x10000
cp.b 0x80000000 0x9f7f0000 0x10000
本地启用tftp上传
tftp -i 192.168.1.1 put uboot.bin
-i 上传二进制文件 192.168.1.1 是目标IP地址 put 是上传命令 uboot.bin 是文件名
相关文章推荐
- Linux中根据主机名获取其在局域网中的IP地址
- 动态配置脚本实现之 链接库方法提取
- tomcat6.0+jdk1.6升级至tomcat8.0.23+jdk1.8
- opengl学习(一)
- linux 修改path
- linux下创建守护进程(daemon process)
- 用内存做Linux下的/tmp目录
- 解决Linux操作系统下AES解密失败的问题
- nginx用第三方yum源atomic安装,与mysql数据库的安装步骤。atomic只用来安装nginx。
- WCF OpenTimeout, CloseTimeout, SendTimeout, ReceiveTimeout
- 下载两个 hadoop 安装包的区别
- Centos 安装Puppet
- opencv之莫名其妙的条件宏ICV_DEF_FIND_STUMP_THRESHOLD_SQ解释~
- Linux
- 第十四周项目3-OOP版电子词典
- centos7 通过kvm+vnc 实现远程桌面虚拟化和创建windows、Linux虚拟机
- OpenGL glLightfv 函数的应用以及光源的相关知识
- 使用Apache Commons-email邮件客户端发邮件
- linux的日志管理
- Linux 设备模型之 (kobject、kset 和 Subsystem)(二)