20161227_jeffrey - silenceuncrio/diary GitHub Wiki

Index

  • 1005 - M300 team 就 KPI 這個主題開了會 - 結論
  • 1015 - review
  • 1050 - 修改 nfs 的設定
  • 1125 - 可以修改 /www/app/ 的 source code 然後直接觀察結果
  • 1340 - 來寫 KPI
  • 1430 - 搞定 KPI
  • 1615 - efm bridge - 幫忙 upgrade 成 ACE 的版本 - 19 片 - 一片沒辦法插 power
  • 1730 - PHT 裝了 power 給我
  • 1735 - m300 - firmware upgrade web ui
  • 1830 - 從 cgi 用不會咬住的方法來呼叫 firmware upgrade 的 shell script

1005

一早 M300 team 就 KPI 這個主題開了會 - 結論如下

  • 最遲這禮拜四要交
  • M300 team 以 ariel 的表格為主(沒有 evidence 欄位需要填)
  • 達成狀況若是達成了 達成率就寫 100%

ariel 會把 excel 表格 mail 給我們

還會把明年上半年的工作分一分

1015

review

1050

可以來寫 UI 了

要修改 nfs 的設定

參考 http://linux.vbird.org/linux_server/0330nfs.php#nfsserver_exports

目前 /etc/exports 如下

➜  M300 git:(nandflash) cat /etc/exports
# /etc/exports: the access control list for filesystems which may be exported
#               to NFS clients.  See exports(5).
#
# Example for NFSv2 and NFSv3:
# /srv/homes       hostname1(rw,sync,no_subtree_check) hostname2(ro,sync,no_subtree_check)
#
# Example for NFSv4:
# /srv/nfs4        gss/krb5i(rw,sync,fsid=0,crossmnt,no_subtree_check)
# /srv/nfs4/homes  gss/krb5i(rw,sync,no_subtree_check)
#
/home/jeffrey/M300/fsl-release-bsp/proscend/prosrc 192.168.1.0/24(rw,sync)
/home/jeffrey/M300/fsl-release-bsp/build_small/images 192.168.1.0/24(ro,sync)

因為目前從 m300 git server clone 下來的 source code 放在 /home/jeffrey/M300_git/M300/

我需要加上下面這兩行

  • /home/jeffrey/M300_git/M300/proscend/prosrc 192.168.1.0/24(rw,sync)
  • /home/jeffrey/M300_git/M300/build_small/images 192.168.1.0/24(ro,sync)

記得要 sudo vim /etc/exports

重新掛載一次 /etc/exports 的設定 - exportfs -arv

➜  ~ sudo exportfs -arv
[sudo] password for jeffrey:
exportfs: /etc/exports [1]: Neither 'subtree_check' or 'no_subtree_check' specified for export "192.168.1.0/24:/ho
me/jeffrey/M300/fsl-release-bsp/proscend/prosrc".
  Assuming default behaviour ('no_subtree_check').
  NOTE: this default has changed since nfs-utils version 1.0.x

exportfs: /etc/exports [2]: Neither 'subtree_check' or 'no_subtree_check' specified for export "192.168.1.0/24:/ho
me/jeffrey/M300/fsl-release-bsp/build_small/images".
  Assuming default behaviour ('no_subtree_check').
  NOTE: this default has changed since nfs-utils version 1.0.x

exportfs: /etc/exports [3]: Neither 'subtree_check' or 'no_subtree_check' specified for export "192.168.1.0/24:/ho
me/jeffrey/M300_git/M300/proscend/prosrc".
  Assuming default behaviour ('no_subtree_check').
  NOTE: this default has changed since nfs-utils version 1.0.x

exportfs: /etc/exports [4]: Neither 'subtree_check' or 'no_subtree_check' specified for export "192.168.1.0/24:/ho
me/jeffrey/M300_git/M300/build_small/images".
  Assuming default behaviour ('no_subtree_check').
  NOTE: this default has changed since nfs-utils version 1.0.x

exporting 192.168.1.0/24:/home/jeffrey/M300_git/M300/build_small/tmp/deploy/images/m300
exporting 192.168.1.0/24:/home/jeffrey/M300_git/M300/proscend/prosrc
exporting 192.168.1.0/24:/home/jeffrey/M300/fsl-release-bsp/build_small/tmp/deploy/images/imx6ulevk
exporting 192.168.1.0/24:/home/jeffrey/M300/fsl-release-bsp/proscend/prosrc

使用 showmount -e 確認一下

➜  ~ showmount -e
Export list for jeffrey-VirtualBox:
/home/jeffrey/M300_git/M300/build_small/tmp/deploy/images/m300             192.168.1.0/24
/home/jeffrey/M300_git/M300/proscend/prosrc                                192.168.1.0/24
/home/jeffrey/M300/fsl-release-bsp/build_small/tmp/deploy/images/imx6ulevk 192.168.1.0/24
/home/jeffrey/M300/fsl-release-bsp/proscend/prosrc                         192.168.1.0/24

1125

m300 上的操作如下

root@M300:~# pwd
/home/root
root@M300:~# mkdir prosrc
root@M300:~# mkdir images
root@M300:~# mount -t nfs 192.168.1.200:/home/jeffrey/M300_git/M300/proscend/prosrc prosrc
root@M300:~# mount -t nfs 192.168.1.200:/home/jeffrey/M300_git/M300/build_small/images images
root@M300:~# ls
images  prosrc
root@M300:~#

