official LineageOS on nicepool: APpatch patching fails but only if done via recovery sideload
Los mantenedores suelen responder en 3 días
@bmax121 ya está trabajando en esto.
Desde el 14/10/2026.
Evaluación
Este issue todavía no se ha evaluado.
Descripción
LineageOS on the nicepool Android TV box
when i run the APatch app in my phone and pass it nicepool's boot.img, the patch succeeds and produces an image. (the image has issues if flashed, but that is a different question.)
but if i sideload APatch (11224) to the LineageOS recovery (latest), the flash fails complaining that CONFIG_KALLSYMS is not set.
but it is set! in recovery:
nicepool:/ # zcat /proc/config.gz | grep 'KALLSYMS'
CONFIG_KALLSYMS=y
CONFIG_KALLSYMS_ALL=y
# CONFIG_KALLSYMS_ABSOLUTE_PERCPU is not set
CONFIG_KALLSYMS_BASE_RELATIVE=y
nicepool:/ # echo 1 > /proc/sys/kernel/kptr_restrict
nicepool:/ # head /proc/kallsyms -n3
ffffff8009080000 t _head
ffffff8009080000 T _text
ffffff8009080800 T do_undefinstr
i think the problem is that, although the kernel is 64-bit, the runtime environment (android and recovery) are 32-bit. afaik, this is how the reference platforms for these chips (Amlogic S905 family) are released. the reason is the small amount of ram and flash these devices have.
take a look:
nicepool:/ # uname -a
Linux localhost 4.9.337 #1 SMP PREEMPT Thu Aug 27 19:18:26 EDT 2026 armv8l Toybox
nicepool:/ # zcat /proc/config.gz | grep -E 'CONFIG_ARM64|CONFIG_64BIT'
CONFIG_ARM64=y
CONFIG_64BIT=y
CONFIG_ARM64_PAGE_SHIFT=12
CONFIG_ARM64_CONT_SHIFT=4
CONFIG_ARM64_ERRATUM_826319=y
CONFIG_ARM64_ERRATUM_827319=y
CONFIG_ARM64_ERRATUM_824069=y
CONFIG_ARM64_ERRATUM_819472=y
CONFIG_ARM64_ERRATUM_832075=y
CONFIG_ARM64_ERRATUM_845719=y
CONFIG_ARM64_ERRATUM_843419=y
CONFIG_ARM64_ERRATUM_1024718=y
CONFIG_ARM64_ERRATUM_1188873=y
CONFIG_ARM64_ERRATUM_1742098=y
CONFIG_ARM64_4K_PAGES=y
# CONFIG_ARM64_16K_PAGES is not set
# CONFIG_ARM64_64K_PAGES is not set
CONFIG_ARM64_VA_BITS_39=y
# CONFIG_ARM64_VA_BITS_48 is not set
CONFIG_ARM64_VA_BITS=39
CONFIG_ARM64_SSBD=y
CONFIG_ARM64_SW_TTBR0_PAN=y
CONFIG_ARM64_HW_AFDBM=y
CONFIG_ARM64_PAN=y
# CONFIG_ARM64_LSE_ATOMICS is not set
CONFIG_ARM64_VHE=y
CONFIG_ARM64_UAO=y
CONFIG_ARM64_MODULE_CMODEL_LARGE=y
CONFIG_ARM64_MODULE_PLTS=y
# CONFIG_ARM64_PTDUMP is not set
# CONFIG_ARM64_RANDOMIZE_TEXT_OFFSET is not set
CONFIG_ARM64_CRYPTO=y
nicepool:/ # getprop ro.product.cpu.abi
armeabi-v7a
nicepool:/ # getprop ro.zygote
zygote32
nicepool:/ # file /system/bin/linker
/system/bin/linker: ELF shared object, 32-bit LSB arm, EABI5, soft float, BuildID=75c044f4789ea6a2cdbe4e1eabe052dd, not stripped
nicepool:/ # file /system/bin/recovery
/system/bin/recovery: ELF shared object, 32-bit LSB arm, EABI5, soft float, dynamic (/system/bin/linker), for Android 35, BuildID=031ca530644a26fba6921755711e6271, stripped
now a different issue altogether is actually trying to boot the patched image. the device shows the bootloader splash image for a bit, then goes dark and bootloops. the reboot happens fairly quickly. i don't know how to start debugging this. maybe the device has a serial console inside, idk. i imagine the same issue happens in other S905 boxes.
- Lenguaje dominante
- C
- Estrellas
- 1.6k
- Forks
- 393
- Merge medio
- 3 d 23 h
- PR fusionados (30 d)
- 7
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de bmax121/KernelPatch
-
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
bmax121/KernelPatch#329 · 1 comentario ·
Los mantenedores suelen responder en 3 días
-
kernel stack overflow: handle_supercmd 与 supercmd_echo 各持 4KB 栈缓冲区嵌套,event 上报改写 argv 时栈耗尽 panicAbierto
Dificultad 4/5 3-5 días Aptitud para principiantes 45/100
bmax121/KernelPatch#323 ·
Los mantenedores suelen responder en 3 días
-
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
bmax121/KernelPatch#319 · 9 comentarios ·
Los mantenedores suelen responder en 3 días
-
SUPERCALL_KSTORAGE_LIST_IDS writes to an unvalidated userspace pointer with a raw memcpy → kernel KEAbierto
Dificultad 3/5 1-2 días Aptitud para principiantes 72/100
bmax121/KernelPatch#308 ·
Los mantenedores suelen responder en 3 días
-
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
bmax121/KernelPatch#306 ·
Los mantenedores suelen responder en 3 días
Todos los issues de bmax121/KernelPatch
Issues similares
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 95/100
containers/crun#2415 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
zephyrproject-rtos/zephyr#123423 ·
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 1 día
-
dspromote: /etc/exports uses -alldirs on non-mount-point directories, so mountd exports nothingAbiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 83/100
nextbsd/nextbsd-userland#434 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 77/100
Los mantenedores suelen responder en 1 día