From patchwork Sun Apr 21 09:53:53 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 3081 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-ed1-f71.google.com (mail-ed1-f71.google.com [209.85.208.71]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 64014412C8 for ; Sun, 21 Apr 2024 11:54:00 +0200 (CEST) Received: by mail-ed1-f71.google.com with SMTP id 4fb4d7f45d1cf-570255977efsf5055815a12.1 for ; Sun, 21 Apr 2024 02:54:00 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713693240; cv=pass; d=google.com; s=arc-20160816; b=A+gTh8nRsGg8eMAZx769RqB05Letf+he/FrRy+a8eDcT5QgHN/FO2HfCW1WC2Zrp8V mFKeNC9cHAgmTNl6poVf3JOP993QWno6ccgyry3CqvykJt3LsKLC6CJ7BsUic946JN01 0nLPrbSUX2j+e+TdE/2mOn7GCcKCsorxKkZIz8fh0zFQxL1Z7suj9ytcbqgJ0NXkYCX3 aqYdlShVSYRPbmxlw0UO2ctacvAfzt2pr2GPHyCv5xlC4hahV6in/1n3RwnwqNWzLz1e hP33K7X/NDCca+knLniMj4LoA/8L6DyUm2jQ4q0K4EZtO3djQukmr1wJmbAJPrjmVs1d oP7w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=KJD4oACvN1j5ogNj/vekpRozi0X0zzLW65CkhzCSl+M=; fh=CTrp35HSpUynUq8MCfE+WfwgLUg71htuR9CElcw72xA=; b=jww/CIQsyArhCvA52pqYaVyz2cuvF+m2e1KGTR/0Bkseup9kqqDAchd4bdRnbx/k1v x7tEs06SLvG0j2Xb7x6c9SuLdK3iva4YLk2r4kXErb02t/gqFfTjo7iUKhfuAM16WadR RHZkA7RFXl1qTzuNAfCfrlPWJ1BNr5e4tWLKdgm62V+PLJe7JxJVol88PrT6GC4y1vVI T7BI8nzrdgwzBlszQ7NPRZ9wSK2zFG3n1+X8t6kDw5iIJGQTkPj5tHdM0UiwcBsU7cbt X4xy90VIQlp2XcYjl7ahar3PeeSueyw+cChXQTsGXfExFxjd6amwrIjvvgOysgdUQxlm F8UA==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=cOKPPdfA; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1713693240; x=1714298040; darn=patchwork.amarulasolutions.com; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=KJD4oACvN1j5ogNj/vekpRozi0X0zzLW65CkhzCSl+M=; b=NfROUW6D4C0Nx/6ZQG8d1snq/K7bJSM1oZG6LhaaNmpux24R9pXlStz8klvwCCcAYO d/acSldOc/sBn/kxE0/Nzc7JSinUF425lB6nA2b1aS/1M7jdSX1S81eAPB2R1tu9dTkb sWeniEC5B0Ju2DLjg/TLpbpizlc5ov4TNa+oo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713693240; x=1714298040; h=list-unsubscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :x-beenthere:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=KJD4oACvN1j5ogNj/vekpRozi0X0zzLW65CkhzCSl+M=; b=f9YUT6v1QF0gI+Gi9MZ+PGC3ECSSMEKn0pZBT4ygBGt6/AikMDutdwnf3jBO0hF7HQ ZFKrIRMoL4/aNoZ8VOMh1X0aHj97EYdxOFiEVt/8Ip7hokW8L7fSwbGdUasY2pVLYnDy S1+zz0kjn/1jLQrM+vbNn/g3EReg/RRKPt69vxUJF0kDBEWng8CCGZduxCaQgA5LTg9R PfSLjvaAjU4PL0PwQ7k7mJlFSXqRb1UuXXofbNEJF3WKzCFVHbrm0X4T/4KqU6ByzxUA yNQ72M6EUOkLy2n8ZnZn98QeOMA44BaW5S8SvXWUxlfnoSQTYidq1cxDmJpQFWC6Zbnz wGyw== X-Forwarded-Encrypted: i=2; AJvYcCWk8J9YyQMAavkObwd0m33ScyhI7C+ily90AyBPzrkGUYpZiFvtyuFesqKVmBJKSQ0hlC0rZJgvM4Ikg5oPl+tBBsHGMOoXUL/nDDdDijL+su85xjNveMeRH3GCjA== X-Gm-Message-State: AOJu0YweCfNel1c2bjGHmIaZuKSPcsXpO/IILzts46T57f0pSQofmvNs hqVkXJ+kVXTx5O7I2WEmiG/Bp45QVt6yilzHXuYkaF7b7CCN7Y6cD9xX2Hs0O/qr6A== X-Google-Smtp-Source: AGHT+IGmrnEiYRR2zDMvgi+8LmvckElfqshOZxSet7I3LzMIN0qmQX6CydZZndA2Q6jJDAlt6Ot2wQ== X-Received: by 2002:a05:6402:3591:b0:572:602:2ed7 with SMTP id y17-20020a056402359100b0057206022ed7mr492810edc.14.1713693240150; Sun, 21 Apr 2024 02:54:00 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a05:6402:e9f:b0:571:bf98:23c5 with SMTP id 4fb4d7f45d1cf-571cc5c7c24ls1310401a12.2.-pod-prod-00-eu; Sun, 21 Apr 2024 02:53:58 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXnpWwtz3PjP5e3OHLu3gHoFn8Aj7zy89SuNFjPqnrAxpiNejSQfqZ0Iq03KedP6stZXXOS0O/VVa0icOuSsPvLRN3eIQLPHlBOupIcVfsbeA0W X-Received: by 2002:a05:6402:6c6:b0:571:badc:203d with SMTP id n6-20020a05640206c600b00571badc203dmr9073978edy.16.1713693238515; Sun, 21 Apr 2024 02:53:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1713693238; cv=none; d=google.com; s=arc-20160816; b=L0uqloty8tsFGGGZ2QP+D8+8dWssRBiOL/7HOrHJ6vqt2+MhOG2M09wTG+vFa5wwkt s11g1hEHNPXryzb3jQKNmT9FCSRBZu3ekV3h8QoTgQSQn2tXXS+CI04RX4EBNxD44u7I x83liLRj1V9N6aqfGpxqkqTXVp80f39gI6XtVz0RTifEsys+E7ughOtbXvDeyXEl3dro oLM/zKh3N2keAK2kPDrrOepq/SoRTmLBLTizRM+PdT72MIndDIasCHiUOhbOTCvwkp1P 0Q+ddGSfgyhiQy71Wf/8E/0ftOQ3M57M3sWDKwHTWIujSBzVO1zszUcccRRFrJQWF+wF Fl0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=kCM/H82T9SSxONTHQuQnnSbmIg7C+OwrC53vcl5eOLM=; fh=OVsYii4+qqu284hLeRgd476kWo6vHr64bGvaDWf9jSs=; b=p3crLvlJ74uqDM31tevaIdQWvNK248FLrABpVtVF9hiOuR6x/NYmsOhFMiXycp9P2Z 4CFb60d+rIH/JIYZOfY3wZK2XHMbSUj5vBqmZIwzUfIhQBAsh0Swb6jmETHulcco3uDc lKJbgymhTTIq1grUxPm51klCiVNpO46kN1rFFkjmG0ihsFghYXbzenLXddQqMVeTghfV JWHNvHLuP13j2prerHVSZEDV/DjhxMVm1KtJafMG1tk3081Offio+w+q6CFFMv/y9UFL FzkuJqTBRJ/3ufzZwd6cPxaJeB6Egp0nUojQ1NQft5qmIoPWyWSaXsDknMfHCqiV9arC 0ZIw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=cOKPPdfA; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id t27-20020a50d71b000000b0056bc06874d4sor2966608edi.4.2024.04.21.02.53.58 for (Google Transport Security); Sun, 21 Apr 2024 02:53:58 -0700 (PDT) Received-SPF: pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Forwarded-Encrypted: i=1; AJvYcCVYMuXmGdg3m+MgdFu/lcxvwogDV+9D8l9fQugrGGIv799Yr/5JhDV4oN9ur04aLylvgjeJnOYMXRTXiXJhGTl3f+SZKuYEwkNv3gno2+itPl+r X-Received: by 2002:a05:6402:340e:b0:56b:f2d8:1552 with SMTP id k14-20020a056402340e00b0056bf2d81552mr9021172edc.13.1713693238206; Sun, 21 Apr 2024 02:53:58 -0700 (PDT) Received: from dario-ThinkPad-T14s-Gen-2i.homenet.telecomitalia.it (host-87-8-99-67.retail.telecomitalia.it. [87.8.99.67]) by smtp.gmail.com with ESMTPSA id f15-20020aa7d84f000000b00571db231915sm2318427eds.78.2024.04.21.02.53.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 21 Apr 2024 02:53:57 -0700 (PDT) From: Dario Binacchi To: buildroot@buildroot.org Cc: Xuanhao Shi , Anand Gadiyar , michael@amarulasolutions.com, linux-amarula@amarulasolutions.com, Dario Binacchi Subject: [RFC PATCH 2/2] configs/ti_am62x_sk_defconfig: create the bmap image Date: Sun, 21 Apr 2024 11:53:53 +0200 Message-ID: <20240421095353.208034-3-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240421095353.208034-1-dario.binacchi@amarulasolutions.com> References: <20240421095353.208034-1-dario.binacchi@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: dario.binacchi@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=cOKPPdfA; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , The use of a bmap image allows for speeding up the writing of the image to the SD card, as can be seen from the following results: $time sudo dd if=output/images/sdcard.img of=/dev/sda [sudo] password for dario: 655361+0 records in 655361+0 records out 335544832 bytes (336 MB, 320 MiB) copied, 49,1122 s, 6,8 MB/s real 0m52,177s user 0m0,022s sys 0m0,017s $time sudo bmaptool copy output/images/sdcard.img.gz /dev/sda bmaptool: info: discovered bmap file 'sdcard.img.bmap' bmaptool: info: block map format version 2.0 bmaptool: info: 81921 blocks of size 4096 (320.0 MiB), mapped 29339 blocks (114.6 MiB or 35.8%) bmaptool: info: copying image 'sdcard.img.gz' to block device '/dev/sda' using bmap file 'sdcard.img.bmap' bmaptool: info: 100% copied bmaptool: info: synchronizing '/dev/sda' bmaptool: info: copying time: 11.8s, copying speed 9.7 MiB/sec real 0m11,885s user 0m0,004s sys 0m0,011s Signed-off-by: Dario Binacchi --- configs/ti_am62x_sk_defconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configs/ti_am62x_sk_defconfig b/configs/ti_am62x_sk_defconfig index 5c7b97b3b0b1..708cb98f22d5 100644 --- a/configs/ti_am62x_sk_defconfig +++ b/configs/ti_am62x_sk_defconfig @@ -5,7 +5,7 @@ BR2_DOWNLOAD_FORCE_CHECK_HASHES=y BR2_ROOTFS_POST_BUILD_SCRIPT="board/ti/common/am6xx/post-build.sh" BR2_ROOTFS_POST_BUILD_SCRIPT_ARGS="-c ttyS2,115200n8 -d k3-am625-sk.dtb -l am62x-sk-buildroot -r /dev/mmcblk1p2 -x earlycon=ns16550a,mmio32,0x02800000" BR2_ROOTFS_POST_IMAGE_SCRIPT="support/scripts/genimage.sh" -BR2_ROOTFS_POST_IMAGE_SCRIPT_ARGS="-c board/ti/am62x-sk/genimage.cfg" +BR2_ROOTFS_POST_IMAGE_SCRIPT_ARGS="-c board/ti/am62x-sk/genimage.cfg -b" BR2_LINUX_KERNEL=y BR2_LINUX_KERNEL_CUSTOM_VERSION=y BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="6.6.18" @@ -44,6 +44,7 @@ BR2_TARGET_UBOOT_FORMAT_IMG=y BR2_TARGET_UBOOT_SPL=y BR2_TARGET_UBOOT_SPL_NAME="tispl.bin" BR2_TARGET_UBOOT_CUSTOM_MAKEOPTS="TEE=$(BINARIES_DIR)/tee-pager_v2.bin" +BR2_PACKAGE_HOST_BMAP_TOOLS=y BR2_PACKAGE_HOST_DOSFSTOOLS=y BR2_PACKAGE_HOST_GENIMAGE=y BR2_PACKAGE_HOST_MTOOLS=y