20180712_jeffrey - silenceuncrio/diary GitHub Wiki

0900

review

今天來把 6 台 M360-P Sample 先準備好

0920

預計 release 的 M360-P 版本為 V0.04

位置在 P:\2_Projects\3_Wireless\M360-P\firmware\20180516

不過該位置只有 M360P_v0.04_01F400000042C124.img

這是透過 web ui 做 upgrade 時的 image

我需要的是能透過 uboot 做 upgrade 的 image

另存成 M360P_v0.04_01F400000042C124.tar 再解壓縮即可得到 sysupgrade.bin

0930

還要準備 uboot image

參考 M360 wiki - How to build uboot from source code

利用 build-m360 這個 docker image 產生新的 container build-uboot-m360

cd <your uboot-m360 source>

docker run --name build-uboot-m360 \
           -e LOCAL_USER_ID=`id -u $USER` \
           -v `pwd`:/home/user \
           -it --restart=always -d build-m360 /bin/bash

進入該 container

docker exec -it -u user build-uboot-m360 bash

1010

順利 build 出了 uboot.img

1035

置換了 uboot.img 後還要清空除了 uboot 之外的 partition

參考 M360-P wiki 的 Dual_image

nand erase 80000 7000000

reset 後再進 uboot 會看到 default 的 uboot env

4: System Enter Boot Command Line Interface.

U-Boot 1.1.3 (Jul 12 2018 - 02:06:01)
MT7621 # print
bootcmd=tftp
bootdelay=1
baudrate=57600
ethaddr="00:AA:BB:CC:DD:10"
ipaddr=192.168.1.1
serverip=192.168.1.113
dual_image_active=a
no_good=.
stdin=serial
stdout=serial
stderr=serial

Environment size: 181/4092 bytes
MT7621 #

開機後進 linux shell

利用 fw_setenv 寫 S/N 和 MAC

fw_setenv serialno BL9U33T50000
fw_setenv macaddr 00:03:79:05:CF:89

1050

繼續第二台

fw_setenv serialno BL9U33T50001
fw_setenv macaddr 00:03:79:05:CF:8A

第三台

  • 置換 uboot.img
  • 清空除了 uboot 之外的 partition - nand erase 80000 700000
  • 燒錄 dual image - sysupgrade.bin
  • S/N - fw_setenv serialno BL9U33T50002
  • MAC - fw_setenv macaddr 00:03:79:05:CF:8B

第四台

  • 置換 uboot.img
  • 清空除了 uboot 之外的 partition - nand erase 80000 700000
  • 燒錄 dual image - sysupgrade.bin
  • S/N - fw_setenv serialno BL9U33T50003
  • MAC - fw_setenv macaddr 00:03:79:05:CF:8C

第五台

  • 置換 uboot.img
  • 清空除了 uboot 之外的 partition - nand erase 80000 700000
  • 燒錄 dual image - sysupgrade.bin
  • S/N - fw_setenv serialno BL9U33T50004
  • MAC - fw_setenv macaddr 00:03:79:05:CF:8D

第六台

  • 置換 uboot.img
  • 清空除了 uboot 之外的 partition - nand erase 80000 700000
  • 燒錄 dual image - sysupgrade.bin
  • S/N - fw_setenv serialno BL9U33T50005
  • MAC - fw_setenv macaddr 00:03:79:05:CF:8E

1130

可以裝殼了

1440

commit 10cc9fe8449225c8fb9a7930966c31c60946b72c
Refs: [release/v0.05], {origin/release/v0.05}
Author: jeffrey <[email protected]>
Date:   Thu Jul 12 14:40:21 2018 +0800

    use 'lte0_proto_state.npsts' as the connect state

 proscend/prosrc/webcgi/icos_shm.c                 | 19 ++++-
 proscend/prosrc/www/app/feature/dualSim_2apn.html |  7 +-
 proscend/prosrc/www/app/feature/dualSim_2apn.js   | 88 +++++------------------
 proscend/prosrc/www/app/services/icos.service.js  |  3 +
 4 files changed, 41 insertions(+), 76 deletions(-)

1530

commit 86d877b800203b9efa417fcf00b3ccc7b9cbf7ee
Refs: [release/v0.05], {origin/release/v0.05}
Author: jeffrey <[email protected]>
Date:   Thu Jul 12 15:28:20 2018 +0800

    display the 'Unlock' button no matter the lock PCI list is empty or not

 proscend/prosrc/www/app/feature/engineer.html | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)