# Normal ramdisk : partition 7
# Ramdisk Recovery : Partition 8
-ramdiskdev=0
ramdiskpart=7
ramdisksize=800000
bootmode=ramdisk
setenv bootargs \"8250.nr_uarts=1 dma.dmachans=0x7f35 bcm2709.serial=0xed6687d3 bcm2709.uart_clock=48000000 smsc95xx.macaddr=${ethaddr} root=/dev/${rootdev} rw bootmode=${bootmode} bcm2709.boardrev=0xa02082 rootwait earlyprintk console=ttyS0,115200n8 vc_mem.mem_base=0x3dc00000 vc_mem.mem_size=0x3f000000\"
# Find the ramdisk offset and block count
-part start $bootdev $ramdiskdev $ramdiskpart ramdisk_start
-part size $bootdev $ramdiskdev $ramdiskpart ramdisk_size
+part start $bootdev $mmcrootdev $ramdiskpart ramdisk_start
+part size $bootdev $mmcrootdev $ramdiskpart ramdisk_size
echo "Searching for kernel in"; for prefix in $boot_prefixes; do
if load $bootdev $mmcbootdev:$mmcbootpart $kernel_addr_r $prefix$kernel; then;