Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
21615 Discussions

Could not get hps2fpga reset control in linux kernel 3.19.6

Altera_Forum
Honored Contributor II
2,994 Views

We are trying to implement fpga-bridge in linux-3.19.6. Since there is no fpga-bridge driver we created a folder in driver/misc with reference from linux-socfpga(version 3.18) and also edited the dts related to altera_cyclone5. While building, it doesnt show any error.. But after booting it in Altera cyclone 5 board, the fpga-bridge folder is empty in /sys/class/fpga-bridge. The kernel bootlog shows the following 

NOTE: fpga manager has been created in /sys/class/fpga 

 

0.141454] altera_hps2fpga_bridge soc:fpgabridge@0: Could not get hps2fpga reset control! 

[ 0.141467] altera_hps2fpga_bridge soc:fpgabridge@0: probe deferral not supported 

[ 0.141518] altera_hps2fpga_bridge soc:fpgabridge@1: Could not get lwhps2fpga reset control! 

[ 0.141528] altera_hps2fpga_bridge soc:fpgabridge@1: probe deferral not supported 

[ 0.141573] altera_hps2fpga_bridge soc:fpgabridge@2: Could not get fpga2hps reset control! 

[ 0.141583] altera_hps2fpga_bridge soc:fpgabridge@2: probe deferral not supported 

 

Can anybody help to fix this.. Thanks in advance.
0 Kudos
7 Replies
Altera_Forum
Honored Contributor II
1,325 Views

the official support kernel is 3.10 LTSI.... 3.19.6 is way too far from the cyclone V

0 Kudos
Altera_Forum
Honored Contributor II
1,325 Views

Thanks for ur reply.. I downloaded linux-socfpga-4.1 from github. Fpga-bridge is working fine. But my board is not supporting usb now. I enabled usb in dts files. Please help.

0 Kudos
Altera_Forum
Honored Contributor II
1,325 Views

maybe just use the 3.10LTSI if there is no other require new feature.

0 Kudos
Altera_Forum
Honored Contributor II
1,325 Views

The FPGA bridge driver is not needed in newer versions of the linux kernel. Just make sure your dts is correct and matches the addresses of your FPGA peripherals and you should be fine. Make sure your kernel, preloader and uboot are all from the same version of Quartus.

0 Kudos
Altera_Forum
Honored Contributor II
1,325 Views

 

--- Quote Start ---  

The FPGA bridge driver is not needed in newer versions of the linux kernel. Just make sure your dts is correct and matches the addresses of your FPGA peripherals and you should be fine. Make sure your kernel, preloader and uboot are all from the same version of Quartus. 

--- Quote End ---  

 

 

 

this is a very good comment, is all your uboot, preloader and kernel need to come from same version.
0 Kudos
Altera_Forum
Honored Contributor II
1,325 Views

Thanks for all ur replies.. Fpga is working with socfpga4.1 kernel version..

0 Kudos
Altera_Forum
Honored Contributor II
1,325 Views

good to hear that, seems like 4.1 had done some patch on it. by the way, do try more system level testing to ensure that the kernel you are using is stable enough for your application :)

0 Kudos
Reply