mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* at91sam9260-ek ...
@ 2014-03-05  9:55 Vanhauwaert Wouter
  2014-03-05 14:56 ` at91sam9260-ek Vanhauwaert Wouter
  2014-03-06  9:55 ` at91sam9260-ek Sascha Hauer
  0 siblings, 2 replies; 8+ messages in thread
From: Vanhauwaert Wouter @ 2014-03-05  9:55 UTC (permalink / raw)
  To: barebox

Hello,

Is the setup for a at91sam9260-ek still functioning?
I have troubles with my nand flash. At first it boots and writes BBT-tables.
However, next boot, it won't read the BBT, and has errors with the magic on the environment variables.
Erase /dev/env0 and saveenv do not make a difference.
Nandtest does not give me errors...

I'm just using the latest barebox 2014.2 and loading it on a at91sam9260-ek through usb (sam-ba). I'm just using the plain at91sam9260ek_defconfig

My output:

First boot:
barebox 2014.02.0 #4 Wed Mar 5 10:39:35 CET 2014

Board: Atmel at91sam9260-ek
AT91: Detected soc type: at91sam9260
AT91: Detected soc subtype: Unknown
Clocks: CPU 198 MHz, master 99 MHz, main 18.432 MHz
netconsole: registered as cs1
atmel_nand: Use On Flash BBT
nand: NAND device: Manufacturer ID: 0xec, Chip ID: 0xda (Samsung NAND 256MiB 3,3                                                      V 8-bit), 256MiB, page size: 2048, OOB size: 64
Bad block table not found for chip 0
Bad block table not found for chip 0
Scanning device for bad blocks
Bad block table written to 0x00000ffe0000, version 0x01
Bad block table written to 0x00000ffc0000, version 0x01
mdio_bus: miibus0: probed
macb macb0: Cadence MACB at 0xfffc4000
at91_udc at91_udc0: at91_udc version 3 May 2006
atmel_mci atmel_mci0: version: 0x210
atmel_mci atmel_mci0: registered as atmel_mci0
atmel_mci atmel_mci0: command/data timeout
atmel_mci atmel_mci0: command/data timeout
atmel_mci atmel_mci0: command/data timeout
malloc space: 0x23b00000 -> 0x23efffff (size 4 MiB)
envfs: wrong magic on /dev/env0
no valid environment found on /dev/env0. Using default environment
running /env/bin/init...
enable tty over USB Device, increase the boot delay to 16s

Hit any key to stop autoboot

Second boot:
barebox 2014.02.0 #4 Wed Mar 5 10:39:35 CET 2014

Board: Atmel at91sam9260-ek
AT91: Detected soc type: at91sam9260
AT91: Detected soc subtype: Unknown
Clocks: CPU 198 MHz, master 99 MHz, main 18.432 MHz
netconsole: registered as cs1
atmel_nand: Use On Flash BBT
nand: NAND device: Manufacturer ID: 0xec, Chip ID: 0xda (Samsung NAND 256MiB 3,3                                                      V 8-bit), 256MiB, page size: 2048, OOB size: 64
Bad block table found at page 131008, version 0x01
Bad block table found at page 130944, version 0x01
nand_bbt: error reading BBT
mdio_bus: miibus0: probed
macb macb0: Cadence MACB at 0xfffc4000
at91_udc at91_udc0: at91_udc version 3 May 2006
atmel_mci atmel_mci0: version: 0x210
atmel_mci atmel_mci0: registered as atmel_mci0
atmel_mci atmel_mci0: command/data timeout
atmel_mci atmel_mci0: command/data timeout
atmel_mci atmel_mci0: command/data timeout
malloc space: 0x23b00000 -> 0x23efffff (size 4 MiB)
envfs: wrong magic on /dev/env0
no valid environment found on /dev/env0. Using default environment
running /env/bin/init...
enable tty over USB Device, increase the boot delay to 16s

Hit any key to stop autoboot

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 8+ messages in thread

* RE: at91sam9260-ek ...
  2014-03-05  9:55 at91sam9260-ek Vanhauwaert Wouter
@ 2014-03-05 14:56 ` Vanhauwaert Wouter
  2014-03-06  9:55 ` at91sam9260-ek Sascha Hauer
  1 sibling, 0 replies; 8+ messages in thread
From: Vanhauwaert Wouter @ 2014-03-05 14:56 UTC (permalink / raw)
  To: barebox

