Commit 11e79c5
committed
libbootimg: Fix support of Stock Sony ELF boot images
* Unlike all boot images built for CyanogenMod or AOSP based
ROMs over the last years, the elf bootimages from Stock
also include additional metadata in the header section
that is required for the device to power up with its kernel
* Add a 3900 8bits array at the end of the header,
followed by the 16 chars of the added bootimage name,
in order to match the Sony ELF 4096 first block
and therefore save the additional data from Stock images
* Regular Sony ELF images have about 1200-1600 chars there
so filling the 4096 block is more than enough for this,
and moving the bootimage name at the end makes things safer
Change-Id: Ic2b619b6f5e862920dcfefa5b86b016987305d4a
Signed-off-by: AdrianDC <radian.dc@gmail.com>1 parent cc1f4ba commit 11e79c5
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
| 133 | + | |
133 | 134 | | |
134 | 135 | | |
135 | 136 | | |
| |||
0 commit comments