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

2015-01-19 Thread Heiko Schocher
Hello Anton, Am 19.01.2015 12:29, schrieb Anton Habegger: Hello Heiko I was able to enable the uibfs_replay_journal, and so far this solved my issue. Great to hear! Below the patch. I'm not sure about the U-Boot replacement for atomic_long_read? I assume U-Boot has no concurrency, then

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

2015-01-19 Thread Anton Habegger
Hello Heiko I was able to enable the uibfs_replay_journal, and so far this solved my issue. Below the patch. I'm not sure about the U-Boot replacement for atomic_long_read? I assume U-Boot has no concurrency, then maybe it is safe, just to assign the long direct. Is this correct? Furthermore I

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

2015-01-18 Thread Heiko Schocher
Hello Anton, Am 17.01.2015 17:06, schrieb Anton Habegger: Now I realized the dangling branch and dangling match messages on Linux is generated during the ubifs_replay_journal(). Under U-Boot this call is disabled: super.c mount_ubifs: #ifndef __UBOOT__ err = ubifs_replay_journal(c); if (err)

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

2015-01-17 Thread Anton Habegger
Now I realized the dangling branch and dangling match messages on Linux is generated during the ubifs_replay_journal(). Under U-Boot this call is disabled: super.c mount_ubifs: #ifndef __UBOOT__ err = ubifs_replay_journal(c); if (err) goto out_journal; #endif I'm unfortunately not an expert in

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 Bill Pringlemeir
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 think that the issue is with the UbiFs layer as it doesn't mount. However, it can

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 Heiko Schocher
Hello Anton, 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

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

2015-01-14 Thread Heiko Schocher
Hello Anton, Am 14.01.2015 18:12, schrieb 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

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