Skip to content

Commit 459c79c

Browse files
committed
Add Agilex5 DK-A5E013BM16AEA support
Signed-off-by: drosdi <danish.ahmad.rosdi@altera.com>
1 parent 8b8c41b commit 459c79c

File tree

4 files changed

+18
-6
lines changed

4 files changed

+18
-6
lines changed

README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ Dependencies
2323
| -------------------------- | -------------------------------------------- |
2424
| Agilex3 | gsrd, qspi |
2525
| Agilex5 | gsrd |
26+
| Agilex5 DK-A5E013BM16AEA | gsrd, qspi |
2627
| Agilex5 DK-A5E065BB32AES1 | gsrd [ qspi + emmc ] |
2728
| Agilex5 MK-A5E065BB32AES1 | gsrd |
2829
| Agilex7 DK-SI-AGF014EB | gsrd [ sgmii + pr + qspi ] |
@@ -48,6 +49,7 @@ Dependencies
4849
| -------------------------- | ---------------------------------------------- |
4950
| Agilex3 | $ . agilex3-$Image-build.sh |
5051
| Agilex5 | $ . agilex5-gsrd-build.sh |
52+
| Agilex5 DK-A5E013BM16AEA | $ . agilex5_dk_a5e013bm16aea-$Image-build.sh |
5153
| Agilex5 DK-A5E065BB32AES1 | $ . agilex5_dk_a5e065bb32aes1-gsrd-build.sh |
5254
| Agilex5 MK-A5E065BB32AES1 | $ . agilex5_mk_a5e065bb32aes1-gsrd-build.sh |
5355
| Agilex7 DK-SI-AGF014EB | $ . agilex7_dk_si_agf014eb-gsrd-build.sh |
@@ -74,6 +76,7 @@ Dependencies
7476
| -------------------------- | ---------------------------------------------- |
7577
| Agilex3 | $ . agilex3-$Image-build.sh |
7678
| Agilex5 | $ . agilex5-gsrd-build.sh |
79+
| Agilex5 DK-A5E013BM16AEA | $ . agilex5_dk_a5e013bm16aea-$Image-build.sh |
7780
| Agilex5 DK-A5E065BB32AES1 | $ . agilex5_dk_a5e065bb32aes1-gsrd-build.sh |
7881
| Agilex5 MK-A5E065BB32AES1 | $ . agilex5_mk_a5e065bb32aes1-gsrd-build.sh |
7982
| Agilex7 DK-SI-AGF014EB | $ . agilex7_dk_si_agf014eb-gsrd-build.sh |
@@ -98,9 +101,10 @@ Dependencies
98101

99102
| Target | Command |
100103
| -------------------------- | ---------------------------------------------- |
101-
| Agilex3 | $ . agilex3-$Image-build.sh |
104+
| Agilex3 | $ . agilex3-$Image-build.sh |
102105
| Agilex5 | $ . agilex5-gsrd-build.sh |
103-
| Agilex5 DK-A5E065BB32AES1 | $ . agilex5_dk_a5e065bb32aes1-gsrd-build.sh |
106+
| Agilex5 DK-A5E013BM16AEA | $ . agilex5_dk_a5e013bm16aea-$Image-build.sh |
107+
| Agilex5 DK-A5E065BB32AES1 | $ . agilex5_dk_a5e065bb32aes1-gsrd-build.sh |
104108
| Agilex5 MK-A5E065BB32AES1 | $ . agilex5_mk_a5e065bb32aes1-gsrd-build.sh |
105109
| Agilex7 DK-SI-AGF014EB | $ . agilex7_dk_si_agf014eb-gsrd-build.sh |
106110
| Agilex7 DK-DEV-AGF023FA | $ . agilex7_dk_dev_agf023fa-gsrd-build.sh |
@@ -119,6 +123,8 @@ Dependencies
119123
NOTE: Update/Replace the file with the same naming convention
120124
For Agilex3:-
121125
agilex3_gsrd_ghrd.core.rbf
126+
For Agilex5 DK-A5E013BM16AEA:-
127+
agilex5_dk_a5e013bm16aea_gsrd_ghrd.core.rbf
122128
For Agilex5 DK-A5E065BB32AES1:-
123129
agilex5_dk_a5e065bb32aes1_gsrd_ghrd.core.rbf
124130
agilex5_dk_a5e065bb32aes1_emmc_ghrd.core.rbf
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
build.sh
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
build.sh

