Searched refs:boot_img (Results 1 – 6 of 6) sorted by relevance
/system/tools/mkbootimg/ |
D | unpack_bootimg.py | 184 def unpack_boot_image(boot_img, output_dir): argument 187 info.boot_magic = unpack('8s', boot_img.read(8))[0].decode() 189 kernel_ramdisk_second_info = unpack('9I', boot_img.read(9 * 4)) 202 os_version_patch_level = unpack('I', boot_img.read(1 * 4))[0] 215 boot_img.read(16))[0].decode()) 216 info.cmdline = cstr(unpack('512s', boot_img.read(512))[0].decode()) 217 boot_img.read(32) # ignore SHA 219 boot_img.read(1024))[0].decode()) 222 boot_img.read(1536))[0].decode()) 225 info.recovery_dtbo_size = unpack('I', boot_img.read(1 * 4))[0] [all …]
|
/system/tools/mkbootimg/gki/ |
D | certify_bootimg_test.py | 46 def generate_test_boot_image(boot_img, kernel_size=4096, seed='kernel', argument 60 '--output', boot_img, 65 avbtool_cmd = ['avbtool', 'add_hash_footer', '--image', boot_img, 95 boot_img = os.path.join(temp_out_dir, name) 96 generate_test_boot_image(boot_img=boot_img, 148 def extract_boot_signatures(boot_img, output_dir): argument 157 shutil.copy2(boot_img, boot_img_copy) 200 for boot_img in glob.glob(os.path.join(output_dir, 'boot*.img')): 201 img_name = os.path.splitext(os.path.basename(boot_img))[0] 204 extract_boot_signatures(boot_img, signature_output_dir) [all …]
|
D | certify_bootimg.py | 34 def get_kernel(boot_img): argument 37 unpack_bootimg(boot_img, unpack_dir) 44 def add_certificate(boot_img, algorithm, key, extra_args): argument 64 boot_signature_bytes += generate_certificate(boot_img, 'boot') 67 kernel_img.write(get_kernel(boot_img)) 79 with open(boot_img, 'ab') as f: 83 def erase_certificate_and_avb_footer(boot_img): argument 90 avbtool_cmd = ['avbtool', 'erase_footer', '--image', boot_img] 92 assert os.path.getsize(boot_img) > 0 95 if os.path.getsize(boot_img) <= BOOT_SIGNATURE_SIZE: [all …]
|
D | boot_signature_info.sh | 69 unpack_bootimg --boot_img "${BOOT_IMAGE}" --out "${BOOT_IMAGE_DIR}" \
|
/system/tools/mkbootimg/tests/ |
D | mkbootimg_test.py | 90 boot_img = os.path.join(temp_out_dir, 'boot.img') 107 '--output', boot_img, 116 '--boot_img', boot_img, 175 boot_img = os.path.join(temp_out_dir, 'boot.img') 194 '--output', boot_img, 210 boot_img = os.path.join(temp_out_dir, 'boot.img') 224 '--output', boot_img, 228 '--boot_img', boot_img, 420 boot_img = os.path.join(temp_out_dir, 'boot.img') 433 '--output', boot_img, [all …]
|
/system/update_engine/payload_generator/ |
D | boot_img_filesystem_unittest.cc | 38 brillo::Blob boot_img(16 * 1024); in GetBootImg() local 48 memcpy(boot_img.data() + offset, &hdr_v3, sizeof(hdr_v3)); in GetBootImg() 57 memcpy(boot_img.data() + offset, &hdr_v0, sizeof(hdr_v0)); in GetBootImg() 60 memcpy(boot_img.data() + offset, kernel.data(), kernel.size()); in GetBootImg() 62 memcpy(boot_img.data() + offset, ramdisk.data(), ramdisk.size()); in GetBootImg() 63 return boot_img; in GetBootImg() 120 brillo::Blob boot_img = GetBootImg({}, {}); in TEST_F() local 121 boot_img[7] = '?'; in TEST_F() 122 test_utils::WriteFileVector(boot_file_.path(), boot_img); in TEST_F()
|