openwrt 安装 ser2net 配置

以AR9331为例:

1.openwrt 固件编译

make menuconfig ->Network->ser2net

保存退出,make V=99

 2.修改vi/etc/rc.local

sleep 2
ser2net
sleep 2
/root/watch.sh&
exit 0

3.修改vi/etc/ inittab ,否则导致串口只能单向通信无法双向通信

::sysinit:/etc/init.d/rcS S boot
::shutdown:/etc/init.d/rcS K shutdown
##::askconsole:/bin/ash --login

猜你喜欢

转载自www.cnblogs.com/z3286586/p/10647969.html
今日推荐