Ampere Mountain Jade codebase & tools installation.
- Copy 'setup.sh' to local machine and run, tested with OS Ubuntu 20.04.
- follow the instructions to install tools and download source code.
- .vscode: Visual Studio Code settings for tasks which link to bash scripts.
- adlink-platforms: source of ADLink.
- edk2: submodule from Ampere.
- edk2-ampere-tools: submodule from Ampere's fork.
- edk2-platforms: submodule from Ampere's fork.
- OpenPlatformPkg: submodule from Linaro.
- srp-ac01-fw-aptv-bin-rx.xx.xxxxxxxx: slim & board_settings from Ampere.
- buildshell.sh: build uefi shell for AA64.
- clean.sh: clean temporary files and tools.
- edk2.sh: Sample script to set environment variables and run edksetup.sh.
- flashkernel: tiny linux kernel for embedded.
- make_ComHpcAlt.sh: Sample script to make ADLink COM-HPC-ALT.
- make_jade.sh: Sample script to make CRB Ampere Mt. Jade.
- setup.sh: Sample script to install all source code and tools. Mind your own SSH connection setting if there is any.
- setup.sh [TARGET_FOLDER, default=Ampere_Altra]
-
Enter into edk2-ampere directory.
-
Execute the below command to build EDK-II image for COM-HPC-ALT
.make_ComHpcAlt.sh
-
After successful compilation, the final EDK-II image ComHpcAlt_tianocore_atf_1.07.300.cap will be found in below path
$PWD/BUILDS/ComHpcAlt_tianocore_atf_1.07.300/
-
Copy CapsuleApp.efi , ComHpcAlt_scp_1.07.300.cap , ComHpcAlt_tianocore_atf_1.07.300.cap files from path $PWD/BUILDS/ComHpcAlt_tianocore_atf_1.07.300/ into FAT32 USB and connect to target board.
-
Power up the target and boot into UEFI shell.
-
Run map -r command to identify the USB device name. Type the USB device name in the shell to enter into to the USB drive.
For example: fs0 is USB device name in our case.
Shell>fs0: fs0:\>
-
Run below command to flash SCP FW 1.08
CapsuleApp.efi ComHpcAlt_scp_1.07.300.cap
-
Run below command to flash EDK-II FW v1.07.300 (this includes ATF + UEFI + BoardSettings).
CapsuleApp.efi ComHpcAlt_tianocore_atf_1.07.300.cap
-
Power cycle the target board.
NOTE:
- The target board by default should have EDK-II firmware version greater than or equal to 1.07.299 (which will support capsule update).
- Click here to download the package for capsule supported EDK-II firmware.
- Unzip into FAT32 USB device.
- Boot into UEFI shell
- Run fwu.nsh to flash EDK-II to 1.07.299 which will support capsule update.
- Power cycle the target board.
NOTE:
- The above steps required only when the target is having EDK-II firmware version lesser than 1.07.299