Home
last modified time | relevance | path

Searched refs:ramdisk (Results 1 – 12 of 12) sorted by relevance

/system/core/fastboot/
Dbootimg_utils.cpp51 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()
Dbootimg_utils.h38 void mkbootimg(const std::vector<char>& kernel, const std::vector<char>& ramdisk,
Dfastboot.cpp489 static std::vector<char> LoadBootableImage(const std::string& kernel, const std::string& ramdisk, in LoadBootableImage() argument
505 if (!ramdisk.empty()) die("cannot boot a boot.img *and* ramdisk"); in LoadBootableImage()
511 if (!ramdisk.empty()) { in LoadBootableImage()
512 if (!ReadFileToVector(ramdisk, &ramdisk_data)) { in LoadBootableImage()
513 die("cannot load '%s': %s", ramdisk.c_str(), strerror(errno)); in LoadBootableImage()
1340 std::string ramdisk(pname_sv.substr(pname_sv.find(':') + 1)); in repack_ramdisk() local
1344 auto repack_res = replace_vendor_ramdisk(vendor_boot, vendor_boot_size, ramdisk, buf->fd, in repack_ramdisk()
2159 std::string ramdisk; in Main() local
2160 if (!args.empty()) ramdisk = next_arg(&args); in Main()
2163 auto data = LoadBootableImage(kernel, ramdisk, second_stage); in Main()
[all …]
DREADME.md124 by "boot", "ramdisk", "flash", etc. The client
/system/tools/mkbootimg/tests/
Dmkbootimg_test.py95 ramdisk = generate_test_file(os.path.join(temp_out_dir, 'ramdisk'),
101 '--ramdisk', ramdisk,
179 ramdisk = generate_test_file(os.path.join(temp_out_dir, 'ramdisk'),
185 '--ramdisk', ramdisk,
214 ramdisk = generate_test_file(os.path.join(temp_out_dir, 'ramdisk'),
223 '--ramdisk', ramdisk,
384 ramdisk = generate_test_file(os.path.join(temp_out_dir, 'ramdisk'),
390 '--vendor_ramdisk', ramdisk,
429 ramdisk = generate_test_file(os.path.join(temp_out_dir, 'ramdisk'),
435 '--ramdisk', ramdisk,
[all …]
/system/update_engine/payload_generator/
Dboot_img_filesystem_unittest.cc36 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()
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()
/system/core/fastboot/testdata/
DAndroid.bp51 // Fake vendor ramdisk with type "none".
59 // Fake vendor ramdisk with type "platform".
67 // Fake replacement ramdisk.
/system/core/rootdir/
Dadb_debug.prop2 # other system properties, if a special ramdisk with "/force_debuggable"
/system/tools/mkbootimg/
Drepack_bootimg.py199 ramdisk = os.path.join(self._bootimg_dir, 'ramdisk')
202 if os.path.exists(ramdisk):
203 self._ramdisk = RamdiskImage(ramdisk)
Dmkbootimg.py99 num_ramdisk_pages = get_number_of_pages(filesize(args.ramdisk),
117 args.output.write(pack('I', filesize(args.ramdisk)))
193 if filesize(args.ramdisk) > 0 else 0)
203 args.output.write(pack('I', filesize(args.ramdisk)))
224 update_sha(sha, args.ramdisk)
626 write_padded_file(args.output, args.ramdisk, pagesize)
/system/core/init/
DREADME.md957 the system.img mount to / for devices with a ramdisk.
961 require using a ramdisk to boot Android. The recovery ramdisk can be used to boot to Android instead
962 of a dedicated ramdisk as well.
969 2) For devices with a ramdisk, first stage init is a static executable located at /init. These
971 /system to /. The contents of the ramdisk are freed after mounting has completed.
973 3) For devices that use recovery as a ramdisk, first stage init it contained within the shared init
974 located at /init within the recovery ramdisk. These devices first switch root to
/system/core/fs_mgr/
DREADME.overlayfs.md123 - First stage init, or ramdisk, can not be overriden.