Hello Miroslav,
I left this problem for a while to work on serial ports. I'm now working on it again. I enabled the CONFIG_MTD_NAND_OMAP_BCH option using "make menuconfig" following the path shown below.
> Device Drivers
> Memory Technology Device (MTD) support
> NAND Device Support >
<*>Enable support for hardware BCH error correction
BCH error correction capability (8 bits / 512 bytes (recommeneded))
QUESTIONS:
1. Now I get a kernel panic (shown below). Can you tell me what might be causing this?
2. Does this option need to be enabled to use the NAND?
3. Could this be the cause of my second error message "omap2-nand: probe of omap2-nand.0 failed with error -22" ?
Thank you for your time,
Everett
----------------------------------------
Starting kernel ...
[ 0.724848] Unable to handle kernel NULL pointer dereference at virtual address 00000014
[ 0.733414] pgd = c0004000
[ 0.736274] [00000014] *pgd=00000000
[ 0.740041] Internal error: Oops: 5 [#1] SMP ARM
[ 0.744890] Modules linked in:
[ 0.748107] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 3.12.9-00110-g0ecc8ab-dirty #9
[ 0.756244] task: de87b640 ti: de87c000 task.ti: de87c000
[ 0.761932] PC is at dev_get_drvdata+0x8/0x18
[ 0.766518] LR is at elm_config+0x10/0x50
[ 0.770730] pc : [<c02e7ad0>] lr : [<c0321068>] psr: 20000113
[ 0.770730] sp : de87de20 ip : dea383cc fp : 00000000
[ 0.782791] r10: c078c4f8 r9 : c07ca86c r8 : c08055d8
[ 0.788278] r7 : c08055c8 r6 : 00000010 r5 : df3234ac r4 : 00000001
[ 0.795134] r3 : 00001104 r2 : 00000000 r1 : 00000001 r0 : 00000010
[ 0.801993] Flags: nzCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment kernel
[ 0.809672] Control: 10c5387d Table: 80004019 DAC: 00000015
[ 0.815707] Process swapper/0 (pid: 1, stack limit = 0xde87c248)
[ 0.822016] Stack: (0xde87de20 to 0xde87e000)
[ 0.826596] de20: dea16000 df3234ac de8642d0 c0329058 00000000 00000000 deaedbc8 de916308
[ 0.835191] de40: 00000001 c0141790 de865ab8 c005546c 00000000 00000003 de916308 00000000
[ 0.843786] de60: 00000000 c08055d8 c08055e0 00000004 c08055d8 c080560c 00000000 c0824540
[ 0.852382] de80: 000000eb c02e8f8c c02e8f78 c02e8120 00000000 c08055d8 c080560c c0824540
[ 0.860977] dea0: 00000000 c02e82ac c0824540 de87deb8 c02e824c c02e6a34 de865a78 de90f500
[ 0.869573] dec0: c0824540 c0824540 c081e3b0 deae8840 00000000 c02e787c c06b6825 de86fc48
[ 0.878168] dee0: c0824540 c07bcda4 00000000 c083c680 000000eb c02e86bc 00000000 c07b152c
[ 0.886763] df00: c07bcda4 c00088c4 c0cae82a c0756578 00000069 de87df28 c004ee00 c025718c
[ 0.895357] df20: 80000113 ffffffff 000000eb c078c4f8 c06f756e c004f0c4 00000000 00000000
[ 0.903950] df40: c0755ca8 000000eb 00000006 00000006 00010000 00000006 c07bcda0 00000006
[ 0.912545] df60: c07bcda4 c07bcd84 c083c680 000000eb c07ca86c c078cba0 00000006 00000006
[ 0.921139] df80: c078c4f8 00000000 00000000 c05097fc 00000000 00000000 00000000 00000000
[ 0.929734] dfa0: 00000000 c0509804 00000000 c000dc38 00000000 00000000 00000000 00000000
[ 0.938327] dfc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 0.946921] dfe0: 00000000 00000000 00000000 00000000 00000013 00000000 49e6616c 4410c060
[ 0.955531] [<c02e7ad0>] (dev_get_drvdata+0x8/0x18) from [<c0321068>] (elm_config+0x10/0x50)
[ 0.964407] [<c0321068>] (elm_config+0x10/0x50) from [<c0329058>] (omap_nand_probe+0x49c/0x890)
[ 0.973556] [<c0329058>] (omap_nand_probe+0x49c/0x890) from [<c02e8f8c>] (platform_drv_probe+0x14/0x18)
[ 0.983435] [<c02e8f8c>] (platform_drv_probe+0x14/0x18) from [<c02e8120>] (driver_probe_device+0xbc/0x1e8)
[ 0.993587] [<c02e8120>] (driver_probe_device+0xbc/0x1e8) from [<c02e82ac>] (__driver_attach+0x60/0x84)
[ 1.003465] [<c02e82ac>] (__driver_attach+0x60/0x84) from [<c02e6a34>] (bus_for_each_dev+0x50/0x84)
[ 1.012974] [<c02e6a34>] (bus_for_each_dev+0x50/0x84) from [<c02e787c>] (bus_add_driver+0xa8/0x230)
[ 1.022484] [<c02e787c>] (bus_add_driver+0xa8/0x230) from [<c02e86bc>] (driver_register+0x9c/0xe0)
[ 1.031903] [<c02e86bc>] (driver_register+0x9c/0xe0) from [<c00088c4>] (do_one_initcall+0x90/0x134)
[ 1.041421] [<c00088c4>] (do_one_initcall+0x90/0x134) from [<c078cba0>] (kernel_init_freeable+0xf8/0x1c4)
[ 1.051493] [<c078cba0>] (kernel_init_freeable+0xf8/0x1c4) from [<c0509804>] (kernel_init+0x8/0xe4)
[ 1.061011] [<c0509804>] (kernel_init+0x8/0xe4) from [<c000dc38>] (ret_from_fork+0x14/0x3c)
[ 1.069789] Code: c081e2e8 c081e2d8 e3500000 012fff1e (e5900004)
[ 1.076286] ---[ end trace 5de6ae37e9a963c0 ]---
[ 1.081230] Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b
[ 1.081230]
----------------------------------------