UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Visitor hfeng2016
Visitor
1,350 Views
Registered: ‎12-27-2016

I2C access lost after reprogram PL

I have a Linux kernel 4.0.0 build by petalinux 2015.4 running on Microzed(ZYNQ7020), with an AXI_I2C controller in the FPGA PL, the I2C access from linux works fine after fresh reboot. But if I reprogram the PL by dump the same bit stream to devcfg from Linux, I lost the I2C access. I also have AXI_GPIO within the same PL, the GPIO access works fine after reprogram the PL.

 

Anybody have experience on this issue?

Tags (2)
0 Kudos
3 Replies
Voyager
Voyager
1,346 Views
Registered: ‎06-24-2013

Re: I2C access lost after reprogram PL

Hey @hfeng2016,

 

... if I reprogram the PL by dump the same bit stream to devcfg from Linux ...

Double check that it is actually the same bit stream you are sending to /dev/xdevcfg as was loaded during Linux boot. Also make sure to re-initialize the AXI IIC driver (e.g. unload and reload the kernel module) to accommodate for the now reset PL hardware.

 

Hope this helps,

Herbert

-------------- Yes, I do this for fun!
0 Kudos
Visitor hfeng2016
Visitor
1,338 Views
Registered: ‎12-27-2016

Re: I2C access lost after reprogram PL

Hi Herbert,

 

I'm pretty sure it's the same bit stream. 

 

How do I reinitialize the I2C driver? apparently lsmod doesn't return anything under linux-xlnx.

 

Thanks,

Henry 

0 Kudos
Voyager
Voyager
1,327 Views
Registered: ‎06-24-2013

Re: I2C access lost after reprogram PL

Hey Henry,

 

How do I reinitialize the I2C driver?

You probably need to build the kernel driver as module to do so.

 

apparently lsmod doesn't return anything under linux-xlnx.

Make sure that the kernel is built with module support and that /proc is mounted.

 

Hope this helps,

Herbert

-------------- Yes, I do this for fun!
0 Kudos