2017年3月15日

bpi-tools更新m2u

使用bpi-tools -u -U

bpi-tools

tools for Banana Pi

How to insatll from github:

curl -sL https://github.com/BPI-SINOVOIP/bpi-tools/raw/master/bpi-tools | sudo -E bash -

bpi-update -c bpi-m2u.conf

然後 使用bpi-bootsel 切換M2U 開機

https://github.com/BPI-SINOVOIP/BPI-files

bpi-m3 800萬畫素鏡頭驅動(linux) 設定
 bpi-update -c bpi-m3-ov8865.conf

使用 bpi-update 以後若是正常可以使用 就會使用 bpi-migrate 做成image

例如把m2p的sd卡改成m2u來用
bpi-bootsel m2p. gz /dev/mmcblk0

bpi-bootsel xxx.img.gz /dev/mmcblk0 or 1

bpi-bootsel -h

2017年3月14日

git學習記錄

 學習git 筆記


git 環境設定
git config --list
git config --global user.email " 你的email"
git config --global user.name "你的姓名"
安裝數據庫 git init
新增索引 git add .
檢查狀態git status 
提交記錄 git commit -m "更新記錄"
忽略檔案 .gitignore
建立.gitignore把忽略檔案記錄其中表達方式(檔名 *.副檔名 資料夾/)
index.html
*.txt
forder/

取消索引
git reset HEAD
git reset HEAD 檔案名稱
還原檔案
git checkout 檔案
git reset --hard 還原整個專案

下載專案
git clone網址
上傳
git push

git branch
回復版本(四碼在git log中)
git checkout 前四碼
回到最新版本
git checkout master

建分支
git branch 分支名稱
合併分支
git merge 分支名稱

查詢標簽
git tag
詳細標簽
 git tag n
git tag 標簽

git checkout 標簽名稱
git tag -am "詳細內容" 標簽

git stash 暫時存當下目錄
git stash list  列出暫存記錄
git stash pop 還原暫存
git stash drop 刪除最新暫存
git stash clean 刪除全部暫存

有分支時push
git remote 查詢遠端數據庫
git remote rename 原名稱 修改名稱
git push origin master issue
                            [預設遠端主機名稱] [分支名稱]

git pull 更新其他開發者資料

git page

ubuntu開機調校

ubuntu16.04開機有點久,查了一下資料
systemd-analyze blame可以看出開機時哪一支程式使用最久時間。

查出 NetworkManager-wait-online.service佔了9秒,使用
systemctl disable NetworkManager-wait-online.service

關閉它。
啟始應用程式中關閉可關的程式。
systemd-analyze blame
systemd-analyze blame
systemd-analyze blame
systemd-analyze blame
systemd-analyze blame
systemd-analyze blame

2017年3月2日

抓手機的log檔

感謝老師指導,記錄一下

1.安裝adb
參考文章:
http://bernaerts.dyndns.org/linux/74-ubuntu/328-ubuntu-trusty-android-adb-fastboot-qtadb

2.連線 adb 


連上手機
adb shell

3.要抓 Log 執行以下這個命令:
adb logcat -b main -v time > main.txt

4. 到手機中去操作app

5.回電腦按下ctrl+c

6.找到main.txt