[{"id":1763081,"web_url":"http://patchwork.ozlabs.org/comment/1763081/","msgid":"<CAPnjgZ2bha-k3m-1xb0FDUYEVuTk_tA-zve6WXHJhRVFSu3j9g@mail.gmail.com>","list_archive_url":null,"date":"2017-09-05T08:55:43","subject":"Re: [U-Boot] [PATCH 1/3] GPT: create block device for sandbox\n\ttesting","submitter":{"id":6170,"url":"http://patchwork.ozlabs.org/api/people/6170/","name":"Simon Glass","email":"sjg@chromium.org"},"content":"Hi Alison,\n\nOn 3 September 2017 at 08:18,  <alison@peloton-tech.com> wrote:\n> From: Alison Chaiken <alison@peloton-tech.com>\n>\n> Provide a shell script that creates a small block device for the\n> purpose of testing the cmd/gpt.c functions in the u-boot sandbox.\n> Running the tests removes the device file.\n>\n> Signed-off-by: Alison Chaiken <alison@peloton-tech.com>\n> ---\n>  test/gpt/make-test-disk.sh | 8 ++++++++\n>  1 file changed, 8 insertions(+)\n>  create mode 100755 test/gpt/make-test-disk.sh\n>\n\nCan you please move this into the Python script so that it is created\nautomatically and deleted at the end.\n\n> diff --git a/test/gpt/make-test-disk.sh b/test/gpt/make-test-disk.sh\n> new file mode 100755\n> index 0000000..022acba\n> --- /dev/null\n> +++ b/test/gpt/make-test-disk.sh\n> @@ -0,0 +1,8 @@\n> +#!/bin/bash\n> +\n> +/usr/bin/truncate -s 265K disk.raw\n> +echo -e \"label: gpt\\n,64K,U\\n,,L\" | /sbin/sgdisk ./disk.raw\n> +/sbin/sgdisk --new=1:34:161 ./disk.raw\n> +/sbin/sgdisk --new=2:162:496 ./disk.raw\n> +/sbin/sgdisk -U 375a56f7-d6c9-4e81-b5f0-09d41ca89efe ./disk.raw\n> +/sbin/gdisk -l ./disk.raw\n> --\n> 2.1.4\n>","headers":{"Return-Path":"<u-boot-bounces@lists.denx.de>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@bilbo.ozlabs.org","Authentication-Results":["ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=lists.denx.de\n\t(client-ip=81.169.180.215; helo=lists.denx.de;\n\tenvelope-from=u-boot-bounces@lists.denx.de;\n\treceiver=<UNKNOWN>)","ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=google.com header.i=@google.com\n\theader.b=\"oRWFS6rv\"; \n\tdkim=fail reason=\"signature verification failed\" (1024-bit key;\n\tunprotected) header.d=chromium.org header.i=@chromium.org\n\theader.b=\"VdSsletu\"; dkim-atps=neutral"],"Received":["from lists.denx.de (dione.denx.de [81.169.180.215])\n\tby ozlabs.org (Postfix) with ESMTP id 3xmgYV6XQJz9s72\n\tfor <incoming@patchwork.ozlabs.org>;\n\tTue,  5 Sep 2017 18:56:14 +1000 (AEST)","by lists.denx.de (Postfix, from userid 105)\n\tid AA7C1C21E1E; Tue,  5 Sep 2017 08:56:09 +0000 (UTC)","from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id 8C197C21C45;\n\tTue,  5 Sep 2017 08:56:07 +0000 (UTC)","by lists.denx.de (Postfix, from userid 105)\n\tid DE7EAC21C45; Tue,  5 Sep 2017 08:56:05 +0000 (UTC)","from mail-qt0-f180.google.com (mail-qt0-f180.google.com\n\t[209.85.216.180])\n\tby lists.denx.de (Postfix) with ESMTPS id 56B7DC21C2B\n\tfor <u-boot@lists.denx.de>; Tue,  5 Sep 2017 08:56:05 +0000 (UTC)","by mail-qt0-f180.google.com with SMTP id k2so9781471qte.2\n\tfor <u-boot@lists.denx.de>; Tue, 05 Sep 2017 01:56:05 -0700 (PDT)","by 10.200.28.108 with HTTP; Tue, 5 Sep 2017 01:55:43 -0700 (PDT)"],"X-Spam-Checker-Version":"SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de","X-Spam-Level":"","X-Spam-Status":"No, score=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,\n\tRCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,\n\tT_DKIM_INVALID autolearn=unavailable\n\tautolearn_force=no version=3.4.0","DKIM-Signature":["v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;\n\ts=20161025; \n\th=mime-version:sender:in-reply-to:references:from:date:message-id\n\t:subject:to:cc;\n\tbh=ZkhZdSMPVuXMO39611mriXz18IcL4OZQFjf8MbzsxSc=;\n\tb=oRWFS6rv7YiFmj6LR/extP/uCg7nqV7eJQKNP7ysB2B65Uz5DyCrSO3hMephKTuWch\n\tlgjY5IU9XyMJN5JP8NzVK8+QkWzUjxW9wNVn+urOW7xUHL0eli62eRBwLv3lLKqKHKjw\n\trUHqZKhRf1V0Cyw8S0GrHX6crRFdG1Fe34m2UMc7+TDp4YO5t61Y4OH6rcmdshmrXNdQ\n\tAAXxuu4+3+4uMIUmjn+dbXiS8Q+tDsfceb1uNWt8RuufdeB8/zrUVTPPyCJ78Mj6c6e9\n\th8h/zhAG18+Rh0LUHdy6YiacWq3a0yWDrjkyXC/UO2vVFB/lk1NX/T4Kr1zT4rYSX1Rj\n\ttHIw==","v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org;\n\ts=google; \n\th=mime-version:sender:in-reply-to:references:from:date:message-id\n\t:subject:to:cc;\n\tbh=ZkhZdSMPVuXMO39611mriXz18IcL4OZQFjf8MbzsxSc=;\n\tb=VdSsletuuo1SUl2TxruBR3mhNOFu0zBM7KBZzJZ8ufYPciakhhhkA3vhcTECr6H5/r\n\tkKZ62/KjyudxxDeF3f5ePqOan1a7vPkWhrd8rmu1qcgVzPdvYHyB7Sr4zRAGlPhKQF5+\n\tOsKmJpuM2xprQiGosRsu/R7KUmUMjEeMonuzk="],"X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:mime-version:sender:in-reply-to:references:from\n\t:date:message-id:subject:to:cc;\n\tbh=ZkhZdSMPVuXMO39611mriXz18IcL4OZQFjf8MbzsxSc=;\n\tb=KvXdmXTVl+JRRD26EWE4uattTFz6DG4tNhYBO4teBRBKDhZc6sxk52oVspvt3qqHcc\n\t75IgxnGDEMlv29yng/l58ifFH3HaqMBWRCpo4AiYYh266uZZGcMjZslD90zQxVk58Dop\n\ta3misOeNgWXtJpGcJjl3FcNSe51as2LlUN8H8veNucGr3qbxx6xsTMSSrRmAYlUbX79a\n\tzsA+eWoW90wd6bi+6z3dfZUnOIq6VaP1Kt3FEuf4keK6lDNo3N3gTkgI2kolo5JaI8hg\n\tYzx5hQsOxdNu0UxXZPBPoLW/VAkunq7bVSfiEoy9O0LtaAQKxQNE5Ndormoy4T91ZBX3\n\tZgsg==","X-Gm-Message-State":"AHPjjUiFxj/7xdhgW0VAUVsbuXzkKVNZ6CJrjiDikYkwIdA6k0DISrGe\n\tKF3kw6gZw1/2EGp7mtPTyb5Lmky08agS","X-Google-Smtp-Source":"ADKCNb7/8oIHFC8DaZZOYNxBDHHRNrBCrSL8RsJz0fyLMQ9hRuGVcLUALj9lq/Lp+ZCCYwX3ebxE8NvDxzMVB4mm8nM=","X-Received":"by 10.200.46.138 with SMTP id h10mr6202qta.137.1504601763849;\n\tTue, 05 Sep 2017 01:56:03 -0700 (PDT)","MIME-Version":"1.0","In-Reply-To":"<1504397939-12847-1-git-send-email-alison@peloton-tech.com>","References":"<1504397939-12847-1-git-send-email-alison@peloton-tech.com>","From":"Simon Glass <sjg@chromium.org>","Date":"Tue, 5 Sep 2017 16:55:43 +0800","X-Google-Sender-Auth":"rvqMPz0R7FNP2FdmgXiR5OOpVIQ","Message-ID":"<CAPnjgZ2bha-k3m-1xb0FDUYEVuTk_tA-zve6WXHJhRVFSu3j9g@mail.gmail.com>","To":"alison@peloton-tech.com","Cc":"U-Boot Mailing List <u-boot@lists.denx.de>, \"Chaiken,\n\tAlison\" <alison@she-devel.com>, Tom Rini <trini@konsulko.com>","Subject":"Re: [U-Boot] [PATCH 1/3] GPT: create block device for sandbox\n\ttesting","X-BeenThere":"u-boot@lists.denx.de","X-Mailman-Version":"2.1.18","Precedence":"list","List-Id":"U-Boot discussion <u-boot.lists.denx.de>","List-Unsubscribe":"<https://lists.denx.de/options/u-boot>,\n\t<mailto:u-boot-request@lists.denx.de?subject=unsubscribe>","List-Archive":"<http://lists.denx.de/pipermail/u-boot/>","List-Post":"<mailto:u-boot@lists.denx.de>","List-Help":"<mailto:u-boot-request@lists.denx.de?subject=help>","List-Subscribe":"<https://lists.denx.de/listinfo/u-boot>,\n\t<mailto:u-boot-request@lists.denx.de?subject=subscribe>","Content-Type":"text/plain; charset=\"utf-8\"","Content-Transfer-Encoding":"base64","Errors-To":"u-boot-bounces@lists.denx.de","Sender":"\"U-Boot\" <u-boot-bounces@lists.denx.de>"}}]