Fauxly / android_device_xiaomi_unicorn

Xiaomi 12S PRO
2 stars 1 forks source link

Hello,I‘m also trying making lineage-based ROMS for unicorn #1

Open RITEFANG opened 10 months ago

RITEFANG commented 10 months ago

This machine has relatively limited resources and I encountered many difficulties during the compilation process. I don't know if this machine can be added to the sm8450 common? I have seen many similar machines, including Zeus (12 Pro, 8GEN1), Mondrian (K60/POCO, 8+GEN1), Editing (K50U/POCO, 8/GEN1), and Marble (Redmi Note 12 Turbo, 7+GEN2), all of which use SM8450 source code. This machine has relatively few resources, and I accounted for a lot of differences during compilation I wonder if this machine can be added to sm8450 common? I have seen many similar machines including Zeus (12 Pro, 8GEN1), Mondrian (K60/POCO, 8+GEN1), Editing (K50U/POCO, 8+GEN1), Marble (Redmi Note 12 Turbo, 7+GEN2), etc., all of which are using the SM8450 source code.

Fauxly commented 10 months ago

Hi, this my work https://sourceforge.net/projects/xiaomi-12s-pro-custom-rom/files/

RITEFANG commented 10 months ago

Hi, this my work https://sourceforge.net/projects/xiaomi-12s-pro-custom-rom/files/

Thank you!I want to make a new device tree based on common tree so that we could make more roms.

Fauxly commented 10 months ago

I think it's worth trying to create a common device tree

RITEFANG commented 10 months ago

I think it's worth trying to create a common device tree

I found that i need kernel-headers.I guess that are generated by gki kernel source.Now i have crDroid-14 source and lineage-21 source.I'll try to build one.For camera we could build miuicamera like zeus project(12 pro).

RITEFANG commented 10 months ago

[100% 1027/1027] analyzing Android.bp files and generating ninja file at out/soong/build.ninja FAILED: out/soong/build.ninja cd "$(dirname "out/host/linux-x86/bin/soong_build")" && BUILDER="$PWD/$(basename "out/host/linux-x86/bin/soong_build")" && cd / && env -i "$BUILDER" --top "$TOP" --soong_out "out/soong" --out "out" -o out/soong/build.ninja --bazel-mode --globListDir build --globFile out/soong/globs-build.ninja -t -l out/.module_paths/Android.bp.list --available_env out/soong/soong.environment.available --used_env out/soong/soong.environment.used.build Android.bp error: vendor/qcom/opensource/dataservices/rmnetctl/Android.bp:34:1: "librmnetctl" depends on undefined module "qti_kernel_headers". Module "librmnetctl" is defined in namespace "vendor/qcom/opensource/dataservices" which can read these 2 namespaces: ["vendor/qcom/opensource/dataservices" "."] Module "qti_kernel_headers" can be found in these namespaces: ["hardware/google/pixel"] Or did you mean ["qti_cvp_kernel_headers" "qti_eva_kernel_headers"]? 19:56:55 soong bootstrap failed with: exit status 1

Do we still need to use kernel headers when using the prebuilt kernel? If necessary, how to make kernel headers?

Fauxly commented 10 months ago

what sources are you using?

RITEFANG commented 10 months ago

what sources are you using?

https://github.com/Fauxly/android_device_xiaomi_unicorn.git your device tree. I don't know if I need to add some extra source code, even if using pre made kernels and modules. Especially kernel headers and so on.

RITEFANG commented 10 months ago

In the past, when compiling for old machines, ROMs were always compiled together with the kernel. Now all new machines are using GKI method, which makes me a bit confused. I need to learn new knowledge.

Fauxly commented 10 months ago

what sources are you using?

https://github.com/Fauxly/android_device_xiaomi_unicorn.git your device tree. I don't know if I need to add some extra source code, even if using pre made kernels and modules. Especially kernel headers and so on.

what kernel sources are you using?

Fauxly commented 10 months ago

In the past, when compiling for old machines, ROMs were always compiled together with the kernel. Now all new machines are using GKI method, which makes me a bit confused. I need to learn new knowledge.

there is no gki kernel source for unicorn

Fauxly commented 10 months ago

Use this source code

https://github.com/LowTension/android_kernel_xiaomi_sm8475

these kernel sources are compiled as for old machines, not as for gki

unicorn_defconfig included

Kernel work on miui and custom rom I checked

Fauxly commented 10 months ago

what sources are you using?

https://github.com/Fauxly/android_device_xiaomi_unicorn.git your device tree. I don't know if I need to add some extra source code, even if using pre made kernels and modules. Especially kernel headers and so on.

I didn't add kernel headers, I'm using everything from the stock firmware.

RITEFANG commented 10 months ago

what sources are you using?

https://github.com/Fauxly/android_device_xiaomi_unicorn.git your device tree. I don't know if I need to add some extra source code, even if using pre made kernels and modules. Especially kernel headers and so on.

I didn't add kernel headers, I'm using everything from the stock firmware.

I want to use stock drivers but it still tells me that there is a lack of QTI Kernel Header."librmnetctl" depends on undefined module "qti_kernel_header".Did I miss any necessary operations when using your device tree?

RITEFANG commented 8 months ago

Hi bro! My crd10 has successfully booted but vendor_dlkm has some issues that caused bad camera i change to use arian's vendor_dlkm and camera fixed. Screenshot_20240306-214945_设置