Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How is the progress going #2

Open
zfdx123 opened this issue Aug 28, 2023 · 23 comments
Open

How is the progress going #2

zfdx123 opened this issue Aug 28, 2023 · 23 comments

Comments

@zfdx123
Copy link

zfdx123 commented Aug 28, 2023

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
Copy link
Owner

Rofikkernel commented Aug 28, 2023

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

  • load gki kernel modules
    in kernel 5 gki all vendor specific turn to be modules instead part of kernel, so need load that module
    properly, my bet is vendor/lib/modules (but confuse some say it only for GSI)
    but still not found correct way to repack erofs unpacked vendor.img (my bet using simg2img)
    -- modules on google documentation
    on google doc it say modules load from vendor_boot lib/modules folder , (still testing), our alioth vendor_boot ramdisk only contains first_stage

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

still moree
need more discussion like telegram

@zfdx123
Copy link
Author

zfdx123 commented Aug 28, 2023

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
Copy link
Owner

Rofikkernel commented Aug 28, 2023

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
Copy link
Owner

Rofikkernel commented Aug 28, 2023

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
Copy link
Author

zfdx123 commented Aug 28, 2023

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
Copy link
Author

zfdx123 commented Aug 28, 2023

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
Copy link
Owner

Rofikkernel commented Aug 28, 2023

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
Copy link
Author

zfdx123 commented Aug 28, 2023

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

@Rofikkernel
Copy link
Owner

Rofikkernel commented Aug 28, 2023

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
Copy link
Author

zfdx123 commented Aug 28, 2023

I will send it to your email

@Rofikkernel
Copy link
Owner

here brother : [email protected]

thanks

@zfdx123
Copy link
Author

zfdx123 commented Aug 28, 2023

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

@Rofikkernel
Copy link
Owner

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

@zfdx123
Copy link
Author

zfdx123 commented Aug 28, 2023

Perhaps you can learn Chinese, brother

Come on, hold onto contact here

@Rofikkernel
Copy link
Owner

thats good idea brother :)

@Rofikkernel
Copy link
Owner

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

@zfdx123
Copy link
Author

zfdx123 commented Aug 28, 2023

Does this mean that the system also needs to be refactored

@Rofikkernel
Copy link
Owner

Rofikkernel commented Aug 28, 2023

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
Copy link
Owner

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
Copy link
Author

zfdx123 commented Aug 29, 2023

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

@Rofikkernel
Copy link
Owner

thank brother, still working on bring it

@zfdx123
Copy link
Author

zfdx123 commented Sep 15, 2023

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

@Rofikkernel
Copy link
Owner

Rofikkernel commented Sep 25, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants