hello
I am using am3358 to design the product.
I have write a fpga driver and test it in the SD card.but when i flashing all the program in the nand(MLO u-boot.img uImga ubi.img fpga.ko).
when the linux is work
#cd /mxz
#ls
fpga.ko
#insmod fpga.ko
it shows many error like this
am335x-evm login: root
root@am335x-evm:~# cd /mxz/
root@am335x-evm:/mxz# ls
fpga.ko fpga_test
root@am335x-evm:/mxz# insmod fpga.ko
[ 31.377385] Disabling lock debugging due to kernel taint
[ 31.383678] GPMC revision 6.0
[ 31.386787] Got CS1, address = 1000000
[ 31.390819] fpga_base d1000000
root@am335x-evm:/mxz# [ 33.960717] Unhandled fault: external abort on non-linefetch (0x1008) at 0xd083a000
[ 33.968724] Internal error: : 1008 [#1]
[ 33.972718] Modules linked in: fpga(O)
[ 33.976641] CPU: 0 Tainted: G O (3.2.0 #4)
[ 33.982193] PC is at nand_read_byte+0x14/0x20
[ 33.986734] LR is at nand_check_wp+0x48/0x58
[ 33.991184] pc : [<c025d9e8>] lr : [<c025dc64>] psr: 60000013
[ 33.991192] sp : cfaf1cf8 ip : cfaf1d08 fp : cfaf1d04
[ 34.003152] r10: 000007ff r9 : 00000000 r8 : 03b2d000
[ 34.008596] r7 : cf9a1a28 r6 : 00000800 r5 : cf9a1810 r4 : cf9a1a28
[ 34.015397] r3 : d083a000 r2 : 00000081 r1 : ffffffff r0 : cf9a1810
[ 34.022201] Flags: nZCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment kernel
[ 34.029818] Control: 10c5387d Table: 8f22c019 DAC: 00000015
[ 34.035806] Process ubifs_bgt0_0 (pid: 707, stack limit = 0xcfaf02f0)
[ 34.042518] Stack: (0xcfaf1cf8 to 0xcfaf2000)
[ 34.047058] 1ce0: cfaf1d1c cfaf1d08
[ 34.055585] 1d00: c025dc64 c025d9e0 cfaf1d98 cf9a1810 cfaf1d8c cfaf1d20 c0261538 c025dc28
[ 34.064111] 1d20: 00000000 00000001 00000004 60000013 00000000 00000000 00000000 00000000
[ 34.072638] 1d40: cfae8800 000003b6 cfaf1d74 00000040 cfaf1db0 cfae8800 03b2d000 00000000
[ 34.081164] 1d60: 00000000 cf9a1810 00000800 03b2d000 00000000 00000000 cfae8800 000003b6
[ 34.089691] 1d80: cfaf1dd4 cfaf1d90 c02619a8 c026146c cfaf1d98 cf19cc30 00000000 00000800
[ 34.098218] 1da0: 00000000 cfaf1db0 c0038840 c003795c cfae8800 00000000 00780000 00000000
[ 34.106745] 1dc0: 033ad800 00000000 cfaf1e04 cfaf1dd8 c0255bb0 c0261928 00000800 cfaf1e1c
[ 34.115272] 1de0: cfae8800 cf01ec80 0000d000 0000019d cfaf1e1c 00000800 cfaf1e3c cfaf1e08
[ 34.123799] 1e00: c0275164 c0255b50 00000800 cfaf1e1c cfae8800 cfaf1e20 c0384804 c03850dc
[ 34.132326] 1e20: cf9a1000 0000019d 0000c000 00000800 cfaf1edc cfaf1e40 c0273488 c0275118
[ 34.140852] 1e40: 00000800 00000001 00000000 a0000093 00000001 60000093 4d045b50 00000002
[ 34.149379] 1e60: 00001dc9 00000000 cfaf1e94 00009df0 cf0b9140 cf0b9170 00000001 cf0b9298
[ 34.157906] 1e80: c0527978 c0519df0 cfaf1ec4 cfaf1e98 c0038e84 c0036db8 c0038e4c c0519df0
[ 34.166432] 1ea0: fffffffe c050066c 000015a6 00000000 56745617 000003b6 cfae8800 00000800
[ 34.174959] 1ec0: 00000002 00000080 00000000 cfaa8b58 cfaf1f14 cfaf1ee0 c02726d4 c0273410
[ 34.183486] 1ee0: 0000c000 00000800 00000002 c0036db8 c0038e4c cfaac000 cfaac000 000003b6
[ 34.192012] 1f00: 0000c000 00000800 cfaf1f4c cfaf1f18 c0174038 c02725e0 00000800 00000002
[ 34.200539] 1f20: cfaf1f4c cfaf1f30 c0174594 cfaa8b30 cfaac000 00000800 000007c0 00000002
[ 34.209066] 1f40: cfaf1f74 cfaf1f50 c0174860 c0173fec 00000800 00000002 cfaac000 00000001
[ 34.217593] 1f60: cfaa8b30 00000130 cfaf1f9c cfaf1f78 c0174a54 c01747dc cfaac000 cfaf0000
[ 34.226120] 1f80: 00000001 cfaac18c 00000000 00000000 cfaf1fbc cfaf1fa0 c017cff4 c0174990
[ 34.234647] 1fa0: cf81dd58 cfaac000 c017cf60 00000013 cfaf1ff4 cfaf1fc0 c0055bf4 c017cf6c
[ 34.243173] 1fc0: cf81dd58 00000000 cfaac000 00000000 cfaf1fd0 cfaf1fd0 00000000 cf81dd58
[ 34.251700] 1fe0: c0055b64 c0040350 00000000 cfaf1ff8 c0040350 c0055b70 baf6ff7f fbffff7f
[ 34.260219] Backtrace:
[ 34.262778] [<c025d9d4>] (nand_read_byte+0x0/0x20) from [<c025dc64>] (nand_check_wp+0x48/0x58)
[ 34.271765] [<c025dc1c>] (nand_check_wp+0x0/0x58) from [<c0261538>] (nand_do_write_ops+0xd8/0x3bc)
[ 34.281101] r5:cf9a1810 r4:cfaf1d98
[ 34.284839] [<c0261460>] (nand_do_write_ops+0x0/0x3bc) from [<c02619a8>] (nand_write+0x8c/0xa8)
[ 34.293922] [<c026191c>] (nand_write+0x0/0xa8) from [<c0255bb0>] (part_write+0x6c/0x8c)
[ 34.302262] r7:00000000 r6:033ad800 r5:00000000 r4:00780000
[ 34.308188] [<c0255b44>] (part_write+0x0/0x8c) from [<c0275164>] (ubi_io_write+0x58/0xb4)
[ 34.316708] r7:00000800 r6:cfaf1e1c r5:0000019d r4:0000d000
[ 34.322629] [<c027510c>] (ubi_io_write+0x0/0xb4) from [<c0273488>] (ubi_eba_write_leb+0x84/0x828)
[ 34.331874] r7:00000800 r6:0000c000 r5:0000019d r4:cf9a1000
[ 34.337793] [<c0273404>] (ubi_eba_write_leb+0x0/0x828) from [<c02726d4>] (ubi_leb_write+0x100/0x104)
[ 34.347331] [<c02725d4>] (ubi_leb_write+0x0/0x104) from [<c0174038>] (ubifs_leb_write+0x58/0xa4)
[ 34.356485] r8:00000800 r7:0000c000 r6:000003b6 r5:cfaac000 r4:cfaac000
[ 34.363499] [<c0173fe0>] (ubifs_leb_write+0x0/0xa4) from [<c0174860>] (ubifs_wbuf_sync_nolock+0x90/0x134)
[ 34.373468] r8:00000002 r7:000007c0 r6:00000800 r5:cfaac000 r4:cfaa8b30
[ 34.380481] [<c01747d0>] (ubifs_wbuf_sync_nolock+0x0/0x134) from [<c0174a54>] (ubifs_bg_wbufs_sync+0xd0/0x170)
[ 34.390903] r7:00000130 r6:cfaa8b30 r5:00000001 r4:cfaac000
[ 34.396826] [<c0174984>] (ubifs_bg_wbufs_sync+0x0/0x170) from [<c017cff4>] (ubifs_bg_thread+0x94/0x120)
[ 34.406634] [<c017cf60>] (ubifs_bg_thread+0x0/0x120) from [<c0055bf4>] (kthread+0x90/0x94)
[ 34.415245] r7:00000013 r6:c017cf60 r5:cfaac000 r4:cf81dd58
[ 34.421176] [<c0055b64>] (kthread+0x0/0x94) from [<c0040350>] (do_exit+0x0/0x67c)
[ 34.428972] r6:c0040350 r5:c0055b64 r4:cf81dd58
[ 34.433798] Code: e92dd800 e24cb004 e59030cc e5933000 (e5d30000)
[ 34.440197] ---[ end trace 83904171bbdfe976 ]---
please help me to work out this question, thanks