I bought the Luckfox Lyra last year. I tried to get it working a few times, but the setup requirements and the number of problems were just too much.
Yesterday, while working on another project, I thought, “Why don’t I let Codex figure this out and get it running for me?”
About four hours later, I had the Luckfox Lyra installed in my PicoCalc and running.
I do not know all the details, but there are supposed to be some legal issues between Luckfox and Ubuntu. There were also repository issues, so Codex recommended using the Luckfox kernel instead of Ubuntu. I was not sure about that choice at first, but it worked out.
The Python build did not include the curses module. Since we had the cross-compiler working, Codex found the needed source, compiled it, and installed it. Who needs a repo?
There were many restarts while trying to compile the kernel from source, but Codex kept going and solved each problem as it came up. I would not have been successful doing this by myself.
Once the system was installed, we needed Wi-Fi. I had the same Wi-Fi dongle that many people seem to use with this setup. That had problems too. For some reason, that family of dongles was blacklisted by the kernel. Codex found a driver with source code, made the needed changes, used the cross-compiler to build it, installed it, and configured everything to use it.
And it worked the first time.
At one point, we ran into a memory issue, so I asked about swap. The kernel was not set up to use swap yet. Codex created a swap file and configured the system to use it. The Rockchip board has about 120 MB of RAM, and after the system is running, about 94 MB is left for everything else. Now it also has 1 GB of swap. That is tiny on a normal computer, but huge for this system.
Here is an app Codex converted from a CircuitPython PicoCalc app.
What I have now is a set of tools and utilities that let me use the PicoCalc with the Luckfox Lyra without needing a full desktop GUI. The screen is so small that I am not sure I need a desktop or mouse emulation. I really just need a launcher, like the kind we build for the Pico 2 W.
The big difference is that the Luckfox gives me real internet access, REST calls, and SSH. I can SSH into it and out from it. It is much more capable than the Pico 2 W for this kind of work.
I am very happy that Codex got it running for me.
Here is a link to a repository that documents the work it took to get this running in my setup:

