Building custom kernel (5.11.x) for Manjaro?
#1
Question 
Just received my PBP and would like to rebuild kernel for Manjaro with some custom settings.

I just cannot find any pointers how I'm able to rebuild recent kernel and from what repo's (including patches)?
  Reply
#2
(05-07-2021, 11:44 PM)ppafin Wrote: Just received my PBP and would like to rebuild kernel for Manjaro with some custom settings.

I just cannot find any pointers how I'm able to rebuild recent kernel and from what repo's (including patches)?

I currently have the kernel which came pre-installed on my new PBP:

Code:
Linux bp 5.12.2-2-MANJARO-ARM #1 SMP Sat May 8 20:04:09 UTC 2021 aarch64 GNU/Linux

I tried to rebuild the kernel using ABS, as documented here: https://wiki.archlinux.org/title/Kernel/...ild_System and left most of the options unchanged (so that it should use the config of the current kernel. I end up with the following error during build

crypto/aegis128-neon-inner.c: In function ‘crypto_aegis128_init_neon’:
crypto/aegis128-neon-inner.c:150:3: error: incompatible types when initializing type ‘unsigned char’ using type ‘uin
t8x16_t
 150 |   k ^ vld1q_u8(const0),
     |   ^
crypto/aegis128-neon-inner.c:151:3: error: incompatible types when initializing type ‘unsigned char’ using type ‘uin
t8x16_t
 151 |   k ^ vld1q_u8(const1),
     |  



This seems to be a known bug in gcc (I'm using the 10.2.0 version from core) which is fixed in later version, so now I'm going to install gccjit and try again.

If anyone has any advice or questions I'd be pleased to hear them.
  Reply
#3
By the way the gcc bug is https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96377 and it seems like it was fixed in 10.3.
  Reply
#4
Hey, i started to build the kernel from source too, and the cleanest way i found is to use the PKGBUILD provided by the ManjaroARM guys (https://gitlab.manjaro.org/manjaro-arm/p...r/PKGBUILD) and than add what you want in the script. I simply add commands in the build() section
PinebookPro v2.1 4xA53@1704Mhz / 2xA72@2208Mhz / GPU@1125Mhz / CCI-500@1200Mhz
  Reply
#5
Problem solved, built new kernel for pbp from mege's repository (https://github.com/megous/linux.git):

# Clone mege kernel
git clone https://github.com/megous/linux.git

# Set variables (using buildroot built toolchain)
CWD=`pwd`
OUT=$CWD/builds
mkdir -p $KBUILD_OUTPUT $OUT/pc2
export KBUILD_OUTPUT=$OUT/.tmp/linux-arm64
export PATH="$PATH:~/buildroot/output/host/bin"
export CROSS_COMPILE=aarch64-linux-
export ARCH=arm64

# Checkout orange-pi-x.xx branch
cd linux
git checkout orange-pi-5.13
cd ..

# Use 'pinebook_pro_defconfig' config
make -C linux pinebook_pro_defconfig

# NOTE: Check wifi blob before build
make -j5 -C linux clean
make -j5 -C linux Image dtbs

# Output
ls ~/builds/.tmp/linux-arm64/arch/arm64/boot
dts Image
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Manjaro -box64 and wine -Help Mangled 0 84 11-20-2021, 01:51 PM
Last Post: Mangled
  How to mainline kernel on daniel thompson's debian installer? hellojack 6 407 11-16-2021, 02:41 PM
Last Post: TRS-80
  RAM deficiency after recent large Manjaro update? stozi 1 149 11-12-2021, 06:19 AM
Last Post: maxjrh
  Kernel panics solostian 13 1,448 11-08-2021, 02:24 PM
Last Post: TRS-80
  red/green power led not working with kernel 5.14 alchemist 4 555 11-04-2021, 04:09 AM
Last Post: alchemist
  Yubikey 5C on manjaro zeb11 3 481 10-02-2021, 09:33 AM
Last Post: zeb11
  Manjaro - Internet connection sharing requires dnsmasq (but the dep isn't declared) Dendrocalamus64 0 298 09-11-2021, 05:25 PM
Last Post: Dendrocalamus64
  Pinebook pro nearly unusable after using manjaro-arm-installer TheCounselor 2 1,193 09-07-2021, 08:34 PM
Last Post: TRS-80
  Working suspend on Manjaro brzegorz 2 849 07-30-2021, 06:21 AM
Last Post: vssz
  Manjaro and Arch repository with privacy oriented software as400 78 51,332 07-28-2021, 05:24 AM
Last Post: llsf

Forum Jump:


Users browsing this thread: 1 Guest(s)