20170105_jeffrey - silenceuncrio/diary GitHub Wiki

Index

  • 0900 - 沒有把 rootfs 變成 read only
  • 1110 - rootfs read-only 在 /etc/rc.local 改 - icosconfig bootinit 會出錯
  • 1115 - 把 firmware upgrade 的 reset 鈕拿掉
  • 1150 - 今天傍晚 release 前該做的事已完成
  • 1330 - 把 nobrand 的 logo 稍微變大一點點
  • 1355 - 修改 FirmwareUpgrade.sh 時又改了檔案權限造成 m300 無法執行 - 網路芳鄰
  • 1815 - use json_object_new_int64 to keep the month_tx and month_rx

0900

一早來 ariel 告知我沒有把 rootfs 變成 read only

還有就是 home 目錄也希望 mount 到 config 那一塊

1110

雖然 rootfs 改成 read-only 這件事在 /etc/rc.local 改一下就做完了

# ======================================================================
# | read-only remount a mounted root file system
# | attach MTD device to UBI according to the current rootfs
# | mount UBI on /mnt/data and /home
# ======================================================================
/bin/mkdir -p /mnt/data
if df | grep rootfs_a
then
    echo "read-only remount a mounted root file system"
    mount -t ubifs ubi0:rootfs_a / -o remount,ro
    echo "attach MTD device 5 (mtd5) to UBI - ubi1:config_a"
    ubiattach -m 5
    echo "mount ubi1:config_a on /mnt/data"
    mount -t ubifs ubi1:config_a /mnt/data
    echo "mount ubi1:config_a on /home"
    mount -t ubifs ubi1:config_a /home
else
    echo "read-only remount a mounted root file system"
    mount -t ubifs ubi0:rootfs_b / -o remount,ro
    echo "attach MTD device 10 (mtd10) to UBI - ubi1:config_b"
    ubiattach -m 10
    echo "mount ubi1:config_b on /mnt/data"
    mount -t ubifs ubi1:config_b /mnt/data
    echo "mount ubi1:config_b on /home"
    mount -t ubifs ubi1:config_b /home
fi

不過 icosconfig bootinit 會出錯...

rootfs 改成 read-only 在 /etc/rc.local 的修改就不要在今天作

1115

把 firmware upgrade 的 reset 鈕拿掉

1150

今天傍晚 release 前該做的事已完成

  • remove the 'reset' button from firmware upgrade web ui
  • after writting rootfs and umount, detach rootfs partition from UBI
  • add the process for synchronizing the config MTD device into firmware upgrade shell script

commit...

commit 55abd6903cca1ecf385c2916041b70f2792ae1b4
Author: jeffrey <[email protected]>
Date:   Thu Jan 5 11:48:34 2017 +0800

    - after writting rootfs and umount, detach rootfs partition from UBI
    - add the process for synchronizing the config MTD device into firmware upgrade shell script

commit a744aeba8273420ef429c209e6259441ac9b5bac
Author: jeffrey <[email protected]>
Date:   Thu Jan 5 11:19:36 2017 +0800

    remove the 'reset' button from firmware upgrade web ui

1330

把 nobrand 的 logo 稍微變大一點點

1355

注意到早上修改 FirmwareUpgrade.sh

commit 55abd6903cca1ecf385c2916041b70f2792ae1b4
Author: jeffrey <[email protected]>
Date:   Thu Jan 5 11:48:34 2017 +0800

    - after writting rootfs and umount, detach rootfs partition from UBI
    - add the process for synchronizing the config MTD device into firmware upgrade shell script

竟然又改了檔案權限造成 m300 上的 FirmwareUpgrade.sh 無法執行

趕緊改回來

commit b6a5cdeaec4eca99215fe6cafd9b9c722426d554
Author: jeffrey <[email protected]>
Date:   Thu Jan 5 13:50:11 2017 +0800

    chmod +x the FirmwareUpgrede.sh again... >_<

目前得知是開發環境的 ubuntu 透過網路芳鄰分享給 win 10 後

直接在 win 10 用 sublime 去編輯 FirmwareUpgrade.sh

一存檔就會改變檔案的屬性

1815

commit 4b75847bdfa88ea7632f987d21abbfa8880f4ff2
Author: jeffrey <[email protected]>
Date:   Thu Jan 5 18:17:23 2017 +0800

    - use json_object_new_int64 to keep the month_tx and month_rx
    - fix the wrong display string in 'Time And Date' page

release 前再小改一下