> -----Original Message----
> From: barebox [mailto:barebox-bounces@lists.infradead.org] On Behalf Of
> Vanhauwaert Wouter
> Sent: woensdag 5 maart 2014 10:55
> To: barebox@lists.infradead.org
> Subject: at91sam9260-ek ...
> 
> Hello,
> 
> Is the setup for a at91sam9260-ek still functioning?
> I have troubles with my nand flash. At first it boots and writes BBT-tables.
> However, next boot, it won't read the BBT, and has errors with the magic on the
> environment variables.
> Erase /dev/env0 and saveenv do not make a difference.
> Nandtest does not give me errors...
> 
> I'm just using the latest barebox 2014.2 and loading it on a at91sam9260-ek
> through usb (sam-ba). I'm just using the plain at91sam9260ek_defconfig
> 

loadenv /dev/env0 
Gives me: 
Envfs: wrong magic on /dev/env0
Loadenv: I/O error

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: at91sam9260-ek ...
  2014-03-05  9:55 at91sam9260-ek Vanhauwaert Wouter
  2014-03-05 14:56 ` at91sam9260-ek Vanhauwaert Wouter
@ 2014-03-06  9:55 ` Sascha Hauer
  2014-03-06 10:04   ` at91sam9260-ek Vanhauwaert Wouter
  1 sibling, 1 reply; 8+ messages in thread
From: Sascha Hauer @ 2014-03-06  9:55 UTC (permalink / raw)
  To: Vanhauwaert Wouter; +Cc: barebox

On Wed, Mar 05, 2014 at 10:55:16AM +0100, Vanhauwaert Wouter wrote:
> Hello,
> 
> Is the setup for a at91sam9260-ek still functioning?
> I have troubles with my nand flash. At first it boots and writes BBT-tables.
> However, next boot, it won't read the BBT, and has errors with the magic on the environment variables.
> Erase /dev/env0 and saveenv do not make a difference.
> Nandtest does not give me errors...
> 
> I'm just using the latest barebox 2014.2 and loading it on a at91sam9260-ek through usb (sam-ba). I'm just using the plain at91sam9260ek_defconfig

Seems there's something broken. I have no better idea other than
bisecting it.

Sascha

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 8+ messages in thread

* RE: at91sam9260-ek ...
  2014-03-06  9:55 ` at91sam9260-ek Sascha Hauer
@ 2014-03-06 10:04   ` Vanhauwaert Wouter
  2014-03-06 10:18     ` at91sam9260-ek Sascha Hauer
  0 siblings, 1 reply; 8+ messages in thread
From: Vanhauwaert Wouter @ 2014-03-06 10:04 UTC (permalink / raw)
  To: Sascha Hauer; +Cc: barebox

> -----Original Message-----
> From: Sascha Hauer [mailto:s.hauer@pengutronix.de]
> Sent: donderdag 6 maart 2014 10:56
> To: Vanhauwaert Wouter
> Cc: barebox@lists.infradead.org
> Subject: Re: at91sam9260-ek ...
> 
> On Wed, Mar 05, 2014 at 10:55:16AM +0100, Vanhauwaert Wouter wrote:
> > Hello,
> >
> > Is the setup for a at91sam9260-ek still functioning?
> > I have troubles with my nand flash. At first it boots and writes BBT-tables.
> > However, next boot, it won't read the BBT, and has errors with the magic on
> the environment variables.
> > Erase /dev/env0 and saveenv do not make a difference.
> > Nandtest does not give me errors...
> >
> > I'm just using the latest barebox 2014.2 and loading it on a
> > at91sam9260-ek through usb (sam-ba). I'm just using the plain
> > at91sam9260ek_defconfig
> 
> Seems there's something broken. I have no better idea other than bisecting it.
> 

