Giter Site home page Giter Site logo

bmaptool-docs's Introduction

How to Use Bmap Tool to speed image creation

Introduction

Bmaptool is a samsung provided way to more efficiently burn images to cards by omitting the necessity of copying empty blocks to flash media. It can speed up flashing by an order of magnitude. It does have its peculiatiaries though.

Pre Process

Images need to be scanned in uncompressed format first, in order to create a 'bmap' xml file which is used in the image burning process. The scanning process looks for 'holes' in the filesystem and notes this in the XML file. Once this is done, the image can be compressed and burned from a compressed image.

The command to create a bitmap is as follows (on a RAW image only!!!)

bmaptool create -o <image.bmap> <imagetoscan.raw>

Post Process

The post process is quite simple and keep in mind that images can burned from 'compressed' masters, greatly saving time and space (since the system doesn't have to read all the sectors from the disk).

Assuming you have performed the above process, to burn an image to a raw device of /dev/sdb type in the following:

sudo bmaptool copy --bmap <image.bmap> <imagetoburn.img.xz> /dev/sdb

The system will copy the image to disk in about 1/10th the time of dd (depending on how much of the image is sparse). It also checksums the process so any failures will be reported prior to boot on the system.

Time to copy a 6GB image to a samsung uhs-1 sd card 16gb was about 5 minutes. Normal time with dd is about 10-20 minutes. Plus I don't have to uncompress the original with bmaptool.

bmaptool-docs's People

Contributors

symgryph avatar

Stargazers

 avatar  avatar

Watchers

 avatar  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.