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@1100Mhz / 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
  Pinebook Pro Manjaro Power Savinng Tips HelpMyBatteryIsDraining 1 84 06-15-2021, 08:42 AM
Last Post: moonwalkers
  [LibreOffice & Gimp] ARM support: no hardware acceleration on [Manjaro] Pinebook Pro regivanx 0 54 06-15-2021, 04:04 AM
Last Post: regivanx
  Manjaro and Arch repository with privacy oriented software as400 77 41,381 06-08-2021, 04:54 AM
Last Post: llsf
  Kernel panic on boot with danielt's Debian installer hjalfi 8 381 06-07-2021, 11:28 PM
Last Post: moonwalkers
Lightbulb Hardware video acceleration in Chromium on Manjaro siemsenit 3 322 06-01-2021, 09:51 AM
Last Post: siemsenit
Question Flashing updated uboot in Manjaro TDC_PBP 5 2,655 05-28-2021, 01:29 PM
Last Post: wdt
  Error Log has a few scetchy things. Manjaro Xfce SpaceLord 0 144 05-23-2021, 10:49 AM
Last Post: SpaceLord
  Battery gauge issue (mainline kernel) lfourquaux 4 445 05-22-2021, 02:43 PM
Last Post: jiyong
  eMMC frequently not found by Linux kernel (especially on low battery) v-man 14 5,877 05-14-2021, 01:18 PM
Last Post: djhnsn
  Installing cinnamon on Manjaro PBP [SOLVED] quixote 1 248 05-09-2021, 01:39 PM
Last Post: quixote

Forum Jump:


Users browsing this thread: 1 Guest(s)