Btrfs support imx6q based board

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Btrfs support imx6q based board

跳至解决方案
507 次查看
arulpandiyan_va
Contributor II

I am using imx6D based customer board, where we are wanted to use BTRFS filesystem on the system.

We have enabled below BTRFS support on u-boot

CONFIG_FS_BTRFS=y
CONFIG_CMD_BTRFS=y

and in kernel below configurations. 

CONFIG_BTRFS_FS=y

 

but while booting the device, We are getting the failures below. Could you please help us to understand what we are missing here?

 

U-Boot 2021.04-g8372631b-dirty (Nov 02 2022 - 11:13:15 +0000)

CPU:   i.MX6D rev1.6 at 792MHz
CPU:   Industrial temperature grade (-40C to 105C) at 41C
Reset cause: POR
Model: Freescale i.MX6 Quad SABRE Smart Device Board
Board: MX6-CUSTOM
DRAM:  1 GiB
PMIC: PFUZE100! DEV_ID=0x10 REV_ID=0x21
MMC:   FSL_SDHC: 1, FSL_SDHC: 2, FSL_SDHC: 3
In:    serial
Out:   serial
Err:   serial
Net:   FEC [PRIME]
Normal Boot
Hit any key to stop autoboot:  0
switch to partitions #0, OK
mmc3(part 0) is current device
CACHE: Misaligned operation at range [4ef69818, 4ef6a818]
CACHE: Misaligned operation at range [4ef69818, 4ef6a818]
ERROR: v7_outer_cache_inval_range - start address is not aligned - 0x4ef69818
ERROR: v7_outer_cache_inval_range - stop address is not aligned - 0x4ef6a818
CACHE: Misaligned operation at range [4ef69818, 4ef6a818]
CACHE: Misaligned operation at range [4ef69818, 4ef6a818]
ERROR: v7_outer_cache_inval_range - start address is not aligned - 0x4ef69818
ERROR: v7_outer_cache_inval_range - stop address is not aligned - 0x4ef6a818
Scanning mmc 3:1...
CACHE: Misaligned operation at range [4ef694f8, 4ef6a4f8]
CACHE: Misaligned operation at range [4ef694f8, 4ef6a4f8]
ERROR: v7_outer_cache_inval_range - start address is not aligned - 0x4ef694f8
ERROR: v7_outer_cache_inval_range - stop address is not aligned - 0x4ef6a4f8
CACHE: Misaligned operation at range [4ef694f8, 4ef6a4f8]
CACHE: Misaligned operation at range [4ef694f8, 4ef6a4f8]
ERROR: v7_outer_cache_inval_range - start address is not aligned - 0x4ef694f8
ERROR: v7_outer_cache_inval_range - stop address is not aligned - 0x4ef6a4f8
BTRFS: superblock checksum mismatch
No valid Btrfs found
** Unrecognized filesystem type **
CACHE: Misaligned operation at range [4ef694a0, 4ef6a4a0]
CACHE: Misaligned operation at range [4ef694a0, 4ef6a4a0]
CACHE: Misaligned operation at range [4ef694a0, 4ef6a4a0]
CACHE: Misaligned operation at range [4ef694a0, 4ef6a4a0]
BTRFS: superblock checksum mismatch
No valid Btrfs found
** Unrecognized filesystem type **
CACHE: Misaligned operation at range [4ef694a0, 4ef6a4a0]
CACHE: Misaligned operation at range [4ef694a0, 4ef6a4a0]
CACHE: Misaligned operation at range [4ef694a0, 4ef6a4a0]
CACHE: Misaligned operation at range [4ef694a0, 4ef6a4a0]
BTRFS: superblock checksum mismatch
No valid Btrfs found
** Unrecognized filesystem type **
CACHE: Misaligned operation at range [4ef694f8, 4ef6a4f8]
CACHE: Misaligned operation at range [4ef694f8, 4ef6a4f8]
ERROR: v7_outer_cache_inval_range - start address is not aligned - 0x4ef694f8
ERROR: v7_outer_cache_inval_range - stop address is not aligned - 0x4ef6a4f8
CACHE: Misaligned operation at range [4ef694f8, 4ef6a4f8]
CACHE: Misaligned operation at range [4ef694f8, 4ef6a4f8]
ERROR: v7_outer_cache_inval_range - start address is not aligned - 0x4ef694f8
ERROR: v7_outer_cache_inval_range - stop address is not aligned - 0x4ef6a4f8
BTRFS: superblock checksum mismatch
No valid Btrfs found
** Unrecognized filesystem type **
CACHE: Misaligned operation at range [4ef694a0, 4ef6a4a0]
CACHE: Misaligned operation at range [4ef694a0, 4ef6a4a0]
CACHE: Misaligned operation at range [4ef694a0, 4ef6a4a0]
CACHE: Misaligned operation at range [4ef694a0, 4ef6a4a0]
BTRFS: superblock checksum mismatch
No valid Btrfs found
** Unrecognized filesystem type **
CACHE: Misaligned operation at range [4ef694a0, 4ef6a4a0]
CACHE: Misaligned operation at range [4ef694a0, 4ef6a4a0]
CACHE: Misaligned operation at range [4ef694a0, 4ef6a4a0]
CACHE: Misaligned operation at range [4ef694a0, 4ef6a4a0]
BTRFS: superblock checksum mismatch
No valid Btrfs found
** Unrecognized filesystem type **
CACHE: Misaligned operation at range [4ef694f8, 4ef6a4f8]
CACHE: Misaligned operation at range [4ef694f8, 4ef6a4f8]
ERROR: v7_outer_cache_inval_range - start address is not aligned - 0x4ef694f8
ERROR: v7_outer_cache_inval_range - stop address is not aligned - 0x4ef6a4f8
CACHE: Misaligned operation at range [4ef694f8, 4ef6a4f8]
CACHE: Misaligned operation at range [4ef694f8, 4ef6a4f8]
ERROR: v7_outer_cache_inval_range - start address is not aligned - 0x4ef694f8
ERROR: v7_outer_cache_inval_range - stop address is not aligned - 0x4ef6a4f8
BTRFS: superblock checksum mismatch
No valid Btrfs found
** Unrecognized filesystem type **
CACHE: Misaligned operation at range [4ef694f8, 4ef6a4f8]
CACHE: Misaligned operation at range [4ef694f8, 4ef6a4f8]
ERROR: v7_outer_cache_inval_range - start address is not aligned - 0x4ef694f8
ERROR: v7_outer_cache_inval_range - stop address is not aligned - 0x4ef6a4f8
CACHE: Misaligned operation at range [4ef694f8, 4ef6a4f8]
CACHE: Misaligned operation at range [4ef694f8, 4ef6a4f8]
ERROR: v7_outer_cache_inval_range - start address is not aligned - 0x4ef694f8
ERROR: v7_outer_cache_inval_range - stop address is not aligned - 0x4ef6a4f8
BTRFS: superblock checksum mismatch
No valid Btrfs found
** Unrecognized filesystem type **
CACHE: Misaligned operation at range [4ef694f8, 4ef6a4f8]
CACHE: Misaligned operation at range [4ef694f8, 4ef6a4f8]
ERROR: v7_outer_cache_inval_range - start address is not aligned - 0x4ef694f8
ERROR: v7_outer_cache_inval_range - stop address is not aligned - 0x4ef6a4f8
CACHE: Misaligned operation at range [4ef694f8, 4ef6a4f8]
CACHE: Misaligned operation at range [4ef694f8, 4ef6a4f8]
ERROR: v7_outer_cache_inval_range - start address is not aligned - 0x4ef694f8
ERROR: v7_outer_cache_inval_range - stop address is not aligned - 0x4ef6a4f8
BTRFS: superblock checksum mismatch
No valid Btrfs found
** Unrecognized filesystem type **
libfdt fdt_check_header(): FDT_ERR_BADMAGIC
Card did not respond to voltage select! : -110
Scanning disk mmc@2194000.blk...
Disk mmc@2194000.blk not ready
Card did not respond to voltage select! : -110
Scanning disk mmc@2198000.blk...
Disk mmc@2198000.blk not ready
Scanning disk mmc@219c000.blk...
BTRFS: superblock checksum mismatch
No valid Btrfs found
** Unrecognized filesystem type **
Found 5 disks
No EFI system partition
BootOrder not defined
EFI boot manager: Cannot load any image
CACHE: Misaligned operation at range [4ef69550, 4ef6a550]
CACHE: Misaligned operation at range [4ef69550, 4ef6a550]
ERROR: v7_outer_cache_inval_range - start address is not aligned - 0x4ef69550
ERROR: v7_outer_cache_inval_range - stop address is not aligned - 0x4ef6a550
CACHE: Misaligned operation at range [4ef69550, 4ef6a550]
CACHE: Misaligned operation at range [4ef69550, 4ef6a550]
ERROR: v7_outer_cache_inval_range - start address is not aligned - 0x4ef69550
ERROR: v7_outer_cache_inval_range - stop address is not aligned - 0x4ef6a550
BTRFS: superblock checksum mismatch
No valid Btrfs found
** Unrecognized filesystem type **
MX6 CUSTOM U-Boot >

 

