以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