20200318_jeffrey - silenceuncrio/diary GitHub Wiki
M330 - task - [0%] status page 要有 wan as lan - 和 M300 一樣
commit 92e874868d1623c80914c8984cfc52994caa4410
Refs: [release/v1.01], {origin/release/v1.01}
Author: jeffrey <[email protected]>
Date: Wed Mar 18 10:25:49 2020 +0800
add the 'System' related information include 'Ethernet WAN Port as' at 'Status' page
proscend/prosrc/webcgi/status.c | 29 ++++++++++++++++++++
proscend/prosrc/www/app/feature/status.js | 3 ++-
.../www/app/feature/status_pannel_system.html | 31 ++++++++++++++++++++++
proscend/prosrc/www/app/locale-en.json | 3 +++
proscend/prosrc/www/app/locale-fr.json | 3 +++
proscend/prosrc/www/app/locale-zh-tw.json | 3 +++
.../prosrc/www/src/app/feature/status.html.src | 2 ++
7 files changed, 73 insertions(+), 1 deletion(-)
M300 - bug - [20%] P2 - 查案 - RMA 的 eMMC CPU 板
- 邊開機邊 ping 結果 icos boot init 就卡住了 - ### module init
DQA 直接給我該片有問題的 CPU board
根本不需要邊開機邊 ping 就會卡在 ### module init
試著 reset default - 長按超過十秒 無反應 - 2020_rma_emmc_console_a
拔插電讓 active partition 從 a 跳到 b - 2020_rma_emmc_console_b
卡在同樣的地方
從 uboot 的日期推得該版本應為 v1.76
使用 mfgtool - M301-TG_016800001762E711_mfgtools.zip
燒錄手邊的 eMMC 試試
順利開機 console log 如 2020_v176_emmc_console
稍微看一下有哪裡不同
➜ tmp diff emmc_v176_rma.log emmc_v176_good.log
3,4c3,4
< CPU: Freescale i.MX6UL rev1.2 at 396 MHz
< CPU: Temperature 38 C
---
> CPU: Freescale i.MX6UL rev1.1 at 396 MHz
> CPU: Temperature 40 C
15a16,17
> *** Warning - bad CRC, using default environment
>
26a29,30
> Error: FEC1 address not set.
>
33,35c37
< Replace App 1
< App Replace
< App 1 from dual image b to a
---
> Run App 1
39c41
< 5153432 bytes read in 134 ms (36.7 MiB/s)
---
> 5153432 bytes read in 133 ms (37 MiB/s)
41c43
< 29152 bytes read in 17 ms (1.6 MiB/s)
---
> 29056 bytes read in 18 ms (1.5 MiB/s)
47c49
< Using Device Tree in place at 83000000, end 8300a1df
---
> Using Device Tree in place at 83000000, end 8300a17f
54c56
< Linux version 4.1.15-1.2.0+g77f6154 (user@4e79036bf4ac) (gcc version 5.2.0 (GCC) ) #1 SMP PREEMPT Thu Oct 25 06:56:39 CST 2018
---
> Linux version 4.1.15-1.2.0+g77f6154 (user@2332fde94b32) (gcc version 5.2.0 (GCC) ) #1 SMP PREEMPT Fri Jan 25 17:31:48 CST 2019
60c62
< PERCPU: Embedded 12 pages/cpu @8bb35000 s17216 r8192 d23744 u49152
---
> PERCPU: Embedded 12 pages/cpu @8bb36000 s17216 r8192 d23744 u49152
66c68
< Memory: 181436K/524288K available (6370K kernel code, 342K rwdata, 2260K rodata, 392K init, 454K bss, 15172K reserved, 327680K cma-reserved, 0K highmem)
---
> Memory: 181440K/524288K available (6370K kernel code, 342K rwdata, 2260K rodata, 392K init, 454K bss, 15168K reserved, 327680K cma-reserved, 0K highmem)
155d156
< 21f4000.serial: ttymxc4 at MMIO 0x21f4000 (irq = 228, base_baud = 5000000) is a IMX
159,160c160
< ksz8795 spi32766.0: chip id 0x8761
< libphy: Switch MII bus: probed
---
> ksz8795 spi32766.0: failed to read device ID(0xffff) [59/110]
167a168,169
> fec 20b4000.ethernet (unnamed net_device) (uninitialized): Invalid MAC address: 00:00:00:00:00:00
> fec 20b4000.ethernet (unnamed net_device) (uninitialized): Using random MAC address: 2a:24:a3:27:2e:db
171a174,175
> fec 2188000.ethernet (unnamed net_device) (uninitialized): Invalid MAC address: 00:00:00:00:00:00
> fec 2188000.ethernet (unnamed net_device) (uninitialized): Using random MAC address: ca:9c:fc:2f:dd:c4
222c226
< nf_conntrack version 0.5.0 (7954 buckets, 31816 max)
---
> nf_conntrack version 0.5.0 (7955 buckets, 31820 max)
235,236d238
< mmc1: new DDR MMC card at address 0001
< mmcblk1: mmc1:0001 W62704 3.53 GiB
238a241,242
> mmc1: new DDR MMC card at address 0001
> mmcblk1: mmc1:0001 W62704 3.53 GiB
241d244
< mmcblk1rpmb: mmc1:0001 W62704 partition 3 512 KiB
245a249
> mmcblk1rpmb: mmc1:0001 W62704 partition 3 512 KiB
247d250
< can: broadcast manager protocol (rev 20120528 t)
248a252
> can: broadcast manager protocol (rev 20120528 t)
262d265
< EXT3-fs (mmcblk1p2): recovery complete
269,276c272,273
< udevd[107]: starting version 182
< random: dd urandom read with 33 bits of entropy available
< Sat Apr 13 21:52:46 UTC 2019
< INIT: Entering runlevel: 5
< Configuring network interfaces... ifup: unknown address type "inet"
< /etc/rc5.d/S20xl2tpd: line 23: /lib/lsb/init-functions: No such file or directory
< Running local boot scripts (/etc/rc.local)running dual image is a
< random: nonblocking pool is initialized
---
> udevd[97]: starting version 182
> random: dd urandom read with 31 bits of entropy available
280a278
> GobiNet: Quectel_WCDMA<E_Linux&Android_GobiNet_Driver_V1.3.0
286,287c284
< GobiNet: Quectel_WCDMA<E_Linux&Android_GobiNet_Driver_V1.3.0
< GobiNet 2-1:1.4 eth2: register 'GobiNet' at usb-ci_hdrc.1-1, GobiNet Ethernet Device, 16:1d:66:47:b7:6e
---
> GobiNet 2-1:1.4 eth2: register 'GobiNet' at usb-ci_hdrc.1-1, GobiNet Ethernet Device, 5a:47:af:e2:4f:33
289a287,303
> Mon Feb 25 05:53:38 UTC 2019
> Running postinst /etc/rpm-postinsts/100-dnsmasq... [11/110]
> Running postinst /etc/rpm-postinsts/101-keepalived...
> Running postinst /etc/rpm-postinsts/102-at...
> Running postinst /etc/rpm-postinsts/103-dropbear...
> Running postinst /etc/rpm-postinsts/104-postfix...
> Running postinst /etc/rpm-postinsts/105-cronie...
> Running postinst /etc/rpm-postinsts/106-syslog-ng...
> Running postinst /etc/rpm-postinsts/107-gpsd...
> Running postinst /etc/rpm-postinsts/108-hostapd...
> update-rc.d: /etc/init.d/run-postinsts exists during rc.d purge (continuing)
> Removing any system startup links for run-postinsts ...
> /etc/rcS.d/S99run-postinsts
> INIT: Entering runlevel: 5
> Configuring network interfaces... ifup: unknown address type "inet"
> /etc/rc5.d/S20xl2tpd: line 23: /lib/lsb/init-functions: No such file or directory
> Running local boot scripts (/etc/rc.local)running dual image is a
292d305
< EXT3-fs (mmcblk1p4): recovery complete
294,295c307,317
< time stamp is 1555299398
< Note: ifconfig eth1 hw ether 38:b8:eb:22:b7:fe
---
> WARNING: uboot env ethaddr loose
> cat: can't open '/mnt/mmc/app_a/data/sysinfo.txt': No such file or directory
> WARNING: uboot env ethaddr not set
> WARNING: uboot env hw_mcsv loose
> cat: can't open '/mnt/mmc/app_a/data/sysinfo.txt': No such file or directory
> WARNING: uboot env hw_mcsv set to default - 016800001762E711
> WARNING: uboot env serialno loose
> cat: can't open '/mnt/mmc/app_a/data/sysinfo.txt': No such file or directory
> WARNING: uboot env serialno set to default - NA
> WARNING: uboot env serialno not set
> ifconfig: SIOCSIFFLAGS: No such device
329c351,374
< ### module <openvpn> init
\ No newline at end of file
---
> ### module <openvpn> init
> ### module <netmon> init
> ### module <connmgr> init
> ### module <dmz> init
> ### module <wan_select> init
> ### module <cli> init
> ### module <lan_control> init
> ### module <modbus> init
> ### module <mqtt> init
> ### module <vrrp> init
> ### module <route> init
> ### module <zebra> init
> ### module <smtp> init
> ### module <ospf> init
> ### module <rip> init
> ### module <bgp> init
> ### module <ip_alias> init
> ### module <gre> init
> ### module <pptpd> init
> ### module <l2tp> init
> ### module <schedule-reboot> init
> .
>
> Hardened Cellular Router login:
\ No newline at end of file
保留該 CPU 板
發一條 issue 方便後續討論
M300 - issue - [0%] 0000968: reset button no function if system hang during icos boot init
目前該 eMMC CPU 板先放在我這邊待查
M330 - task - [0%] P3 - BGP status for every neighbors
commit 4f3a51b8123e068754733e45b1731bce5c3c5854
Refs: [release/v1.01], {origin/release/v1.01}
Author: jeffrey <[email protected]>
Date: Tue Mar 10 15:30:43 2020 +0800
add 'Status' nav for 'IP Routing > BGP'
- to show the status of each enabled BGP neighbors
proscend/prosrc/webcgi/bgp.c | 2 +-
proscend/prosrc/www/app/feature/bgp.html | 14 +++--
proscend/prosrc/www/app/feature/bgp.js | 60 ++++++++++++++++++++++
.../prosrc/www/app/feature/bgp_tab_status.html | 38 ++++++++++++++
proscend/prosrc/www/app/locale-en.json | 9 ++++
proscend/prosrc/www/app/locale-fr.json | 9 ++++
proscend/prosrc/www/app/locale-zh-tw.json | 9 ++++
proscend/prosrc/www/app/services/icos.service.js | 3 ++
.../prosrc/www/src/manual/ip_routing_bgp.h.html | 39 +++++++++++++-
9 files changed, 176 insertions(+), 7 deletions(-)
commit 8d3a1863c1f0fc122011b202858079f52c7812fc
Author: jeffrey <[email protected]>
Date: Tue Mar 10 13:38:50 2020 +0800
offer GetStatus at 'bgp' module
- also offer bgp.cgi?act=status
proscend/prosrc/icos/icoslib/bgp/bgp.c | 142 ++++++++++++++++++++++++++++++
proscend/prosrc/icos/include/module_bgp.h | 24 +++++
proscend/prosrc/webcgi/bgp.c | 59 ++++++++++++-
3 files changed, 224 insertions(+), 1 deletion(-)
commit 7c46fee7ed30c83d4f9f377114fd4b29950cd62a
Author: jeffrey <[email protected]>
Date: Tue Mar 10 10:24:22 2020 +0800
add vty - the utility for zebra/rip/ospf/bgp
- porting from proscend modle 'VPN' - design by winston
proscend/prosrc/icos/Makefile | 2 +
proscend/prosrc/icos/vty/.gitignore | 1 +
proscend/prosrc/icos/vty/Makefile | 28 +++++
proscend/prosrc/icos/vty/vty.c | 238 ++++++++++++++++++++++++++++++++++++
4 files changed, 269 insertions(+)
M330 - bug - [0%] wan ethernet 切換 work as 然後都不 reboot, 切一輪就三個 mode 都 turn on 了
M330 的確有這現象
只要你不去理會 reboot 而是按 Esc 的方式就可以複製問題
幫忙看一下 M300 和 M350-C 是否有此現象
先看 M300
發現只要 apply 的彈跳視窗你不去按 ok 的話 切一輪就三個 mode 都 turn on 了
看來 M350-C 肯定也有此現象
M300 - bug - [0%] wan ethernet 切換 work as 然後 apply ok 都按 Esc 跳開, 切一輪就三個 mode 都 turn on 了
切回 VMware jbox
commit 0a8ab19746660d6aa37218aff435d9a4471f9392
Refs: [release/v2.05], {origin/release/v2.05}
Author: jeffrey <[email protected]>
Date: Wed Mar 18 15:02:58 2020 +0800
clean the chg_wproto for each apply even user press 'Esc' to escape the 'Apply Ok' button
- before: $route.reload() will reload the controller - clean the chg_wproto once
- now: clean the chg_wproto when user press 'Apply'
proscend/prosrc/www/app/feature/wanEthernet.js | 15 ++++++++-------
1 file changed, 8 insertions(+), 7 deletions(-)
M330 - bug - [0%] wan ethernet 切換 work as 然後都不 reboot, 切一輪就三個 mode 都 turn on 了
切回 VMware jubuntu
commit b16d2030264b4fa548e0b5d47378602c255afa27
Refs: [release/v1.01], {origin/release/v1.01}
Author: jeffrey <[email protected]>
Date: Wed Mar 18 15:02:58 2020 +0800
clean the chg_wproto for each apply even user press 'Esc' to escape the 'Apply Ok' button
- before: $route.reload() will reload the controller - clean the chg_wproto once
- now: clean the chg_wproto when user press 'Apply'
proscend/prosrc/www/app/feature/wanEthernet.js | 15 ++++++++-------
1 file changed, 8 insertions(+), 7 deletions(-)
commit 72ab181de31a97128cb033086894624da33cde87
Author: jeffrey <[email protected]>
Date: Wed Mar 18 15:20:37 2020 +0800
[revert] when user change 'Work As' at 'WAN > Ethernet', ask user to reboot to take effect
proscend/prosrc/www/app/feature/wanEthernet.js | 59 ++------------------------
1 file changed, 3 insertions(+), 56 deletions(-)
M350-C(SDK10.0.0) - issue - [0%] 0000966: when DUT change mode from PPPoE to static, DUT still keeps pppd daemon for PPPoE
目前判斷是相同解法
commit 2c6f6a39097e8fbe608b4c6fe13646c5a72fb978
Refs: [develop], {origin/develop}
Author: jeffrey <[email protected]>
Date: Wed Mar 18 15:02:58 2020 +0800
clean the chg_wproto for each apply even user press 'Esc' to escape the 'Apply Ok' button
- before: $route.reload() will reload the controller - clean the chg_wproto once
- now: clean the chg_wproto when user press 'Apply'
proscend/prosrc/www/app/feature/wanEthernet.js | 15 ++++++++-------
1 file changed, 8 insertions(+), 7 deletions(-)
M330 - issue - [0%] 0000970: [Setup Wizard] configure Wifi SSID, but reboot change to old SSID
問題的成因基本到是因為 M330 的 setting wizard 從一開始就有問題
我並沒有為了 M330 去幫 wizard 所需的 CGI 們新增 set()
乾脆全改回 apply()
commit c07ceafbeefa8771a255e4a6e26b5a33bc77e1fa
Refs: [release/v1.01], {origin/release/v1.01}
Author: jeffrey <[email protected]>
Date: Wed Mar 18 16:52:47 2020 +0800
use apply() instead of set() at wizard
proscend/prosrc/www/app/feature/wizard.js | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
已確認 wifi 可以動作