20200210_jeffrey - silenceuncrio/diary GitHub Wiki

0900

review


ไธŠ็ฆฎๆ‹œไบ”ไธ‹็ญๆ™‚ M360P proscend ๅค–ๅฑค็š„ make ๅทฒ็ถ“ๅšๅฅฝไบ†

ไพ†ๅš proscend ๅ…งๅฑค


ๅš proscend ๅ…งๅฑคๅ‰ๅ…ˆไฟฎๆ”น /etc/rc.local

#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.



# mount m350.vmdk
mkdir -p /home/jeffrey/m350
sudo mount UUID="7e970ddc-986b-4246-bbcf-f6eb90ed93b5" /home/jeffrey/m350
# execute once is enough ?
# sudo chown -R jeffrey:jeffrey /home/jeffrey/m350

# mount m360.vmdk
mkdir -p /home/jeffrey/m360
sudo mount UUID="c0386d28-334c-4729-9e93-669b8515aa27" /home/jeffrey/m360
# execute once is enough ?
# sudo chown -R jeffrey:jeffrey /home/jeffrey/m360



exit 0

ๅฐ‡ jubuntu ้‡้–‹ๆฉŸ

็™ผ็พ m360 ๆœ‰ๆญฃๅธธ mount ่ตทไพ†

่‡ชๅทฑไพ†ๆŠŠ build-m360 container ๅซ่ตทไพ†

docker container start build-m360
docker exec -it -u user build-m360 bash

ไธ€้€ฒ container ็š„่ตทๆ‰‹ๅผ

cd /home/user
source proenv.sh

ๅ†้€ฒ proscend ็›ฎ้Œ„ๅš make distclean

cd proscend
make distclean

make menuconfig

make menuconfig
  • Products/Vendor = M360P/2_PI

make clean ๅพŒๅ† make

make clean
make

proscend ๅ…งๅฑคไธ€ไธ‹ๅญๅฐฑ build ๅฅฝไบ†

ๆ‰พไธ€็‰‡ M360P ้€้Ž uboot ไพ†ๅš upgrade


M360 - P2 - BGP with MD5 ้–‹ๅทฅ

1030

ๅ…ˆๆบ–ๅ‚™ไปฅไธ‹็’ฐๅขƒ

+-------+                                       +-------+
|       |                lan                    |       |
| M360P +-------------------+-------------------+ M300  |
|       | 192.168.1.11             192.168.1.13 |       |
+-------+                                       +-------+

ๅทฒ็ขบๅฎšๅ…ฉ้‚Š็š„ bgp ่ƒฝๆญฃๅธธๅทฅไฝœ


ๅƒ่€ƒ 20200121_jeffrey

่ฉฒๅคฉ็‚บไบ†่ฉ•ไผฐ่ฉฒๅทฅไฝœ็š„ ๅฏ่ƒฝๆ€ง ไปฅๅŠ ้œ€่ฆๅทฅๆ™‚ ๆœ‰ goole ไบ†ไธ€ไธ‹


ๅƒ่€ƒ Adding MD5-enabled BGP Neighbors

ๅœจ้…็ฝฎ MD5 ๆ™‚

M360P ่ˆ‡ M300 ๅ‡ๅ‡บ็พไบ†้Œฏ่ชค

M360P

Router> enable
Router# configure terminal
Router(config)# router bgp 11
Router(config-router)# neighbor 192.168.1.13 password mypassword
% Error while applying TCP-Sig to session(s)
Router(config-router)#

M300

Router> enable
Router# configure terminal
Router(config)# router bgp 13
Router(config-router)# neighbor 192.168.1.11 password mypassword
% Error while applying TCP-Sig to session(s)
Router(config-router)#

ๅ‰ไธ€ๅ€‹็ฆฎๆ‹œ ่ปŸ้ซ”้€ฑๆœƒ winston ๆœ‰ๆๅˆฐ bgp with md5 ้œ€่ฆๆ‰“้–‹ไธ€ๅ€‹ kernel ็š„้ธ้ …

