Building FP1 Kernel

I thought about porting PostmarketOS to the FP1. For that I’d need a working kernel.

The first hurdle is to get the kernel to compile. I fetched the code from https://support.fairphone.com/hc/en-us/articles/201576803-Fairphone-1-Source-Code-Packages and did as instructed in the README:

cd kernel
TARGET_BUILD_VARIANT=user TARGET_PRODUCT=ahong89_wet_jb2 MTK_ROOT_CUSTOM=../mediatek/custom/ make

However, this fails:

make: *** No rule to make target ‘…/mediatek/config/out/ahong89_wet_jb2/autoconfig/kconfig’, needed by ‘.config’. Stop.

In case this has to do with missing Mediatek drivers, I’m also open to disabling the necessary parts for now. The goal right now is to be able to boot to a graphical system, that’s all.

Any ideas how to get the kernel to compile? Maybe @danxuliu can help? Other help w.r.t. porting would also be appreciated :slight_smile: Right now I have a bunch of pmbootstrap configuration files and don’t really know what I’m doing :sweat_smile:


If you want to build the stock kernel, you can look at https://github.com/z3ntu/cyanogenmod_fairphone_fp1/blob/master/build_fp_kernel.sh (it worked when I wrote it ;)).
Dunno about the kernel from @danxuliu (https://gitlab.com/danxuliu/android_kernel_fairphone_fp1)

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.