Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 13510EB64DC for ; Tue, 18 Jul 2023 14:58:09 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 1FE628671C; Tue, 18 Jul 2023 16:57:31 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="h9spE7AU"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id F1274866E9; Tue, 18 Jul 2023 16:57:23 +0200 (CEST) Received: from mail-ed1-x530.google.com (mail-ed1-x530.google.com [IPv6:2a00:1450:4864:20::530]) (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 9C0CA866F7 for ; Tue, 18 Jul 2023 16:57:20 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=knaerzche@gmail.com Received: by mail-ed1-x530.google.com with SMTP id 4fb4d7f45d1cf-5216f44d881so5950063a12.1 for ; Tue, 18 Jul 2023 07:57:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1689692240; x=1692284240; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=SwpPs6WV1aA1zidyr1LaKMQKZsIk72/n8sGn3oxRkjA=; b=h9spE7AUFXk+VtkzLi+8i76dzuaLXYHJs5iOUe2lhDeQQaJT6EE7NE5xm8pAy0eBqN zXffoBDlXKorPQ4CDtQIWOQgARfh87Xq7mphSJBZt88PaNHwgd1RHMXvINGX3q7iBr7F AG5f07NPtmcVrzU2JI94joLAp3u0DG7H9Bmwzs81U06KOPjxSCFs29HXOPPNt1oOgyZz pnxKxzq7zGd7eT6IFx8ATHzdwx23aRyQTOhfBX0KgJkV5hRMYRDLTlwXcFIaHkPIcZ4y GYgTK7EtZIP3Uh+cAC2vkHO2DA5y8mAMS46GAkAm1EVrdvCuz+KEBIV0XJI1N15MVSDJ M2mA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689692240; x=1692284240; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=SwpPs6WV1aA1zidyr1LaKMQKZsIk72/n8sGn3oxRkjA=; b=iNVLaJi4XKtQir03PKRYIS6GD9YQya128hFqcz9Opgjz//8/w46Ri44SWGudXmfgc8 g8ueRTi8YIdKL4W3/AcLBbVeq66h6McFcPES1SECgCOWBTmxPKa8A4aBySWM6g/6kgLc 4SQrAcq0tvKkCIIoK7yXKcctF7LyPP/RY1kNqpt+RHAsV0RT2F0qFx5M1L3qN0P+4L3i nR9/Z3vriHsdXg6bTuRdpTXuRwS1s3AEXQNmiQGbJ3FzHU5UGTbZsHn4J0aHthfGze2P zGPoDeo270d/zlyRFJ39QgsA57qq9kALEnh+TsCfL7oMjlHCvAN7v8nQtA7nJyIN21+h weFA== X-Gm-Message-State: ABy/qLZ2OgM1Qr84ff2ntFjrcRZ6hJXgnrxcnD3afmutt8PdxzQDHEij KmkvfKBIV+rg7GnMxQyBwGWDugftGw== X-Google-Smtp-Source: APBJJlGIXX+YuHziDTsuhVW25zIHGuPPKi0dQnLxdgLJdF8ykNVuzlWV3u/zZ+yTqD9EPDGtfYIQbg== X-Received: by 2002:aa7:c457:0:b0:51d:7e2a:8bd7 with SMTP id n23-20020aa7c457000000b0051d7e2a8bd7mr91887edr.38.1689692240085; Tue, 18 Jul 2023 07:57:20 -0700 (PDT) Received: from U4.fritz.box ([2001:9e8:b960:df00:3afe:540e:d7ee:98ac]) by smtp.gmail.com with ESMTPSA id f25-20020aa7d859000000b0051de20c59d7sm1340797eds.15.2023.07.18.07.57.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 Jul 2023 07:57:19 -0700 (PDT) From: Alex Bee To: u-boot@lists.denx.de, Kever Yang , Philipp Tomsich , Simon Glass Cc: Alex Bee Subject: [PATCH v2 4/5] rockchip: evb_rk3229: Update/fix README Date: Tue, 18 Jul 2023 16:57:14 +0200 Message-ID: <20230718145715.1280201-5-knaerzche@gmail.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230718145715.1280201-1-knaerzche@gmail.com> References: <20230716081034.1196995-1-knaerzche@gmail.com> <20230718145715.1280201-1-knaerzche@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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.103.8 at phobos.denx.de X-Virus-Status: Clean This updates the evb_rk3229's README on howto create / use the FIT image created by binman. Also fix some wrong paths and update filenames which have changed in recent upstream optee-os versions. Signed-off-by: Alex Bee --- board/rockchip/evb_rk3229/README | 72 +++++++++++++++++++++----------- 1 file changed, 48 insertions(+), 24 deletions(-) diff --git a/board/rockchip/evb_rk3229/README b/board/rockchip/evb_rk3229/README index 9068225e27..a8dcc40f09 100644 --- a/board/rockchip/evb_rk3229/README +++ b/board/rockchip/evb_rk3229/README @@ -13,25 +13,23 @@ Compile the OP-TEE > cd optee_os > make clean - > make CROSS_COMPILE_ta_arm32=arm-none-eabi- PLATFORM=rockchip-rk322x - Get tee.bin in this step, copy it to U-Boot root dir: - > cp out/arm-plat-rockchip/core/tee-pager.bin ../u-boot/tee.bin + > make CROSS_COMPILE=arm-none-eabi- PLATFORM=rockchip-rk322x + Get tee-raw.bin in this step, copy it to U-Boot root dir: + > cp out/arm-plat-rockchip/core/tee-raw.bin ../u-boot/tee.bin Compile the U-Boot ================== > cd ../u-boot - > export CROSS_COMPILE=arm-linux-gnueabihf- > make evb-rk3229_defconfig - > make - > make u-boot.itb + > TEE=tee.bin CROSS_COMPILE=arm-linux-gnueabihf- make - Get tpl/u-boot-tpl.bin, spl/u-boot-spl.bin and u-boot.itb in this step. + Get u-boot-rockchip.bin in this step. Compile the rkdeveloptool ======================= Follow instructions in latest README - > cd ../rkflashtool + > cd ../rkdeveloptool > autoreconf -i > ./configure > make @@ -42,30 +40,56 @@ Compile the rkdeveloptool Both origin binaries and Tool are ready now, choose either option 1 or option 2 to deploy U-Boot. -Package the image -================= - - > cd ../u-boot - > tools/mkimage -n rk322x -T rksd -d tpl/u-boot-spl.bin idbloader.img - > cat spl/u-boot-spl.bin >> idbloader.img - - Get idbloader.img in this step. - Flash the image to eMMC ======================= Power on(or reset with RESET KEY) with MASKROM KEY preesed, and then: > cd .. - > rkdeveloptool db rkbin/rk32/rk322x_loader_v1.04.232.bin - > rkdeveloptool wl 64 u-boot/idbloader.img - > rkdeveloptool wl 0x4000 u-boot/u-boot.itb - > rkdeveloptool rd + > rkdeveloptool/rkdeveloptool db rkbin/rk32/rk322x_loader_v1.04.232.bin + > rkdeveloptool/rkdeveloptool wl 64 u-boot/u-boot-rockchip.bin + > rkdeveloptool/rkdeveloptool rd Flash the image to SD card ========================== - > dd if=u-boot/idbloader.img of=/dev/sdb seek=64 - > dd if=u-boot/u-boot.itb of=/dev/sdb seek=16384 + > dd if=u-boot/u-boot-rockchip.bin of=/dev/sdb seek=64 + +You should be able to get U-Boot log message with OP-TEE boot info: + +U-Boot TPL 2023.07-00524-gf5346eba55-dirty (Jul 15 2023 - 14:22:51) +Trying to boot from BOOTROM +Returning to boot ROM... + +U-Boot SPL 2023.07-00524-gf5346eba55-dirty (Jul 15 2023 - 14:22:51 +0200) +Trying to boot from MMC1 +I/TC: +I/TC: Non-secure external DT found +I/TC: Switching console to device: /serial@11030000 +I/TC: OP-TEE version: 3.22.0-27-g893a762d1 (gcc version 10.3.1 20210621 (release) (15:10.3-2021.07-4)) #1 Sat Jul 15 12:14:36 UTC 2023 arm +I/TC: WARNING: This OP-TEE configuration might be insecure! +I/TC: WARNING: Please check https://optee.readthedocs.io/en/latest/architecture/porting_guidelines.html +I/TC: Primary CPU initializing +M/TC: Not protecting region 1: 0x68400000-0x68600000 +I/TC: Primary CPU switching to normal world boot + + +U-Boot 2023.07-00524-gf5346eba55-dirty (Jul 15 2023 - 14:22:51 +0200) + +Model: Rockchip RK3229 Evaluation board +DRAM: 1 GiB (effective 992 MiB) +Core: 113 devices, 16 uclasses, devicetree: separate +MMC: mmc@30000000: 1, mmc@30020000: 0 +Loading Environment from MMC... Card did not respond to voltage select! : -110 +*** Warning - No block device, using default environment + +In: serial@11030000 +Out: serial@11030000 +Err: serial@11030000 +Model: Rockchip RK3229 Evaluation board +Net: +Warning: ethernet@30200000 (eth0) using random MAC address - 72:65:2b:f1:c5:0a +eth0: ethernet@30200000 +Hit any key to stop autoboot: 0 +=> -You should be able to get U-Boot log message with OP-TEE boot info. For more detail, please reference to: http://opensource.rock-chips.com/wiki_Boot_option -- 2.41.0