Skip to content

u-boot rk3568-2023.10 for RK356x #19

u-boot rk3568-2023.10 for RK356x

u-boot rk3568-2023.10 for RK356x #19

Workflow file for this run

name: Build u-boot for RK356x
run-name: u-boot ${{ inputs.uboot_ref }} for RK356x
on:
workflow_dispatch:
inputs:
uboot_ref:
description: u-boot ref
required: true
default: rk3568-2023.10
type: string
rkbin_ref:
description: rkbin ref
required: true
default: master
type: string
jobs:
build:
name: ${{ matrix.boards.name }}
runs-on: ubuntu-latest
strategy:
matrix:
boards:
[
{
"name": "rk3566-generic",
"config": "generic-rk3568_defconfig",
"variant": "RK3566",
},
{
"name": "rk3566-orangepi-3b",
"config": "orangepi-3b-rk3566_defconfig",
"variant": "RK3566",
},
{
"name": "rk3566-pinenote",
"config": "pinenote-rk3566_defconfig",
"variant": "RK3566",
},
{
"name": "rk3566-pinetab2",
"config": "pinetab2-rk3566_defconfig",
"variant": "RK3566",
},
{
"name": "rk3566-quartz64-a",
"config": "quartz64-a-rk3566_defconfig",
"variant": "RK3566",
},
{
"name": "rk3566-quartz64-b",
"config": "quartz64-b-rk3566_defconfig",
"variant": "RK3566",
},
{
"name": "rk3566-radxa-cm3-io",
"config": "radxa-cm3-io-rk3566_defconfig",
"variant": "RK3566",
},
{
"name": "rk3566-rock-3c",
"config": "rock-3c-rk3566_defconfig",
"variant": "RK3566",
},
{
"name": "rk3566-soquartz-blade",
"config": "soquartz-blade-rk3566_defconfig",
"variant": "RK3566",
},
{
"name": "rk3566-soquartz-cm4",
"config": "soquartz-cm4-rk3566_defconfig",
"variant": "RK3566",
},
{
"name": "rk3566-soquartz-model-a",
"config": "soquartz-model-a-rk3566_defconfig",
"variant": "RK3566",
},
{
"name": "rk3568-bpi-r2-pro",
"config": "bpi-r2-pro-rk3568_defconfig",
"variant": "RK3568",
},
{
"name": "rk3568-generic",
"config": "generic-rk3568_defconfig",
"variant": "RK3568",
},
{
"name": "rk3568-nanopi-r5c",
"config": "nanopi-r5c-rk3568_defconfig",
"variant": "RK3568",
},
{
"name": "rk3568-nanopi-r5s",
"config": "nanopi-r5s-rk3568_defconfig",
"variant": "RK3568",
},
{
"name": "rk3568-odroid-m1",
"config": "odroid-m1-rk3568_defconfig",
"variant": "RK3568",
},
{
"name": "rk3568-radxa-e25",
"config": "radxa-e25-rk3568_defconfig",
"variant": "RK3568",
"baudrate": "115200",
},
{
"name": "rk3568-rock-3a",
"config": "rock-3a-rk3568_defconfig",
"variant": "RK3568",
},
]
steps:
- name: Toolchain
run: |
sudo apt-get update
sudo apt-get install gcc-12 gcc-12-aarch64-linux-gnu python3-pyelftools confget
sudo ln -sf cpp-12 /usr/bin/cpp
sudo ln -sf gcc-12 /usr/bin/gcc
sudo ln -sf gcc-ar-12 /usr/bin/gcc-ar
sudo ln -sf gcc-nm-12 /usr/bin/gcc-nm
sudo ln -sf gcc-ranlib-12 /usr/bin/gcc-ranlib
sudo ln -sf gcov-12 /usr/bin/gcov
sudo ln -sf gcov-dump-12 /usr/bin/gcov-dump
sudo ln -sf gcov-tool-12 /usr/bin/gcov-tool
sudo ln -sf aarch64-linux-gnu-cpp-12 /usr/bin/aarch64-linux-gnu-cpp
sudo ln -sf aarch64-linux-gnu-gcc-12 /usr/bin/aarch64-linux-gnu-gcc
sudo ln -sf aarch64-linux-gnu-gcc-ar-12 /usr/bin/aarch64-linux-gnu-gcc-ar
sudo ln -sf aarch64-linux-gnu-gcc-nm-12 /usr/bin/aarch64-linux-gnu-gcc-nm
sudo ln -sf aarch64-linux-gnu-gcc-ranlib-12 /usr/bin/aarch64-linux-gnu-gcc-ranlib
sudo ln -sf aarch64-linux-gnu-gcov-12 /usr/bin/aarch64-linux-gnu-gcov
sudo ln -sf aarch64-linux-gnu-gcov-dump-12 /usr/bin/aarch64-linux-gnu-gcov-dump
sudo ln -sf aarch64-linux-gnu-gcov-tool-12 /usr/bin/aarch64-linux-gnu-gcov-tool
- name: Checkout rkbin - ${{ inputs.rkbin_ref }}
uses: actions/checkout@v3
with:
repository: rockchip-linux/rkbin
ref: ${{ inputs.rkbin_ref }}
path: rkbin
- name: Checkout u-boot - ${{ inputs.uboot_ref }}
uses: actions/checkout@v3
with:
repository: Kwiboo/u-boot-rockchip
ref: ${{ inputs.uboot_ref }}
path: u-boot
- name: Build u-boot - ${{ matrix.boards.config }}
run: |
DDRBIN=$(confget -f rkbin/RKBOOT/${{ matrix.boards.variant }}MINIALL.ini -s LOADER_OPTION FlashData)
sed -i 's/uart baudrate=/uart baudrate=${{ matrix.boards.baudrate }}/' rkbin/tools/ddrbin_param.txt
sed -i 's/dis_train_print=/dis_train_print=1/' rkbin/tools/ddrbin_param.txt
rkbin/tools/ddrbin_tool rkbin/tools/ddrbin_param.txt rkbin/$DDRBIN
export ROCKCHIP_TPL=../rkbin/$DDRBIN
export BL31=../rkbin/$(confget -f rkbin/RKTRUST/RK3568TRUST.ini -s BL31_OPTION PATH)
cd u-boot
make mrproper
make ${{ matrix.boards.config }}
make KCFLAGS="-fno-peephole2" CROSS_COMPILE=aarch64-linux-gnu- -j$(nproc)
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: ${{ matrix.boards.name }}
path: |
u-boot/u-boot-rockchip.bin
u-boot/u-boot-rockchip-spi.bin