kernel build script for latest mainline manjaro kernel - Printable Version +- PINE64 (https://forum.pine64.org) +-- Forum: Pinebook Pro (https://forum.pine64.org/forumdisplay.php?fid=111) +--- Forum: Pinebook Pro Tutorials (https://forum.pine64.org/forumdisplay.php?fid=117) +--- Thread: kernel build script for latest mainline manjaro kernel (/showthread.php?tid=8968) |
RE: kernel build script for latest mainline manjaro kernel - termac - 06-09-2020 (06-07-2020, 05:56 PM)xmixahlx Wrote: updated the script in the first post for v5.7.Thank You, much appreciated! RE: kernel build script for latest mainline manjaro kernel - as400 - 06-11-2020 Here is my modified @xmixahlx config for 5.7.1 with amd and nouveau stuff removed. Compilation time is lowered significantly thanks to this. config.gz (Size: 49.33 KB / Downloads: 499) RE: kernel build script for latest mainline manjaro kernel - e-minguez - 06-11-2020 Can the scripts & configs be hosted in github/gitlab/somewhere_else so they can be easily consumable? Thanks! RE: kernel build script for latest mainline manjaro kernel - xmixahlx - 06-11-2020 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. RE: kernel build script for latest mainline manjaro kernel - ric - 06-26-2020 (06-11-2020, 09:54 AM)xmixahlx Wrote: i did exactly that. 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! RE: kernel build script for latest mainline manjaro kernel - xmixahlx - 06-26-2020 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. RE: kernel build script for latest mainline manjaro kernel - ric - 06-26-2020 (06-26-2020, 11:51 AM)xmixahlx Wrote: what are the contents of your /boot ? 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 RE: kernel build script for latest mainline manjaro kernel - xmixahlx - 06-26-2020 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. RE: kernel build script for latest mainline manjaro kernel - xmixahlx - 06-26-2020 updated. try the MAKEDISTRO=redhat option to build rpm, and report back. RE: kernel build script for latest mainline manjaro kernel - ric - 06-26-2020 (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.) 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). |