20191015_jeffrey - silenceuncrio/diary GitHub Wiki
0910
review 待做事項
M300
- P1 - FOTA - web ui
- P4 - Layer 2 Encapsulation over GRE (L2oGRE)
M330
- P1 - Dual GRE porting
- done
- P1 - ECMP - web ui
- done
- P1 - GPS Track drawing (Server)
- P1 - Commnger(+Wan WiFi Client) - web ui
- P1 - WiFi Bridge/Router mode - web ui
issue
- M330 - 737 - [APN1 Usage] refresh on Daily web page, data sometimes repeat
- M330 - 733 - when link down reboot is checked, upgrade firmware should be avoid reboot
來做 M330 - P1 - Commnger(+Wan WiFi Client) - web ui
M330[release/v0.08]
- Vendor/Products = CTCU/1_CTCU_WIFI
- Application - 手動 turn on
- WIFI Support(STA mode)
build 不過
systemcfg.c: In function 'LoadDefault':
systemcfg.c:199:9: warning: unused variable 'ii' [-Wunused-variable]
systemcfg.c: In function 'AuditSystemSetting':
systemcfg.c:247:9: warning: unused variable 'i' [-Wunused-variable]
systemcfg.c: In function 'UpdateSystemInformation':
systemcfg.c:532:17: warning: implicit declaration of function 'macaddr_get2' [-Wimplicit-function-declaration]
systemcfg.c:644:70: error: invalid digit "8" in octal constant
systemcfg.c: In function 'InitSystem':
systemcfg.c:1010:19: warning: unused variable 'szCmd' [-Wunused-variable]
make[2]: *** [systemcfg.o] Error 1
make[2]: Leaving directory `/home/user/proscend/prosrc/icos/icoslib/system'
make[1]: *** [system] Error 2
make[1]: Leaving directory `/home/user/proscend/prosrc/icos/icoslib'
make: *** [default] Error 2
make distclean 完再 build 一次
就是 WIFI Support(STA mode)
不手動打開
一樣 build 不過
幫忙看一下是哪個 commit 出了錯
找出問題並解決
M330[release/v0.08] - correct the problem about the version number constant - bigger than 7
commit 3bee59ab3ef77da728d5c172b134ae025c142f71
Refs: [release/v0.08], {origin/release/v0.08}
Author: jeffrey <[email protected]>
Date: Tue Oct 15 10:41:22 2019 +0800
correct the problem about the version number constant - bigger than 7
- The number system based on 8 is called octal and uses the digits 0 through 7
- An octal constant begins with a 0
proscend/mconfig/configs/CTCU/0_CTCU/defconfig | 4 ++--
proscend/mconfig/configs/CTCU/1_CTCU_WIFI/defconfig | 4 ++--
proscend/mconfig/configs/GENERIC/0_GENERIC/defconfig | 4 ++--
proscend/mconfig/configs/GENERIC/1_GENERIC_WIFI/defconfig | 4 ++--
proscend/mconfig/configs/GENERIC/2_GENERIC_BG96/defconfig | 4 ++--
proscend/mconfig/configs/HYTEC/0_HYTEC/defconfig | 4 ++--
proscend/mconfig/configs/HYTEC/1_HYTEC_WIFI/defconfig | 4 ++--
proscend/mconfig/configs/PI/0_PI_WIFI/defconfig | 4 ++--
8 files changed, 16 insertions(+), 16 deletions(-)
1045
john 表示 M330[release/v0.08] 當 GRE mode on 的時候 web 會起不來
Pull 最新的 code 看一下
GRE Mode Off
root@ICR-W401:/home/admin# ps | grep ligh
4712 root 3784 S lighttpd -D -f /tmp/icos/web/lighttpd.conf
6053 root 1856 S grep ligh
GRE Mode On - 只開 Tunnel 1
當下 web process 正常
root@ICR-W401:/home/admin# ps | grep ligh
7960 root 4160 S lighttpd -D -f /tmp/icos/web/lighttpd.conf
19472 root 1856 S grep ligh
重開機
web process 正常啟動
root@ICR-W401:/home/admin# ps | grep ligh
4163 root 3784 S lighttpd -D -f /tmp/icos/web/lighttpd.conf
4664 root 1856 S grep ligh
發現 GRE Mode On 且 Tunnel 1 跟 2 都使用的話
不管 GRE 有沒有對端可以連接
發現 web process 真的沒起來
web.log
root@ICR-W401:/home/admin# cat /home/log/web.log
1571107247[20191015 02:40:47] [notify_web:1040]Recv bcast evt 14 before module init done.Ignore it.
1571107249[20191015 02:40:49] [notify_web:1040]Recv bcast evt 3 before module init done.Ignore it.
1571107249[20191015 02:40:49] [_make_configuration_file:415]1571107249[20191015 02:40:49] [notify_web:1048]IN(E182|S44|D44)
1571107249[20191015 02:40:49] [notify_web:1057]module init
1571107249[20191015 02:40:49] [web_init:916][DID0] Key file generated done.
1571107249[20191015 02:40:49] [web_init:916][DID1] Key file generated done.
1571107274[20191015 02:41:14] [notify_web:1048]IN(E84|S36|D00)
1571107274[20191015 02:41:14] [notify_web:1048]IN(E84|S36|D00)
1571107274[20191015 02:41:14] [notify_web:1048]IN(E81|S36|D00)
1571107274[20191015 02:41:14] [notify_web:1048]IN(E80|S36|D00)
1571107274[20191015 02:41:14] [notify_web:1048]IN(E84|S36|D00)
1571107274[20191015 02:41:14] [notify_web:1048]IN(E84|S36|D00)
1571107274[20191015 02:41:14] [notify_web:1048]IN(E81|S36|D00)
1571107274[20191015 02:41:14] [notify_web:1048]IN(E80|S36|D00)
1571107279[20191015 02:41:19] [notify_web:1048]IN(E185|S67|D00)
GRE Mode On 然後只使用 Tunnel 1
root@ICR-W401:/home/admin# cat /home/log/web.log
1571107247[20191015 02:40:47] [notify_web:1040]Recv bcast evt 14 before module init done.Ignore it.
1571107249[20191015 02:40:49] [notify_web:1040]Recv bcast evt 3 before module init done.Ignore it.
1571107249[20191015 02:40:49] [_make_configuration_file:415]1571107249[20191015 02:40:49] [notify_web:1048]IN(E182|S44|D44)
1571107249[20191015 02:40:49] [notify_web:1057]module init
1571107249[20191015 02:40:49] [web_init:916][DID0] Key file generated done.
1571107249[20191015 02:40:49] [web_init:916][DID1] Key file generated done.
1571107275[20191015 02:41:15] [notify_web:1048]IN(E84|S36|D00)
1571107275[20191015 02:41:15] [notify_web:1048]IN(E84|S36|D00)
1571107275[20191015 02:41:15] [notify_web:1048]IN(E81|S36|D00)
1571107275[20191015 02:41:15] [notify_web:1048]IN(E80|S36|D00)
1571107281[20191015 02:41:21] [notify_web:1048]IN(E185|S67|D00)
1571107283[20191015 02:41:23] [notify_web:1048]IN(E02|S56|D00)
1571107285[20191015 02:41:25] [notify_web:1048]IN(E72|S56|D00)
1571107285[20191015 02:41:25] [notify_web:1082]boot init done
1571107285[20191015 02:41:25] [web_dump:647]===init config===
1571107285[20191015 02:41:25] [web_dump:657][COM]conn_mgr=1,mod_init_done:1.
1571107285[20191015 02:41:25] [web_dump:685][CFG]mode=both,httpd_port=80,https_port=443,refreshperiod=2,sport=80,intf=lan,secure=all,clienip=0.0.0.0,httpd_access=lan,https_access=lan
1571107285[20191015 02:41:25] [web_dump:693][DMN0]active=1,pid=-1,status=0,flag=0x0,DID0
1571107285[20191015 02:41:25] [web_dump:693][DMN1]active=1,pid=-1,status=0,flag=0x0,DID1
1571107285[20191015 02:41:25] [web_dump:698][RTI]wan4_ifname=,wan6_ifname=.
1571107285[20191015 02:41:25] [reset_firewall:962]Allow all ips.
1571107285[20191015 02:41:25] [daemon_restart:828][DID0] remain IP server retry for 6 times.
1571107285[20191015 02:41:25] [create_daemon_conf:727]IN
1571107285[20191015 02:41:25] [create_daemon_conf:738]cmd_buf=>dir=/
1571107285[20191015 02:41:25] [create_daemon_conf:743]cmd_buf=>cgipat=cgi-bin/**
1571107285[20191015 02:41:25] [create_daemon_conf:748]cmd_buf=>chroot
1571107285[20191015 02:41:25] [create_daemon_conf:753]cmd_buf=>user=root
1571107285[20191015 02:41:25] [create_daemon_conf:758]cmd_buf=>max_age=0
1571107285[20191015 02:41:25] [create_daemon_conf:763]cmd_buf=>debug
1571107285[20191015 02:41:25] [daemon_restart:867][DMN]Do not start when did = DID_HTTPD
1571107285[20191015 02:41:25] [daemon_restart:828][DID1] remain IP server retry for 6 times.
1571107285[20191015 02:41:25] [gen_key_files:709]IN
1571107285[20191015 02:41:25] [gen_key_files:715]OUT
1571107285[20191015 02:41:25] [create_daemon_conf:727]IN
1571107285[20191015 02:41:25] [create_daemon_conf:738]cmd_buf=>dir=/
1571107285[20191015 02:41:25] [create_daemon_conf:743]cmd_buf=>cgipat=cgi-bin/**
1571107285[20191015 02:41:25] [create_daemon_conf:748]cmd_buf=>chroot
1571107285[20191015 02:41:25] [create_daemon_conf:753]cmd_buf=>user=root
1571107285[20191015 02:41:25] [create_daemon_conf:758]cmd_buf=>max_age=0
1571107285[20191015 02:41:25] [create_daemon_conf:763]cmd_buf=>debug
1571107285[20191015 02:41:25] [create_daemon_conf:770]cmd_buf=>ssl
1571107285[20191015 02:41:25] [create_daemon_conf:775]cmd_buf=>certfile=/etc/icos/ca/cert.pem
1571107285[20191015 02:41:25] [daemon_restart:872][DMN]Lanch=>/usr/sbin/lighttpd -D -f /tmp/icos/web/lighttpd.conf
1571107285[20191015 02:41:25] [web_dump:647]===After daemon restart===
1571107285[20191015 02:41:25] [web_dump:657][COM]conn_mgr=1,mod_init_done:1.
1571107285[20191015 02:41:25] [web_dump:685][CFG]mode=both,httpd_port=80,https_port=443,refreshperiod=2,sport=80,intf=lan,secure=all,clienip=0.0.0.0,httpd_access=lan,https_access=lan
1571107285[20191015 02:41:25] [web_dump:693][DMN0]active=1,pid=-1,status=0,flag=0x0,DID0
1571107285[20191015 02:41:25] [web_dump:693][DMN1]active=1,pid=4064,status=1,flag=0x0,DID1
1571107285[20191015 02:41:25] [web_dump:698][RTI]wan4_ifname=,wan6_ifname=.
1571107290[20191015 02:41:30] [notify_web:1048]IN(E23|S56|D00)
1571107293[20191015 02:41:33] [msgcb_web:1382]IN(DID1,pid 4064)
<--
2019-10-15 02:41:26: (log.c.166) server started
-->
root@ICR-W401:/home/admin#
1320
解決 M330[release/v0.08] 當 GRE mode on 的時候 web 會起不來的問題
M330[release/v0.08] - use ICOS_msg_sendto() after ICOS_BOOTINIT_DONE
commit 076db469be961661aee18f465feb865ae1c42fd2
Refs: [release/v0.08], {origin/release/v0.08}
Author: jeffrey <[email protected]>
Date: Tue Oct 15 13:21:11 2019 +0800
use ICOS_msg_sendto() after ICOS_BOOTINIT_DONE
proscend/prosrc/icos/icoslib/gre_2g/gre_2g.c | 170 +++++++++++++++++++++------
1 file changed, 134 insertions(+), 36 deletions(-)
1330
今年我被指派為公司 內部稽核 的 稽核員
受稽核單位為 採購部
相關文件如下
- Q-P-007 - 採購管理作業管理程序
- Q-I-019 - 供應商料件開發管理作業
- Q-I-022 - 模(治)具開發管理作業
已跟 採購部 溝通過要稽核的項目
目前只需要等待 採購部 準備好佐證的文件即可
1505
回到 M330 - P1 - Commnger(+Wan WiFi Client) - web ui
M330[release/v0.08]
- Vendor/Products = CTCU/1_CTCU_WIFI
- Application - 手動 turn on
- WIFI Support(STA mode)