All of lore.kernel.org
 help / color / mirror / Atom feed
* linux-fslc 4.9.x and gpmi-nand driver support
@ 2017-04-06  8:23 Oliver Graute
  2017-04-07 13:37 ` Jonathan Poulin
  0 siblings, 1 reply; 4+ messages in thread
From: Oliver Graute @ 2017-04-06  8:23 UTC (permalink / raw)
  To: meta-freescale

Hello list,

I try to use the linux-fslc 4.9.17 kernel but the gpmi-nand drivers
seems not to work anymore for my nand flash.  Before I used successfull
the linux-fslc 4.4.x with ported gpmi-nand driver from the 4.1-2.0.x-imx
branch. Something in the mtd infrastructure changed so I can't use the
old gpmi-nand driver anymore.

Some clue how I get the current gpmi-nand driver working?
I get the following errors on booting:

[    6.140909] ip_tables: (C) 2000-2006 Netfilter Core Team
[    6.146920] arp_tables: arp_tables: (C) 2002 David S. Miller
[    6.157054] NET: Registered protocol family 10
[    6.170435] ip6_tables: (C) 2000-2006 Netfilter Core Team
[    6.177583] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    6.189161] NET: Registered protocol family 17
[    6.194585] Key type dns_resolver registered
[    6.202421] cpu cpu0: dev_pm_opp_get_opp_count: OPP table not found (-19)
[    6.216139] Registering SWP/SWPB emulation handler
[    6.238783] Key type encrypted registered
[    6.327633] ubi0: attaching mtd3
[    6.333513] ubi0 warning: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 0:0, read only 64 bytes, retry
[    6.345472] ubi0 warning: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 0:0, read only 64 bytes, retry
[    6.357357] ubi0 warning: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 0:0, read only 64 bytes, retry
[    6.369210] ubi0 error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 0:0, read 64 bytes
[    6.381157] ubi0 warning: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 1:0, read only 64 bytes, retry
[    6.393048] ubi0 warning: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 1:0, read only 64 bytes, retry
[    6.405062] ubi0 warning: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 1:0, read only 64 bytes, retry
[    6.416944] ubi0 error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 1:0, read 64 bytes
[    6.428745] ubi0 warning: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 2:0, read only 64 bytes, retry
[    6.440631] ubi0 warning: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 2:0, read only 64 bytes, retry
[    6.452501] ubi0 warning: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 2:0, read only 64 bytes, retry
[    6.464361] ubi0 error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 2:0, read 64 bytes

Best regards,

Oliver


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

* Re: linux-fslc 4.9.x and gpmi-nand driver support
  2017-04-06  8:23 linux-fslc 4.9.x and gpmi-nand driver support Oliver Graute
@ 2017-04-07 13:37 ` Jonathan Poulin
  2017-04-10 12:00   ` Oliver Graute
  0 siblings, 1 reply; 4+ messages in thread
From: Jonathan Poulin @ 2017-04-07 13:37 UTC (permalink / raw)
  To: meta-freescale

[-- Attachment #1: Type: text/plain, Size: 3283 bytes --]

Hello Olivier,

I had a similar problem. Look at
https://lists.yoctoproject.org/pipermail/meta-freescale/2017-April/020344.html

This was cause by a mismatch between the ECC strength used by the write of
the partition and the one used by the reader. Try the solution that I link
in the answer of my post.

good luck
Jonathan

2017-04-06 4:23 GMT-04:00 Oliver Graute <oliver.graute@gmail.com>:

> Hello list,
>
> I try to use the linux-fslc 4.9.17 kernel but the gpmi-nand drivers
> seems not to work anymore for my nand flash.  Before I used successfull
> the linux-fslc 4.4.x with ported gpmi-nand driver from the 4.1-2.0.x-imx
> branch. Something in the mtd infrastructure changed so I can't use the
> old gpmi-nand driver anymore.
>
> Some clue how I get the current gpmi-nand driver working?
> I get the following errors on booting:
>
> [    6.140909] ip_tables: (C) 2000-2006 Netfilter Core Team
> [    6.146920] arp_tables: arp_tables: (C) 2002 David S. Miller
> [    6.157054] NET: Registered protocol family 10
> [    6.170435] ip6_tables: (C) 2000-2006 Netfilter Core Team
> [    6.177583] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
> [    6.189161] NET: Registered protocol family 17
> [    6.194585] Key type dns_resolver registered
> [    6.202421] cpu cpu0: dev_pm_opp_get_opp_count: OPP table not found
> (-19)
> [    6.216139] Registering SWP/SWPB emulation handler
> [    6.238783] Key type encrypted registered
> [    6.327633] ubi0: attaching mtd3
> [    6.333513] ubi0 warning: ubi_io_read: error -74 (ECC error) while
> reading 64 bytes from PEB 0:0, read only 64 bytes, retry
> [    6.345472] ubi0 warning: ubi_io_read: error -74 (ECC error) while
> reading 64 bytes from PEB 0:0, read only 64 bytes, retry
> [    6.357357] ubi0 warning: ubi_io_read: error -74 (ECC error) while
> reading 64 bytes from PEB 0:0, read only 64 bytes, retry
> [    6.369210] ubi0 error: ubi_io_read: error -74 (ECC error) while
> reading 64 bytes from PEB 0:0, read 64 bytes
> [    6.381157] ubi0 warning: ubi_io_read: error -74 (ECC error) while
> reading 64 bytes from PEB 1:0, read only 64 bytes, retry
> [    6.393048] ubi0 warning: ubi_io_read: error -74 (ECC error) while
> reading 64 bytes from PEB 1:0, read only 64 bytes, retry
> [    6.405062] ubi0 warning: ubi_io_read: error -74 (ECC error) while
> reading 64 bytes from PEB 1:0, read only 64 bytes, retry
> [    6.416944] ubi0 error: ubi_io_read: error -74 (ECC error) while
> reading 64 bytes from PEB 1:0, read 64 bytes
> [    6.428745] ubi0 warning: ubi_io_read: error -74 (ECC error) while
> reading 64 bytes from PEB 2:0, read only 64 bytes, retry
> [    6.440631] ubi0 warning: ubi_io_read: error -74 (ECC error) while
> reading 64 bytes from PEB 2:0, read only 64 bytes, retry
> [    6.452501] ubi0 warning: ubi_io_read: error -74 (ECC error) while
> reading 64 bytes from PEB 2:0, read only 64 bytes, retry
> [    6.464361] ubi0 error: ubi_io_read: error -74 (ECC error) while
> reading 64 bytes from PEB 2:0, read 64 bytes
>
> Best regards,
>
> Oliver
> --
> _______________________________________________
> meta-freescale mailing list
> meta-freescale@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-freescale
>

[-- Attachment #2: Type: text/html, Size: 4056 bytes --]

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

* Re: linux-fslc 4.9.x and gpmi-nand driver support
  2017-04-07 13:37 ` Jonathan Poulin
