[{"id":1766064,"web_url":"http://patchwork.ozlabs.org/comment/1766064/","msgid":"<CAPnjgZ3C3uK6t9GAGb6ywbPz1ut=FecE6Ff_+ioXm37NRnZOEg@mail.gmail.com>","list_archive_url":null,"date":"2017-09-11T06:17:42","subject":"Re: [U-Boot] [PATCH 09/10] rockchip: evb-rk3229: add README file\n\tfor OP-TEE support","submitter":{"id":6170,"url":"http://patchwork.ozlabs.org/api/people/6170/","name":"Simon Glass","email":"sjg@chromium.org"},"content":"Hi Kever,\n\nOn 5 September 2017 at 20:14, Kever Yang <kever.yang@rock-chips.com> wrote:\n> Detail of step by step to bring up the board with OP-TEE support.\n>\n> Signed-off-by: Kever Yang <kever.yang@rock-chips.com>\n> ---\n>\n>  board/rockchip/evb_rk3229/README | 72 ++++++++++++++++++++++++++++++++++++++++\n>  1 file changed, 72 insertions(+)\n>  create mode 100644 board/rockchip/evb_rk3229/README\n>\n> diff --git a/board/rockchip/evb_rk3229/README b/board/rockchip/evb_rk3229/README\n> new file mode 100644\n> index 0000000..93328c7\n> --- /dev/null\n> +++ b/board/rockchip/evb_rk3229/README\n> @@ -0,0 +1,72 @@\n\nCan you add an overall header at the top of the file?\n\n- what is OP-TEE\n- what is the point of all this\n- what pieces are needed\n- what the tools are for (rkdeveloptool, rkbin)\n\nnit: I think it is better to use============= for the top header and\n-------------- for the subheaders (which are below)\n\n> +Get the Source and prebuild binary\n> +==================================\n> +\n> +  > mkdir ~/evb_rk3229\n> +  > cd ~/evb_rk3229\n> +  > git clone git://git.denx.de/u-boot.git\n> +  > git clone https://github.com/OP-TEE/optee_os.git\n> +  > git clone https://github.com/rockchip-linux/rkbin.git\n> +  > git clone https://github.com/rockchip-linux/rkdeveloptool.git\n> +\n> +Compile the OP-TEE\n> +===============\n> +\n> +  > cd optee_os\n> +  > make clean\n> +  > make CROSS_COMPILE_ta_arm32=arm-none-eabi- PLATFORM=rockchip-rk322x\n> +  Get tee.bin in this step, copy it to U-Boot root dir:\n> +  > cp out/arm-plat-rockchip/core/tee-pager.bin ../u-boot/tee.bin\n> +\n> +Compile the U-Boot\n\nBuild U-Boot\n\n(since it compiles but also does other steps)\n\n> +==================\n> +\n> +  > cd ../u-boot\n> +  > export CROSS_COMPILE=arm-linux-gnueabihf-\n> +  > export ARCH=arm\n> +  > make evb-rk3229_defconfig\n> +  > make\n> +  > make u-boot.itb\n> +\n> +  Get tpl/u-boot-tpl.bin, spl/u-boot-spl.bin and u-boot.itb in this step.\n> +\n> +Compile the rkdeveloptool\n> +=======================\n> +  Follow instructions in latest README\n> +  > cd ../rkflashtool\n> +  > autoreconf -i\n> +  > ./configure\n> +  > make\n> +  > sudo make install\n> +\n> +  Get rkdeveloptool in you Host in this step.\n\nHow about: Install rkdeveloptool on your host as follows\n\n(above you could put that at the top of this section)\n\n> +\n> +Both origin binaries and Tool are ready now, choose either option 1 or\n> +option 2 to deploy U-Boot.\n\nWhere are the two options. If they are below, please number them 1 and 2.\n\n> +\n> +Package the image\n> +=================\n> +\n> +  > cd ../u-boot\n> +  > tools/mkimage -n rk322x -T rksd -d tpl/u-boot-spl.bin idbloader.img\n> +  > cat spl/u-boot-spl.bin >> idbloader.img\n> +\n> +  Get idbloader.img in this step.\n\nPut at top under 'Package the image'\n\n> +\n> +Flash the image to eMMC\n> +=======================\n> +Power on(or reset with RESET KEY) with MASKROM KEY preesed, and then:\n> +  > cd ..\n> +  > rkdeveloptool db rkbin/rk32/rk322x_loader_v1.04.232.bin\n> +  > rkdeveloptool wl 64 u-boot/idbloader.img\n> +  > rkdeveloptool wl 0x4000 u-boot/u-boot.itb\n> +  > rkdeveloptool rd\n> +\n> +Flash the image to SD card\n> +==========================\n> +  > dd if=u-boot/idbloader.img of=/dev/sdb seek=64\n> +  > dd if=u-boot/u-boot.itb of=/dev/sdb seek=16384\n> +\n> +You should be able to get U-Boot log message with OP-TEE boot info.\n\ns/log/console/\n\nCan you please add an example console message here?\n\n> +\n> +For more detail, please reference to:\n> +http://opensource.rock-chips.com/wiki_Boot_option\n> --\n> 1.9.1\n>\n\nRegards,\nSimon","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=\"QoWJcw6s\"; \n\tdkim=fail reason=\"signature verification failed\" (1024-bit key;\n\tunprotected) header.d=chromium.org header.i=@chromium.org\n\theader.b=\"PV//6m0f\"; dkim-atps=neutral"],"Received":["from lists.denx.de (dione.denx.de [81.169.180.215])\n\tby ozlabs.org (Postfix) with ESMTP id 3xrHtZ0CNXz9s7g\n\tfor <incoming@patchwork.ozlabs.org>;\n\tMon, 11 Sep 2017 16:23:33 +1000 (AEST)","by lists.denx.de (Postfix, from userid 105)\n\tid A634DC21EE6; Mon, 11 Sep 2017 06:20:05 +0000 (UTC)","from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id 86B4DC21E40;\n\tMon, 11 Sep 2017 06:19:14 +0000 (UTC)","by lists.denx.de (Postfix, from userid 105)\n\tid CB1C5C21CB6; Mon, 11 Sep 2017 06:18:08 +0000 (UTC)","from mail-qk0-f174.google.com (mail-qk0-f174.google.com\n\t[209.85.220.174])\n\tby lists.denx.de (Postfix) with ESMTPS id B5469C21E40\n\tfor <u-boot@lists.denx.de>; Mon, 11 Sep 2017 06:18:04 +0000 (UTC)","by mail-qk0-f174.google.com with SMTP id z143so16638917qkb.3\n\tfor <u-boot@lists.denx.de>; Sun, 10 Sep 2017 23:18:04 -0700 (PDT)","by 10.200.37.200 with HTTP; Sun, 10 Sep 2017 23:17:42 -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=suPXp0RIJTK7dCu1QgpKquxPgMy25moVNKvacuXmL2I=;\n\tb=QoWJcw6sMvdYHcqRpY+gA6mlMrvnMOgnjjS95b5HmZnhZ49uer9HSGLaDUrZrr2FaI\n\tJrw1xxFx5ZtOlewFb7uRmNsPTYi24aBgnK85ToZ9c/QyGlYyerfl3W0nqV7O4P1MrIg6\n\t1KCij6Vlw/TaWg0h9js489uEB8lJ7Tya5sh2W1IvJi3Syhv9bFsB2gVNzE0oSojIwKaV\n\ts6TdQ06tPJk6TsRmFhBdboITfOwxR5d7de1f+T1BOq8HzEeJjAm4XC0MilNxj3V1isAX\n\tem5/VjgIQMYQmQ+flTfhnEre/j2eMg8VQG5DVibVhlAc3b/hWaa3YKKNVAU12oqAlURd\n\taJ5w==","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=suPXp0RIJTK7dCu1QgpKquxPgMy25moVNKvacuXmL2I=;\n\tb=PV//6m0foyPP6n1sTlA7K2xH/4DZdI5Ni3KdOI0E64sPhmH4ucKgHrLpjNNch008z1\n\t+vbKmtczPlma6kG1QJ5aac9ik7rUb58v/cxdYm3AHCsWbBTTK0/PDR9gpIhA3Jbcpm4q\n\tiuM/ZrHhnCrDxI1PZnaWxm071nbgkgaLtg8eE="],"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=suPXp0RIJTK7dCu1QgpKquxPgMy25moVNKvacuXmL2I=;\n\tb=W9JKT4PZrVHEugB4vtNJuPmcO/XmjOQufDuhcnAh/O+q/oG64i83DBzYcjTY7iPgY/\n\tmXOaVYfxE7eBdEgfhcnyQaTVZfZ2TTPnlt4/g9Nxd9GDA+ydlH135AHVTfMnyC/g8wgr\n\tZPwbSyLe/WvF8hN4LN8CkYV0uB3XflSSfcpLFMYL3ztVr6KrCVtAdlHAry9YFaR3L07O\n\t+glLuTvid0gF8KM6wvTizZPyhkdXU+HfNE2vstwxcqRwupDj7Xvv+OwnmrSdAsZtgOdE\n\tqJgK2OGt0zLwKEVP+NO3ZRIx4ygTvnDpFTJVbeIea8cYMM8AaOgpDxXpxdiN5OUEJ3zp\n\tV2hg==","X-Gm-Message-State":"AHPjjUhJsFTEwV5jrGa49NU3rcFyxryVzNTYV6lgKRlxuvwte6/LUJ/z\n\th+NMgQRqzWjLl5J2Ny34dxKQ8wZbDqpNtnpGq3nr4A==","X-Google-Smtp-Source":"AOwi7QCE2BRrjOAPCxkNf01Py1v0/YQ8ibK+UIK4MLZcWkIiRRxVLFV2v91BcTneKo3eBJLeS+Nj0M0uSo7DeBrqgc0=","X-Received":"by 10.55.136.7 with SMTP id k7mr14476259qkd.302.1505110683325;\n\tSun, 10 Sep 2017 23:18:03 -0700 (PDT)","MIME-Version":"1.0","In-Reply-To":"<1504664087-26473-10-git-send-email-kever.yang@rock-chips.com>","References":"<1504664087-26473-1-git-send-email-kever.yang@rock-chips.com>\n\t<1504664087-26473-10-git-send-email-kever.yang@rock-chips.com>","From":"Simon Glass <sjg@chromium.org>","Date":"Mon, 11 Sep 2017 00:17:42 -0600","X-Google-Sender-Auth":"5d8SwoHEosNCynmdWHdcfts4Ik0","Message-ID":"<CAPnjgZ3C3uK6t9GAGb6ywbPz1ut=FecE6Ff_+ioXm37NRnZOEg@mail.gmail.com>","To":"Kever Yang <kever.yang@rock-chips.com>","Cc":"Vagrant Cascadian <vagrant@debian.org>,\n\tU-Boot Mailing List <u-boot@lists.denx.de>","Subject":"Re: [U-Boot] [PATCH 09/10] rockchip: evb-rk3229: add README file\n\tfor OP-TEE support","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>"}},{"id":1767195,"web_url":"http://patchwork.ozlabs.org/comment/1767195/","msgid":"<E1drnPc-00083Q-Gd@mail.theobroma-systems.com>","list_archive_url":null,"date":"2017-09-12T15:47:44","subject":"Re: [U-Boot] [U-Boot,\n\t09/10] rockchip: evb-rk3229: add README file for OP-TEE support","submitter":{"id":53488,"url":"http://patchwork.ozlabs.org/api/people/53488/","name":"Philipp Tomsich","email":"philipp.tomsich@theobroma-systems.com"},"content":"> Detail of step by step to bring up the board with OP-TEE support.\n> \n> Signed-off-by: Kever Yang <kever.yang@rock-chips.com>\n> ---\n> \n>  board/rockchip/evb_rk3229/README | 72 ++++++++++++++++++++++++++++++++++++++++\n>  1 file changed, 72 insertions(+)\n>  create mode 100644 board/rockchip/evb_rk3229/README\n> \n\nAcked-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>","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>)","Received":["from lists.denx.de (dione.denx.de [81.169.180.215])\n\tby ozlabs.org (Postfix) with ESMTP id 3xs8m66408z9s7f\n\tfor <incoming@patchwork.ozlabs.org>;\n\tWed, 13 Sep 2017 02:05:58 +1000 (AEST)","by lists.denx.de (Postfix, from userid 105)\n\tid 71BC0C22107; Tue, 12 Sep 2017 16:04:15 +0000 (UTC)","from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id 7DCD1C222A1;\n\tTue, 12 Sep 2017 16:04:13 +0000 (UTC)","by lists.denx.de (Postfix, from userid 105)\n\tid 929D9C2224A; Tue, 12 Sep 2017 16:03:55 +0000 (UTC)","from mail.theobroma-systems.com (vegas.theobroma-systems.com\n\t[144.76.126.164])\n\tby lists.denx.de (Postfix) with ESMTPS id D92D6C22168\n\tfor <u-boot@lists.denx.de>; Tue, 12 Sep 2017 16:03:52 +0000 (UTC)","from [86.59.122.178] (port=60150 helo=vpn-10-11-0-14.lan)\n\tby mail.theobroma-systems.com with esmtpsa\n\t(TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80)\n\t(envelope-from <philipp.tomsich@theobroma-systems.com>)\n\tid 1drnPc-00083Q-Gd; Tue, 12 Sep 2017 17:47:44 +0200"],"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=none autolearn=unavailable\n\tautolearn_force=no version=3.4.0","MIME-Version":"1.0","From":"Philipp Tomsich <philipp.tomsich@theobroma-systems.com>","To":"Kever Yang <kever.yang@rock-chips.com>","In-Reply-To":"<1504664087-26473-10-git-send-email-kever.yang@rock-chips.com>","References":"<1504664087-26473-10-git-send-email-kever.yang@rock-chips.com>","Message-Id":"<E1drnPc-00083Q-Gd@mail.theobroma-systems.com>","Date":"Tue, 12 Sep 2017 17:47:44 +0200","Cc":"vagrant@debian.org, u-boot@lists.denx.de","Subject":"Re: [U-Boot] [U-Boot,\n\t09/10] rockchip: evb-rk3229: add README file for OP-TEE support","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>"}}]