Openwrt: after upgrading the kernel, retain old version and no more dsl

Today I did this

apk update
apk upgrade

I see it upgrade kernel sucesfully, but on reboot


 uname -r
6.6.70

must return the version upgrade which is 6.6.74

I also tried to remove power and restart but nothing

And the worst problem is no more dsl :expressionless:

The old dsl0 connection disappear

1 Like

Appear this error message

[ 36.592119] kmodloader: no module folders for kernel version 6.6.70 found

Is right because I have upgrade, but why reboot with old kernel??

Solution found upgrading to latest snapshot, now other problem
No more ssh!

ssh root@router
X11 forwarding request failed on channel 0
Connection to router closed.

I use ssh with pubkey enabled and password disabled

https://openwrt.org/meta/infobox/upgrade_packages_warning

FYI Snapshots don't have the LuCI web GUI installed by default. You mentioned it missing in another thread.

1 Like

Yes I know no luci in snapshot but is not a problem, I use openwrt without luci.
Now I have installed it, in the other thread probably was some error in my image snapshot, with latest snapshot luci install fine

1 Like

No, apk did not upgrade the kernel at all, it merely overwrote the virtual package that defines kernel metadata. You are lucky that the device boots at all.

When you want to upgrade the device, use sysupgrade or one of the attended sysupgrade tools, and be aware that apk is not capable of doing many things, as it is still in development, and likely will never be able to do a kernel upgrade on OpenWrt.

1 Like

Yes now I understand. I was "habituè" of Linux distros where apt, yum, slackpkg, dnf, etc can upgrade all system including kernel. With openwrt is different, apk is to install packages and update, but for a total upgrade is better to do apk update
apk upgrade and sysupgrade

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