Xiaomi_Kernel_OpenSource icon indicating copy to clipboard operation
Xiaomi_Kernel_OpenSource copied to clipboard

GPL Request: Complete, buildable and bootable kernel source for Xiaomi 11T, codename agate, branch agate-u-oss

Open 1tovgar opened this issue 5 months ago • 4 comments

Dear @mi-code,

I am writing to report that the kernel source for Xiaomi 11T, branch agate-u-oss, appears to be incomplete or broken.

For the past three weeks, I have tried to boot into the binary compiled from the kernel source but failed. I used the defconfigs provided in the kernel source and also tried extracting the config from the device running a 4.19 kernel, but the kernel refuses to boot. Neither using the build script nor compiling the kernel manually produces a bootable binary.

Regarding defconfigs: agate_defconfig seems to provide the least painful way to compile the kernel, but none of the defconfigs provided in the tree have resulted in a bootable system.

While attempting to compile the kernel with the clang version used to build the 4.19 kernel for HyperOS 1, version r383902, I noticed that some Makefiles in the drivers/ folder include dead entries. This is not toolchain-specific. This raises suspicion that some files—possibly important enough to make the binary bootable—were stripped out before publishing the branch.

The current condition of the OSS kernel violates GPLv2, under which the Linux kernel is licensed. Paragraph 3 suggests that we should receive a complete, corresponding source for the binary, but I and other developers cannot verify the "completeness" without a bootable binary.

I kindly ask for the branch to be reviewed and fixed to the state in which it can provide the exact kernel binary used in HyperOS 1 for the Xiaomi 11T. Otherwise, I will have to reopen this case as an ongoing GPLv2 violation, as this situation only contributes to your apparent non-compliance.

Sincerely, tovgar.

1tovgar avatar Jun 16 '26 17:06 1tovgar

Providing logs from kernel build process. kernel.log utilizes agate_defconfig, k6893v1_64_k419_defconfig and gki_defconfig kernel.log kernel-agate_defconfig.log kernel-agate_defconfig_and_k6893-v419.log

1tovgar avatar Jun 19 '26 08:06 1tovgar

Re-opened my report to the SFC as a Malicious Compliance.

1tovgar avatar Jun 30 '26 07:06 1tovgar

Dear tovgar, Thank you for your detailed feedback regarding the incomplete agate-u-oss kernel branch for Xiaomi 11T.

We have pushed the revised source code to the Xiaomi_Kernel_OpenSource repository. Please pull the latest commits on agate-u-oss and attempt to compile the kernel image again.

If you encounter any further build or boot problems after syncing the latest source, feel free to reply to this thread with your build logs and we will assist you promptly.

Best regards, mi-code

mi-code avatar Jul 14 '26 03:07 mi-code

Dear mi-code,

I am writing to report that the updated kernel source for Xiaomi 11T, branch agate-u-oss, provides a bootable and fully-working binary.

Thank you for cooperation.

Sincerely, tovgar.

1tovgar avatar Jul 17 '26 11:07 1tovgar