Home
last modified time | relevance | path

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

/system/core/fastboot/
Dbootimg_utils.cpp51 const std::vector<char>& ramdisk, const boot_img_hdr_v2& src, in mkbootimg_v3() argument
56 int64_t ramdisk_actual = (ramdisk.size() + page_mask) & (~page_mask); in mkbootimg_v3()
65 hdr->ramdisk_size = ramdisk.size(); in mkbootimg_v3()
71 memcpy(hdr->magic + V3_PAGE_SIZE + kernel_actual, ramdisk.data(), ramdisk.size()); in mkbootimg_v3()
76 boot_img_hdr_v2* mkbootimg(const std::vector<char>& kernel, const std::vector<char>& ramdisk, in mkbootimg() argument
83 return reinterpret_cast<boot_img_hdr_v2*>(mkbootimg_v3(kernel, ramdisk, src, out)); in mkbootimg()
89 int64_t ramdisk_actual = (ramdisk.size() + page_mask) & (~page_mask); in mkbootimg()
103 hdr->ramdisk_size = ramdisk.size(); in mkbootimg()
120 memcpy(hdr->magic + hdr->page_size + kernel_actual, ramdisk.data(), ramdisk.size()); in mkbootimg()
Dbootimg_utils.h38 boot_img_hdr_v2* mkbootimg(const std::vector<char>& kernel, const std::vector<char>& ramdisk,
Dfastboot.cpp470 static std::vector<char> LoadBootableImage(const std::string& kernel, const std::string& ramdisk, in LoadBootableImage() argument
486 if (!ramdisk.empty()) die("cannot boot a boot.img *and* ramdisk"); in LoadBootableImage()
492 if (!ramdisk.empty()) { in LoadBootableImage()
493 if (!ReadFileToVector(ramdisk, &ramdisk_data)) { in LoadBootableImage()
494 die("cannot load '%s': %s", ramdisk.c_str(), strerror(errno)); in LoadBootableImage()
2032 std::string ramdisk; in Main() local
2033 if (!args.empty()) ramdisk = next_arg(&args); in Main()
2036 auto data = LoadBootableImage(kernel, ramdisk, second_stage); in Main()
2067 std::string ramdisk; in Main() local
2068 if (!args.empty()) ramdisk = next_arg(&args); in Main()
[all …]
DREADME.md124 by "boot", "ramdisk", "flash", etc. The client
/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/tools/mkbootimg/
Dmkbootimg.py59 num_ramdisk_pages = get_number_of_pages(filesize(args.ramdisk), args.pagesize)
74 filesize(args.ramdisk), # ramdisk size in bytes
117 final_ramdisk_offset = (args.base + args.ramdisk_offset) if filesize(args.ramdisk) > 0 else 0
123 filesize(args.ramdisk), # size in bytes
136 update_sha(sha, args.ramdisk)
275 write_padded_file(args.output, args.ramdisk, pagesize)
/system/core/rootdir/
Dadb_debug.prop2 # other system properties, if a special ramdisk with "/force_debuggable"
/system/core/fs_mgr/libsnapshot/
DAndroid.bp342 ramdisk: true,
/system/core/init/
DREADME.md944 the system.img mount to / for devices with a ramdisk.
948 require using a ramdisk to boot Android. The recovery ramdisk can be used to boot to Android instead
949 of a dedicated ramdisk as well.
956 2) For devices with a ramdisk, first stage init is a static executable located at /init. These
958 /system to /. The contents of the ramdisk are freed after mounting has completed.
960 3) For devices that use recovery as a ramdisk, first stage init it contained within the shared init
961 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.