Colibri_vf 50 u-boot.imx update

Hello,
I have third part product has colibri vf 50 inside, I want to modify it how I need, I have prepared a file system by buildroot I have used original kernel image and device tree which are placed in the product’s original file system. While burning file system to product I have used colibri update.sh script. I have transport rootfs my modified rootfs to the update folder also I have replaced the image and device trees. First of all, I have not replaced the uboot and the system has been burn and the embedded linux openned and but it takes about 3 minutes it is so long. then I tried to update uboot. I have produced u-boot.imx by buildroot again and transport the u-boot.imx through images folder and burn it. then I have opened the product’s serial terminal. and the following message appeared.
Core: 27 devices, 13 uclasses, devicetree: separate
NAND: 128 MiB
MMC: FSL_SDHC: 0
Loading Environment from NAND… OK
In: serial
Out: serial
Err: serial
Model: Toradex Colibri VF50 128MB IT V1.1B, Serial# 07537633
Net: eth0: fec@400d1
Colibri VFxx #
Colibri VFxx #
Colibri VFxx # pri

When I checked the version of uboot it looks updated (Dec 2022).

When I have reset the system nothing appears on the serial terminal. Also I have tried to power off and on and nothing happened. Could you guide me about updating u-bbot on colibri_vf50? Thk U. Best Regards
eMRah

Colibri VFxx #
Colibri VFxx # reset
resetting …

Colibri VFxx #
Colibri VFxx #
Colibri VFxx # mtdparts

device nand0 <vf610_nfc>, # parts = 4
 #: name                size            offset          mask_flags
 0: vf-bcb              0x00020000      0x00000000      1
 1: u-boot              0x00160000      0x00020000      1
 2: u-boot-env          0x00080000      0x00180000      0
 3: ubi                 0x07e00000      0x00200000      0

active partition: nand0,0 - (vf-bcb) 0x00020000 @ 0x00000000

defaults:
mtdids  : nand0=vf610_nfc
mtdparts: mtdparts=vf610_nfc:128k(vf-bcb)ro,1408k(u-boot)ro,512k(u-boot-env),-(ubi)
Colibri VFxx #
Colibri VFxx #
Colibri VFxx #
Colibri VFxx # cfgblock create
NAND erase block 0 need to be erased before creating a Toradex config block
Colibri VFxx # nand erase.chip

NAND erase.chip: device 0 whole chip
Skipping bad block at  0x013c0000
Skipping bad block at  0x054a0000
Skipping bad block at  0x054e0000
Skipping bad block at  0x05660000
Skipping bad block at  0x056a0000
Skipping bad block at  0x06b20000
Skipping bad block at  0x07de0000
Skipping bad block at  0x07f80000
Skipping bad block at  0x07fa0000
Skipping bad block at  0x07fc0000
Skipping bad block at  0x07fe0000

OK
Colibri VFxx # run setupdate
starting USB...
Bus ehci@40034000: Port not available.
Bus ehci@400b4000: USB EHCI 1.00
scanning bus ehci@400b4000 for devices... 1 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found
Unknown command 'set' - try 'help'
Colibri VFxx # setenv setethupdate 'if env exists ethaddr; then; else setenv ethaddr 00:14:2d:00:00:00; fi; tftpboot ${loadaddr} ${board}/flash_eth.img && source ${loadaddr}'
Colibri VFxx # run setethupdate                                                                                                                                  Using fec@400d1000 device
TFTP from server 192.168.10.1; our IP address is 192.168.10.2
Filename 'colibri_vf/flash_eth.img'.
Load address: 0x80008000
Loading: #
         456.1 KiB/s
done
Bytes transferred = 2337 (921 hex)
## Executing script at 80008000
enter "run update" to update the entire module
Colibri VFxx # run create_bcb