把原本的 /www/app/ 資料夾刪掉

直接建立一個符號連結檔 /www/app/ 連結到 ~/prosrc/www/app/

再把原本的 /www/index.html 刪掉 建個符號連結檔 /www/index.html 連結到 ~/prosrc/www/index.html

root@M300:~# cd /www/
root@M300:/www# ls
app         brand       cgi-bin     index.html  libs
root@M300:/www# rm -rf app/
root@M300:/www# ln -s ~/prosrc/www/app/ app
root@M300:/www# rm index.html
root@M300:/www# ln -s ~/prosrc/index.html index.html
root@M300:/www#

這樣就可以直接修改 /www/app/ 的 source code 然後直接觀察修改完的結果了

1340

來寫 KPI

參考 https://docs.google.com/spreadsheets/d/1Flurlb51Wfd83Hb0DS8fXlBOYvDKt817MjMK6TPL3L8/edit#gid=0

列一下自己負責的項目

  • mfgtool
  • Web UI with multi languages
  • Web server (IPv4v6)
  • u-boot : burn image - NAND flash
  • kernel: NAND MTD Driver
  • u-boot : image layout - NAND flash
  • u-boot : image layout - SD card
  • u-boot : Reduce image size
  • u-boot : burn image - SD card
  • Web UI
  • ALL Integration Test (including new bsp)
  • Update Frimware through web

整理成適合寫在 KPI 上的樣子

  • Task Item - M300 Boot(KPI; Target)
    • NAND flash Layout;
    • MTD Driver;
    • Web UI;
    • Web UI with multi languages;
    • Update Frimware through web;

再參考 http://192.168.0.244/dokuwiki/doku.php?id=mantis:m300:further_phrase_feature_list

列一下明年上半年的 KPI

  • Web Server With HTTPS
  • Web UI
  • Web Proxy
  • FOTA
  • CLI

1430

搞定 KPI

mail 給處長順便 cc 給 ariel

1615

efm bridge 來囉

休息一下

先幫忙 upgrade 成 ACE 的版本

keep 一下那些 PCB 號碼已經做完了

使用的 firmware 是 D:\EfmBridge\ReleaseNew\branches\CID000_ACE\5640000.110.20151109-R948.bin

PCB - 22FJF3EL0124 - fail

Incorrect File!
Check Code: 15EA-0000-144225B4

Please go back and keyin this item again.

一下子就遇到要先改 MCSV

參考 https://github.com/silenceuncrio/diary/wiki/20151118_jeffrey

EfmBridge 特別的帳密為

User: iwu@fbt&ND
Password: wut@uty&2210

PCB - 22FJF3EL0124 - 改 MCSV - ok

再來

PCB - 22FHW3HS0010 - 也是要改 MCSV - ok

PCB - 22FHU3DU007F - ok

PCB - 22FHW3HS0011 - ok

PCB - 22FJ23M5008F - ok

PCB - 22FHY3LA0008 - ok

PCB - 22FJ23M50005 - ok

PCB - 22FHY3LA0009 - ok

PCB - 22FHY3LA0007 - ok

PCB - 22FHY3LA0006 - ok

PCB - 22FHY3LA0003 - ok

PCB - 22FHY3LA0004 - ok

PCB - 22FHY3LA0011 - ok

PCB - 22FJF3EL0126 - 改 MCSV - ok

PCB - 22FJF3EL0123 - ok

PCB - 22FJF3EL0127 - ok

PCB - 22FJF3EL0125 - ok

PCB - 22FJF3EL0128 - ok

PCB - 22FJF3EL0129 - 改 MCSV - ok

搞定

全部做了 19 片

有一片沒辦法插 power...

1730

PHT 裝了 power 接給我

PCB - 22FJB3JB00AE - ok

打完收工

1735

回到 m300 的 firmware upgrade web ui

目前已經改了一些了

➜  prosrc git:(nandflash) ✗ git status
On branch nandflash
Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git checkout -- <file>..." to discard changes in working directory)

        modified:   webcgi/Makefile
        modified:   www/app/locale-en.json
        modified:   www/app/views/menu.html
        modified:   www/index.html

Untracked files:
  (use "git add <file>..." to include in what will be committed)

        webcgi/firmware.c
        www/app/feature/firmware.html
        www/app/feature/firmware.js

no changes added to commit (use "git add" and/or "git commit -a")

1830

在 m300 上寫一隻/tmp/test.sh

echo "test start..."
echo "sleep 5 sec"
sleep 5
echo "sleep 6 sec"
sleep 6
echo "test finish"

總執行時間至少 11 秒

從 cgi 去呼叫這隻 shell 會有下述狀況

至少咬住 11 秒才 return

    ...
    system("/tmp/test.sh > /tmp/test.log");
    ...

馬上就 return, 而且 /tmp/test.log 持續會更新

    ...
    system("/tmp/test.sh > /tmp/test.log &");
    ...

明天就用不會咬住的方法來呼叫 firmware upgrade 的 shell script

⚠️ **GitHub.com Fallback** ⚠️