原创 uboot源碼分析六 uboot啓動流程三 lowlevel_init 函數 s_init 函數 _main 函數

lowlevel_init 函數 函數 lowlevel_init 在文件 arch/arm/cpu/armv7/lowlevel_init.S 中定義, /* * A lowlevel_init function that s

原创 linux驅動開發之地址映射(mmu)

在編寫驅動之前,我們需要先簡單瞭解一下 MMU 這個神器, MMU 全稱叫做 Memory Manage Unit,也就是內存管理單元。在老版本的 Linux 中要求處理器必須有 MMU,但是現在Linux 內核已經支持無 MMU

原创 linux編譯後文件夾

1、 arch 目錄 這個目錄是和架構有關的目錄,比如 arm、 arm64、 avr32、 x86 等等架構。每種架構都對應一個目錄,在這些目錄中又有很多子目錄,比如 boot、 common、 configs 等等,以 arc

原创 linux源碼剖析五 make zImage 過程

vmlinux、 Image, zImage、 uImage 的區別 前面幾小節重點是講 vmlinux 是如何編譯出來的, vmlinux 是 ELF 格式的文件,但是在實際中我們不會使用 vmlinux,而是使用 zImage

原创 模電學習筆記二 2-3章

更正 習題

原创 LCD 時間參數與crt顯示器聯繫

如果將 LCD 顯示一幀圖像的過程想象成繪畫,那麼在顯示的過程中就是用一根“筆”在不同的像素點畫上不同的顏色。這根筆按照從左至右、從上到下的順序掃描每個像素點,並且在像素畫上對應的顏色,當畫到最後一個像素點的時候一幅圖像就繪製好了

原创 uboot源碼分析八 uboot啓動流程五 relocate_code 函數

relocate_code 函數 relocate_code 函數是用於代碼拷貝的 此函數定義在文件 arch/arm/lib/relocate.S 中 /* * relocate - common relocation fu

原创 imx6ull bootcmd 和 bootargs 環境變量

uboot 中有兩個非常重要的環境變量 bootcmd 和 bootargs,接下來看一下這兩個環境變量。bootcmd 和 bootagrs 是採用類似 shell 腳本語言編寫的,裏面有很多的變量引用,這些變量其實都 是 環

原创 linux 頂層makefile源碼剖析三 make 過程

125 PHONY := _all 126 _all: ...... 192 PHONY += all 193 ifeq ($(KBUILD_EXTMOD),) 194 _all: all 195 else 196 _all: m

原创 uboot源碼分析十二 uboot使用bootz啓動linux流程二

bootm_os_get_boot_func 函數 do_bootm_states 會調用 bootm_os_get_boot_func 來查找對應系統的啓動函數,此函數定義在文件 common/bootm_os.c 中 493