NAND erase.part: device 0 offset 0x0, size 0x20000
Erasing at 0x0 -- 100% complete.
OK
Unknown command 'writebcb' - try 'help'
Colibri VFxx #
Unknown command 'writebcb' - try 'help'
Colibri VFxx #
Unknown command 'writebcb' - try 'help'
Colibri VFxx #
Colibri VFxx #
Colibri VFxx #
Colibri VFxx #
Colibri VFxx #
Colibri VFxx #
Colibri VFxx # run create_bcb

NAND erase.part: device 0 offset 0x0, size 0x20000
Erasing at 0x0 -- 100% complete.
OK
Unknown command 'writebcb' - try 'help'
Colibri VFxx # cfgblock create
Is the module an IT version? [y/N] y
Enter the module version (e.g. V1.1B): V1.1B
Enter module serial number: 7104300001
Toradex config block successfully written
Colibri VFxx # run update
Using fec@400d1000 device
TFTP from server 192.168.10.1; our IP address is 192.168.10.2
Filename 'colibri_vf/u-boot-nand.imx'.
Load address: 0x82000000
Loading: ###############################
         2.1 MiB/s
done
Bytes transferred = 448280 (6d718 hex)

NAND erase.part: device 0 offset 0x20000, size 0x160000
Erasing at 0x160000 -- 100% complete.
OK

NAND erase.part: device 0 offset 0x180000, size 0x80000
Erasing at 0x1e0000 -- 100% complete.
OK

NAND write: device 0 offset 0x20000, size 0x160000
 1441792 bytes written: OK
ubi0: default fastmap pool size: 50
ubi0: default fastmap WL pool size: 25
ubi0: attaching mtd4
ubi0: scanning is finished
ubi0: empty MTD device detected
ubi0: attached mtd4 (name "ubi", size 126 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: 997, bad PEBs: 11, corrupted PEBs: 0
ubi0: user volume: 0, internal volumes: 1, max. volumes count: 128
ubi0: max/mean erase counter: 0/0, WL threshold: 4096, image sequence number: 0
ubi0: available PEBs: 982, total reserved PEBs: 15, PEBs reserved for bad PEB handling: 9
Creating static volume kernel of size 8388608
Creating static volume dtb of size 131072
No size specified -> Using max size (115929088)
Creating dynamic volume rootfs of size 115929088
Using fec@400d1000 device
TFTP from server 192.168.10.1; our IP address is 192.168.10.2
Filename 'colibri_vf/zImage'.
Load address: 0x82000000
Loading: #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         ###################
         2.1 MiB/s
done
Bytes transferred = 5044536 (4cf938 hex)
5044536 bytes written to volume kernel
Using fec@400d1000 device
TFTP from server 192.168.10.1; our IP address is 192.168.10.2
Filename 'colibri_vf/vf500-colibri-eval-v3.dtb'.
Load address: 0x82000000
Loading: ##
         1.7 MiB/s
done
Bytes transferred = 23558 (5c06 hex)
23558 bytes written to volume dtb
Using fec@400d1000 device
TFTP from server 192.168.10.1; our IP address is 192.168.10.2
Filename 'colibri_vf/ubifs.img'.
Load address: 0x82000000
Loading: #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         ########################
         2.2 MiB/s
done
Bytes transferred = 50917376 (308f000 hex)
50917376 bytes written to volume rootfs
resetting ...

Hi @emrah !

Unfortunately, we do not support Buildroot.

Having said that is it possible that your setup is not able to create “healthy” rootfs for your module?

Just to check the procedure to change the rootfs, could you please try replacing the default rootfs of one of Toradex images with the rootfs from other Toradex image?
I know that this seems silly, but it is a way for you to validate the update process that you are performing.

Could you please share the following information?

  • Which exact kernel version are you using?
  • Which exact BSP version are you using?
  • Which changes you performed on the rootfs?
  • Which changes you performed on U-boot?

As a side note, if you are using Vybrid for a new project, I would recommend you to consider using newer modules that have newer features and use more up-to-date Linux Kernel, U-boot, tools, etc.

Best regards,