Developing Python code in Pico Pro 128MB(RV1106)

  • The Luckfox Pico Pro supports booting from either an SPI FLASH or an SD card. When you configure Buildroot to include Python libraries, rest assured that this action will not interfere with the device's boot capability. Therefore, you can still opt to boot from the SPI FLASH as per your preference.
  • For example , Requests lib.
    How to install this lib?

    Is it an appropriate to install lib in Buildroot ?
    If not , What is a right way ?
    Thank you.
  • Adding Python libraries through Buildroot configuration is indeed feasible. For instance, to include the requests library, navigate to the Buildroot configuration interface and search for the 'requests' library. You will find an option named 'python-requests'. Enable this library and proceed with the subsequent steps according to the provided tutorial to successfully integrate it into your Buildroot environment.
    企业微信截图_17050435112313.png
  • I already goto Buildroot console.There is a prompt "#".

    How to goto the "Buildroot configuration interface" ? What a command to call this interface ?

    Thank you.
  • To open the configuration interface, perform the following actions:

    Code: Select all

    cd <SDK Directory>/sysdrv/source/buildroot/buildroot-2023.02.6/
    make luckfox_pico_defconfig
    make menuconfig
    
    For a comprehensive tutorial and further details, please consult the official documentation:
    https://wiki.luckfox.com/Luckfox-Pico/L ... Buildroot/
  • In Buildroot, What a directory name of <SDK Directory> ?

    Type : cd ?????
  • The <SDK Directory> refers to the file path where your SDK is located. For instance, if my SDK directory is "/home/luckfox-pico", you can open the Buildroot configuration interface by executing the following command:

    Code: Select all

    cd /home/luckfox-pico/sysdrv/source/buildroot/buildroot-2023.02.6/
    make luckfox_pico_defconfig
    make menuconfig
    
  • SDK is in PC or SPI flash ?
  • Hello,

    It seems that there might be some confusion. The buildroot system inside the Luckfox Pico series development boards does not support the direct installation of software on the development board. The system for Luckfox Pico series development boards is compiled on a computer and then flashed onto the development board. Therefore, if you want to install software on the development board, you need to first set up an environment on your computer that can compile the development board system, which is referred to as the SDK (Software Development Kit—a set of software tools and libraries used by developers to create applications). The general steps to add a Python library are as follows:

    1. Set up the SDK environment on your computer. You can refer to: https://wiki.luckfox.com/Luckfox-Pico/Luckfox-Pico-SDK
    2. In the SDK on your computer, navigate to the buildroot directory, and add the Python library. Refer to: https://wiki.luckfox.com/Luckfox-Pico/L ... -Buildroot
    3. Flash the system onto the development board.