2009年12月22日 星期二

Kernel Images: from building to booting

I made those picture about 3 years ago, but it looks like the same, and quiet useful!!!



Same picture, just in another layout.


bootpImage Layout



(The KERNEL_PHYS, and the 2nd step in diagram are not in vanila kernel.)

arch/arm/boot/Makefile

ZRELADDR := $(zreladdr-y)
PARAMS_PHYS := $(params_phys-y)
INITRD_PHYS := $(initrd_phys-y)
KERNEL_PHYS := $(kernel_phys-y)

arch/arm/mach-ARCH/Makefile.boot
zreladdr-y := 0x00008000
params_phys-y := 0x00000100
initrd_phys-y := 0x00C00000
kernel_phys-y := 0x00600000

arch/arm/Makefile
textofs-y := 0x00008000
(...........)
TEXT_OFFSET := $(textofs-y)


Re: About TEXTADDR, ZTEXTADDR, PAGE_OFFSET etc...
http://lists.arm.linux.org.uk/lurker/message/20010723.185051.94ce743c.en.html

defining ZRELADDR as PHYS_OFFSET + TEXT_OFFSET
http://lists.arm.linux.org.uk/lurker/message/20100127.101228.78a1533e.en.html




沒有留言: