9os

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 6c5b83286e8bb033052edaadb467a6963c1d060c
parent 595430d82e7c226b4ac041186d95ab893fcce9b4
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Wed, 16 Sep 2020 18:31:17 +0200

Update README to represent the new configuration

Change-Id: I018a3e6aa4f8dab74fe98abcd915eef853ec4281

Diffstat:
MREADME | 71++++++++++++++++++++++++++++++++---------------------------------------
1 file changed, 32 insertions(+), 39 deletions(-)

diff --git a/README b/README @@ -1,9 +1,9 @@ -Building rmode target -===================== +Building native target +====================== PATH=<path-to-aarch64-elf-toolchain>:$PATH export PATH -CROSS_COMPILE=aarch64-elf- make LDFLAGS=-Ttext=0x6000000 +CROSS_COMPILE=aarch64-elf- make Building on macOS ================= @@ -11,47 +11,40 @@ Building on macOS sudo /usr/sbin/DevToolsSecurity --enable make -e CONF=amd64-darwin-clang -Building the fip with bl2 at el3 -================================ -make CROSS_COMPILE=aarch64-linux-gnu- BL2_AT_EL3=1 BL33=<bl33.bin> all fip -./tools/fiptool/fiptool update --tb-fw build/fvp/<mode>/bl2.bin buid/fvp/<mode>/fip.bin +Building TF-A with a preloaded BL33 +=================================== -Running rcode -============= +export CROSS_COMPILE=aarch64-linux-gnu +make PLAT=fvp DEBUG=1 RESET_TO_BL31=1 PRELOADED_BL33_BASE=0x880000000 all -On amd64-linux, use 'stty -echo raw min 1' before launching rcode with the -dummy uart driver. +Running 9os +============= Launch the FVP model with the following options: #!/bin/sh -fip_path=<path-to-fip.bin> -romfw_path=<path-to-rcode-romfw.bin> -uart0_path=<path-to-uart0.out> -uart3_path=<path-to-uart3.out> -linux_path=<path-to-Image> -ramdisk_path=<path-to-ramdisk.img> - -FVP_Base_RevC-2xAEMv8A \ - -p -S \ - -C bp.pl011_uart0.uart_enable=1 \ - -C bp.pl011_uart0.out_file="$uart0_path" \ - -C bp.pl011_uart3.uart_enable=1 \ - -C bp.pl011_uart3.out_file="$uart3_path" \ - -C bp.secure_memory=0 \ - -C cluster0.cpu0.RVBAR=0x6000000 \ - -C cluster0.cpu1.RVBAR=0x6000000 \ - -C cluster0.cpu2.RVBAR=0x6000000 \ - -C cluster0.cpu3.RVBAR=0x6000000 \ - -C cluster1.cpu0.RVBAR=0x6000000 \ - -C cluster1.cpu1.RVBAR=0x6000000 \ - -C cluster1.cpu2.RVBAR=0x6000000 \ - -C cluster1.cpu3.RVBAR=0x6000000 \ - -C cluster0.has_arm_v8-3=1 \ - -C cluster1.has_arm_v8-3=1 \ - -C bp.flashloader0.fname="$fip_path" \ - --data cluster0.cpu0="$romfw_path"@0x6000000 \ - --data cluster0.cpu0="$linux_path"@0x80080000 \ - --data cluster0.cpu0="$ramdisk_path"@0x84000000 +os=<path to 9os binary> +uart0=<path to uart0 log> +uart3=<path to uart1 log> +bl31=<path to bl31.bin> + +$FVP_PATH/FVP_Base_RevC-2xAEMv8A \ + -C bp.secure_memory=1 \ + -C pctl.startup=0.0.0.0 \ + -C cache_state_modelled=1 \ + -C bp.pl011_uart0.uart_enable=1 \ + -C bp.pl011_uart0.out_file=$uart0 \ + -C bp.pl011_uart3.uart_enable=1 \ + -C bp.pl011_uart3.out_file=$uart3 \ + -C cluster0.cpu0.RVBAR=0x04001000 \ + -C cluster0.cpu1.RVBAR=0x04001000 \ + -C cluster0.cpu2.RVBAR=0x04001000 \ + -C cluster0.cpu3.RVBAR=0x04001000 \ + -C cluster1.cpu0.RVBAR=0x04001000 \ + -C cluster1.cpu1.RVBAR=0x04001000 \ + -C cluster1.cpu2.RVBAR=0x04001000 \ + -C cluster1.cpu3.RVBAR=0x04001000 \ + --data cluster0.cpu0=$bl31@0x04001000 \ +