3.0~rc.4ubuntu23: cannot flash an old (previous Q) kernel
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
flash-kernel (Ubuntu) |
Confirmed
|
Wishlist
|
Unassigned |
Bug Description
I'm unable to flash a P/omap4 amrhf kernel on a recent Q/omap4 (~beta1) system:
flag@flag-
ii linux-image-
ii linux-image-
ii linux-image-
ii linux-image-omap4 3.5.0.209.8 armhf Linux kernel image for the OMAP4 architecture.
flag@flag-
-rw-r--r-- 1 root root 617829 Sep 12 19:41 /boot/abi-
-rw-r--r-- 1 root root 102247 Sep 12 19:41 /boot/config-
-rw-r--r-- 1 root root 4736791 Sep 25 15:08 /boot/initrd.
-rw------- 1 root root 2169919 Sep 12 19:41 /boot/System.
-rw------- 1 root root 4435432 Sep 12 19:41 /boot/vmlinuz-
flag@flag-
Ignoring old or unknown version 3.2.0-1419-omap4 (latest is 3.5.0-210-omap4)
flag@flag-
Description: Ubuntu quantal (development branch)
Release: 12.10
flag@flag-
flash-kernel:
Installed: 3.0~rc.4ubuntu23
Candidate: 3.0~rc.4ubuntu24
Version table:
3.
500 http://
*** 3.0~rc.4ubuntu23 0
100 /var/lib/
Changed in flash-kernel (Ubuntu): | |
assignee: | Oliver Grawert (ogra) → nobody |
flash-kernel needs to grow an option like --force-version so you can manually override the version check to downgrade the kernel.
in normal operation this code is needed to prever you from ending up with an outdated version though, so in normal operation teh check needs to stay in place.
the affected code (found in /usr/share/ flash-kernel/ functions) needs to be changed:
---- version= $(linux- version list | linux-version sort | tail -1) $latest_ version"
kvers="$1"
latest_
if [ -n "$kvers" ] && [ "$kvers" != "$latest_version" ]; then
echo "Ignoring old or unknown version $kvers (latest is $latest_version)" >&2
exit 0
fi
kvers="
----
and option parsing needs to be added to flash-kernel