# sophgo-fiptool **Repository Path**: etux/sophgo-fiptool ## Basic Information - **Project Name**: sophgo-fiptool - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-10-14 - **Last Updated**: 2024-10-14 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # FIP Generator for Milk-V Series Board This is a Python-based firmware image package (FIP) generator specifically designed for the Milk-V series board. ## Build 1. Build U-Boot Take Milk-V Duo as example: ```shell cd make milkv_duo_defconfig make ``` After compilation, the u-boot.bin and u-boot.dtb file will be generated. 2. Build OpenSBI ```shell cd make PLATFORM=generic FW_FDT_PATH=/u-boot.dtb ``` After compilation, the fw_dynamic.bin file will be generated. 3. (Optional) Build RTOS Choose any RTOS, and after compilation, a bin file will be generated. 4. Pack fip.bin For Milk-V Duo with CV1800B SoC, use cv180x.bin under fsbl folder as its firt stage bootloader, and for Milk-V Duo256M with SG2002 SoC, use cv181x.bin instead. ```shell ./fiptool \ --fsbl data/fsbl/cv180x.bin \ --opensbi /fw_dynamic.bin \ --uboot /u-boot.bin \ --rtos ``` or Build fip.bin using Makefile, select according to board's memory size. ```shell make BOARD=64M (or 256M) ``` ## Usage 1. Place the generated fip.bin file into the FAT partition of the SD card. 2. Insert the SD card into the board and power it on.