5.1 Generate the SD Card Image

  1. Install the required packages on the host development system:
    sudo apt-get install wget sed make binutils build-essential diffutils gcc g++ bash patch gzip bzip2 perl tar cpio unzip rsync file bc findutils gawk libgnutls28-dev
  2. Create a workspace directory:
    mkdir buildroot-dev
    cd buildroot-dev
    
  3. Clone the required repositories:
    git clone https://github.com/linux4microchip/buildroot-mchp.git
    git clone https://github.com/linux4microchip/buildroot-external-microchip.git
    
  4. Check out the required release branch:
    cd buildroot-external-microchip/
    git checkout linux4microchip-2025.10 -b linux4microchip-2025.10
    
    cd ../buildroot-mchp/
    git checkout linux4microchip-2025.10 -b linux4microchip-2025.10
    
    Note: The Git checkout and branch names may vary depending on the latest Microchip release. The application build should also succeed with subsequent releases.
  5. Unzip the evse_app.zip sample application into any directory.
  6. Copy the ocpp201-iso15118-demo directory from evse-app-linux/ocpp201-iso15118-demo to buildroot-external-microchip/package.
  7. Add the following line to buildroot-external-microchip/Config.in:
    source "$BR2_EXTERNAL_MCHP_PATH/package/ocpp201-iso15118-demo/Config.in"
  8. From the buildroot-mchp directory, set the BR2_EXTERNAL environment variable:
    export BR2_EXTERNAL=../buildroot-external-microchip/
  9. Run the appropriate board-specific defconfig command:
    # SAMA5D27
    make sama5d27_wlsom1_ek_headless_defconfig
    
    # SAM9x75
    make sam9x75_curiosity_headless_defconfig
    
  10. Open the Buildroot configuration menu:
    make menuconfig