Skip to content

Commit d5698ec

Browse files
committed
uenv: r4: use own sd/emmc overlays for r4pro
1 parent 9189e16 commit d5698ec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

uEnv_r4.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,10 @@ checkspi=if sf probe; then echo "NOR available";spidev="nor";else echo "NAND ava
6969
checksata=if test -n "$sata_en" && test $sata_en -eq 1;then setenv satacfg "#sata"; fi
7070
checkwifi=if test -n "$wifi_en" && test $wifi_en -eq 1;then setenv wificfg "#wifi"; fi
7171
check2g5=if test -n "$is2g5" && test $is2g5 -eq 1;then setenv variant "-2g5"; fi
72-
checkr4pro=if test -n "$isr4pro" && test $isr4pro -eq 1;then setenv variant "-r4pro"; fi
72+
checkr4pro=if test -n "$isr4pro" && test $isr4pro -eq 1;then setenv variant "-r4pro";setenv ovmmc "#ov-pro-$mmcdev"; fi
7373
#r4lite needs different mmc-overlays based on shematic
7474
checkr4lite=if test -n "$isr4lite" && test $isr4lite -eq 1;then setenv variant "-r4lite";setenv ovmmc "#ov-lite-$mmcdev";run checkspi;setenv ovspi "#ov-lite-$spidev";fi
75-
setbootconf=run check2g5;run checkr4pro;run checkmmc;run checksata;run checkwifi;run checkr4lite;setenv bootconf "#conf-base$variant$version$ovmmc$ovspi$wificfg$satacfg";printenv bootconf
75+
setbootconf=run check2g5;run checkmmc;run checksata;run checkwifi;run checkr4lite;run checkr4pro;setenv bootconf "#conf-base$variant$version$ovmmc$ovspi$wificfg$satacfg";printenv bootconf
7676

7777
wrspimnand=if printenv bl2file;then if fatload $device $partition $loadaddr $bl2file;then mtd erase spi-nand0 0x0 0x100000;mtd write spi-nand0 $loadaddr 0x0 0x100000;else echo "loading bl2 $bl2file failed";fi;else echo "bl2file not defined";fi;if printenv fipfile;then if fatload $device $partition $loadaddr $fipfile;then mtd erase spi-nand0 0x580000 0x200000;mtd write spi-nand0 $loadaddr 0x580000 0x200000;else echo "loading fip $fipfile failed";fi;else echo "fipfile not defined";fi
7878
wremmc=if printenv bl2file;then mmc partconf 0 1 1 1;if fatload $device $partition $loadaddr $bl2file;then mmc erase 0x0 0x400;mmc write ${loadaddr} 0x0 0x400;else echo "loading bl2 $bl2file failed";fi;else echo "bl2file not defined";fi;mmc partconf 0 1 1 0;if printenv fipfile;then if fatload $device $partition $loadaddr $fipfile;then mmc erase 0x3400 0x1000;mmc write ${loadaddr} 0x3400 0x1000;else echo "loading fip $fipfile failed";fi;else echo "fipfile not defined";fi

0 commit comments

Comments
 (0)