以下說明,在shell 中,使用function 的一些注意事項。
Kang Webb
OpenWrt 開機流程
以下簡略說明OpenWrt 的開機流程。
shell script 檢查檔案是否存在
使用test
指令:
git clone 時,出現”permissions are too open from ssh”
在使用git
做clone
時,遇到"permissions are too open"
問題,如下圖。
makefile debug
在編寫makefile 時,可以使用warning 來做debug。
將make 過程輸出到檔案
輸入以下指令,可以將make 的過程輸出到檔案。
OpenWrt jshn.sh 詳細說明
以下介紹OpenWrt 中的jshn.sh。
OpenWrt procd
以下介紹OpenWrt中的procd
使用Linux Kernel Dynamic Debug
在研讀LInux Kernel Drivers 時,常會遇到netif_dbg
、pr_debug
相關的debug 函數。此文章將介紹如何開啟此類函數的輸出Log。以下將以Arm Linux Kernel 3.18.44
版本做為例子介紹。