generated from siderolabs/sbc-template
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
U-Boot has a patch for generating SPI images, which is required for eMMC when booting from NVMe. U-Boot also includes a KASLR patch that enables passing a seed to EFI so the kernel has sufficient entropy at boot to enable KASLR. DTB is compiled externally (not via `siderolabs/pkgs`) as they still require DTS patches. The RKBIN for RK3588 DDR initialization is patched to support a different baud rate for the internal UART on the Turing Pi. Without this patch, the `tpi uart` command will not work (i.e., reading the console from the Turing Pi channel with the RK1). The UART ID is changed to 9 to prevent device name conflicts. Patching the RKBIN for the RK3588 involves running a closed-source utility, ddrbin_tool, from the rkbin repository. Signed-off-by: Nico Berlee <[email protected]> Signed-off-by: Noel Georgi <[email protected]>
- Loading branch information
Showing
20 changed files
with
1,839 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: arm-trusted-firmware-rk3588 | ||
variant: scratch | ||
shell: /toolchain/bin/bash | ||
dependencies: | ||
- stage: base | ||
steps: | ||
- sources: | ||
- url: https://github.com/ARM-software/arm-trusted-firmware/archive/{{ .arm_trusted_firmware_nonlts_version }}.tar.gz | ||
destination: arm-trusted-firmware.tar.gz | ||
sha256: "{{ .arm_trusted_firmware_nonlts_sha256 }}" | ||
sha512: "{{ .arm_trusted_firmware_nonlts_sha512 }}" | ||
env: | ||
SOURCE_DATE_EPOCH: {{ .BUILD_ARG_SOURCE_DATE_EPOCH }} | ||
prepare: | ||
- | | ||
mkdir -p /usr/bin \ | ||
&& ln -sf /toolchain/bin/env /usr/bin/env | ||
tar xzf arm-trusted-firmware.tar.gz --strip-components=1 | ||
# rk3588 | ||
build: | ||
- | | ||
# https://github.com/ARM-software/arm-trusted-firmware/blob/master/docs/getting_started/initial-build.rst | ||
export CROSS_COMPILE=/toolchain/bin/aarch64-linux-musl- | ||
make realclean | ||
# https://salsa.debian.org/debian/arm-trusted-firmware/-/commit/6424a59e08585af7f8a56f1e16ecc6a6b9e4ad7a | ||
# https://salsa.debian.org/debian/arm-trusted-firmware/-/commit/6ed8f61df3b07bb22a68a0fc189ec3b3f7b00dbd | ||
CFLAGS=--param=min-pagesize=0 make -j $(nproc) PLAT=rk3588 DEBUG=0 bl31 | ||
install: | ||
- | | ||
mkdir -p /rootfs/arm-trusted-firmware/rk3588 | ||
cp build/rk3588/release/bl31/bl31.elf /rootfs/arm-trusted-firmware/rk3588/bl31.elf | ||
finalize: | ||
- from: /rootfs | ||
to: /libs |
Oops, something went wrong.