Skip to content
Snippets Groups Projects

android: support boot header version 3 and 4

Closed Safae Ouajih requested to merge souajih/v4_ti into integ/ti-u-boot-2021.01
1 unresolved thread
5 files
+ 79
19
Compare changes
  • Side-by-side
  • Inline
Files
5
  • Enable the support for boot image header version 3 and 4
    using abootimg command.
    
    In order to use version 3 or 4:
    
    1- Vendor boot image address should be given to abootimg cmd.
    
    	abootimg addr $1 $vendor_boot_load_addr
    
    2- "ramdisk_addr_r" env variable (ramdisk address) should be set to host
    the ramdisk : generic ramdisk + vendor ramdisk
    
    Replace "struct andr_boot_img_hdr_v0*" by "void *" in
    some functions since v3 and v4 are now supported as well.
    
    Signed-off-by: default avatarSafae Ouajih <souajih@baylibre.com>
+ 10
0
@@ -17,6 +17,16 @@
static ulong _abootimg_addr = -1;
static ulong _avendor_bootimg_addr = -1;
ulong get_abootimg_addr(void)
{
return (_abootimg_addr == -1 ? image_load_addr : _abootimg_addr);
}
ulong get_avendor_bootimg_addr(void)
{
return _avendor_bootimg_addr;
}
static int abootimg_get_ver(int argc, char *const argv[])
{
const struct andr_boot_img_hdr_v0 *hdr;
Loading