ๅ…ˆ่‡ชๅทฑ google ไธ€ไธ‹

M360P ไธŠ bgp ็š„ log

2019/11/05 01:43:18 BGP: BGPd 1.1.0 starting: vty@2605, bgp@<all>:179 pid 8016
2019/11/05 01:47:46 BGP: Vty connection from 127.0.0.1
2019/11/05 01:51:22 BGP: Terminating on signal
2019/11/05 01:51:22 BGP: VRF 0 is to be deleted.
2019/11/05 01:51:22 BGP: VRF 0 is to be disabled.
2019/11/05 01:59:00 BGP: BGPd 1.1.0 starting: vty@2605, bgp@<all>:179 pid 23369
2019/11/05 01:59:01 BGP: stream_read_try: read failed on fd 12: Connection reset by peer
2019/11/05 01:59:01 BGP: 192.168.1.13 [Error] bgp_read_packet error: Connection reset by peer
2019/11/05 01:59:11 BGP: stream_read_try: read failed on fd 12: Connection reset by peer
2019/11/05 01:59:11 BGP: 192.168.1.13 [Error] bgp_read_packet error: Connection reset by peer
2019/11/05 01:59:21 BGP: stream_read_try: read failed on fd 12: Connection reset by peer
2019/11/05 01:59:21 BGP: 192.168.1.13 [Error] bgp_read_packet error: Connection reset by peer
2019/11/05 01:59:31 BGP: stream_read_try: read failed on fd 12: Connection reset by peer
2019/11/05 01:59:31 BGP: 192.168.1.13 [Error] bgp_read_packet error: Connection reset by peer
2019/11/05 01:59:39 BGP: %ADJCHANGE: neighbor 192.168.1.13 Up
2019/11/05 02:00:09 BGP: Vty connection from 127.0.0.1
2019/11/05 02:13:13 BGP: Vty connection from 127.0.0.1
2019/11/05 02:16:00 BGP: %NOTIFICATION: sent to neighbor 192.168.1.13 6/6 (Cease/Other Configuration Change) 0 bytes
2019/11/05 02:16:00 BGP: Notification sent to neighbor 192.168.1.13: configuration change
2019/11/05 02:16:00 BGP: sockopt_tcp_signature: setsockopt(7): Protocol not available
2019/11/05 02:16:00 BGP: can't set TCP_MD5SIG option on socket 7: Protocol not available
2019/11/05 02:16:00 BGP: %ADJCHANGE: neighbor 192.168.1.13 Down
2019/11/05 02:16:02 BGP: sockopt_tcp_signature: setsockopt(12): Protocol not available
2019/11/05 02:16:02 BGP: can't set TCP_MD5SIG option on socket 12: Protocol not available
2019/11/05 02:16:02 BGP: sockopt_tcp_signature: setsockopt(12): Protocol not available
2019/11/05 02:16:02 BGP: can't set TCP_MD5SIG option on socket 12: Protocol not available
2019/11/05 02:16:02 BGP: stream_read_try: read failed on fd 12: Connection reset by peer
2019/11/05 02:16:02 BGP: 192.168.1.13 [Error] bgp_read_packet error: Connection reset by peer
2019/11/05 02:16:03 BGP: %ADJCHANGE: neighbor 192.168.1.13 Up
2019/11/05 02:16:39 BGP: %NOTIFICATION: received from neighbor 192.168.1.13 6/6 (Cease/Other Configuration Change) 0 bytes
2019/11/05 02:16:39 BGP: %ADJCHANGE: neighbor 192.168.1.13 Down BGP Notification received
2019/11/05 02:16:40 BGP: sockopt_tcp_signature: setsockopt(12): Protocol not available
2019/11/05 02:16:40 BGP: can't set TCP_MD5SIG option on socket 12: Protocol not available
2019/11/05 02:16:40 BGP: sockopt_tcp_signature: setsockopt(12): Protocol not available
2019/11/05 02:16:40 BGP: can't set TCP_MD5SIG option on socket 12: Protocol not available
2019/11/05 02:16:40 BGP: stream_read_try: read failed on fd 12: Connection reset by peer
2019/11/05 02:16:40 BGP: 192.168.1.13 [Error] bgp_read_packet error: Connection reset by peer
2019/11/05 02:16:42 BGP: %ADJCHANGE: neighbor 192.168.1.13 Up

