01-16-2020, 04:47 AM
(01-15-2020, 12:01 PM)bisco Wrote: Hi, thanks for the installer script, that makes installing a nearly pure Debian much easier!
I was trying to build my own kernel based on the posts in this thread, but when cloning https://gitlab.manjaro.org/tsys/linux-pinebook-pro and then running
there are still a lot of unset kernel options and the config script goes through all of them.Code:make ARCH=arm64 pinebook_pro_defconfig
make KBUILD_IMAGE=arch/arm64/boot/Image bindeb-pkg
Did you first base the config on the config of the system you built the kernel on and then used the `pinebook_pro_defconfig`?
Currently I do the following to configure:
Code:
make pinebook_pro_defconfig
scripts/config --set-str LOCALVERSION -1-pinebookpro-arm64
scripts/config --enable COMPAT
scripts/config --disable MODULE_COMPRESS
scripts/config --enable PREEMPT
scripts/config --disable HARDEN_EL2_VECTORS
scripts/config --enable RTC_DRV_RK808
make olddefconfig
I think after changes on Thomas' side some of the above will be redundant but I haven't cleaned it up yet. However disabling MODULE_COMPRESS is mandatory for Debian and disabling HARDEN_EL2_VECTORS is needed for the maxcpus=4 boot time workaround to work correctly.
Once configured I build as follows (I adjust KVER by hand at present... but it would script quite easily).
Code:
KVER=5.4.2-1-pinebookpro-arm64
PVER=`git describe | sed -e 's/\(v[0-9]*[.][0-9]*\)-/\1.0-/' -e 's/^v//'-1`
chrt -i 0 make -j nproc \
KERNELRELEASE=KVER KDEB_PKGVERSION=PVER \
KBUILD_IMAGE=arch/arm64/boot/Image \
deb-pkg
Note that the KVER/PVER stuff is mostly there to ensure the packages can be parallel installed (e.g. if you apt update from my repo it doesn't clobber your existing kernel).
PS I'm happy to point you at my exact kernel sources if you have problems getting something working but, to be honest, putting focus on my kernel is just splitting the development community. Using the Manjaro kernel for your work is, IMHO, better for everyone for now... and you can switch to "real" mainline as soon as Thomas' lands the remaining patches.