From patchwork Fri Aug 23 17:29:25 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Matwey V. Kornilov" X-Patchwork-Id: 1152317 X-Patchwork-Delegate: philipp.tomsich@theobroma-systems.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="tkclLKSw"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 46FT2V5w8hz9s7T for ; Sat, 24 Aug 2019 03:30:58 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 81507C22141; Fri, 23 Aug 2019 17:29:55 +0000 (UTC) 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=FREEMAIL_FROM, RCVD_IN_MSPIKE_H2, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id A5B2DC22125; Fri, 23 Aug 2019 17:29:49 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 74BD0C2210B; Fri, 23 Aug 2019 17:29:46 +0000 (UTC) Received: from mail-lf1-f66.google.com (mail-lf1-f66.google.com [209.85.167.66]) by lists.denx.de (Postfix) with ESMTPS id 123E1C21C38 for ; Fri, 23 Aug 2019 17:29:46 +0000 (UTC) Received: by mail-lf1-f66.google.com with SMTP id b17so7693607lff.7 for ; Fri, 23 Aug 2019 10:29:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=c69kJDDDXgPEUfxxhpvUrGofqcrNFaAvL4iadDnoc70=; b=tkclLKSwVapADU4gl6Qj/RJxU/XOftDy5MLM4YvyvReL0kWBZn1DzK2UTmXWeWtgd5 o0l7S2NagtBRKDE2u1Xe9Y1tS+y3v09mUf7fJxn7BFQb26AweVN1tQej1ojIJ/gWwGrV lwr1t79r2WzYYBwE3mGMUGRd9mpAHrnkXMJ8LhvQQNLQ5dxlgGMZVXi8awHH3idpjN4M s6y/5CSxMVQ+gTImEnIrV74tqrrD0kyDewLLVDQ3My5vVtyb9AiGzRZcIpIofQzalUaY 12Gffuy2esv0BkL7mosFR2GpAR7SR56J7HiPZET+LB4h4idJJPMMKcbi4STGAlLqbg1j 7n6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=c69kJDDDXgPEUfxxhpvUrGofqcrNFaAvL4iadDnoc70=; b=oXN4Nkw3WfZ1p8guD8tmM2ux2lYbcdpR6ZCVZtj+KVEuqp5EhR7GhRVYLj0sXiVuuF pQD03JXOOVmZlLw3eedQt+yETh6JWcyg0iQTQvS1voWKtG/vjTwZjbmCgFxJOjPrCUuf R0Slf4to6MQdYkZn69/DHQ2Eg1leSRxXOTHZXjsM1ro44d9ecuiX5P9aSOODqIBTyGQO VGOwZD63dqjoTF5e39VhNjvDlSLDYHsClATLrhTAaS5iIC6zkDNIMxraZMpwCKubVPuH WQ8WCI0PL8ikwf7X7qYizKUvaUVU1iNMBqi3cZh7n6lFlAOAxyaPIRm0MIDPmb9jnbnO qipg== X-Gm-Message-State: APjAAAUMZSkc329AahOGBbCV4bIA1A7ARHZ1WRoUnQXYumkaUGEuVCb8 t/NiuSGEdJ03alW3mVnkzEU= X-Google-Smtp-Source: APXvYqyFFgvkYpWRi1zlqbeE0u2TpoljTWxX5UV3aLO35/cPoR2ujFuyvIgLCgeqFEEPrZ7/+4CsVA== X-Received: by 2002:ac2:549b:: with SMTP id t27mr3432321lfk.25.1566581385364; Fri, 23 Aug 2019 10:29:45 -0700 (PDT) Received: from oak.local ([92.243.181.209]) by smtp.gmail.com with ESMTPSA id s3sm736601ljj.85.2019.08.23.10.29.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 23 Aug 2019 10:29:44 -0700 (PDT) From: "Matwey V. Kornilov" To: Simon Glass , Jagan Teki , Marek Vasut , Chris Packham , Stefan Roese , Heinrich Schuchardt , Bartosz Golaszewski Date: Fri, 23 Aug 2019 20:29:25 +0300 Message-Id: <20190823172930.4883-2-matwey.kornilov@gmail.com> X-Mailer: git-send-email 2.16.4 In-Reply-To: <20190823172930.4883-1-matwey.kornilov@gmail.com> References: <20190823172930.4883-1-matwey.kornilov@gmail.com> Cc: open list , "Matwey V. Kornilov" Subject: [U-Boot] [PATCH 1/5] rockchip, Makefile: add idbloader.img target X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" Many Rockchip platforms require the same u-boot deploy procedure when TPL and SPL both enabled. The following examples are taken from doc/README.rockchip and board/theobroma-systems/lion_rk3368/README: RK3288: ./tools/mkimage -n rk3288 -T rksd -d ./tpl/u-boot-tpl.bin out cat ./spl/u-boot-spl-dtb.bin >> out sudo dd if=out of=/dev/mmcblk0 seek=64 RK3328: ./tools/mkimage -n rk3328 -T rksd -d ./tpl/u-boot-tpl.bin idbloader.img cat ./spl/u-boot-spl.bin >> idbloader.img sudo dd if=idbloader.img of=/dev/mmcblk0 seek=64 RK3368: ./tools/mkimage -n rk3368 -T rksd -d tpl/u-boot-tpl.bin spl-3368.img cat spl/u-boot-spl-dtb.bin >> spl-3368.img dd if=spl-3368.img of=/dev/sdb seek=64 RK3399: ./tools/mkimage -n rk3399 -T rksd -d ./tpl/u-boot-tpl-dtb.bin out cat ./spl/u-boot-spl-dtb.bin >> out sudo dd if=out of=/dev/sdc seek=64 Here, we introduce generic idbloader.img target which is the TPL image followed by the SPL binary. Signed-off-by: Matwey V. Kornilov Reviewed-by: Kever Yang --- Makefile | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Makefile b/Makefile index 3b0864ae8e..eb12af9364 100644 --- a/Makefile +++ b/Makefile @@ -882,6 +882,10 @@ ifeq ($(CONFIG_MPC85xx)$(CONFIG_OF_SEPARATE),yy) ALL-y += u-boot-with-dtb.bin endif +ifeq ($(CONFIG_ARCH_ROCKCHIP)$(CONFIG_SPL)$(CONFIG_TPL),yyy) +ALL-y += idbloader.img +endif + LDFLAGS_u-boot += $(LDFLAGS_FINAL) # Avoid 'Not enough room for program headers' error on binutils 2.28 onwards. @@ -1293,6 +1297,14 @@ OBJCOPYFLAGS_u-boot-with-spl.bin = -I binary -O binary \ u-boot-with-spl.bin: $(SPL_IMAGE) $(SPL_PAYLOAD) FORCE $(call if_changed,pad_cat) +ifeq ($(CONFIG_ARCH_ROCKCHIP),y) +MKIMAGEFLAGS_u-boot-tpl.img = -n $(CONFIG_SYS_SOC) -T rksd +tpl/u-boot-tpl.img: tpl/u-boot-tpl.bin FORCE + $(call if_changed,mkimage) +idbloader.img: tpl/u-boot-tpl.img spl/u-boot-spl.bin FORCE + $(call if_changed,cat) +endif + ifeq ($(CONFIG_ARCH_LPC32XX)$(CONFIG_SPL),yy) MKIMAGEFLAGS_lpc32xx-spl.img = -T lpc32xximage -a $(CONFIG_SPL_TEXT_BASE) From patchwork Fri Aug 23 17:29:26 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Matwey V. Kornilov" X-Patchwork-Id: 1152318 X-Patchwork-Delegate: philipp.tomsich@theobroma-systems.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="NtBuJ9mY"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 46FT2t0nPPz9s7T for ; Sat, 24 Aug 2019 03:31:18 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id C389FC220D5; Fri, 23 Aug 2019 17:30:04 +0000 (UTC) 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=FREEMAIL_FROM, RCVD_IN_MSPIKE_H2, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 3C7F0C22128; Fri, 23 Aug 2019 17:29:59 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id C8F09C220F3; Fri, 23 Aug 2019 17:29:49 +0000 (UTC) Received: from mail-lf1-f66.google.com (mail-lf1-f66.google.com [209.85.167.66]) by lists.denx.de (Postfix) with ESMTPS id E49B4C22109 for ; Fri, 23 Aug 2019 17:29:47 +0000 (UTC) Received: by mail-lf1-f66.google.com with SMTP id n19so7656317lfe.13 for ; Fri, 23 Aug 2019 10:29:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=3jJRnsR5zdkjpiqUgdn1ax9t/pqIQLWv99XH0Fubj0g=; b=NtBuJ9mY5aJM0WDJp89qayd4xTS1xx1MeTHoDnISLetRmM8GVGCrgnBzx3tccRXDEI 5KG2IPMtjKJewKy6dyNsQqPmT1vZ/HO0pvr3zW5nDnFTuHqPzd55KYoxnPhgomGqv4Ux 3ShwCwQOmP8QOPtDbhcKkfbQtltqRFCfhspl3qebEqwEHowicTDROKreFG0q350MubyQ ZMveARBEG+li7cgK1NsCoediXEOsQ8ULSD/05LhSj69EG/XfIwG8JjnAOalXsbSfT5gk pbo5wM2EsieCCflG6IMKZsYFjFwzvnInKXeyNyezbRntKRUP1QhvuBPtJBfOjBghnkwe vPNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=3jJRnsR5zdkjpiqUgdn1ax9t/pqIQLWv99XH0Fubj0g=; b=kNn2y4WnhvqkwoJrEtOejpusQ3xTHKVRcmF7jVnpRTeILfaZ9kd52uxIiyrMedUN2M X8OtBtlSb7QvscmqRRxrrflG2+k0DmnT39CVpYIYbBNebFod+XSlj1Eus9d0qFTJP2fL QJhRhhkrE91jMD+Mi4RG5qbnOLErhpZv8EK57+IAo7Fse+jM1Kj+vgVhd0gKOLbr6vep U8yYs4IOzMURdg7RArRW+yK3aqqz2jHQYRoR+fM5JE62HvpSQKde8/w5OzFtdhhPpIvQ NYMNwjeICpnWih1pdw61VcIiHiClvCZs+Z7oEY9OUkK5u7JhmAo3T6wEb6txrAwrAZ+C uhVA== X-Gm-Message-State: APjAAAUu8IPACpYLtQh2//l1Ijw2btUVw3yWje1eSu9twrotnkgVFUoZ EMP9TYaIKSWmWpFfz4YlJtji3BTo1i0= X-Google-Smtp-Source: APXvYqwA/IqMGKtQLhAn/ci+UQV+ltjnHhuIa1t5GqkJ2gPpE8k3YkHDut9LtJa8zBx2j8dv/58iSw== X-Received: by 2002:a19:c150:: with SMTP id r77mr3747221lff.76.1566581387264; Fri, 23 Aug 2019 10:29:47 -0700 (PDT) Received: from oak.local ([92.243.181.209]) by smtp.gmail.com with ESMTPSA id s3sm736601ljj.85.2019.08.23.10.29.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 23 Aug 2019 10:29:46 -0700 (PDT) From: "Matwey V. Kornilov" To: Kever Yang , Philipp Tomsich , "Matwey V. Kornilov" , Jagan Teki , Simon Glass , Chris Webb Date: Fri, 23 Aug 2019 20:29:26 +0300 Message-Id: <20190823172930.4883-3-matwey.kornilov@gmail.com> X-Mailer: git-send-email 2.16.4 In-Reply-To: <20190823172930.4883-1-matwey.kornilov@gmail.com> References: <20190823172930.4883-1-matwey.kornilov@gmail.com> Cc: open list Subject: [U-Boot] [PATCH 2/5] doc: rockchip: use idbloader.img for rk3288 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" Makefile now produces ready-to-deploy idbloader.img file. Signed-off-by: Matwey V. Kornilov --- doc/README.rockchip | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/doc/README.rockchip b/doc/README.rockchip index 7d4dc1b33b..6e58cfde49 100644 --- a/doc/README.rockchip +++ b/doc/README.rockchip @@ -276,9 +276,7 @@ As of now TPL is added on Vyasa-RK3288 board. To write an image that boots from an SD card (assumed to be /dev/mmcblk0): - ./tools/mkimage -n rk3288 -T rksd -d ./tpl/u-boot-tpl.bin out && - cat ./spl/u-boot-spl-dtb.bin >> out && - sudo dd if=out of=/dev/mmcblk0 seek=64 && + sudo dd if=idbloader.img of=/dev/mmcblk0 seek=64 && sudo dd if=u-boot-dtb.img of=/dev/mmcblk0 seek=16384 Booting from an SD card on RK3188 From patchwork Fri Aug 23 17:29:27 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Matwey V. Kornilov" X-Patchwork-Id: 1152316 X-Patchwork-Delegate: philipp.tomsich@theobroma-systems.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="AnRypbCR"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 46FT2G5k8wz9s7T for ; Sat, 24 Aug 2019 03:30:46 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 5980BC2212A; Fri, 23 Aug 2019 17:30:12 +0000 (UTC) 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=FREEMAIL_FROM, RCVD_IN_MSPIKE_H2, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id CDEDDC2211F; Fri, 23 Aug 2019 17:30:05 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 6A30BC220BB; Fri, 23 Aug 2019 17:29:52 +0000 (UTC) Received: from mail-lj1-f194.google.com (mail-lj1-f194.google.com [209.85.208.194]) by lists.denx.de (Postfix) with ESMTPS id B4BD1C22128 for ; Fri, 23 Aug 2019 17:29:49 +0000 (UTC) Received: by mail-lj1-f194.google.com with SMTP id l1so9543417lji.12 for ; Fri, 23 Aug 2019 10:29:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=YF6sMz2cW9qQ79KF8QdKNgAmcqWT0vguvBS/1HVskGU=; b=AnRypbCRwG5o9nhHGw6bvZ/YEBPoUsb0aJe0UnLcXuoy6GP6s+7qvmF+X3/a2Ouzxj aXzY3tOx9+/+5SKZ0lXu3AyPxfm7AKorGr6Df8q1EJpXiiUugPJIM5ixc/+ON/Llu2Tp 2/Tg6fLWiO3d0Ahizoj8d0caBynt/bt2OobyXN9crvfhVzxReUy4SSpOot1/o4WjbF4/ lpbaTCvC2vwYKi0x7I0xxIA1LIvi76EsEldUiBy/BeCdeD88KD+Q9KphvwMrUWDq+bBw OgsWeXDfC7M16uEs+FccZKl2rmfihQNgxS/sIuYQwaoTbvowdl7bXqDsVuw1aZfPZco1 8EIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=YF6sMz2cW9qQ79KF8QdKNgAmcqWT0vguvBS/1HVskGU=; b=pnbVYfP1OWtIeU5n8hEcHA+UtFymv+34tFyQywMo4TmOaIYQ1WmcM62JuROEC54hD6 5omPzqbbYbNafEiiAMzFImdnErpFSRqXHYOdlI6t5WDdLXCitCYJTm6tguYNDb1h13yu cONJ8/BQE/rtRJa7JQrP/xX//QBd5ZeBnPrBeO6SyeUMz0FhiNm74T58X8nqmSkfeKw9 2bzmM96LQaxZSh+ag0biMwJUmEBaaBBM5IcIJ4Vb70YakTH/+wQYzJJ+lbXmsqxmt01h rIkGr8GjOf5pc0XVKw7akj05Y/vSBzVbyca5zmPHyzSKCr6KU3NBtcuOkxdPr0sfarmI KVRQ== X-Gm-Message-State: APjAAAVF9cf3hjTKUKQITR9FvE4HRQohTnZum1xXg2nrKKnHefMoPzfp tUl7nN3ahA1Z8VtEYlwjrKc= X-Google-Smtp-Source: APXvYqxe/YWc3T4lhSnavf4GwcdNCQn0jWG6nhx35UbNte+EuH2tFYw5fA3RTzDlGkI04VLbMKEx+A== X-Received: by 2002:a2e:91c6:: with SMTP id u6mr3732121ljg.68.1566581389037; Fri, 23 Aug 2019 10:29:49 -0700 (PDT) Received: from oak.local ([92.243.181.209]) by smtp.gmail.com with ESMTPSA id s3sm736601ljj.85.2019.08.23.10.29.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 23 Aug 2019 10:29:48 -0700 (PDT) From: "Matwey V. Kornilov" To: Kever Yang , "Matwey V. Kornilov" , Philipp Tomsich , Jagan Teki , Simon Glass , Chris Webb Date: Fri, 23 Aug 2019 20:29:27 +0300 Message-Id: <20190823172930.4883-4-matwey.kornilov@gmail.com> X-Mailer: git-send-email 2.16.4 In-Reply-To: <20190823172930.4883-1-matwey.kornilov@gmail.com> References: <20190823172930.4883-1-matwey.kornilov@gmail.com> Cc: open list Subject: [U-Boot] [PATCH 3/5] doc: rockchip: use idbloader.img for rk3328 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" Makefile now produces ready-to-deploy idbloader.img file. Signed-off-by: Matwey V. Kornilov --- doc/README.rockchip | 5 ----- 1 file changed, 5 deletions(-) diff --git a/doc/README.rockchip b/doc/README.rockchip index 6e58cfde49..401dc19d91 100644 --- a/doc/README.rockchip +++ b/doc/README.rockchip @@ -309,11 +309,6 @@ Booting from an SD card on Pine64 Rock64 (RK3328) For Rock64 rk3328 board the following three parts are required: TPL, SPL, and the u-boot image tree blob. - - Create TPL/SPL image - - => tools/mkimage -n rk3328 -T rksd -d tpl/u-boot-tpl.bin idbloader.img - => cat spl/u-boot-spl.bin >> idbloader.img - - Write TPL/SPL image at 64 sector => sudo dd if=idbloader.img of=/dev/mmcblk0 seek=64 From patchwork Fri Aug 23 17:29:28 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Matwey V. Kornilov" X-Patchwork-Id: 1152319 X-Patchwork-Delegate: philipp.tomsich@theobroma-systems.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="JPcabIDK"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 46FT3y3DMrz9s7T for ; Sat, 24 Aug 2019 03:32:14 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 0EDE9C21C29; Fri, 23 Aug 2019 17:31:34 +0000 (UTC) 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=FREEMAIL_FROM, RCVD_IN_MSPIKE_H2, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 78722C220E8; Fri, 23 Aug 2019 17:31:32 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 120E9C220D5; Fri, 23 Aug 2019 17:29:53 +0000 (UTC) Received: from mail-lf1-f67.google.com (mail-lf1-f67.google.com [209.85.167.67]) by lists.denx.de (Postfix) with ESMTPS id 62E3EC2211C for ; Fri, 23 Aug 2019 17:29:51 +0000 (UTC) Received: by mail-lf1-f67.google.com with SMTP id s19so7681357lfb.9 for ; Fri, 23 Aug 2019 10:29:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=FvcNzCvc1XRfa7d1fBUR+oMzzIr1uu1CFIj03iARUnw=; b=JPcabIDKk7NV3UeIV+hOr/r2VgVLNRPw3OIIGfSPQV0UJToX5onAPTRJ4ED6/mO+Pi yLJnogZjYktoufLf4GcTnmz/2QtLvcQBFArRLwKRh3i/yj5DmtRfgrvOHCUOVaQZBJxz 3BX0xmAvvWEiQ3T6TtO75Ht3a1KaAhGkn4mxV8Tms1eotg+z1ccimCUhJMJwZfH4vSX4 mZ5Eiim1CERLIAxfmPX/Qac3C+P2IKhGRbcjqR1MpUosnozTLiBfIPEGiy+/Mz7QbTMH muVO408uxs7ymnpPS7Z8A7uAkM1Wc71j8iOvFnB7e/TkjeY+CyDJUkOGLx8c+e78ddTx 2bPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=FvcNzCvc1XRfa7d1fBUR+oMzzIr1uu1CFIj03iARUnw=; b=avsU/hbMCaRFfVbCUJTzg3Cfey3/TV8HmSel+EE7xeEjkDZhbUt65iJwxWoEEdKntO sF0eKTmxcEnZl0Tw96ESUAi5smRWSJRrsZY1qXcqSznVb1N/cKYSK2jPZuAA0D8+d0OL JsGlxh3/yHNyItH9bkllJWdfVm3ODapDsmdParkZMkLezwiWE/RJNm9R4BCTUaAm66O8 j7GQYYN+Toz9WgN/RAf2HI3ObUoLNtJHoODdmNeb/ZWDefvmTeds4f8Zt/7NAgNqBDZe Yg/h9NcFJxdJH3paIaUpkRZa9fNKcwSWXoAZ+KqrGg3vfg6a7hhwmuph3m+aSKvlEhQp 5AjQ== X-Gm-Message-State: APjAAAUuIgms0FWl3NCIs2FtyGim20yrh7kOnYJGsevOdut9d8Z5z+R/ Bfwl1wf6TtN1ittiS7Myk+s= X-Google-Smtp-Source: APXvYqwfWTxuh1ymnZnkVnHybbz72swyDvCQBXPs2vm7hKcd3Jy7htD5trTM/UrYDQImdjcAYWt8lA== X-Received: by 2002:a19:ef05:: with SMTP id n5mr1439662lfh.192.1566581390686; Fri, 23 Aug 2019 10:29:50 -0700 (PDT) Received: from oak.local ([92.243.181.209]) by smtp.gmail.com with ESMTPSA id s3sm736601ljj.85.2019.08.23.10.29.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 23 Aug 2019 10:29:49 -0700 (PDT) From: "Matwey V. Kornilov" To: Philipp Tomsich , Klaus Goger Date: Fri, 23 Aug 2019 20:29:28 +0300 Message-Id: <20190823172930.4883-5-matwey.kornilov@gmail.com> X-Mailer: git-send-email 2.16.4 In-Reply-To: <20190823172930.4883-1-matwey.kornilov@gmail.com> References: <20190823172930.4883-1-matwey.kornilov@gmail.com> Cc: open list , "Matwey V. Kornilov" Subject: [U-Boot] [PATCH 4/5] doc: lion_rk3368: use idbloader.img for rk3368 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" Makefile now produces ready-to-deploy idbloader.img file. Signed-off-by: Matwey V. Kornilov --- board/theobroma-systems/lion_rk3368/README | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/board/theobroma-systems/lion_rk3368/README b/board/theobroma-systems/lion_rk3368/README index 83e4332984..ad3ac93bd4 100644 --- a/board/theobroma-systems/lion_rk3368/README +++ b/board/theobroma-systems/lion_rk3368/README @@ -18,8 +18,6 @@ Build the TPL/SPL stage ======================= > make CROSS_COMPILE=aarch64-unknown-elf- ARCH=arm - > tools/mkimage -n rk3368 -T rksd -d tpl/u-boot-tpl.bin spl-3368.img - > cat spl/u-boot-spl-dtb.bin >> spl-3368.img Build the full U-Boot and a FIT image including the ATF ======================================================= @@ -35,7 +33,7 @@ Copy the SPL to offset 32k and the FIT image containing the payloads SD-Card ------- - > dd if=spl-3368.img of=/dev/sdb seek=64 + > dd if=idbloader.img of=/dev/sdb seek=64 > dd if=u-boot.itb of=/dev/sdb seek=512 eMMC From patchwork Fri Aug 23 17:29:29 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Matwey V. Kornilov" X-Patchwork-Id: 1152320 X-Patchwork-Delegate: philipp.tomsich@theobroma-systems.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="KWEp9go7"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 46FT443frnz9s7T for ; Sat, 24 Aug 2019 03:32:20 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 39308C220E8; Fri, 23 Aug 2019 17:30:32 +0000 (UTC) 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=FREEMAIL_FROM, RCVD_IN_MSPIKE_H2, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 73539C22130; Fri, 23 Aug 2019 17:30:31 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 32C72C22122; Fri, 23 Aug 2019 17:29:55 +0000 (UTC) Received: from mail-lf1-f65.google.com (mail-lf1-f65.google.com [209.85.167.65]) by lists.denx.de (Postfix) with ESMTPS id 4F482C21C29 for ; Fri, 23 Aug 2019 17:29:53 +0000 (UTC) Received: by mail-lf1-f65.google.com with SMTP id b17so7693856lff.7 for ; Fri, 23 Aug 2019 10:29:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Ficu48hX4zD0Bl1IB54uuo2KFQLb6cJ/e/6LTBPOsps=; b=KWEp9go7iGT3AJOC7rtFPR0a2AwNT8+fKKX5uSl6NPoa8ZJEbTT61ilVIP6lZCC4V1 jLYE1PKaDoBZudaL/H92lbKRKHD8EUG/nPjS5ksvIwM9qPBUld/Li+ckL/sKs2Lk37QQ pNRlj0U2R0+LqUti4iXg48ue39UI0XEqKlS/HBmpPXgE4p7TdxvkV7YuHQn5m4m0jJSA KjRT/YHkZ7B/Vb+oELRwRCsEPWV9RrIVLaQnvxivmufAs+x6Xhx1gcW5tQqncHKxPiJy 5eG+Kw/bHPTtIWPj6Q5jAcqWL6hqxFlyVOdy0IQungdpmHn8/rBeXtBCVWwfp8PEoJyr mNgA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Ficu48hX4zD0Bl1IB54uuo2KFQLb6cJ/e/6LTBPOsps=; b=Q1y9V07iVTlcZbE69tumi/ZSBj29OBhFbe3agPYFohCL/o9K+qCEHLjC6kBK419TQ8 YeeOGEay3ByYc7DBadO9FHj1uiCsKJ2HBcHjFWVhm4Xh11w70xYl3Sa3Pa3OqhrYSYi6 +PEL9hhwWiY0W4YBZ+xC8Qaqq5O2XTKNG3fgXhT40yiyi+dt+ZeLMPA7fQFfqTRI7RzF muKFgfJODNE5eu9G0nflz2t5ST9c2mtY6l4F7ikw9mHO3jjiTGRCFJl2JdP34po9UvZz /jqcW/4q50UNm7SKP50ZkMEE7rdsYJ9Q+9LwC/1SARlDhlUVo3Njdufoxq1Ub+UKA36E PJag== X-Gm-Message-State: APjAAAVzmn+N9tzVAxppmAYuCk0VdmfUeAkvNk0zZBaqTSrnWQcyUsMy RJChtUQWY2lQe8fz9Pa6LnvmKji/H40= X-Google-Smtp-Source: APXvYqy+WjErfn3eNHZNfzelBDZLGwb57CNL656Ubd/QVx3ZMuqaxexJ2GcQhd8RDwuMsCIznL/rzQ== X-Received: by 2002:ac2:5181:: with SMTP id u1mr3453348lfi.42.1566581392623; Fri, 23 Aug 2019 10:29:52 -0700 (PDT) Received: from oak.local ([92.243.181.209]) by smtp.gmail.com with ESMTPSA id s3sm736601ljj.85.2019.08.23.10.29.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 23 Aug 2019 10:29:51 -0700 (PDT) From: "Matwey V. Kornilov" To: Kever Yang , "Matwey V. Kornilov" , Philipp Tomsich , Jagan Teki , Simon Glass , Chris Webb Date: Fri, 23 Aug 2019 20:29:29 +0300 Message-Id: <20190823172930.4883-6-matwey.kornilov@gmail.com> X-Mailer: git-send-email 2.16.4 In-Reply-To: <20190823172930.4883-1-matwey.kornilov@gmail.com> References: <20190823172930.4883-1-matwey.kornilov@gmail.com> Cc: open list Subject: [U-Boot] [PATCH 5/5] doc: rockchip: use idbloader.img for rk3399 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" Makefile now produces ready-to-deploy idbloader.img file. u-boot has support for TPL at rk3399 platform for all boards, so there is not reason to refer binary loaders. Signed-off-by: Matwey V. Kornilov --- doc/README.rockchip | 6 ------ 1 file changed, 6 deletions(-) diff --git a/doc/README.rockchip b/doc/README.rockchip index 401dc19d91..b5311adcd8 100644 --- a/doc/README.rockchip +++ b/doc/README.rockchip @@ -324,12 +324,6 @@ To write an image that boots from an SD card (assumed to be /dev/sdc): Option 1: Package the image with Rockchip miniloader: - - Create idbloader.img - - => cd /path/to/u-boot - => ./tools/mkimage -n rk3399 -T rksd -d /path/to/rkbin/bin/rk33/rk3399_ddr_800MHz_v1.20.bin idbloader.img - => cat /path/to/rkbin/bin/rk33/rk3399_miniloader_v1.19.bin >> idbloader.img - - Write idbloader.img at 64 sector => sudo dd if=idbloader.img of=/dev/sdc seek=64