Thanks Mirza, that was useful. I ended up making a couple of patches and now have u-boot and the u-boot fw utils building.
I've gotten very close to producing the final images, but I've run into some problems with the image name. I think it is a problem with the IMAGE_NAME_SUFFIX variable. The rootfs ext4 file that is produced in the build/tmp directory is foo- image-imx6ull_foo-20190122225150.ext4 but Yocto is expecting foo-image-imx6ull_foo-20190122225150.rootfs.ext4 (I have changed the name to hide my client's identity). Here is the error I see in do_image_sdcard:
Log data follows:
| DEBUG: Executing python function set_image_size
| DEBUG: Python function set_image_size finished
| DEBUG: Executing shell function do_image_sdcard
| 0+0 records in
| 0+0 records out
| 0 bytes copied, 5.3353e-05 s, 0.0 kB/s
| Model: (file)
| Disk /home/sstevenson/work/client/gitrepo/086-client/build-client-dev/tmp/work/imx6ull_foo-poky-linux-gnueabi/foo-image/1.0-r0/deploy-foo-image-image-complete/foo-image-imx6ull_foo-20190122225150.rootfs.sdcard: 235MB
| Sector size (logical/physical): 512B/512B
| Partition Table: msdos
| Disk Flags:
|
| Number Start End Size Type File system Flags
| 1 4194kB 12.6MB 8389kB primary lba
| 2 12.6MB 231MB 218MB primary
|
| 1006+0 records in
| 1006+0 records out
| 515072 bytes (515 kB, 503 KiB) copied, 0.00315321 s, 163 MB/s
| mkfs.fat: warning - lowercase labels might not work properly with DOS or Windows
| mkfs.fat 4.0 (2016-05-06)
| Total number of sectors (16384) not a multiple of sectors per track (63)!
| Add mtools_skip_check=1 to your .mtoolsrc file to skip this test
| Total number of sectors (16384) not a multiple of sectors per track (63)!
| Add mtools_skip_check=1 to your .mtoolsrc file to skip this test
| 2+0 records in
| 2+0 records out
| 8388608 bytes (8.4 MB, 8.0 MiB) copied, 0.0102888 s, 815 MB/s
| dd: failed to open '/home/sstevenson/work/client/gitrepo/086-client/build-client-dev/tmp/work/imx6ull_foo-poky-linux-gnueabi/foo-image/1.0-r0/deploy-foo-image-image-complete/foo-image-imx6ull_foo-20190122225150.rootfs.ext4': No such file or directory
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_image_sdcard (log file is located at /home/sstevenson/work/client/gitrepo/086-client/build-client-dev/tmp/work/imx6ull_foo-poky-linux-gnueabi/foo-image/1.0-r0/temp/log.do_image_sdcard.7317)
I tried commenting out the line 'IMAGE_NAME_SUFFIX = ""' in mender-part-images.bbclass, but that just moves the problem elsewhere as far as I can tell. Do you have any advice on how to find/fix the problem?
Thanks,
Shawn