cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
shantaramjagtap1994@
Contributor
Contributor
1,059 Views
Registered: ‎10-31-2018

I2c driver failed in ADV7511

Jump to solution

Hello folks,

       We tried to build demo application for HDMI In/Out. We are using picozed 7030 board and referring FMCHC_PYTHON1300C_HLS_2015_4_02 example project.  We need to initialize driver for ADV7511 and ADV7611 for HDMI Tx/Rx but We got kernel panic message at I2C /dev driver. 
 
Petalinux boot log as follows,
 

i2c /dev entries driver
i2c i2c-0: Added multiplexed i2c bus 1
i2c i2c-0: Added multiplexed i2c bus 2
i2c i2c-0: Added multiplexed i2c bus 3
pca953x 4-0020: interrupt support not compiled in
i2c i2c-0: Added multiplexed i2c bus 4
pca953x 5-0024: failed reading register
pca953x: probe of 5-0024 failed with error -5
i2c i2c-0: Added multiplexed i2c bus 5
i2c i2c-0: Added multiplexed i2c bus 6
i2c i2c-0: Added multiplexed i2c bus 7
i2c i2c-0: Added multiplexed i2c bus 8
pca954x 0-0070: registered 8 multiplexed busses for I2C switch pca9548
adv7604 3-004c: Handling HPD 0 GPIO
adv7611 3-004c: adv7611 found @ 0x98 (i2c-0-mux (chan_id 2))
No video input configuration, using device default
No video output configuration, using device default
Unable to handle kernel NULL pointer dereference at virtual address 00000000
pgd = c0004000
[00000000] *pgd=00000000
Internal error: Oops - BUG: 5 [#1] PREEMPT SMP ARM
Modules linked in:
CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.0.0-xilinx #3
Hardware name: Xilinx Zynq Platform
task: ee8289c0 ti: ee84c000 task.ti: ee84c000
PC is at adv7511_probe+0x460/0x888
LR is at adv7511_probe+0x410/0x888
pc : [<c0361b74>] lr : [<c0361b24>] psr: 60000013
sp : ee84de20 ip : 00000000 fp : 00000000
r10: c06adc88 r9 : 00000000 r8 : 00000000
r7 : eefe917c r6 : 00000000 r5 : eebea000 r4 : ee9c9010
r3 : 00000000 r2 : 00000000 r1 : 60000013 r0 : 00000033
Flags: nZCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment kernel
Control: 18c5387d Table: 0000404a DAC: 00000015
Process swapper/0 (pid: 1, stack limit = 0xee84c210)
Stack: (0xee84de20 to 0xee84e000)
de20: ee811ec0 c0104488 ee0544e8 c0104a4c 00000000 c0104b60 ee0544ec ee0544e8
de40: ee054588 c0604958 eebed588 eebea000 c06e5040 eebea020 c0361714 eebea004
de60: c06f0ec0 c06adc88 00000000 c0355344 eebea020 c0718520 00000000 c06e4ff0
de80: 00000000 c026f430 eebea020 eebea054 c06e4ff0 c06e4b0c c06bd5e0 c026f61c
dea0: 00000000 c06e4ff0 c026f5b4 c026dd50 ee906c5c ee9feb34 c06e4ff0 00000000
dec0: eeab9a80 c026ece8 c06086ab c06086b0 00000000 c06e4ff0 c069c6d0 00000000
dee0: c06bd5e0 c026fb20 c06e4b0c c06e4fd4 c069c6d0 c035665c 00000000 ee0528c0
df00: c069c6d0 c00089e0 c04ae080 ee89cc00 c04a45a8 c06f7a38 c06adc00 c00fcfc8
df20: c05cfb3d ee89ce80 c06c08c0 60000113 c06854fc ef7fcdc8 ef7fcdcc c0035b20
df40: 000000af 00000006 00000006 000000ae c06c08a8 00000006 000000af 00000006
df60: 000000af c06b3a08 c06adc80 c06f0ec0 c06f0ec0 c0685cdc 00000006 00000006
df80: c06854fc ee84c000 00000000 c04974d4 00000000 00000000 00000000 00000000
dfa0: 00000000 c04974dc 00000000 c000ddc0 00000000 00000000 00000000 00000000
dfc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
dfe0: 00000000 00000000 00000000 00000000 00000013 00000000 00000000 ffffffff
[<c0361b74>] (adv7511_probe) from [<c0355344>] (i2c_device_probe+0xf0/0x118)
[<c0355344>] (i2c_device_probe) from [<c026f430>] (driver_probe_device+0x98/0x1d8)
[<c026f430>] (driver_probe_device) from [<c026f61c>] (__driver_attach+0x68/0x8c)
[<c026f61c>] (__driver_attach) from [<c026dd50>] (bus_for_each_dev+0x6c/0x90)
[<c026dd50>] (bus_for_each_dev) from [<c026ece8>] (bus_add_driver+0xdc/0x1c4)
[<c026ece8>] (bus_add_driver) from [<c026fb20>] (driver_register+0x8c/0xd0)
[<c026fb20>] (driver_register) from [<c035665c>] (i2c_register_driver+0x2c/0x68)
[<c035665c>] (i2c_register_driver) from [<c00089e0>] (do_one_initcall+0x100/0x180)
[<c00089e0>] (do_one_initcall) from [<c0685cdc>] (kernel_init_freeable+0x110/0x1d4)
[<c0685cdc>] (kernel_init_freeable) from [<c04974dc>] (kernel_init+0x8/0xe4)
[<c04974dc>] (kernel_init) from [<c000ddc0>] (ret_from_fork+0x14/0x34)
Code: e5993000 e5843028 e5993004 e584302c (e5993000)
---[ end trace c4f9c754d5de96d5 ]---
Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b

CPU1: stopping
CPU: 1 PID: 0 Comm: swapper/1 Tainted: G D 4.0.0-xilinx #3
Hardware name: Xilinx Zynq Platform
[<c001488c>] (unwind_backtrace) from [<c0010dcc>] (show_stack+0x10/0x14)
[<c0010dcc>] (show_stack) from [<c049aa0c>] (dump_stack+0x80/0xcc)
[<c049aa0c>] (dump_stack) from [<c0013268>] (ipi_cpu_stop+0x3c/0x6c)
[<c0013268>] (ipi_cpu_stop) from [<c0013850>] (handle_IPI+0x64/0x84)
[<c0013850>] (handle_IPI) from [<c0008628>] (gic_handle_irq+0x54/0x5c)
[<c0008628>] (gic_handle_irq) from [<c0011780>] (__irq_svc+0x40/0x74)
Exception stack(0xee86bf90 to 0xee86bfd8)
bf80: 00000001 00000000 00000000 c001caa0
bfa0: 00000000 ee86a000 00000000 c06f11dc ee86bfe0 00000001 00000000 c04a1840
bfc0: 00000001 ee86bfd8 c000e854 c000e858 60000113 ffffffff
[<c0011780>] (__irq_svc) from [<c000e858>] (arch_cpu_idle+0x2c/0x38)
[<c000e858>] (arch_cpu_idle) from [<c004923c>] (cpu_startup_entry+0x234/0x268)
[<c004923c>] (cpu_startup_entry) from [<000086c4>] (0x86c4)
---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b

 

any solution will be helpful.

Thanks and regards

shantaram

0 Kudos
1 Solution

Accepted Solutions
shantaramjagtap1994@
Contributor
Contributor
1,010 Views
Registered: ‎10-31-2018

The problem solved by myself.

problem occured because I have not included adv7511 encoder driver in following path

Device driver/graphics support/Direct Rendering manger/Direct Rendering manger(XFree86 4.1.0 and higher DRI support/I2c encoder or helper chips/av7511 encoder

View solution in original post

0 Kudos
1 Reply
shantaramjagtap1994@
Contributor
Contributor
1,011 Views
Registered: ‎10-31-2018

The problem solved by myself.

problem occured because I have not included adv7511 encoder driver in following path

Device driver/graphics support/Direct Rendering manger/Direct Rendering manger(XFree86 4.1.0 and higher DRI support/I2c encoder or helper chips/av7511 encoder

View solution in original post

0 Kudos