Lines Matching refs:ramdisk
443 " --ramdisk-offset Set ramdisk offset (default: 0x01000000).\n"
489 static std::vector<char> LoadBootableImage(const std::string& kernel, const std::string& ramdisk,
505 if (!ramdisk.empty()) die("cannot boot a boot.img *and* ramdisk");
511 if (!ramdisk.empty()) {
512 if (!ReadFileToVector(ramdisk, &ramdisk_data)) {
513 die("cannot load '%s': %s", ramdisk.c_str(), strerror(errno));
1323 // repack vendor_boot image with an updated ramdisk. After execution, buf is set
1334 die("Flashing sparse vendor ramdisk image is not supported.");
1340 std::string ramdisk(pname_sv.substr(pname_sv.find(':') + 1));
1344 auto repack_res = replace_vendor_ramdisk(vendor_boot, vendor_boot_size, ramdisk, buf->fd,
1925 {"ramdisk-offset", required_argument, 0, 0},
1973 } else if (name == "ramdisk-offset") {
2159 std::string ramdisk;
2160 if (!args.empty()) ramdisk = next_arg(&args);
2163 auto data = LoadBootableImage(kernel, ramdisk, second_stage);
2194 std::string ramdisk;
2195 if (!args.empty()) ramdisk = next_arg(&args);
2199 auto data = LoadBootableImage(kernel, ramdisk, second_stage);