'run update' in u-boot fails with error "size > volume size! Aborting!"

Hi,
I am trying to flash the colibri iMX7 from a USB card with a customized image derived from the demo image (Index of /files/toradex-dev/uploads/media/Colibri/Linux/Images).
When running ‘update’, the script stops just after reading zImage : size > volume size! Aborting!

Here is my log (at the end there is the result of mtdparts) :

Colibri iMX7 # run setupdate
Card did not respond to voltage select!
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... 3 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found
reading colibri_imx7/flash_blk.img
2707 bytes read in 30 ms (87.9 KiB/s)
## Executing script at 80800000
enter "run update" to update the entire module
Colibri iMX7 # run update
reading colibri_imx7/u-boot-nand.imx
598016 bytes read in 71 ms (8 MiB/s)

NAND erase.part: device 0 offset 0x80000, size 0x180000

Erasing at 0x80000 --   8% complete.
Erasing at 0xa0000 --  16% complete.
Erasing at 0xc0000 --  25% complete.
Skipping bad block at  0x000e0000                                          

Erasing at 0x100000 --  41% complete.
Erasing at 0x120000 --  50% complete.
Erasing at 0x140000 --  58% complete.
Erasing at 0x160000 --  66% complete.
Erasing at 0x180000 --  75% complete.
Erasing at 0x1a0000 --  83% complete.
Erasing at 0x1c0000 --  91% complete.
Erasing at 0x1e0000 -- 100% complete.
OK

NAND write: device 0 offset 0x80000, size 0x92000
Skip bad block 0x000e0000
 598016 bytes written: OK

NAND erase.part: device 0 offset 0x200000, size 0x180000

Erasing at 0x200000 --   8% complete.
Erasing at 0x220000 --  16% complete.
Erasing at 0x240000 --  25% complete.
Erasing at 0x260000 --  33% complete.
Erasing at 0x280000 --  41% complete.
Erasing at 0x2a0000 --  50% complete.
Erasing at 0x2c0000 --  58% complete.
Erasing at 0x2e0000 --  66% complete.
Erasing at 0x300000 --  75% complete.
Erasing at 0x320000 --  83% complete.
Erasing at 0x340000 --  91% complete.
Erasing at 0x360000 -- 100% complete.
OK

NAND write: device 0 offset 0x200000, size 0x92000
 598016 bytes written: OK
ubi0: default fastmap pool size: 200
ubi0: default fastmap WL pool size: 100
ubi0: attaching mtd1
ubi0: attached by fastmap
ubi0: fastmap pool size: 200
ubi0: fastmap WL pool size: 100
ubi0: attached mtd1 (name "mtd=4", size 508 MiB)
ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
ubi0: good PEBs: 4055, bad PEBs: 9, corrupted PEBs: 0
ubi0: user volume: 4, internal volumes: 1, max. volumes count: 128
ubi0: max/mean erase counter: 6/2, WL threshold: 4096, image sequence number: 1800755034
ubi0: available PEBs: 0, total reserved PEBs: 4055, PEBs reserved for bad PEB handling: 71
reading colibri_imx7/zImage
8548312 bytes read in 680 ms (12 MiB/s)
size > volume size! Aborting!
Colibri iMX7 #  mtdparts

device nand0 <gpmi-nand>, # parts = 5
 #: namesizeoffsetmask_flags
 0: mx7-bcb             0x000800000x000000000
 1: u-boot1             0x001800000x000800001
 2: u-boot2             0x001800000x002000001
 3: u-boot-env          0x000800000x003800000
 4: ubi                 0x1fc000000x004000000

active partition: nand0,0 - (mx7-bcb) 0x00080000 @ 0x00000000

defaults:
mtdids  : nand0=gpmi-nand
mtdparts: mtdparts=gpmi-nand:512k(mx7-bcb),1536k(u-boot1)ro,1536k(u-boot2)ro,512k(u-boot-env),-(ubi)

Can somebody help me ?

Thanks

Hello ludivino,
which Image are you using!
check here: https://developer.toradex.com/knowledge-base/boot-from-sd-usb-sata

Also, check our Toradex Easy Installer. https://developer.toradex.com/software/toradex-easy-installer
You are also able to creat a USB drive to boot from.