Hi Michal

Le mardi 16 décembre 2014 19:01:58 UTC+1, Michal Suchanek a écrit :
>
> Hello, 
>
> I tried to rebase the v7 patchset on top of 3.18 and add the DT 
> bindings on cubieboard: 
>
> https://github.com/hramrach/linux-sunxi/commit/a946d593ddcf443b0f035f6d39fe0c558189dacc
>  
>
> The nand driver fails equally on both cubieboard versions: 
>
> cubieboard: 
> [    0.643554] calling  nand_base_init+0x0/0x20 @ 1 
> [    0.643565] initcall nand_base_init+0x0/0x20 returned 0 after 3 usecs 
> [    0.643578] calling  sunxi_nfc_driver_init+0x0/0x10 @ 1 
> [    0.665751] nand: Could not find valid JEDEC parameter page; aborting 
> [    0.670907] nand: device found, Manufacturer ID: 0xec, Chip ID: 0xd7 
> [    0.675949] nand: Samsung NAND 4GiB 3,3V 8-bit 
> [    0.679098] nand: 4096MiB, MLC, page size: 8192, OOB size: 640 
> [    0.683748] sunxi_nand 1c03000.nand: ECC init failed: -22 
> [    0.687839] sunxi_nand 1c03000.nand: failed to init nand chips 
> [    0.692440] sunxi_nand: probe of 1c03000.nand failed with error -22 
> [    0.697500] initcall sunxi_nfc_driver_init+0x0/0x10 returned 0 
> after 52642 usecs 
> cubieboard2: 
> [    0.666766] calling  nand_base_init+0x0/0x20 @ 1 
> [    0.666777] initcall nand_base_init+0x0/0x20 returned 0 after 3 usecs 
> [    0.666790] calling  sunxi_nfc_driver_init+0x0/0x10 @ 1 
> [    0.683003] nand: Could not find valid JEDEC parameter page; aborting 
> [    0.688159] nand: device found, Manufacturer ID: 0xec, Chip ID: 0xd7 
> [    0.693201] nand: Samsung NAND 4GiB 3,3V 8-bit 
> [    0.696349] nand: 4096MiB, MLC, page size: 8192, OOB size: 640 
> [    0.700956] sunxi_nand 1c03000.nand: ECC init failed: -22 
> [    0.705060] sunxi_nand 1c03000.nand: failed to init nand chips 
> [    0.709658] sunxi_nand: probe of 1c03000.nand failed with error -22 
> [    0.714768] initcall sunxi_nfc_driver_init+0x0/0x10 returned 0 
> after 46833 usecs 
>
> Is this expected or does somebody have the driver working on some device? 
>

As Henrik already answered, it seems that your NAND chip is not properly 
defined in the nand_ids table [1].
Read your NAND datasheet and add a new entry (take a look at this one [2] 
as an example).
You should also fill the correct timing mode, though mode 0 should work 
correctly on all recent NANDs.

Best Regards,

Boris

[1]http://lxr.free-electrons.com/source/drivers/mtd/nand/nand_ids.c#L28
[2]http://lxr.free-electrons.com/source/drivers/mtd/nand/nand_ids.c#L49

-- 
You received this message because you are subscribed to the Google Groups 
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to linux-sunxi+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to