litex-hub / linux-on-litex-vexriscv

Linux on LiteX-VexRiscv
BSD 2-Clause "Simplified" License
574 stars 174 forks source link

Decreasing system clock speed for the Nexys Video board #240

Closed chriswils95 closed 3 years ago

chriswils95 commented 3 years ago

I am trying to boot linux on the Nexys Video board using a clock frequency of 50Mhz. In other to achieve this, i edit the nexys_video class in make.py and add the soc_kwargs as shown below. For some reason i cannot boot the linux image through sdcard. Error message is also attached.

Make.py: class NexysVideo(Board): soc_kwargs = { "sys_clk_freq" : int(50e6), # decrease sys_clk_freq to 50MHz (100MHz default). } def init(self): from litex_boards.targets import nexys_video Board.init(self, nexys_video.BaseSoC, soc_capabilities={

Communication

        "usb_fifo",
        # Storage
        "sdcard",
        # Video
        "framebuffer",
    }, bitstream_ext=".bit")

error

enjoy-digital commented 3 years ago

Hi @chriswils95,

I would recommend keeping the default clock. The issue with the low clock frequency is probably similar to https://github.com/litex-hub/litex-boards/issues/166, you can probably try the same workaround until we improve Artix7 support at lower frequencies.