Skip to content

Commit 81ddbde

Browse files
committed
buildimg: set uEnv.txt based on variant set
1 parent 0a71b31 commit 81ddbde

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

buildimg.sh

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -237,10 +237,13 @@ if [[ ${board} != "bpi-r2pro" ]];then
237237
download_firmware $targetdir mediatek/mt7988/i2p5ge-phy-pmb.bin
238238
download_firmware $targetdir aeonsemi/as21x1x_fw.bin
239239
sudo ls -lRh $fwdir
240-
#changes for 2.5g phy and R4Pro variant
241-
echo "# is2g5=1" | sudo tee -a mnt/BPI-BOOT/${ubootconfigdir}/${ubootconfig}
242-
echo "# isr4pro=1" | sudo tee -a mnt/BPI-BOOT/${ubootconfigdir}/${ubootconfig}
243-
echo "# isr4lite=1" | sudo tee -a mnt/BPI-BOOT/${ubootconfigdir}/${ubootconfig}
240+
#changes for 2.5g phy and R4Pro/R4Lite variant
241+
if [[ "$variant" == "bpi-r4-2g5" ]];then pfx=""; else pfx="# "; fi
242+
echo "${pfx}is2g5=1" | sudo tee -a mnt/BPI-BOOT/${ubootconfigdir}/${ubootconfig}
243+
if [[ "$variant" == "bpi-r4pro" ]];then pfx=""; else pfx="# "; fi
244+
echo "${pfx}isr4pro=1" | sudo tee -a mnt/BPI-BOOT/${ubootconfigdir}/${ubootconfig}
245+
if [[ "$variant" == "bpi-r4lite" ]];then pfx=""; else pfx="# "; fi
246+
echo "${pfx}isr4lite=1" | sudo tee -a mnt/BPI-BOOT/${ubootconfigdir}/${ubootconfig}
244247
echo "# mtk-2p5ge" | sudo tee -a ${targetdir}/etc/modules
245248
fi
246249
fi

0 commit comments

Comments
 (0)