  2 files changed, 6 insertions(+), 7 deletions(-)
 
 diff --git a/include/configs/am335x_evm.h b/include/configs/am335x_evm.h
-index 3cf768e..5d21335 100644
+index 6ebe0b3..12286dc 100644
 --- a/include/configs/am335x_evm.h
 +++ b/include/configs/am335x_evm.h
-@@ -104,8 +104,8 @@
+@@ -93,6 +93,7 @@
+ 	func(DHCP, dhcp, na)
+ 
+ #define CONFIG_BOOTCOMMAND \
++	"run mender_setup; " \
+ 	"run findfdt; " \
+ 	"run distro_bootcmd"
+ 
+@@ -135,8 +136,8 @@
  		"root=${ramroot} " \
  		"rootfstype=${ramrootfstype}\0" \
  	"loadramdisk=load mmc ${mmcdev} ${rdaddr} ramdisk.gz\0" \

 	"mmcloados=run args_mmc; " \
 		"if test ${boot_fdt} = yes || test ${boot_fdt} = try; then " \
 			"if run loadfdt; then " \
@@ -164,6 +164,7 @@
 #endif
 
 #define CONFIG_BOOTCOMMAND \
+	"run mender_setup; " \
 	"run findfdt; " \
 	"run mmcboot;" \
 	"setenv mmcdev 1; " \
@@ -197,7 +198,7 @@
 
 /* Bootcount using the RTC block */
 #define CONFIG_BOOTCOUNT_LIMIT

 #define CONFIG_SYS_BOOTCOUNT_BE
 
 /* USB gadget RNDIS */
@@ -274,9 +275,7 @@
 					"-(NAND.file-system)"
 #define CONFIG_SYS_NAND_U_BOOT_OFFS	0x000c0000
 #undef CONFIG_ENV_IS_NOWHERE
