随笔分类 -  OpenWrt

摘要:直接贴代码tf@ubuntu:~/projects/openwrt1407$ git pullUpdating 331ecb0..d12dc6eerror: Your local changes to the following files would be overwritten by merge... 阅读全文
posted @ 2015-01-23 14:06 Merlin-magic 阅读(1184) 评论(0) 推荐(0) 编辑
摘要:先列出框架,具体后继再来分析。首先是lds文件,该文件设置了各个section在FLASH或RAM中的先后顺序。位于~/openwrt1407/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/linux-3.10.49/... 阅读全文
posted @ 2015-01-08 09:45 Merlin-magic 阅读(1514) 评论(0) 推荐(0) 编辑
摘要:111 阅读全文
posted @ 2015-01-07 16:43 Merlin-magic 阅读(1818) 评论(5) 推荐(0) 编辑
摘要:为什么有些GPIO可以在/sys/class/gpio中控制,而有些不行呢?先来看一看普通不需要C程序而是使用脚本的控制方法(Linux普遍适用):First step is making GPIO available in Linux:echo "29" > /sys/class/gpio/exp... 阅读全文
posted @ 2015-01-06 17:03 Merlin-magic 阅读(12236) 评论(0) 推荐(0) 编辑
摘要:由于项目需要对Luci进行修改,所以这里开始地luci进行较深入的研究。探索其中的运行路径。Openwrt默认的HTTP服务器为uhttpd,该WEB服务器是由Luci的开发者自行开发的,非常小巧,仅有20KB左右,但它不易于移植。我本想在我的PC机上编译该WEB服务器,发现其CMakeList不起... 阅读全文
posted @ 2014-11-19 09:40 Merlin-magic 阅读(1069) 评论(0) 推荐(0) 编辑
摘要:openwrt的network文件,或者说在/etc/config下的文件,都是动态生成的。脚本的函数定义在openwrt1407/package/base-files/files/lib/functions中,有以下几个文件:tf@ubuntu:~/projects/openwrt1407/pac... 阅读全文
posted @ 2014-09-15 09:56 Merlin-magic 阅读(23923) 评论(0) 推荐(0) 编辑
摘要:具体的输入信息是这样的。uboot> httpLink down: eth0Ethernet mode (duplex/speed): 1/1000 MbpsHTTP server is starting at IP: 192.168.0.250HTTP server is ready!Reques... 阅读全文
posted @ 2014-09-04 16:41 Merlin-magic 阅读(6564) 评论(0) 推荐(0) 编辑
摘要:http://wiki.openwrt.org/toh/tp-link/tl-wr1043ndOEM mass flashingFlashing hundreds of devices using the web interface can be a real pain. You can use t... 阅读全文
posted @ 2014-08-29 16:41 Merlin-magic 阅读(926) 评论(0) 推荐(0) 编辑
摘要:http://wiki.openwrt.org/doc/howtobuild/wireless-router-with-a-3g-dongleBuilding image with support for 3g/4g and usb tetheringPreparing build environm... 阅读全文
posted @ 2014-08-29 14:16 Merlin-magic 阅读(16312) 评论(0) 推荐(0) 编辑
摘要:http://wiki.openwrt.org/doc/devel/patches中文文档:http://andelf.diandian.com/post/2013-05-22/40050677370首先,如果我们的补丁是一个文件的话,可以将它们放置在openwrt/target/下面,这儿的文件一... 阅读全文
posted @ 2014-08-29 08:56 Merlin-magic 阅读(4115) 评论(0) 推荐(0) 编辑
摘要:都在package文件夹之中1 ssh登陆欢迎文字,在package/base-files/files/etc/banner中2 路由器的默认机器名字,在package/base-files/files/etc/config/system中3 默认开启无线功能,在package/kernel/mac... 阅读全文
posted @ 2014-08-20 12:15 Merlin-magic 阅读(631) 评论(0) 推荐(0) 编辑
摘要:假如我使用的是WR703N,改为8M内存:1 修改openwrt/target/linux/ar71xx/image/Makefile文件$(eval $(call SingleProfile,TPLINK-LZMA,64kraw,TLMR3420V2,tl-mr3420-v2,TL-MR3420-... 阅读全文
posted @ 2014-08-20 11:59 Merlin-magic 阅读(2071) 评论(0) 推荐(1) 编辑
摘要:应用程序与驱动之间需要进行命令的传递,因而它们之间需要共同定义一套双方都可以识别的数据结构,实际使用时它们include的是名字和内容相同但位置不同的头文件。比如spi_gpio_ad7193.h这个头文件中包含有仅给驱动所使用的结构 _mode/_confstruct _mode { // ... 阅读全文
posted @ 2014-08-20 11:06 Merlin-magic 阅读(2540) 评论(0) 推荐(0) 编辑
摘要:原文:http://wiki.openwrt.org/doc/howto/obtain.firmware.sdk为什么要使用SDK: Reasons for using the SDK are: Compile custom software for a specific release wh... 阅读全文
posted @ 2014-05-20 14:13 Merlin-magic 阅读(9829) 评论(0) 推荐(0) 编辑
摘要:http://wiki.openwrt.org/doc/uciUCI是Unified Configuration Interface的缩写,翻译成中文就是统一配置接口,用途就是为OpenWrt提供一个集中控制的接口。OpenWrt实现的这个工具,能够让你的不管是Lua还是PHP程序,或者SHELL程... 阅读全文
posted @ 2014-04-25 10:18 Merlin-magic 阅读(33463) 评论(0) 推荐(2) 编辑
摘要:https://forum.openwrt.org/viewtopic.php?pid=183335#p183335Compiling UCI as stand alone with an example using the C API1. Compiling UCI as stand alonec... 阅读全文
posted @ 2014-04-25 10:06 Merlin-magic 阅读(6963) 评论(0) 推荐(1) 编辑
摘要:1 什么是opkg Opkg 是一个轻量快速的套件管理系统,目前已成为 Opensource 界嵌入式系统标准。常用于路由、交换机等嵌入式设备中,用来管理软件包的安装升级与下载。 opkg update 更新可以获取的软件包列表 opkg upgrade 对已经安装的软件包升级 opkg l... 阅读全文
posted @ 2014-04-14 15:07 Merlin-magic 阅读(29744) 评论(0) 推荐(0) 编辑
摘要:参考网站:http://wiki.openwrt.org/doc/howto/buildroot.exigence需要下载必要的库文件,编译器等。。。1 首先要获得openwrt的源码,参考openwrt.org官方网站的内容 https://dev.openwrt.org/wiki/GetSour... 阅读全文
posted @ 2014-03-26 13:50 Merlin-magic 阅读(6353) 评论(0) 推荐(0) 编辑