11-13-2018, 01:54 PM
(11-13-2018, 07:22 AM)MisterA Wrote: Could you explain how you update the kernel to the latest one?
If I install 4.18 for example my rockpro64 fails to boot.
OK, it all depends on /boot/extlinux/extlinux.conf and also what is in your /boot directory. After a basic install of say the 0.7.9 (stable) Ayufan minimal release you will only have 1 kernel in your filesystem - in /boot/ you will have 1 of each config..., initrd... and vmlinux...
Now, I find it easier to find kernels using synaptic (a gui). And 4.18 has no merit any longer as 4.19 has hit the streets. You can of course do this all from a Linux command line, and there are other gui tools.
So doing it my way, start synaptic, and hit the big Reload button (which effectively is an apt-get update)
Then hit Search, and look for linux-image-4.19
There are about 12 results today, and mostly in pairs. If you expand the Package column you will see each result has a -dbg mate which is a complete debug version. I ignore them - I am sure they have a use but so far my life has been just fine without a debug kernel!
Many of the results are 4.19.0-rc4... , these are versions Ayufan cooked from release candidate 4 which is now pretty much deceased.
The only 1 of real interest is 4.19.0-1073... - select it (but not the -dbg one)
Click the Mark all Upgrades button (if you haven't upgraded your Linux recently)
Then click the Apply button
When synaptic has finished playing, exit and check /boot/extlinux/extlinux.conf and also what is in your /boot directory again. You should now have 4.19 scattered about in addition to what you had before. The key to deciding which kernel when booting is the .conf, and you can set a default from the options there. My file is currently
Code:
$ cat /boot/extlinux/extlinux.conf
timeout 10
menu title select kernel
default kernel-4.4.138-1100-rockchip-ayufan-g95cecee47f40
label kernel-4.19.0-1073-ayufan-ga6e013135a6e
kernel /boot/vmlinuz-4.19.0-1073-ayufan-ga6e013135a6e
initrd /boot/initrd.img-4.19.0-1073-ayufan-ga6e013135a6e
devicetreedir /boot/dtbs/4.19.0-1073-ayufan-ga6e013135a6e
append rw panic=10 init=/sbin/init coherent_pool=1M ethaddr=${ethaddr} eth1addr=${eth1addr} serial=${serial#} cgroup_enable=cpuset cgroup_memory=1 cgroup_enable=memory swapaccount=1 root=LABEL=MySM961 rootwait rootfstype=ext4
label kernel-4.19.0
kernel /boot/vmlinuz-4.19.0
initrd /boot/initrd.img-4.19.0
devicetreedir /boot/dtbs/4.19.0
append rw panic=10 init=/sbin/init coherent_pool=1M ethaddr=${ethaddr} eth1addr=${eth1addr} serial=${serial#} cgroup_enable=cpuset cgroup_memory=1 cgroup_enable=memory swapaccount=1 root=LABEL=MySM961 rootwait rootfstype=ext4
label kernel-4.4.138-1100-rockchip-ayufan-g95cecee47f40
kernel /boot/vmlinuz-4.4.138-1100-rockchip-ayufan-g95cecee47f40
initrd /boot/initrd.img-4.4.138-1100-rockchip-ayufan-g95cecee47f40
devicetreedir /boot/dtbs/4.4.138-1100-rockchip-ayufan-g95cecee47f40
append rw panic=10 init=/sbin/init coherent_pool=1M ethaddr=${ethaddr} eth1addr=${eth1addr} serial=${serial#} cgroup_enable=cpuset cgroup_memory=1 cgroup_enable=memory swapaccount=1 root=LABEL=MySM961 rootwait rootfstype=ext4
Note the 3rd line I have added, which currently selects the 4.4 option at the bottom. Without that default entry the first option will be used. Also note this is your "Get out of jail free" card: if you screw up and have a duff kernel that wont do what you want, you can just change the default and try again. At worst you may need to mount your SDcard or eMMC (whichever you use to boot) in another Linux box and edit it there.
Hope this helps
- ROCKPro64 v2.1 2GB, 16Gb eMMC for rootfs, SX8200Pro 512GB NVMe for /home, HDMI video & sound, Bluetooth keyboard & mouse. Arch (6.2 kernel, Openbox desktop) for general purpose daily PC.
- PinePhone Pro Explorer Edition, daily driver, rk2aw & U-boot on SPI, Arch/SXMO & Arch/phosh on eMMC
- PinePhone BraveHeart now v1.2b 3/32Gb, Tow-boot with Arch/SXMO on eMMC