้—œ้ต็š„ log

2019/11/05 02:16:00 BGP: sockopt_tcp_signature: setsockopt(7): Protocol not available
2019/11/05 02:16:00 BGP: can't set TCP_MD5SIG option on socket 7: Protocol not available

1120

ๅœจ winston ็š„ๅนซๅฟ™ไธ‹

ๅœจไปฅไธ‹็š„้—œ้ต่™•ๆ‰พๅˆฐ CONFIG_TCP_MD5SIG

user@44e2d8d07479:~/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7621/linux-3.10.14$ cat .config | grep MD5
# CONFIG_TCP_MD5SIG is not set
CONFIG_CRYPTO_MD5=y

ๅˆ็ถ“้Ž่‡ชๅทฑไธ€็•ชๆ‘ธ็ดขๅพŒ

้€้Ž make kener_menuconfig ๆ‰พๅˆฐไบ†

TCP: MD5 Signature Option support (RFC2385)

 .config - Linux/mips 3.10.14 Kernel Configuration
 > Networking support > Networking options โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ Networking options โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
  โ”‚  Arrow keys navigate the menu.  <Enter> selects submenus --->.          โ”‚
  โ”‚  Highlighted letters are hotkeys.  Pressing <Y> includes, <N> excludes, โ”‚
  โ”‚  <M> modularizes features.  Press <Esc><Esc> to exit, <?> for Help, </> โ”‚
  โ”‚  for Search.  Legend: [*] built-in  [ ] excluded  <M> module  < >       โ”‚
  โ”‚ โ”Œโ”€โ”€โ”€โ”€^(-)โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚
  โ”‚ โ”‚    [ ]   PF_KEY MIGRATE                                             โ”‚ โ”‚
  โ”‚ โ”‚    [*] TCP/IP networking                                            โ”‚ โ”‚
  โ”‚ โ”‚    [*]   IP: multicasting                                           โ”‚ โ”‚
  โ”‚ โ”‚    [*]   IP: advanced router                                        โ”‚ โ”‚
  โ”‚ โ”‚    ...                                                              โ”‚ โ”‚
  โ”‚ โ”‚    [ ]   TCP: advanced congestion control  --->                     โ”‚ โ”‚
  โ”‚ โ”‚    [ ]   TCP: MD5 Signature Option support (RFC2385)                โ”‚ โ”‚
  โ”‚ โ”‚    <*>   The IPv6 protocol  --->                                    โ”‚ โ”‚
  โ”‚ โ””โ”€โ”€โ”€โ”€โ”ด(+)โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ”‚
  โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
  โ”‚        <Select>    < Exit >    < Help >    < Save >    < Load >         โ”‚
  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

ไฟฎๆ”น m360p_kernel_defconfig-3.10 ๅฆ‚ไธ‹

diff --git a/m360p_kernel_defconfig-3.10 b/m360p_kernel_defconfig-3.10
index 26c2e6a..b6db2c5 100644
--- a/m360p_kernel_defconfig-3.10
+++ b/m360p_kernel_defconfig-3.10
@@ -502,6 +502,7 @@ CONFIG_SYS_SUPPORTS_MULTITHREADING=y
 CONFIG_SYS_SUPPORTS_SCHED_SMT=y
 CONFIG_SYS_SUPPORTS_SMP=y
 # CONFIG_TCP_CONG_ADVANCED is not set
+CONFIG_TCP_MD5SIG=y
 # CONFIG_THIRD_IF_MT7615E is not set
 CONFIG_THIRD_IF_NONE=y
 CONFIG_TICK_CPU_ACCOUNTING=y
(END)

้‡ๆ–ฐ compile kernel - refer to How to recompile the kernel only?

make target/linux/{clean,compile} V=s

