Efinix-Inc / br2-efinix

Buildroot external tree for building Linux for Efinix RISC-V Sapphire SoC
MIT License
10 stars 4 forks source link

Is Python already installed in buildroot Linux? If not, how do I run opencv? #7

Closed rohaya2021 closed 1 year ago

efxmnalim commented 1 year ago

Are you asking Python package support or OpenCV with Python package support?

Python package already supported by Buildroot. See here. OpenCV with Python package also supported. See here. It require python-numpy but not support for RISCV. See here

You just need to add it in the buildroot defconfig file. For example to add python3 package in the buildroot defconfig for Ti60F225 board.

  1. Add BR2_PACKAGE_PYTHON3=y to configs/efinix_ti60f225_defconfig
  2. Run init.sh script with -r option
    . init.sh ti60f225 /path/to/soc.h -r
rohaya2021 commented 1 year ago

I followed your steps and able to load linux with Python3. May I know how to check whether Python3 already added in the buildroot Linux? I type python3 -v, nothing appears.

rohaya2021 commented 1 year ago

Please ignore my query. I type which python3 and /usr/bin/python3 appears. Tqvm, I will close this ticket.