![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
openwrt
liupeng08304
这个作者很懒,什么都没留下…
展开
-
openwrt 开启ap的方法
#1. 路由器输入命令修改/etc/config/wireless,在 option disabled 1前面加上#保存退出,重启路由器就可以搜索到ssid 为openwrt_03C6 的wifi了config wifi-device ra0 option type ralink option mode 9 option c...原创 2018-12-03 19:49:50 · 7730 阅读 · 1 评论 -
13. mt7628 加入启动项
1.在/etc/init.d下面创建脚本vim /etc/init.d/automount#! /bin/shmount /dev/sda /mnt2.创建软链接到/etc/rc.dchmod 777 /etc/init.d/automountln -s /etc/init.d/automount /etc/rc.d/s99automount3.讲解openwrt启动后会执...原创 2019-09-19 09:45:53 · 341 阅读 · 0 评论 -
12 mt7628 开启串口1+ser2net使用
1配置管脚1.1 vim target/linux/ramips/dts/mt7628an.dtsi ,使能串口.dtsi 配置文件就改完了,但是扩展串口相应引脚被设置为了 GPIO 模式,怎么样才能变为串口模式了呢?需要修改 .dts 这个配置文件, 同样位于target/linux/ramips/dts 目录下。把 GPIO 模式去掉,把设置 GPIO 的设置项中 uartf去掉vi...原创 2019-09-18 16:31:47 · 1555 阅读 · 1 评论 -
10.openwrt调用sysupgrate失败
1.错误的产生root@OpenWrtdl:/tmp# sysupgrade -n -v /tmp/openwrt-ramips-mt7620-mt7620a-squashfs-sysupgrade.bin Sysupgrade is not yet supported on generic.Image check 'platform_check_image' failed.root@Op...原创 2019-09-12 18:51:38 · 1200 阅读 · 0 评论 -
9.openwrt 应用程序编写原型
1.文件结构和在源码中的位置应用程序一般位于 package/utils目录下面,文件结构如下:test@test-Inspiron-3670:~/work/openwrt1505_mt7628/package/utils$ tree mydrv_app/mydrv_app/├── Makefile└── src ├── Makefile └── mydrv_app.cc...原创 2019-09-12 16:26:58 · 349 阅读 · 0 评论 -
8.openwrt char字符设备驱动原型
1.文件结构和在源码中的位置字符设备的驱动一般位于 package/kernel 目录下面,文件结构如下:test@test-Inspiron-3670:~/work/openwrt1505_mt7628/package/kernel$ tree mydrv/mydrv/├── Makefile└── src ├── Makefile └── mydrv.c2.文件介...原创 2019-09-12 11:49:34 · 258 阅读 · 0 评论 -
6.openwrt改变打印串口波特率,添加ssh client,修改wwan口配置为自动获取ip
1.改变波特率uboot的波特率是115200,openwrt起来打印串口的波特率是57600,需要统一根据网上搜索,需要修改dst文件vim target/linux/ramips/dts/mt7628an.dtsi改为下面:2.添加ssh服务make menuconfignetwork—.ssh—>openssh-sftp-client选中即可3.遗留问题从哪里找...原创 2019-09-10 11:47:03 · 697 阅读 · 0 评论 -
5.openwrt编译上传相关
1.上传需要删除rm -rf bin/ramips/* && rm .config* && rm -rf build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/* && rm -rf staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/*2…git...原创 2019-09-09 17:02:07 · 207 阅读 · 0 评论 -
4.openwrt helloworld 应用程序,ipk,gpio驱动ipk,gpio应用ipk
1.mips编译hellowold到开发板中运行1.1 vi hello_world.c 输入如下:#include <stdio.h>int main(char argc, char *argv[]){int i = 1;while(1){//1~10 循环printf("Hello world!!!%d\n",i); //打印内容if (i < 10){...原创 2019-09-07 15:42:11 · 712 阅读 · 0 评论 -
3.openwrt mt7628 开发资料收集
1.0搜集资料1.不死boot链接https://github.com/pepe2k/u-boot_mod2.openwrt源码编译方法:配置:sudo apt-get install subversion build-essential libncurses5-dev zlib1g-dev gawk git ccache gettext libssl-devxsltprocbuntu...原创 2019-09-07 15:20:50 · 1829 阅读 · 0 评论 -
2.openwrt编译
1.下载git clone git://git.archive.openwrt.org/15.05/openwrt.git2.配置上传到github1.在github上创建项目,获取项目路径git clone https://github.com/liupeng08304/openwrt1505_mt7628.git2 .git clone https://github.com/liup...原创 2019-09-07 11:47:12 · 222 阅读 · 0 评论 -
1.openwrt尝试编译uboot
1.硬件配置ram 华邦w971gg6 1gbits ,128mBytesflash w25q128 128mbits ,16MBytescpu mtk76282.下载uboot git clone https://github.com/widora/u-boot-mt7688.git git clone https://github.com/liupeng08...原创 2019-09-06 15:54:50 · 2077 阅读 · 0 评论 -
(openwrt mqtt移植和使用)mt7628加入mqtt支持
(openwrt mqtt移植和使用)mt7628加入mqtt支持1.mqtt开发过程2 展示效果拷贝细目文件mqtt_nossl 到packet/utils/ls 下面,如下图1.mqtt开发过程 浪费了很多时间(4天时间)来开发这个功能,之前对openwrt不是很了解,所以开始就直接上网搜索怎么在openwrt中加入mqtt,编写应用程序调用mqtt结果网上的就没有找到一个正确参考的,...原创 2018-12-03 16:40:31 · 4473 阅读 · 2 评论 -
14 openwrt usb支持
1.配置 make menuconfig6)添加utf8编码,CP437编码 ISO8859-1编码2.配置2 make kernel_menuconfig# 3烧录 挂载格式化mkfs.ext3 /dev/sda原创 2019-09-19 10:11:30 · 479 阅读 · 1 评论