|
|
爱科技、爱创意、爱折腾、爱极致,我们都是技术控
您需要 登录 才可以下载或查看,没有账号?立即注册
x
GS3101基于EN751221soc,丝印型号是EN7526FCU,已有openwrt测试固件支持OpenWrt-EN751221-Builds,telnet用户名admin密码s2@We3%Dc#
硬件参数如下
Vendor | | Bootloader | | System-On-Chip | EcoNet EN7526F - MIPS 34Kc V5.8 | CPU/Speed | 2 Thread 1 Core 900 MHz | RAM Chip | 256MB DDR3-800 (integrated in EN7526F) | Flash Chip | Toshiba TC58CVG1S3H RAIG - 256MB SPI NAND | Wireless | MT7592(N) 2×2 U.FL 2.4Ghz Wi-Fi 4 (a/b/g/n) | Ethernet | 1x GbE + 3x FE | Fiber | 1x XPON SC-UPC via EcoNet EN7570(N) driver | Phone | | Switch | Built-in MT7530 to SoC | USB | 1x 2.0 | Serial | | GPIO Buttons | 2 (WPS, Reset) | GPIO LEDs | 8 (Red/green) | Power | External 12V 1.5A, with a 5.5mm barrel connector | 默认配置功耗10瓦以上,我家的已经关闭wifi,改桥接,删掉tr69跟rms远程管理,开启telnet,不过功耗还在6W左右,夏天气温35度那会很烫手,通过telnet登录后用top命令可以查到那个java程序很占资源,cp负载16以上,占用内存39M,以下内容就是尝试把Java关掉
2915 CMCCAdmi S 39M 1 2.7 16.0 java
通过命令ps -ef | grep java查询到所在目录为/usr/local/jre/bin/,只读的修改不了
mv java java22
rm -rf /usr/local/jre/bin/java
chmod 666 /usr/local/jre/bin/java
以上命令都失效,可以通过killall -9 java关闭,但是很快就自动运行,有看门狗程序
后来尝试mount命令查看分区
# mount
/dev/mtdblock6 on / type squashfs (ro,relatime)
proc on /proc type proc (rw,relatime)
ramfs on /tmp type ramfs (rw,relatime)
devpts on /dev/pts type devpts (rw,relatime,mode=600)
/dev/mtdblock8 on /usr/local type squashfs (ro,relatime)
/dev/mtdblock9 on /usr/osgi type jffs2 (rw,relatime)
cpu_memory on /usr/osgi/cgroups type cgroup (rw,relatime,memory,cpu)
none on /proc/bus/usb type usbfs (rw,relatime)
mtd9是插件保存目录,理论上可以直接用mtd命令直接擦除掉防止他运行,可读写目录,安全起见还是进入目录全部改名字,想尝试的话可以用这个mtd erase /dev/mtd9
这个osgi就是java运行的框架
# cd /usr/osgi
# ls
backup ctgwlibs0 mobile plugin_install.sh
bua def_api_right1 mobileapps0 plugin_start.sh
cgroups factory plugin-b
config felix-framework plugin-c
ctgwlib framework0 plugin_del.sh
有俩目录比较有趣
# cd factory/
# ls
OSGi_Upgrade_Flag
buildin_list
com.chinamobile.cmiot.sharedata.provider_1.5.4.jar
com.chinamobile.smartgateway.andlink_2.3.jar
com.chinamobile.smartgateway.appcore_2.4.1.jar
com.chinamobile.smartgateway.cmccdpi_2.2.2.jar
com.cmcc.hy.speedtest_1.2.1.jar
com.cmcc.wuyougateway_2.0.jar
com.cmcc.wuyougateway_2.8.1.jar
com.cmcc.wuyougateway_2.8.7.jar
com.cmcc.wuyougateway_4.3.0.jar
#
# cd plugin-b
# ls
buildin_list
com.chinamobile.smartgateway.andlink
com.chinamobile.smartgateway.andlink.policy
com.chinamobile.smartgateway.appcore
com.chinamobile.smartgateway.appcore.policy
com.chinamobile.smartgateway.cmccdpi
com.chinamobile.smartgateway.cmccdpi.policy
com.cmcc.wuyougateway
com.cmcc.wuyougateway.policy
就是传说中的分析插件,确认文件不影响光猫运行后就重命名了所有目录,有几个空目录没法重命名,不影响关闭java
# cd /usr/osgi
# mv plugin_start.sh plugin_start.sh.bak
# mv plugin_install.sh plugin_install.sh.bak
# mv plugin_del.sh plugin_del.sh.bak
# mv plugin-b plugin-b.bak
# mv plugin-c plugin-c.bak
# mv mobile mobile.bak
# mv mobileapps0/ mobileapps0.bak
# mv ctgwlib ctgwlib.bak
# mv ctgwlibs0/ ctgwlibs0.bak
# mv factory/ factory.bak
# mv felix-framework felix-framework.bak
# mv framework0 framework0.bak
等删除后再运行killall -9 Java,Java就没再自动运行,负载降到1.6左右,内存总共只用了120M左右,功耗3W,目的到此已达成,喜欢的可以试试,断电重启后也没有java这个程序,一年能省不少电,郑州移动的比较有趣,300M宽带改桥接后只有百兆速度,搜索后得知是路由器时间不对,尝试修改
date -s 2026.11.21-17:16+8
Sat Nov 21 15:45:00 UTC 2026
测速后无效,还是百兆,没修改前时间是1970年的,使用top命令发现俩奇怪的程序bandwidth,就是带宽,killall -9 bandwidth运行后,中科大网页测速达到200M,到此已经没啥折腾了,有tr69程序也没啥用,可以结束,结束后光猫只用86342k的内存,负载1.6
Mem: 86432K used, 167192K free, 0K shrd, 9768K buff, 30804K cached
Load average: 1.52, 1.61, 1.61 (State: S=sleeping R=running, W=waiting)
PID USER STATUS RSS PPID %CPU %MEM COMMAND
19966 CMCCAdmi R 884 11637 0.5 0.3 top
147 CMCCAdmi S 3368 1 0.1 1.3 cfg_manager
2964 CMCCAdmi S 4900 1 0.0 1.9 trafficdetail
728 CMCCAdmi S 1704 1 0.0 0.6 omci
513 CMCCAdmi S 900 1 0.0 0.3 boa
2919 CMCCAdmi S 832 1 0.0 0.3 mobile-manager
797 CMCCAdmi S 788 1 0.0 0.3 radvd
1 CMCCAdmi S 768 0 0.0 0.3 init
11637 CMCCAdmi S 740 1313 0.0 0.2 sh
1313 CMCCAdmi S 664 1 0.0 0.2 utelnetd
2386 CMCCAdmi S 640 1 0.0 0.2 dnsmasq
2920 CMCCAdmi S 540 1 0.0 0.2 jvm_monitor
643 CMCCAdmi S 484 1 0.0 0.1 cfg_monitor
642 CMCCAdmi S 404 1 0.0 0.1 dnshost
522 CMCCAdmi S 392 1 0.0 0.1 usb_auto_mount
1731 CMCCAdmi S 300 1 0.0 0.1 xl2tpd
2905 CMCCAdmi S 260 1 0.0 0.1 usb_monitor
2878 CMCCAdmi S 168 1 0.0 0.0 plugin_monitor
2883 CMCCAdmi S 148 1 0.0 0.0 bundle_monitor
等2027年夏天看看发热如何,冬天外壳几乎不发热
|
|