MiCode / MiCode/Xiaomi_Kernel_OpenSource

Redmi A1 (ice) — Incomplete Kernel Source: Missing Drivers and Unbuildable Source Tree

Open
#40,548 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
No language data
Stars
9.9k
Forks
4.1k
PR merge metrics
PR metrics pending

Description

Hello MiCode team,

My name is Matheus, and I am reporting a critical issue with the kernel source published for the Redmi A1 / POCO C50 under the branch ice-s-oss.

The kernel source is incomplete and cannot be compiled, even though the correct defconfig is provided.

Below is a clear list of problems encountered:

  1. Missing driver directories (SOLOMON)
    The following file is referenced but does not exist:

drivers/input/touchscreen/mediatek/SOLOMON/Makefile

Make errors:

drivers/input/touchscreen/mediatek/SOLOMON/Makefile: No such file or directory

Multiple Makefiles reference the same missing directory.

  1. Assembly files contain invalid/truncated code
    During the build, this error appears:

Error: junk at the end of line, first unrecognized character is '#'

This indicates truncated or corrupted source files, meaning the published code is not the same as the kernel shipped on the device.

  1. make mrproper fails
    Running:

make mrproper

produces errors related to missing folders referenced by Makefiles. This confirms the source tree is incomplete.

  1. Source does not match the kernel from the stock ROM
    Because of the missing drivers and corrupted assembly files, it is impossible to reproduce the stock kernel image.

Under GPLv2, Xiaomi is required to publish the complete corresponding source code necessary to rebuild the kernel used in production firmware. The current release does not meet GPL requirements.

Device Information

  • Device: Redmi A1 / POCO C50
  • Codename: ice
  • Branch: ice-s-oss
  • Kernel version: 4.19.191
  • Build environment: Void Linux + aarch64/arm toolchains

Please provide:

  • A corrected and complete kernel source tree for the Redmi A1 (ice)

I can provide full build logs if needed.

Thank you,
Matheus

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the ice-s-oss branch and the provided defconfig, then run make mrproper and the kernel build to reproduce the reported failures. Inspect the Makefiles referencing drivers/input/touchscreen/mediatek/SOLOMON/Makefile and the assembly files producing the truncation error. Done means a complete source tree passes cleanup and builds the kernel matching the stock ROM.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, linux
Domain
mobile-dev, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.