3.0~rc.4ubuntu23: cannot flash an old (previous Q) kernel

Bug #1056206 reported by Paolo Pisati
6
This bug affects 1 person
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-desktop:~$ dpkg -l | grep linux-image
ii linux-image-3.2.0-1419-omap4 3.2.0-1419.26 armhf Linux kernel image for version 3.2.0 on TI OMAP4-based systems
ii linux-image-3.5.0-209-omap4 3.5.0-209.15 armhf Linux kernel image for version 3.5.0 on TI OMAP4-based systems
ii linux-image-3.5.0-210-omap4 3.5.0-210.17 armhf Linux kernel image for version 3.5.0 on TI OMAP4-based systems
ii linux-image-omap4 3.5.0.209.8 armhf Linux kernel image for the OMAP4 architecture.

flag@flag-desktop:~$ ls -la /boot/*3.2.0*
-rw-r--r-- 1 root root 617829 Sep 12 19:41 /boot/abi-3.2.0-1419-omap4
-rw-r--r-- 1 root root 102247 Sep 12 19:41 /boot/config-3.2.0-1419-omap4
-rw-r--r-- 1 root root 4736791 Sep 25 15:08 /boot/initrd.img-3.2.0-1419-omap4
-rw------- 1 root root 2169919 Sep 12 19:41 /boot/System.map-3.2.0-1419-omap4
-rw------- 1 root root 4435432 Sep 12 19:41 /boot/vmlinuz-3.2.0-1419-omap4

flag@flag-desktop:~$ sudo flash-kernel 3.2.0-1419-omap4
Ignoring old or unknown version 3.2.0-1419-omap4 (latest is 3.5.0-210-omap4)

flag@flag-desktop:~$ lsb_release -rd
Description: Ubuntu quantal (development branch)
Release: 12.10
flag@flag-desktop:~$ apt-cache policy flash-kernel
flash-kernel:
  Installed: 3.0~rc.4ubuntu23
  Candidate: 3.0~rc.4ubuntu24
  Version table:
     3.0~rc.4ubuntu24 0
        500 http://ports.ubuntu.com/ubuntu-ports/ quantal/main armhf Packages
 *** 3.0~rc.4ubuntu23 0
        100 /var/lib/dpkg/status

Revision history for this message
Oliver Grawert (ogra) wrote :

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:

----
kvers="$1"
latest_version=$(linux-version list | linux-version sort | tail -1)
if [ -n "$kvers" ] && [ "$kvers" != "$latest_version" ]; then
        echo "Ignoring old or unknown version $kvers (latest is $latest_version)" >&2
        exit 0
fi
kvers="$latest_version"
----

and option parsing needs to be added to flash-kernel

Changed in flash-kernel (Ubuntu):
importance: Undecided → Wishlist
status: New → Confirmed
assignee: nobody → Oliver Grawert (ogra)
Oliver Grawert (ogra)
Changed in flash-kernel (Ubuntu):
assignee: Oliver Grawert (ogra) → nobody
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.