[U-Boot] [Patch v4 1/2] ubifs: Import atomic_long operations from Linux

2015-01-22 Thread Anton Habegger
This commit is a preperation for a subsequent UBIFS commit which needs atomic_long operations. Therefor include/asm-generic/atomic-long.h is imported from 1860e37 Linux 3.15 Signed-off-by: Anton Habegger anton.habeg...@gmail.com --- Hello Heiko Changes v2: - Eliminate #ifndef __UBOOT__ as much

[U-Boot] [Patch v4 2/2] ubifs: Enable journal replay during mount

2015-01-22 Thread Anton Habegger
Enable ubifs_replay_journal during mount_ubifs, which was disabled before. This commit fix an issue with unrecoverable ubifs volumes after power cut. Therefor the gc.c is imported now from 1860e37 Linux 3.15 Signed-off-by: Anton Habegger anton.habeg...@gmail.com --- Changes for v2: - clear

[U-Boot] [PATCH v3 2/2] Enable journal replay for UBIFS

2015-01-21 Thread Anton Habegger
Hello Heiko here the second part with the real fix and better commit message. From 66cdf8324f5e9be1422818cb51c5810b54feef93 Mon Sep 17 00:00:00 2001 From: Anton Habegger anton.habeg...@delta-es.com Date: Wed, 21 Jan 2015 16:23:02 +0100 Subject: [PATCH] ubifs: Enable journal replay during mount

[U-Boot] [PATCH v3 1/2] Enable journal replay for UBIFS

2015-01-21 Thread Anton Habegger
Hello Heiko Here the second patch you want. This needs to be applied prior the real bug fix, becouse it solves the warning as you mention as well. From fd0a1377825638d15bc66b5f07a05beb14fe747c Mon Sep 17 00:00:00 2001 From: Anton Habegger anton.habeg...@delta-es.com Date: Wed, 21 Jan 2015 16

Re: [U-Boot] [PATCH v3 1/2] Enable journal replay for UBIFS

2015-01-21 Thread Anton Habegger
Hello Heiko On Thu, Jan 22, 2015 at 7:30 AM, Heiko Schocher h...@denx.de wrote: Hello Anton, Am 21.01.2015 16:47, schrieb Anton Habegger: Hello Heiko Here the second patch you want. This needs to be applied prior the real bug fix, becouse it solves the warning as you mention as well

[U-Boot] [PATCH v3] Enable journal replay for UBIFS

2015-01-20 Thread Anton Habegger
and fix some unrecoverable UBIFS volumes. Signed-off-by: Anton Habegger anton.habeg...@delta-es.com --- fs/ubifs/Makefile | 2 +- fs/ubifs/gc.c | 987 ++ fs/ubifs/replay.c | 4 - fs/ubifs/super.c | 8 +- fs/ubifs/tnc.c| 2 - fs/ubifs

[U-Boot] [PATCH v2] Enable journal replay for UBIFS

2015-01-19 Thread Anton Habegger
-by: Anton Habegger anton.habeg...@delta-es.com --- fs/ubifs/Makefile | 2 +- fs/ubifs/gc.c | 987 ++ fs/ubifs/replay.c | 8 +- fs/ubifs/super.c | 8 +- fs/ubifs/tnc.c| 7 +- 5 files changed, 997 insertions(+), 15 deletions(-) create mode

Re: [U-Boot] Unreadable UBIFS partition after power cuts

2015-01-19 Thread Anton Habegger
wasn't able to enable the error case, ubifs_destroy_journal, because there is a dependency to the garbage collector gc.c. So far I didn't found time to integrate this stuff. What do you think, Is this the right way to fix this issue? Signed-off-by: Anton Habegger anton.habeg...@delta-es.com --- fs

Re: [U-Boot] Unreadable UBIFS partition after power cuts

2015-01-17 Thread Anton Habegger
in UBIFS, but I'm wondering how can U-Boot grantee to open a UBIFS volume after an power cut in a not corrupted state without replaying the journal? Thank you to give me one hint again. On Fri, Jan 16, 2015 at 6:47 PM, Anton Habegger anton.habeg...@gmail.com wrote: On Fri, Jan 16, 2015 at 4:42

Re: [U-Boot] Unreadable UBIFS partition after power cuts

2015-01-16 Thread Anton Habegger
Hello Heiko We have a PPC MPC5125 device with 64MB NOR flash. The U-boot has to load the kernel and initramfs from a UBIFS partition. Recently we made an upgrade from U-Boot version V2010.12 to version V2014.10. Now after some regression tests with power cuts, we got an UBIFS state,

Re: [U-Boot] Unreadable UBIFS partition after power cuts

2015-01-16 Thread Anton Habegger
Sorry, there is something wrong with my mail client. Here again the same with hopefully better line endings. We have a PPC MPC5125 device with 64MB NOR flash. The U-boot has to load the kernel and initramfs from a UBIFS partition. Recently we made an upgrade from U-Boot version V2010.12 to

Re: [U-Boot] Unreadable UBIFS partition after power cuts

2015-01-16 Thread Anton Habegger
I'm definitely not a friend of Outlook, here the third trial with my personal account. We have a PPC MPC5125 device with 64MB NOR flash. The U-boot has to load the kernel and initramfs from a UBIFS partition. Recently we made an upgrade from U-Boot version V2010.12 to version V2014.10. Now

Re: [U-Boot] Unreadable UBIFS partition after power cuts

2015-01-16 Thread Anton Habegger
On Fri, Jan 16, 2015 at 4:42 PM, Bill Pringlemeir bpringlem...@nbsps.com wrote: On 16 Jan 2015, anton.habeg...@delta-es.com wrote: What does a dangling branch and dangling match mean? Are those situations handled differently under U-Boot? ... I don't know about this. However, it is easy to

Re: [U-Boot] Unreadable UBIFS partition after power cuts

2015-01-14 Thread Anton Habegger
Hello Heiko Am 14.01.2015 13:52, schrieb Anton Habegger: Hello We have a PPC MPC5125 device with 64MB NOR flash. The U-boot has to load the kernel and initramfs from a UBIFS partition. Recently we made an upgrade from U-Boot version V2010.12 to version V2014.10. Now after some regression

[U-Boot] Unreadable UBIFS partition after power cuts

2015-01-14 Thread Anton Habegger
Hello We have a PPC MPC5125 device with 64MB NOR flash. The U-boot has to load the kernel and initramfs from a UBIFS partition. Recently we made an upgrade from U-Boot version V2010.12 to version V2014.10. Now after some regression tests with power cuts, we got an UBIFS state, which is