WouldChar
WouldChar
The mips binary file is too large for my router's 8M flash. Did you build a more micro client for openwrt?
写了一个简单的brook的luci插件,功能比较少,仅用于透明代理和dns tunnel,支持IP路由模式和gfwlist模式,附带去广告。https://github.com/WouldChar/openwrt-brook-tproxy 在openwrt源码或SDK编译都可,ipk不包含brook可执行文件,另需自己下载放到路由器/usr/bin/下。
我改了代码,动态编译+strip,虽然多了个libstdcpp的依赖,但是udpraw+udpspeeder文件总体小很多,对于flash小的路由器是非常有用的。 我可以把代码push到github上吗?或者你push,我fork?
我认为不通用应该是有一些固件里没安装libstdcpp,通过readelf -d udp2raw_cross 可用看到依赖3个共享库: libstdc++.so.6 libgcc_s.so.1 libc.so ,后面两个固件都包含了,一般情况是没有libstdc++.so.6,所以要[在makefile里添加个依赖](https://github.com/WouldChar/openwrt-udp2raw-speeder/blob/master/udp2raw/Makefile#L35) [strip运行文件](https://github.com/WouldChar/openwrt-udp2raw-speeder/blob/master/udp2raw/Makefile#L53) 我的修改了上面两个,还有cross2改成cross。 udpspeeder的makefile参考udp2raw的,两个程序的都是一样的共享库,所以动态编译可用大大减小总的体积。编译完后udp2raw+udpspeeder不到400kb,libstdc++.so.6大小1.3M左右,集成在固件里,固件的大小5.7M,8M flash 的路由器还剩2M+的空间,比之前还剩200kb空间好太多了。 我把udp2raw和udpspeeder的makefile push到了[我的库](https://github.com/WouldChar/openwrt-udp2raw-speeder),方便我集成在我的ssr里。 建议还是新建一个库方便维护。
那么直接编译进固件应该没问题吧,仅仅编译的ipk不通用,就有可能出问题?
ok了,感谢!