strlcat / jh7110_uboot_spl Goto Github PK
View Code? Open in Web Editor NEWJH7110 U-Boot SPL tool
JH7110 U-Boot SPL tool
*** DEPRECATED *** This code was upstreamed into https://github.com/starfive-tech/Tools/, replacing proprietary one, with more features added by StarFive developers, and now maintained there. This version will be archived. DESCRIPTION A replacement for VisionFive2 SDK spl_tool which happened to be proprietary. Use only with VisionFive2 boards to make u-boot-spl.bin.normal.out image! DISCLAIMER Use at your own risk! I, Rys Andrey, don't bear any responsibility for your broken hardware. Check the image carefully with your eyes before flashing it to real device! WHY Cause I want it to run on RISC-V when building U-Boot there. I don't want to resort to qemu-x86_64 to run a tool which does something very simple. OFFICIAL DOCUMENTATION UPD: Please see https://doc-en.rvspace.org/VisionFive2/Developer_Guide/JH7110_Boot_UG.pdf for complete guide on how to make bootable images for various boot sources (QSPI, eMMC, SD). It also covers this source aswell now. LICENSE Public domain.
Hi, thanks for creating this tool.
When running it on a u-boot-spl.bin
that was generated using default configuration (from the SDK) but on GCC12, the created file is slightly too big (no matter if -Os
is added).
The proprietary tool also accepts the generated blob, but this tool bails out with the size limit warning. Also the size limit is somehow misleading, as at least the input file is smaller.
# added this debug output
size: 129760, max 129024
File too large! Please rebuild your SPL with -Os. Maximum allowed size is 130048 bytes.
I did not yet check the details - maybe it is due to a different aligning or a different linker script. Anyways, I'm wondering if the created artifact of the proprietary tool is actually valid. And if so, where this limit comes from.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.