20181206_jeffrey - silenceuncrio/diary GitHub Wiki
0905
一早來先回一下 mail
關於 CXR 的 uboot env 消失的現象
1005
winston 請我先給他 nhrpd 所屬的 quagga 的版本
並且給他 nhrpd 所需要的 config
他先這樣幫忙看一下問題
他會先在 openwrt 的環境上面 run
所以我需要提供的訊息有
- quagga 的版本為 1.2.4
- nhrpd 的 config
config 可以有兩種形式
為了 winston 方便就先給他 /etc/quagga/nhrpd.conf 吧
1040
參考下述兩篇
Cisco 2951
interface tunnel 200
ip address 10.0.0.200 255.255.255.0
ip nhrp network-id 200
tunnel source GigabitEthernet 0/0
tunnel mode gre multipoint
M300 - gre
ip tunnel add gre1 mode gre remote 192.168.1.200 local 192.168.1.1
ip link set gre1 up
ip addr add 10.0.0.1/24 dev gre1
M300 - nhrp
killall nhrpd
rm /tmp/nhrp.log
rm /etc/quagga/nhrpd.conf
touch /etc/quagga/nhrpd.conf
nhrpd -d
vtysh
configure terminal
log file /tmp/nhrp.log
debug nhrp all
interface gre1
ip address 10.0.0.1/24
ip nhrp map 10.0.0.200 192.168.1.200
ip nhrp network-id 200
ip nhrp nhs 10.0.0.200 nbma 192.168.1.200
tunnel source eth1
exit
exit
write memory
看一下 log
root@Cellular Router:~# cat /tmp/nhrp.log
2018/12/06 02:55:08 NHRP: vici_reconnect: failure connecting VICI socket: No such file or directory
2018/12/06 02:55:10 NHRP: vici_reconnect: failure connecting VICI socket: No such file or directory
2018/12/06 02:55:12 NHRP: vici_reconnect: failure connecting VICI socket: No such file or directory
2018/12/06 02:55:14 NHRP: vici_reconnect: failure connecting VICI socket: No such file or directory
2018/12/06 02:55:16 NHRP: vici_reconnect: failure connecting VICI socket: No such file or directory
2018/12/06 02:55:18 NHRP: vici_reconnect: failure connecting VICI socket: No such file or directory
2018/12/06 02:55:20 NHRP: vici_reconnect: failure connecting VICI socket: No such file or directory
2018/12/06 02:55:22 NHRP: vici_reconnect: failure connecting VICI socket: No such file or directory
2018/12/06 02:55:24 NHRP: vici_reconnect: failure connecting VICI socket: No such file or directory
2018/12/06 02:55:26 NHRP: vici_reconnect: failure connecting VICI socket: No such file or directory
2018/12/06 02:55:28 NHRP: vici_reconnect: failure connecting VICI socket: No such file or directory
2018/12/06 02:55:30 NHRP: vici_reconnect: failure connecting VICI socket: No such file or directory
2018/12/06 02:55:32 NHRP: vici_reconnect: failure connecting VICI socket: No such file or directory
2018/12/06 02:55:34 NHRP: vici_reconnect: failure connecting VICI socket: No such file or directory
2018/12/06 02:55:36 NHRP: vici_reconnect: failure connecting VICI socket: No such file or directory
2018/12/06 02:55:38 NHRP: vici_reconnect: failure connecting VICI socket: No such file or directory
2018/12/06 02:55:40 NHRP: vici_reconnect: failure connecting VICI socket: No such file or directory
2018/12/06 02:55:42 NHRP: vici_reconnect: failure connecting VICI socket: No such file or directory
2018/12/06 02:55:44 NHRP: vici_reconnect: failure connecting VICI socket: No such file or directory
2018/12/06 02:55:46 NHRP: vici_reconnect: failure connecting VICI socket: No such file or directory
2018/12/06 02:55:48 NHRP: vici_reconnect: failure connecting VICI socket: No such file or directory
2018/12/06 02:55:50 NHRP: vici_reconnect: failure connecting VICI socket: No such file or directory
2018/12/06 02:55:52 NHRP: vici_reconnect: failure connecting VICI socket: No such file or directory
2018/12/06 02:55:54 NHRP: vici_reconnect: failure connecting VICI socket: No such file or directory
2018/12/06 02:55:56 NHRP: vici_reconnect: failure connecting VICI socket: No such file or directory
2018/12/06 02:55:58 NHRP: vici_reconnect: failure connecting VICI socket: No such file or directory
2018/12/06 02:56:00 NHRP: vici_reconnect: failure connecting VICI socket: No such file or directory
2018/12/06 02:56:02 NHRP: vici_reconnect: failure connecting VICI socket: No such file or directory
2018/12/06 02:56:03 NHRP: cache: gre1 10.0.0.200: accept
2018/12/06 02:56:04 NHRP: vici_reconnect: failure connecting VICI socket: No such file or directory
2018/12/06 02:56:06 NHRP: vici_reconnect: failure connecting VICI socket: No such file or directory
2018/12/06 02:56:08 NHRP: vici_reconnect: failure connecting VICI socket: No such file or directory
2018/12/06 02:56:10 NHRP: vici_reconnect: failure connecting VICI socket: No such file or directory
2018/12/06 02:56:12 NHRP: vici_reconnect: failure connecting VICI socket: No such file or directory
2018/12/06 02:56:14 NHRP: vici_reconnect: failure connecting VICI socket: No such file or directory
2018/12/06 02:56:16 NHRP: vici_reconnect: failure connecting VICI socket: No such file or directory
2018/12/06 02:56:18 NHRP: vici_reconnect: failure connecting VICI socket: No such file or directory
2018/12/06 02:56:20 NHRP: vici_reconnect: failure connecting VICI socket: No such file or directory
2018/12/06 02:56:22 NHRP: vici_reconnect: failure connecting VICI socket: No such file or directory
2018/12/06 02:56:24 NHRP: [0x10b95c8] Resolving '192.168.1.200'
2018/12/06 02:56:24 NHRP: [0x10b95c8] Resolved with 1 results
2018/12/06 02:56:24 NHRP: NHS: Waiting link for 192.168.1.200
2018/12/06 02:56:24 NHRP: vici_reconnect: failure connecting VICI socket: No such file or directory
2018/12/06 02:56:26 NHRP: vici_reconnect: failure connecting VICI socket: No such file or directory
2018/12/06 02:56:28 NHRP: vici_reconnect: failure connecting VICI socket: No such file or directory
2018/12/06 02:56:28 NHRP: gre1: bound to eth1
2018/12/06 02:56:28 NHRP: gre1: bound device index changed to 6
2018/12/06 02:56:28 NHRP: netlink-link-gre: get-info 16
2018/12/06 02:56:28 NHRP: netlink-link-gre: ifindex 16, receive msg_type 16, msg_flags 0
2018/12/06 02:56:28 ZEBRA: Try to set TE Link Param
2018/12/06 02:56:28 NHRP: if-up: gre1
2018/12/06 02:56:28 ZEBRA: Try to set TE Link Param
2018/12/06 02:56:28 NHRP: if-up: gre1
2018/12/06 02:56:30 NHRP: vici_reconnect: failure connecting VICI socket: No such file or directory
...
2018/12/06 02:58:22 NHRP: vici_reconnect: failure connecting VICI socket: No such file or directory
2018/12/06 02:58:24 NHRP: NHS: Waiting link for 192.168.1.200
2018/12/06 02:58:24 NHRP: vici_reconnect: failure connecting VICI socket: No such file or directory
...
2018/12/06 03:00:22 NHRP: vici_reconnect: failure connecting VICI socket: No such file or directory
2018/12/06 03:00:24 NHRP: NHS: Waiting link for 192.168.1.200
2018/12/06 03:00:24 NHRP: vici_reconnect: failure connecting VICI socket: No such file or directory
...
2018/12/06 03:02:22 NHRP: vici_reconnect: failure connecting VICI socket: No such file or directory
2018/12/06 03:02:24 NHRP: NHS: Waiting link for 192.168.1.200
2018/12/06 03:02:24 NHRP: vici_reconnect: failure connecting VICI socket: No such file or directory
...
一直在 Waiting link for 192.168.1.200
看看 M300 這邊 vtysh 進去有沒有什麼狀態可以看
show ip nhrp cache
Cellular Router# show ip nhrp cache
Iface Type Protocol NBMA Flags Identity
gre1 static 10.0.0.200 192.168.1.200
show ip nhrp nhs
Cellular Router# show ip nhrp nhs
Iface FQDN NBMA Protocol
gre1 192.168.1.200 192.168.1.200 (unspec)
show ip nhrp opennhrp
Cellular Router# show ip nhrp opennhrp
Status: ok
Type: static
Flags:
Protocol-Address: 10.0.0.200/32
NBMA-Address: 192.168.1.200
show ip nhrp shortcut
Cellular Router# show ip nhrp shortcut
% No entries
那 Cisco 2951 呢
Router#show ip nhrp summary
IP NHRP cache 0 entries, 0 bytes
0 static 0 dynamic 0 incomplete
殘念
1140
發現 M300 的 tunnel source 應該是 eth0 才對
再一次
M300 - gre
ip tunnel add gre1 mode gre remote 192.168.1.200 local 192.168.1.1
ip link set gre1 up
ip addr add 10.0.0.1/24 dev gre1
M300 - nhrp
killall nhrpd
rm /tmp/nhrp.log
rm /etc/quagga/nhrpd.conf
touch /etc/quagga/nhrpd.conf
nhrpd -d
vtysh
configure terminal
log file /tmp/nhrp.log
debug nhrp all
interface gre1
ip address 10.0.0.1/24
ip nhrp map 10.0.0.200 192.168.1.200
ip nhrp network-id 200
ip nhrp nhs 10.0.0.200 nbma 192.168.1.200
tunnel source eth0
exit
exit
write memory
看一下 M300 這邊 vtysh 的 nhr 狀態
show ip nhrp cache
Cellular Router# show ip nhrp cache
Iface Type Protocol NBMA Flags Identity
gre1 static 10.0.0.200 192.168.1.200
show ip nhrp nhs
Cellular Router# show ip nhrp nhs
Iface FQDN NBMA Protocol
gre1 192.168.1.200 192.168.1.200 (unspec)
show ip nhrp opennhrp
Cellular Router# show ip nhrp opennhrp
Status: ok
Type: static
Flags:
Protocol-Address: 10.0.0.200/32
NBMA-Address: 192.168.1.200
show ip nhrp shortcut
Cellular Router# show ip nhrp shortcut
% No entries
看一下 Cisco 2951
Router>show ip nhrp summary
IP NHRP cache 0 entries, 0 bytes
0 static 0 dynamic 0 incomplete
殘念
但還是看一下 log
root@Cellular Router:~# cat /tmp/nhrp.log
2018/12/06 03:43:45 NHRP: vici_reconnect: failure connecting VICI socket: No such file or directory
...
2018/12/06 03:44:13 NHRP: vici_reconnect: failure connecting VICI socket: No such file or directory
2018/12/06 03:44:14 NHRP: cache: gre1 10.0.0.200: accept
2018/12/06 03:44:15 NHRP: vici_reconnect: failure connecting VICI socket: No such file or directory
...
2018/12/06 03:44:33 NHRP: vici_reconnect: failure connecting VICI socket: No such file or directory
2018/12/06 03:44:33 NHRP: [0x1f75a8] Resolving '192.168.1.200'
2018/12/06 03:44:33 NHRP: [0x1f75a8] Resolved with 1 results
2018/12/06 03:44:33 NHRP: NHS: Waiting link for 192.168.1.200
2018/12/06 03:44:35 NHRP: vici_reconnect: failure connecting VICI socket: No such file or directory
2018/12/06 03:44:37 NHRP: vici_reconnect: failure connecting VICI socket: No such file or directory
2018/12/06 03:44:38 NHRP: gre1: bound to eth0
2018/12/06 03:44:38 NHRP: gre1: bound device index changed to 5
2018/12/06 03:44:38 NHRP: netlink-link-gre: get-info 15
2018/12/06 03:44:38 NHRP: netlink-link-gre: ifindex 15, receive msg_type 16, msg_flags 0
2018/12/06 03:44:38 ZEBRA: Try to set TE Link Param
2018/12/06 03:44:38 ZEBRA: Try to set TE Link Param
2018/12/06 03:44:38 NHRP: if-up: gre1
2018/12/06 03:44:38 NHRP: if-up: gre1
2018/12/06 03:44:39 NHRP: vici_reconnect: failure connecting VICI socket: No such file or directory
...
2018/12/06 03:46:33 NHRP: vici_reconnect: failure connecting VICI socket: No such file or directory
2018/12/06 03:46:33 NHRP: NHS: Waiting link for 192.168.1.200
2018/12/06 03:46:35 NHRP: vici_reconnect: failure connecting VICI socket: No such file or directory
...
1315
ariel 希望 M300 的 log 能夠有自己獨立的一塊
這只有 nandflash 的版本才辦的到
目前 M300 nandflash partitions 分配如下
...
11 cmdlinepart partitions found on MTD device gpmi-nand
Creating 11 MTD partitions on "gpmi-nand":
0x000000000000-0x000000300000 : "boot"
0x000000300000-0x000000400000 : "boot_env"
0x000000400000-0x000000e00000 : "kernel_a"
0x000000e00000-0x000001000000 : "dtb_a"
0x000001000000-0x000007000000 : "rootfs_a"
0x000007000000-0x000008000000 : "config_a"
0x000008000000-0x000008400000 : "misc"
0x000008400000-0x000008e00000 : "kernel_b"
0x000008e00000-0x000009000000 : "dtb_b"
0x000009000000-0x00000f000000 : "rootfs_b"
0x00000f000000-0x000010000000 : "config_b"
...
修改 proscend/memory_fs/nandflash/default/rootfs/etc/rc.local
如下
@@ -55,11 +55,11 @@ app_2_mount_n="/tmp/app_2"
app_1_mount_d_data="/mnt/config/data"
app_1_mount_n_data="/mnt/data"
-app_1_mount_d_log="/mnt/config/log"
-app_1_mount_n_log="/home/log"
-
app_2_data="/tmp/app_2/data"
+app_2_mount_d_log="/tmp/app_2/log"
+app_2_mount_n_log="/home/log"
+
if df | grep rootfs_a
@@ -108,10 +108,6 @@ mkdir -p "$app_1_mount_d_data"
mkdir -p "$app_1_mount_n_data"
mount "$app_1_mount_d_data" "$app_1_mount_n_data"
-mkdir -p "$app_1_mount_d_log"
-mkdir -p "$app_1_mount_n_log"
-mount "$app_1_mount_d_log" "$app_1_mount_n_log"
-
mkdir -p "$app_1_data_icos"
mkdir -p "$app_1_data_rtc"
@@ -122,6 +118,10 @@ mkdir -p "$app_2_mount_n"
mount -t ubifs "$app_2_mount_d" "$app_2_mount_n"
mkdir -p "$app_2_data"
+mkdir -p "$app_2_mount_d_log"
+mkdir -p "$app_2_mount_n_log"
+mount "$app_2_mount_d_log" "$app_2_mount_n_log"
+
# get uboot_env_ver from uboot env
(END)
build 個 image 試試
1410
利用 mfgtool 燒錄
看來應該沒什麼問題
root@Cellular Router:~# df
Filesystem 1024-blocks Used Available Use% Mounted on
ubi0:rootfs_a 81080 54244 22660 71% /
devtmpfs 90708 4 90704 0% /dev
tmpfs 254744 188 254556 0% /run
tmpfs 254744 476 254268 0% /var/volatile
ubi1:config_a 7796 68 7292 1% /mnt/config
ubi1:config_a 7796 68 7292 1% /mnt/data
ubi2:config_b 7796 284 7080 4% /var/volatile/tmp/app_2
ubi2:config_b 7796 284 7080 4% /home/log
commit 吧
commit 41813e8e1cc56b001ef753ef1668f467ca81b195
Author: jeffrey <[email protected]>
Date: Thu Dec 6 14:20:27 2018 +0800
let the configuraion and log have different mtd partitions:
root@Cellular Router:~# df
Filesystem 1024-blocks Used Available Use% Mounted on
ubi0:rootfs_a 81080 54244 22660 71% /
devtmpfs 90708 4 90704 0% /dev
tmpfs 254744 188 254556 0% /run
tmpfs 254744 476 254268 0% /var/volatile
ubi1:config_a 7796 68 7292 1% /mnt/config
ubi1:config_a 7796 68 7292 1% /mnt/data
ubi2:config_b 7796 284 7080 4% /var/volatile/tmp/app_2
ubi2:config_b 7796 284 7080 4% /home/log
proscend/memory_fs/nandflash/default/rootfs/etc/rc.local | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
1500
發現可以從 西藥、醫療器材、含藥化粧品許可證查詢
經由 成分 Sildenafil
查詢跟 威而鋼
等效的 合法 學名藥
目前有吃過
- 威而鋼膜衣錠100毫克 - VIAGRA FILM-COATED TABLETS 100MG - 衛署藥輸字第022383號
- 威達挺膜衣錠100毫克 - Vedafil 100mg - 衛部藥輸字第026170號
- 雄讚膜衣錠100毫克 - Slivien F.C. Tablets 100mg - 衛部藥製字第059280號
只有 雄讚膜衣錠100毫克 是國產的
反正效果都差不多 就買便宜的就好了
之前第一次在網路上買的印度藥 SUPER KAMAGRA 所謂的雙效是指
- sildenafil(西地那非) 100mg(1粒威而剛) - 負責把 弟弟 叫起床的(作用時間約30分鐘以後)
- dapoxetine(達泊西汀) 60mg - 是在延遲射出時間的 (作用時間約3小時以後)
試著在 西藥、醫療器材、含藥化粧品許可證查詢 找 dapoxetine 這關鍵字
列出以下兩種國產藥
- 利久樂膜衣錠30毫克 - Dapotin Film-Coated Tablet 30mg - 衛部藥製字第059839號
- 御久膜衣錠30毫克 - H-Dapoxetine F.C. Tablets 30mg - 衛部藥製字第059806號
1730
M360 traceroute 有問題
參考 traceroute does not work, output is * * * but network is fine
commit
commit 44cc3b1a10c64f96ba4128d5bffaf68b87e24a4f
Author: jeffrey <[email protected]>
Date: Thu Dec 6 17:25:59 2018 +0800
add '-I' option while use traceroute:
Use ICMP ECHO instead of UDP datagrams
proscend/prosrc/www/app/feature/traceroute.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)