在編寫makefile 時,可以使用warning 來做debug。
linux
將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
版本做為例子介紹。
用sed 搜尋並取代字串
在Linux 系統中,若有一檔案,如我們想取代某一字串,可以用sed 指令完成。參考以下指令:
Linux系統/opt目錄和/usr/local目錄區別
1. /opt 目錄