标记 (1)
0 项奖励
1 解答
464 次查看
Sanket_Parekh
NXP TechSupport
NXP TechSupport

Hi @arulpandiyan_va ,

I hope you are doing well.
 
"CACHE: Misaligned operation at range [4ef694a0, 4ef6a4a0] " may occur if  The superblock buffer is not cache-aligned.
 
In a later version of u-boot, this bug is resolved by using ALLOC_CACHE_ALIGN_BUFFER in btrfs_read_dev_super() function at /fs/btrfs/disk-io.c
 
you should update to the latest version of uboot or just apply the below-suggested change in the btrfs_read_dev_super() function: 
 
-char tmp[BTRFS_SUPER_INFO_SIZE];
+ALLOC_CACHE_ALIGN_BUFFER(char, tmp, BTRFS_SUPER_INFO_SIZE);
 
If the issue still persists, please provide me with the Environment variable of uboot using printenv and the steps you have followed to create btrfs.
 
Thanks & Regards
Sanket Parekh

在原帖中查看解决方案

2 回复数
395 次查看
arulpandiyan_va
Contributor II

@Sanket_Parekh  thanks for the quick reply and it resolves the issue around btrfs filesystem. 

0 项奖励
465 次查看
Sanket_Parekh
NXP TechSupport
NXP TechSupport

Hi @arulpandiyan_va ,

I hope you are doing well.
 
"CACHE: Misaligned operation at range [4ef694a0, 4ef6a4a0] " may occur if  The superblock buffer is not cache-aligned.
 
In a later version of u-boot, this bug is resolved by using ALLOC_CACHE_ALIGN_BUFFER in btrfs_read_dev_super() function at /fs/btrfs/disk-io.c
 
you should update to the latest version of uboot or just apply the below-suggested change in the btrfs_read_dev_super() function: 
 
-char tmp[BTRFS_SUPER_INFO_SIZE];
+ALLOC_CACHE_ALIGN_BUFFER(char, tmp, BTRFS_SUPER_INFO_SIZE);
 
If the issue still persists, please provide me with the Environment variable of uboot using printenv and the steps you have followed to create btrfs.
 
Thanks & Regards
Sanket Parekh