Re: [U-Boot] UBI issues on SAMA5D31 NOR flash

2014-10-02 Thread Andy Pont
Hello Heiko, > > What says flinfo ? It seems you have protected sectors on > > your nor flash ... you must unprotect them before using it ... > > flinfo says that all sectors are read only as the flash device supports > block locking and powers up with all sectors in their locked state. > > The

Re: [U-Boot] UBI issues on SAMA5D31 NOR flash

2014-10-02 Thread Andy Pont
Hello Heiko, > What says flinfo ? It seems you have protected sectors on > your nor flash ... you must unprotect them before using it ... flinfo says that all sectors are read only as the flash device supports block locking and powers up with all sectors in their locked state. The board configur

Re: [U-Boot] UBI issues on SAMA5D31 NOR flash

2014-10-02 Thread Heiko Schocher
Hello Andy, Am 02.10.2014 10:16, schrieb Andy Pont: Hello Heiko, UBI error: vtbl_check: reserved_pebs 81, ubi->good_peb_count 80 UBI error: vtbl_check: too large reserved_pebs, good PEBs 80 Use of UBI is new to me so where are the PEBs configured? Good question ... looking into vtbl_check()

Re: [U-Boot] UBI issues on SAMA5D31 NOR flash

2014-10-02 Thread Andy Pont
Hello Heiko, > > UBI error: vtbl_check: reserved_pebs 81, ubi->good_peb_count 80 > > UBI error: vtbl_check: too large reserved_pebs, good PEBs 80 > > > > Use of UBI is new to me so where are the PEBs configured? > > Good question ... looking into vtbl_check(), the "reserved_pebs" value > is read

Re: [U-Boot] UBI issues on SAMA5D31 NOR flash

2014-10-01 Thread Heiko Schocher
Am 30.09.2014 13:19, schrieb Andy Pont: Hello Heiko, Hmm.. I thought to see something like this: "too large reserved_pebs %d, good PEBs %d" I am not familiar with this HW ... I think, you have to debug into it Changing the dbg_err() to ubi_err() and also adding a bit more output then I ge

Re: [U-Boot] UBI issues on SAMA5D31 NOR flash

2014-09-30 Thread Andy Pont
Hello Heiko, > Hmm.. I thought to see something like this: > > "too large reserved_pebs %d, good PEBs %d" > > I am not familiar with this HW ... I think, you have to debug into it Changing the dbg_err() to ubi_err() and also adding a bit more output then I get: UBI error: vtbl_check: reserved_

Re: [U-Boot] UBI issues on SAMA5D31 NOR flash

2014-09-30 Thread Heiko Schocher
Hello Andy, Am 30.09.2014 11:04, schrieb Andy Pont: Hello Heiko, Using the patches from Bo Shen to support the NOR flash on the Atmel which patches? I can't find the references in Patchman but they were sent to the mailing list on 18th July 2014 in a series called "ARM: atmel: sama5d3xek:

Re: [U-Boot] UBI issues on SAMA5D31 NOR flash

2014-09-30 Thread Andy Pont
Hello Heiko, > > Using the patches from Bo Shen to support the NOR flash on the Atmel > > which patches? I can't find the references in Patchman but they were sent to the mailing list on 18th July 2014 in a series called "ARM: atmel: sama5d3xek: enable NOR flash support". The patches basically

Re: [U-Boot] UBI issues on SAMA5D31 NOR flash

2014-09-29 Thread Heiko Schocher
Hello Andy, Am 29.09.2014 18:40, schrieb Andy Pont: Hello, Using the patches from Bo Shen to support the NOR flash on the Atmel which patches? SAMA5D31EK hardware platform I am trying to get a UBI root file system within the NOR flash, at offset 0x1000 in the memory map, to work but get

[U-Boot] UBI issues on SAMA5D31 NOR flash

2014-09-29 Thread Andy Pont
Hello, Using the patches from Bo Shen to support the NOR flash on the Atmel SAMA5D31EK hardware platform I am trying to get a UBI root file system within the NOR flash, at offset 0x1000 in the memory map, to work but get errors from the "ubi part" command using U-Boot 2014.04: U-Boot> mtdpart