File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -226,15 +226,18 @@ if [[ ${board} != "bpi-r2pro" ]];then
226226
227227 if [[ ${board} == " bpi-r4" ]]; then
228228 # copy wifi-firmware to image
229- fwdir=${targetdir} /lib/firmware/mediatek/mt7996/
229+ fwdir=${targetdir} /lib/firmware/mediatek/
230230 sudo mkdir -p $fwdir
231- for f in mt7996_dsp.bin mt7996_eeprom_233.bin mt7996_rom_patch_233.bin mt7996_wa_233.bin mt7996_wm_233.bin;
231+ for f in mt7996/ mt7996_dsp.bin mt7996/ mt7996_eeprom_233.bin mt7996/ mt7996_rom_patch_233.bin mt7996/ mt7996_wa_233.bin mt7996/ mt7996_wm_233.bin mt7988/i2p5ge-phy-pmb .bin;
232232 do
233- # src="https://github.com/frank-w/BPI-Router-Linux/raw/6.10-main/utils /firmware/mediatek/mt7996 /$f";
234- src= " https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/plain/mediatek/mt7996/ $f " ;
235- sudo curl -L --silent --create-dirs -O -- output-dir $fwdir $src
233+ src=" https://git.kernel.org/pub/scm/linux/kernel/git /firmware/linux-firmware.git/plain/mediatek /$f " ;
234+ echo " download $src to $fwdir / $f ... "
235+ sudo curl -L --silent --create-dirs -- output $fwdir / $f $src
236236 done
237237 sudo ls -lRh $fwdir
238+ # changes for 2.5g phy variant
239+ echo " # is2g5=1" | sudo tee -a mnt/BPI-BOOT/${ubootconfigdir} /${ubootconfig}
240+ echo " # mtk-2p5ge" | sudo tee -a ${targetdir} /etc/modules
238241 fi
239242fi
240243
You can’t perform that action at this time.
0 commit comments