-
Notifications
You must be signed in to change notification settings - Fork 9
178 lines (172 loc) · 5.71 KB
/
rk356x.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
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: master
type: string
rkbin_ref:
description: rkbin ref
required: true
default: master
type: string
jobs:
build:
name: ${{ matrix.boards.name }}
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
boards:
[
{
"name": "rk3566-generic",
"config": "generic-rk3568_defconfig",
"variant": "RK3566",
},
{
"name": "rk3566-odroid-m1s",
"config": "odroid-m1s-rk3566_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-radxa-zero-3",
"config": "radxa-zero-3-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-generic",
"config": "generic-rk3568_defconfig",
"variant": "RK3568",
},
{
"name": "rk3568-bpi-r2-pro",
"config": "bpi-r2-pro-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",
},
{
"name": "rk3568-rock-3b",
"config": "rock-3b-rk3568_defconfig",
"variant": "RK3568",
},
]
steps:
- name: Toolchain
run: |
sudo apt-get update
sudo apt-get install gcc gcc-aarch64-linux-gnu python3-pyelftools confget libgnutls28-dev uuid-dev
- name: Checkout rkbin - ${{ inputs.rkbin_ref }}
uses: actions/checkout@v4
with:
repository: rockchip-linux/rkbin
ref: ${{ inputs.rkbin_ref }}
path: rkbin
- name: Checkout u-boot - ${{ inputs.uboot_ref }}
uses: actions/checkout@v4
with:
repository: Kwiboo/u-boot-rockchip
ref: ${{ inputs.uboot_ref }}
path: u-boot
- name: Build u-boot - ${{ matrix.boards.config }}
id: build
if: ${{ hashFiles(format('u-boot/configs/{0}', 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
SOC=$(echo "${{ matrix.boards.variant }}" | tr '[:upper:]' '[:lower:]')
rkbin/tools/ddrbin_tool $SOC 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="-Werror" CROSS_COMPILE=aarch64-linux-gnu- -j$(nproc)
tools/mkimage -l u-boot.itb
- name: Upload artifacts
if: ${{ success() && steps.build.conclusion != 'skipped' }}
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.boards.name }}
path: |
u-boot/u-boot-rockchip.bin
u-boot/u-boot-rockchip-spi.bin