| /system/tools/mkbootimg/ |
| D | repack_bootimg.py | 19 Unpacks the boot image and the ramdisk inside, then add files into 20 the ramdisk to repack the boot image. 71 """Enum class for different ramdisk compression formats.""" 85 """A class that supports packing/unpacking a ramdisk.""" 99 """Unpacks the ramdisk.""" 131 print(f"=== Unpacked ramdisk: '{self._ramdisk_img}' at " 134 raise RuntimeError('Failed to decompress ramdisk.') 137 """Repacks a ramdisk from self._ramdisk_dir. 140 out_ramdisk_file: the output ramdisk file to save. 146 print('Repacking ramdisk, which might take a few seconds ...') [all …]
|
| D | mkbootimg.py | 100 num_ramdisk_pages = get_number_of_pages(filesize(args.ramdisk), 123 # ramdisk size in bytes 124 args.output.write(pack('I', filesize(args.ramdisk))) 159 # ramdisk physical load address 161 # ramdisk size in bytes 181 # vendor ramdisk table size in bytes 183 # number of vendor ramdisk table entries 185 # vendor ramdisk table entry size in bytes 200 if filesize(args.ramdisk) > 0 else 0) 209 # ramdisk size in bytes [all …]
|
| D | unpack_bootimg.py | 19 Extracts the kernel, ramdisk, second bootloader, dtb and recovery dtbo images. 92 lines.append(f'ramdisk size: {self.ramdisk_size}') 94 f'ramdisk load address: {self.ramdisk_load_address:#010x}') 104 lines.append(f'ramdisk size: {self.ramdisk_size}') 143 args.extend(['--ramdisk', os.path.join(self.image_dir, 'ramdisk')]) 160 # to the kernel load address, 'ramdisk_offset' to the ramdisk load 185 """extracts kernel, ramdisk, second bootloader and recovery dtbo""" 256 image_info_list.append((ramdisk_offset, info.ramdisk_size, 'ramdisk')) 261 ) # header + kernel + ramdisk 280 # There are only kernel and ramdisk pages before the signature. [all …]
|
| /system/tools/mkbootimg/tests/ |
| D | mkbootimg_test.py | 93 ramdisk = generate_test_file(os.path.join(temp_out_dir, 'ramdisk'), 99 '--ramdisk', ramdisk, 178 ramdisk = generate_test_file(os.path.join(temp_out_dir, 'ramdisk'), 184 '--ramdisk', ramdisk, 213 ramdisk = generate_test_file(os.path.join(temp_out_dir, 'ramdisk'), 220 '--ramdisk', ramdisk, 276 'vendor ramdisk total size: 16384', 279 'vendor ramdisk table size: 324', 380 ramdisk = generate_test_file(os.path.join(temp_out_dir, 'ramdisk'), 386 '--vendor_ramdisk', ramdisk, [all …]
|
| /system/tools/mkbootimg/include/bootimg/ |
| D | bootimg.h | 60 * | ramdisk | m pages 70 * 1. kernel and ramdisk are required (size != 0) 72 * 3. load each element (kernel, ramdisk, second) at 143 * | ramdisk | m pages 156 * 1. kernel and ramdisk are required (size != 0) 160 * 4. load each element (kernel, ramdisk, second) at 183 * | ramdisk | m pages 199 * 1. kernel, ramdisk and DTB are required (size != 0) 203 * 4. load each element (kernel, ramdisk, second, dtb) at 226 * | ramdisk | n pages [all …]
|
| /system/core/rootdir/avb/ |
| D | Android.bp | 23 "ramdisk", 33 ramdisk: false, 36 ramdisk: true, 48 ramdisk: false, 51 ramdisk: true, 63 ramdisk: false, 66 ramdisk: true,
|
| /system/core/fastboot/ |
| D | bootimg_utils.cpp | 51 const std::vector<char>& ramdisk, const boot_img_hdr_v2& src, in mkbootimg_v3_and_above() argument 56 int64_t ramdisk_actual = (ramdisk.size() + page_mask) & (~page_mask); in mkbootimg_v3_and_above() 65 hdr->ramdisk_size = ramdisk.size(); in mkbootimg_v3_and_above() 76 memcpy(hdr->magic + V3_PAGE_SIZE + kernel_actual, ramdisk.data(), ramdisk.size()); in mkbootimg_v3_and_above() 79 void mkbootimg(const std::vector<char>& kernel, const std::vector<char>& ramdisk, in mkbootimg() argument 87 mkbootimg_v3_and_above(kernel, ramdisk, src, out); in mkbootimg() 94 int64_t ramdisk_actual = (ramdisk.size() + page_mask) & (~page_mask); in mkbootimg() 108 hdr->ramdisk_size = ramdisk.size(); in mkbootimg() 125 memcpy(hdr->magic + hdr->page_size + kernel_actual, ramdisk.data(), ramdisk.size()); in mkbootimg()
|
| D | vendor_boot_img_utils.h | 26 // Replace the vendor ramdisk named |ramdisk_name| within the vendor boot image, 27 // specified by |vendor_boot_fd|, with the ramdisk specified by |new_ramdisk_fd|. Checks 29 // If |ramdisk_name| is "default", replace the vendor ramdisk as a whole. Otherwise, replace 30 // a vendor ramdisk fragment with the given unique name.
|
| D | vendor_boot_img_utils.cpp | 210 // Replace the vendor ramdisk as a whole. 229 // Because it is unknown how the new ramdisk is fragmented, the whole table is replaced in replace_default_vendor_ramdisk() 230 // with a single entry representing the full ramdisk. in replace_default_vendor_ramdisk() 239 // Copy the new ramdisk. in replace_default_vendor_ramdisk() 274 // Replace table with single entry representing the full ramdisk. in replace_default_vendor_ramdisk() 289 // Find a ramdisk fragment with a unique name. Abort if none or multiple fragments are found. 302 return Errorf("Multiple vendor ramdisk '{}' found, name should be unique", in find_unique_ramdisk() 309 return Errorf("Vendor ramdisk '{}' not found", ramdisk_name.c_str()); in find_unique_ramdisk() 314 // Find the vendor ramdisk fragment with |ramdisk_name| within the content of |vendor_boot|, and 338 return Errorf("Too many vendor ramdisk entries in table, overflow"); in replace_vendor_ramdisk_fragment() [all …]
|
| D | fastboot.cpp | 555 " flash vendor_boot:RAMDISK [FILENAME]\n" in show_help() 556 " Flash vendor_boot ramdisk, fetching the existing\n" in show_help() 558 " ramdisk.\n" in show_help() 559 " --dtb DTB If set with flash vendor_boot:RAMDISK, then\n" in show_help() 600 " boot KERNEL [RAMDISK [SECOND]]\n" in show_help() 602 " flash:raw PARTITION KERNEL [RAMDISK [SECOND]]\n" in show_help() 608 " --ramdisk-offset Set ramdisk offset (default: 0x01000000).\n" in show_help() 657 static std::vector<char> LoadBootableImage(const std::string& kernel, const std::string& ramdisk, in LoadBootableImage() argument 673 if (!ramdisk.empty()) die("cannot boot a boot.img *and* ramdisk"); in LoadBootableImage() 679 if (!ramdisk.empty()) { in LoadBootableImage() [all …]
|
| D | bootimg_utils.h | 38 void mkbootimg(const std::vector<char>& kernel, const std::vector<char>& ramdisk,
|
| /system/update_engine/payload_generator/ |
| D | boot_img_filesystem_unittest.cc | 36 const brillo::Blob& ramdisk, in GetBootImg() argument 46 hdr_v3.ramdisk_size = ramdisk.size(); in GetBootImg() 54 hdr_v0.ramdisk_size = ramdisk.size(); in GetBootImg() 62 memcpy(boot_img.data() + offset, ramdisk.data(), ramdisk.size()); in GetBootImg() 87 EXPECT_EQ("<ramdisk>", files[1].name); in TEST_F() 112 EXPECT_EQ("<ramdisk>", files[1].name); in TEST_F() 129 // echo ramdisk | gzip | hexdump -v -e '/1 "0x%02x, "' in TEST_F() 130 const brillo::Blob ramdisk = {0x1f, 0x8b, 0x08, 0x00, 0x3a, 0x83, 0x35, in TEST_F() local 135 GetBootImg(brillo::Blob(5678, 'k'), ramdisk)); in TEST_F() 150 EXPECT_EQ("<ramdisk>", files[1].name); in TEST_F()
|
| D | boot_img_filesystem.h | 40 // ramdisk.
|
| /system/core/toolbox/ |
| D | Android.bp | 88 // This one is installed in the generic ramdisk, and can be executed during 94 ramdisk: true,
|
| /system/core/fs_mgr/ |
| D | fs_mgr_roots.cpp | 84 if (rec->fs_type == "ramdisk") { in TryPathMount() 85 // The ramdisk is always mounted. in TryPathMount() 163 if (rec->fs_type == "ramdisk") { in EnsurePathUnmounted() 164 // The ramdisk is always mounted; you can't unmount it. in EnsurePathUnmounted()
|
| /system/core/fastboot/testdata/ |
| D | Android.bp | 59 // Fake vendor ramdisk with type "none". 67 // Fake vendor ramdisk with type "platform". 75 // Fake replacement ramdisk.
|
| /system/libvintf/include/vintf/ |
| D | VintfObjectRecovery.h | 28 * A special variant of VintfObject for the recovery ramdisk. 30 * In recovery ramdisk, there is no Treble split. All VINTF data is stored in /system/etc/vintf.
|
| /system/core/fs_mgr/liblp/fuzzer/ |
| D | Android.bp | 92 // Fake vendor ramdisk with type "none". 100 // Fake vendor ramdisk with type "platform". 108 // Fake replacement ramdisk.
|
| /system/core/init/ |
| D | first_stage_init.cpp | 106 // Do not free snapuserd if we will need the ramdisk copy during the in FreeRamdisk() 148 // prefer the generic ramdisk copy of snapuserd, because that's on system side of treble in PrepareSwitchRoot() 150 // The vendor ramdisk copy might be under vendor freeze, or vendor might choose not to update in PrepareSwitchRoot() 153 LOG(INFO) << "Using generic ramdisk copy of snapuserd " << snapuserd_ramdisk; in PrepareSwitchRoot() 156 LOG(INFO) << "Using vendor ramdisk copy of snapuserd " << snapuserd; in PrepareSwitchRoot() 399 // /debug_ramdisk is used to preserve additional files from the debug ramdisk in FirstStageMain() 430 PLOG(ERROR) << "Could not opendir(\"/\"), not freeing ramdisk"; in FirstStageMain() 435 PLOG(ERROR) << "Could not stat(\"/\"), not freeing ramdisk"; in FirstStageMain() 491 LOG(INFO) << "Copied ramdisk prop to " << dest; in FirstStageMain() 546 PLOG(ERROR) << "Could not stat(\"/\"), not freeing ramdisk"; in FirstStageMain()
|
| D | snapuserd_transition.h | 70 // Save an open fd to /system/bin (in the ramdisk) into an environment. This is 83 // Save an open fd to /system/bin (in the ramdisk) into an environment. This is
|
| D | second_stage_resources.h | 25 constexpr const char kBootImageRamdiskProp[] = "/system/etc/ramdisk/build.prop";
|
| D | selinux.h | 25 // Restore the proper security context to files and directories on ramdisk, and
|
| /system/core/fs_mgr/libsnapshot/snapuserd/ |
| D | Android.bp | 175 // This way, init can check if generic ramdisk copy exists. 182 // This target is specifically for generic ramdisk, therefore we set 186 ramdisk: true,
|
| /system/core/rootdir/ |
| D | adb_debug.prop | 2 # other system properties, if a special ramdisk with "/force_debuggable"
|
| /system/cros-codecs/ci/ |
| D | template.yaml | 31 ramdisk:
|