Install latest mainline kernel on RPI3

Long time away from my PIs…

Yesterday I prepared a SD card with manjaro-arm-installer and after boot used some saved commands to install latest mainline kernel.

Everything goes smooth but after reboot I noticed that I was still on installed kernel.

Commands used:

  • remove actual kernel ( 5.15.67-0.1 )
sudo pacman --noconfirm -R linux-rpi4 linux-rpi4-headers
  • install latest mainline kernel ( 5.19.3-1 )
sudo pacman --noconfirm --needed --quiet -S       \
  linux-rpi4-mainline linux-rpi4-mainline-headers \
  raspberrypi-bootloader raspberrypi-bootloader-x

What I missed? :thinking:

You shouldn’t remove your currently running kernel.

If you just install linux-rp4-mainline it will ask if it should replace the normal kernel. Just say yes to this.

PS: Make sure that your boot partition is actually mounted on the system before doing this. There was a bug in the installer, that resulted in the /boot partition missing in fstab. This was fixed in version 1.5.1 of the manjaro-arm-installer script.

Hi @Strit !

How should I add the /boot partition to fstab? I mean, first time experimenting with f2fs, should I do something unusual at fstab?

Below some background info:

$ uname -a
Linux turtle 5.15.67-0.1-MANJARO-ARM-RPI #1 SMP PREEMPT Fri Sep 16 19:02:47 UTC 2022 aarch64 GNU/Linux

$ lsblk
NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS
mmcblk0     179:0    0  59.5G  0 disk
├─mmcblk0p1 179:1    0 213.6M  0 part
└─mmcblk0p2 179:2    0  59.2G  0 part /
zram0       253:0    0   1.3G  0 disk [SWAP]

$ cat /etc/fstab
# Static information about the filesystems.
# See fstab(5) for details.

# <file system> <dir> <type> <options> <dump> <pass>
PARTUUID=ea8f92b8-02 / f2fs  defaults,noatime,compress_algorithm=zstd  0  0

$ mount
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
sys on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
dev on /dev type devtmpfs (rw,nosuid,relatime,size=327456k,nr_inodes=81864,mode=755)
run on /run type tmpfs (rw,nosuid,nodev,relatime,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
/dev/mmcblk0p2 on / type f2fs (rw,noatime,lazytime,background_gc=on,discard,no_heap,user_xattr,inline_xattr,acl,inline_data,inline_dentry,flush_merge,extent_cache,mode=adaptive,active_logs=6,alloc_mode=default,checkpoint_merge,fsync_mode=posix,compress_algorithm=zstd,compress_log_size=2,compress_mode=fs,discard_unit=block)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
cgroup2 on /sys/fs/cgroup type cgroup2 (rw,nosuid,nodev,noexec,relatime,nsdelegate,memory_recursiveprot)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
bpf on /sys/fs/bpf type bpf (rw,nosuid,nodev,noexec,relatime,mode=700)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=29,pgrp=1,timeout=0,minproto=5,maxproto=5,direct)
debugfs on /sys/kernel/debug type debugfs (rw,nosuid,nodev,noexec,relatime)
mqueue on /dev/mqueue type mqueue (rw,nosuid,nodev,noexec,relatime)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,nr_inodes=1048576)
tracefs on /sys/kernel/tracing type tracefs (rw,nosuid,nodev,noexec,relatime)
fusectl on /sys/fs/fuse/connections type fusectl (rw,nosuid,nodev,noexec,relatime)
configfs on /sys/kernel/config type configfs (rw,nosuid,nodev,noexec,relatime)
none on /run/credentials/systemd-sysusers.service type ramfs (ro,nosuid,nodev,noexec,relatime,mode=700)
tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=92952k,nr_inodes=23238,mode=700,uid=1000,gid=1000)

Yes. Add the boot partition to fstab, then you can update/install kernels.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.