้€ฒ proscend ้‡ๆ–ฐ็”ข็”Ÿ image

make clean
make

1300

proscend ็›ฎ้Œ„ make ๆœ‰้Œฏ

...
cp /home/user/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7621/vmlinux-mt7621.uImage image/mips_linux_kernel_image
cp: cannot stat โ€˜/home/user/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7621/vmlinux-mt7621.uImageโ€™: No such file or directory
make: *** [sysupgrade_bin] Error 1
user@44e2d8d07479:~/proscend$

kernel ๆฒ’ๆœ‰ install ?

user@44e2d8d07479:~$ make target/linux/install
 make[1] target/linux/install
 make[2] -C target/linux install

ๆฒ’้Œฏ

proscend ไธ‹ image ๅทฒ้ †ๅˆฉ็”ข็”Ÿ

้€้Ž uboot upgrade


ๅ†ๅŽปๅ€Ÿไธ€ๅฐ M360P

1330

่ทŸ jessy ๅ€Ÿไบ†ไธ€ๅฐ M360P

ๆญๅปบๆธฌ่ฉฆ็’ฐๅขƒๅฆ‚ไธ‹

+-------+                                       +-------+
|       |                lan                    |       |
| M360P +-------------------+-------------------+ M360P |
|       | 192.168.1.11             192.168.1.13 |       |
+-------+                                       +-------+

ๅƒ่€ƒ Adding MD5-enabled BGP Neighbors

้…็ฝฎ MD5


็œ‹่ตทไพ†ๆ˜ฏๅปบ่ตทไพ†ไบ†

Router# write
Configuration saved to /etc/quagga/bgpd.conf
Router#
Router# exit

Connection closed by foreign host

write ๅพŒๅพ—ๅˆฐ็š„ /etc/quagga/bgpd.conf ๅฆ‚ไธ‹

ไปฅ M360P - 192.168.1.11 ็‚บไพ‹

!
! Zebra configuration saved from vty
!   2019/11/05 04:56:44
!
hostname Router
password zebra
log file /tmp/bgpd.log
!
router bgp 11
 bgp router-id 192.168.1.11
 redistribute kernel
 redistribute connected
 neighbor 192.168.1.13 remote-as 13
 neighbor 192.168.1.13 password mypassword
 neighbor 192.168.1.13 ebgp-multihop 255
!
 address-family ipv6
 exit-address-family
 exit
!
line vty
!

ๅฏไปฅ็™ผ็พ้€™ๅคšๅ‡บไพ†็š„้—œ้ต command

neighbor 192.168.1.13 password mypassword

1345

่ฉฆ่‘—ๅˆฉ็”จ tcpdump ๆŠ“ไธ€ไบ›ๅฐๅŒ…ๅนซๅŠฉ่‡ชๅทฑไบ†่งฃ ๆฒ’ๆœ‰ MD5 ๅ’Œ ๆœ‰ MD5 ็š„ๅทฎๅˆฅๅˆฐๅบ•ๆ˜ฏไป€้บผ

ๅƒ่€ƒ ไฝฟ็”จ wireshark ๆŸฅ็œ‹ tcpdump ็š„ๆŠ“ๅŒ…็ป“ๆžœ

1450

ๅคšไบ† neighbor 192.168.1.13 password mypassword ้€™ command ็š„ๅทฎๅˆฅ

ๅœจๆ–ผๅ…ฉ้‚Š็š„ bgp neighbors ๅœจ้€ฒ่กŒ tcp 3 way handshake ๆ™‚

TCP packets ๆœƒๅคšๅ‡บไบ†ไธ€ๅ€‹ option

  • TCP MD5 signature

็ดฐ็ฏ€ๅฏไปฅๅƒ่€ƒ RFC 2385

  • Protection of BGP Sessions via the TCP MD5 Signature Option

1530

ariel ๆณจๆ„ๅˆฐ m350 ไธŠ fontawesome ็š„ icon ๆœ‰็•ฐๅธธ

