Install Linux Kernel - 通用标准

一、通用标准

 

 

1.1 修改Makefile

(1)   arch

    ARCH            ?=arm

(2)   corss_compile
CROSS_COMPILE ?= /home/at91/x-tools/arm-softfp-linux-gnueabi/bin/arm-softfp-linux-gnueabi-

 

 

1.2 安装mkimage

$sudo apt-getinstall uboot-mkimage

 

1.3 执行make

$make clean

$make <Soc_defconfig>             #at91sam9260ek_defconfig for instance

$make menuconfig*

$make uImage

 

 

  * 更改默认硬件驱动时,执行此步。

 

 

 

 

 

 

 

 

 

 

 

关于zImage和uImage

 

 

zImage:

  执行:Go命令(U-boot)

  缺点:需要手动设置相关参数,才能加载

 

uImage:

  执行:Bootm命令(U-boot)

  优点:自动加载

 

你可能感兴趣的:(Install Linux Kernel - 通用标准)