Overview
I've been working on enabling mainline OpenWrt support for the PhotoniCAT 2 (a commercial RK3576-based portable router). In the process, we stabilized several bootloader improvements that should be directly applicable to Flipper One's "mainline-first" goals.
Disclaimer: Much of this was "vibe coded" during rapid prototyping. However, it is field-tested and fully functional; the device is building, flashing, and booting reliably using these exact patches.
Key Contributions
We ran into several RK3576 BootROM and image alignment quirks that we believe are highly relevant to Flipper One's hardware:
- Rockchip v2
mkimage Support: We have developed a set of 6 patches that split size_and_off, add support for up to 4 embedded images (e.g., SPL + TPL + OP-TEE), and allow for overriding offset alignments (specifically 4 KiB, which is required for stable UFS operation on this SoC).
rk3576-boost.c SPL Initialization: We integrated a "boost" hack that initializes the PMIC (RK806) and ramps CPU/DDR clocks during the SPL phase. This significantly reduces total boot time and mitigates instability during the handoff to the kernel.
- SD/UFS Alignment Fixes: Specific overrides for image sector counts to ensure the RK3576 BootROM samples the image correctly from removable media.
References
- OpenWrt PR: openwrt/openwrt#22246
- Relevant Patches: See
package/boot/uboot-rockchip/patches/116-* in the PR link above.
I am happy to format these as a formal PR against your U-Boot fork if this aligns with your current roadmap.
Overview
I've been working on enabling mainline OpenWrt support for the PhotoniCAT 2 (a commercial RK3576-based portable router). In the process, we stabilized several bootloader improvements that should be directly applicable to Flipper One's "mainline-first" goals.
Disclaimer: Much of this was "vibe coded" during rapid prototyping. However, it is field-tested and fully functional; the device is building, flashing, and booting reliably using these exact patches.
Key Contributions
We ran into several RK3576 BootROM and image alignment quirks that we believe are highly relevant to Flipper One's hardware:
mkimageSupport: We have developed a set of 6 patches that splitsize_and_off, add support for up to 4 embedded images (e.g., SPL + TPL + OP-TEE), and allow for overriding offset alignments (specifically 4 KiB, which is required for stable UFS operation on this SoC).rk3576-boost.cSPL Initialization: We integrated a "boost" hack that initializes the PMIC (RK806) and ramps CPU/DDR clocks during the SPL phase. This significantly reduces total boot time and mitigates instability during the handoff to the kernel.References
package/boot/uboot-rockchip/patches/116-*in the PR link above.I am happy to format these as a formal PR against your U-Boot fork if this aligns with your current roadmap.