diff options
author | Andrea Adami <andrea.adami@gmail.com> | 2013-12-15 17:01:03 +0100 |
---|---|---|
committer | Andrea Adami <andrea.adami@gmail.com> | 2013-12-15 17:08:26 +0100 |
commit | af54b196e7d6ced6d308fc84c2d03a98ed2e5bfd (patch) | |
tree | d60f5e983b15e990f14ee93813685eb215bd8db9 | |
parent | 490a1804426e085b9755a645abfb4b52a378181f (diff) | |
download | meta-handheld-af54b196e7d6ced6d308fc84c2d03a98ed2e5bfd.tar.gz |
linux-yocto*: collie: disable CFI buffered write (temporary hack)
Something bad (timeout ?) is happening and the fs is corrupted
on remount/reboot.
Going back to word write offers a stable base for further debugging.
Signed-off-by: Andrea Adami <andrea.adami@gmail.com>
6 files changed, 96 insertions, 0 deletions
diff --git a/recipes-kernel/linux/linux-yocto-3.10/collie/collie.scc b/recipes-kernel/linux/linux-yocto-3.10/collie/collie.scc index 7313842..9980c68 100644 --- a/recipes-kernel/linux/linux-yocto-3.10/collie/collie.scc +++ b/recipes-kernel/linux/linux-yocto-3.10/collie/collie.scc @@ -14,6 +14,7 @@ patch ../patches/patches-mtd/collie-force-cfi.patch patch ../patches/patches-mtd/collie-mtd-resize.patch patch ../patches/patches-mtd/collie-force-unlock.patch patch ../patches/patches-mtd/collie-PCR.patch +patch ../patches/patches-mtd/collie-no-buf-write.patch patch ../patches/patches-sa1100/collie-irda.patch patch ../patches/patches-sa1100/collie-add-bootblock.patch patch ../patches/patches-sa1100/arm-sa1100-add-cpu-clock.patch diff --git a/recipes-kernel/linux/linux-yocto-3.10/patches/patches-mtd/collie-no-buf-write.patch b/recipes-kernel/linux/linux-yocto-3.10/patches/patches-mtd/collie-no-buf-write.patch new file mode 100644 index 0000000..02f06c3 --- /dev/null +++ b/recipes-kernel/linux/linux-yocto-3.10/patches/patches-mtd/collie-no-buf-write.patch @@ -0,0 +1,31 @@ +From 5f535adb0a2cd914eb1d6ef5fd2a703b9886bec0 Mon Sep 17 00:00:00 2001 +From: Andrea Adami <andrea.adami@gmail.com> +Date: Sun, 15 Dec 2013 16:53:27 +0100 +Subject: [PATCH] MTD: HACK - disable CFI buffered write + +Something bad (timeout ?) is happening and the fs is corrupted +on remount/reboot. + +Going back to word write offers a stable base for further debugging. + +Signed-off-by: Andrea Adami <andrea.adami@gmail.com> +--- + drivers/mtd/chips/cfi_cmdset_0001.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/drivers/mtd/chips/cfi_cmdset_0001.c b/drivers/mtd/chips/cfi_cmdset_0001.c +index d9d6f0e..a5c984a 100644 +--- a/drivers/mtd/chips/cfi_cmdset_0001.c ++++ b/drivers/mtd/chips/cfi_cmdset_0001.c +@@ -40,7 +40,7 @@ + /* #define CMDSET0001_DISABLE_WRITE_SUSPEND */ + + // debugging, turns off buffer write mode if set to 1 +-#define FORCE_WORD_WRITE 0 ++#define FORCE_WORD_WRITE 1 + + /* Intel chips */ + #define I82802AB 0x00ad +-- +1.8.1.5 + diff --git a/recipes-kernel/linux/linux-yocto-dev/collie/collie.scc b/recipes-kernel/linux/linux-yocto-dev/collie/collie.scc index a7bba19..816d2c2 100644 --- a/recipes-kernel/linux/linux-yocto-dev/collie/collie.scc +++ b/recipes-kernel/linux/linux-yocto-dev/collie/collie.scc @@ -8,6 +8,7 @@ patch ../patches/patches-mtd/collie-force-cfi.patch patch ../patches/patches-mtd/collie-mtd-resize.patch patch ../patches/patches-mtd/collie-force-unlock.patch patch ../patches/patches-mtd/collie-PCR.patch +patch ../patches/patches-mtd/collie-no-buf-write.patch patch ../patches/patches-sa1100/collie-irda.patch patch ../patches/patches-sa1100/collie-add-bootblock.patch patch ../patches/patches-sa1100/arm-sa1100-add-cpu-clock.patch diff --git a/recipes-kernel/linux/linux-yocto-dev/patches/patches-mtd/collie-no-buf-write.patch b/recipes-kernel/linux/linux-yocto-dev/patches/patches-mtd/collie-no-buf-write.patch new file mode 100644 index 0000000..02f06c3 --- /dev/null +++ b/recipes-kernel/linux/linux-yocto-dev/patches/patches-mtd/collie-no-buf-write.patch @@ -0,0 +1,31 @@ +From 5f535adb0a2cd914eb1d6ef5fd2a703b9886bec0 Mon Sep 17 00:00:00 2001 +From: Andrea Adami <andrea.adami@gmail.com> +Date: Sun, 15 Dec 2013 16:53:27 +0100 +Subject: [PATCH] MTD: HACK - disable CFI buffered write + +Something bad (timeout ?) is happening and the fs is corrupted +on remount/reboot. + +Going back to word write offers a stable base for further debugging. + +Signed-off-by: Andrea Adami <andrea.adami@gmail.com> +--- + drivers/mtd/chips/cfi_cmdset_0001.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/drivers/mtd/chips/cfi_cmdset_0001.c b/drivers/mtd/chips/cfi_cmdset_0001.c +index d9d6f0e..a5c984a 100644 +--- a/drivers/mtd/chips/cfi_cmdset_0001.c ++++ b/drivers/mtd/chips/cfi_cmdset_0001.c +@@ -40,7 +40,7 @@ + /* #define CMDSET0001_DISABLE_WRITE_SUSPEND */ + + // debugging, turns off buffer write mode if set to 1 +-#define FORCE_WORD_WRITE 0 ++#define FORCE_WORD_WRITE 1 + + /* Intel chips */ + #define I82802AB 0x00ad +-- +1.8.1.5 + diff --git a/recipes-kernel/linux/linux-yocto-tiny-kexecboot-3.10/patches/patches-mtd/collie-no-buf-write.patch b/recipes-kernel/linux/linux-yocto-tiny-kexecboot-3.10/patches/patches-mtd/collie-no-buf-write.patch new file mode 100644 index 0000000..02f06c3 --- /dev/null +++ b/recipes-kernel/linux/linux-yocto-tiny-kexecboot-3.10/patches/patches-mtd/collie-no-buf-write.patch @@ -0,0 +1,31 @@ +From 5f535adb0a2cd914eb1d6ef5fd2a703b9886bec0 Mon Sep 17 00:00:00 2001 +From: Andrea Adami <andrea.adami@gmail.com> +Date: Sun, 15 Dec 2013 16:53:27 +0100 +Subject: [PATCH] MTD: HACK - disable CFI buffered write + +Something bad (timeout ?) is happening and the fs is corrupted +on remount/reboot. + +Going back to word write offers a stable base for further debugging. + +Signed-off-by: Andrea Adami <andrea.adami@gmail.com> +--- + drivers/mtd/chips/cfi_cmdset_0001.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/drivers/mtd/chips/cfi_cmdset_0001.c b/drivers/mtd/chips/cfi_cmdset_0001.c +index d9d6f0e..a5c984a 100644 +--- a/drivers/mtd/chips/cfi_cmdset_0001.c ++++ b/drivers/mtd/chips/cfi_cmdset_0001.c +@@ -40,7 +40,7 @@ + /* #define CMDSET0001_DISABLE_WRITE_SUSPEND */ + + // debugging, turns off buffer write mode if set to 1 +-#define FORCE_WORD_WRITE 0 ++#define FORCE_WORD_WRITE 1 + + /* Intel chips */ + #define I82802AB 0x00ad +-- +1.8.1.5 + diff --git a/recipes-kernel/linux/linux-yocto-tiny-kexecboot_3.10.bbappend b/recipes-kernel/linux/linux-yocto-tiny-kexecboot_3.10.bbappend index 85be4ef..2238cbc 100644 --- a/recipes-kernel/linux/linux-yocto-tiny-kexecboot_3.10.bbappend +++ b/recipes-kernel/linux/linux-yocto-tiny-kexecboot_3.10.bbappend @@ -47,6 +47,7 @@ SRC_URI_append_collie = " \ file://patches/patches-mtd/collie-mtd-resize.patch \ file://patches/patches-mtd/collie-force-unlock.patch \ file://patches/patches-mtd/collie-PCR.patch \ + file://patches/patches-mtd/collie-no-buf-write.patch \ file://patches/patches-sa1100/collie-irda.patch \ file://patches/patches-sa1100/collie-add-bootblock.patch \ file://patches/patches-sa1100/arm-sa1100-add-cpu-clock.patch \ |