Add device profile for Luckfox Pico Mini#5
Add device profile for Luckfox Pico Mini#5rgrizzell wants to merge 2 commits intoplan44:p44_24.10from
Conversation
|
Getting Uboot working is pretty much the last hurdle. OpenWRT and the Linux kernel both compile without issues, but the process fails on the I'm slowly working my way through the toolchain to see if it's possible to patch up the https://opensource.rock-chips.com/wiki_Boot_option#The_Pre-bootloader.28IDBLoader.29 Edit: Also saw this and the subsequent reply: LuckfoxTECH/luckfox-pico#115 (comment) |
|
Hi @rgrizzell, thank you for your work on the Mini A (I do not have one of these myself)! And also thanks for the useful OpenWrt get started guide! I have something similar in the README for my openwrt based LED+Smarthome platform p44-xx-open. As is, it covers Omega2/Rpi only on older OpenWrt, but technically it already works on 24.10 and the rv110x targets and I hope to have it cleaned up and pushed soon… At the moment I am working with the Pico Pro Max (rv1106) and a non-luckfox rv1103b target (see luz-WIP branch in the kernel tree for that), both with NAND flash. Regarding u-boot built from within openwrt, that's so far a complete void for me, so any help is welcome. I'm currently just using the original u-boot from the luckfox SDK, with only one thing patched, the kernel load addresses in the default environment (kernel_addr_r=0x02000000, kernel_addr_c=0x01000000) because with the original addresses, the 6.6 kernel is too big and crashes/hangs. |
@plan44 Thanks for the insight! I was able to generate those files with the Luckfox Pico SDK, but haven't tried bundling those into After digging into the U-boot process, there should be a path forward through patches in ./package/boot/uboot-rockchip/. I am guessing that device trees and other build files need to be added there. Hopefully it's easy enough to lift from the SDK. 😄 |
|
@rgrizzell uboot is not part of sysupgrade.img, only the kernel and the rootfs are. That's why I can live with the original uboot from the SDK with the kernel_addr_r/c patch for now, flashing that is a one time thing when provisioning the device for the first time. After that, sysupgrade updates kernel and rootfs, but does not touch uboot any more. Still, it would be nice to have a working uboot build within OpenWrt, so I hope lifting the relevant parts from the SDK is doable! |
There's still a lot I'm learning about each build artifact, so I'm not entirely sure if I could generate the bootloader with the Luckfox Pico SDK, but I want to get this fork to a state where it can be merged upstream. Knocking down this last hurdle for everyone else will feel really good. 😄 |
|
Adding Uboot support to the rv1106 fork is going to take some collaboration. What makes matters a bit more frustrating is that I don't see support for the rv1106 chips in the upstream version of U-boot either. Luckfox seems to have added support for it into their SDK, but I'm left wondering just how much effort it would take to backport that for OpenWRT builds. Did I miss something? Either way, I think its time to move the U-boot effort out of this PR. You can merge what's here. |
I only have the Luckfox Pico Mini A (without NAND Flash) and so this adds a device profile, but it does not add any support for SD Card images (yet).