[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [PATCH V3 4/6] Add SD-card image build support for hd-media builds on armhf



On Thu, Jan 01, 2015 at 03:58:44PM +0100, Karsten Merker wrote:
> ---
>  build/boot/README.concatenateable_images | 30 ++++++++++++++++++++++
>  build/config/armhf/hd-media.cfg          | 44 +++++++++++++++++++++++++++++++-
>  debian/changelog                         |  1 +
>  3 files changed, 74 insertions(+), 1 deletion(-)
>  create mode 100644 build/boot/README.concatenateable_images
> 
> diff --git a/build/boot/README.concatenateable_images b/build/boot/README.concatenateable_images
> new file mode 100644
> index 0000000..326054a
> --- /dev/null
> +++ b/build/boot/README.concatenateable_images
> @@ -0,0 +1,30 @@
> +This directory provides installer images in the form of a device-specific
> +part (containing the partition table and the system firmware) and a
> +device-independent part (containing the actual installer), which can be
> +unpacked and concatenated together to build a complete installer image.
> +
> +The device-specific part is named firmware.<board_name>.img(.gz|.bz2|.xz)
> +and the device-independent part is named partition.img(.gz|.bz2|.xz).
> +
> +To create a complete image from the two parts on Linux systems, you can
> +use zcat (for .gz images), bzcat (for .bz2 images) or xzcat (for .xz
> +images) as follows:
> +
> +  zcat firmware.<board_name>.img.gz partition.img.gz > complete_image.img
> +
> +respectively
> +
> +  bzcat firmware.<board_name>.img.bz2 partition.img.bz2 > complete_image.img
> +
> +respectively
> +
> +  xzcat firmware.<board_name>.img.xz partition.img.xz > complete_image.img
> +
> +
> +On Windows systems, you have to first decompress the two parts separately,
> +which can be done e.g. by using 7-Zip, and then concatenate the decompressed
> +parts together by running the command
> +
> +  copy firmware.<board_name>.img + partition.img complete_image.img
> +
> +in a Windows CMD.exe window.

copy on windows assumes ascii mode when combining files, while it assumes
binary mode when not combining files, so you should always use copy /b
when doing file combining.

-- 
Len Sorensen


Reply to: