Re: [U-Boot] UBIFS fails on SheevaPlug

2012-11-12 Thread Vikram Narayanan
On 11/12/2012 10:25 PM, Dimax wrote: I read the page but not sure how exactly to do it. I'm not familiar with git. I have gust used source from ftp. You don't need a git for it. Mail access should be fine. Find the below mail in your inbox and reply to that, http://www.mail-archive.com/u-boot@

Re: [U-Boot] UBIFS fails on SheevaPlug

2012-11-12 Thread Dimax
I read the page but not sure how exactly to do it. I'm not familiar with git. I have gust used source from ftp. On Mon, Nov 12, 2012 at 10:33 AM, Andreas Bießmann wrote: > Dear Dimax, > > On 12.11.2012 06:33, Dimax wrote: >> HI, >> I have managed to build latest image and apply MALLOC patch. > >

Re: [U-Boot] UBIFS fails on SheevaPlug

2012-11-12 Thread Andreas Bießmann
Dear Dimax, On 12.11.2012 06:33, Dimax wrote: > HI, > I have managed to build latest image and apply MALLOC patch. great, congrats. > After that system is fully working: > > UBIFS: recovery needed > UBIFS: recovery deferred > UBIFS: mounted UBI device 0, volume 0, name "rootfs" > UBIFS: mounted

Re: [U-Boot] UBIFS fails on SheevaPlug

