kernel build script for latest mainline manjaro kernel
#31
(06-07-2020, 05:56 PM)xmixahlx Wrote: updated the script in the first post for v5.7.
Thank You, much appreciated!
#32
Here is my modified @xmixahlx config for 5.7.1 with amd and nouveau stuff removed. Compilation time is lowered significantly thanks to this.


.gz   config.gz (Size: 49.33 KB / Downloads: 438)
#33
Can the scripts & configs be hosted in github/gitlab/somewhere_else so they can be easily consumable?

Thanks!
#34
i did exactly that.

script now part of pbp-tools. see other forum thread for details.
https://github.com/xmixahlx/pbp-tools
https://forum.pine64.org/showthread.php?tid=10190

updated the first post

i had planned to minimize the config, thanks for the nudge.
#35
(06-11-2020, 09:54 AM)xmixahlx Wrote: i did exactly that.

script now part of pbp-tools. see other forum thread for details.
https://github.com/xmixahlx/pbp-tools
https://forum.pine64.org/showthread.php?tid=10190

updated the first post

i had planned to minimize the config, thanks for the nudge.

Hi, I just compiled the kernel with your script for opensuse as rpm and was able to install it.  Whats the easiest way to boot from it? Just edit the extlinux.conf file to point to the new kernel? Not sure if I should change the file directly.  I don't see /etc/default/u-boot file, saw in other docs to edit that file but isn't there in this distro.  I've done this in the past with grub but not sure in this case.

Thanks!
#36
what are the contents of your /boot ?

check boot file, dtb, display, and kernel references.

if you provide steps for rpm i am happy to add to the script.
#37
(06-26-2020, 11:51 AM)xmixahlx Wrote: what are the contents of your /boot ?

check boot file, dtb, display, and kernel references.

if you provide steps for rpm i am happy to add to the script.

Sorry, this is my first time compiling a kernel, wanted to learn how to do it.  I just added binrpm-pkg to the none option:

if [ $CROSSBUILD = no ]; then
if [ $MAKEDISTRO = debian ]; then
  make -j `nproc` INITRD=yes KBUILD_IMAGE=arch/arm64/boot/Image bindeb-pkg
fi
if [ $MAKEDISTRO = none ]; then
  make -j `nproc` binrpm-pkg
fi
fi

Under boot there is the old kernel (5.5) and new one i just installed (Image-5.7.0-0.38-1-pinebookpro-hwaccel)

Do I Have to do something like this to boot from it (commented the old 5.5 and added new 5.7 Image)?

## /boot/extlinux/extlinux.conf
##
## IMPORTANT WARNING
##
## The configuration of this file is generated automatically.
## Do not edit this file manually, use: u-boot-update

default l0
menu title U-Boot menu
prompt 0
timeout 10


label l0
menu label openSUSE-Tumbleweed kernel 5.5.0-pbpro-opensuse-5.5.0
# KERNEL /Image-5.5.0-pbpro-opensuse-5.5.0
# initrd /initrd-5.5.0-pbpro-opensuse-5.5.0
KERNEL /Image-5.7.0-0.38-1-pinebookpro-hwaccel
initrd /initrd-5.7.0-0.38-1-pinebookpro-hwaccel
fdt /rk3399-pinebook-pro.dtb
append root=UUID=499bd8ad-5c87-4a1d-a85a-9f981db2b847 console=ttyS2,1500000n8 console=tty0 rw splash plymouth.ignore-serial-consoles maxcpus=4 coherent_pool=1M

/boot directory:
/boot> ls
boot.readme                              Image-5.5.0-pbpro-opensuse-5.5.0        lost+found                    System.map-5.4.13-1-default
config-5.4.13-1-default                  Image-5.5.0-rc7pbpro-opensuse            rk3399-pinebook-pro.dtb      System.map-5.5.0-pbpro-opensuse-5.5.0
config-5.5.0-pbpro-opensuse-5.5.0        Image-5.7.0-0.38-1-pinebookpro-hwaccel  symtypes-5.4.13-1-64kb.gz    System.map-5.7.0-0.38-1-pinebookpro-hwaccel
config-5.7.0-0.38-1-pinebookpro-hwaccel  Image-5.7.2-1-default                    symtypes-5.4.13-1-default.gz  System.map-5.7.2-1-default
config-5.7.2-1-default                  initrd                                  symtypes-5.7.2-1-64kb.gz      vmlinux-5.4.13-1-default.xz
dtb-5.4.13-1                            initrd-5.4.13-1-default                  symtypes-5.7.2-1-default.gz  vmlinux-5.7.0-0.38-1-pinebookpro-hwaccel.bz2
efi                                      initrd-5.5.0-pbpro-opensuse-5.5.0        symvers-5.4.13-1-default.gz  vmlinux-5.7.2-1-default.xz
extlinux                                initrd-5.5.0-rc7pbpro-opensuse          symvers-5.7.2-1-default.gz
Image                                    initrd-5.7.0-0.38-1-pinebookpro-hwaccel  sysctl.conf-5.4.13-1-default
Image-5.4.13-1-default                  initrd-5.7.2-1-default                  sysctl.conf-5.7.2-1-default
#38
FIRST that won't work, you need an uncompressed Image to boot. the appropriate make config is: (i'll update the script.)

