From patchwork Sun May 24 17:32:11 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1296924 X-Patchwork-Delegate: ykai007@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=amarulasolutions.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=amarulasolutions.com header.i=@amarulasolutions.com header.a=rsa-sha256 header.s=google header.b=oZUW2Mmf; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 49VS3t66ftz9sRW for ; Mon, 25 May 2020 03:32:58 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 4C7FC80677; Sun, 24 May 2020 19:32:53 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=amarulasolutions.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=amarulasolutions.com header.i=@amarulasolutions.com header.b="oZUW2Mmf"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 83F938067C; Sun, 24 May 2020 19:32:51 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,SPF_HELO_NONE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-pj1-x1041.google.com (mail-pj1-x1041.google.com [IPv6:2607:f8b0:4864:20::1041]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 7B92980670 for ; Sun, 24 May 2020 19:32:48 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=amarulasolutions.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=jagan@amarulasolutions.com Received: by mail-pj1-x1041.google.com with SMTP id z15so3340805pjb.0 for ; Sun, 24 May 2020 10:32:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=JJFMF+Ax+5gVV/Q38dMlVO4gPHQpjzSEEKwWZgAY++Q=; b=oZUW2MmfKB8jINakU/3w9uta2sd1Ryn5oTGxJfc5J6dwebWzsdRETOJHyfl4ubiU00 ubqzeaUlwUbaIGR/HTuR/fsGeFZm6u2dr2AeoYDeTzWFc7DrYHXJSyUZmDsE/op9gtW2 6soVUIiNFHXvTIwp164bUVYPDqt80O7DtG/+g= 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:mime-version :content-transfer-encoding; bh=JJFMF+Ax+5gVV/Q38dMlVO4gPHQpjzSEEKwWZgAY++Q=; b=sywUruu9N+OsYziDF508esE0y+ZQ/8+q4+hy7UbKffOt1oBpG44lLyxWSDftFwsoU7 VTEpBBI+868TQlq8iMGjhmU/VXF/NZQcB7X+NslbJv04sm5e68fsmhUjfqAaHlvC+shL Jjonuzpoh7bAkWWuV49aEtk/KFFQWAwD2M6lOK+L9Q/Il5SqgQjioSXYRMiWNJm9xLNx 2BJ+AQhQLRd6Rxoji6t/ab/P2OL1kBa1lMTAGOn9p6H8Bu6GAhscTCo8BetUI658gSsl oS0tuDPxNTM7fiePfSnJaT9YFF4HmbWNDvrtWenIJ8T9W40gbW9VEBVNsRMQw0QS76jE heyw== X-Gm-Message-State: AOAM533By2TraAataxn5jLN4X6rcvux+dPG+E+i5ues0OvepG+VK1KxO IjplxY42Av95UgX8CRVTGxyJUg== X-Google-Smtp-Source: ABdhPJxPJiPmY4iKRPFnKlSBW9IDXpplxGPkuhYHvNqoqQSeJEJeeC/eQVqQsovG2FvsPsz7hE505Q== X-Received: by 2002:a17:90a:1141:: with SMTP id d1mr16820302pje.31.1590341566632; Sun, 24 May 2020 10:32:46 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c809:c7d5:9b1:856c:6c2b:bde7]) by smtp.gmail.com with ESMTPSA id y85sm10617271pfc.24.2020.05.24.10.32.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 May 2020 10:32:45 -0700 (PDT) From: Jagan Teki To: Kever Yang , Simon Glass , Philipp Tomsich Cc: sunil@amarulasolutions.com, u-boot@lists.denx.de, linux-rockchip@lists.infradead.org, linux-amarula@amarulasolutions.com, Jagan Teki Subject: [PATCH 1/3] arm64: dts: rk3399-nanopi4: Add u-boot,spl-boot-order Date: Sun, 24 May 2020 23:02:11 +0530 Message-Id: <20200524173213.201123-1-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.30rc1 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.102.2 at phobos.denx.de X-Virus-Status: Clean Add u-boot,spl-boot-order as sdhci and sdmmc for booting from eMMC and SD card. Signed-off-by: Jagan Teki Reviewed-by: Kever Yang --- arch/arm/dts/rk3399-nanopi4-u-boot.dtsi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/dts/rk3399-nanopi4-u-boot.dtsi b/arch/arm/dts/rk3399-nanopi4-u-boot.dtsi index a126bbaf08..a9d10592d5 100644 --- a/arch/arm/dts/rk3399-nanopi4-u-boot.dtsi +++ b/arch/arm/dts/rk3399-nanopi4-u-boot.dtsi @@ -5,6 +5,12 @@ #include "rk3399-u-boot.dtsi" +/{ + chosen { + u-boot,spl-boot-order = "same-as-spl", &sdhci, &sdmmc; + }; +}; + &sdmmc { pinctrl-0 = <&sdmmc_bus4 &sdmmc_clk &sdmmc_cmd &sdmmc_cd>; }; From patchwork Sun May 24 17:32:12 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1296925 X-Patchwork-Delegate: ykai007@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=amarulasolutions.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=amarulasolutions.com header.i=@amarulasolutions.com header.a=rsa-sha256 header.s=google header.b=TK/jvCjS; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 49VS4J2wVpz9sRW for ; Mon, 25 May 2020 03:33:20 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id B181E81015; Sun, 24 May 2020 19:33:13 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=amarulasolutions.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=amarulasolutions.com header.i=@amarulasolutions.com header.b="TK/jvCjS"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 833AA8105B; Sun, 24 May 2020 19:33:12 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,SPF_HELO_NONE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-pf1-x444.google.com (mail-pf1-x444.google.com [IPv6:2607:f8b0:4864:20::444]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id DE6808067C for ; Sun, 24 May 2020 19:33:09 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=amarulasolutions.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=jagan@amarulasolutions.com Received: by mail-pf1-x444.google.com with SMTP id b190so7862365pfg.6 for ; Sun, 24 May 2020 10:33:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ne/8/a9OXvwh91Zw6UxFhdu2CXcMc/kGaJGpUeeEHPo=; b=TK/jvCjSMC5qVzlkPVJdOLMJQRQCPXdTC3q2D9nGmkW88vxbsybgtScdL6ZNSjY1HG unGM/DJuptETf2Y65jXycGyr8izm/Wqm3sbAr1OlRYS+X4FtBlrsnCKA7AAWX9qj/e7Z uCv15JrTu+dUetJ0qvlpQ0N/30vnDCrCuA5GU= 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:mime-version:content-transfer-encoding; bh=ne/8/a9OXvwh91Zw6UxFhdu2CXcMc/kGaJGpUeeEHPo=; b=B4BeXY98WApW222dnWTe3E9yXqWRY+DLiZFRlfffmHMX9HJklLxFo2vPeYFa/qeflT VeqvsKIO2ccWaM5r9m4Ks5MGS+mqrOSj1OKWIYsU91Leo+E1hyqfvdtJOBGpO461+2Op obp5dP7oVVEJHUwTeTPNAcNsPcYibwd6LjQDB3OeLoHox3a+E+e5QMY8P8oQY+l1MD5H oZy4YV9ky+MBdBM1BjJCfg9MEoCRJ+WdgM92O2WOWeYOHpRA0HNIad9CPcRy+rdE7Auj 7kmIvE2n/1nrzX2EnEGyMOukVDmle6DljXepFS1NUE/5bJ7oiWg0cB7eRsr+5BpfNGtR /C2g== X-Gm-Message-State: AOAM533T2vO8J0790sitcKTuRl9pHWjvbHQBtpuyg3tBVtGpSEPpsoN6 uzcIylA3HBZRXgqU6sqKwxC9Cw== X-Google-Smtp-Source: ABdhPJyPGDUNMuycugY1/gX2AGd22oNYvmQfpRYLkfKUDhhMyFNAIBWPNx8uE8R/+AgIQku0aBJ0Ww== X-Received: by 2002:aa7:9466:: with SMTP id t6mr13857242pfq.299.1590341588529; Sun, 24 May 2020 10:33:08 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c809:c7d5:9b1:856c:6c2b:bde7]) by smtp.gmail.com with ESMTPSA id y85sm10617271pfc.24.2020.05.24.10.32.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 May 2020 10:33:07 -0700 (PDT) From: Jagan Teki To: Kever Yang , Simon Glass , Philipp Tomsich Cc: sunil@amarulasolutions.com, u-boot@lists.denx.de, linux-rockchip@lists.infradead.org, linux-amarula@amarulasolutions.com, Jagan Teki Subject: [PATCH 2/3] nanopc-t4: Enable USB Gadget Date: Sun, 24 May 2020 23:02:12 +0530 Message-Id: <20200524173213.201123-2-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200524173213.201123-1-jagan@amarulasolutions.com> References: <20200524173213.201123-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.30rc1 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.102.2 at phobos.denx.de X-Virus-Status: Clean Enable DWC3 core, gadget for nanopc-t4 board. This would help to use fastboot by default. Signed-off-by: Jagan Teki Reviewed-by: Kever Yang --- configs/nanopc-t4-rk3399_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configs/nanopc-t4-rk3399_defconfig b/configs/nanopc-t4-rk3399_defconfig index 3bb5b498f2..40fb797c49 100644 --- a/configs/nanopc-t4-rk3399_defconfig +++ b/configs/nanopc-t4-rk3399_defconfig @@ -50,7 +50,10 @@ CONFIG_USB_XHCI_HCD=y CONFIG_USB_XHCI_DWC3=y CONFIG_USB_EHCI_HCD=y CONFIG_USB_EHCI_GENERIC=y +CONFIG_USB_DWC3=y +CONFIG_ROCKCHIP_USB2_PHY=y CONFIG_USB_KEYBOARD=y +CONFIG_USB_GADGET=y CONFIG_USB_HOST_ETHER=y CONFIG_USB_ETHER_ASIX=y CONFIG_USB_ETHER_ASIX88179=y From patchwork Sun May 24 17:32:13 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1296926 X-Patchwork-Delegate: ykai007@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=amarulasolutions.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=amarulasolutions.com header.i=@amarulasolutions.com header.a=rsa-sha256 header.s=google header.b=f2EAXMoZ; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 49VS4Z6VfHz9sRW for ; Mon, 25 May 2020 03:33:34 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 4606A8105B; Sun, 24 May 2020 19:33:32 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=amarulasolutions.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=amarulasolutions.com header.i=@amarulasolutions.com header.b="f2EAXMoZ"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 122E7811F9; Sun, 24 May 2020 19:33:31 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,SPF_HELO_NONE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-pl1-x642.google.com (mail-pl1-x642.google.com [IPv6:2607:f8b0:4864:20::642]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 344BC80677 for ; Sun, 24 May 2020 19:33:28 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=amarulasolutions.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=jagan@amarulasolutions.com Received: by mail-pl1-x642.google.com with SMTP id d3so6639311pln.1 for ; Sun, 24 May 2020 10:33:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=lD59mt+Urc8oNiqOxLeBOVU51+Fn4Lh/7rB6OWjHyyA=; b=f2EAXMoZnpnSxHR4tv9vsp5zYnDlOkG7qQK9KJ6+rd3G5VQ84XOoBBc20xu8gEUmUb SOM59NJI03qWhiTemh2/+e1t/rotbwdTastiAsB93IaVZcAZhIBQxt0hYIhjHS5Lmjro ouJaMZBcZh50RULuPVFyXFKJ1Yishsdpc6LN0= 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:mime-version:content-transfer-encoding; bh=lD59mt+Urc8oNiqOxLeBOVU51+Fn4Lh/7rB6OWjHyyA=; b=nMF0s7d5cGFG6B6/RUxr43apDw1tvSSXsguXL+wNy9HLEnjcxmm2u23w1XHgEwznOn JAxwUAE9b2VqyfnW45EXwuugllahQ1zVlbB1bOYdPcKhKe/NCdoWctnBRxuNQ5Qs2Wht z1GjdlmkBKSCAGtnlw6anmKmlI6pybc5ZWjSKjNKN5m8Dodo7wpm1JXtz+c5b3kRtIDc AqAVllf8gKF2fzvprpFVNir8ZLdxjC7+g5AT1jDYsZI9682wOrcmHdCi55rj3Otxd/hs TN97bQa3R6l+48mgeqyNg30HDVzhpNc7uETi7+msiWsunIld5D4ZnQRd8/CX1C2JNQky Njzg== X-Gm-Message-State: AOAM530GXts07Rz3w2uqrSZqxoY7g1fu+o8rbT4d6tZNGx4IQSz39gvC i8H3O1OwzSeKKAVCa8oGN3vzgg== X-Google-Smtp-Source: ABdhPJznzwkVPko459FVcXtWhIgU7ZupfbV2A/I25NikiiKU9SQvUJtM6WlBR3fRlN9k4wCx7+BQZQ== X-Received: by 2002:a17:902:ab8b:: with SMTP id f11mr25341765plr.145.1590341606762; Sun, 24 May 2020 10:33:26 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c809:c7d5:9b1:856c:6c2b:bde7]) by smtp.gmail.com with ESMTPSA id y85sm10617271pfc.24.2020.05.24.10.33.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 May 2020 10:33:26 -0700 (PDT) From: Jagan Teki To: Kever Yang , Simon Glass , Philipp Tomsich Cc: sunil@amarulasolutions.com, u-boot@lists.denx.de, linux-rockchip@lists.infradead.org, linux-amarula@amarulasolutions.com, Jagan Teki Subject: [PATCH 3/3] doc: rockchip: Document eMMC program steps Date: Sun, 24 May 2020 23:02:13 +0530 Message-Id: <20200524173213.201123-3-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200524173213.201123-1-jagan@amarulasolutions.com> References: <20200524173213.201123-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.30rc1 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.102.2 at phobos.denx.de X-Virus-Status: Clean Document eMMC partition creation and program steps for rockchip platforms. Signed-off-by: Jagan Teki Reviewed-by: Kever Yang --- doc/board/rockchip/rockchip.rst | 32 ++++++++++++++++++++++++++++++-- 1 file changed, 30 insertions(+), 2 deletions(-) diff --git a/doc/board/rockchip/rockchip.rst b/doc/board/rockchip/rockchip.rst index cd9c8d6dc4..1faa675aa8 100644 --- a/doc/board/rockchip/rockchip.rst +++ b/doc/board/rockchip/rockchip.rst @@ -117,14 +117,42 @@ To write an image that boots from an SD card (assumed to be /dev/sda):: sudo dd if=u-boot-rockchip.bin of=/dev/sda seek=64 sync +eMMC +^^^^ + +eMMC flash would probe on mmc0 in most of the rockchip platforms. + +Create GPT partition layout as defined in configurations:: + + mmc dev 0 + gpt write mmc 0 $partitions + +Connect the USB-OTG cable between host and target device. + +Launch fastboot at target:: + + fastboot 0 + +Upon successful gadget connection,host show the USB device like:: + + lsusb + Bus 001 Device 020: ID 2207:330c Fuzhou Rockchip Electronics Company RK3399 in Mask ROM mode + +Program the flash:: + + sudo fastboot -i 0x2207 flash loader1 idbloader.img + sudo fastboot -i 0x2207 flash loader2 u-boot.itb + +Note: for rockchip 32-bit platforms the U-Boot proper image +is u-boot-dtb.img + TODO ---- - Add rockchip idbloader image building - Add rockchip TPL image building - Document SPI flash boot -- Describe steps for eMMC flashing - Add missing SoC's with it boards list .. Jagan Teki -.. Fri Jan 10 00:08:40 IST 2020 +.. Sunday 24 May 2020 10:08:41 PM IST