20161229_jeffrey - silenceuncrio/diary GitHub Wiki
- 0830 - review
- 0905 - 把 cgi 跟 shell script 接起來
-
0930 -
FirmwareUpgrade.sh
- 一出錯就停下來 而且 讓使用者知道發生甚麼事 - 1115 - m300 因為我明天請假所以提前在禮拜四開常態性的周會
- 1315 - 目前已經可以透過 web 作 upgrade firmware 這件事了
- 1400 - commit
- 1500 - commit
- 1520 - 製作 firmware.tar 目前手動流程如下
review
可以把 cgi 跟 shell script 接起來了
修改 cgi-bin/firmware.cgi?act=upgrade
呼叫 FirmwareUpgrade.sh
開始作事
不過在這個時間點我們已經假設 firmware 已經放在 /tmp/firmware.upload
裡
開始加強 FirmwareUpgrade.sh
過程中只要一出錯就停下來
而且要讓使用者從 web ui 知道發生甚麼事
m300 因為我明天請假所以提前在禮拜四開常態性的周會
- 第一版的 release 預計在下禮拜五
- 下禮拜三會跟業務單位介紹 m300 方便後續使用手冊的編寫
目前已經可以透過 web 作 upgrade firmware 這件事了
先 commit 吧
看一下改了什麼
➜ 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: icos/iweb/Makefile
modified: icos/iweb/cookie_auth/mongoose.c
modified: icos/iweb/iweb.c
modified: icos/script/FirmwareUpgrade.sh
modified: webcgi/Makefile
modified: www/app/locale-en.json
modified: www/app/services/icos.service.js
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")
因為 <prosrc>/.gitignore
的關係
➜ proscend git:(nandflash) ✗ cat .gitignore
# Object files
*.o
*.cgi
*.a
*.so
...
iweb
...
我需要手動加入我在 iweb
下新增的 files
➜ iweb git:(nandflash) ✗ git add -f big_upload/*
再切換目錄到 <prosrc>
下看看我改了什麼
➜ proscend git:(nandflash) ✗ git status
On branch nandflash
Changes to be committed:
(use "git reset HEAD <file>..." to unstage)
new file: prosrc/icos/iweb/big_upload/Makefile
new file: prosrc/icos/iweb/big_upload/big_upload.c
new file: prosrc/icos/iweb/big_upload/mongoose.c
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: prosrc/icos/iweb/Makefile
modified: prosrc/icos/iweb/cookie_auth/mongoose.c
modified: prosrc/icos/iweb/iweb.c
modified: prosrc/icos/script/FirmwareUpgrade.sh
modified: prosrc/webcgi/Makefile
modified: prosrc/www/app/locale-en.json
modified: prosrc/www/app/services/icos.service.js
modified: prosrc/www/app/views/menu.html
modified: prosrc/www/index.html
Untracked files:
(use "git add <file>..." to include in what will be committed)
prosrc/webcgi/firmware.c
prosrc/www/app/feature/firmware.html
prosrc/www/app/feature/firmware.js
作個摘要
- iweb - offer firmware upload api
- prosrc/icos/iweb/big_upload/Makefile
- prosrc/icos/iweb/big_upload/big_upload.c
- prosrc/icos/iweb/big_upload/mongoose.c
- prosrc/icos/iweb/Makefile
- prosrc/icos/iweb/cookie_auth/mongoose.c
- prosrc/icos/iweb/iweb.c
- script - firmware upgrade shell script
- prosrc/icos/script/FirmwareUpgrade.sh
- webcgi - firmware upgrade cgi
- prosrc/webcgi/Makefile
- prosrc/webcgi/firmware.c
- www - firmware upgrade web ui
- prosrc/www/app/locale-en.json
- prosrc/www/app/services/icos.service.js
- prosrc/www/app/views/menu.html
- prosrc/www/index.html
- prosrc/www/app/feature/firmware.html
- prosrc/www/app/feature/firmware.js
commit
commit 06f4269363be4a3a0f6e3bc9f37b0ef94850cdb1
Author: jeffrey <[email protected]>
Date: Thu Dec 29 13:59:08 2016 +0800
- iweb - offer firmware upload api
- script - firmware upgrade shell script
- webcgi - firmware upgrade cgi
- www - firmware upgrade web ui
commit 297192bee37effafdee9a1e6af33ca335e8d2c9f
Author: jeffrey <[email protected]>
Date: Thu Dec 29 15:13:22 2016 +0800
correct the misspelled word - "failed"
commit 06f4269363be4a3a0f6e3bc9f37b0ef94850cdb1
拼錯字... 這個錯字會導致 javascript 在使用 indexOf('failed')
時以為沒有錯誤
製作 firmware.tar 目前手動流程如下
- mkdir -p /tmp/firmware
- cp zImage /tmp/firmware
- cp zImage-imx6ul-14x14-evk.dtb /tmp/firmware
- cp core-image-minimal-m300.tar.bz2 /tmp/firmware
- cd /tmp
- rm firmware.tar
- tar -cf firmware.tar firmware
- cp firmware.tar ~/M300/fsl-release-bsp/build_small/images
要找個地方塞個 shell script