You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Section 3.3 Compile U-boot
Since the native u-boot compiled u-boot.bin cannot be burned directly into FLASH, we adopt
the Firmware Image Package (FIP) method in ARM Trusted Firmware Design to encapsulate
uboot.bin in fip.bin. fip_spl.bin contains several images that need to be loaded during the fast
boot process.
I notice that there is a u-boot repository with an sg2042-dev branch:
For what it's worth, if you have a look at the github actions workflow, there are artifacts generated by those steps. If you download e.g. sophgo-bootloader-single-sg2042-master (https://github.com/sophgo/bootloader-riscv/actions/runs/8414100858) you will find an .img therein. If you mount that, there is an actual fip.bin file contained. Maybe that is what you are looking for, if yes, then the steps in the workflow tell you, how it's been created. If you have already figured that out, I'm sorry, I am very new to this risc-v businees and just try to get my own Pioneer board running...
In fact, I created from scratch a Nix flake for building the BSP and bootloader which follows the similar procedure, and copies the fip.bin at this step here.
Unfortunately I just have to take the fip.bin as the binary blob from this repository because, even if you dig into the build scripts here, there's no mention of how it's generated.
Looking at efforts to run NixOS on the MilkV Duo show something similar, where they have to package the fip.bin as a prebuilt artifact here.
Anyway, still hoping the sources for this can be provided although I'm not sure how likely that is to happen.
Is the source code available for generating the
firmware/fip.bin
?I am trying to put together a custom bootloader and would like to be able to reproduce this file from source if possible.
I also created an issue asking for more information about
fip.bin
in the sophgo-doc repository:sophgo/sophgo-doc#69
The closest thing I have been able to find regarding the
fip.bin
is from thecv18xx
documentation:I notice that there is a
u-boot
repository with ansg2042-dev
branch:https://github.com/sophgo/u-boot/tree/sg2042-dev
But I'm not sure if this is where the
firmware/fip.bin
in this repository is being generated from.Any information would be appreciated.
The text was updated successfully, but these errors were encountered: