storage-total-size-mb option allow user to define
the overall Mender image size, i.e. adjust it to
user's own needs or just to SD card size.
Issues: MEN-2242
Changelog: Title
Signed-off-by: Adam Podogrocki <a.podogrocki@gmail.com>
This speeds up the conversion quite a lot, meaning that it will skip
copying large blocks of 'zero' data back and forth.
Converting a 2018-11-13-raspbian-stretch-lite.img went from 8m10s to
4m45s on my machine.
Changelog: None
Signed-off-by: Mirza Krak <mirza.krak@northern.tech>
The extract helper function does not need to know the type
of the image we are extracting.
Changelog: None
Signed-off-by: Mirza Krak <mirza.krak@northern.tech>
- bump mender-uboot (as patches for rpi0w are present in later revisions)
- reuse as much as possible rpi3 convert files
Signed-off-by: Marek Belisko <marek.belisko@open-nandra.com>
That amendment is dedicated for Mender images built from Yocto images
for qemu x86-64.
Issues: MEN-2207
Changelog: None
Signed-off-by: Adam Podogrocki <a.podogrocki@gmail.com>
Main aim is to handle Yocto generated image for x86-64 architecure.
Such an image contains boot, filesystem and swap partition.
Issues: MEN-2207
Changelog: Title
Signed-off-by: Adam Podogrocki <a.podogrocki@gmail.com>
Instead of passing mutable number of parameters related to
number of partitions for raw disk images, a single array
will be used to keep these values.
Issues: MEN-2207
Changelog: None
Signed-off-by: Adam Podogrocki <a.podogrocki@gmail.com>
This entry is needed by 'partition alignment' test. As a result correct
value for 'uboot_env_size' is set for Raspberry Pi3.
Issues: MEN-2241
Changelog: None
Signed-off-by: Adam Podogrocki <a.podogrocki@gmail.com>
In case of BBB only partition alignment takes part
in offset calculation.
In case of RPI3 besides partition alignment also the
U-Boot environment spaces must be considered.
Issues: MEN-2241
Signed-off-by: Dominik Adamski <adamski.dominik@gmail.com>
Only crucial information is presented to the user as
console output.
More verbose information is stored in the build.log.
Issues: MEN-2172
Changelog: None
Signed-off-by: Adam Podogrocki <a.podogrocki@gmail.com>
Succeeding conversion steps added. Some commands' output silenced.
Still too much output logged from e.g. autotools.
Logging more verbose info to log file still missing.
Issues: MEN-2172
Changelog: None
Signed-off-by: Adam Podogrocki <a.podogrocki@gmail.com>
All output images (image/artifact/rootfs) should follow the scheme
presented above. Unless the user provides own Mender image name.
Moreover the only one acceptable extension for Mender image
is 'sdimg'.
Issues: MEN-2205
Changelog: None
Signed-off-by: Adam Podogrocki <a.podogrocki@gmail.com>
Some tests' related variables can be discovered in specific
convert stages, like installing Mender client or bootloader.
Issues: MEN-2102
Changelog: None
Signed-off-by: Adam Podogrocki <a.podogrocki@gmail.com>
At this step variables related to partitions sizes, alignment, etc.
are updated.
Issues: MEN-2102
Changelog: None
Signed-off-by: Adam Podogrocki <a.podogrocki@gmail.com>
mender-conversion-tool with add-on scripts allow user to:
- shrink an existing embedded Linux image (shorter time of building final .sdimg raw disk image)
- restructure partition table of an existing embedded Linux image to follow Mender layout
- install Mender client related files
- install Grub related files for platforms supporting it
- patch U-Boot for platforms where Grub integration is not feasible (e.g. Raspbian)
- create Mender artifact based on the created .sdimg file
Issues: MEN-1867 / MEN-2037 / MEN-2038 / MEN-2041
Signed-off-by: Adam Podogrocki <a.podogrocki@gmail.com>