How to flash uboot in Recovery mode

Hi All,
I think I have flash wrong u-boot image. After flashing board is not booting. So i went recovery mode and i’m trying to flash the image again. But it’s not working.!
I’m getting blow log when updating by Apalis-iMX6_ToradexEasyInstaller_1.3-20171201. I have stopped in uboot i run the below command.

Apalis iMX6 # run setupdate
reading flash_blk.img
710 bytes read in 12 ms (57.6 KiB/s)
## Executing script at 12000000
reading apalis_imx6/flash_blk.img
3818 bytes read in 18 ms (207 KiB/s)
## Executing script at 12000000
enter "run update" or "run update_it" to update the uboot
Apalis iMX6 #
Apalis iMX6 # run update_uboot_it 
reading apalis_imx6/u-boot.imx-it
373116 bytes read in 46 ms (7.7 MiB/s)
switch to partitions #1, OK
mmc0(part 1) is current device

MMC write: dev # 0, block # 2, count 729 ... 729 blocks written: OK
Fuse 0, 5:     5072
Fast boot mode already fused, no need to fuse
Apalis iMX6 # 

Regards,
Aravinth

Easiest would be to use the Toradex Easy Installer to perform the recovery as it will automatically take care of any details.

Hi Marcel.
I’m using “Apalis-iMX6_ToradexEasyInstaller_1.3-20171201”. I run the below command “recovery-linux.sh” and it say it done successfully.

ubuntu:~/Aravinth/Apalis-iMX6_ToradexEasyInstaller_1.3-20171201$ sudo ./recovery-linux.sh 
Downloading Toradex Easy Installer...
Successfully downloaded Toradex Easy Installer.

ubuntu:~/Aravinth/Apalis-iMX6_ToradexEasyInstaller_1.3-20171201$

But after restarting I’m noting any log.?

Regards,
Aravinth

After the Successfully downloaded Toradex Easy Installer. message the Toradex Easy Installer UI should be starting on your target showing on any connected display (e.g. HDMI or parallel RGB). You may then interactively (e.g. using a USB keyboard or mouse also connected to Ixora) install images or prepare an SD card or USB stick with an image for unattended automatic installation.

Hi Marcel,
Thanks for your response. It’s working , With the Apalis-iMX6_ToradexEasyInstaller i can able to flash the image. But same u-boot.imx i flash by using below method (Reference from toradex), it not working.
Is there any changes on it.?

Apalis iMX6 # run setupdate
reading flash_blk.img
710 bytes read in 12 ms (57.6 KiB/s)
## Executing script at 12000000
reading apalis_imx6/flash_blk.img
3818 bytes read in 18 ms (207 KiB/s)
## Executing script at 12000000
enter "run update" or "run update_it" to update the uboot
Apalis iMX6 # run update 
reading apalis_imx6/u-boot.imx
371336 bytes read in 42 ms (8.4 MiB/s)
switch to partitions #1, OK
mmc0(part 1) is current device

MMC write: dev # 0, block # 2, count 726 ... 726 blocks written: OK
Fuse 0, 5:     5072
Fast boot mode already fused, no need to fuse
resetting ...

Regards,
Aravinth

The big question is what exact versions of things you are talking about. Later BSPs make use of an U-Boot SPL to configure for IT vs. non-IT modules while earlier BSPs required separate binaries therefore the run update vs. run update_it. As you mentioned using the IT SKU you would really need to use the run update_it variant.

You are correct. Our board as IT module. In our BSP i didn’t get any image name with IT. So i copy u-boot.img to u-boot.imx-it and I have run the run update_it, but i didn’t get any log after resetting.

Apalis iMX6 # run setupdate
reading flash_blk.img
710 bytes read in 13 ms (52.7 KiB/s)
## Executing script at 12000000
reading apalis_imx6/flash_blk.img
3818 bytes read in 18 ms (207 KiB/s)
## Executing script at 12000000
enter "run update" or "run update_it" to update the uboot
Apalis iMX6 # run update_it 
reading apalis_imx6/u-boot.imx-it
334272 bytes read in 38 ms (8.4 MiB/s)
switch to partitions #1, OK
mmc0(part 1) is current device

MMC write: dev # 0, block # 2, count 653 ... 653 blocks written: OK
Fuse 0, 5:     5072
Fast boot mode already fused, no need to fuse
resetting ...

But what exact BSP version are you talking about? One can’t just mix and match u-boot.imx u-boot.imx-it and/or the later SPL resp. u-boot.img variants.

Have a look at the following article on our developer website detailing this as well.

U-boot version: V2.7
Branch: 2016.11-toradex

How can i proceed.?

But in V2.7 we are using SPL and u-boot.img rather than u-boot.imx resp. u-boot.imx-it. I suspect you are mixing later BSP binaries with earlier update scripts which won’t quite work. Could you please first try with our latest stock BSP 2.7b4. Once that is confirmed working you may go about configuring, compiling and updating your custom U-Boot binary by adhering to above mentioned article.

I’m able to flash “Apalis-iMX6_LXDE-Image_2.7b4” using “Apalis-iMX6_ToradexEasyInstaller_1.3-20171201”. It’s working fine. But “run update_it” with this command it is not working.

Sorry, but I would like to stress again that there is no such thing as update_it when using BSP 2.7b4. Please find the following log file of successfully flashing it to an otherwise completely empty eMMC flash.

It’s working now. Thanks for your support.!

You are very welcome.