Rofikkernel / qgki_kona_5.4

My Project to Port QCOM Kona GKI / QGKI specialy used in Xiaomi Device Alioth/POCO F3 & apollo (partially) with Kona Chipset from 4.19 Kernel to 5.4 , tutorial porting device tree on Youtube link
https://youtu.be/Guy_mShLUbs
GNU General Public License v2.0
1 stars 1 forks source link

How is the progress going #2

Open zfdx123 opened 1 year ago

zfdx123 commented 1 year ago

First of all, thank you for porting the kernel. May I know the current status of the kernel and whether it is possible to start the device (alioth)

Thank you for your work, respected developer

Rofikkernel commented 1 year ago

you are wellcome @zfdx123 , i need more contributors, currently status is not boot yet because need something todo:

-- device tree still containing some warning i am not solved yet about graph & range

Techpack some Audio newer gki techpack contain not compiled code, need find correct one

still moree need more discussion like telegram

zfdx123 commented 1 year ago

I used to have a ROM unpacking tool for reference https://github.com/zfdx123/k40-build-rom/ I have not been familiar with the vendor boot partition, but the vendor can be extracted from super, and simg2img can convert this img. Extract the vendor partition and then mount it or open the file in 7zip. In the project, it is also mentioned to understand the package and packaging methods, which can be referred to for reference

Dear developer, I wish you all the best

Rofikkernel commented 1 year ago

thanks for the tools, in aosp source we can build vendor.img from scratch but currently vendor source available is for lineageos something like that, not miui tree

so can that tool repacked again edited files vendor (after extract because read only) back to vendor.img or super.img thanks @zfdx123

for vendor_boot we can using tool by @cfig Android_boot_image_editor

Rofikkernel commented 1 year ago

based on google doc we need generated modules dep file, found a way in here for other machine instead host https://unix.stackexchange.com/questions/401138/kernel-compilation-generate-modules-dep-and-map-files

zfdx123 commented 1 year ago

thanks for the tools, in aosp source we can build vendor.img from scratch but currently vendor source available is for lineageos something like that, not miui tree

so can that tool repacked again edited files vendor (after extract because read only) back to vendor.img or super.img thanks @zfdx123

for vendor_boot we can using tool by @cfig Android_boot_image_editor

I haven't tested it, but you can test it according to the relevant code, and I think it's OK.

zfdx123 commented 1 year ago

based on google doc we need generated modules dep file, found a way in here for other machine instead host https://unix.stackexchange.com/questions/401138/kernel-compilation-generate-modules-dep-and-map-files

A tedious process.

Rofikkernel commented 1 year ago

ops i am using wrong kernel config fragment, i am using compliant version instead qgki or consolidate , someone in china forum give more detail about quallcomm gki & qgki for lahaina ..

zfdx123 commented 1 year ago

This forum is very poor, a lot of content may be false.

Rofikkernel commented 1 year ago

no problem, the more resources the more we found proper way to implement that , can you help me for download this Gki pdf file like that apps need cn app social to download

zfdx123 commented 1 year ago

I will send it to your email

Rofikkernel commented 1 year ago

here brother : rsoft3d@gmail.com

thanks

zfdx123 commented 1 year ago

In order to avoid unnecessary trouble, it has been sent to your mailbox. Please check it carefully. The title is FORM zfdx123.

Rofikkernel commented 1 year ago

thanks @zfdx123 , the page still contain many cn language, but it still give me more clue what remaining needed,thanks

zfdx123 commented 1 year ago

Perhaps you can learn Chinese, brother

Come on, hold onto contact here

Rofikkernel commented 1 year ago

thats good idea brother :)

Rofikkernel commented 1 year ago

wohoo the doc can be translated to EN. so it right module placement in vendor-boot.img

zfdx123 commented 1 year ago

Does this mean that the system also needs to be refactored

Rofikkernel commented 1 year ago

i need to to more digging about that, how kernel + gki modules loaded into system instead built in like 4.19, hope it not needed refactoring

Rofikkernel commented 1 year ago

kernel is build and succes integrate all required module to vendor_boot next step to do replace module in vendor/lib/modules (based on xda gki load in two partition https://www.xda-developers.com/google-generic-kernel-image/)

next like ly we cannot use our bootloader CMD line because it designed to boot old kernel,we need force use kernel cmd line boot with full command

zfdx123 commented 1 year ago

I suggest adding an armoops partition for easy access to the KP log

Rofikkernel commented 1 year ago

thank brother, still working on bring it

zfdx123 commented 1 year ago

I've been waiting for your good news, brother.

Rofikkernel commented 1 year ago

i made update here brother, and working on 5.15 gki kernel for alioth https://t.me/aospdevqualcomm

and made a porting guide alioth kona 4.19 to 5.15 kernel in yt https://youtu.be/Guy_mShLUbs