Hey everyone,
It's been a long minute but heres my Lumia 1520 Resurrection Update:
All four CPU cores working, modern kernel security, encryption and some other boring stuff.
It's been a little while since my last update, but I've made some pretty significant progress on bringing the Lumia 1520 back to life... well at least from a linus/Android standpoint.
For anyone who hasn't been following the project, I've been working on getting modern mainline Linux running natively on the Lumia 1520 and getting as much of the original hardware working as possible.
I'm currently running Linux 6.16.12, and the project is now on kernel revision r213.
What's new:
- All four Snapdragon 800 CPU cores are now working by default.
- All four cores remain operational after suspend and resume.
- Approximately 4.2x performance scaling in SMP testing.
- Strict kernel control-flow integrity (kCFI) is working.
- All 53 cryptographic self-tests pass.
- NEON-accelerated AES-XTS and Adiantum encryption are working.
- Adiantum encryption achieved approximately 78 MiB/s.
- dm-crypt encryption and dm-verity integrity verification have been successfully tested.
- eBPF JIT compilation is working, with approximately 2.36x faster execution in testing.
- Additional modern kernel security and hardening features have been enabled.
- Development tools for internet access and clock synchronization through USB have been added.
One of the more "interesting" problems I encountered was a complete kernel freeze caused by an incompatibility between strict kernel CFI and older ARM32 NEON assembly routines. I was able to identify and patch the issue without having to disable CFI.
What I'm currently working on:
I'm now investigating persistent crash logging and automatic recovery from kernel freezes.
I've corrected the kernel's ramoops configuration, but something earlier in the boot chain appears to be clearing the reserved RAM during a reboot. I suspect the original Windows Phone UEFI firmware may be responsible, but I haven't confirmed that yet.
I've also gotten the Qualcomm hardware watchdog to trigger resets, although its behavior isn't consistent enough to rely on yet.
Another remaining challenge is CPU frequency scaling. All four cores are currently running at approximately 958 MHz, so there's still considerable untapped potential in the Snapdragon 800.
If anyone here has experience with Lumia UEFI memory initialization, RAM retention across resets, Qualcomm MSM8974 watchdog behavior, or Krait CPU frequency scaling, I'd be interested in hearing from you.
But honestly, it's pretty cool seeing a phone released in 2013 running a modern Linux kernel with security features that didn't even exist when the phone originally came out.
There's still work to do, but it's getting closer to becoming a genuinely usable modern Linux device....
As always, the public repository is available here:
https://github.com/KorelisLabs/lumia-1520-mainline