Project

General

Profile

Building the MitySOM-5CSX

Added by John Iannuzzi 2 days ago

Hi,
I have been going thru the build sequence with the makefile and got the following error:

software/preloader/u-boot-socfpga/arch/arm/mach-socfpga/cv_bsp_generator/cv_bsp_generator.py -i hps_isw_handoff/dev_5cs_hps_0 -o software/preloader/u-boot-socfpga/board/cl/mitysom-5cs/qts
/usr/bin/env: ‘python’: No such file or directory
make: *** [Makefile:596: u-boot-socfpga/u-boot-with-spl.sfp] Error 127

I believe this is because its looking for python 2. The original version of the cv_bsp_generator.py script was written in python2 (right from Rocketboards). They never updated it to python3. I found this out a few months ago after pulling my hair out.
Anyway, do you folks have a fix or should I just do the conversion myself? If there is a fix in place already, I would rather use that to keep aligned with your stuff.

Thanks,
John


Replies (2)

RE: Building the MitySOM-5CSX - Added by Seth Graber 1 day ago

Hi John,

The scripts appears to work fine with python3, below is the output of me running the command manually with python3:

$ python3 software/preloader/u-boot-socfpga/arch/arm/mach-socfpga/cv_bsp_generator/cv_bsp_generator.py -i hps_isw_handoff/dev_5cs_hps_0 -o software/preloader/u-boot-socfpga/board/cl/mitysom-5cs/qts 
/home/sgraber/work/projects/mitysom-5csx-ref/dev_5cse_l2_3y8/software/preloader/u-boot-socfpga/arch/arm/mach-socfpga/cv_bsp_generator/emif.py:91: SyntaxWarning: invalid escape sequence '\w'
  if re.match("^#define (\w+_)", line):
/home/sgraber/work/projects/mitysom-5csx-ref/dev_5cse_l2_3y8/software/preloader/u-boot-socfpga/arch/arm/mach-socfpga/cv_bsp_generator/emif.py:101: SyntaxWarning: invalid escape sequence '\['
  if re.match("^const.*\[", line) or arrayMatchStart:
/home/sgraber/work/projects/mitysom-5csx-ref/dev_5cse_l2_3y8/software/preloader/u-boot-socfpga/arch/arm/mach-socfpga/cv_bsp_generator/emif.py:110: SyntaxWarning: invalid escape sequence '\['
  self.seqAutoAcTemplateList.append(re.sub("\[.*\]", "[]", line))
/home/sgraber/work/projects/mitysom-5csx-ref/dev_5cse_l2_3y8/software/preloader/u-boot-socfpga/arch/arm/mach-socfpga/cv_bsp_generator/emif.py:116: SyntaxWarning: invalid escape sequence '\['
  if re.match("^const.*\[", line) or arrayMatchStart:
/home/sgraber/work/projects/mitysom-5csx-ref/dev_5cse_l2_3y8/software/preloader/u-boot-socfpga/arch/arm/mach-socfpga/cv_bsp_generator/emif.py:125: SyntaxWarning: invalid escape sequence '\['
  self.seqAutoInstTemplateList.append(re.sub("\[.*\]", "[]", line))
/home/sgraber/work/projects/mitysom-5csx-ref/dev_5cse_l2_3y8/software/preloader/u-boot-socfpga/arch/arm/mach-socfpga/cv_bsp_generator/hps.py:370: SyntaxWarning: invalid escape sequence '\w'
  p = re.compile('^(\w+)\s+(\w+)$')
Generating file: software/preloader/u-boot-socfpga/board/cl/mitysom-5cs/qts/sdram_config.h...
Generating file: software/preloader/u-boot-socfpga/board/cl/mitysom-5cs/qts/pinmux_config.h...
Generating file: software/preloader/u-boot-socfpga/board/cl/mitysom-5cs/qts/pll_config.h
Reading file: hps_isw_handoff/dev_5cs_hps_0/dev_5cs_hps_0.hiof...
Generating file: software/preloader/u-boot-socfpga/board/cl/mitysom-5cs/qts/iocsr_config.h...

The Makefile is looking for the PYTHON environment variable to be set up by your system. For example, on my Ubuntu 24.04 this is not set by default. Running export PYTHON=python3 before using the Makefile should resolve your issue.

- Seth

RE: Building the MitySOM-5CSX - Added by John Iannuzzi about 23 hours ago

Hi Seth,
Thanks. I’ll give it a shot later on.
Best regards,
John

    (1-2/2)
    Go to top
    Add picture from clipboard (Maximum size: 1 GB)