scanakci / linux-on-litex-blackparrot

Linux on Litex for BlackParrot Core
7 stars 4 forks source link

Having issues in reproducing the work #8

Open miniskar opened 2 years ago

miniskar commented 2 years ago

First, we thank you for your impressive work. We would like to reproduce your work on our Artix A7 board. However, we are not able to do reproduce it as we are getting the below error. Can you please help us in resolving this issue?

This is with the master branch of litex.

ERROR: [Synth 8-1766] cannot open include file bsg_defines.v [/noback/xqn/LinuxBlackParrot/linux-on-litex-blackparrot.new/pythondata-cpu-blackparrot/pythondata_
cpu_blackparrot/system_verilog/black-parrot/external/basejump_stl/bsg_cache/bsg_cache_pkg.v:7]
INFO: [Synth 8-2350] module bsg_cache_pkg ignored due to previous errors [/noback/xqn/LinuxBlackParrot/linux-on-litex-blackparrot.new/pythondata-cpu-blackparrot
/pythondata_cpu_blackparrot/system_verilog/black-parrot/external/basejump_stl/bsg_cache/bsg_cache_pkg.v:137]
Failed to read verilog '/noback/xqn/LinuxBlackParrot/linux-on-litex-blackparrot.new/pythondata-cpu-blackparrot/pythondata_cpu_blackparrot/system_verilog/black-p
arrot/external/basejump_stl/bsg_cache/bsg_cache_pkg.v'
INFO: [Common 17-83] Releasing license: Synthesis
7 Infos, 0 Warnings, 0 Critical Warnings and 2 Errors encountered.
synth_design failed
ERROR: [Common 17-69] Command failed: Synthesis failed - please see the console or run log file for details
INFO: [Common 17-206] Exiting Vivado at Sun Aug 21 23:14:58 2022...
Traceback (most recent call last):
      File "litex-boards/litex_boards/targets/digilent_arty.py", line 215, in <module>
          main()
        File "litex-boards/litex_boards/targets/digilent_arty.py", line 204, in main
          builder.build(**builder_kwargs)
        File "/home/xqn/LinuxBlackParrot/linux-on-litex-blackparrot/litex/litex/soc/integration/builder.py", line 357, in build
          vns = self.soc.build(build_dir=self.gateware_dir, **kwargs)
        File "/home/xqn/LinuxBlackParrot/linux-on-litex-blackparrot/litex/litex/soc/integration/soc.py", line 1277, in build
          return self.platform.build(self, *args, **kwargs)
        File "/home/xqn/LinuxBlackParrot/linux-on-litex-blackparrot/litex/litex/build/xilinx/platform.py", line 73, in build
          return self.toolchain.build(self, *args, **kwargs)
        File "/home/xqn/LinuxBlackParrot/linux-on-litex-blackparrot/litex/litex/build/xilinx/vivado.py", line 130, in build
          return GenericToolchain.build(self, platform, fragment, **kwargs)
        File "/home/xqn/LinuxBlackParrot/linux-on-litex-blackparrot/litex/litex/build/generic_toolchain.py", line 113, in build
          self.run_script(script)
        File "/home/xqn/LinuxBlackParrot/linux-on-litex-blackparrot/litex/litex/build/xilinx/vivado.py", line 373, in run_script
          raise OSError("Error occured during Vivado's script execution.: "+script)
      OSError: Error occured during Vivado's script execution.: build_digilent_arty.sh

If I use the litex submodule of this repository, I am facing the below error.

Traceback (most recent call last):
  File "litex-boards/litex_boards/targets/digilent_arty.py", line 215, in <module>
    main()
  File "litex-boards/litex_boards/targets/digilent_arty.py", line 151, in main
    from litex.soc.integration.soc import LiteXSoCArgumentParser
ImportError: cannot import name 'LiteXSoCArgumentParser' from 'litex.soc.integration.soc' (/noback/nqx/GoogleCFU/LinuxBlackParrot/linux-on-litex-blackparrot.new/litex/litex/soc/integration/soc.py)
scanakci commented 1 year ago

Hi Thank you for checking our repo. I recently switched to another project and @developandplay was looking into the project. @developandplay; do you have any suggestion regarding the issue?

troibe commented 1 year ago

Sorry for the late response. I'll look into it tomorrow. Hopefully I can reproduce it.

Sadullah Canakci @.***> schrieb am Mi., 14. Sept. 2022, 21:53:

Hi Thank you for checking our repo. I recently switched to another project and @developandplay https://github.com/developandplay was looking into the project. @developandplay https://github.com/developandplay; do you have any suggestion regarding the issue?

— Reply to this email directly, view it on GitHub https://github.com/scanakci/linux-on-litex-blackparrot/issues/8#issuecomment-1247234879, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIJETIPBDK6VPOHQFZ6X4QTV6IUMZANCNFSM57GCFZ3A . You are receiving this because you were mentioned.Message ID: @.***>

troibe commented 1 year ago

@miniskar Can you double check whether the pythondata directory for BlackParrot exists and has the source files in it? These days LiteX only installs BlackParrot source files if you install it using the "full" parameter, alternatively you can modify this https://github.com/enjoy-digital/litex/blob/b8e22fcd799cac29c8c78bac7e2ec7fe97a3a35c/litex_setup.py#L140 to include BlackParrot in the standard configuration.

The issue you are probably encountering when using the old branch of LiteX is that you would need to downgrade all other LiteX branches as well. I would not recommend it...Unless you face an issue with the current LiteX version.

Also if you quickly want to test BlackParrot working without synthesizing the bitstream for the Arty I can recommend trying it in litexsim first.