FW: Handling boot on NAND Bad Blocks

Kjell Ove Røte kjellove.rote at zenitel.com
Fri Nov 24 00:49:22 PST 2017


Hi Robert

In the original case the board just reboots when the Barebox is to be loaded from the bootstream image. 
In log below you see that the power_prep and boot_prep is run but the Barebox is not started at all. 
So, in this case there is no Barebox issue, but I was looking for if there are some mechanism for handling boot environment, kernel load etc with Bad block management. 
For example something like writing and loading a kernel image, using skip block method, from a partition with bad blocks and image cannot be stored over linear addresses.

Booting an image where Barebox is stored in a NAND Bad Block:

PowerPrep start initialize power...

Configured for 5v only power source. Battery powered operation disabled.

Turbine PowerPrep POWER RESET, EMC hardness
Disable the chip shutting down by a fast falling edge of PSWITCH
Nov 24 201608:57:28
FRAC 0x92925552
Wait for ddr ready 1power 0x00820616
Frac 0x92925552
start change cpu freq
hbus 0x00000003
cpu 0x00010001
start test memory accress
ddr2 0x40000000
finish simple test
0x8050100b
0x8050800f

 

KJELL OVE RØTE
SENIOR SOFTWARE ENGINEER
ZENITEL NORWAY AS

Tel: +47 400 02 573
kjellove.rote at zenitel.com

Sandakerveien 24C, 0473 Oslo, Norway
P.O.Box 1068 Bekkajordet, NO-3194 Horten, Norway
Switchboard: +47 4000 2500
www.zenitel.com

-----Original Message-----
From: Robert Schwebel [mailto:r.schwebel at pengutronix.de] 
Sent: torsdag 23. november 2017 18.12
To: Kjell Ove Røte <kjellove.rote at zenitel.com>
Cc: barebox at lists.infradead.org
Subject: Re: FW: Handling boot on NAND Bad Blocks

Hi Kjell,

On Thu, Nov 23, 2017 at 01:45:22PM +0000, Kjell Ove Røte wrote:
> We have a product on the Freescale imx28 booting from a NAND Flash.
> Lately we have seen high numbers of boards failing, and find we have 
> received batches with marked bad blocks in lower boot addresses of 
> Flash.

Is it possible to have a look at the fails? Log output, maybe dumps...

rsc
-- 
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 |

DISCLAIMER:
This e-mail may contain confidential and privileged material for the sole use of the intended recipient. Any review, use, distribution or disclosure by others is strictly prohibited. If you are not the intended recipient (or authorized to receive for the recipient), please contact the sender by reply e-mail and delete all copies of this message.


More information about the barebox mailing list