ayufan-rock64 / linux-build

Rock64 Linux build scripts, tools and instructions
MIT License
562 stars 98 forks source link

Can't update linux kernel from 4.4.77-rockchip-ayufan-136 (Rock64 4gb Board) #214

Open chestercs opened 6 years ago

chestercs commented 6 years ago

I've tried everything that I could find about this topic. Even tried to install it manually with dpkg, but kernel remains the same every time https://unix.stackexchange.com/questions/435897/dietpi-how-to-upgrade-my-kernel-version-to-latest-version https://github.com/ayufan-rock64/linux-build/blob/master/recipes/kernel-upgrade.md

Another thread about it: https://dietpi.com/phpbb/viewtopic.php?f=11&t=3879&p=12922

Os: DietPi v6.9

MichaIng commented 6 years ago

Jep, found this to be an issue and investigating: https://github.com/Fourdee/DietPi/issues/1892

NB: /lib/modules/4.4.126-rockchip-ayufan-239 is present after installing the related APT package, but /lib/modules/4.4.77-rockchip-ayufan-136 stays in place, even after purging the related APT package, and old version is loaded, even after installing/updating linux-rock64 package and all it's dependencies.

ayufan commented 6 years ago

DId you actually purge the linux-image-4.4....?

MichaIng commented 6 years ago

@ayufan I can just forward the info from our user @burgyman and jep, it was purged. I also got just reply, /lib/modules/4.4.77-rockchip-ayufan-136 is actually empty, so it is indeed just current modules "really" in place.

root@rock64:~# apt install --reinstall linux-image-4.4.126-rockchip-ayufan-239
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
Need to get 0 B/12.9 MB of archives.
After this operation, 0 B of additional disk space will be used.
(Reading database ... 76362 files and directories currently installed.)
Preparing to unpack .../linux-image-4.4.126-rockchip-ayufan-239_0.6.44_arm64.deb ...
Unpacking linux-image-4.4.126-rockchip-ayufan-239 (0.6.44) over (0.6.44) ...
Setting up linux-image-4.4.126-rockchip-ayufan-239 (0.6.44) ...
update-initramfs: Generating /boot/initrd.img-4.4.126-rockchip-ayufan-239

But after reboot:

root@rock64:~# uname -a
Linux rock64 4.4.77-rockchip-ayufan-136 #1 SMP Thu Oct 12 09:14:48 UTC 2017 aarch64 GNU/Linux
ayufan commented 6 years ago

Well. What is in /boot/efi/extlinux/extlinux.conf. Is flash-kernel installed? I don't know exactly how DietPi performs updates.

I use flash-kernel to put a latest kernel into /boot/efi/{Image,initrd.img,dtb}

MichaIng commented 6 years ago

@ayufan Forwarding:

root@rock64:~# cat /boot/efi/extlinux/extlinux.conf
cat: /boot/efi/extlinux/extlinux.conf: No such file or directory
...
root@rock64:~# flash-kernel
Using DTB: rk3328-rock64.dtb
Installing /usr/lib/linux-image-4.4.126-rockchip-ayufan-239/rockchip/rk3328-rock64.dtb into /boot/dtbs/4.4.126-rockchip-ayufan-239/rk3328-rock64.dtb
Installing new rk3328-rock64.dtb.
flash-kernel: installing version 4.4.126-rockchip-ayufan-239Installing new Image.
Installing new initrd.img.
Installing new dtb.
...
reboot
...
root@rock64:~# uname -a
Linux rock64 4.4.77-rockchip-ayufan-136 #1 SMP Thu Oct 12 09:14:48 UTC 2017 aarch64 GNU/Linux

I think we need to investigate a bid from our side:

Thanks so much for your help so far.

ayufan commented 6 years ago

So. I simply don't know how it is being run. You have to figure out what is being done there :)

On Thu, Jul 5, 2018 at 1:56 PM, MichaIng notifications@github.com wrote:

@ayufan https://github.com/ayufan Forwarding:

root@rock64:~# cat /boot/efi/extlinux/extlinux.conf cat: /boot/efi/extlinux/extlinux.conf: No such file or directory ... root@rock64:~# flash-kernel Using DTB: rk3328-rock64.dtb Installing /usr/lib/linux-image-4.4.126-rockchip-ayufan-239/rockchip/rk3328-rock64.dtb into /boot/dtbs/4.4.126-rockchip-ayufan-239/rk3328-rock64.dtb Installing new rk3328-rock64.dtb. flash-kernel: installing version 4.4.126-rockchip-ayufan-239Installing new Image. Installing new initrd.img. Installing new dtb. ... reboot ... root@rock64:~# uname -a Linux rock64 4.4.77-rockchip-ayufan-136 #1 SMP Thu Oct 12 09:14:48 UTC 2017 aarch64 GNU/Linux

I think we need to investigate a bid from our side:

  • Used pre-image where DietPi is applied on.
  • Verify EFI usage
  • Check if kernel is placed to wrong place, non-efi location instead of efi partition, and why.

Thanks so much for your help so far.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ayufan-rock64/linux-build/issues/214#issuecomment-402698335, or mute the thread https://github.com/notifications/unsubscribe-auth/ACTpQWXckxP0KWnpcNO1li9NK9bkbaDfks5uDf7YgaJpZM4Uhr4a .

Fourdee commented 6 years ago

@ayufan Appears to be a possible issue our side, we're looking into it.

However, the current Rock64 image (stretch-minimal-rock64-0.7.3-1040-arm64.img) fails to boot: https://github.com/Fourdee/DietPi/issues/1892#issuecomment-403229104