From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.free-electrons.com ([62.4.15.54]) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1eOpDc-0002pz-6c for linux-mtd@lists.infradead.org; Tue, 12 Dec 2017 18:23:54 +0000 Date: Tue, 12 Dec 2017 19:23:27 +0100 From: Miquel RAYNAL To: Sean =?UTF-8?B?Tnlla2rDpnI=?= Cc: ezequiel.garcia@free-electrons.com, linux-mtd@lists.infradead.org, "Kasper Revsbech (KREV)" , Boris Brezillon Subject: Re: [BUG] pxa3xx: wait time out when scanning for bb Message-ID: <20171212192327.57b1fa80@xps13> In-Reply-To: <48EEEC1C-954B-42E5-92BE-A00AD97A5789@prevas.dk> References: <7df7abb5-e666-c999-e449-75762b551ea5@prevas.dk> <20171208102148.0a2c0fbe@xps13> <20171211105359.7eb1aeb3@xps13> <20171211150200.51c7f3b4@xps13> <20171211150929.722a361a@xps13> <20171212095119.475de032@xps13> <727489cf-d1f6-8777-c6f4-981127657c9d@prevas.dk> <20171212111227.4946cc15@xps13> <20171212120806.7c31463f@xps13> <20171212123523.48185f21@xps13> <75bd6b87-12ed-4003-262a-b1bd03a62cbd@prevas.dk> <20171212134706.49f3c57e@xps13> <2f16ce90-6e00-c95f-7a81-5603d9acf574@prevas.dk> <20171212143512.3b62d3f5@xps13> <48EEEC1C-954B-42E5-92BE-A00AD97A5789@prevas.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Tue, 12 Dec 2017 19:10:10 +0100 Sean Nyekj=C3=A6r wrote: > Hi Miquel > > =20 > >> Without kernel bbt (nand scrubbed in uboot just before boot): =20 > > > >[...] > > =20 > >> Block size 131072, page size 2048, OOB size 64 > >> Dumping data starting at 0x0fec0000 and ending at 0x0fec0800... =20 > > > >[...] > > =20 > >> =C2=A0 OOB Data: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff > >> =C2=A0 OOB Data: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff > >> =C2=A0 OOB Data: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff > >> =C2=A0 OOB Data: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff =20 > > > >As you can see, your U-Boot version does not recreate the BBT > >automatically as I told you it should. Please try rebooting the board > >after scrubbing and then check U-Boot creates the BBT from U-Boot > >command line. =20 >=20 > My uboot is recreating the bbt, I have been scrubbing it just before > running the bootcmd that's why the OOB is empty :-) I thought that > was what you needed but I guess I was wrong. >=20 > > > >I insist on the fact that this is something I could have spotted > >earlier > >if you had blindlessly copy/pasted the *entire* trace, I don't > >mind if it is big, it can be really interesting for others to get the > >full trace. > > > >This time I only need the trace without the "on-flash-bbt" > >property. =20 >=20 > I see what you want now, you want me to dump what uboot is writing in > the bbt and what the new driver is writing :-) Correct? Correct :) You already gave me what the driver writes (without ECC, but it does not matter, we know the ECC engine will be used in regular conditions), what I seek now is effectively what U-Boot is writing to understand where the mismatch is. > I'm sending some tracing the first thing tomorrow. Nice! Thanks, Miqu=C3=A8l