From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6948713968808493056 X-Received: by 2002:a17:906:48c4:: with SMTP id d4mr13657665ejt.548.1618330071332; Tue, 13 Apr 2021 09:07:51 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a05:6402:50cd:: with SMTP id h13ls4144402edb.3.gmail; Tue, 13 Apr 2021 09:07:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxYYw9uZcumKMDuy2CfgUVzfMj3x1acr55D0xdtsgTZ5+eBUsLg77Xn7QR8S3GlWuR3JYMv X-Received: by 2002:aa7:d88b:: with SMTP id u11mr35929973edq.254.1618330070323; Tue, 13 Apr 2021 09:07:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618330070; cv=none; d=google.com; s=arc-20160816; b=WDHS7EL0MPAFTTvxMc8GseAS/nwnl4JZTgdrt/b8AM/5tXVo5IE1/8gZ+wZGcP87fU 97thgYOBlu84OExkSty8likL5DCZ55TdCffeuEHyxbnAgJAj7HB92X8SplrNy6v+/1hf TIa3GO7CvPEKFaQDRAQJ3219ow4WiQOzx5LXJD7JRkTRoIJOomFtkSfJva84K6O4AC/P rRZvYrwC019s8k53O46RKkvpibuZTrhWzZ3dY539dQT7QIXcmy+YwbGtPTmbiz+zm2bS fF3zbObblAEDTHQc7Ns4qJr6oCkFTSKSqu3WSuc03SEVVhOViPW+wXuVOQLPAccPPgIi ghJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:from:references:to:subject; bh=Tb57J1GwuBaTO4uJFFr4hf6GrG8fRwvdwtouCuS4Sfc=; b=ZIu7OHH52ccLw1Ek8kmYtbZgt497gWQW01zb96EkJz6OfUPm/Bc6aKkb9D8Ns489Ei mAvTpKLGlqdAsA+GHVzJrsRUQRsZXwe9bulwxIiVQDppZwfLPbslv52HRo2P2DkuWytK 0NFbrw8Y/BmuPpOPoNpw1MKLVJox/kvNlE01HoJsUiF/FqVQfSVZAGwbz+cu8Xi87Xyp xKx/XEI1RkF7oCtQCjzXNnLoX812AdmGc9yBpNOZHXw1z7rfYiewNmbDIHn3nWD2I878 Rn6yBiziHjIRbV8aJ5pCTak2p0vz1gaJzheFYkXpzh50DaVe1/wzfOoukBY/pdyn/2EP sTow== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of jan.kiszka@siemens.com designates 194.138.37.39 as permitted sender) smtp.mailfrom=jan.kiszka@siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com Return-Path: Received: from lizzard.sbs.de (lizzard.sbs.de. [194.138.37.39]) by gmr-mx.google.com with ESMTPS id b26si1052781edy.4.2021.04.13.09.07.50 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 13 Apr 2021 09:07:50 -0700 (PDT) Received-SPF: pass (google.com: domain of jan.kiszka@siemens.com designates 194.138.37.39 as permitted sender) client-ip=194.138.37.39; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of jan.kiszka@siemens.com designates 194.138.37.39 as permitted sender) smtp.mailfrom=jan.kiszka@siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com Received: from mail2.sbs.de (mail2.sbs.de [192.129.41.66]) by lizzard.sbs.de (8.15.2/8.15.2) with ESMTPS id 13DG7ngS025181 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Tue, 13 Apr 2021 18:07:50 +0200 Received: from [167.87.46.221] ([167.87.46.221]) by mail2.sbs.de (8.15.2/8.15.2) with ESMTP id 13DG4CiB024712; Tue, 13 Apr 2021 18:04:12 +0200 Subject: Re: [PATCH v2] doc: add a section on flashing images To: Henning Schild , isar-users@googlegroups.com References: <20210412182756.1091-1-henning.schild@siemens.com> From: Jan Kiszka Message-ID: Date: Tue, 13 Apr 2021 18:04:12 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.0 MIME-Version: 1.0 In-Reply-To: <20210412182756.1091-1-henning.schild@siemens.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-TUID: L6wD/aZtcsWv On 12.04.21 20:27, Henning Schild wrote: > Signed-off-by: Henning Schild > --- > doc/user_manual.md | 11 +++++++++++ > 1 file changed, 11 insertions(+) > > diff --git a/doc/user_manual.md b/doc/user_manual.md > index 70cf20a74828..c3c9e977f3fb 100644 > --- a/doc/user_manual.md > +++ b/doc/user_manual.md > @@ -232,6 +232,17 @@ qemu-system-x86_64 -m 256M -nographic -bios edk2/Build/OvmfX64/RELEASE_*/FV/OVMF > qemu-system-i386 -m 256M -nographic -hda tmp/deploy/images/qemui386/isar-image-base-debian-buster-qemui386.wic.img > ``` > > +#### Flashing such images to a physical device > + > +wic images can be flashed in multiple ways. The most generic and easy way is probably with [ etcher ](https://etcher.io). That works on many operating systems and is relatively easy to use. On top it can decompress images on the fly, should they be compressed. It also offers some sort of protection so you do not write to the wrong device and maybe break your machine. > + > +If you have a unix shell there are other ways. Make sure to always double check the target device, those tools might not warn if you choose the wrong target. > + > +`bmaptool` would be the best choice on a Linux/Unix system. It offers skipping of empty space and will flash much faster than `dd`, it also has some protection so you do not flash over a mounted drive by accident. Unfortunately it is not yet available on all Linux distributions. > +https://github.com/intel/bmap-tools > + > +`dd` is the most generic option, available pretty much everywhere. But here you really need to make sure to not write to the wrong target. > + > ### Generate container image with root filesystem > > A runnable container image is generated if you set IMAGE_TYPE to > LGTM. Thanks, Jan -- Siemens AG, T RDA IOT Corporate Competence Center Embedded Linux