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 Sway Theme Broken Eighty8 1 807 03-08-2024, 08:41 AM
Last Post: tophneal
Question Manjaro with Full Disk Encryption and GRUB dumetrulo 1 2,341 02-02-2024, 02:45 AM
Last Post: frankkinney
  Manjaro network problem late 2023 acruhl 1 837 01-19-2024, 11:32 PM
Last Post: Kevin Kofler
  Help installing Manjaro on eMMC of Pinebook Pro pine4546464 4 3,258 12-13-2023, 07:22 PM
Last Post: trillobite
  Need Help Recovering Manjaro /boot Contents on Pinebook Pro calinb 6 3,530 12-11-2023, 03:47 AM
Last Post: calinb
  Manjaro 20.04 not loading from SD (with Manjaro on eMMC) zaius 1 894 12-07-2023, 03:11 PM
Last Post: wdt
  Manjaro ARM: enabling external monitors & fixing Broadcom WiFi after updating trifleneurotic 2 1,653 11-14-2023, 10:57 AM
Last Post: trifleneurotic
  How to mainline kernel on daniel thompson's debian installer? hellojack 14 9,889 09-07-2023, 09:38 PM
Last Post: Der Geist der Maschine
  Manjaro [ARM Stable Update] 2021-07-23 issues Bocanila 1 2,413 08-21-2023, 09:10 PM
Last Post: vanessadonald
  [Manjaro] u-boot won't boot from eMMC with (unbootable) SD card present zackw 1 2,509 08-21-2023, 09:08 PM
Last Post: vanessadonald

Forum Jump:


Users browsing this thread: 1 Guest(s)