crosstool-NG 構建並安裝 arm-unknown-linux-gnueabi 交叉編譯工具鏈。mkimage 工具複製至 /usr/local/bin 目錄(確保在 PATH 中)。linux-3.10.4)。Makefile,設置架構與交叉編譯前綴(切勿在行尾添加註釋):
ARCH ?= arm
CROSS_COMPILE ?= arm-unknown-linux-gnueabi-
make smdk2410_defconfig # 針對 SMDK2410 開發板的默認配置
make uImage # 生成 uImage
mkimage 確實在 /usr/local/bin 且該目錄在 $PATH 中。include 路徑是否正確,必要時 export CROSS_COMPILE=... 後重試。load address 與 entry point 是否與板級配置一致(可在 arch/arm/boot/compressed/head.S 或板級 defconfig 中確認)。若需自定義啟動參數(如 console=ttySAC0 root=/dev/mtdblock2),可在編譯前通過 make menuconfig → Kernel hacking → Default kernel command string 設置,或在 U-Boot 環境變量 bootargs 中傳遞。