[Fire HD 8 and HD 10 General] Kaijones23:
oh ok but every time I build with the kernel it is configured with arm 64. but the system info says it is in 32-bit mode and at the end of the compiling I get this error

[FAILED: out/target/product/karnak/dex_bootjars/system/framework/boot.prof

/bin/bash -c "ANDROID_LOG_TAGS="*:e" out/host/linux-x86/bin/profman	--create-profile-from=frameworks/base/config/boot-image-profile.txt	--reference-profile-file=out/target/product/karnak/dex_bootjars/system/framework/boot.prof"

profman E 04-14 11:59:30 28979 28979 profman.cc:78] APK files must be specified

profman E 04-14 11:59:30 28979 28979 profman.cc:78] Command: out/host/linux-x86/bin/profman --create-profile-from=frameworks/base/config/boot-image-profile.txt --reference-profile-file=out/target/product/karnak/dex_bootjars/system/framework/boot.prof

profman E 04-14 11:59:30 28979 28979 profman.cc:78] Usage: profman [options]...

profman E 04-14 11:59:30 28979 28979 profman.cc:78]

profman E 04-14 11:59:30 28979 28979 profman.cc:78] --dump-only: dumps the content of the specified profile files

profman E 04-14 11:59:30 28979 28979 profman.cc:78] to standard output (default) in a human readable form.

profman E 04-14 11:59:30 28979 28979 profman.cc:78]

profman E 04-14 11:59:30 28979 28979 profman.cc:78] --dump-output-to-fd=<number>: redirects --dump-only output to a file descriptor.

profman E 04-14 11:59:30 28979 28979 profman.cc:78]

profman E 04-14 11:59:30 28979 28979 profman.cc:78] --dump-classes-and-methods: dumps a sorted list of classes and methods that are

profman E 04-14 11:59:30 28979 28979 profman.cc:78] in the specified profile file to standard output (default) in a human

profman E 04-14 11:59:30 28979 28979 profman.cc:78] readable form. The output is valid input for --create-profile-from

profman E 04-14 11:59:30 28979 28979 profman.cc:78]

profman E 04-14 11:59:30 28979 28979 profman.cc:78] --profile-file=<filename>: specify profiler output file to use for compilation.

profman E 04-14 11:59:30 28979 28979 profman.cc:78] Can be specified multiple time, in which case the data from the different

profman E 04-14 11:59:30 28979 28979 profman.cc:78] profiles will be aggregated.

profman E 04-14 11:59:30 28979 28979 profman.cc:78]

profman E 04-14 11:59:30 28979 28979 profman.cc:78] --profile-file-fd=<number>: same as --profile-file but accepts a file descriptor.

profman E 04-14 11:59:30 28979 28979 profman.cc:78] Cannot be used together with --profile-file.

profman E 04-14 11:59:30 28979 28979 profman.cc:78]

profman E 04-14 11:59:30 28979 28979 profman.cc:78] --reference-profile-file=<filename>: specify a reference profile.

profman E 04-14 11:59:30 28979 28979 profman.cc:78] The data in this file will be compared with the data obtained by merging

profman E 04-14 11:59:30 28979 28979 profman.cc:78] all the files specified with --profile-file or --profile-file-fd.

profman E 04-14 11:59:30 28979 28979 profman.cc:78] If the exit code is EXIT_COMPILE then all --profile-file will be merged into

profman E 04-14 11:59:30 28979 28979 profman.cc:78] --reference-profile-file.

profman E 04-14 11:59:30 28979 28979 profman.cc:78]

profman E 04-14 11:59:30 28979 28979 profman.cc:78] --reference-profile-file-fd=<number>: same as --reference-profile-file but

profman E 04-14 11:59:30 28979 28979 profman.cc:78] accepts a file descriptor. Cannot be used together with

profman E 04-14 11:59:30 28979 28979 profman.cc:78] --reference-profile-file.

profman E 04-14 11:59:30 28979 28979 profman.cc:78]

profman E 04-14 11:59:30 28979 28979 profman.cc:78] --generate-test-profile=<filename>: generates a random profile file for testing.

profman E 04-14 11:59:30 28979 28979 profman.cc:78] --generate-test-profile-num-dex=<number>: number of dex files that should be

profman E 04-14 11:59:30 28979 28979 profman.cc:78] included in the generated profile. Defaults to 20.