2012-11-11 Thread Dimax
HI, I have managed to build latest image and apply MALLOC patch. After that system is fully working: UBIFS: recovery needed UBIFS: recovery deferred UBIFS: mounted UBI device 0, volume 0, name "rootfs" UBIFS: mounted read-only UBIFS: file system size: 515708928 bytes (503622 KiB, 491 MiB, 3997 L

Re: [U-Boot] UBIFS fails on SheevaPlug

2012-11-06 Thread Andreas Bießmann
Dear Dimax, On 06.11.2012 08:51, Dimax wrote: > Well so far no luck, > Actually I'm not sure how to start. But I will try to go on "with a > little help from my friends". > > I) > The first question that raised is a compiler. I see two options: > 1. Use the cross compiler - this is what more like

Re: [U-Boot] UBIFS fails on SheevaPlug

2012-11-05 Thread Dimax
Well so far no luck, Actually I'm not sure how to start. But I will try to go on "with a little help from my friends". I) The first question that raised is a compiler. I see two options: 1. Use the cross compiler - this is what more likely most of the people are doing. 2. I wonder if I can use nat

Re: [U-Boot] UBIFS fails on SheevaPlug

2012-10-31 Thread Andreas Bießmann
Dear Dimax, On 31.10.12 18:23, Dimax wrote: > HI guys. > I'm sorry I had other jobs to do and did not have time to dig it. > I have tried SheevaPlug port from > http://people.debian.org/~tbm/u-boot/2012.04.01-2/ > and it fails and gave me no error code. Not sure it is because of old > version or e

Re: [U-Boot] UBIFS fails on SheevaPlug

2012-10-31 Thread Dimax
HI guys. I'm sorry I had other jobs to do and did not have time to dig it. I have tried SheevaPlug port from http://people.debian.org/~tbm/u-boot/2012.04.01-2/ and it fails and gave me no error code. Not sure it is because of old version or error just did not happen. I still keep a box with broken

Re: [U-Boot] UBIFS fails on SheevaPlug

2012-10-31 Thread Vikram Narayanan
Hello Andreas, On 10/31/2012 10:20 PM, Andreas Bießmann wrote: Dear Vikram Narayanan, On 31.10.2012 17:27, Vikram Narayanan wrote: Hello Andreas, On 10/30/2012 4:32 AM, Andreas Bießmann wrote: Dear Vikram Narayanan, first of all you are right. u-boot ubifs implementation will never recover

Re: [U-Boot] UBIFS fails on SheevaPlug

2012-10-31 Thread Andreas Bießmann
Dear Vikram Narayanan, On 31.10.2012 17:27, Vikram Narayanan wrote: > Hello Andreas, > > On 10/30/2012 4:32 AM, Andreas Bießmann wrote: >> Dear Vikram Narayanan, >> >> first of all you are right. u-boot ubifs implementation will never >> recover the ubifs on media, cause it is mounted read only.

Re: [U-Boot] UBIFS fails on SheevaPlug

2012-10-31 Thread Vikram Narayanan
Hello Andreas, On 10/30/2012 4:32 AM, Andreas Bießmann wrote: Dear Vikram Narayanan, first of all you are right. u-boot ubifs implementation will never recover the ubifs on media, cause it is mounted read only. calls sget() (line 1043) which in turn calls kzalloc() (line 67) which may ret

Re: [U-Boot] UBIFS fails on SheevaPlug

2012-10-29 Thread Andreas Bießmann
Dear Dimax, On 29.10.2012 20:05, Dimax wrote: U-boot will _not_ recover your UBIFS partition like the Linux kernel. CMIIW. In other words it is not possible to use UBIFS on embedded Linux boards with u-boot unless you can provide unterminated power supply. NAK I invested some time to reprodu

Re: [U-Boot] UBIFS fails on SheevaPlug

2012-10-29 Thread Andreas Bießmann
Dear Vikram Narayanan, first of all you are right. u-boot ubifs implementation will never recover the ubifs on media, cause it is mounted read only. On 29.10.2012 19:53, Vikram Narayanan wrote: On 10/29/2012 10:55 PM, Dimax wrote: I remember I have unbricked sheevaplug with USB key. But I'm

Re: [U-Boot] UBIFS fails on SheevaPlug

2012-10-29 Thread Dimax
> U-boot will _not_ recover your UBIFS partition like the Linux kernel. CMIIW. In other words it is not possible to use UBIFS on embedded Linux boards with u-boot unless you can provide unterminated power supply. I'm going to another solution - Split flash in two UBIFS partitions. Make the first o

Re: [U-Boot] UBIFS fails on SheevaPlug

2012-10-29 Thread Vikram Narayanan
On 10/29/2012 10:55 PM, Dimax wrote: > I remember I have unbricked sheevaplug with USB key. > But I'm still not sure if effort is not useless as I see no conclusion > about u-boot ability to recover UBIFS partition (at least to try). > Can anybody tell it for sure? This is what I've got from the c

Re: [U-Boot] UBIFS fails on SheevaPlug

2012-10-29 Thread Dimax
wrote: > > > > -Original Message- > > From: u-boot-boun...@lists.denx.de [mailto:u-boot- > > boun...@lists.denx.de] On Behalf Of Andreas Bießmann > > Sent: 29 October 2012 14:41 > > To: Dimax > > Cc: Marek Vasut; u-boot@lists.denx.de > > Subject: Re:

Re: [U-Boot] UBIFS fails on SheevaPlug

2012-10-29 Thread Prafulla Wadaskar
> -Original Message- > From: u-boot-boun...@lists.denx.de [mailto:u-boot- > boun...@lists.denx.de] On Behalf Of Andreas Bießmann > Sent: 29 October 2012 14:41 > To: Dimax > Cc: Marek Vasut; u-boot@lists.denx.de > Subject: Re: [U-Boot] UBIFS fails on Sheev

Re: [U-Boot] UBIFS fails on SheevaPlug

2012-10-29 Thread Vikram Narayanan
Hello Dimax, On 10/29/2012 2:57 PM, Dimax wrote: I also want to look back at my original problem of non-recovered UBIFS. Want to make sure my effort will not be useless. Let's say I've increased the memory allocation size. But are you sure u-boot implementation of ubifs really can recover partit

Re: [U-Boot] UBIFS fails on SheevaPlug

2012-10-29 Thread Prafulla Wadaskar
> -Original Message- > From: u-boot-boun...@lists.denx.de [mailto:u-boot- > boun...@lists.denx.de] On Behalf Of Dimax > Sent: 28 October 2012 20:18 > To: u-boot@lists.denx.de > Subject: [U-Boot] UBIFS fails on SheevaPlug > > HI, > After power short u-boot fai

Re: [U-Boot] UBIFS fails on SheevaPlug

2012-10-29 Thread Andreas Bießmann
Dear Marek Vasut, On 29.10.2012 11:19, Marek Vasut wrote: > Dear Andreas Bießmann, > >> Dear Dimax, >> >> On 29.10.2012 10:27, Dimax wrote: >>> On Mon, Oct 29, 2012 at 11:11 AM, Andreas Bießmann >>> >>> mailto:andreas.de...@googlemail.com>> wrote: >>> Dear Dimax, >>> >>> please do no

Re: [U-Boot] UBIFS fails on SheevaPlug

2012-10-29 Thread Marek Vasut
Dear Andreas Bießmann, > Dear Dimax, > > On 29.10.2012 10:27, Dimax wrote: > > On Mon, Oct 29, 2012 at 11:11 AM, Andreas Bießmann > > > > mailto:andreas.de...@googlemail.com>> wrote: > > Dear Dimax, > > > > please do not TOFU. > > > > Sorry don't know what you mean? > > you did it

Re: [U-Boot] UBIFS fails on SheevaPlug

2012-10-29 Thread Andreas Bießmann
Dear Dimax, On 29.10.2012 10:27, Dimax wrote: > On Mon, Oct 29, 2012 at 11:11 AM, Andreas Bießmann > mailto:andreas.de...@googlemail.com>> wrote: > > Dear Dimax, > > please do not TOFU. > > > Sorry don't know what you mean? you did it right ;) http://en.wikipedia.org/wiki/Top-posting#

Re: [U-Boot] UBIFS fails on SheevaPlug

2012-10-29 Thread Dimax
On Mon, Oct 29, 2012 at 11:11 AM, Andreas Bießmann < andreas.de...@googlemail.com> wrote: > Dear Dimax, > > please do not TOFU. > Sorry don't know what you mean? > > On 29.10.2012 09:50, Dimax wrote: > > Hi, > > What if I compile a new u-boot but to try it I will load and flash new > > created i

Re: [U-Boot] UBIFS fails on SheevaPlug

2012-10-29 Thread Andreas Bießmann
Dear Dimax, please do not TOFU. On 29.10.2012 09:50, Dimax wrote: > Hi, > What if I compile a new u-boot but to try it I will load and flash new > created image after original u-boot and will run it from withing > original reboot manually just pointing a new image address? Can it work? well, you

Re: [U-Boot] UBIFS fails on SheevaPlug

2012-10-29 Thread Dimax
Hi, What if I compile a new u-boot but to try it I will load and flash new created image after original u-boot and will run it from withing original reboot manually just pointing a new image address? Can it work? On Mon, Oct 29, 2012 at 10:38 AM, Andreas Bießmann < andreas.de...@googlemail.com> wr

Re: [U-Boot] UBIFS fails on SheevaPlug

2012-10-29 Thread Andreas Bießmann
Dear Dimax, On 29.10.2012 07:55, Dimax wrote: > HI, > So you say I have to rebuild u-boot with expanded CONFIG_SYS_MALLOC_LEN. > So far I have used rebuild images from: > http://people.debian.org/~tbm/u-boot/2011.12-3/sheevaplug/u-boot.kwb >

Re: [U-Boot] UBIFS fails on SheevaPlug

2012-10-28 Thread Dimax
HI, So you say I have to rebuild u-boot with expanded CONFIG_SYS_MALLOC_LEN. So far I have used rebuild images from: http://people.debian.org/~tbm/u-boot/2011.12-3/sheevaplug/u-boot.kwb I see following files in the parrent directory: [image: [ ]] u-boot_2012.04.01-2.debian.tar.gz

Re: [U-Boot] UBIFS fails on SheevaPlug

2012-10-28 Thread Andreas Bießmann
Dear Dimax, On 29.10.12 07:38, Dimax wrote: > Tried latest available version for SheevaPlug: > > Marvell>> version > U-Boot 2012.04.01 (Jun 01 2012 - 02:27:06) > Marvell-Sheevaplug - eSATA - SD/MMC > gcc (Debian 4.6.3-5) 4.6.3 > GNU ld (GNU Binutils for Debian) 2.22 > > Same result. > Do you kno

Re: [U-Boot] UBIFS fails on SheevaPlug

2012-10-28 Thread Dimax
Tried latest available version for SheevaPlug: Marvell>> version U-Boot 2012.04.01 (Jun 01 2012 - 02:27:06) Marvell-Sheevaplug - eSATA - SD/MMC gcc (Debian 4.6.3-5) 4.6.3 GNU ld (GNU Binutils for Debian) 2.22 Same result. Do you know if u-boot has a functionality to recover ubifs partitions? O

Re: [U-Boot] UBIFS fails on SheevaPlug

2012-10-28 Thread Dimax
Hi. 1) Is this an upstream u-boot? Marvell>> version U-Boot 2011.12 (Jan 08 2012 - 21:53:47) Marvell-Sheevaplug - eSATA - SD/MMC gcc (Debian 4.6.2-9) 4.6.2 GNU ld (GNU Binutils for Debian) 2.22 I will try latest one today. 2) Can you NAND (driver) do subpage writes ? How can I know it? On Mon

Re: [U-Boot] UBIFS fails on SheevaPlug

2012-10-28 Thread Marek Vasut
Dear Dimax, > HI, > After power short u-boot fails to mount UBIFS and board stuck. Below is a > trace of u-boot > > Marvell>> boot > > UBI: mtd1 is detached from ubi0 > > Creating 1 MTD partitions on "nand0": > > 0x0050-0x2000 : "mtd=2" > > UBI: attaching mtd1 to ubi0 > > UBI

[U-Boot] UBIFS fails on SheevaPlug

2012-10-28 Thread Dimax
HI, After power short u-boot fails to mount UBIFS and board stuck. Below is a trace of u-boot Marvell>> boot UBI: mtd1 is detached from ubi0 Creating 1 MTD partitions on "nand0": 0x0050-0x2000 : "mtd=2" UBI: attaching mtd1 to ubi0 UBI: physical eraseblock size: 131072 bytes