Part Number: AM625
I created the rootfs.ubi image like this:
host : sudo mkfs.ubifs -r rootfs -o rootfs.ubifs -m 4096 -e 253952 -c 2048
host : sudo ubinize -o rootfs.ubi -m 4096 -p 262144 -s 4096 -O 4096 ubinize.cfg
file ubinize.cfg:
[ubifs]
mode=ubi
image=rootfs.ubifs
vol_id=0
vol_type=dynamic
vol_name=rootfs
vol_flags=autoresize
[kernel]
mode=ubi
image=Image
vol_id=1
vol_name=kernel
vol_type=static
[dtb]
mode=ubi
image=k3-am625-cmi.dtb
vol_id=2
vol_name=dtb
vol_type=static
The tiboot3, tispl, and uboot and rootfs.ubi files were loaded without any problems from usb-dfu. The rootfs.ubi file was loaded as-is using OS-myboard.rootfs.tar.xz and extracted to rootfs/
( It was tested without linking it to Image or DTB, but it wouldn't start. The following output was displayed:
=>setenv bootargs console=ttyS2,115200 root=ubi0:rootfs rootfstype=ubifs rw
=> boot
Card did not respond to voltage select! : -110
Card did not respond to voltage select! : -110
Card did not respond to voltage select! : -110
** Bad device specification mmc 0 **
## Error: "main_cpsw0_qsgmii_phyinit" not defined
Card did not respond to voltage select! : -110
** Bad device specification mmc 0 **
Couldn't find partition mmc 0:2
Can't set block device
Card did not respond to voltage select! : -110
** Bad device specification mmc 0 **
Couldn't find partition mmc 0:2
Can't set block device
libfdt fdt_check_header(): FDT_ERR_BADMAGIC
No FDT memory address configured. Please configure
the FDT address via "fdt addr <address>" command.
Aborting!
Bad Linux ARM64 Image magic!
Card did not respond to voltage select! : -110
sdhci_send_command: Timeout for status update!
starting USB...
No working controllers found
USB is stopped. Please issue 'usb start' first.
starting USB...
No working controllers found
am65_cpsw_nuss_port ethernet@8000000ethernet@8000000port@1: Invalid PHY mode, port 1
am65_cpsw_nuss_port ethernet@8000000ethernet@8000000ethernet@8000000port@1: Invalid PHY mode, port 1
am65_cpsw_nuss_port ethernet@8000000ethernet@8000000ethernet@8000000ethernet@8000000port@1: Invalid PHY mode, port 1
am65_cpsw_nuss_port ethernet@8000000ethernet@8000000ethernet@8000000ethernet@8000000ethernet@8000000port@1: Invalid PHY mode, port 1
am65_cpsw_nuss_port ethernet@8000000ethernet@8000000ethernet@8000000ethernet@8000000ethernet@8000000ethernet@8000000port@1: Invalid PHY mode, port 1
am65_cpsw_nuss_port ethernet@8000000ethernet@8000000ethernet@8000000ethernet@8000000ethernet@8000000ethernet@8000000ethernet@8000000port@1: Invalid PHY mode, port 1
"Synchronous Abort" handler, esr 0x86000004
elr: 3030303014c2f840 lr : 3030303014c2f840 (reloc)
elr: 3030303030303840 lr : 3030303030303840
x0 : 00000000ffffffea x1 : 0000000000000000
x2 : 00000000000000f1 x3 : 0000000099ee4dc0
x4 : 000000009bfc54a0 x5 : 0000000099ee4e60
x6 : 000000009bfc54b0 x7 : 000000009a226d80
x8 : 0000000000000000 x9 : 0000000000000008
x10: 00000000ffffffe0 x11: 0000000000000006
x12: 000000000001869f x13: 0000000099ea4ca8
x14: 0000000099ea6b20 x15: 0000000000000000
x16: 000000009bf45368 x17: 0000000000000000
x18: 0000000099eb4d80 x19: 0000314074726f70
x20: 000000009bfed000 x21: 000000009bfef000
x22: 0000000000000004 x23: 000000009bfed000
x24: 0000000000000000 x25: 000000009bfef000
x26: 000000009bfed000 x27: 0000000000000000
x28: 0000000099fe99d0 x29: 74656e7265687465
Code: "Synchronous Abort" handler, esr 0x96000004
elr: 0000000080802bbc lr : 0000000080802b9c (reloc)
elr: 000000009bed6bbc lr : 000000009bed6b9c
x0 : 000000009bfa4921 x1 : 0000000000000000
x2 : 0000000000000020 x3 : 0000000002800000
x4 : 0000000002800000 x5 : 0000000099ea4cc3
x6 : 0000000000000035 x7 : 0000000099ea5150
x8 : 0000000000000001 x9 : 0000000000000008
x10: 00000000ffffffe8 x11: 0000000000000010
x12: 000000000001869f x13: 0000000099ea4ca8
x14: 0000000099ea6b20 x15: 0000000000000021
x16: 000000009bf45368 x17: 0000000000000000
x18: 0000000099eb4d80 x19: 3030303030303830
x20: 000000009bfaea7b x21: 00000000fffffffc
x22: 000000009bfb093d x23: 000000009bfa4921
x24: 0000000000000000 x25: 000000009bfef000
x26: 000000009bfed000 x27: 0000000000000000
x28: 0000000099fe99d0 x29: 0000000099ea5150
Code: d1004273 9124f6d6 aa0003f7 12800075 (b9400261)
Resetting CPU ...
resetting ...
)
main_uart0 terminal from custom board:
U-Boot 2023.04-g8c0d1e3c89 (Mar 23 2026 - 18:38:26 +0000)
SoC: AM62X SR1.0 HS-FS
Model: Teceng AM625 CMI
EEPROM not available at 80, trying to read at 81
Reading on-board EEPROM at 0x51 failed -121
DRAM: no bloblist found!512 MiB
Core: 59 devices, 29 uclasses, devicetree: separate
MMC: mmc@fa10000: 0, mmc@fa00000: 1
Loading Environment from nowhere... OK
In: serial
Out: serial
Err: serial
Timed out in wait_for_event: status=0000
Check if pads/pull-ups of bus are properly configured
EEPROM not available at 80, trying to read at 81
Timed out in wait_for_event: status=0000
Check if pads/pull-ups of bus are properly configured
Reading on-board EEPROM at 0x51 failed -121
Net: am65_cpsw_nuss_port ethernet@8000000port@1: Invalid PHY mode, port 1
am65_cpsw_nuss_port ethernet@8000000port@2: Invalid PHY mode, port 2
No ethernet found.
Hit any key to stop autoboot: 0
=> mtd list
List of MTD devices:
* spi-nand0
- device: flash@0
- parent: spi@fc40000
- driver: spi_nand
- path: /bus@f0000/bus@fc00000/spi@fc40000/flash@0
- type: NAND flash
- block size: 0x40000 bytes
- min I/O: 0x1000 bytes
- OOB size: 128 bytes
- OOB available: 126 bytes
- 0x000000000000-0x000020000000 : "spi-nand0"
- 0x000000000000-0x000000080000 : "qspi.tiboot3"
- 0x000000080000-0x000000280000 : "qspi.tispl"
- 0x000000280000-0x000000680000 : "qspi.u-boot"
- 0x000000680000-0x0000006c0000 : "qspi.env"
- 0x0000006c0000-0x000000700000 : "qspi.env.backup"
- 0x000000700000-0x00001c700000 : "qspi.rootfs"
- 0x00001c700000-0x00001c740000 : "qspi.phypattern"
=> setenv dfu_alt_info "tiboot3-qspi.bin raw 0x0 0x80000;tispl-qspi.bin raw 0x80000 0x200000;u-boot-qspi.bin raw 0x280000 0x400000;rootfs-qspi.bin raw 0x700000 0x1C000000"
=> dfu 0 mtd spi-nand0
generic_phy_get_bulk : no phys property
=> ubi part qspi.rootfs
ubi0: attaching mtd6
ubi0: scanning is finished
ubi0: volume 0 ("rootfs") re-sized from 252 to 1670 LEBs
ubi0: attached mtd6 (name "qspi.rootfs", size 448 MiB)
ubi0: PEB size: 262144 bytes (256 KiB), LEB size: 253952 bytes
ubi0: min./max. I/O unit sizes: 4096/4096, sub-page size 4096
ubi0: VID header offset: 4096 (aligned 4096), data offset: 8192
ubi0: good PEBs: 1790, bad PEBs: 2, corrupted PEBs: 0
ubi0: user volume: 3, internal volumes: 1, max. volumes count: 128
ubi0: max/mean erase counter: 1/0, WL threshold: 4096, image sequence number: 1126172684
ubi0: available PEBs: 0, total reserved PEBs: 1790, PEBs reserved for bad PEB handling: 38
=> ubi info
UBI: MTD device name: "qspi.rootfs"
UBI: MTD device size: 448 MiB
UBI: physical eraseblock size: 262144 bytes (256 KiB)
UBI: logical eraseblock size: 253952 bytes
UBI: number of good PEBs: 1790
UBI: number of bad PEBs: 2
UBI: smallest flash I/O unit: 4096
UBI: VID header offset: 4096 (aligned 4096)
UBI: data offset: 8192
UBI: max. allowed volumes: 128
UBI: wear-leveling threshold: 4096
UBI: number of internal volumes: 1
UBI: number of user volumes: 3
UBI: available PEBs: 0
UBI: total number of reserved PEBs: 1790
UBI: number of PEBs reserved for bad PEB handling: 38
UBI: max/mean erase counter: 1/0
=> setenv bootargs console=ttyS2,115200 root=ubi0:rootfs rootfstype=ubifs rw
=> ubifsmount ubi0:rootfs
=>setenv bootcmd 'ubi part qspi.rootfs; ubi read 0x80000000 rootfs; bootm 0x80000000'
=> boot
UBI partition 'qspi.rootfs' already selected
No size specified -> Using max size (424099840)
Read 424099840 bytes from volume rootfs to 0000000080000000
The set boot mode is QSPI = 0100011 (B3-B8)
The kernel isn't starting now. What can I do?
I want my custom board to boot from the QSPI NAND flash. I have the boot mode set to QSPI directly. Why is flashing the QSPI NAND flash from USB-DFU failing, preventing it from booting when I try to restart from the u-boot prompt?



