mv /etc/rcS.d/S95cgminer.sh /etc/rcS.d/K95cgminer.sh rebootThis script is short and simple, without the usual "stop" and "start" case handling. (The script /etc/init.d/cgminer.sh is even simpler).
As an experiment, I just did this:
/opt/system/appstartupAfter giving it some time and letting a bunch of messages fly past, I do a "ps" command and see these new processes:
912 root 19:10 /tmp/dwang_btc_miner 934 root 0:00 /tmp/snmpd -c /tmp/snmpd.conf -f 966 root 0:00 [kworker/u4:0] 968 root 0:00 /tmp/zebra 970 root 0:00 {reset_button} /bin/bash /tmp/reset_button 976 root 0:00 {proc_monitor} /bin/sh /tmp/proc_monitor 1035 root 0:00 appweb --config appweb.confThis does much more than I would have expected. It uses chpasswd to reset the root password. It also changes the static IP setup I had worked up. I'll have to go through the orignal process of bypassing the password and perhaps restore my network setup. It also reestablishes the startup of the cgminer on reboot, so I'll have to go fiddle with that again.
Here are the messages, some of which are interesting. In particular I found it interesting that it was starting an http server (and indeed there is one on the system in /usr/sbin/httpd). Something to investigate someday (perhaps).
Note that the snmpd server I find running is something they dumped into /tmp and is not normally on the system. Also note that /tmp gets eradicated and recreated on every reboot.
rm: can't remove '/tmp/*': No such file or directory 0 BANK0 /opt/system/startscrip: line 1: !/bin/sh: No such file or directory ./appstartup ./chpasswd ./console_redirect ./dwang_btc_miner ./ercw_main ./ethtool ./HKDW.tar.gz ./libnetsnmpagent.so.30 ./libnetsnmpmibs.so.30 ./libnetsnmp.so.30 ./proc_monitor ./reset_button ./route ./S95cgminer.sh ./snmpd ./snmpd.conf ./startscrip ./sys_pll_thrs.conf ./upgrade_ver_7.3.0.28 ./zebra macb e000b000.ethernet eth0: link down ./zyp/ ./zyp/controllers/ ./zyp/controllers/Status.c ./zyp/controllers/update.c ./zyp/controllers/Cgminer.c ./zyp/controllers/ipccom.c ./zyp/controllers/chipstatus.c ./zyp/controllers/admininfo.c ./zyp/controllers/Ethernet.c ./zyp/controllers/alarm.c ./zyp/controllers/ebang.c ./zyp/controllers/user.c ./zyp/Makefile ./zyp/auth.conf ./zyp/cache/ ./zyp/cache/view_a7831b06fabea092a36b5a9cbe1005f3.so ./zyp/cache/view_3c0e2047e5221fb419a7ec0af4b7854c.so ./zyp/cache/view_53ea0d6735e4fb0329c094a648870277.so ./zyp/cache/view_04f9c7da622b21b96049f15706d92938.so ./zyp/cache/view_f7022020d354ba278dcc7ccab562a0dd.so ./zyp/cache/view_6f60de3de9ffb67d1f2e97f4b428386d.so ./zyp/cache/view_b477df8fa01e40197eb5fa8f48e3907b.so ./zyp/cache/view_035f15cc8bbe24799d3e54770f8d8295.so ./zyp/cache/view_513a569543fc2e0d3838c80e9b2de7d4.so ./zyp/cache/view_fb23b72a36b7b4dbe70628d8cca96ed0.so ./zyp/cache/view_f77f36b0d78321b044f0e296a2c667a2.so ./zyp/cache/controller_b40ca62848e046ce00cc49b1905d4fca.so ./zyp/cache/controller_2cb91d133ac7e670d03160cdd11a46c3.so ./zyp/cache/controller_ec2859b93a67c572652a66dbb4a6fe5b.so ./zyp/cache/view_4bc9f79c654681ca48136ecbdede158a.so ./zyp/cache/controller_770d6494da130a44af4aa8689fab502a.so ./zyp/cache/view_3a2b7a533e83e2d61b2cad29bb4b187e.so ./zyp/cache/view_dcb9a5587c458400c8722a02dc5ac818.so ./zyp/cache/view_3eec443737a3de9610a039406fdd038b.so ./zyp/cache/view_512223a62f67729b723fb61c3f62368a.so ./zyp/cache/view_f6669d1b369196a904ea1967e72739a2.so ./zyp/cache/view_4d4d2036351546190541ac2a32bcc383.so ./zyp/cache/view_8d281e6866d6e1de33be9fcec2966541.so ./zyp/cache/view_eddbf50269317b7877761754e564ee3c.so ./zyp/cache/view_3eb313d8866c3b5632568a7b408bedd4.so ./zyp/cache/view_7403f191a0a159c0692904ffa2491391.so ./zyp/cache/view_e4ac6605b16f7008362b59441406db75.so ./zyp/cache/controller_0d206980b11e3c885a9c639e66c6a231.so ./zyp/cache/view_cbb7866fb91eccef78994dc93adea6fb.so ./zyp/cache/controller_be279ec5321ddeabc8b45df9b08e9fe5.so ./zyp/cache/view_51b611867533393b33d56fd5a88977ca.so ./zyp/cache/view_b2068302aa7479365676d89b37de0a1e.so ./zyp/cache/view_c767ad3476fed9929b188b80cfbb45cb.so ./zyp/cache/controller_5278e85e128cf0ef1a4ccb000045c8b6.so ./zyp/cache/view_44b347948bf5f69ed66f55bf8d53e72b.so ./zyp/cache/view_393c60be603fba53dffb8bf88aa8e06b.so ./zyp/cache/controller_6cc243d48f5b4d8cbc1333bf8b28e517.so ./zyp/cache/controller_54a1923d66aec572ecb5557e0b0fe8ec.so ./zyp/cache/controller_2c81930eb9e673249e91e37173ae1434.so ./zyp/cache/view_b72ff745f4632093aa84e2cde689fba2.so ./zyp/cache/view_61b0e78a6f6e04dc3fe24ce0b7cf8e4f.so ./zyp/cache/view_4c88510bb3ee948cccea77a6b527fb87.so ./zyp/cache/view_afc502e1aa9bcff357e9eb694dabe642.so ./zyp/cache/view_1e6f4c0c0a10cbe7cfc371f4f1d38e6c.so ./zyp/cache/view_e762c5ef4bbb5893f6322f9f942e6074.so ./zyp/cache/view_5ffa9844f03dbee8b84e6b065c47f3ea.so ./zyp/cache/view_6aabc965f39a5511e494ce254a3779b1.so ./zyp/cache/view_03d2ce9bc8e4712cba15729805f23a50.so ./zyp/favicon.ico ./zyp/web/ ./zyp/web/index_en.esp ./zyp/web/begin_en.esp ./zyp/web/banner.esp ./zyp/web/Cgminer/ ./zyp/web/Cgminer/CgminerStatus.esp ./zyp/web/Cgminer/CgminerStatus_en.esp ./zyp/web/Cgminer/CgminerConfig_en.esp ./zyp/web/Cgminer/CgminerConfig.esp ./zyp/web/MenuRpm.esp ./zyp/web/admininfo/ ./zyp/web/admininfo/getadmininfo_en.esp ./zyp/web/admininfo/getadmininfo.esp ./zyp/web/favicon.ico ./zyp/web/js/ ./zyp/web/js/form.js.bak ./zyp/web/js/modernizr.custom.js ./zyp/web/js/notificationFx.js ./zyp/web/js/jquery.min.js.bak ./zyp/web/js/jquery-1.11.0.min.js ./zyp/web/js/echarts-all.js ./zyp/web/js/jquery1.js ./zyp/web/js/snap.svg-min.js ./zyp/web/js/jquery.min.js ./zyp/web/js/jquery.js ./zyp/web/js/dtree.js ./zyp/web/js/script.js ./zyp/web/js/jquery-1.9.1.min.js ./zyp/web/js/nav.js ./zyp/web/js/form.js ./zyp/web/js/classie.js ./zyp/web/js/highcharts.js ./zyp/web/alarm/ ./zyp/web/alarm/alarm.esp ./zyp/web/alarm/AlarmManagement.esp ./zyp/web/alarm/alarm_en.esp ./zyp/web/alarm/AlarmStatus.esp ./zyp/web/ebang/ ./zyp/web/ebang/eblist.esp ./zyp/web/ebang/upload.esp ./zyp/web/ebang/upload-esp.html ./zyp/web/logo/ ./zyp/web/logo/logo_ch.png ./zyp/web/logo/logo_en.png ./zyp/web/logo.html ./zyp/web/update/ ./zyp/web/update/update.esp ./zyp/web/update/help_en.esp ./zyp/web/update/ping.esp ./zyp/web/update/factory_en.esp ./zyp/web/update/help.esp ./zyp/web/update/ResetRpm_en.esp ./zyp/web/update/ResetRpm.esp ./zyp/web/update/exit_en.esp ./zyp/web/update/update_en.esp ./zyp/web/update/exit.esp ./zyp/web/update/factory.esp ./zyp/web/Ethernet/ ./zyp/web/Ethernet/IPEthernetConfig.esp ./zyp/web/Ethernet/IPEthernetPort.esp ./zyp/web/Ethernet/IPEthernetConfig_en.esp ./zyp/web/Ethernet/IPEthernetPort_en.esp ./zyp/web/user/ ./zyp/web/user/login.html ./zyp/web/user/login.html.bak ./zyp/web/user/list.esp ./zyp/web/chipstatus/ ./zyp/web/chipstatus/moduleStatus.esp ./zyp/web/chipstatus/chipstatus.esp ./zyp/web/Status/ ./zyp/web/Status/SystemStatusRpm_en.esp ./zyp/web/Status/images/ ./zyp/web/Status/images/SystemStatusRpm_01.gif ./zyp/web/Status/images/SystemStatusRpm_02.gif ./zyp/web/Status/images/SystemStatusRpm_03.gif ./zyp/web/Status/SystemStatusRpm.esp ./zyp/web/begin.esp ./zyp/web/graph/ ./zyp/web/graph/shBrushJScript.min.js ./zyp/web/graph/shThemejqPlot.min.css ./zyp/web/graph/shCore.min.js ./zyp/web/graph/excanvas.js ./zyp/web/graph/jquery.jqplot.min.js ./zyp/web/graph/jquery.jqplot.min.css ./zyp/web/graph/jquery.min.js ./zyp/web/graph/shCoreDefault.min.css ./zyp/web/graph/jqplot.highlighter.min.js ./zyp/web/graph/shBrushXml.min.js ./zyp/web/graph/jqplot.cursor.min.js ./zyp/web/graph/jqplot.dateAxisRenderer.min.js ./zyp/web/public/ ./zyp/web/public/login.html ./zyp/web/public/img/ ./zyp/web/public/img/arc.gif ./zyp/web/public/img/empty.gif ./zyp/web/public/css/ ./zyp/web/public/css/css_main.css ./zyp/web/arc.html ./zyp/web/img/ ./zyp/web/img/success.jpg ./zyp/web/img/weibo01.jpg ./zyp/web/img/minus.gif ./zyp/web/img/invalid.png ./zyp/web/img/icon_alert.gif ./zyp/web/img/nolines_plus.gif ./zyp/web/img/folder.gif ./zyp/web/img/pro_left.png ./zyp/web/img/bg.jpg ./zyp/web/img/base.gif ./zyp/web/img/join.gif ./zyp/web/img/red_asterisk.png ./zyp/web/img/line.gif ./zyp/web/img/logo.png ./zyp/web/img/pw.gif ./zyp/web/img/pro_down.png ./zyp/web/img/.DS_Store ./zyp/web/img/bg.gif ./zyp/web/img/plusbottom.gif ./zyp/web/img/weibo.jpg ./zyp/web/img/arc.gif ./zyp/web/img/folderopen.gif ./zyp/web/img/empty.gif ./zyp/web/img/radiobutton.gif ./zyp/web/img/minusbottom.gif ./zyp/web/img/nolines_minus.gif ./zyp/web/img/fail.jpg ./zyp/web/img/checkbox.gif ./zyp/web/img/bk.jpg ./zyp/web/img/bgColor.jpg ./zyp/web/img/plus.gif ./zyp/web/img/buticon.gif ./zyp/web/img/page.gif ./zyp/web/img/arc.jpg ./zyp/web/img/joinbottom.gif ./zyp/web/img/province_sprites.png ./zyp/web/index.esp ./zyp/web/css/ ./zyp/web/css/css_main.css ./zyp/web/css/ns-style-bar.css ./zyp/web/css/demo.css ./zyp/web/css/ns-style-attached.css ./zyp/web/css/style.css.bak ./zyp/web/css/ns-style-growl.css ./zyp/web/css/dtree.css ./zyp/web/css/style.css ./zyp/web/css/normalize.css ./zyp/web/css/public.css ./zyp/web/css/ns-default.css ./zyp/web/css/ns-style-other.css ./zyp/web/css/css_main.css~ ./zyp/setappconf_ip.sh ./zyp/make.sh ./zyp/self.key ./zyp/self.crt ./zyp/appweb.conf ./zyp/README.md /opt/system/startscrip: line 15: kill: (894) - No such process /opt/system/startscrip: line 16: kill: (899) - No such process /opt/system/startscrip: line 17: kill: (904) - No such process macb e000b000.ethernet eth0: unable to generate target frequency: 25000000 Hz macb e000b000.ethernet eth0: link up (100/Full) Started HTTP service on 192.168.0.80:80 Started HTTPS service on 192.168.0.80:443 Finishing the Init ln: /sbin/route: File exists chpasswd: password for 'root' changed FPGA version 0x85 . FPGA g_chip_type 0x1 . Hardware type 0x4205 . -------- Pin OK -------- Create /run/dewang_reboot_times. killall: proc_monitor: no process killed killall: proc_monitor: no process killed open serial /dev/ttyUL2 port! dwang_decode_threadloop[925] dwang_decode_threadloop thread ID = 912 pll thrs 800 tempr thrs 60 tempr thrs 90 tempr work 55 ip 192.168.36.97 mask 255.255.255.0 gate 192.168.36.1 dns 114.114.114.114 buf : 93,93,44,44,59,59 get static vol 90,90,41,41,56,56 912 use 0 bank0 soft_v7.3.0.28 bank1 soft_v7.3.1.1 macb e000b000.ethernet eth0: link down IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready macb e000b000.ethernet eth0: unable to generate target frequency: 25000000 Hz macb e000b000.ethernet eth0: link up (100/Full) IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready killall: udhcpc: no process killed dhcp disable... Set static ip : 192.168.36.97 255.255.255.0 system command kill -9 `ps aux|grep appweb|awk '{print $1}'|sed -n 1p` ok. system command appweb --config appweb.conf & ok. route: SIOCDELRT: No such process Started HTTP service on 192.168.36.97:80 Started HTTPS service on 192.168.36.97:443 sys fan speed start 0 : 0 create the managerloop thread ******* REF time 565 create the timeloop thread create the thread_cluster_Loop thread [2018-12-08 17:21:32] Started rm: can't remove '/run/username*': No such file or directory check pool step 3[CLU] User name:xjgongliu E_ALARM_BTC100_BOARD_1_VOL need send trap. 0 E_ALARM_BTC100_BOARD_2_VOL need send trap. 0 into snmp init running root@zedboard-zynq7:/etc/init.d# total_devices = 1,new_devices = 0 9673 add_cgpu check pool step 2check pool check pool step 1Start threads [2018-12-08 17:21:46] Probing for an alive pool creat test_pool_thread creat test_pool_thread creat test_pool_thread detach test_pool_thread detach test_pool_thread detach test_pool_thread their_ipaddr = open file error 13072 copyright_gettime copyright_gettime error (13362 -- thread_CopyrightLoop) open file error 13072 copyright_gettime copyright_gettime error(13365 -- thread_CopyrightLoop) ..............................done [2018-12-08 17:22:06] Failed to resolve (?wrong URL) stratum.poolhb.com:8888 [2018-12-08 17:22:06] Failed to resolve (?wrong URL) bak.poolhb.com:8888 [2018-12-08 17:22:06] Failed to resolve (?wrong URL) stratum.poolhb.com:8888 Start pools_active [2018-12-08 17:22:46] No servers were found that could be used to get work from. [2018-12-08 17:22:46] Please check the details from the list below of the servers you have input [2018-12-08 17:22:46] Most likely you have input the wrong URL, forgotten to add a port, or have not set up workers [2018-12-08 17:22:46] Pool: 0 URL: stratum+tcp://stratum.poolhb.com:8888 User: gongliu0301.168X36X97 Password: [2018-12-08 17:22:46] Pool: 1 URL: stratum+tcp://bak.poolhb.com:8888 User: gongliu0301.168X36X97 Password: [2018-12-08 17:22:46] Pool: 2 URL: stratum+tcp://stratum.poolhb.com:8888 User: gongliu0301.168X36X97 Password:Wow! It takes over. It is a system within a system.
Tom's Computer Info / [email protected]