diff --git a/meta-mender-core/recipes-bsp/u-boot/files/uboot_auto_patch.sh b/meta-mender-core/recipes-bsp/u-boot/files/uboot_auto_patch.shindex 7409e47..6603789 100755--- a/meta-mender-core/recipes-bsp/u-boot/files/uboot_auto_patch.sh+++ b/meta-mender-core/recipes-bsp/u-boot/files/uboot_auto_patch.sh@@ -279,34 +279,7 @@ patch_all_candidates() {"fdt_addr_r"fi- # Find load address for kernel and make sure it's in kernel_addr_r.- if kernel_addr="$(extract_kernel_addr)"; then- if [ "$kernel_addr" != "kernel_addr_r" ]; then- remove_bootvar \- "kernel_addr_r"- fi- rename_bootvar \- "$kernel_addr" \- "kernel_addr_r"- else- # Alright, no dedicated address. Let's try the second best, find it by- # looking at existing boot commands.- addr=$(sed -nre '/boot[miz] *(0x[0-9a-fA-F]+)/ {s/.*boot[miz] *(0x[0-9a-fA-F]+).*/\1/; p}' "$COMPILED_ENV" | head -n1)-- # Using the :- syntax is because "set -u" is in effect.- if [ -n "${addr:-}" ]; then- if definition_exists "CONFIG_EXTRA_ENV_SETTINGS"; then- append_to_definition "CONFIG_EXTRA_ENV_SETTINGS" "\"kernel_addr_r=$addr\\\\0\""- else- add_definition "CONFIG_EXTRA_ENV_SETTINGS" "\"kernel_addr_r=$addr\\\\0\""- fi- else- echo "Could not find kernel load address!" 1>&2- echo "This is the obtained environment:"- cat "$COMPILED_ENV"- # Continue without, some boot commands don't use addresses at all.- fi- fi+ append_to_definition "CONFIG_EXTRA_ENV_SETTINGS" "\"kernel_addr_r=0x80800000\\\\0\""}
All this section does is look for an already existing kernel_addr_r address, so you should be able to patch it into CONFIG_EXTRA_ENV_SETTINGS using a regular patch in SRC_URI, and then uboot_auto_patch.sh will pick it up once it runs.
An alternative is save the auto configured patch using the save_mender_auto_configured_patch bitbake task, and then modify it according to needs and turn off autopatching.
--SRC_URI += "file://my-patch.patch \"
---include/configs/myplatform.h | 6 ++++++1 file changed, 6 insertions(+)diff --git a/include/configs/myplatform.h b/include/configs/myplatform.hindex b485470..a4c994d 100644--- a/include/configs/myplatform.h+++ b/include/configs/myplatform.h@@ -74,6 +74,10 @@#define MFG_NAND_PARTITION ""#endif++#define ENV_MEM_LAYOUT_SETTINGS \+ "kernel_addr_r=0x80800000\0" \+#define CONFIG_MFG_ENV_SETTINGS \"mfgtool_args=setenv bootargs console=${console},${baudrate} " \BOOTARGS_CMA_SIZE \@@ -96,6 +100,7 @@"fdt_addr=0x83000000\0" \"fdt_high=0xffffffff\0" \"console=ttymxc0\0" \+ ENV_MEM_LAYOUT_SETTINGS \"bootargs=console=ttymxc0,115200 ubi.mtd=4 " \"root=ubi0:rootfs rootfstype=ubifs " \BOOTARGS_CMA_SIZE \@@ -117,6 +122,7 @@"boot_fdt=try\0" \"ip_dyn=yes\0" \"panel=TFT43AB\0" \+ ENV_MEM_LAYOUT_SETTINGS \"mmcdev="__stringify(CONFIG_SYS_MMC_ENV_DEV)"\0" \"mmcpart=" __stringify(CONFIG_SYS_MMC_IMG_LOAD_PART) "\0" \"mmcroot=" CONFIG_MMCROOT " rootwait rw\0" \--2.7.4
#define ENV_MEM_LAYOUT_SETTINGS \"kernel_addr_r=0x80800000\0" \#if defined(CONFIG_NAND_BOOT)#define CONFIG_EXTRA_ENV_SETTINGS \CONFIG_MFG_ENV_SETTINGS \"panel=TFT43AB\0" \"fdt_addr=0x83000000\0" \"fdt_high=0xffffffff\0" \"console=ttymxc0\0" \ENV_MEM_LAYOUT_SETTINGS \"bootargs=console=ttymxc0,115200 ubi.mtd=4 " \"root=ubi0:rootfs rootfstype=ubifs " \BOOTARGS_CMA_SIZE \"mtdparts=gpmi-nand:64m(boot),16m(kernel),16m(dtb),1m(misc),-(rootfs)\0"\"bootcmd=nand read ${loadaddr} 0x4000000 0x800000;"\"nand read ${fdt_addr} 0x5000000 0x100000;"\"bootz ${loadaddr} - ${fdt_addr}\0"#else#define CONFIG_EXTRA_ENV_SETTINGS \CONFIG_MFG_ENV_SETTINGS \"script=boot.scr\0" \"image=zImage\0" \"console=ttymxc0\0" \"fdt_high=0xffffffff\0" \"initrd_high=0xffffffff\0" \"fdt_file=undefined\0" \"fdt_addr=0x83000000\0" \"boot_fdt=try\0" \"ip_dyn=yes\0" \"panel=TFT43AB\0" \ENV_MEM_LAYOUT_SETTINGS \"mmcdev="__stringify(CONFIG_SYS_MMC_ENV_DEV)"\0" \"mmcpart=" __stringify(CONFIG_SYS_MMC_IMG_LOAD_PART) "\0" \"mmcroot=" CONFIG_MMCROOT " rootwait rw\0" \"mmcautodetect=yes\0" \"mmcargs=setenv bootargs console=${console},${baudrate} " \BOOTARGS_CMA_SIZE \"root=${mmcroot}\0" \"loadbootscript=" \"fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${script};\0" \"bootscript=echo Running bootscript from mmc ...; " \"source\0" \"loadimage=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${image}\0" \"loadfdt=fatload mmc ${mmcdev}:${mmcpart} ${fdt_addr} ${fdt_file}\0" \"mmcboot=echo Booting from mmc ...; " \"run mmcargs; " \"if test ${boot_fdt} = yes || test ${boot_fdt} = try; then " \"if run loadfdt; then " \"bootz ${loadaddr} - ${fdt_addr}; " \"else " \"if test ${boot_fdt} = try; then " \"bootz; " \"else " \"echo WARN: Cannot load the DT; " \"fi; " \"fi; " \"else " \"bootz; " \"fi;\0" \"netargs=setenv bootargs console=${console},${baudrate} " \BOOTARGS_CMA_SIZE \"root=/dev/nfs " \"ip=dhcp nfsroot=${serverip}:${nfsroot},v3,tcp\0" \"netboot=echo Booting from net ...; " \"run netargs; " \"if test ${ip_dyn} = yes; then " \"setenv get_cmd dhcp; " \"else " \"setenv get_cmd tftp; " \"fi; " \"${get_cmd} ${image}; " \"if test ${boot_fdt} = yes || test ${boot_fdt} = try; then " \"if ${get_cmd} ${fdt_addr} ${fdt_file}; then " \"bootz ${loadaddr} - ${fdt_addr}; " \"else " \"if test ${boot_fdt} = try; then " \"bootz; " \"else " \"echo WARN: Cannot load the DT; " \"fi; " \"fi; " \"else " \"bootz; " \"fi;\0" \"findfdt="\"if test $fdt_file = undefined; then " \"if test $board_name = EVK && test $board_rev = 9X9; then " \"setenv fdt_file imx6ull-9x9-evk.dtb; fi; " \"if test $board_name = EVK && test $board_rev = 14X14; then " \"setenv fdt_file imx6ull-14x14-evk.dtb; fi; " \"if test $fdt_file = undefined; then " \"echo WARNING: Could not determine dtb to use; fi; " \"fi;\0" \
I never tried the rootfs option. Where can I find the procedure to try?
Thanks
=> run bootcmd35538 bytes read in 95 ms (365.2 KiB/s)load - load binary file from a filesystem
Usage:load <interface> [<dev[:part]> [<addr> [<filename> [bytes [pos]]]]] - Load binary file 'filename' from partition 'part' on device type 'interface' instance 'dev' to address 'addr' in memory. 'bytes' gives the size to load in bytes. If 'bytes' is 0 or omitted, the file is read until the end. 'pos' gives the file byte position to start reading from. If 'pos' is 0 or omitted, the file is read from the start.Bad Linux ARM zImage magic!... header with my info ....
MENDER_ARTIFACT_NAME = "1.0.0"
INHERIT += "mender-full"MENDER_SERVER_URL = "https://my-server.com"
DISTRO_FEATURES_append = " systemd"
VIRTUAL-RUNTIME_init_manager = "systemd"DISTRO_FEATURES_BACKFILL_CONSIDERED = "sysvinit"VIRTUAL-RUNTIME_initscripts = ""
MENDER_BOOT_PART_SIZE_MB = "16"
IMAGE_BOOTLOADER_BOOTSECTOR_OFFSET = "2"IMAGE_BOOTLOADER_FILE = "u-boot.imx"MENDER_UBOOT_STORAGE_INTERFACE = "mmc"MENDER_UBOOT_STORAGE_DEVICE = "1"MENDER_STORAGE_DEVICE = "/dev/mmcblk1"
MENDER_STORAGE_TOTAL_SIZE_MB = "4096"
MENDER_DATA_PART_SIZE_MB = "64"
PACKAGE_EXCLUDE = "kernel-image-zimage-4.9.11-1.0.0+gc27010d"--- include/configs/mx6ullevk.h | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/include/configs/mx6ullevk.h b/include/configs/mx6ullevk.hindex b485470..e12bc4f 100644--- a/include/configs/mx6ullevk.h+++ b/include/configs/mx6ullevk.h@@ -92,6 +92,7 @@ #if defined(CONFIG_NAND_BOOT) #define CONFIG_EXTRA_ENV_SETTINGS \ CONFIG_MFG_ENV_SETTINGS \+ "kernel_addr_r=0x80800000\0" \ "panel=TFT43AB\0" \ "fdt_addr=0x83000000\0" \ "fdt_high=0xffffffff\0" \@@ -107,6 +108,7 @@ #else #define CONFIG_EXTRA_ENV_SETTINGS \ CONFIG_MFG_ENV_SETTINGS \+ "kernel_addr_r=0x80800000\0" \ "script=boot.scr\0" \ "image=zImage\0" \ "console=ttymxc0\0" \-- 2.7.4
printenvaltbootcmd=run mender_altbootcmd; run bootcmdbaudrate=115200board_name=EVKboard_rev=14X14boot_fdt=trybootargs=root=/dev/mmcblk1p2 root=/dev/mmcblk1p2bootcmd=run mender_setup; setenv bootargs root=${mender_kernel_root} ${bootargs}; if test "${fdt_addr_r}" != ""; then load ${mender_uboot_root} ${fdt_addr_r} /boot/${mender_dtb_name}; fi; load ${mender_uboot_root} ${kernel_addr_r} /boot/${mender_kernel_name}; ${mender_boot_kernel_type} ${kernel_addr_r} - ${fdt_addr_r}; run mender_try_to_recoverbootcount=1bootdelay=3bootlimit=1bootscript=echo Running bootscript from mmc ...; sourceconsole=ttymxc0fdt_addr_r=0x83000000fdt_file=imx6ull-14x14-evk.dtbfdt_high=0xfffffffffdtcontroladdr=9ef230f8fileaddr=83000000filesize=8ad2image=zImageinitrd_high=0xffffffffip_dyn=yesloadaddr=0x82000000loadbootscript=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${script};loadfdt=fatload mmc ${mmcdev}:${mmcpart} ${fdt_addr} ${fdt_file}loadimage=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${image}mender_altbootcmd=if test ${mender_boot_part} = 2; then setenv mender_boot_part 3; else setenv mender_boot_part 2; fi; setenv upgrade_available 0; saveenv; run mender_setupmender_boot_kernel_type=bootzmender_boot_part=2mender_boot_part_name=/dev/mmcblk1p2mender_dtb_name=imx6ull-14x14-evk.dtbmender_kernel_name=zImagemender_kernel_root=/dev/mmcblk1p2mender_kernel_root_name=/dev/mmcblk1p2mender_linux_test=1mender_setup=setenv mender_kernel_root /dev/mmcblk1p${mender_boot_part}; if test ${mender_boot_part} = 2; then setenv mender_boot_part_name /dev/mmcblk1p2; else setenv mender_boot_part_name /dev/mmcblk1p3; fi; setenv mender_kernel_root_name ${mender_boot_part_name}; setenv mender_uboot_root mmc 1:${mender_boot_part}; setenv mender_uboot_root_name ${mender_boot_part_name}; setenv expand_bootargs "setenv bootargs \\"${bootargs}\\""; run expand_bootargs; setenv expand_bootargsmender_try_to_recover=if test ${upgrade_available} = 1; then reset; fimender_uboot_boot=mmc 1:1mender_uboot_dev=1mender_uboot_if=mmcmender_uboot_root=mmc 1:2mender_uboot_root_name=/dev/mmcblk1p2mender_uboot_test=1mmcargs=setenv bootargs console=${console},${baudrate} mmcautodetect=yesmmcboot=echo Booting from mmc ...; run mmcargs; if test ${boot_fdt} = yes || test ${boot_fdt} = try; then if run loadfdt; then bootz ${loadaddr} - ${fdt_addr}; else if test ${boot_fdt} = try; then bootz; else echo WARN: Cannot load the DT; fi; fi; else bootz; fi;mmcdev=1mmcpart=1mmcroot=/dev/mmcblk1p2 rootwait rwnetargs=setenv bootargs console=${console},${baudrate} ip=dhcp nfsroot=${serverip}:${nfsroot},v3,tcpnetboot=echo Booting from net ...; run netargs; if test ${ip_dyn} = yes; then setenv get_cmd dhcp; else setenv get_cmd tftp; fi; ${get_cmd} ${image}; if test ${boot_fdt} = yes || test ${boot_fdt} = try; then if ${get_cmd} ${fdt_addr} ${fdt_file}; then bootz ${loadaddr} - ${fdt_addr}; else if test ${boot_fdt} = try; then bootz; else echo WARN: Cannot load the DT; fi; fi; else bootz; fi;script=boot.scrupgrade_available=0videomode=video=ctfb:x:480,y:272,depth:24,pclk:108695,le:8,ri:4,up:2,lo:4,hs:41,vs:10,sync:0,vmode:0
Environment size: 3247/131067 bytes=> altbootcmd=run mender_altbootcmd; run bootcmdbaudrate=115200board_name=EVKboard_rev=14X14boot_fdt=trybootargs=root=/dev/mmcblk1p2 root=/dev/mmcblk1p2bootcmd=run mender_setup; setenv bootargs root=${mender_kernel_root} ${bootargs}; if test "${fdt_addr_r}" != ""; then load ${mender_uboot_root} ${fdt_addr_r} /boot/${mender_dtb_name}; fi; load ${mender_uboot_root} ${kernel_addr_r} /boot/${mender_kernel_name}; ${mender_boot_kernel_type} ${kernel_addr_r} - ${fdt_addr_r}; run mender_try_to_recoverbootcount=1bootdelay=3bootlimit=1bootscript=echo Running bootscript from mmc ...; sourceconsole=ttymxc0fdt_addr_r=0x83000000fdt_file=imx6ull-14x14-evk.dtbfdt_high=0xfffffffffdtcontroladdr=9ef230f8fileaddr=83000000filesize=8ad2image=zImageinitrd_high=0xffffffffip_dyn=yesloadaddr=0x82000000loadbootscript=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${script};loadfdt=fatload mmc ${mmcdev}:${mmcpart} ${fdt_addr} ${fdt_file}loadimage=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${image}mender_altbootcmd=if test ${mender_boot_part} = 2; then setenv mender_boot_part 3; else setenv mender_boot_part 2; fi; setenv upgrade_available 0; saveenv; run mender_setupmender_boot_kernel_type=bootzmender_boot_part=2mender_boot_part_name=/dev/mmcblk1p2mender_dtb_name=imx6ull-14x14-evk.dtbmender_kernel_name=zImagemender_kernel_root=/dev/mmcblk1p2mender_kernel_root_name=/dev/mmcblk1p2mender_linux_test=1mender_setup=setenv mender_kernel_root /dev/mmcblk1p${mender_boot_part}; if test ${mender_boot_part} = 2; then setenv mender_boot_part_name /dev/mmcblk1p2; else setenv mender_boot_part_name /dev/mmcblk1p3; fi; setenv mender_kernel_root_name ${mender_boot_part_name}; setenv mender_uboot_root mmc 1:${mender_boot_part}; setenv mender_uboot_root_name ${mender_boot_part_name}; setenv expand_bootargs "setenv bootargs \\"${bootargs}\\""; run expand_bootargs; setenv expand_bootargsmender_try_to_recover=if test ${upgrade_available} = 1; then reset; fimender_uboot_boot=mmc 1:1mender_uboot_dev=1mender_uboot_if=mmcmender_uboot_root=mmc 1:2mender_uboot_root_name=/dev/mmcblk1p2mender_uboot_test=1mmcargs=setenv bootargs console=${console},${baudrate} mmcautodetect=yesmmcboot=echo Booting from mmc ...; run mmcargs; if test ${boot_fdt} = yes || test ${boot_fdt} = try; then if run loadfdt; then bootz ${loadaddr} - ${fdt_addr}; else if test ${boot_fdt} = try; then bootz; else echo WARN: Cannot load the DT; fi; fi; else bootz; fi;mmcdev=1mmcpart=1mmcroot=/dev/mmcblk1p2 rootwait rwnetargs=setenv bootargs console=${console},${baudrate} ip=dhcp nfsroot=${serverip}:${nfsroot},v3,tcpnetboot=echo Booting from net ...; run netargs; if test ${ip_dyn} = yes; then setenv get_cmd dhcp; else setenv get_cmd tftp; fi; ${get_cmd} ${image}; if test ${boot_fdt} = yes || test ${boot_fdt} = try; then if ${get_cmd} ${fdt_addr} ${fdt_file}; then bootz ${loadaddr} - ${fdt_addr}; else if test ${boot_fdt} = try; then bootz; else echo WARN: Cannot load the DT; fi; fi; else bootz; fi;script=boot.scrupgrade_available=0videomode=video=ctfb:x:480,y:272,depth:24,pclk:108695,le:8,ri:4,up:2,lo:4,hs:41,vs:10,sync:0,vmode:0
Environment size: 3247/131067 byteskernel_addr_r variable. Are you certain that your patch is being applied?
The bad CRC warning means that the u-boot variables have not yet been saved to the SD card. When you save the mender_linux_test variable for the first time, the u-boot code will save all the defaults to the SD card, along with the mender_linux_test variable. There is probably a way to copy the initial values to SD and avoid that warning. My build produces a "uboot.env" file, so perhaps that has the initial values in it. Mirza, can you comment?
You should also verify that your kernel and dtb file are in the /boot folder of the partitions called "primary" and "secondary". Initially I had the kernel and dtb file in the boot partition and only the kernel file in the /boot folder. I added this line to my local.conf file and the dtb file ended up in the /boot folder:
MACHINE_ESSENTIAL_EXTRA_RDEPENDS = "kernel-image kernel-devicetree"
I have not been able to remove the unnecessary copies of the kernel and dtb file from the boot partition. Really, I shouldn't need the boot partition at all since the u-boot binary goes in mmcblk1boot0 on my system (I'm using eMMC) and the u-boot environment is in an empty space in front of the first partition.
-Shawn
ls $mender_uboot_root /boot<DIR> 4096 .<DIR> 4096 .. 7252648 zImage 35538 imx6ull-14x14-evk.dtb=> <DIR> 4096 .<DIR> 4096 .. 7252648 zImage 35538 imx6ull-14x14-evk.dtbprintenvaltbootcmd=run mender_altbootcmd; run bootcmdbaudrate=115200board_name=EVKboard_rev=14X14boot_fdt=trybootcmd=run mender_setup; setenv bootargs root=${mender_kernel_root} ${bootargs}; if test "${fdt_addr_r}" != ""; then load ${mender_uboot_root} ${fdt_addr_r} /boot/${mender_dtb_name}; fi; load ${mender_uboot_root} ${kernel_addr_r} /boot/${mender_kernel_name}; ${mender_boot_kernel_type} ${kernel_addr_r} - ${fdt_addr_r}; run mender_try_to_recoverbootcmd_mfg=run mfgtool_args;bootz ${loadaddr} ${initrd_addr} ${fdt_addr};bootcount=1bootdelay=3bootlimit=1bootscript=echo Running bootscript from mmc ...; sourceconsole=ttymxc0ethprime=eth0fdt_addr_r=0x83000000fdt_file=undefinedfdt_high=0xfffffffffdtcontroladdr=9ef230f8findfdt=if test $fdt_file = undefined; then if test $board_name = EVK && test $board_rev = 9X9; then setenv fdt_file imx6ull-9x9-evk.dtb; fi; if test $board_name = EVK && test $board_rev = 14X14; then setenv fdt_file imx6ull-14x14-evk.dtb; fi; if test $fdt_file = undefined; then echo WARNING: Could not determine dtb to use; fi; fi;image=zImageinitrd_addr=0x83800000initrd_high=0xffffffffip_dyn=yeskernel_addr_r=0x80800000loadaddr=0x80800000loadbootscript=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${script};loadfdt=fatload mmc ${mmcdev}:${mmcpart} ${fdt_addr} ${fdt_file}loadimage=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${image}mender_altbootcmd=if test ${mender_boot_part} = 2; then setenv mender_boot_part 3; else setenv mender_boot_part 2; fi; setenv upgrade_available 0; saveenv; run mender_setupmender_boot_kernel_type=bootzmender_boot_part=2mender_dtb_name=imx6ull-14x14-evk.dtbmender_kernel_name=zImagemender_setup=setenv mender_kernel_root /dev/mmcblk1p${mender_boot_part}; if test ${mender_boot_part} = 2; then setenv mender_boot_part_name /dev/mmcblk1p2; else setenv mender_boot_part_name /dev/mmcblk1p3; fi; setenv mender_kernel_root_name ${mender_boot_part_name}; setenv mender_uboot_root mmc 1:${mender_boot_part}; setenv mender_uboot_root_name ${mender_boot_part_name}; setenv expand_bootargs "setenv bootargs \\"${bootargs}\\""; run expand_bootargs; setenv expand_bootargsmender_try_to_recover=if test ${upgrade_available} = 1; then reset; fimender_uboot_boot=mmc 1:1mender_uboot_dev=1mender_uboot_if=mmcmfgtool_args=setenv bootargs console=${console},${baudrate} rdinit=/linuxrc g_mass_storage.stall=0 g_mass_storage.removable=1 g_mass_storage.file=/fat g_mass_storage.ro=1 g_mass_storage.idVendor=0x066F g_mass_storage.idProduct=0x37FF g_mass_storage.iSerialNumber="" clk_ignore_unused mmcargs=setenv bootargs console=${console},${baudrate} mmcautodetect=yesmmcboot=echo Booting from mmc ...; run mmcargs; if test ${boot_fdt} = yes || test ${boot_fdt} = try; then if run loadfdt; then bootz ${loadaddr} - ${fdt_addr}; else if test ${boot_fdt} = try; then bootz; else echo WARN: Cannot load the DT; fi; fi; else bootz; fi;mmcdev=1mmcpart=1mmcroot=/dev/mmcblk1p2 rootwait rwnetargs=setenv bootargs console=${console},${baudrate} ip=dhcp nfsroot=${serverip}:${nfsroot},v3,tcpnetboot=echo Booting from net ...; run netargs; if test ${ip_dyn} = yes; then setenv get_cmd dhcp; else setenv get_cmd tftp; fi; ${get_cmd} ${image}; if test ${boot_fdt} = yes || test ${boot_fdt} = try; then if ${get_cmd} ${fdt_addr} ${fdt_file}; then bootz ${loadaddr} - ${fdt_addr}; else if test ${boot_fdt} = try; then bootz; else echo WARN: Cannot load the DT; fi; fi; else bootz; fi;panel=TFT43ABscript=boot.scrupgrade_available=0
Environment size: 3601/131067 bytes=> altbootcmd=run mender_altbootcmd; run bootcmdbaudrate=115200board_name=EVKboard_rev=14X14boot_fdt=trybootcmd=run mender_setup; setenv bootargs root=${mender_kernel_root} ${bootargs}; if test "${fdt_addr_r}" != ""; then load ${mender_uboot_root} ${fdt_addr_r} /boot/${mender_dtb_name}; fi; load ${mender_uboot_root} ${kernel_addr_r} /boot/${mender_kernel_name}; ${mender_boot_kernel_type} ${kernel_addr_r} - ${fdt_addr_r}; run mender_try_to_recoverbootcmd_mfg=run mfgtool_args;bootz ${loadaddr} ${initrd_addr} ${fdt_addr};bootcount=1bootdelay=3bootlimit=1bootscript=echo Running bootscript from mmc ...; sourceconsole=ttymxc0ethprime=eth0fdt_addr_r=0x83000000fdt_file=undefinedfdt_high=0xfffffffffdtcontroladdr=9ef230f8findfdt=if test $fdt_file = undefined; then if test $board_name = EVK && test $board_rev = 9X9; then setenv fdt_file imx6ull-9x9-evk.dtb; fi; if test $board_name = EVK && test $board_rev = 14X14; then setenv fdt_file imx6ull-14x14-evk.dtb; fi; if test $fdt_file = undefined; then echo WARNING: Could not determine dtb to use; fi; fi;image=zImageinitrd_addr=0x83800000initrd_high=0xffffffffip_dyn=yeskernel_addr_r=0x80800000loadaddr=0x80800000loadbootscript=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${script};loadfdt=fatload mmc ${mmcdev}:${mmcpart} ${fdt_addr} ${fdt_file}loadimage=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${image}mender_altbootcmd=if test ${mender_boot_part} = 2; then setenv mender_boot_part 3; else setenv mender_boot_part 2; fi; setenv upgrade_available 0; saveenv; run mender_setupmender_boot_kernel_type=bootzmender_boot_part=2mender_dtb_name=imx6ull-14x14-evk.dtbmender_kernel_name=zImagemender_setup=setenv mender_kernel_root /dev/mmcblk1p${mender_boot_part}; if test ${mender_boot_part} = 2; then setenv mender_boot_part_name /dev/mmcblk1p2; else setenv mender_boot_part_name /dev/mmcblk1p3; fi; setenv mender_kernel_root_name ${mender_boot_part_name}; setenv mender_uboot_root mmc 1:${mender_boot_part}; setenv mender_uboot_root_name ${mender_boot_part_name}; setenv expand_bootargs "setenv bootargs \\"${bootargs}\\""; run expand_bootargs; setenv expand_bootargsmender_try_to_recover=if test ${upgrade_available} = 1; then reset; fimender_uboot_boot=mmc 1:1mender_uboot_dev=1mender_uboot_if=mmcmfgtool_args=setenv bootargs console=${console},${baudrate} rdinit=/linuxrc g_mass_storage.stall=0 g_mass_storage.removable=1 g_mass_storage.file=/fat g_mass_storage.ro=1 g_mass_storage.idVendor=0x066F g_mass_storage.idProduct=0x37FF g_mass_storage.iSerialNumber="" clk_ignore_unused mmcargs=setenv bootargs console=${console},${baudrate} mmcautodetect=yesmmcboot=echo Booting from mmc ...; run mmcargs; if test ${boot_fdt} = yes || test ${boot_fdt} = try; then if run loadfdt; then bootz ${loadaddr} - ${fdt_addr}; else if test ${boot_fdt} = try; then bootz; else echo WARN: Cannot load the DT; fi; fi; else bootz; fi;mmcdev=1mmcpart=1mmcroot=/dev/mmcblk1p2 rootwait rwnetargs=setenv bootargs console=${console},${baudrate} ip=dhcp nfsroot=${serverip}:${nfsroot},v3,tcpnetboot=echo Booting from net ...; run netargs; if test ${ip_dyn} = yes; then setenv get_cmd dhcp; else setenv get_cmd tftp; fi; ${get_cmd} ${image}; if test ${boot_fdt} = yes || test ${boot_fdt} = try; then if ${get_cmd} ${fdt_addr} ${fdt_file}; then bootz ${loadaddr} - ${fdt_addr}; else if test ${boot_fdt} = try; then bootz; else echo WARN: Cannot load the DT; fi; fi; else bootz; fi;panel=TFT43ABscript=boot.scrupgrade_available=0
Environment size: 3601/131067 bytessetenv kernel_addr_r 0x80800000run bootcmd
Are you making sure that your U-boot patch is
applied both to u-boot and u-boot-fw-utils?