make -j `nproc` INITRD=yes KBUILD_IMAGE=arch/arm64/boot/Image binrpm-pkg

you can skip the rebuild by:
delete the old rpm packages from filesystem
uninstall the old rpm packages
cd to upstream/linux-5.7 and execute that make command above ^

afterwards:
append -5.5.0-pbpro-opensuse-5.5.0 to your old dtb file in /boot (or something like .bak/.old/whatever)
copy the new dtb from the kernel directory to /boot
edit the extlinux file to reflect the new names
you don't need maxcpus=4 in the uboot config for 5.7

make sure you have a verified working sdcard install before you do this for an emergency recovery method.
#39
updated. try the MAKEDISTRO=redhat option to build rpm, and report back.
#40
(06-26-2020, 01:20 PM)xmixahlx Wrote: FIRST that won't work, you need an uncompressed Image to boot. the appropriate make config is: (i'll update the script.)

make -j `nproc` INITRD=yes KBUILD_IMAGE=arch/arm64/boot/Image binrpm-pkg

you can skip the rebuild by:
delete the old rpm packages from filesystem
uninstall the old rpm packages
cd to upstream/linux-5.7 and execute that make command above ^

afterwards:
append -5.5.0-pbpro-opensuse-5.5.0 to your old dtb file in /boot (or something like .bak/.old/whatever)
copy the new dtb from the kernel directory to /boot
edit the extlinux file to reflect the new names
you don't need maxcpus=4 in the uboot config for 5.7

make sure you have a verified working sdcard install before you do this for an emergency recovery method.

That worked! Thanks. 
opensuse:~> uname -a

Linux opensuse 5.7.0-0.38-1-pinebookpro-hwaccel #2 SMP PREEMPT Fri Jun 26 19:30:14 EDT 2020 aarch64 aarch64 aarch64 GNU/Linux

One thing I noticed is that at boot the brightness is very low.  Will take a look at the post install script for brightness and boot script  (probably boot is fine to leave like it is).


Possibly Related Threads…
Thread Author Replies Views Last Post
  Building PPSSPP with Manjaro AUR LivingLinux 0 1,109 06-11-2022, 05:07 PM
Last Post: LivingLinux
  How to update Manjaro to 20.10 pineitup 8 13,324 07-31-2021, 04:44 AM
Last Post: jiyong
  Make your own Manjaro image flatulent_piney 0 3,185 11-07-2020, 03:30 AM
Last Post: flatulent_piney
  Manjaro ARM, Cryptomator, and MEGA Sync dp1kinobe 3 7,017 10-24-2020, 06:38 AM
Last Post: pineitup
  Downgrading packages on Manjaro ARM (on the example of boinc) wrzomar 0 3,378 10-02-2020, 12:20 PM
Last Post: wrzomar
  Freepascal FPC3.20 and Lazarus IDE on Manjaro KDE dieselnutjob 0 2,868 08-02-2020, 06:57 AM
Last Post: dieselnutjob
  Installing WPS Office on Manjaro brent.thierens 5 9,612 07-13-2020, 03:13 AM
Last Post: brent.thierens
  full disk encryption with luks on manjaro xfce limxr 48 66,656 07-09-2020, 07:27 AM
Last Post: JtR
  Is there a MMC upgrade instruction from debian-mate to manjaro factory (20.06)? pljanson 4 7,805 06-23-2020, 12:41 AM
Last Post: pljanson
  mesa-git build script for latest panfrost xmixahlx 28 46,904 06-11-2020, 11:16 PM
Last Post: xmixahlx

Forum Jump:


Users browsing this thread: 1 Guest(s)