AnsweredAssumed Answered

ad9361 device driver trouble

Question asked by qianshuyuan on Sep 22, 2015
Latest reply on Sep 29, 2015 by qianshuyuan

first I config fir

then I enable fir

the trouble are as follows

 

 

<ces/iio:device0# cat /root/share/filter.txt > filter_fir_config            

root@zynq:/sys/bus/iio/devices/iio:device0# cat filter_fir_config

FIR Rx: 128,2 Tx: 0,0

root@zynq:/sys/bus/iio/devices/iio:device0# cat in_voltage_filter_fir_en

0

root@zynq:/sys/bus/iio/devices/iio:device0# echo 1 > in_voltage_filter_fir_en

Unable to handle kernel paging request at virtual address 00004000

pgd = dca80000

[00004000] *pgd=1cb40831, *pte=00000000, *ppte=00000000

Internal error: Oops - BUG: 17 [#1] PREEMPT SMP ARM

Modules linked in:

CPU: 0 PID: 878 Comm: sh Not tainted 4.0.0-xilinx #4

Hardware name: Xilinx Zynq Platform

task: ddff9580 ti: dcbc2000 task.ti: dcbc2000

PC is at ad9361_dig_tune+0x4c/0x930

LR is at 0xdcadcac0

pc : [<c03a9044>]    lr : [<dcadcac0>]    psr: a00f0013

sp : dcbc3da8  ip : 00000000  fp : 00000000

r10: dcbc3ec4  r9 : 00000010  r8 : 00000000

r7 : ddc7e010  r6 : 00004000  r5 : dcadc800  r4 : dca9a2c0

r3 : dcbc3e2c  r2 : 03a98000  r1 : 02625a00  r0 : 017d7840

Flags: NzCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment user

Control: 18c5387d  Table: 1ca8004a  DAC: 00000015

Process sh (pid: 878, stack limit = 0xdcbc2210)

Stack: (0xdcbc3da8 to 0xdcbc4000)

3da0:                   00000000 00000000 00000000 00000000 00000000 00000000

3dc0: 00000000 00000000 dcadcac0 00000000 00000000 00000000 dcbc3d94 dcbc3d94

3de0: dca34600 00000000 c02bd6a4 00000000 00000003 00000003 00000000 dcbc3dfc

3e00: dcbc3dfc 00000000 00000000 dca34600 00800000 000000dc 00000000 dcbc3eac

3e20: dcbc3ec4 c039ead0 00000000 017d7840 02625a00 03a98000 00000002 dca34600

3e40: 00000000 dca9a2c0 00001194 00000001 dca9a2d4 00000000 dcbc3eac dcbc3ec4

3e60: 00000000 c03a3ca8 00000000 dcbc3e98 dca9a2c0 dca34600 00000000 dca9a1b0

3e80: dcbc3eb0 dcbc2000 00000002 c03a3f4c dcbc3eb0 dcbc3ef0 3a980000 1d4c0000

3ea0: 0ea60000 07530000 03a98000 01d4c000 3a980000 0ea60000 07530000 03a98000

3ec0: 01d4c000 01d4c000 dca9a010 00000000 00001444 dca9a1b0 dca9a2c0 c03a430c

3ee0: be995a7c c00c3784 00000041 0000081f ffffffff 019b4198 00000002 de84d500

3f00: dcb3da88 dcb3db28 dcbc3f88 dcbc2000 de84d58c c026ab80 00000002 c0105c8c

3f20: c0105c4c de84d580 de84d500 dcb3da88 00000002 c01050d4 00000000 00000000

3f40: 00000002 dddf2400 00000002 000de408 dcbc3f88 c000de24 00000000 c00b750c

3f60: dddf2400 000de408 00000002 dddf2400 dddf2400 00000002 000de408 c000de24

3f80: 00000000 c00b77ac 00000000 00000000 00000002 00000002 000de408 b6e85a88

3fa0: 00000004 c000dca0 00000002 000de408 00000001 000de408 00000002 00000000

3fc0: 00000002 000de408 b6e85a88 00000004 00000002 00000002 000de408 00000000

3fe0: 00000000 be995994 b6dbc7e4 b6e0f6ec 60070010 00000001 00000000 00000000

[<c03a9044>] (ad9361_dig_tune) from [<c03a3ca8>] (ad9361_set_trx_clock_chain+0x1a0/0x204)

[<c03a3ca8>] (ad9361_set_trx_clock_chain) from [<c03a3f4c>] (ad9361_validate_enable_fir+0x240/0x2d0)

[<c03a3f4c>] (ad9361_validate_enable_fir) from [<c03a430c>] (ad9361_phy_store+0x330/0x694)

[<c03a430c>] (ad9361_phy_store) from [<c026ab80>] (dev_attr_store+0x18/0x24)

[<c026ab80>] (dev_attr_store) from [<c0105c8c>] (sysfs_kf_write+0x40/0x4c)

[<c0105c8c>] (sysfs_kf_write) from [<c01050d4>] (kernfs_fop_write+0x120/0x174)

[<c01050d4>] (kernfs_fop_write) from [<c00b750c>] (vfs_write+0xbc/0x170)

[<c00b750c>] (vfs_write) from [<c00b77ac>] (SyS_write+0x40/0x78)

[<c00b77ac>] (SyS_write) from [<c000dca0>] (ret_fast_syscall+0x0/0x34)

Code: e285ed0b e58de020 e595c300 e28c6901 (e5966000)

---[ end trace 1a77fa981350e61c ]---

 

 

_____       _           _      _

| ___ \     | |         | |    (_)

| |_/ / ___ | |_   __ _ | |     _  _ __   _   _ __  __

|  __/ / _ \| __| / _` || |    | || '_ \ | | | |\ \/ /

| |   |  __/| |_ | (_| || |____| || | | || |_| | >  <

\_|    \___| \__| \__,_|\_____/|_||_| |_| \__,_|/_/\_\

 

 

PetaLinux v2013.10 (Yocto 1.4) zynq ttyPS0

 

 

zynq login: root

Password:

login[885]: root login  on `ttyPS0'

Outcomes