by roboconnell » Sun Sep 01, 2013 1:15 am
thanks scarpino - this worked for me.
I had same problem: with SD card in, the default uEnv works, with the SD card out, it does not prior to the change. I'm just trying to understand why the original doesn't work with the SD card out...it seems like it should!
my uEnv.txt with your mod is below
originally 2nd last line read:
$this->bbcode_second_pass_code('', '
setmmcroot=setenv mmcroot /dev/mmcblk${mmcdev}p2 rw')
I'm trying to understand why the default one does not work: since your change is to only the setmmcroot cmd, then I assume the first line is being completed, which only then makes sense to me if mmcdev is incorrectly set in that line or incorrectly read in the original setmmcroot cmd? I only see the penguin prior to the change - no text for "No zImage found"
here's my working uEnv.txt
$this->bbcode_second_pass_code('', '
uenvcmd=if load mmc 0:2 ${loadaddr} /boot/zImage; then setenv mmcdev 0; run uenvboot; else setenv mmcdev 1; setenv mmcroot /dev/mmcblk1p2 rw; if load mmc 1:2 ${loadaddr} /boot/zImage; then run uenvboot; else echo No zImage found; fi; fi
uenvboot=run loadfdt; run setmmcroot; run mmcboot
setmmcroot=setenv mmcroot /dev/mmcblk0p2 rw
loadfdt=load mmc ${mmcdev}:2 ${fdtaddr} /boot/dtbs/${fdtfile}
')
Last edited by
WarheadsSE on Sun Sep 01, 2013 3:25 am, edited 1 time in total.
Reason: wrapping with code tags