Lk2nd. Installation lk2nd is a secondary bootloader that provides a standard fastboot in...
Lk2nd. Installation lk2nd is a secondary bootloader that provides a standard fastboot interface, which can be used to boot postmarketOS without Android boot flashed or pmbootstrap flasher flash_kernel. 10-8-28 again. lk2nd/lk1st is a bootloader for Qualcomm devices that simplifies booting standard operating systems. May 6, 2021 · The main use of lk2nd is to overcome more severe limitations which are outside the scope of this article. Smart reuse, it works just fine for the purpose. img和userdata. Warning: Flashing lk2nd is required, as it is a hard dependency. Jan 23, 2023 · https://4pda. 解锁手机进入图形界面 postmarketOS提供的默认用户名:user 密码 147147 PIN 147147,使用该密码解锁手机即可进入系统 2. (Flash from lk2nd Fastboot, not the stock Fastboot. Without it the mainline kernel will not select the display panel (resulting in black screen on boot). the proprietary Jan 10, 2026 · lk2nd 可以与 Android 开源项目 (AOSP) 结合使用,帮助开发者更容易地在基于高通 SoC 的设备上启动和调试 Android 系统。 4. Dec 5, 2025 · g530fz, gprimeltexx, stuck boot loop to twrp, then flash lk2nd boot well back to lk/pmos, but impossible to go to twrp Technically optional. In this configuration, lk2nd does not replace the stock bootloader. lk2nd/lk1st (based on qualcomm fork of lk) is a bootloader for devices based on Qualcomm system-on-chips (SoCs) and simplifies booting standard operating systems by providing unified boot and flashing interface. This is done by using heimdall to flash lk2nd to device's boot partition. lk2nd fork,主要为中国手机. the proprietary Oct 21, 2023 · [TOC] MSM8916 研究记录 lk1nd/lk2nd lk2nd: “secondary” bootloader intended for devices where existing firmware cannot be replaced easily (most smartphones and tablets). During the flashing process, the phone will restart and pause in lk2nd mode. Allow this method to be used with this flash action. There is a slightly higher clocked variant (CPU cores up to 1. to set a WiFi/BT MAC address in the device tree; without lk2nd, WiFi/BT does not work out of the box). Feb 14, 2026 · This is the first release of the new lk2nd codebase. It can boot an android boot image stored at 512k offset from the start of the boot partition (in lk2nd) or withoug the offset (for lk1st). : pmbootstrap install --sdcard /dev/<your_sdcard>. 11版后的lk2nd后可以开启全核后。 完整的跑分Unixbench单核233、多核926: lk2nd is a bootloader for Qualcomm MSM devices, based on the CodeAurora Little Kernel fork. Boot your phone to bootloader (Odin/Download) mode by holding Volume Down and Home while 继上次完成小米6体验Ubuntu Touch原生Linux系统之后,现在想用红米2来体验postmarketOS原生Linux系统。postmarketOS基于Alpine Linux,将真正的Linux系统装到Android手机,类似Ubuntu touch,不是chroot也不是proo… All the devices in this table can at least boot postmarketOS. lk2nd does not replace the stock bootloader. Nov 6, 2024 · 为了让Linux系统能够顺利启动,首先需要通过修改引导过程,使用像lk2nd这样的工具进行引导。 lk2nd是一个轻量级的引导加载程序,bootloader引导lk2nd,lk2nd再去引导完整的linux内核,骁龙845设备利用UEFI启动Windows也是类似原理,但不是利用lk2nd。 Jan 27, 2023 · We had lk2nd, bring fastboot back, and linux-panel-drivers, it’s the dtbs that arise when installing lk2nd, there is the ss_dsi panel line used to display images on the gpu chipset. img之后重启依旧是小米logo,看来目前只有红米2可以使用了。 Mar 22, 2024 · hello here in attachment are two versions of LK2ND, especially used for postmarketos (but compatible too with lineage) on that device. have a look on the g530fz postmarketos's wiki page to install it (with heimdall) A unoffical release of mobian. Add menu option to skip lk2nd_boot #568 opened on Aug 10, 2025 by BetaRays Loading… lk2nd Public archive Forked from msm8916-mainline/lk2nd Secondary little kernel (lk) bootloader for Qualcomm MSM8953 devices C 74 71 msm8916-mainline / lk2nd Public Notifications You must be signed in to change notification settings Fork 447 Star 557 Code Issues56 Pull requests38 Security0 Insights Code Otherwise, the boot loader would try to patch lk2nd's device trees with the stock overlay which references all the nodes that don't exist anymore, and refuses to proceed. Example usage: lk2nd is a custom bootloader for many different devices based on Qualcomm system-on-chips (SoCs), including smartphones, tablets, smartwatches and a few. Press Enter on your computer to continue the flashing process. Total downloads (including clone, pull, ZIP & release downloads), updated by T+1. ) Variants The Xiaomi Redmi 2 family had numerous variants, each sporting different display panels and camera lk2nd is a custom bootloader for many different devices based on Qualcomm system-on-chips (SoCs), including smartphones, tablets, smartwatches and a few single board computers (SBCs). - Project-DragonPi/mobian-wt88047 Nov 12, 2025 · warmte samenkomen. This is useful for debugging and development. Lk2nd on msm8916 After reading the lk2nd is a custom bootloader for many different devices based on Qualcomm system-on-chips (SoCs), including smartphones, tablets, smartwatches and a few single board computers (SBCs). username: umeko password: 1234 Note USB cable requires an input of 5V, otherwise it cannot provide power to the device and function properly. I like it. 10 (downstream) had Dualboot Android and GNU/Linux via MultiROM, basically patching kexec to kernel 3. Let’s make it more useful and trustworthy. lk2nd不仅简化了操作系统启动的过程,还带来了众多附加功能和修复,使其成为开发者和高级用户的理想选择。 项目介绍 lk2nd是一个定制化的引导加载程序,它支持各种基于高通SoC的设备,包括智能手机、平板电脑、智能手表以及单板计算机(SBC)。 Apr 30, 2020 · Install this lk2nd image to /boot partition using either EMMCdl ou Alcatel Flasher. 开启 Dockerfile 3 MIT 0 0 0 Updated on Dec 1, 2025 lk2nd Public archive Forked from msm8916-mainline/lk2nd Custom bootloader for Qualcomm devices Jan 10, 2026 · `lk2nd` 是一个为基于 Qualcomm MSM8916/MSM8226/MSM8974 等 SoC 的设备定制的引导加载程序。 以下是项目的主要目录结构及其介绍:```lk2nd/├── app/│ └── # 应用程序相关代码├── arch/│ └── # 架构相关代码├── dev/│ └── Aug 7, 2022 · 修改appsboot ¶ Clone lk2nd,修改相关配置并编译。 原来的aboot是给 UFI001C_MB_V01 用的,这里hack一下给 UFI_16_V3 用。 其实也就 修改了一下相关LED的引脚定义,顺带改一下product名称,没别的了。 后记 ¶ 经过这次曲折的研究,我意外学习了一些设备树和驱动的概念。 Total downloads (including clone, pull, ZIP & release downloads), updated by T+1. Download lk2nd-msm8916. Instead, it is packed into an Android boot image, which is then loaded by the stock bootloader just like the original Android image. 9仅开启了单CPU,而刷了0. Since lk2nd keeps backwards compatibility with Android boot images, you can flash your Android boot. It runs after the device's primary bootloader (PBL/SBL) and before the Linux kernel, providing a chain-loading mechanism that enables mainline Linux support on devices with locked bootloaders. along with that, many new features were introduced as most of the codebase was rewritten. For now, lk2nd can only enable focaltech, so you need to build lk2nd by youself if you have atmel (just comment ft and uncomment atmel in dts/msm8953-xiaomi-markw. to/forum/index. 2k次,点赞22次,收藏24次。摘要:本文详细介绍了将红米3S改造成Linux服务器的全过程。首先通过拆机短接进入9008模式强行解锁Bootloader,然后使用postmarketOS构建适用于msm89x7芯片的Linux镜像,通过lk2nd引导刷入系统。文章包含解锁步骤、系统构建配置、刷机流程以及联网设置等关键环节 $ fastboot boot lk2nd. Mar 4, 2023 · lk2nd是一个用于高通MSM设备的bootloader,提供可定制化的fastboot环境,常用于主线kernel启动的Linux系统,如PostmarketOS和Mobian。由于官方lk1st的限制和secureboot机制,lk2nd作为辅助引导加载程序加载,不直接替换lk1st。文章介绍了lk2nd的工作原理,以及如何在17年前的高通设备上动手移植和配置lk2nd。 Apr 30, 2020 · Install this lk2nd image to /boot partition using either EMMCdl ou Alcatel Flasher. the proprietary lk2nd is a custom bootloader for many different devices based on Qualcomm system-on-chips (SoCs), including smartphones, tablets, smartwatches and a few single board computers (SBCs). Oct 8, 2023 · When I learned about mainline kernel running on mobile chipsets, I used tegra on grate-driver. Previously tegra on nexus 7 2012 grouper in kernel 3. Then you will be able to "fastboot flash boot your-ROM-boot. lk2nd Fastboot: Access lk2nd fastboot and select EDL option. Edit:It Works Now Apr 6, 2020 · 手里有一个红米2A移动4G版,fastboot getvar product获取到的型号是WT86047,但是不能正常工作 按照github仓库步骤写入lk2nd镜像后开机始终保持小米logo,此时fastboot可操作,继续刷入boot. Test points: Disassembly your device and short the marked resistance to ground (view "EDL Test Point" image). Follow their code on GitHub. but when it tries to boot LK2ND it goes to a black screen then fastboot. Apr 12, 2022 · sudo apk add unixbench ubench whets dhry 我做了个简单的跑分,单核251(树莓派4B单核跑分也就290左右)。 发现仅有单核成绩,后面查资料发现因为刷的lk2nd版本是0. To monitor boot progress, you must be able to receive output from the screen, a network adapter, or a serial port. Oct 26, 2024 · Hi! How Can We Adapt lk2nd for MTK Unfortunately lk2nd project is /very/ qcom-centric and uses/relies on a significant amount of CAF code from old qcom's lk. Include a lots of stuff from project dragonpi. Samsung). com/bkerler/edl Получаем образ системы Для начала нам понадобится EDL и модем в режиме аварийной загрузки. img $ fastboot flash lk2nd lk2nd. Currently only 1 model and variants are supported, need to be added more Secondary little kernel (lk2nd) → [ initramfs + vmlinuz + config + extra (/pmOS_boot partition) → rootfs + firmware + kernel modules Mar 26, 2022 · 由于张大妈说不能放Github链接,大家可以自己去搜Project-DragonPi的mobian-wt88047。 刷机过程和刷入PostmarketOS类似,首先要给红米2刷入lk2nd。 也是去GitHub上找到lk2nd并下载lk2nd. dtb" LK2ND_COMPATIBLE="huawei,agassi" Bringing Mainline Linux to your Lumias! Mainline4Lumia has 18 repositories available. lk2nd was reworked from the ground up and is now based on a much more recent caf lk tree, allowing the project to support many more chipsets. The image contains the Linux kernel, a DTB or devicetree blob, an initramfs and extra kernel cmdline parameters. Links Source code Mainline kernel lk2nd support (klte) lk2nd support (kltechn/kltechnduo) Specifications Full phone specifications Deviceinfo HW page Instructions Samsung Galaxy S5 Teardown UART guide More Demo of Samsung klte running Plasma Mobile Plasma Mobile Kirigami Gallery demo on samsung-klte Photos Weston Xfce4 UI Jan 10, 2026 · lk2nd是一个针对高通系统级芯片(SoC)的定制启动加载程序,支持包括智能手机、平板电脑、智能手表以及部分单板计算机在内的多种设备。 该项目基于开源的Little Kernel嵌入式操作系统,通过提供一系列高级功能和优化,简化了操作系统的启动流程。 Jul 29, 2022 · 本文记录了将主线Linux移植到一台基于骁龙210和Kaios的仿Nokia3310老年机上的过程。首先,通过逆向工程解锁Bootloader并分析设备树,发现屏幕使用SPI接口。然后,针对LK进行移植,包括添加SPI屏驱动,修改QUP配置,最终成功点亮屏幕。 lk2nd is a bootloader for Qualcomm MSM devices, based on the CodeAurora Little Kernel fork. img,然后电脑上需要下载:fastboot刷机工具。 The touch screen won't work until you update lk2nd. The real Android boot Jan 10, 2026 · lk2nd是一个针对高通系统级芯片(SoC)的定制启动加载程序,支持包括智能手机、平板电脑、智能手表以及部分单板计算机在内的多种设备。 该项目基于开源的Little Kernel嵌入式操作系统,通过提供一系列高级功能和优化,简化了操作系统的启动流程。 Warning: Flashing lk2nd is required, as it is a hard dependency. img 刷入启动引导 6、重启手机 fastboot reboot 重启手机 等待手机自动重启,系统刷入完毕。 恭喜系统安装完成 系统准备工作 1、手机上滑,进入密码输入页面,输入密码147147,按Unlock解锁。 LK2ND_FORCE_FASTBOOT= - Force lk2nd to boot into fastboot menu By setting this option to 1 lk2nd will always enter the menu upon boot instead of continuing with the usual workflow. Although Xiaomi already provides a Fastboot interface, lk2nd contains various quirks for booting mainline. lk2nd uses control DT to store the per-device configuration. Install this lk2nd image to /boot partition using either EMMCdl ou Alcatel Flasher. 10 to boot another kernel, so Ubuntu on Nexus 7 2012 and it’s using kernel 3. Feb 18, 2026 · 文章浏览阅读1. Contribute to bzy-080408/lk2nd_unofficial development by creating an account on GitHub. You can use lsblk to find your sdcard. php?showtopic=849043&st=2600 https://github. 0 版本之后,不需要再刷入传统的*-boot. Often the initial bootloader on the device doesn't allow to pick unique DT for each device, so lk2nd relies on a special DT model to allow multiple devices share the same DT file. I. img文件,所以可以考虑跳过刷入该文件。 刷机完成后,重启手机,进入系统! 安装软件 1. lk2nd is a fork of the reference bootloader with the goal to provide a unified boot interface on all MSM8916 devices. Example usage: make TOOLCHAIN_PREFIX= arm-none-eabi- lk2nd-msm8952 LK2ND_ADTBS="msm8917-huawei-agassi. It also used for a number of mainline quirks (e. It supports automatic device detection, file system boot, dual booting and debugging commands. The real operating lk2nd is a custom bootloader for many different devices based on Qualcomm system-on-chips (SoCs), including smartphones, tablets, smartwatches and a few single board computers (SBCs). com/msm8916-mainline/lk2nd https://github. lk2nd Public archive Forked from msm8916-mainline/lk2nd Secondary little kernel (lk) bootloader for Qualcomm MSM8953 devices C 74 71 2 days ago · These are the steps required to install OpenStick on JZxxx boards The JZxxx board is a variant of the UFIxxx series, which enters EDL mode when the reset button is pressed during powerup. Currently only 1 model and variants are supported, need to be added more Secondary little kernel (lk2nd) → [ initramfs + vmlinuz + config + extra (/pmOS_boot partition) → rootfs + firmware + kernel modules lk2nd is a custom bootloader for many different devices based on Qualcomm system-on-chips (SoCs), including smartphones, tablets, smartwatches and a few single board computers (SBCs). More than 150 million people use GitHub to discover, fork, and contribute to over 420 million projects. Jun 29, 2024 · Flash lk2nd lk2nd is a bootloader for Qualcomm MSM devices, necessary to run PostmarketOS in this device. 1. exe is not found on the powershell. the proprietary Feb 27, 2022 · 本文详细记录了将LK2ND设备树修改,实现通过按键进入fastboot模式,以及移植主线Linux内核的过程。作者遇到并解决了trustzone固件问题,最终成功运行主线Linux,并探讨了将设备转化为高级路由器的可能性,包括USB模式切换和硬件功能的充分利用。此外,还分享了开源代码和相关资源。 Sep 1, 2024 · i managed to get it to flash the thingy. MSM8916 / APQ8016 (or Snapdragon 410) is Qualcomm SoC released in 2014, with great mainline Linux support originally added for the Dragonboard 410c. Add menu option to skip lk2nd_boot #568 opened on Aug 10, 2025 by BetaRays 5 fix Moto sanders DTB LK2ND_FORCE_FASTBOOT= - Force lk2nd to boot into fastboot menu By setting this option to 1 lk2nd will always enter the menu upon boot instead of continuing with the usual workflow. Packages Contents wiki mirrors Package details GitHub is where people build software. img from Releases page on Github. Install lk2nd+U-boot based boot chain from msm8916-mainline/gen-uboot-img. 2 postmarketOS postmarketOS 是一个为移动设备优化的 Linux 发行版,lk2nd 可以作为其引导加载程序,帮助用户在旧的智能手机上运行现代 Linux 系统。 GitHub is where people build software. It is packaged into an Android boot image and then loaded by the stock bootloader as a "secondary" bootloader. Jan 24, 2026 · lk2nd is a second-stage bootloader based on the Little Kernel (LK) bootloader from Qualcomm. This means that it's most likely unreasonable to add another platform support into lk2nd since the effort needed to implement and maintain that would be way too big. img" so your phone starts as usual, and access fastboot/lk2nd using Power+VolumeDown button. If you verify that a device not on this list boots postmarketOS, please create a page for the device and make a merge request. To facilitate easy updates of the kernel and device tree files (or to run the mainline kernel), the latest version of lk2nd is used. The Android boot image The Android boot image is well documented, and many tools exist to interact with it. lk2nd不仅简化了操作系统启动的过程,还带来了众多附加功能和修复,使其成为开发者和高级用户的理想选择。 项目介绍 lk2nd是一个定制化的引导加载程序,它支持各种基于高通SoC的设备,包括智能手机、平板电脑、智能手表以及单板计算机(SBC)。 lk2nd is based on CAF lk and includes aboot implementation. the proprietary 2 days ago · These are the steps required to install OpenStick on JZxxx boards The JZxxx board is a variant of the UFIxxx series, which enters EDL mode when the reset button is pressed during powerup. Feb 12, 2022 · lk2nd is a bootloader for Qualcomm MSM devices, based on the CodeAurora Little Kernel fork. Lk2nd on msm8916 After reading the lk2nd is a bootloader for Qualcomm MSM devices (at the moment only MSM8916), based on the CodeAurora Little Kernel fork. 10. After that you can install the EFI based OS image to an sdcard or generate a split rootfs and flash it to emmc partitions. e. Follow Qualcomm_Snapdragon_410/412_ (MSM8916)#Installation. You're better off creating a different, mtk-specific secondary 修改并编译 lk2nd 默认 lk2nd 在 extlinux 启动方式下仅支持小于 16 MB 的 initramfs 镜像,而安装桌面时引入的 plymouth 会极大的增大 initramfs 的体积,导致启动失败,所以需要修改并重新编译 lk2nd 同时,使用 Goodix 触摸屏的设备还需要修改 lk2nd 的 dts 否则无法触摸。 Warning: Flashing lk2nd is required, as it is a hard dependency. Mar 29, 2022 · One of the main purposes of lk2nd is to have a replacement for the stock bootloader "Odin mode" on many Samsung devices with sane fastboot implementation, which supports many more features like live booting and many others. 本文详细介绍了如何在红米5Plus(vince)设备上编译lk2nd和主线Linux内核。 首先讲解了lk2nd的基本概念及其作用,接着阐述了安装依赖、克隆源码及编译lk2nd的步骤。 随后,文章转向内核编译,包括获取依赖、定制内核配置,并提供了针对红米5Plus的配置文件。 lk2nd: "secondary" bootloader intended for devices where existing firmware cannot be replaced easily (most smartphones and tablets). It provides an Android Fastboot interface on devices where the stock bootloader does not provide Fastboot (e. Clone the lk2nd fork for Moto G6 and compile it with these instructions: Aug 1, 2022 · 备注1:lk2nd 0. Open-source software/firmware for Qualcomm Snapdragon 410 (MSM8916) devices (and similar platforms) - msm8916-mainline Mar 29, 2022 · One of the main purposes of lk2nd is to have a replacement for the stock bootloader "Odin mode" on many Samsung devices with sane fastboot implementation, which supports many more features like live booting and many others. Bij Oostraven vind je 16 sfeervolle individuele slaapkamers, een zeer royale werkzaal van 120 m², en een keuken die met liefde biologische maaltijden verzorgt in een warme, persoonlijke atmosfeer. It provides a standard Fastboot interface (even on Samsung devices!). g. lk2nd fastboot commands lk2nd includes a fastboot implementation and provides a selection of additional commands for debugging and development. 4 GHz) available as Snapdragon 412. img $ pmbootstrap flasher flash_rootfs If you want to install pmOS to an SD card instead of internal storage, you need to add --sdcard <device path> at the end of the install command. Install lk2nd. lk2nd is a custom bootloader for many different devices based on Qualcomm system-on-chips (SoCs), including smartphones, tablets, smartwatches and a few single board computers (SBCs). img via lk2nd, and it will boot that image unless an SD card with postmarketOS is inserted. It simplifies booting standard operating systems by providing: A unified boot and flashing interface (Android Fastboot), independent of device-specific modifications made to the boot chain (e. lk2nd is a bootloader for Qualcomm MSM devices (at the moment only MSM8916 and MSM8939), based on the CodeAurora Little Kernel fork. dts in the sources) Oct 30, 2024 · Note4X,主要用来刷机 PostmarketOS 系统。 PostmarketOS 是一个基于 Alpine Linux 的 Linux 系统,所以刷机后你的 手机 可以充当一台随身 服务器。你可以在上面安装 docker,练习服务器维护,练习网站部署,练习数据库维护等等,可玩性很强,所以分享一下。 手机解锁 BootLoader 刷机首先需要解锁设备的 BootLoader Jan 10, 2026 · lk2nd 可以与 Android 开源项目 (AOSP) 结合使用,帮助开发者更容易地在基于高通 SoC 的设备上启动和调试 Android 系统。 4. 2 postmarketOS postmarketOS 是一个为移动设备优化的 Linux 发行版,lk2nd 可以作为其引导加载程序,帮助用户在旧的智能手机上运行现代 Linux 系统。 lk2nd is a custom bootloader for many different devices based on Qualcomm system-on-chips (SoCs), including smartphones, tablets, smartwatches and a few single board computers (SBCs). Feb 22, 2023 · OpenStick 项目 fork 了 lk2nd, 硬编码了 EDL 键和 LED 的 gpio 进去, 为的是让 lk2nd 在作为 lk1st 使用时可以正常工作 (比如在开机亮灯时按住 EDL 键进入 fastboot 模式) 但这现在已经不需要了, lk2nd 加入了 LK1ST_DTB 参数, 可以在编译时指定设备树, 不用再手动硬编码了 Apr 23, 2024 · 5、刷入启动引导 fastboot flash boot 2-phosh-lk2nd. Jan 27, 2023 · We had lk2nd, bring fastboot back, and linux-panel-drivers, it’s the dtbs that arise when installing lk2nd, there is the ss_dsi panel line used to display images on the gpu chipset. com/OpenStick/OpenStick/releases h ttps://github. lk2nd is a custom bootloader for many different devices based on Qualcomm system-on-chips (SoCs), including smartphones, tablets, smartwatches and a few single board computers (SBCs). Aug 30, 2025 · Notes to flash lk2nd/lk1st firmware and PostmarketOS on UZ801 v3 MSM8916 dongles 2025/08/30 Found these $5 USB dongles that are actually entire computers using an old budget smartphone SoC. vzithipodtsmpiywdqybuhuxpankbvxabtcpjsglcwoqgziudwrrvzcvegll