@ 2017-04-10 12:00   ` Oliver Graute
  2017-04-10 16:11     ` Jonathan Poulin
  0 siblings, 1 reply; 4+ messages in thread
From: Oliver Graute @ 2017-04-10 12:00 UTC (permalink / raw)
  To: meta-freescale

On 07/04/17, Jonathan Poulin wrote:
> Hello Olivier,
> 
> I had a similar problem. Look at
> https://lists.yoctoproject.org/pipermail/meta-freescale/2017-April/020344.html
> 
> This was cause by a mismatch between the ECC strength used by the write of
> the partition and the one used by the reader. Try the solution that I link
> in the answer of my post.

thx for this hint. Unfortunately the patch didn't work for me. What does
your gpmi device node look like?

I write my NAND with mfgtool which runs 4.1.15_1.0.0 kernel during the
flash operation itself.

But on first boot it starts 4.9.18-fslc and on reading I got these ECC
errors. So it's quite possible that the ECC strength is different
between both kernel versions.

Furthermore the gpmi-nand driver has major changes between both kernel
versions.

Best Regards,

Oliver


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

* Re: linux-fslc 4.9.x and gpmi-nand driver support
  2017-04-10 12:00   ` Oliver Graute
@ 2017-04-10 16:11     ` Jonathan Poulin
  0 siblings, 0 replies; 4+ messages in thread
From: Jonathan Poulin @ 2017-04-10 16:11 UTC (permalink / raw)
  To: meta-freescale

[-- Attachment #1: Type: text/plain, Size: 1780 bytes --]

Hello,

This is what I had in my gpmi node. The rest of the node is in the file
imx6q.dtsi.

/* General purpose media interface is used for NAND control */
&gpmi {
    pinctrl-names = "default";
    pinctrl-0 = <&pinctrl_gpmi_nand_axion>;
    fsl,legacy-bch-geometry;
    status = "okay";
};

I don't know if this is manage correctly in the 4.9.18-fslc. I'm sorry. In
my side I had problem between the kernel and the u-boot. My Mfgtool kernel
and my target kernel are essentially  the same (linux-imx_4.1.15 and
linux-fslc-imx_4.1-1.0) and I apply the patch to both.


good luck
Jonathan


2017-04-10 8:00 GMT-04:00 Oliver Graute <oliver.graute@gmail.com>:

> On 07/04/17, Jonathan Poulin wrote:
> > Hello Olivier,
> >
> > I had a similar problem. Look at
> > https://lists.yoctoproject.org/pipermail/meta-freescale/
> 2017-April/020344.html
> >
> > This was cause by a mismatch between the ECC strength used by the write
> of
> > the partition and the one used by the reader. Try the solution that I
> link
> > in the answer of my post.
>
> thx for this hint. Unfortunately the patch didn't work for me. What does
> your gpmi device node look like?
>
> I write my NAND with mfgtool which runs 4.1.15_1.0.0 kernel during the
> flash operation itself.
>
> But on first boot it starts 4.9.18-fslc and on reading I got these ECC
> errors. So it's quite possible that the ECC strength is different
> between both kernel versions.
>
> Furthermore the gpmi-nand driver has major changes between both kernel
> versions.
>
> Best Regards,
>
> Oliver
> --
> _______________________________________________
> meta-freescale mailing list
> meta-freescale@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-freescale
>

[-- Attachment #2: Type: text/html, Size: 2779 bytes --]

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

end of thread, other threads:[~2017-04-10 16:11 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-06  8:23 linux-fslc 4.9.x and gpmi-nand driver support Oliver Graute
2017-04-07 13:37 ` Jonathan Poulin
2017-04-10 12:00   ` Oliver Graute
2017-04-10 16:11     ` Jonathan Poulin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.