profman E 04-14 11:59:30 28979 28979 profman.cc:78] --generate-test-profile-method-percentage=<number>: the percentage from the maximum

profman E 04-14 11:59:30 28979 28979 profman.cc:78] number of methods that should be generated. Defaults to 5.

profman E 04-14 11:59:30 28979 28979 profman.cc:78] --generate-test-profile-class-percentage=<number>: the percentage from the maximum

profman E 04-14 11:59:30 28979 28979 profman.cc:78] number of classes that should be generated. Defaults to 5.

profman E 04-14 11:59:30 28979 28979 profman.cc:78] --generate-test-profile-seed=<number>: seed for random number generator used when generating random test profiles. Defaults to using NanoTime.

profman E 04-14 11:59:30 28979 28979 profman.cc:78] --create-profile-from=<filename>: creates a profile from a list of classes and methods.

profman E 04-14 11:59:30 28979 28979 profman.cc:78] --dex-location=<string>: location string to use with corresponding

profman E 04-14 11:59:30 28979 28979 profman.cc:78] apk-fd to find dex files

profman E 04-14 11:59:30 28979 28979 profman.cc:78] --apk-fd=<number>: file descriptor containing an open APK to

profman E 04-14 11:59:30 28979 28979 profman.cc:78] search for dex files

profman E 04-14 11:59:30 28979 28979 profman.cc:78] --apk-=<filename>: an APK to search for dex files

profman E 04-14 11:59:30 28979 28979 profman.cc:78] --skip-apk-verification: do not attempt to verify APKs

profman E 04-14 11:59:30 28979 28979 profman.cc:78] --generate-boot-image-profile: Generate a boot image profile based on input

profman E 04-14 11:59:30 28979 28979 profman.cc:78] profiles. Requires passing in dex files to inspect properties of classes.

profman E 04-14 11:59:30 28979 28979 profman.cc:78] --boot-image-class-threshold=<value>: specify minimum number of class occurrences

profman E 04-14 11:59:30 28979 28979 profman.cc:78] to include a class in the boot image profile. Default is 10.

profman E 04-14 11:59:30 28979 28979 profman.cc:78] --boot-image-clean-class-threshold=<value>: specify minimum number of clean class

profman E 04-14 11:59:30 28979 28979 profman.cc:78] occurrences to include a class in the boot image profile. A clean class is a

profman E 04-14 11:59:30 28979 28979 profman.cc:78] class that doesn't have any static fields or native methods and is likely to

profman E 04-14 11:59:30 28979 28979 profman.cc:78] remain clean in the image. Default is 3.

profman E 04-14 11:59:30 28979 28979 profman.cc:78] --boot-image-sampled-method-threshold=<value>: minimum number of profiles a

profman E 04-14 11:59:30 28979 28979 profman.cc:78] non-hot method needs to be in order to be hot in the output profile. The

profman E 04-14 11:59:30 28979 28979 profman.cc:78] default is max int.

profman E 04-14 11:59:30 28979 28979 profman.cc:78] --copy-and-update-profile-key: if present, profman will copy the profile from

profman E 04-14 11:59:30 28979 28979 profman.cc:78] the file passed with --profile-fd(file) to the profile passed with

profman E 04-14 11:59:30 28979 28979 profman.cc:78] --reference-profile-fd(file) and update at the same time the profile-key

profman E 04-14 11:59:30 28979 28979 profman.cc:78] of entries corresponding to the apks passed with --apk(-fd).

profman E 04-14 11:59:30 28979 28979 profman.cc:78] ]

and it was close to finishing. but its fustrating that i cant figure out what it can be done.

heres my device tree

https://github.com/488315/android_device_amazon_karnak/tree/lineage-16.0

heres my kernel source

https://github.com/488315/android_kernel_mediatek_mt8163

you can fix what is wrong with my source. and add a note to it so i can fix it for compilation.

What I am trying to figure out is that when I build this device with the arm64 config it builds 64-bit based system but I want it in 32-bit mode. that's why I had to use the prebuilt kernel. it is not easy at the end because I keep getting the profman error and idk why. I really need help and you can join my discord channel at https://discord.gg/ZYZuBMu.

what patch did you add to the source to make kernel work with pie?

thanks and sorry if it is too long.