Ubuntu 编译内核-"mkimage" command not found - U-Boot images will not be built

牛刀小试 编译 linux-2.6.22.6 内核


解压内核
tar xjf linux-2.6.22.6.tar.bz2 


打补丁
patch -p1 < ../linux-2.6.22.6_jz2440.patch


编译
cp config_ok .config
make uImage


WARNING: arch/arm/mach-s3c2410/built-in.o(.text+0x84): Section mismatch: reference to .init.data: (between 's3c2410_dma_add' and 's3c2410_pm_resume')
WARNING: arch/arm/mach-s3c2412/built-in.o(.text+0x7d8): Section mismatch: reference to .init.data: (between 's3c2412_dma_add' and 's3c2412_pm_prepare')
WARNING: arch/arm/mach-s3c2440/built-in.o(.text+0x4d4): Section mismatch: reference to .init.data: (after 's3c2440_dma_add')
WARNING: arch/arm/mach-s3c2443/built-in.o(.text+0x6ac): Section mismatch: reference to .init.text:s3c2443_add_sub (between 's3c2443_irq_add' and 's3c2443_clkcon_enable_h')
WARNING: arch/arm/mach-s3c2443/built-in.o(.text+0x6c8): Section mismatch: reference to .init.text:s3c2443_add_sub (between 's3c2443_irq_add' and 's3c2443_clkcon_enable_h')
WARNING: arch/arm/mach-s3c2443/built-in.o(.text+0x6e4): Section mismatch: reference to .init.text:s3c2443_add_sub (between 's3c2443_irq_add' and 's3c2443_clkcon_enable_h')
WARNING: arch/arm/mach-s3c2443/built-in.o(.text+0x700): Section mismatch: reference to .init.text:s3c2443_add_sub (between 's3c2443_irq_add' and 's3c2443_clkcon_enable_h')
WARNING: arch/arm/mach-s3c2443/built-in.o(.text+0x71c): Section mismatch: reference to .init.text:s3c2443_add_sub (between 's3c2443_irq_add' and 's3c2443_clkcon_enable_h')
WARNING: arch/arm/mach-s3c2443/built-in.o(.text+0xf0c): Section mismatch: reference to .init.data: (after 's3c2443_dma_add')
WARNING: arch/arm/plat-s3c24xx/built-in.o(.text+0x1f3c): Section mismatch: reference to .init.text:s3c24xx_dma_init (between 's3c2410_dma_init' and 's3c2410_dma_ctrl')
WARNING: arch/arm/plat-s3c24xx/built-in.o(.data+0x23ec): Section mismatch: reference to .init.text:s3c2410_timer_init (between 's3c24xx_timer' and 'clk_upll')
WARNING: sound/built-in.o(.text+0x18350): Section mismatch: reference to .init.text:audio_init_dma (between 's3c2410iis_probe' and 'audio_dmain_done_callback')
WARNING: sound/built-in.o(.text+0x18374): Section mismatch: reference to .init.text:audio_init_dma (between 's3c2410iis_probe' and 'audio_dmain_done_callback')
  OBJCOPY arch/arm/boot/Image
  Kernel: arch/arm/boot/Image is ready
  AS      arch/arm/boot/compressed/head.o
  GZIP    arch/arm/boot/compressed/piggy.gz
  AS      arch/arm/boot/compressed/piggy.o
  CC      arch/arm/boot/compressed/misc.o
In file included from arch/arm/boot/compressed/misc.c:30:
include/asm/arch/uncompress.h:61: warning: conflicting types for built-in function 'putc'
  LD      arch/arm/boot/compressed/vmlinux
  OBJCOPY arch/arm/boot/zImage
  Kernel: arch/arm/boot/zImage is ready
  UIMAGE  arch/arm/boot/uImage
"mkimage" command not found - U-Boot images will not be built
  Image arch/arm/boot/uImage is ready

这里 只解决了"mkimage" command not found - U-Boot images will not be built

上面的 没解决,-.-  功力不足呀~!

解决方法:

apt-get install uboot-mkimage

make uImage ARCH=arm CROSS_COMPILE=arm-linux- 

只是去掉了 后面的警告, 上面的警告依旧还在

你可能感兴趣的:(Ubuntu 编译内核-"mkimage" command not found - U-Boot images will not be built)