All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jun Nie <jun.nie@linaro.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v3 9/9] pico-imx7d: README: Add BL33 usage case
Date: Wed, 24 Apr 2019 11:59:32 +0800	[thread overview]
Message-ID: <1556078372-26851-10-git-send-email-jun.nie@linaro.org> (raw)
In-Reply-To: <1556078372-26851-1-git-send-email-jun.nie@linaro.org>

Add Documentation of BL33 usage case. U-boot is in
non-secure world in this case.

Signed-off-by: Jun Nie <jun.nie@linaro.org>
---
 board/technexion/pico-imx7d/README.pico-imx7d_BL33 | 44 ++++++++++++++++++++++
 1 file changed, 44 insertions(+)
 create mode 100644 board/technexion/pico-imx7d/README.pico-imx7d_BL33

diff --git a/board/technexion/pico-imx7d/README.pico-imx7d_BL33 b/board/technexion/pico-imx7d/README.pico-imx7d_BL33
new file mode 100644
index 0000000..40324ff
--- /dev/null
+++ b/board/technexion/pico-imx7d/README.pico-imx7d_BL33
@@ -0,0 +1,44 @@
+This document describes the instruction to build and flash ATF/OPTEE/U-Boot on
+pico-imx7d board. U-Boot is loaded as part of FIP image by ATF in this setup.
+The boot sequence is ATF -> OPTEE -> U-Boot -> Linux. U-Boot is in non-secure
+world in this case.
+
+- Build u-boot
+    Set environment variable of CROSS_COMPILE for your toolchain and ARCH=arm
+    $ make pico-imx7d_bl33_defconfig
+    $ make all
+
+- Download and build OPTEE
+    $ git clone git at github.com:OP-TEE/optee_os.git
+    $ make PLATFORM=imx PLATFORM_FLAVOR=mx7dpico_mbl CFG_BOOT_SECONDARY_REQUEST=y ARCH=arm
+
+- Download and build ATF
+    $ git clone https://git.linaro.org/landing-teams/working/mbl/arm-trusted-firmware.git -b linaro-imx7
+    $ make DEBUG=1 PLAT=picopi ARCH=aarch32 ARM_ARCH_MAJOR=7 \
+            CROSS_COMPILE=arm-linux-gnueabihf- LOG_LEVEL=50 V=1 \
+            CRASH_REPORTING=1 AARCH32_SP=optee all
+    Save file content in this link to file pico-imx7d.cfg:
+      http://git.linaro.org/landing-teams/working/mbl/u-boot.git/tree/board/technexion/pico-imx7d/pico-imx7d.cfg?h=linaro-imx
+    $ u-boot/tools/mkimage -n pico-imx7d.cfg -T imximage -e 0x9df00000 -d \
+            build/picopi/debug/bl2.bin bl2.imx
+
+- Create FIP image
+    Create a  fiptool_images/ folder in ATF folder, copy u-boot.bin in u-boot
+folder and tee*.bin in optee out/arm-plat-imx/core/tee/ folder to
+fiptool_images. Run below command in ATF folder to generate FIP image.
+    $ make -C tools/fiptool/
+    $ tools/fiptool/fiptool create --tos-fw fiptool_images/tee-header_v2.bin \
+          --tos-fw-extra1 fiptool_images/tee-pager_v2.bin \
+          --tos-fw-extra2 fiptool_images/tee-pageable_v2.bin \
+          --nt-fw fiptool_images/u-boot.bin \
+          fip.bin
+
+- Burn the images to eMMC for test.
+    Run below command in atf folder:
+    $ dd if=build/picopi/debug/bl2.bin.imx of=/dev/disk/by-id/usb-<your device>  bs=1024 seek=1;sync
+    $ dd if=fip.bin of=/dev/disk/by-id/usb-<your device>  bs=1024 seek=1;sync
+
+- Test
+    Just boot up your board and wait for u-boot start up after ATF's log.
+    For booting Linux in FIT image, please reference the FIT files in
+    u-boot doc/uImage.FIT/ folder.
-- 
2.7.4

      parent reply	other threads:[~2019-04-24  3:59 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-04-24  3:59 [U-Boot] [PATCH v3 0/9] pico-imx7d: Add support for BL33 case Jun Nie
2019-04-24  3:59 ` [U-Boot] [PATCH v3 1/9] Revert "pico-imx7d: Add LCD support" Jun Nie
2019-04-24 10:30   ` Fabio Estevam
2019-04-25  2:53     ` Jun Nie
2019-04-25  3:27       ` Fabio Estevam
2019-04-25  7:24         ` Jun Nie
2019-04-24 10:41   ` Stefano Babic
2019-04-24  3:59 ` [U-Boot] [PATCH v3 2/9] mx7_common: Share configs to skip low level init Jun Nie
2019-04-24  3:59 ` [U-Boot] [PATCH v3 3/9] imx: mx7: Add empty arch_cpu_init if skipped Jun Nie
2019-04-24  5:11   ` Peng Fan
2019-04-25 15:28     ` Jun Nie
2019-04-24  3:59 ` [U-Boot] [PATCH v3 4/9] pico-imx7d: Correct uart clock root Jun Nie
2019-04-24  5:15   ` Peng Fan
2019-04-24  6:25     ` Jun Nie
2019-04-24 10:32   ` Fabio Estevam
2019-04-25 15:29     ` Jun Nie
2019-04-24  3:59 ` [U-Boot] [PATCH v3 5/9] pico-imx7d: Reserve region of memory to OPTEE Jun Nie
2019-04-24  5:17   ` Peng Fan
2019-04-24  3:59 ` [U-Boot] [PATCH v3 6/9] pico-imx7d: Add boot option for verified boot Jun Nie
2019-04-24  3:59 ` [U-Boot] [PATCH v3 7/9] pico-imx7d: Add device tree for pico-imx7d Jun Nie
2019-04-24  5:19   ` Peng Fan
2019-04-24 10:31   ` Fabio Estevam
2019-04-25  2:56     ` Jun Nie
2019-04-25  7:18       ` Stefano Babic
2019-04-25  7:31         ` Jun Nie
2019-04-25  8:53           ` Stefano Babic
2019-04-24  3:59 ` [U-Boot] [PATCH v3 8/9] pico-imx7d: Add bl33 config Jun Nie
2019-04-24  3:59 ` Jun Nie [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1556078372-26851-10-git-send-email-jun.nie@linaro.org \
    --to=jun.nie@linaro.org \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.