Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
10 years ago

Could not get hps2fpga reset control in linux kernel 3.19.6

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.

7 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

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

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    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.

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

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

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    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.

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- 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.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

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

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    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 :)