mirror of
https://git.busybox.net/buildroot.git
synced 2024-11-28 07:53:32 +08:00
047a9d9eaa
bmaptool allows to drastically reduce the amount of data to transfer when writing to an SD card. Example with a 544 MiB sdcard.img: $ bmaptool create sdcard.img > sdcard.bmap $ gzip sdcard.img $ bmaptool copy sdcard.img.gz /dev/sdc bmaptool: info: discovered bmap file 'sdcard.bmap' bmaptool: info: block map format version 2.0 bmaptool: info: 139265 blocks of size 4096 (544.0 MiB), mapped 23918 blocks (93.4 MiB or 17.2%) bmaptool: info: copying image 'sdcard.img.gz' to block device '/dev/sdc' using bmap file 'sdcard.bmap' bmaptool: info: 100% copied bmaptool: info: synchronizing '/dev/sdc' bmaptool: info: copying time: 7.7s, copying speed 12.1 MiB/sec So it means that instead of writing 544 MiB, only 93.4 MiB had to be written. In terms of implementation details, compared to the target bmap-tools package, there are fewer "selects" that are needed because: - The dependency on setuptools is not needed, because the package uses the setuptools SETUP_TYPE, so host-python-setuptools is already a build dependency. - host-python and host-python3 are always built with Expat XML support. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr> |
||
---|---|---|
arch | ||
board | ||
boot | ||
configs | ||
docs | ||
fs | ||
linux | ||
package | ||
support | ||
system | ||
toolchain | ||
utils | ||
.defconfig | ||
.flake8 | ||
.gitignore | ||
.gitlab-ci.yml | ||
CHANGES | ||
Config.in | ||
Config.in.legacy | ||
COPYING | ||
DEVELOPERS | ||
Makefile | ||
Makefile.legacy | ||
README |
Buildroot is a simple, efficient and easy-to-use tool to generate embedded Linux systems through cross-compilation. The documentation can be found in docs/manual. You can generate a text document with 'make manual-text' and read output/docs/manual/manual.text. Online documentation can be found at http://buildroot.org/docs.html To build and use the buildroot stuff, do the following: 1) run 'make menuconfig' 2) select the target architecture and the packages you wish to compile 3) run 'make' 4) wait while it compiles 5) find the kernel, bootloader, root filesystem, etc. in output/images You do not need to be root to build or run buildroot. Have fun! Buildroot comes with a basic configuration for a number of boards. Run 'make list-defconfigs' to view the list of provided configurations. Please feed suggestions, bug reports, insults, and bribes back to the buildroot mailing list: buildroot@buildroot.org You can also find us on #buildroot on OFTC IRC. If you would like to contribute patches, please read https://buildroot.org/manual.html#submitting-patches