OpenWrt 學習筆記
一名新鮮人與一名過來人的對話交流實錄。
採主題式回合交流編集。
章節
- EP1. 刷機
- EP2. /etc/config 與 UCI
- EP3. Web UI – LuCI
- EP4. 橋接、延伸、中繼
EP1. 刷機
EP2. /etc/config 與 UCI
參考連結
EP3. Web UI – LuCI
What is LuCI?
- A web user interface
- A free, clean, extensible
- Uses the Lua programming language
- A MVC-Webframework
Ref: LuCI – Technical Reference
參考連結
EP4. 橋接、延伸、中繼
EP5. Porting Morse Micro Module driver to Raspberry Pi 3
Prepare
Hardware
- Raspberry Pi 3 Model B+(TODO: 3B+ ?, 型號資訊可參考這裡)
- Morse Micro Module AHM26108D(TODO: 型號資訊?)
- Host PC Ubuntu 20.04 LTS(Build System)
Software
- Raspberry Pi OS
- MM6108 Linux Driver Release Package 1.12.4 (TODO: 有 public URL?)沒有
- Pre-install package on the Host PC
Pre-install package on the Host PC
Install Raspberry Pi 3 OS
Download Raspberry Pi Imager to install Raspberry Pi OS
https://www.raspberrypi.com/software/
請安裝Raspberry Pi OS (64Bits)
Building Linux Kernel 6.6 version
Download Linux Kernel
P.S. --depth=1
表示 git log
只拉最新一層 commit,不會下載整條 History ,以節省下載時間與容量。
Patching Linux Kernel
NOTE: patch
的選項說明: https://www.gnu.org/software/diffutils/manual/html_node/patch-Options.html
Modify Kernel Driver Option
Cross-compile the Linux Kernel
Building Linux Kernel
Compiler Morse Micro Driver
Queue, TODO
(待後置的資料,先暫放此處)
2024-10-28
OpenWrt 四大主軸:
- 編譯與刷機
- 硬體參數修改, DTS, Driver Porting
- OpenWrt 網路設定, UCI
- Web UI
- 對照 Upstream 的 LuCI source code 作 Trace code 前, 注意要先定位版本對應關係。若版本對應錯置,容易發生"刻舟求劍"、"用明朝的劍斬清朝的官"的窘境。
2024-10-29