-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Source code for generating fip.bin? #74
Comments
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 |
Yeah, I've looked at that. In fact, I created from scratch a Nix flake for building the BSP and bootloader which follows the similar procedure, and copies the Unfortunately I just have to take the Looking at efforts to run NixOS on the MilkV Duo show something similar, where they have to package the Anyway, still hoping the sources for this can be provided although I'm not sure how likely that is to happen. |
@xingxg2022 : Can you guys please provide the source code to build the riscv I found some related code in this tree https://github.com/sophgo/bootloader-arm64/tree/master/trusted-firmware-a/drivers/sophgo but I'm not sure if it is 100% compatible. If you can provide the true source, I may buy a board and help write a port for milkv/pioneer for coreboot. (It would be a pity if the community was unable to create alternative bootloaders that gave extra flexibility, eg booting from SATA disk from a pure SPI flash image due to missing multi-processor, pcie, or RAM bringup details) |
@silvanshade I was able to compile a (possibly old) version of fip.bin for
But I get an error near the end: So I copied a different board's implementation in
This compiled a fip.bin but I don't have hardware to test yet. |
@zamaudio I was also eventually able to compile the The problem that remains is that the board will not boot the There may be a way to turn off certificate validation with a jumper or commands issued to the ARM mcu over serial or something like that but I haven't put much effort into investigating that. This would also of course defeat the purpose of the trusted firmware bootflow, but alas it doesn't help the user that wants to build everything themselves anyway. |
I am trying to do something similar to silvanshade with a custom bootloader and needed to generate the I also found potentially relevant documentation on the secure boot process they use |
Also found here: https://github.com/sophgo/fiptool |
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: