That is, the "usb start" command should initialize the USB driver (and recognize the storage device), and the "fatload" or "ext2load" commands will allow you to read a kernel into RAM.
You'll then need to tell the kernel (via "bootargs") where the root filesystem is located (example above assumes partition 1 of the first drive connected to your system).
The image in deploy/images called u-boot.imx is the one I wouldn't know what to do with - perhaps it is for OTG?
In general, the kontron supports usb boot. I did not mean usb OTG I meant usb boot as in boot from a usb memory device (as opposed to SD card).
I have a u-boot configuration that boots from USB for the LTIB distribution successfully . I have tried building yocto (for imx6sabresd) and dd-ing the image to my usb stick - but no success. I also tried a single ext2 partition, copy filesystem, add uImage in /, then run grub-install. That didn't work either. I will try again with Eric Nelson's directions below.
Now you just need to figure out what the proper value for "bootargs" needs to be. You can probably cut & paste from a successful SD card boot and replace "/dev/mmcblk0p#" with "/dev/sda#" and be up and running.
Sure. Oddly enough, it works on an LTIB image - the only obvious difference is the LTIB has its uImage in / - so I had to change my bootfile variable to make it work. Yocto still doesn't work.
I will try with the uImages in the same place. Although by now this feels more like superstition than science. Is there some way to have the boot give more diagnostic progress information?
The usbboot boots the LTIB usb stick no problem. uImage is in the same place (/boot/uImage) in each case. Root filesystem is in /dev/sda1. The command is the same.
I am accustomed to bios boots on linux systems. Is there something I need to do with the uBoot imx file? Does it get copied to the boot device somehow? I thought my kontron board has u-boot on its flash so I can run these commands as above. Is there a u-boot component that goes on the boot device as well?
Yes; Dora is the current stable version and all new products ought to be based on it as it gives you a good base and easier upgrade for future releases.
NOTE: Fetching uninative binary shim from http://downloads.yoctoproject.org/releases/uninative/2.6/x86_64-nativesdk-libc.tar.xz;sha256sum=1333... Initialising tasks: 100% |##########################################################| Time: 0:00:01 Sstate summary: Wanted 675 Found 0 Missed 675 Current 0 (0% match, 0% complete) NOTE: Executing SetScene Tasks NOTE: Executing RunQueue Tasks WARNING: libffi-native-3.2.1-r0 do_fetch: Failed to fetch URL ftp://sourceware.org/pub/libffi/libffi-3.2.1.tar.gz, attempting MIRRORS if available WARNING: alsa-lib-native-1.1.6-r0 do_fetch: Failed to fetch URL ftp://ftp.alsa-project.org/pub/lib/alsa-lib-1.1.6.tar.bz2, attempting MIRRORS if available WARNING: binutils-cross-arm-2.31.1-r0 do_fetch: Failed to fetch URL git://sourceware.org/git/binutils-gdb.git;branch=binutils-2_31-branch;protocol=git, attempting MIRRORS if available WARNING: update-rc.d-native-0.8-r0 do_fetch: Failed to fetch URL git://git.yoctoproject.org/update-rc.d, attempting MIRRORS if available WARNING: linux-fslc-imx-4.9-1.0.x+gitAUTOINC+953c6e30c9-r0 do_fetch: Failed to fetch URL git://github.com/Freescale/linux-fslc.git;branch=4.9-1.0.x-imx, attempting MIRRORS if available ERROR: linux-fslc-imx-4.9-1.0.x+gitAUTOINC+953c6e30c9-r0 do_fetch: Fetcher failure: Fetch command export PSEUDO_DISABLED=1; export DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/1000/bus"; export SSH_AGENT_PID="1449"; export SSH_AUTH_SOCK="/run/user/1000/keyring/ssh"; export PATH="/home/amit/Documents/yocto_imx/fsl-community-bsp/build/tmp/sysroots-uninative/x86_64-linux/usr/bin:/home/amit/Documents/yocto_imx/fsl-community-bsp/sources/poky/scripts:/home/amit/Documents/yocto_imx/fsl-community-bsp/build/tmp/work/imx6qdlsabresd-fslc-linux-gnueabi/linux-fslc-imx/4.9-1.0.x+gitAUTOINC+953c6e30c9-r0/recipe-sysroot-native/usr/bin/arm-fslc-linux-gnueabi:/home/amit/Documents/yocto_imx/fsl-community-bsp/build/tmp/work/imx6qdlsabresd-fslc-linux-gnueabi/linux-fslc-imx/4.9-1.0.x+gitAUTOINC+953c6e30c9-r0/recipe-sysroot/usr/bin/crossscripts:/home/amit/Documents/yocto_imx/fsl-community-bsp/build/tmp/work/imx6qdlsabresd-fslc-linux-gnueabi/linux-fslc-imx/4.9-1.0.x+gitAUTOINC+953c6e30c9-r0/recipe-sysroot-native/usr/sbin:/home/amit/Documents/yocto_imx/fsl-community-bsp/build/tmp/work/imx6qdlsabresd-fslc-linux-gnueabi/linux-fslc-imx/4.9-1.0.x+gitAUTOINC+953c6e30c9-r0/recipe-sysroot-native/usr/bin:/home/amit/Documents/yocto_imx/fsl-community-bsp/build/tmp/work/imx6qdlsabresd-fslc-linux-gnueabi/linux-fslc-imx/4.9-1.0.x+gitAUTOINC+953c6e30c9-r0/recipe-sysroot-native/sbin:/home/amit/Documents/yocto_imx/fsl-community-bsp/build/tmp/work/imx6qdlsabresd-fslc-linux-gnueabi/linux-fslc-imx/4.9-1.0.x+gitAUTOINC+953c6e30c9-r0/recipe-sysroot-native/bin:/home/amit/Documents/yocto_imx/fsl-community-bsp/sources/poky/bitbake/bin:/home/amit/Documents/yocto_imx/fsl-community-bsp/build/tmp/hosttools"; export HOME="/home/amit"; LANG=C git -c core.fsyncobjectfiles=0 clone --bare --mirror git://github.com/Freescale/linux-fslc.git /home/amit/Documents/yocto_imx/fsl-community-bsp/downloads//git2/github.com.Freescale.linux-fslc.git --progress failed with exit code 128, output: Cloning into bare repository '/home/amit/Documents/yocto_imx/fsl-community-bsp/downloads//git2/github.com.Freescale.linux-fslc.git'... fatal: Unable to look up github.com (port 9418) (Name or service not known)
ERROR: linux-fslc-imx-4.9-1.0.x+gitAUTOINC+953c6e30c9-r0 do_fetch: Fetcher failure for URL: 'git://github.com/Freescale/linux-fslc.git;branch=4.9-1.0.x-imx'. Unable to fetch URL from any source. ERROR: linux-fslc-imx-4.9-1.0.x+gitAUTOINC+953c6e30c9-r0 do_fetch: Function failed: base_do_fetch ERROR: Logfile of failure stored in: /home/amit/Documents/yocto_imx/fsl-community-bsp/build/tmp/work/imx6qdlsabresd-fslc-linux-gnueabi/linux-fslc-imx/4.9-1.0.x+gitAUTOINC+953c6e30c9-r0/temp/log.do_fetch.15140 ERROR: Task (/home/amit/Documents/yocto_imx/fsl-community-bsp/sources/meta-freescale/recipes-kernel/linux/linux-fslc-imx_4.9-1.0.x.bb:do_fetch) failed with exit code '1' WARNING: btrfs-tools-4.17.1-r0 do_fetch: Failed to fetch URL git://git.kernel.org/pub/scm/linux/kernel/git/kdave/btrfs-progs.git, attempting MIRRORS if available WARNING: u-boot-fslc-v2018.11+gitAUTOINC+6e25ce6f3c-r0 do_fetch: Failed to fetch URL git://github.com/Freescale/u-boot-fslc.git;branch=2018.11+fslc, attempting MIRRORS if available ERROR: btrfs-tools-4.17.1-r0 do_fetch: Fetcher failure: Fetch command export PSEUDO_DISABLED=1; export DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/1000/bus"; export SSH_AGENT_PID="1449"; export SSH_AUTH_SOCK="/run/user/1000/keyring/ssh"; export PATH="/home/amit/Documents/yocto_imx/fsl-community-bsp/build/tmp/sysroots-uninative/x86_64-linux/usr/bin:/home/amit/Documents/yocto_imx/fsl-community-bsp/build/tmp/work/armv7at2hf-neon-fslc-linux-gnueabi/btrfs-tools/4.17.1-r0/recipe-sysroot-native/usr/bin/python3-native:/home/amit/Documents/yocto_imx/fsl-community-bsp/sources/poky/scripts:/home/amit/Documents/yocto_imx/fsl-community-bsp/build/tmp/work/armv7at2hf-neon-fslc-linux-gnueabi/btrfs-tools/4.17.1-r0/recipe-sysroot-native/usr/bin/arm-fslc-linux-gnueabi:/home/amit/Documents/yocto_imx/fsl-community-bsp/build/tmp/work/armv7at2hf-neon-fslc-linux-gnueabi/btrfs-tools/4.17.1-r0/recipe-sysroot/usr/bin/crossscripts:/home/amit/Documents/yocto_imx/fsl-community-bsp/build/tmp/work/armv7at2hf-neon-fslc-linux-gnueabi/btrfs-tools/4.17.1-r0/recipe-sysroot-native/usr/sbin:/home/amit/Documents/yocto_imx/fsl-community-bsp/build/tmp/work/armv7at2hf-neon-fslc-linux-gnueabi/btrfs-tools/4.17.1-r0/recipe-sysroot-native/usr/bin:/home/amit/Documents/yocto_imx/fsl-community-bsp/build/tmp/work/armv7at2hf-neon-fslc-linux-gnueabi/btrfs-tools/4.17.1-r0/recipe-sysroot-native/sbin:/home/amit/Documents/yocto_imx/fsl-community-bsp/build/tmp/work/armv7at2hf-neon-fslc-linux-gnueabi/btrfs-tools/4.17.1-r0/recipe-sysroot-native/bin:/home/amit/Documents/yocto_imx/fsl-community-bsp/sources/poky/bitbake/bin:/home/amit/Documents/yocto_imx/fsl-community-bsp/build/tmp/hosttools"; export HOME="/home/amit"; LANG=C git -c core.fsyncobjectfiles=0 clone --bare --mirror git://git.kernel.org/pub/scm/linux/kernel/git/kdave/btrfs-progs.git /home/amit/Documents/yocto_imx/fsl-community-bsp/downloads//git2/git.kernel.org.pub.scm.linux.kernel.git.kdave.btrfs-progs.git --progress failed with exit code 128, output: Cloning into bare repository '/home/amit/Documents/yocto_imx/fsl-community-bsp/downloads//git2/git.kernel.org.pub.scm.linux.kernel.git.kdave.btrfs-progs.git'... fatal: Unable to look up git.kernel.org (port 9418) (Name or service not known)
ERROR: btrfs-tools-4.17.1-r0 do_fetch: Fetcher failure for URL: 'git://git.kernel.org/pub/scm/linux/kernel/git/kdave/btrfs-progs.git'. Unable to fetch URL from any source. ERROR: btrfs-tools-4.17.1-r0 do_fetch: Function failed: base_do_fetch ERROR: Logfile of failure stored in: /home/amit/Documents/yocto_imx/fsl-community-bsp/build/tmp/work/armv7at2hf-neon-fslc-linux-gnueabi/btrfs-tools/4.17.1-r0/temp/log.do_fetch.31316 ERROR: Task (/home/amit/Documents/yocto_imx/fsl-community-bsp/sources/poky/meta/recipes-devtools/btrfs-tools/btrfs-tools_4.17.1.bb:do_fetch) failed with exit code '1' ERROR: u-boot-fslc-v2018.11+gitAUTOINC+6e25ce6f3c-r0 do_fetch: Fetcher failure: Fetch command export PSEUDO_DISABLED=1; export DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/1000/bus"; export SSH_AGENT_PID="1449"; export SSH_AUTH_SOCK="/run/user/1000/keyring/ssh"; export PATH="/home/amit/Documents/yocto_imx/fsl-community-bsp/build/tmp/sysroots-uninative/x86_64-linux/usr/bin:/home/amit/Documents/yocto_imx/fsl-community-bsp/sources/poky/scripts:/home/amit/Documents/yocto_imx/fsl-community-bsp/build/tmp/work/imx6qdlsabresd-fslc-linux-gnueabi/u-boot-fslc/v2018.11+gitAUTOINC+6e25ce6f3c-r0/recipe-sysroot-native/usr/bin/arm-fslc-linux-gnueabi:/home/amit/Documents/yocto_imx/fsl-community-bsp/build/tmp/work/imx6qdlsabresd-fslc-linux-gnueabi/u-boot-fslc/v2018.11+gitAUTOINC+6e25ce6f3c-r0/recipe-sysroot/usr/bin/crossscripts:/home/amit/Documents/yocto_imx/fsl-community-bsp/build/tmp/work/imx6qdlsabresd-fslc-linux-gnueabi/u-boot-fslc/v2018.11+gitAUTOINC+6e25ce6f3c-r0/recipe-sysroot-native/usr/sbin:/home/amit/Documents/yocto_imx/fsl-community-bsp/build/tmp/work/imx6qdlsabresd-fslc-linux-gnueabi/u-boot-fslc/v2018.11+gitAUTOINC+6e25ce6f3c-r0/recipe-sysroot-native/usr/bin:/home/amit/Documents/yocto_imx/fsl-community-bsp/build/tmp/work/imx6qdlsabresd-fslc-linux-gnueabi/u-boot-fslc/v2018.11+gitAUTOINC+6e25ce6f3c-r0/recipe-sysroot-native/sbin:/home/amit/Documents/yocto_imx/fsl-community-bsp/build/tmp/work/imx6qdlsabresd-fslc-linux-gnueabi/u-boot-fslc/v2018.11+gitAUTOINC+6e25ce6f3c-r0/recipe-sysroot-native/bin:/home/amit/Documents/yocto_imx/fsl-community-bsp/sources/poky/bitbake/bin:/home/amit/Documents/yocto_imx/fsl-community-bsp/build/tmp/hosttools"; export HOME="/home/amit"; LANG=C git -c core.fsyncobjectfiles=0 clone --bare --mirror git://github.com/Freescale/u-boot-fslc.git /home/amit/Documents/yocto_imx/fsl-community-bsp/downloads//git2/github.com.Freescale.u-boot-fslc.git --progress failed with exit code 128, output: Cloning into bare repository '/home/amit/Documents/yocto_imx/fsl-community-bsp/downloads//git2/github.com.Freescale.u-boot-fslc.git'... fatal: Unable to look up github.com (port 9418) (Name or service not known)
ERROR: u-boot-fslc-v2018.11+gitAUTOINC+6e25ce6f3c-r0 do_fetch: Fetcher failure for URL: 'git://github.com/Freescale/u-boot-fslc.git;branch=2018.11+fslc'. Unable to fetch URL from any source. ERROR: u-boot-fslc-v2018.11+gitAUTOINC+6e25ce6f3c-r0 do_fetch: Function failed: base_do_fetch ERROR: Logfile of failure stored in: /home/amit/Documents/yocto_imx/fsl-community-bsp/build/tmp/work/imx6qdlsabresd-fslc-linux-gnueabi/u-boot-fslc/v2018.11+gitAUTOINC+6e25ce6f3c-r0/temp/log.do_fetch.14069 ERROR: Task (/home/amit/Documents/yocto_imx/fsl-community-bsp/sources/meta-freescale/recipes-bsp/u-boot/u-boot-fslc_2018.11.bb:do_fetch) failed with exit code '1' ERROR: binutils-cross-arm-2.31.1-r0 do_fetch: Fetcher failure: Fetch command export PSEUDO_DISABLED=1; export DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/1000/bus"; export SSH_AGENT_PID="1449"; export SSH_AUTH_SOCK="/run/user/1000/keyring/ssh"; export PATH="/home/amit/Documents/yocto_imx/fsl-community-bsp/build/tmp/work/x86_64-linux/binutils-cross-arm/2.31.1-r0/recipe-sysroot-native/usr/bin/texinfo-dummy-native:/home/amit/Documents/yocto_imx/fsl-community-bsp/build/tmp/sysroots-uninative/x86_64-linux/usr/bin:/home/amit/Documents/yocto_imx/fsl-community-bsp/sources/poky/scripts:/home/amit/Documents/yocto_imx/fsl-community-bsp/build/tmp/work/x86_64-linux/binutils-cross-arm/2.31.1-r0/recipe-sysroot-native/usr/bin/arm-fslc-linux-gnueabi:/home/amit/Documents/yocto_imx/fsl-community-bsp/build/tmp/work/x86_64-linux/binutils-cross-arm/2.31.1-r0/recipe-sysroot-native/home/amit/Documents/yocto_imx/fsl-community-bsp/build/tmp/work/x86_64-linux/binutils-cross-arm/2.31.1-r0/recipe-sysroot-native/usr/bin/arm-fslc-linux-gnueabi/crossscripts:/home/amit/Documents/yocto_imx/fsl-community-bsp/build/tmp/work/x86_64-linux/binutils-cross-arm/2.31.1-r0/recipe-sysroot-native/usr/sbin:/home/amit/Documents/yocto_imx/fsl-community-bsp/build/tmp/work/x86_64-linux/binutils-cross-arm/2.31.1-r0/recipe-sysroot-native/usr/bin:/home/amit/Documents/yocto_imx/fsl-community-bsp/build/tmp/work/x86_64-linux/binutils-cross-arm/2.31.1-r0/recipe-sysroot-native/sbin:/home/amit/Documents/yocto_imx/fsl-community-bsp/build/tmp/work/x86_64-linux/binutils-cross-arm/2.31.1-r0/recipe-sysroot-native/bin:/home/amit/Documents/yocto_imx/fsl-community-bsp/sources/poky/bitbake/bin:/home/amit/Documents/yocto_imx/fsl-community-bsp/build/tmp/hosttools"; export HOME="/home/amit"; LANG=C git -c core.fsyncobjectfiles=0 clone --bare --mirror git://sourceware.org/git/binutils-gdb.git /home/amit/Documents/yocto_imx/fsl-community-bsp/downloads//git2/sourceware.org.git.binutils-gdb.git --progress failed with exit code 128, output: Cloning into bare repository '/home/amit/Documents/yocto_imx/fsl-community-bsp/downloads//git2/sourceware.org.git.binutils-gdb.git'... fatal: unable to connect to sourceware.org: sourceware.org[0: 209.132.180.131]: errno=Connection refused
ERROR: binutils-cross-arm-2.31.1-r0 do_fetch: Fetcher failure for URL: 'git://sourceware.org/git/binutils-gdb.git;branch=binutils-2_31-branch;protocol=git'. Unable to fetch URL from any source. ERROR: binutils-cross-arm-2.31.1-r0 do_fetch: Function failed: base_do_fetch ERROR: Logfile of failure stored in: /home/amit/Documents/yocto_imx/fsl-community-bsp/build/tmp/work/x86_64-linux/binutils-cross-arm/2.31.1-r0/temp/log.do_fetch.29828 ERROR: Task (/home/amit/Documents/yocto_imx/fsl-community-bsp/sources/poky/meta/recipes-devtools/binutils/binutils-cross_2.31.bb:do_fetch) failed with exit code '1' NOTE: Tasks Summary: Attempted 838 tasks of which 0 didn't need to be rerun and 4 failed. NOTE: Writing buildhistory
Summary: 4 tasks failed: /home/amit/Documents/yocto_imx/fsl-community-bsp/sources/meta-freescale/recipes-kernel/linux/linux-fslc-imx_4.9-1.0.x.bb:do_fetch /home/amit/Documents/yocto_imx/fsl-community-bsp/sources/poky/meta/recipes-devtools/btrfs-tools/btrfs-tools_4.17.1.bb:do_fetch /home/amit/Documents/yocto_imx/fsl-community-bsp/sources/meta-freescale/recipes-bsp/u-boot/u-boot-fslc_2018.11.bb:do_fetch /home/amit/Documents/yocto_imx/fsl-community-bsp/sources/poky/meta/recipes-devtools/binutils/binutils-cross_2.31.bb:do_fetch Summary: There were 7 WARNING messages shown.