Kernel 6.1 Port & Dual-Boot Pentester Build by Stefan TodorovKernel 6.1 Port & Dual-Boot Pentester Build by Stefan Todorov

Kernel 6.1 Port & Dual-Boot Pentester Build

Portfolio project
Stefan Todorov
Ported Linux Kernel 6.1 to a Xiaomi Redmi Note 9 Pro stuck on Kernel 4.12 with no manufacturer updates. Then converted the device into a dual-boot personal pentesting platform running Kali Linux and a custom Debian build.

The Starting Point

The Xiaomi Redmi Note 9 Pro is solid hardware with no software future. Xiaomi dropped update support, leaving it on Kernel 4.12. The device had capable specs but was effectively abandoned. I decided to bring it back to life and push it further than the manufacturer ever intended.

Kernel Port: 4.12 to 6.1

Ported Linux Kernel 6.1 to the device, bridging a gap of multiple major kernel generations. This involved:
Driver compatibility: Adapted and patched drivers for the device's specific hardware (Qualcomm Snapdragon 720G SoC, display, sensors, connectivity modules).
NFC optimization: Applied custom optimizations for the PN553 NFC module, achieving a 50% improvement in hardware responsiveness. Modified HAL services to enable hardware sharing across sub-system environments.
Kernel configuration: Built a custom kernel config tuned for the device's hardware profile, stripping unnecessary modules and optimizing for performance and stability.

Dual-Boot Conversion

After the kernel port, I abandoned Android entirely and converted the device into a dual-boot Linux system:
Storage re-architecture: Mapped the memory layout using the manufacturer's memory roadmap, reformatted to ext4, and split the storage into two partitions.
Dual-boot setup: Configured a bootloader to switch between Kali Linux and a custom Debian build (Personal Pentester Edition).
Kali Linux: Full mobile penetration testing environment with wireless tools, network analysis, and exploitation frameworks.
Debian Personal Pentester Edition: A custom-built Debian environment tailored for daily security work, forensics, and development.

Outcome

A device the manufacturer left for dead now runs a modern 6.1 kernel and boots into two purpose-built Linux environments. It serves as a portable penetration testing platform with no dependency on Android or manufacturer support. Full control, from bootloader to userspace.
This project reflects a broader philosophy: I work with old, often salvaged hardware (frequently pulled from broken machines) and optimize it to outperform expectations. The same approach powers my local AI Data Center, which still runs on DDR3-era components yet delivers strong results with modern AI workloads. The bottleneck is rarely the hardware. It's how well you understand it.

0 likes · 19 views · Jul 11, 2026

Tags