Yocto linux update from USB drive

Hello, I have tried to update my OS images from USB drive.

I used to use SD card for that, but we are trying to use USB driver.

I customized embedded linux with Yocto(Open-embedded) and also was able to

sudo ./update.sh /media/location

as I did with SD card.

However, when I try to “run setupdate” before “run update”, in uboot it says

Apalis iMX6 # run setupdate
MMC: no card present
** Bad device mmc 1 **
MMC: no card present
** Bad device mmc 2 **
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 1 USB Device(s) found
USB1:   USB EHCI 1.00
scanning bus 1 for devices... 5 USB Device(s) found
       scanning usb for storage devices... Device NOT ready
   Request Sense returned 02 3A 00
### ERROR ### Please RESET the board ###

Could you tell me what I have to change?

Thank you in advance!

In env set up…

setsdupdate=setenv interface mmc; setenv drive 1; mmc rescan; load ${interface} ${drive}:1 ${loadaddr} flash_blk.img || setenv drive 2; mmc rescan; load ${interface} ${drive}:}

setusbupdate=usb start && setenv interface usb; setenv drive 0; load ${interface} ${drive}:1 ${loadaddr} flash_blk.img && source ${loadaddr}

Hello, I have tried to update my OS images from USB drive.

I used to use SD card for that, but we are trying to use USB driver.

I customized embedded linux with Yocto(Open-embedded)

For starters, I would recommend trying the same with one of our stock BSP demo images just to make sure it is non of your customisations interfering anywhere.

and also was able to

sudo ./update.sh /media/location

as I did with SD card.

You mean:

./update.sh -o /media/location

Which by the way will automatically use sudo whenever required.

However, when I try to “run setupdate” before “run update”, in uboot it says

Apalis iMX6 # run setupdate
MMC: no card present
** Bad device mmc 1 **
MMC: no card present
** Bad device mmc 2 **
starting USB…
USB0: USB EHCI 1.00
scanning bus 0 for devices… 1 USB Device(s) found
USB1: USB EHCI 1.00
scanning bus 1 for devices… 5 USB Device(s) found
scanning usb for storage devices… Device NOT ready
Request Sense returned 02 3A 00

ERROR ### Please RESET the board

Could you tell me what I have to change?

Looks like U-Boot does not quite like your particular USB stick. I would recommend trying a different one or actually use the Toradex Easy Installer which was designed to exactly circumvent any such issues that usually may arise around the installation of images.

BTW: Please note that BSP 2.8b4 is no longer supported as it got superseded by 2.8b5.

Thank you in advance!

You are very welcome.

Thank you for your reply.

I don’t get it when you say “U-Boot does not quite like your particular USB stick”

The issue still goes on after changing USB stick though…

Could you provide the details about your carrier board and the usb stick you are using? How did you format these usb sticks? Which filesystem are you using on these sticks?