+# boot from ram0 if there is sbin or it is initramfs
+if test -e $bootdev $mmcrootdev:$ramdiskpart sbin/init; then;
+ setenv rootdev ram0
+ echo "Loading Ramdisk from partition"${ramdiskpart};
+ mmc read $ramdisk_addr_r $ramdisk_start $ramdisk_size;
+else
+ # Check for gzip (initramfs) magic
+ mmc read $ramdisk_addr_r $ramdisk_start 1;
+ if itest.w *$ramdisk_addr_r == 0x8b1f; then;
+ setenv rootdev ram0
+ echo "Loading initramfs from partition ${ramdiskpart}";
+ mmc read $ramdisk_addr_r $ramdisk_start $ramdisk_size;
+ else
+ setenv rootdev mmcblk${mmcrootdev}p${mmcrootpart}
+ setenv bootmode normal
+ fi
+fi
+
+# To use comdline for using serial console. /* Normal mode */
+setenv bootargs \"root=/dev/${rootdev} rootwait rw no_console_suspend fsck.repair=yes net.ifnames=0 elevator=noop hdmimode=${hdmimode} cvbsmode=576cvbs ${cmode} usb-xhci.tablesize=2 logo=osd0,loaded ${console} ${boot_args} ${opts}\"
+