Reviver's Blog

Sail on this course and take it when it comes.

  博客园 :: 首页 ::  ::  :: 订阅 订阅 :: 管理 ::
  2 随笔 :: 0 文章 :: 0 评论 :: 0 引用

公告

2009年9月21日 #

uImage是u-boot加载的映像格式。普通的vmlinux经过mkimage工具处理后,变成uImage格式,它由一个头部和压缩的vmlinux构成。

bootm只能加载uImage的格式。在新的内核版本里,在有一些架构上已经有uImage的target可以直接生成(mips仍然没有,需要手动制作)

build uImage

(Step 1)
${CROSS_COMPILE}-objcopy -O binary \
-R .note -R .comment \
-S vmlinux linux.bin
(Step 2)
gzip -9 linux.bin
(Step 3)
mkimage -A mips -O linux -T kernel -C gzip -a 0x80100000 -e 0x80100000 -d linux.bin.gz uImage


mkimage要注意-a -e参数,一个是load address,一个是entry。load address为elf指定的起始地址,entry为内核入口函数start_kernel的地址。

posted @ 2009-09-21 22:55 reviver 阅读(1263) 评论(0) 编辑