Home › Forums › snickerdoodle › • Getting Started › Linux Fabric Clock Settings

Tagged: , , ,

Viewing 3 reply threads
  • Author
    Posts
    • lonesnark
      Participant
      Post count: 3

      I’m running the latest Ubuntu image from the download center. I have a system.bit file in boot, this is how I wish to load my bitstreams, and this is working. However, the fabric clock boots up at 50Mhz:

      less /sys/kernel/debug/clk/fclk0/clk_rate
      50000000

      Which is a kinda weird clock for my application. How can I change this to a different frequency? I don’t see a setting for it in devicetree.dtb? I don’t need it change-able a runtime, just the right frequency at bootup is all I’d need.

      I have gone through quite a bit of posts here, none seem to directly address this issue, except for links to https://github.com/ikwzm/fclkcfg , which doesn’t compile for me, I’m affraid.

    • Ryan Cousins
      Keymaster
      Post count: 343

      @lonesnark, it appears this question was never answered. Not sure if you already figured this out, but just in case:

      While you can’t change to an arbitrary frequency without rebuilding the FSBL and devicetree, you can select from one of the four available clocks: 50/100/150/200MHz. These are all feeding the PL from the PS and you would just need to assign a different one in your block diagram (ultimately RTL + constraints file).

      -Cousins

    • lonesnark
      Participant
      Post count: 3

      You are exactly right. Sorry I forgot to come here and update my query for others. fclk0 is 50mhz, fclk1 is 100mhz, fclk2 is 150mhz, and fclk3 is 200mhz. No need to change clocks as long as what is wanted is one of these, just change which fabric clock is enabled and utilized in the ZYNQ7 configuration.

    • jarez95
      Participant
      Post count: 7

      Are these clocks raised successfully on the default FSBL with the Ubuntu image for you? I have encountered the same issue, as my ILA is reporting no clock present and I consequently have to go to the Vitis SDK and program the device from there in order to raise fclk, though of course doing this kills the Ubuntu. I am looking at possibly rebuilding boot.bin, to include the new FSBL (which does raise fclk), but have not figured out how to get it to start Ubuntu as well – I think I am missing some elf files needed to do so. Also trying out the fclk manager GitHub link you posted, I believe you are supposed to cross compile it and transfer the files, as it doesn’t support the aarch architecture in the make file.

Viewing 3 reply threads
  • You must be logged in to reply to this topic.