切換b slot開機指令
=> fastboot oem set_active b
再使用reboot指令
=> fastboot reboot
開機後就可以看到,都跑 b slot
切換b slot開機指令
=> fastboot oem set_active b
再使用reboot指令
=> fastboot reboot
開機後就可以看到,都跑 b slot
最近在測試5Gnr的device的Throughput,這邊記錄一下相關的流程以及一些device端的設定,整個架設環境如下圖
說明:
7515B 為5Gnr的儀器,他能夠模擬5G基地台,傳送5G的PHY Rate 給Device,以這個架構圖來看,UE 5G Device,接4根天線到 7515B,假設7515B設定能夠提供 1.4G的PHY Rate,Device端正常來說也要可以拿到1.4G左右的速度(或是打個8折/9折),Device端連線 7515B之後,可以看到會多出一個 ccmni0的介面,IP會是 192.168.2.2,這個IP是由7515B配置的
因此我們接著使用測Throuput軟體 iperf,從PC 1 打到 PC 2,來看看5G Device的Downlink Throughput 能夠到達多少速度
在打Throughpt的過程中,發現 PC 1 並無法直接打iperf 到PC 2,原因為 PC1與PC2 兩者的網段,並不相同,因此需要使用linux command "iptables"來設定路由規則,讓PC1的封包到device後,再NAT到PC2
iptable規則設定:
增加iptables規則,走tcp protocol:
iptables -t nat -A PREROUTING -i ccmni0 -p tcp -j DNAT --to-destination 192.168.42.2
刪除iptables規則,走tcp protocol:
iptables -t nat -D PREROUTING -i ccmni0 -p tcp -j DNAT --to-destination 192.168.42.2
增加iptables規則,走udp protocol:
iptables -t nat -A PREROUTING -i ccmni0 -p udp -j DNAT --to-destination 192.168.42.2
刪除iptables規則,走udp protocol:
iptables -t nat -D PREROUTING -i ccmni0 -p udp -j DNAT --to-destination 192.168.42.2
查看iptables規則:
iptables -nvL -t nat
加入iptables設定,封包可以routing到PC2,可以看到 iperf數據了~
使用以下的command可以印出 eMMC的 partition資訊 lsblk --bytes --output name,partlabel,size 參數說明 --bytes: partition的大小,以byte的方式輸出 --output: 後面可以指定要輸出的內容...