build.sh

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ build_setup() {
148148
bitbake-layers add-layer ../meta-openembedded/meta-oe
149149
bitbake-layers add-layer ../meta-openembedded/meta-python
150150

151-
if ! [[ "$MACHINE" == "agilex3" && "$IMAGE" == "qspi" ]]; then
151+
if ! [[ ( "$MACHINE" == "agilex3" || "$MACHINE" == "agilex5_dk_a5e013bm16aea" ) && "$IMAGE" == "qspi" ]]; then
152152
bitbake-layers add-layer ../meta-openembedded/meta-networking
153153
bitbake-layers add-layer ../meta-clang
154154
fi
@@ -164,13 +164,13 @@ build_setup() {
164164
echo "DL_DIR = \"$WORKSPACE/downloads\"" >> conf/site.conf
165165
echo "SSTATE_DIR ?= \"$WORKSPACE/sstate_cache\"" >> conf/site.conf
166166
echo "IMAGE_TYPE:${MACHINE} = \"$IMAGE\"" >> conf/site.conf
167-
if ! [[ "$MACHINE" == "agilex3" && "$IMAGE" == "qspi" ]]; then
167+
if ! [[ ( "$MACHINE" == "agilex3" || "$MACHINE" == "agilex5_dk_a5e013bm16aea" ) && "$IMAGE" == "qspi" ]]; then
168168
echo 'DISTRO_FEATURES:append = " systemd usrmerge"' >> conf/site.conf
169169
echo 'VIRTUAL-RUNTIME_init_manager = "systemd"' >> conf/site.conf
170170
else
171171
echo 'IMAGE_FSTYPES:append = " cpio cpio.gz cpio.gz.u-boot ext3 jffs2 tar.gz multiubi"' >> conf/site.conf
172172
echo 'CORE_IMAGE_EXTRA_INSTALL += "openssh gdbserver mtd-utils net-tools"' >> conf/site.conf
173-
echo 'AGILEX3_QSPI_BUILD = "1"' >> conf/site.conf
173+
echo '64MB_QSPI_BUILD = "1"' >> conf/site.conf
174174
fi
175175
echo "require conf/machine/$MACHINE-gsrd.conf" >> conf/site.conf
176176
# Linux
@@ -229,7 +229,7 @@ bitbake_image() {
229229
fi
230230

231231
echo -e "\n[INFO] Start bitbake process for target config.."
232-
if [[ "$MACHINE" == "agilex3" && "$IMAGE" == "qspi" ]]; then
232+
if [[ ( "$MACHINE" == "agilex3" || "$MACHINE" == "agilex5_dk_a5e013bm16aea" ) && "$IMAGE" == "qspi" ]]; then
233233
bitbake core-image-minimal 2>&1
234234
else
235235
bitbake console-image-minimal gsrd-console-image 2>&1
@@ -397,6 +397,10 @@ package() {
397397
for file in *_dk_dev_agm039fes*; do
398398
mv "$file" "${file/_dk_dev_agm039fes/}"
399399
done
400+
elif [ "$MACHINE" == "agilex5_dk_a5e013bm16aea" ]; then
401+
for file in *_dk_a5e013bm16aea*; do
402+
mv "$file" "${file/_dk_a5e013bm16aea/}"
403+
done
400404
elif [ "$MACHINE" == "agilex5_dk_a5e065bb32aes1" ]; then
401405
for file in *_dk_a5e065bb32aes1*; do
402406
mv "$file" "${file/_dk_a5e065bb32aes1/}"

0 commit comments

Comments
 (0)