Is there a version which is definitely working and tested with at91sam9260-ek?

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: at91sam9260-ek ...
  2014-03-06 10:04   ` at91sam9260-ek Vanhauwaert Wouter
@ 2014-03-06 10:18     ` Sascha Hauer
  2014-03-06 12:04       ` at91sam9260-ek Vanhauwaert Wouter
  0 siblings, 1 reply; 8+ messages in thread
From: Sascha Hauer @ 2014-03-06 10:18 UTC (permalink / raw)
  To: Vanhauwaert Wouter; +Cc: barebox

On Thu, Mar 06, 2014 at 11:04:28AM +0100, Vanhauwaert Wouter wrote:
> > -----Original Message-----
> > From: Sascha Hauer [mailto:s.hauer@pengutronix.de]
> > Sent: donderdag 6 maart 2014 10:56
> > To: Vanhauwaert Wouter
> > Cc: barebox@lists.infradead.org
> > Subject: Re: at91sam9260-ek ...
> > 
> > On Wed, Mar 05, 2014 at 10:55:16AM +0100, Vanhauwaert Wouter wrote:
> > > Hello,
> > >
> > > Is the setup for a at91sam9260-ek still functioning?
> > > I have troubles with my nand flash. At first it boots and writes BBT-tables.
> > > However, next boot, it won't read the BBT, and has errors with the magic on
> > the environment variables.
> > > Erase /dev/env0 and saveenv do not make a difference.
> > > Nandtest does not give me errors...
> > >
> > > I'm just using the latest barebox 2014.2 and loading it on a
> > > at91sam9260-ek through usb (sam-ba). I'm just using the plain
> > > at91sam9260ek_defconfig
> > 
> > Seems there's something broken. I have no better idea other than bisecting it.
> > 
> 
> Is there a version which is definitely working and tested with at91sam9260-ek?

I'd probably start at somewhere near:

ecdb717 at91/boards: switch to software ecc as in linux kernel

But I don't know if that version really works.

(If you don't know already, you can always start barebox second stage
from an already running barebox, normally you shouldn't have to reflash
for each bisecting step. Something like "tftp barebox.bin /dev/ram0; go
/dev/ram0" should work.)

Sascha

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 8+ messages in thread

* RE: at91sam9260-ek ...
  2014-03-06 10:18     ` at91sam9260-ek Sascha Hauer
@ 2014-03-06 12:04       ` Vanhauwaert Wouter
  2014-03-06 12:20         ` at91sam9260-ek Vanhauwaert Wouter
  0 siblings, 1 reply; 8+ messages in thread
From: Vanhauwaert Wouter @ 2014-03-06 12:04 UTC (permalink / raw)
  To: Sascha Hauer; +Cc: barebox


> -----Original Message-----
> From: Sascha Hauer [mailto:s.hauer@pengutronix.de]
> Sent: donderdag 6 maart 2014 11:18
> To: Vanhauwaert Wouter
> Cc: barebox@lists.infradead.org
> Subject: Re: at91sam9260-ek ...
> 
> On Thu, Mar 06, 2014 at 11:04:28AM +0100, Vanhauwaert Wouter wrote:
> > > -----Original Message-----
> > > From: Sascha Hauer [mailto:s.hauer@pengutronix.de]
> > > Sent: donderdag 6 maart 2014 10:56
> > > To: Vanhauwaert Wouter
> > > Cc: barebox@lists.infradead.org
> > > Subject: Re: at91sam9260-ek ...
> > >
> > > On Wed, Mar 05, 2014 at 10:55:16AM +0100, Vanhauwaert Wouter wrote:
> > > > Hello,
> > > >
> > > > Is the setup for a at91sam9260-ek still functioning?
> > > > I have troubles with my nand flash. At first it boots and writes BBT-tables.
> > > > However, next boot, it won't read the BBT, and has errors with the
> > > > magic on
> > > the environment variables.
> > > > Erase /dev/env0 and saveenv do not make a difference.
> > > > Nandtest does not give me errors...
> > > >
> > > > I'm just using the latest barebox 2014.2 and loading it on a
> > > > at91sam9260-ek through usb (sam-ba). I'm just using the plain
> > > > at91sam9260ek_defconfig
> > >
> > > Seems there's something broken. I have no better idea other than bisecting
> it.
> > >
> >
> > Is there a version which is definitely working and tested with at91sam9260-ek?
> 
> I'd probably start at somewhere near:
> 
> ecdb717 at91/boards: switch to software ecc as in linux kernel
> 
> But I don't know if that version really works.
> 
> (If you don't know already, you can always start barebox second stage from an
> already running barebox, normally you shouldn't have to reflash for each
> bisecting step. Something like "tftp barebox.bin /dev/ram0; go /dev/ram0"
> should work.)
> 

I did some tests and seems that it worked ok until version release 2013.08.0, from 2013.09.0 on it gives me these errors...


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 8+ messages in thread

