neo-technologies / rockchip-mkbootimg

Tools to create firmware / boot images for Rockchip devices
72 stars 64 forks source link

unmkbootimg: fix alignment of second bootloader #4

Closed johnkeeping closed 8 years ago

johnkeeping commented 8 years ago

The kernel and ramdisk are aligned separately so adding their sizes together and aligning the result will be incorrect if each is less than half a page past a boundary. While doing this introduce a helper function and use bitwise operations to more clearly match the calculation in mkbootimg.c.