Upgrade Debian kernel on a SD/SATA drive boot combo.
#1
I currently have:
Linux taz 4.4.132-1075-rockchip-ayufan-ga83beded8524 #1 SMP Thu Jul 26 08:22:22 UTC 2018 aarch64 GNU/Linux

Debian 9
Root is on sda2
Boot is on the sd card (/dev/mmcblk0p*)

I am trying to upgrade it to a later release so I can get fan control (I have no pwm device). I've used aptitude to jump to 5.4.0-rc1-1120 but I don't seem to get it to reboot to it. I see a number of files on /boot (on the SD card) and I'm not sure if I need to change any of them (the efi is not something I've figured out yet).
#2
So you have a new kernel installed but it doesn't boot? Do you have any logs via serial console or on screen?
Come have a chat in the Pine IRC channel >>
#3
(12-03-2019, 05:15 PM)xalius Wrote: So you have a new kernel installed but it doesn't boot? Do you have any logs via serial console or on screen?

Not yet, I need to hook up the USB dongle to it again. The syslog and the dmesg don't say anything.
#4
(12-03-2019, 10:11 PM)linuxha Wrote:
(12-03-2019, 05:15 PM)xalius Wrote: So you have a new kernel installed but it doesn't boot? Do you have any logs via serial console or on screen?

Not yet, I need to hook up the USB dongle to it again. The syslog and the dmesg don't say anything.

Finally got the console setup (and boy does that prompt go by fast, need to fix that later). Here's what I'm seeing:

Code:
Scanning mmc 1:7...
Found /boot/extlinux/extlinux.conf
Retrieving file: /boot/extlinux/extlinux.conf
2059 bytes read in 23 ms (86.9 KiB/s)
select kernel
1:      kernel-4.4.132-1075-rockchip-ayufan-ga83beded8524
2:      org-kernel-4.4.132-1075-rockchip-ayufan-ga83beded8524
3:      org-kernel-4.4.132-1075-rockchip-ayufan-ga83beded8524
4:      kernel-4.4.132-1075-rockchip-ayufan-ga83beded8524-memtest
Enter choice:

Okay I see a problem, there's no 5.5 in the list. I've update an extlinux.conf. But there are 2, one under /boot/efi/extlinux and the other under /boot/extlinux. So my guess if neither is correct and that the new funky efi stuff needs to have more done before it can see the 5.5 Kernel.

Any pointer?
Thanks
#5
You need to get the new kernel back on the SDcard to boot it. Something like

Code:
sudo mount /dev/mmcblk0p7 /mnt/
sudo rsync -ax --delete /boot/ /mnt/boot/
ps - good luck with 5.4 - be ready to manually edit your SDcard to revert to 4.4 if your luck is anything like mine, see this thread.
  • 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
#6
(12-11-2019, 01:23 PM)dukla2000 Wrote: You need to get the new kernel back on the SDcard to boot it. Something like

Code:
sudo mount /dev/mmcblk0p7 /mnt/
sudo rsync -ax --delete /boot/ /mnt/boot/
ps - good luck with 5.4 - be ready to manually edit your SDcard to revert to 4.4 if your luck is anything like mine, see this thread.

What could possibly go wrong ... ;-)

I'll set up a second SD and try that out.
#7
(12-11-2019, 11:40 PM)linuxha Wrote: I'll set up a second SD and try that out.

You don't need a second SDcard: if it fails then you just need another PC you can edit the /boot/extlinux/extlinux.conf file on. Either add a efaultt line or make sure the 4.4 section is the first one.

e.g. with the file below I boot 4.4.197

Code:
$ cat /boot/extlinux/extlinux.conf
timeout 10
menu title select kernel

default kernel-4.4.197

label kernel-4.4.202
   kernel /boot/vmlinuz-4.4.202-1237-rockchip-ayufan-gfd4492386213
   initrd /boot/initrd.img-4.4.202-1237-rockchip-ayufan-gfd4492386213
   devicetreedir /boot/dtbs/4.4.202-1237-rockchip-ayufan-gfd4492386213
   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=linux-root rootwait rootfstype=ext4

label kernel-4.4.197
   kernel /boot/vmlinuz-4.4.197-1236-rockchip-ayufan-g30faab37e339
   initrd /boot/initrd.img-4.4.197-1236-rockchip-ayufan-g30faab37e339
   devicetreedir /boot/dtbs/4.4.197-1236-rockchip-ayufan-g30faab37e339
   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=linux-root rootwait rootfstype=ext4
  • 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


Possibly Related Threads…
Thread Author Replies Views Last Post
  Boot/Shutdown on timer captainmorgan 8 5,784 11-01-2023, 12:08 PM
Last Post: Nikolay_Po
Exclamation Ethernet regression on Linux Kernel 6.5.4? Deathcrow 3 717 09-22-2023, 04:27 AM
Last Post: diederik
  Vanilla mainline Debian 11 (Bullseye) on the RockPro64 Pete Tandy 22 16,715 08-16-2023, 01:34 AM
Last Post: varac
Question How do I compile an arbitrary kernel for U-Boot? Valenoern 3 991 06-16-2023, 10:54 AM
Last Post: CounterPillow
  How do I enable Pine touchdisplay as display on Debian? Thisone 0 500 04-23-2023, 11:02 PM
Last Post: Thisone
Question nand-sata-install on RAID-1 array ARMandHammer 1 810 02-12-2023, 03:10 AM
Last Post: igorp
  RockPro64 boot questions misterc 3 1,462 01-13-2023, 06:21 PM
Last Post: misterc
  Is some u-boot required on the SPI for installing debian with the official installer? callegar 1 1,273 10-25-2022, 10:07 AM
Last Post: ratzzupaltuff
  hello i want to drive an edp screen with my rockpro64 hannescam 0 695 10-20-2022, 01:22 PM
Last Post: hannescam
  [OS] SkiffOS and Buildroot for Rockpro64 w/ 5.17 kernel paralin1 1 1,753 05-08-2022, 03:26 PM
Last Post: paralin1

Forum Jump:


Users browsing this thread: 1 Guest(s)