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: 1226 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pj1-f72.google.com (mail-pj1-f72.google.com [209.85.216.72]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 40C7D3F06D for ; Sun, 24 May 2020 19:33:29 +0200 (CEST) Received: by mail-pj1-f72.google.com with SMTP id jx21sf11492925pjb.7 for ; Sun, 24 May 2020 10:33:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1590341607; cv=pass; d=google.com; s=arc-20160816; b=DlCXdFPskd38VKMgh7RibfUiuDr7wXlieoUychyBOVSFYYhthtvXHThb06I4xPifaL 2dThBsjoRINb/aHd5P3AupBq28/kur/zivvfYgG5Uxg+bj5369o+DTsDcPauC1OtXESh Dl0Cj0fsC2OQYYed59lofv/ftDkoW1qWtfZycKI5bt+dwyjGYATIwZsSM73iE+pbRJuW Ff0UcrnyPKsleLWEg3hvK4ml40eiRSpSHsbZ0HLlpDxuyKwAY7Ge30blPZn30RWbX7rk CkMEB0XnMPou0p14W0GgSzIREM2KzUIuMwMOdQHDliapdzvjOsH/cl0tuDvZbKF81ExV mwIA== 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=uR7DZh8CCwpEQsDxWcHB7AxTG6L28qlqjS4oo+tCQkE=; b=I0bdzKnbfTg87K8tdH9egmUbpzrPpO9vOxyJQR2b5ZrHYjMOhRoKiaJJUOZ9YKg4Eg vjmat6BDL8z5DFldun09gB8NdMwpvi2nz9m/mLxzmx05BGOzmmvidt2j2EM3G9h83ydH 9ViHj3gJB66kFyrmxQBqIPuAOLA1U4bKNJBLEL6MGsmufIo0MpHYXRdUaNlaSSwRG682 hMjTmwULN2G2TkUtOnqRRwynbPtVO/RKsf/R5W+ZGK9FFU6NpVBNuMQNEY02CArAhVFZ +p8oy8qPOU6RxjNBZyoBRWWkwdcRSyAeLor00/Jelyp1e6ju/8raq4fYcdkm2rih3vWg W9Ng== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=f2EAXMoZ; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com 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:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=uR7DZh8CCwpEQsDxWcHB7AxTG6L28qlqjS4oo+tCQkE=; b=rEOb/Im7O5rZ+sTASKlBvZeP9M4763Gm9mbA9oW02LhAP7cFNK+rgXwrgjhzcu1FtE 86McFDRQY6APjC8tTFabK5rYq/paP5uIt4C59NMVd8ExxR4lH5/smVwJ/3E1Hf94YHg0 gNbpdXNgAVjTlz2ltDItuvvmner/O8tU+1Kvs= 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:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-unsubscribe; bh=uR7DZh8CCwpEQsDxWcHB7AxTG6L28qlqjS4oo+tCQkE=; b=ir9t/h7P2MIPiAWSjb68zT62IJbG+fs6vgwggb9o3ZJpi12fexCdImaph03JXgRjgO /0ZTeFigGCLyIrZQtlPsZrLXaoFDMOjTAD5hK3I2Z+BmnbstLrx98+auWS8dkmvy87lZ 8QTdusJkzIOk9LPxX+x9s6ruMbCzcm64Rk/D2RqZGk5CDAIw+I6FP2I44NtC9cGScuML 438zsxgbl7530I4SRDQ/bOzMl66d96KJ2k5AmovDfydvioQqnbiGmae9p/uUREVlyWSM LZfqsqdXp87F6oM0wb1BuB8T5tyH6iGRdNBj/oaQ2n+IsabeTwWqUeDiN2G43XvR6feI 1peA== X-Gm-Message-State: AOAM53372jcYQ13b0ziCiQLH/Smilnm0ootxlLIbyI8L4NHWGrY6ds/J /Or6NZ2GRh6Tv6nviJp/Lla2memx X-Google-Smtp-Source: ABdhPJw/mO+uKPXxdDLEntfCzxaVMkSEe2zxipppdpUH+lnzOIjrH+c6GACfC9ewKhksiCCCRMaW9Q== X-Received: by 2002:a17:90a:1aa3:: with SMTP id p32mr17065249pjp.4.1590341607542; Sun, 24 May 2020 10:33:27 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:902:12c:: with SMTP id 41ls2922326plb.2.gmail; Sun, 24 May 2020 10:33:27 -0700 (PDT) X-Received: by 2002:a17:902:8e87:: with SMTP id bg7mr24130127plb.91.1590341607092; Sun, 24 May 2020 10:33:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590341607; cv=none; d=google.com; s=arc-20160816; b=q3bPygPadFF0wY0CT26oQ2NZT3/dLih55WfMPr0g2rfrGhYzcA5IZMws1YphndMdxT Rad1sud9jlaWNrvSX0ognhAQPFAhrBh+3lxy482juUmq5rD5Xxq6Cr7vuZFAavrnxCW7 fAWKsSeUz8unYqSd8d0SR48Gd5oURzMe72/ot/Ur3sagsmiihsqN3pgq2giARMZ+dBQC oJz+e7EOzXZwpquhzNwkASwhuwjZfj5Y87ABhPorJjnlk+73iPlNiGpqGgkDH82BGzOe uhA7dp+znnH6K4Y3EkR+TajHUy2jWdLNVGXEMlIokN9DhQqhowcd7arZcBJWbqbih1mq zfxA== 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=lD59mt+Urc8oNiqOxLeBOVU51+Fn4Lh/7rB6OWjHyyA=; b=q8eqMIJL8Ex6ike5Cu2RE+fZg5X2a8krqJ/bvX/blgxSp9+e7Pr6tVqufN29OvfjSa o7hVRiCWF7JBJGCSFZ7TlD07wFE1KwBqkrgq3vvhwajUyWDwfYoJhiWKFGrPQL6tENiP ZGgdMDDyKSicP0TfbtLZtZi3UO9/CCaWdsrhm0We87BARSVIoUYziT/ceM5j9xA45O40 Je1LwTXcvYf3XlI9TXd6TKHCzvjRcjaCI+xONSiQp29tGA0vnAO1iZ5Ii9IXO9vK7DCs bTzFfp6n7dhSuf1jwZalalx7nCbi0tgatpuce6ubZ6EH4dlINbULU3golywvIZK7sFud BtQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=f2EAXMoZ; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id u1sor20161845plq.39.2020.05.24.10.33.27 for (Google Transport Security); Sun, 24 May 2020 10:33:27 -0700 (PDT) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; 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-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=f2EAXMoZ; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@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: , 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