Thanks for this new version!
Did you manage to solve the encryption problem I mentioned in
this post?
Once again I tried to encrypt the phone. Some seconds after the start of the encryption the screen turns off for some seconds. Then the screen turns on again but the encryption is stopped.
Any hints?
I remember looking into this a little when you posted about it originally. I only found things related to Qualcomm when I was looking at Lineages code review. I am away from home until the end of the week,but I will try to look into this again when I am back and see if I can find anything out about it.
May I ask, how do you include such a kernel in the rom (zip)?
From android.com:
Code:
Copy the Image.lz4-dtb to the respective kernel binary location within the AOSP tree and rebuild the boot image.
But when I build it separately and run make afterwards, the scripts is complaining that kernel dir isn't empty. and I should do mrproper ... (So where / what is the correct kernel binary location; what files do I need to copy?)
Code:
export TARGET_PREBUILT_KERNEL=DIST_DIR/Image.lz4-dtb
I get this errors : (problem with linux headers??)
Code:
FAILED: [...]out/soong/.intermediates/vendor/lineage/build/soong/generated_kernel_includes/gen/.dummy_dep
[...]out/soong/host/linux-x86/bin/sbox --sandbox-path [...]out/soong/.temp --output-root [...]out/soong/.intermediates/vendor/lineage/build/soong/generated_kernel_includes/gen --copy-all-output -c 'make -j CFLAGS_MODULE="-fno-pic" -C O=__SBOX_OUT_DIR__ ARCH=arm CROSS_COMPILE="/usr/bin/ccache arm-linux-androidkernel-" headers_install' && touch [...]out/soong/.intermediates/vendor/lineage/build/soong/generated_kernel_includes/gen/.dummy_dep
make: *** O=[...]out/soong/.temp/sbox602528744: No such file or directory. Stop.
sbox command (make -j CFLAGS_MODULE="-fno-pic" -C O=[...]out/soong/.temp/sbox602528744 ARCH=arm CROSS_COMPILE="/usr/bin/ccache arm-linux-androidkernel-" headers_install) failed with err "exit status 2"
[ 74% 55599/74493] //frameworks/base:gen-platform-proto-constants generate
ninja: build stopped: subcommand failed.
11:42:35 ninja failed with: exit status 1
Well,if you have and are building with the full Lineage sources it is rather easy. First you need to revert my commit where I enabled the optimization flags as this wont build with the stock google toolchain. Then just run "source ./build/envsetup.sh" followed by "lunch lineage_kminilte-userdebug" and then just mka bootimage. This will build a flashable boot.img that you can just flash in TWRP.
I have had some issues before doing this whcih I have always solved by either changing into the samsung/kminilte kernel directory and running "make mrproper". If this doesn't work just re-clone the kernel and then it should be fine (I've needed to do this once or twice in the past. Not real sure why off hand.
If you want to build without using the Lineage sources and just build the kernel alone you need to download a toolchain (I linked the one I use in the post you quoted) Then you can use the optimization flags,but you will need to use anykernel or create the ramdisk with bootimg tools or similar for it to work. You would via terminal:
* cd into kernel source directory
* export ARCH=arm
* export CROSS_COMPILE= "path to toolchain"/bin/arm-linaro-linux-androideabi- (this is assuming you use the one I linked)
* make kminilte_00_defconfig
* make -jx (where x is the number of cores of you cpu)
Then you would need to use anykernel or something.
Hope this helps some.