starfive-tech / VisionFive2

445 stars 79 forks source link

soft_3rdpart/spl_tool/create_{hdr,sbl} are amd64 binaries #4

Closed kth5 closed 1 year ago

kth5 commented 1 year ago

The current SDK cannot be built on non-x86_64 Linux systems since some shipped programs cannot be executed elsewhere. In adition there is no source available... This is yet another unfortunate problem for a SDK targetting a "open source" SBC.

I'm building on ppc64le and got through most of the build already but I'm stuck here. binfmt tries to rescue me but I don't have a x86_64 chroot for it to work.

image

andyhu-stf commented 1 year ago

Hi @kth5, the create_sbl and create_hdr under soft_3rdpart/spl_tool/ are the starfive proprietary uboot spl tool. These binary will generate the target u-boot-spl.bin.normal.out. They are not open source and provided as the executable binary file on x86 linux platform.

Now we still have not support to build the sdk code on ppc64le platform yet. Maybe we can support it later.

And if you are not interested in the u-boot-spl.bin.normal.out, you can modify the Makefile all: check_arg $(fit) $(vfat_image) $(uboot_fit) $(spl_bin_normal_out) to all: check_arg $(fit) $(vfat_image) $(uboot_fit) Then you can continue to try building on ppc64le platform

NickCao commented 1 year ago

You may use https://github.com/NickCao/starfive-tools/blob/master/spl_tool/create_sbl as a replacement.

MichaelZhuxx commented 1 year ago

I think this issue could be closed as we open source the spl tool https://github.com/starfive-tech/Tools/tree/master/spl_tool