ext2ls zero-length directory entries?

Joe Buehler aspam at cox.net
Tue Aug 25 22:08:35 CEST 2020


(This is a vendor-modified version of uboot 2011.03.)

I am running into problems using ext2load, the command complains that
the file of interest is not found.  I know it's there though since it is
fine under LINUX.

Doing some poking around, I see that ext2ls is showing mostly zero
length on the subdirs I am interested in loading files from -- thus the
"not found" issues.  Some of the directories have enormous lengths and
crash uboot when attempting to list their content.

I am attempting to load from a large SATA disk partitioned into two
equal-size partitions that add up to the whole disk.  No problems with
the first partition, the second partition has the issue.

Does this ring a bell with anyone?  Perhaps it is a disk size issue and
an old uboot?  LINUX says the following about the disk:

ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 0)
ata1.00: supports DRM functions and may not be fully accessable.
ata1.00: ATA-10: Micron_1100_MTFDDAK256TBN,  M0MU031, max UDMA/133
ata1.00: 500118192 sectors, multi 16: LBA48 NCQ (depth 31/32)
ata1.00: supports DRM functions and may not be fully accessable.
ata1.00: configured for UDMA/100
scsi 0:0:0:0: Direct-Access     ATA      Micron_1100_MTFD n/a  PQ: 0 ANSI: 5
sd 0:0:0:0: [sda] 500118192 512-byte logical blocks: (256 GB/238 GiB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't
support DPO or FUA
 sda: sda1 sda2
sd 0:0:0:0: [sda] Attached SCSI disk

Joe Buehler



More information about the U-Boot mailing list