Hello, yes, like bootm 0x20000000 ..., but you miss ramdisk. I have attached my script here.
# ==================== script ================================
setenv bootpart 1
setexpr rval *0x020CC068 \& 0x180
if itest.s "x$rval" -eq "x100"; then
echo "Starting fastboot..."
fastboot 0
else
if itest.s "x$rval" -eq "x80"; then
setenv bootpart 2;
fi
fi
mw.l 0x020cc068 0 1
setenv bootargs ''
m4=''
a_base=0x10000000
if itest.s x51 == "x${cpu}" ; then
a_base=0x90000000
elif itest.s x53 == "x${cpu}"; then
a_base=0x70000000
elif itest.s x6SX == "x${cpu}" || itest.s x7D == "x${cpu}"; then
a_base=0x80000000
if itest.s "x1" == "x$m4enabled" ; then
run m4boot;
m4='-m4';
fi
fi
setexpr a_script 0x10000000
setexpr a_zImage 0x12000000
setexpr a_fdt 0x18000000
setexpr a_ramdisk 0x13800000
if itest.s "x" == "x${board}" ; then
echo "!!!! Error: Your u-boot is outdated. Please upgrade.";
exit;
fi
if itest.s "x" == "x${dtbname}" ; then
if itest.s x6SOLO == "x${cpu}" ; then
dtbname=imx6dl-${board}.dtb;
elif itest.s x6DL == "x${cpu}" ; then
dtbname=imx6dl-${board}.dtb;
elif itest.s x6QP == "x${cpu}" ; then
dtbname=imx6qp-${board}.dtb;
elif itest.s x6SX == "x${cpu}" ; then
dtbname=imx6sx-${board}${m4}.dtb;
elif itest.s x7D == "x${cpu}" ; then
dtbname=imx7d-${board}${m4}.dtb;
elif itest.s x51 == "x${cpu}" ; then
dtbname=imx51-${board}${m4}.dtb;
elif itest.s x53 == "x${cpu}" ; then
dtbname=imx53-${board}${m4}.dtb;
else
dtbname=imx6q-${board}.dtb;
fi
fi
if load ${dtype} ${disk}:${bootpart} ${a_script} uEnv.txt ; then
env import -t ${a_script} ${filesize}
fi
if load ${dtype} ${disk}:${bootpart} ${a_fdt} ${bootdir}${dtbname} ; then
fdt addr ${a_fdt}
setenv fdt_high 0xffffffff
else
echo "!!!! Error loading ${bootdir}${dtbname}";
exit;
fi
cmd_xxx_present=
fdt resize
if itest.s "x" != "x${cmd_custom}" ; then
run cmd_custom
cmd_xxx_present=1;
fi
# ------------------- Displays detection
if itest.s "x" != "x${cmd_hdmi}" ; then
run cmd_hdmi
cmd_xxx_present=1;
if itest.s x == x${allow_noncea} ; then
setenv bootargs ${bootargs} mxc_hdmi.only_cea=1;
echo "only CEA modes allowed on HDMI port";
else
setenv bootargs ${bootargs} mxc_hdmi.only_cea=0;
echo "non-CEA modes allowed on HDMI, audio may be affected";
fi
fi
if itest.s "x" != "x${cmd_lcd}" ; then
run cmd_lcd
cmd_xxx_present=1;
setenv bootargs $bootargs tsc2004.calibration=-67247,-764,272499173,324,69283,-8653010,65536
fi
if itest.s "x" != "x${cmd_lvds}" ; then
run cmd_lvds
cmd_xxx_present=1;
fi
if itest.s "x" != "x${cmd_lvds2}" ; then
run cmd_lvds2
cmd_xxx_present=1;
fi
if itest.s "x" == "x${cmd_xxx_present}" ; then
echo "!!!!!!!!!!!!!!!!"
echo "warning: your u-boot may be outdated, please upgrade"
echo "!!!!!!!!!!!!!!!!"
fi
setenv bootargs "$bootargs console=${console},115200 vmalloc=128M consoleblank=0 androidboot.selinux=permissive androidboot.selinux=enforcing rootwait"
setenv bootargs $bootargs androidboot.hardware=freescale
if itest.s "xsata" == "x$dtype" ; then
bootdev=sda
elif itest.s "xusb" == "x$dtype" ; then
bootdev=sda
else
bootdev=mmcblk${disk}
fi
setenv bootargs $bootargs androidboot.bootdev=$bootdev
if itest.s "x" != "x$selinux" ; then
setenv bootargs $bootargs androidboot.selinux=$selinux
fi
# add serial number based on MAC address
setexpr mac_hi *0x021bc630
setexpr mac_lo *0x021bc620
setenv bootargs $bootargs androidboot.serialno="$mac_hi$mac_lo"
if itest.s "x" != "x$hwrotation" ; then
setenv bootargs $bootargs androidboot.hwrotation=$hwrotation
fi
if itest.s "x" != "x$disable_giga" ; then
setenv bootargs $bootargs fec.disable_giga=1
fi
if itest.s "x" != "x$wlmac" ; then
setenv bootargs $bootargs wlcore.mac=$wlmac
setenv bootargs $bootargs androidboot.wlan.mac=$wlmac
# create a bt mac address from the wlan one
setexpr btmac sub "(..:..:..:).(.*)" "\\1b\\2" ${wlmac}
setenv bootargs $bootargs androidboot.btmacaddr=${btmac}
fi
if itest.s "x" == "x$cma" ; then
cma=448M
fi
setenv bootargs $bootargs cma=$cma
if itest.s "x" != "x$gpumem" ; then
setenv bootargs $bootargs galcore.contiguousSize=$gpumem
fi
if itest.s "x" != "x$show_fdt" ; then
fdt print /
fi
if itest.s "x" != "x$show_env" ; then
printenv
fi
tftp 0x20000000 uTee
if ${fs}load ${dtype} ${disk}:${bootpart} ${a_zImage} zImage ; then
if ${fs}load ${dtype} ${disk}:${bootpart} ${a_ramdisk} uramdisk.img ; then
bootm 0x20000000 ${a_ramdisk} ${a_fdt} ;
fi
fi
echo "Error loading the OS"