From: Stefan Agner Date: Mon, 01 Jul 2013 21:16:48 +0200 Subject: [U-Boot] =?utf-8?q?=5BPATCH_1/3=5D_btrfs=3A_use_PLATFORM=5FNO=5FU?= =?utf-8?q?NALIGNED_to_allow_unaligned_access?= Message-ID: <94fd480fb45ad3a549ebc4130ab87043@agner.ch> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Reading the super block leads to data abort crashes. Enabling the no unaligned option works around this. Since the format of the super block is fixed by the on-disk format unaligned access might by necessary in order to have btrfs support at all. Signed-off-by: Stefan Agner --- fs/btrfs/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/btrfs/Makefile b/fs/btrfs/Makefile index a9e2021..104a06e 100644 --- a/fs/btrfs/Makefile +++ b/fs/btrfs/Makefile @@ -35,6 +35,7 @@ COBJS-$(CONFIG_FS_BTR) := btrfs.o SRCS := $(AOBJS:.o=.S) $(COBJS-y:.o=.c) OBJS := $(addprefix $(obj),$(AOBJS) $(COBJS-y)) +$(obj)btrfs.o: CFLAGS += $(PLATFORM_NO_UNALIGNED) all: $(LIB) $(AOBJS) -- 1.8.3.1