ๆˆ‘้œ€่ฆไฟฎๆ”น็š„ๆ˜ฏ fa-compress ๅ’Œ fa-expand

  • fa-compress to fa-compress-alt
  • fa-expand to fa-expand-alt

ๅพ…ไฟฎๆ”น็š„ fa-compress ๆœ‰ไธ‰่™•

โžœ  www git:(develop) โœ— grep -r fa-compress
app/feature/dualSim.html:        <i class="fa fa-compress"></i>&nbsp;{{ 'CONNECT' | translate }}</button>
app/feature/dualSim_2apn.html:        <i class="fa fa-compress"></i>&nbsp;{{ 'CONNECT' | translate }}</button>
app/feature/apn_config.html:        <i class="fa fa-compress"></i>&nbsp;{{ 'CONNECT' | translate }}</button>

ๅพ…ไฟฎๆ”น็š„ fa-expand ๆœ‰ไธ‰่™•

ome/css/font-awesome.css:.fa-compress:before {
โžœ  www git:(develop) โœ— grep -r fa-expand
app/feature/dualSim.html:        <i class="fa fa-expand"></i>&nbsp;{{ 'DISCONNECT' | translate }}</button>
app/feature/dualSim_2apn.html:        <i class="fa fa-expand"></i>&nbsp;{{ 'DISCONNECT' | translate }}</button>
app/feature/apn_config.html:        <i class="fa fa-expand"></i>&nbsp;{{ 'DISCONNECT' | translate }}</button>

็ญ‰ m360 ๅ‘Šไธ€ๆฎต่ฝๅ†ไพ†ไฟฎๆ”น

1545

ariel ่กจ็คบ tty2tcp ้œ€่ฆ porting web ui ๅˆฐ

  • M300[release/v2.03]
  • M350[develop]

ไธ€ๆจฃๆ˜ฏ็ญ‰ M360P ๅ‘Šไธ€ๆฎต่ฝ

1615

M360P ๅ…ˆๅ‘Šไธ€ๆฎต่ฝ

ๅฐฑไธ€ๅ€‹ไฟฎๆ”น็ญ‰ๅพ… commit

diff --git a/m360p_kernel_defconfig-3.10 b/m360p_kernel_defconfig-3.10
index 26c2e6a..b6db2c5 100644
--- a/m360p_kernel_defconfig-3.10
+++ b/m360p_kernel_defconfig-3.10
@@ -502,6 +502,7 @@ CONFIG_SYS_SUPPORTS_MULTITHREADING=y
 CONFIG_SYS_SUPPORTS_SCHED_SMT=y
 CONFIG_SYS_SUPPORTS_SMP=y
 # CONFIG_TCP_CONG_ADVANCED is not set
+CONFIG_TCP_MD5SIG=y
 # CONFIG_THIRD_IF_MT7615E is not set
 CONFIG_THIRD_IF_NONE=y
 CONFIG_TICK_CPU_ACCOUNTING=y
(END)

ๅˆ‡ๅˆฐ m350 ๅทฅไฝœ - ไธ€ๆจฃไฝฟ็”จ jubuntu

m350[develop]

  • Vendor/Products = CTCU/0_CTCU

ๅ…ˆไฟฎ fontawesome ็š„ bug

diff --git a/proscend/prosrc/www/app/feature/apn_config.html b/proscend/prosrc/www/app/feature/apn_config.html
index 876df2d..9ef23a1 100644
--- a/proscend/prosrc/www/app/feature/apn_config.html
+++ b/proscend/prosrc/www/app/feature/apn_config.html
@@ -29,10 +29,10 @@
     <div class="col-sm-3" ng-show="vm.whoAmI.level >= 2">
       <button class="btn btn-primary" ng-show="vm.lte0_proto_state.npsts != 2 && vm.spinner==false"
         data-toggle="modal" data-target="#modal_info" ng-click="vm.connect()">
-        <i class="fa fa-compress"></i>&nbsp;{{ 'CONNECT' | translate }}</button>
+        <i class="fa fa-compress-alt"></i>&nbsp;{{ 'CONNECT' | translate }}</button>^M
       <button class="btn btn-primary" ng-show="vm.lte0_proto_state.npsts == 2 && vm.spinner==false"
         data-toggle="modal" data-target="#modal_info" ng-click="vm.disconnect()">
-        <i class="fa fa-expand"></i>&nbsp;{{ 'DISCONNECT' | translate }}</button>
+        <i class="fa fa-expand-alt"></i>&nbsp;{{ 'DISCONNECT' | translate }}</button>^M

       <button class="btn btn-primary" ng-show="vm.spinner == true">
         <i class="fa fa-spinner fa-pulse fa-fw"></i></button>
diff --git a/proscend/prosrc/www/app/feature/dualSim.html b/proscend/prosrc/www/app/feature/dualSim.html
index 04c733c..aae0773 100644
--- a/proscend/prosrc/www/app/feature/dualSim.html
+++ b/proscend/prosrc/www/app/feature/dualSim.html
@@ -32,10 +32,10 @@
     <div class="col-sm-4">
       <button class="btn btn-primary" ng-show="vm.current_lte.npsts != 2 && vm.spinner==false"
         data-toggle="modal" data-target="#modal_info" ng-click="vm.connect()">
-        <i class="fa fa-compress"></i>&nbsp;{{ 'CONNECT' | translate }}</button>
+        <i class="fa fa-compress-alt"></i>&nbsp;{{ 'CONNECT' | translate }}</button>^M
       <button class="btn btn-primary" ng-show="vm.current_lte.npsts == 2 && vm.spinner==false"
         data-toggle="modal" data-target="#modal_info" ng-click="vm.disconnect()">
-        <i class="fa fa-expand"></i>&nbsp;{{ 'DISCONNECT' | translate }}</button>
+        <i class="fa fa-expand-alt"></i>&nbsp;{{ 'DISCONNECT' | translate }}</button>^M

       <button class="btn btn-primary" ng-show="vm.spinner == true">
         <i class="fa fa-spinner fa-pulse fa-fw"></i></button>
diff --git a/proscend/prosrc/www/app/feature/dualSim_2apn.html b/proscend/prosrc/www/app/feature/dualSim_2apn.html
index 1faf100..a858279 100644
--- a/proscend/prosrc/www/app/feature/dualSim_2apn.html
+++ b/proscend/prosrc/www/app/feature/dualSim_2apn.html
@@ -29,10 +29,10 @@
     <div class="col-sm-3">
       <button class="btn btn-primary" ng-show="vm.lte0_proto_state.npsts != 2 && vm.spinner==false"
         data-toggle="modal" data-target="#modal_info" ng-click="vm.connect()">
-        <i class="fa fa-compress"></i>&nbsp;{{ 'CONNECT' | translate }}</button>
+        <i class="fa fa-compress-alt"></i>&nbsp;{{ 'CONNECT' | translate }}</button>^M
       <button class="btn btn-primary" ng-show="vm.lte0_proto_state.npsts == 2 && vm.spinner==false"
         data-toggle="modal" data-target="#modal_info" ng-click="vm.disconnect()">
-        <i class="fa fa-expand"></i>&nbsp;{{ 'DISCONNECT' | translate }}</button>
+        <i class="fa fa-expand-alt"></i>&nbsp;{{ 'DISCONNECT' | translate }}</button>^M

       <button class="btn btn-primary" ng-show="vm.spinner == true">
         <i class="fa fa-spinner fa-pulse fa-fw"></i></button>
(END)

build image ๅฏฆ้š›่ฉฆ่ฉฆ

้€้Ž web ๅš firmware upgrade

1600

้‡้–‹ๆฉŸๅพŒ็™ผ็พ web ่ตทไธไพ†

่ค‡่ฃฝ /tmp/icos/web/lighttpd.conf ไธฆไฟฎๆ”น server.port ๆ–นไพฟๆธฌ่ฉฆ

root@ICR-401:/home/admin# cp /tmp/icos/web/lighttpd.conf /tmp/
root@ICR-401:/home/admin# vi /tmp/lighttpd.conf

ๅŸท่กŒๅคฑๆ•—

root@ICR-401:/home/admin# lighttpd -f /tmp/lighttpd.conf

/usr/sbin/lighttpd: symbol 'getrandom': can't resolve symbol

ๅพžๆฒ’่ฆ‹้Ž็š„้Œฏ่ชค

ๅ…ˆๅ›ž้€€ๅˆฐไธ€ๅ€‹ๅฅฝ็š„้ปž - ๅˆฉ็”จ git checkout ๅˆฐไธŠ็ฆฎๆ‹œๅ››็š„ commit

็”ข็”Ÿ image

้€้Ž tftp upload firmware.img ๅพŒไพ†ๅš firmware upgrade

web ้‚„ๆ˜ฏไธ€ๆจฃ่ตทไธไพ† - /home/log/web.log ไธๅœ็š„ๅˆทๆ–ฐ


ไธ้Ž m350 ๆˆ‘ไธ€ไธŠ้›ป web ๆœ‰่ตทไพ†

ๆˆ‘้‚„ๆ˜ฏ้€้Ž web ไพ†ๅš firmware upgrade

่ฉฆ่‘—้€้Ž uboot ไพ†ๅš upgrade

็™ผ็พ lighttpd ไธ€ๆจฃ่ตทไธไพ†

1710

ๅƒ่€ƒ 20200206_jeffrey

ๆˆ‘ๆœ€ๅพŒไธ€ๆฌกๅœจ m350 ๅš็š„ commit ไฝฟ็”จ็š„่™›ๆ“ฌๆฉŸๆ˜ฏ jjbox ่€Œไธๆ˜ฏ jubuntu

็›ฎๅ‰ๆ‡ท็–‘ๆ˜ฏ jubuntu ้€ ๆˆ็š„ๅ•้กŒ


jubuntu ้—œๆฉŸ

jjbox ้–‹ๆฉŸ


้€้Ž tftp ไพ† upgrade jjbox ่ฃก็š„ image - firmware.img

็ตๆžœไธ€ๆจฃ...


้€้Ž uboot ไพ† upgrade

ๅฅฝไบ†... ๅฅ‡ๆ€ช...

1730

็›ฎๅ‰ไฝฟ็”จ jjbox

pull ๆœ€ๆ–ฐ็š„ m350[develop]

ๅ†ไฟฎๆญฃไธ€ๆฌก fontawesome ็š„้Œฏ่ชค

image


้€้Ž web ไพ†ๅš firmware upgrade

lighttpd ๆญฃๅธธๅทฅไฝœ

ไฟฎๆญฃ fontawesome ็š„้Œฏ่ชคไนŸๆญฃ็ขบ

ไธŠ code

m350[develop] - correct the icon name since we update Font Awesome from version 4.6.3 to 5.1

  • fa-compress to fa-compress-alt
  • fa-expand to fa-expand-alt
commit 9feb8529c673a673e356bf26161396c17256018c
Refs: [develop], {origin/develop}
Author: jeffrey <[email protected]>
Date:   Mon Feb 10 17:46:26 2020 +0800

    correct the icon name since we update Font Awesome from version 4.6.3 to 5.1
    - fa-compress to fa-compress-alt
    - fa-expand to fa-expand-alt

 proscend/prosrc/www/app/feature/apn_config.html   | 4 ++--
 proscend/prosrc/www/app/feature/dualSim.html      | 4 ++--
 proscend/prosrc/www/app/feature/dualSim_2apn.html | 4 ++--
 3 files changed, 6 insertions(+), 6 deletions(-)

jubuntu ไธŠ m350 ็š„ๅ•้กŒๅพ…ๆŸฅไธ้Žๅฏไปฅๆ”พๅพŒ้ขไธ€้ปž

ๆ˜Žๅคฉ็นผ็บŒๅˆฉ็”จ jjbox ไพ†ๅš m350 ็š„ tty2tcp web ui

โš ๏ธ **GitHub.com Fallback** โš ๏ธ