* RE: at91sam9260-ek ...
  2014-03-06 12:04       ` at91sam9260-ek Vanhauwaert Wouter
@ 2014-03-06 12:20         ` Vanhauwaert Wouter
  2014-03-06 14:29           ` at91sam9260-ek Alexander Shiyan
  0 siblings, 1 reply; 8+ messages in thread
From: Vanhauwaert Wouter @ 2014-03-06 12:20 UTC (permalink / raw)
  To: Vanhauwaert Wouter, Sascha Hauer; +Cc: barebox

> -----Original Message-----
> From: barebox [mailto:barebox-bounces@lists.infradead.org] On Behalf Of
> Vanhauwaert Wouter
> Sent: donderdag 6 maart 2014 13:04
> To: Sascha Hauer
> Cc: barebox@lists.infradead.org
> Subject: RE: at91sam9260-ek ...
> 
> 
> > I'd probably start at somewhere near:
> >
> > ecdb717 at91/boards: switch to software ecc as in linux kernel
> >
> > But I don't know if that version really works.
> >
> > (If you don't know already, you can always start barebox second stage from an
> > already running barebox, normally you shouldn't have to reflash for each
> > bisecting step. Something like "tftp barebox.bin /dev/ram0; go /dev/ram0"
> > should work.)
> >
> 
> I did some tests and seems that it worked ok until version release 2013.08.0,
> from 2013.09.0 on it gives me these errors...
> 

Between 2013.09.0 and 2013.08.0 there's much changed in the mtd driver... Also in atmel_nand.c, 2 parameters (int oob_required, int page) are added to the page operations.
Although nothing is done with it. I don't know what's going on further. I'll just stick with 2013.08.0 for now, I think it'll just fit my needs. Maybe somebody who knows what's going on can take a look at it?

Grtz,
Wouter

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: at91sam9260-ek ...
  2014-03-06 12:20         ` at91sam9260-ek Vanhauwaert Wouter
@ 2014-03-06 14:29           ` Alexander Shiyan
  0 siblings, 0 replies; 8+ messages in thread
From: Alexander Shiyan @ 2014-03-06 14:29 UTC (permalink / raw)
  To: Vanhauwaert Wouter; +Cc: barebox

Четверг,  6 марта 2014, 13:20 +01:00 от Vanhauwaert Wouter <W.Vanhauwaert@TELEVIC.com>:
> > -----Original Message-----
> > From: barebox [mailto:barebox-bounces@lists.infradead.org] On Behalf Of
> > Vanhauwaert Wouter
> > Sent: donderdag 6 maart 2014 13:04
> > To: Sascha Hauer
> > Cc: barebox@lists.infradead.org
> > Subject: RE: at91sam9260-ek ...
> > 
> > 
> > > I'd probably start at somewhere near:
> > >
> > > ecdb717 at91/boards: switch to software ecc as in linux kernel
> > >
> > > But I don't know if that version really works.
> > >
> > > (If you don't know already, you can always start barebox second stage from an
> > > already running barebox, normally you shouldn't have to reflash for each
> > > bisecting step. Something like "tftp barebox.bin /dev/ram0; go /dev/ram0"
> > > should work.)
> > >
> > 
> > I did some tests and seems that it worked ok until version release 2013.08.0,
> > from 2013.09.0 on it gives me these errors...
> > 
> 
> Between 2013.09.0 and 2013.08.0 there's much changed in the mtd driver... Also in atmel_nand.c, 2 parameters (int oob_required, int page) are added to the page operations.
> Although nothing is done with it. I don't know what's going on further. I'll just stick with 2013.08.0 for now, I think it'll just fit my needs. Maybe somebody who knows what's going on can take a look at it?

It would be great if you could find the initial point of this bug
by using git-bisect, as Sascha says.
We could help in using this tool if you have trouble.

---
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2014-03-06 14:30 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-03-05  9:55 at91sam9260-ek Vanhauwaert Wouter
2014-03-05 14:56 ` at91sam9260-ek Vanhauwaert Wouter
2014-03-06  9:55 ` at91sam9260-ek Sascha Hauer
2014-03-06 10:04   ` at91sam9260-ek Vanhauwaert Wouter
2014-03-06 10:18     ` at91sam9260-ek Sascha Hauer
2014-03-06 12:04       ` at91sam9260-ek Vanhauwaert Wouter
2014-03-06 12:20         ` at91sam9260-ek Vanhauwaert Wouter
2014-03-06 14:29           ` at91sam9260-ek Alexander Shiyan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox