Project

General

Profile

Zimage » History » Version 1

Oleksandr Rybalko, 12/27/2011 11:34 PM

1 1 Oleksandr Rybalko
h1. _zimage_ image format
2 1 Oleksandr Rybalko
3 1 Oleksandr Rybalko
h2. About
4 1 Oleksandr Rybalko
5 1 Oleksandr Rybalko
For now use only two parts
6 1 Oleksandr Rybalko
# kernel
7 1 Oleksandr Rybalko
# rootfs
8 1 Oleksandr Rybalko
9 1 Oleksandr Rybalko
_zimage_ format do not limiting kernel or rootfs format.
10 1 Oleksandr Rybalko
11 1 Oleksandr Rybalko
It is just two files in one, like @cat file1 file2 > newfile@ do.
12 1 Oleksandr Rybalko
13 1 Oleksandr Rybalko
On preferred thing, to round up kernel size to flash block size.
14 1 Oleksandr Rybalko
15 1 Oleksandr Rybalko
For example, if we have CFI flash with 64K blocks and kernel size
16 1 Oleksandr Rybalko
1234567(0x0012d687) then we need to pad it with zero's to size 
17 1 Oleksandr Rybalko
1245184(0x00130000).
18 1 Oleksandr Rybalko
19 1 Oleksandr Rybalko
Hint: as You can see hexadecimal looks pretty for such situations :)
20 1 Oleksandr Rybalko
21 1 Oleksandr Rybalko
h2. So _zimage_ is:
22 1 Oleksandr Rybalko
23 1 Oleksandr Rybalko
|kernel|
24 1 Oleksandr Rybalko
|zero padding to rounded up by ${FLASH_BLOCK_SIZE} kernel|
25 1 Oleksandr Rybalko
|rootfs|