  
  /* Physical Memory Map */
  #define CONFIG_NR_DRAM_BANKS		2
-@@ -201,6 +203,33 @@
+@@ -201,6 +203,34 @@
          func(DHCP, dhcp, na)
  #include <config_distro_bootcmd.h>
  

+                                                                        \
+    "bootlimit=1\0"                                                     \
+                                                                        \
+    "upgrade_available=1\0"                                             \
+                                                                        \
+    "boot_part=2\0"                                                     \
+                                                                        \

+    "then setenv boot_part 3; "                                         \
+    "else setenv boot_part 2; "                                         \
+    "fi; "                                                              \
+    "setenv upgrade_available 0; "                                      \
+    "saveenv; "                                                         \
+    "run qemu_boot\0"                                                   \
+                                                                        \
