20171031_jeffrey - silenceuncrio/diary GitHub Wiki
0910
來把昨天作的重構一下
也讓之後 rc.local
為了 nand flash 與 emmc 的差異化作準備
1110
ariel 提出小修改
commit f1ebe90bdf041fe51cda416f9bb55e991ea1afe7
Author: jeffrey <[email protected]>
Date: Tue Oct 31 11:08:30 2017 +0800
Change the 'Disable Roaming' field:
- 'Disable/Enable' to 'No/Yes'
proscend/prosrc/www/app/feature/dualSim.html | 4 ++--
proscend/prosrc/www/app/locale-en.json | 10 +++++-----
proscend/prosrc/www/app/locale-fr.json | 10 +++++-----
proscend/prosrc/www/app/locale-zh-tw.json | 9 ++++-----
4 files changed, 16 insertions(+), 17 deletions(-)
1325
昨天把 uboot env 縮小之後傳出災情
例如 uboot env 縮小的版本是 1.60
原本 uboot env 沒縮小的版本是 1.59
假設 1.60 在 rootfs_a
那 firmware downgrade 成 1.59 之後
下次重開機應該要從 rootfs_b 開機
不過 1.59 的 uboot 會認為目前的 uboot env 是錯的 - CRC Error
所以會回到 1.59 uboot default 的 env 設定
結果又是從 rootfs_a 開機
就造成了無法切換 partition 的尷尬局面
這樣的包袱目前是甩不掉了
先還原吧
commit c5b6f28f5d697bb75ff65cc200dded89dad2e775
Author: jeffrey <[email protected]>
Date: Tue Oct 31 13:21:55 2017 +0800
recover the change of the 'decrease the uboot env size'
- bacause it is not firmware downgrade compatible
1530
就只縮小 fw_env.config
裡的 flash sector size
commit 4d428792145d080cafd91252bbc7e8376abb7b3c
Author: jeffrey <[email protected]>
Date: Tue Oct 31 15:24:46 2017 +0800
reduce the flash sector size
- from 0x00100000 to 0x00020000
refactoring rc.local
proscend/base_fs/default/rootfs/etc/fw_env.config | 2 +-
proscend/base_fs/default/rootfs/etc/rc.local | 302 ++++++++++++----------
2 files changed, 164 insertions(+), 140 deletions(-)
這樣也不影響到 uboot
fw_setenv
與 fw_printenv
也能正常運作
跟先前的版本也能相容
順手重構了一下 rc.local
1700
ethaddr
寫 random
是沒意義的
commit b089e9ee0d3ce6f8da43223a77ca9d37e129e98d
Author: jeffrey <[email protected]>
Date: Tue Oct 31 17:00:27 2017 +0800
correct typo
restore ethaddr only when '$MAC' != 'random'
proscend/base_fs/default/rootfs/etc/rc.local | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
下一次開機 uboot 會把 ethaddr
刪掉
1735
commit 41ca18289b840069549aaf998d8446334b525267
Author: jeffrey <[email protected]>
Date: Tue Oct 31 17:34:56 2017 +0800
when uboot env hw_mcsv loose, set to default immediately
when uboot env serialno loose, set to default immediately
proscend/base_fs/default/rootfs/etc/rc.local | 4 ++++
1 file changed, 4 insertions(+)
一開始發現 hw_mcsv
或 serialno
就馬上寫相對應的 default value 回 uboot env
ethaddr
不需要把 random
這 default value 寫回 uboot
random
只是一個示意
表示當下的系統 mac address 是 random
產生的