Skip to contentSkip to conversation

Bug: filesystem btrfs: ls mmc 0:3

DISCUSSION Georg Gast 1 participant 1 message Feb 11, 2021

lore
Share & tools
lore

Georg Gast

author
#0 lore raw

Hello u-boot team,

today i compiled u-boot v2021.01 with the am335x_evm_defconfig (Hardware Beaglebone Black) and enabled additional the btrfs filesystem as it should boot the kernel sitting there. Listing the content of the filesystem triggers a bug:

The filesystem was created with kernel 5.10.9 on Debian Bullseye.

See the log:
U-Boot 2021.01 (Feb 11 2021 - 16:21:23 +0000)

CPU  : AM335X-GP rev 2.0
Model: TI AM335x BeagleBone Black
DRAM:  512 MiB
WDT:   Started with servicing (60s timeout)
NAND:  0 MiB
MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1

Loading Environment from FAT... *** Warning - bad CRC, using default environment

<ethaddr> not set. Validating first E-fuse MAC

Net:   eth2: ethernet at 4a100000, eth3: usb_ether
Hit any key to stop autoboot:  0

=> fstype mmc 0:3
btrfs
=> ls mmc 0:3
BUG at fs/btrfs/disk-io.c:736/btrfs_read_fs_root()! BUG!
resetting ...

U-Boot SPL 2021.01 (Feb 11 2021 - 16:21:23 +0000)
Trying to boot from MMC1

https://github.com/u-boot/u-boot/blob/c7182c02cefb11431a79a8abb4d8a821e4a478b5/fs/btrfs/disk-io.c#L736