GithubHelp home page GithubHelp logo

mz-pdm / cvd2img Goto Github PK

View Code? Open in Web Editor NEW

This project forked from slp/cvd2img

0.0 0.0 0.0 26 KB

A tool to transform Android Cuttlefish images into QEMU disk images

License: GNU General Public License v3.0

Rust 100.00%

cvd2img's Introduction

cvd2img

A tool to transform Android Cuttlefish images into raw disk images that can be used with QEMU (and other VMMs).

Building

Dependencies

  • parted headers and libraries (libparted-dev in Debian, parted-devel in Fedora)
  • clang headers and libraries (libclang-dev in Debian, clang-devel in Fedora)
  • The Rust Toolchain

Generating the executable

With all dependencies in place, it should be as simple as running cargo build. The resulting binary will be in ./target/debug/cvd2img.

Using

Preparing the Cuttlefish Directory

  1. Download a cuttlefish image from http://ci.android.com/. If you don't exactly what to download, read this guide.

  2. Create a directory and unpack for the cuttlefish images and the CVD tools.

mkdir cuttlefish
cd cuttlefish
unzip ~/Downloads/aosp_cf_x86_64_phone-img*.zip
tar xf ~/Downloads/cvd-host_package.tar.gz

Generating the raw disk images

Go back to the cvd2img build directory and execute it pointing to the directory containing the cuttlefish images expanded above:

./target/debug/cvd2img ~/cuttlefish

More options

./target/debug/cvd2img --help
Usage: cvd2img [OPTIONS] <CVD_DIR>

Arguments:
  <CVD_DIR>  Directory containing the Android Cuttlefish images

Options:
  -a, --arch <ARCH>    Architecture of the source images [possible values: x86-64, aarch64]
  -s, --system <FILE>  Output file for the system disk image
  -p, --props <FILE>   Output file for the properties disk image
  -h, --help           Print help
  -V, --version        Print version

cvd2img's People

Contributors

slp avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.