Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Arm Trusted Firmware
Commits
a16c4d3a
Commit
a16c4d3a
authored
Mar 20, 2020
by
Manish Pandey
Committed by
TrustedFirmware Code Review
Mar 20, 2020
Browse files
Merge "docs: remove uefi-tools in hikey and hikey960" into integration
parents
6cdd55d1
3888c2d4
Changes
2
Hide whitespace changes
Inline
Side-by-side
docs/plat/hikey.rst
View file @
a16c4d3a
...
@@ -26,9 +26,6 @@ Code Locations
...
@@ -26,9 +26,6 @@ Code Locations
- l-loader:
- l-loader:
`link <https://github.com/96boards-hikey/l-loader/tree/testing/hikey960_v1.2>`__
`link <https://github.com/96boards-hikey/l-loader/tree/testing/hikey960_v1.2>`__
- uefi-tools:
`link <https://git.linaro.org/uefi/uefi-tools.git>`__
- atf-fastboot:
- atf-fastboot:
`link <https://github.com/96boards-hikey/atf-fastboot/tree/master>`__
`link <https://github.com/96boards-hikey/atf-fastboot/tree/master>`__
...
@@ -45,7 +42,6 @@ Build Procedure
...
@@ -45,7 +42,6 @@ Build Procedure
git clone https://github.com/96boards-hikey/edk2 -b testing/hikey960_v2.5
git clone https://github.com/96boards-hikey/edk2 -b testing/hikey960_v2.5
git clone https://github.com/96boards-hikey/OpenPlatformPkg -b testing/hikey960_v1.3.4
git clone https://github.com/96boards-hikey/OpenPlatformPkg -b testing/hikey960_v1.3.4
git clone https://github.com/96boards-hikey/l-loader -b testing/hikey960_v1.2
git clone https://github.com/96boards-hikey/l-loader -b testing/hikey960_v1.2
git clone https://git.linaro.org/uefi/uefi-tools
git clone https://github.com/96boards-hikey/atf-fastboot
git clone https://github.com/96boards-hikey/atf-fastboot
- Create the symbol link to OpenPlatformPkg in edk2.
- Create the symbol link to OpenPlatformPkg in edk2.
...
@@ -57,13 +53,12 @@ Build Procedure
...
@@ -57,13 +53,12 @@ Build Procedure
- Prepare AARCH64 && AARCH32 toolchain. Prepare python.
- Prepare AARCH64 && AARCH32 toolchain. Prepare python.
- If your hikey hardware is built by CircuitCo, update *uefi-tools/platform.config* first. *(optional)*
- If your hikey hardware is built by CircuitCo, update *OpenPlatformPkg/Platforms/Hisilicon/HiKey/HiKey.dsc* first. *(optional)*
**Uncomment the below sentence. Otherwise, UEFI can't output messages on serial
console on hikey.**
console on hikey.**
.. code:: shell
.. code:: shell
BUILDFLAGS=-D
SERIAL_BASE=0xF8015000
DEFINE
SERIAL_BASE=0xF8015000
If your hikey hardware is built by LeMaker, nothing to do.
If your hikey hardware is built by LeMaker, nothing to do.
...
@@ -71,19 +66,8 @@ Build Procedure
...
@@ -71,19 +66,8 @@ Build Procedure
.. code:: shell
.. code:: shell
BUILD_OPTION=DEBUG
cd {BUILD_PATH}/arm-trusted-firmware
export AARCH64_TOOLCHAIN=GCC5
sh ../l-loader/build_uefi.sh hikey
export UEFI_TOOLS_DIR=${BUILD_PATH}/uefi-tools
export EDK2_DIR=${BUILD_PATH}/edk2
EDK2_OUTPUT_DIR=${EDK2_DIR}/Build/HiKey/${BUILD_OPTION}_${AARCH64_TOOLCHAIN}
# Build fastboot for Trusted Firmware-A. It's used for recovery mode.
cd ${BUILD_PATH}/atf-fastboot
CROSS_COMPILE=aarch64-linux-gnu- make PLAT=hikey DEBUG=1
# Convert DEBUG/RELEASE to debug/release
FASTBOOT_BUILD_OPTION=$(echo ${BUILD_OPTION} | tr '[A-Z]' '[a-z]')
cd ${EDK2_DIR}
# Build UEFI & Trusted Firmware-A
${UEFI_TOOLS_DIR}/uefi-build.sh -b ${BUILD_OPTION} -a ../arm-trusted-firmware -s ../optee_os hikey
- Generate l-loader.bin and partition table for aosp. The eMMC capacity is either 8GB or 4GB. Just change "aosp-8g" to "linux-8g" for debian.
- Generate l-loader.bin and partition table for aosp. The eMMC capacity is either 8GB or 4GB. Just change "aosp-8g" to "linux-8g" for debian.
...
...
docs/plat/hikey960.rst
View file @
a16c4d3a
...
@@ -26,9 +26,6 @@ Code Locations
...
@@ -26,9 +26,6 @@ Code Locations
- l-loader:
- l-loader:
`link <https://github.com/96boards-hikey/l-loader/tree/testing/hikey960_v1.2>`__
`link <https://github.com/96boards-hikey/l-loader/tree/testing/hikey960_v1.2>`__
- uefi-tools:
`link <https://git.linaro.org/uefi/uefi-tools.git>`__
Build Procedure
Build Procedure
~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~
...
@@ -42,7 +39,6 @@ Build Procedure
...
@@ -42,7 +39,6 @@ Build Procedure
git clone https://github.com/96boards-hikey/edk2 -b testing/hikey960_v2.5
git clone https://github.com/96boards-hikey/edk2 -b testing/hikey960_v2.5
git clone https://github.com/96boards-hikey/OpenPlatformPkg -b testing/hikey960_v1.3.4
git clone https://github.com/96boards-hikey/OpenPlatformPkg -b testing/hikey960_v1.3.4
git clone https://github.com/96boards-hikey/l-loader -b testing/hikey960_v1.2
git clone https://github.com/96boards-hikey/l-loader -b testing/hikey960_v1.2
git clone https://git.linaro.org/uefi/uefi-tools
- Create the symbol link to OpenPlatformPkg in edk2.
- Create the symbol link to OpenPlatformPkg in edk2.
...
@@ -53,13 +49,11 @@ Build Procedure
...
@@ -53,13 +49,11 @@ Build Procedure
- Prepare AARCH64 toolchain.
- Prepare AARCH64 toolchain.
- If your hikey960 hardware is v1, update *uefi-tools/platform.config* first. *(optional)*
- If your hikey960 hardware is v1, update *OpenPlatformPkg/Platforms/Hisilicon/HiKey960/HiKey960.dsc* first. *(optional)*
**Uncomment the below sentence. Otherwise, UEFI can't output messages on serial
console on hikey960 v1.**
.. code:: shell
.. code:: shell
BUILDFLAGS=-D
SERIAL_BASE=0xFDF05000
DEFINE
SERIAL_BASE=0xFDF05000
If your hikey960 hardware is v2 or newer, nothing to do.
If your hikey960 hardware is v2 or newer, nothing to do.
...
@@ -67,14 +61,8 @@ Build Procedure
...
@@ -67,14 +61,8 @@ Build Procedure
.. code:: shell
.. code:: shell
BUILD_OPTION=DEBUG
cd {BUILD_PATH}/arm-trusted-firmware
export AARCH64_TOOLCHAIN=GCC5
sh ../l-loader/build_uefi.sh hikey960
export UEFI_TOOLS_DIR=${BUILD_PATH}/uefi-tools
export EDK2_DIR=${BUILD_PATH}/edk2
EDK2_OUTPUT_DIR=${EDK2_DIR}/Build/HiKey960/${BUILD_OPTION}_${AARCH64_TOOLCHAIN}
cd ${EDK2_DIR}
# Build UEFI & Trusted Firmware-A
${UEFI_TOOLS_DIR}/uefi-build.sh -b ${BUILD_OPTION} -a ../arm-trusted-firmware -s ../optee_os hikey960
- Generate l-loader.bin and partition table.
- Generate l-loader.bin and partition table.
*Make sure that you're using the sgdisk in the l-loader directory.*
*Make sure that you're using the sgdisk in the l-loader directory.*
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment