openwrt
文章平均质量分 63
DALI模块
深圳锐科光电科技有限,DALI,DALI模块,DALI主机,DALI slave,DALI控制器,DALI协议
展开
-
设置openwrt应用程序开机和崩溃时自动启动
设置openwrt应用程序开机和崩溃时自动启动在/etc/init.d/ 中添加helloworld启动脚本,内容如下:#!/bin/sh /etc/rc.common# Copyright (C) 2007-2011 OpenWrt.orgSTART=90USE_PROCD=1PROG=/helloworld/helloworldstart_ser原创 2016-03-03 18:09:54 · 7945 阅读 · 1 评论 -
openwrt cron添加定时启动任务
1. 修改启动脚本/etc/init.d/cron/etc/rc.d/S50cron为/etc/init.d/cron的链接#!/bin/sh /etc/rc.common# Copyright (C) 2006-2011 OpenWrt.orgSTART=50USE_PROCD=1PROG=/usr/sbin/crondvalidate_cron_sect原创 2016-06-14 14:06:29 · 16409 阅读 · 0 评论 -
RT5350 openwrt添加Reset按键,实现短按重启系统,长按复位系统
添加Reset按键,实现短按重启系统,长按复位系统1、查看目前的gpiocat /sys/kernel/debug/gpioGPIOs 0-21, platform/10000600.gpio, 10000600.gpio: gpio-0 (S1 ) in hi显示系统已经添加S1按键2、将S1改为reset按键,其中S1按键使原创 2016-06-12 16:32:28 · 10914 阅读 · 0 评论 -
openwrt增加密码及ssh的方法
openwrt增加密码及ssh的方法1、进入openwrt系统源码的顶层目录,然后执行 make menuconfig命令进入 Network--> SSH--> openssh-sftp-server2、Base system —> busybox ……[*] Customize busybox optionLogin/Password Management U原创 2016-06-12 18:35:11 · 8713 阅读 · 0 评论 -
RT5350 openwrt将ttyS1修改为控制端口,ttyS0为普通串口
1、首先修改openwrt/trunk/target/linux/ramips/dts/rt5350.dtsi配置文件:默认的rt5350.dtsi配置文件是将扩展串口ttyS1状态给禁用的,需要把状态改为okey,如下: uart@500 { compatible = "ralink,rt5350-uart", "ralink,rt2880-uar原创 2016-06-12 15:14:05 · 5906 阅读 · 1 评论 -
undefined reference to `pthread_create'错误通过makefie的解决方法
做线程程序时,编译出现undefined reference to `pthread_create'的错误。可是makefile 里面明明已经加入了-lpthread的选项。不知道怎么回事,莫非是找不到库的路径,不应该啊!线程库的路径是默认的啊,不行加入了pthread的库路径,还是不行网上找半天无果!最后发现是makefile链接的时候 把 *.o 放在了-lpthread之后了原创 2016-03-15 11:37:23 · 1211 阅读 · 0 评论 -
如何在openwrt文件系统中增加文件
如何在openwrt文件系统中增加文件在/openwrt/trunk/下新建files,软后在/openwrt/trunk/files/下增加想要增加的文件,重新编译 make V=s即可。比如要在/etc/config/中增加Helloworld文件: /openwrt/trunk/files/下新建 /openwrt/trunk/files/etc/config,然后将Hello原创 2016-03-10 15:02:37 · 4441 阅读 · 0 评论 -
设置openwrt串口登录密码
设置 openwrt 启动时 串口控制台登录需要密码:一、客制化busyboxmake menuconfigBase system —> busybox ……[*] Customize busybox optionLogin/Password Management Utilities —>[*] login (NEW)二、修改启动脚本/package/bas原创 2016-03-10 14:59:35 · 4612 阅读 · 0 评论 -
openwrt时间设置查看
一、查看和修改Linux的时区1. 查看当前时区命令 : "date -R"2. 修改设置Linux服务器时区方法 A命令 : "tzselect"方法 B 仅限于RedHat Linux 和 CentOS命令 : "timeconfig"方法 C 适用于Debian命令 : "dpkg-reconfigure tzdata"3. 复制相应的原创 2016-06-14 14:07:28 · 6809 阅读 · 0 评论