File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
246249fi
You can’t perform that action at this time.
0 commit comments