openwrt 经验小结

2019-07-13 03:11发布

转载:http://blog.liuyi.info/openwrt 前一阶段对openwrt进行了专题研究.
我觉得可以学习openwrt的软件,目录结构和ipkg包管理方法,用于其他的嵌入式linux的开发. 为了方便其他人hack.这里把有用的信息集中一下. 我手上的是wrg54gs version1.
同时我也买了一个Asus的 WL-500g P (还没有试). 1. 什么是openwrt
参见下面的Cody Teng的说明
http://hi.baidu.com/fnsoxt/blog/item/c2414f10a6fa33fcc2ce79d7.html http://www.cppblog.com/Khan/archive/2006/11/23/15573.html 2 关于我的路由.
http://www.seattlewireless.net/LinksysWrt54g photo
http://wiki.version6.net/WRT54GS 3. 系统恢复.
3.1 failesafe.
http://wiki.openwrt.org/OpenWrtDocs/Troubleshooting 3.2
wrt54gl,可以采用短接flash脚的方式,恢复系统,
这个是在其他方法都不行的时,又没有jtag的一种很方便的方法.
我试过,没有什么危险.
http://forum.openwrt.org/viewtopic.php?id=7474
On the GL, the flash is in a different spot, but it looks basically the same. If you scroll to the very bottom of the guide, it says:
note:
4M flash chip (WRT54G v1.0, v1.1, v2.0) Use pins 15&16
4M flash chip (WRT54G v2.2)Use pins 16&17
8M flash chip (WRT54GS v1.0, v1.1) Use pins 5&6
15&16 didn't work, but when I moved the screwdriver over to 16&17, it did the trick. I've had to short it multiple times while experimenting with getting 2.6 to work, with no luck. There is a ticket open in the bug tracker (#798), so I'm keeping my eye on that to see if there is any progress. 4.使用tftp安装.
install with TFTP
http://wiki.openwrt.org/OpenWrtDocs/Installing/TFTP?action=show&redirect=OpenWrtViaTftp
tftp 192.168.1.1
binary
rexmt 1
timeout 60
trace
Packet tracing on.
tftp> put openwrt-xxx-x.x-xxx.bin 5. . TRX vs. BIN
bin格式加入了特定设备的信息. 所以在webif,tftp时使用bin格式.
而在openwrt升级时使用trx格式.
http://wiki.openwrt.org/OpenWrtDocs/Installing backup
dd if=/dev/mtdblock/1 of=/tmp/firmware.trx upgrade
wget firmware.trx /tmp
cd /tmp
mtd -r write firware.trx linux 6. 一个很好的FAQ
http://forum.openwrt.org/viewtopic.php?id=3474 7. buildbot
对于想开发的人, 可以看一下.buildbot很方便.
http://buildbot.openwrt.org/
http://downloads.openwrt.org/docs/buildroot-documentation.html 8. 关于网络接口的说明.
我觉得这个说明很经典.
netwworkinterface
http://wiki.openwrt.org/OpenWrtDocs/NetworkInterfaces 9. 增加串口.JTAG.
可以作为标准开发系统了.
http://wiki.openwrt.org/OpenWrtDocs/Hardware/Linksys/WRT54GS?highlight=%28OpenWrtDocs/Hardware%29
http://wiki.openwrt.org/OpenWrtDocs/Customizing/Hardware/JTAG_Cable 10. LCD
http://www.duff.dk/wrt54gs/pics/reuter_lcd.jpg 11 增加 SD
http://kiel.kool.dk/ 12. 增加GPS
http://wiki.openwrt.org/OpenWrtDocs/Customizing/Hardware/GPS 13. 基于wrt54g的wifi玩具小车.
http://yasha.okshtein.net/wrt54g/ 11,12, 13都是在GPIO, SD上做了文章. 14. 淘宝上有人买, 销售信息.wrt54g的电路板.
http://auction1.taobao.com/auction/0/item_detail-0db1-e91dd6d47c8cb80f0633c989516fc0ff.jhtml