← Back to team overview

linaro-release team mailing list archive

[Bug 721147] Re: flash-kernel subarch check fails with Linaro OMAP kernels

 

it doesn't work for me on linaro-developer image:

root@linaro:~# apt-get install flash-kernel
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Suggested packages:
  uboot-envtools redboot-tools
The following packages will be upgraded:
  flash-kernel
1 upgraded, 0 newly installed, 0 to remove and 13 not upgraded.
Need to get 12.8 kB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 http://ports.ubuntu.com/ubuntu-ports/ natty-proposed/main flash-kernel armel 2.28ubuntu20 [12.8 kB]
Fetched 12.8 kB in 0s (50.5 kB/s) 
(Reading database ... 55978 files and directories currently installed.)
Preparing to replace flash-kernel 2.28ubuntu19 (using .../flash-kernel_2.28ubuntu20_armel.deb) ...
Unpacking replacement flash-kernel ...
Setting up flash-kernel (2.28ubuntu20) ...
root@linaro:~# flash-kernel
/usr/sbin/flash-kernel: 951: [[: not found
Kernel /boot/vmlinuz-2.6.38-1003-linaro-omap does not match your subarchitecture
omap4, therefore not writing it to flash.
root@linaro:~# ls -l /boot
total 25544
-rw-r--r-- 1 root root  922401 Mar  4 03:55 System.map-2.6.35-1-n900
-rw------- 1 root root 1956901 Apr 16 00:01 System.map-2.6.38-1002-linaro-omap
-rw------- 1 root root 2008637 May 24 03:32 System.map-2.6.38-1003-linaro-omap
-rw-r--r-- 1 root root  266621 Mar  4 03:55 abi-2.6.35-1-n900
-rw-r--r-- 1 root root  513865 Apr 16 00:01 abi-2.6.38-1002-linaro-omap
-rw-r--r-- 1 root root  525199 May 24 03:32 abi-2.6.38-1003-linaro-omap
-rw-r--r-- 1 root root   52101 Mar  4 03:55 config-2.6.35-1-n900
-rw-r--r-- 1 root root   94519 Apr 16 00:01 config-2.6.38-1002-linaro-omap
-rw-r--r-- 1 root root   94559 May 24 03:32 config-2.6.38-1003-linaro-omap
drwxr-xr-x 2 root root    4096 May 20 18:18 dt-2.6.38-1002-linaro-omap
drwxr-xr-x 2 root root    4096 May 24 07:20 dt-2.6.38-1003-linaro-omap
-rw-r--r-- 1 root root 2381136 May 20 20:08 initrd.img-2.6.35-1-n900
-rw-r--r-- 1 root root 3713329 May 20 18:19 initrd.img-2.6.38-1002-linaro-omap
-rw-r--r-- 1 root root 3699209 May 24 07:21 initrd.img-2.6.38-1003-linaro-omap
-rw-r--r-- 1 root root 1611356 Mar  4 03:55 vmlinuz-2.6.35-1-n900
-rw------- 1 root root 4073680 Apr 16 00:01 vmlinuz-2.6.38-1002-linaro-omap
-rw------- 1 root root 4196708 May 24 03:32 vmlinuz-2.6.38-1003-linaro-omap
root@linaro:~# dpkg -l |grep linux-image 
ii  linux-image-2.6.35-1-n900           2.6.35-1.3.1                          Linux kernel image for version 2.6.35 on Nokia N900
ii  linux-image-2.6.38-1002-linaro-omap 2.6.38-1002.3                         Linux kernel image for version 2.6.38 on TI OMAP[34]-based systems
ii  linux-image-2.6.38-1003-linaro-omap 2.6.38-1003.4~ppa3                    Linux kernel image for version 2.6.38 on TI OMAP[34]-based systems
ii  linux-image-linaro-omap             2.6.38.1003.4                         Linux kernel image for the OMAP architecture.

-- 
You received this bug notification because you are a member of Linaro
Release Team, which is a subscriber of a duplicate bug (758324).
https://bugs.launchpad.net/bugs/721147

Title:
  flash-kernel subarch check fails with Linaro OMAP kernels

Status in “flash-kernel” package in Ubuntu:
  Fix Committed
Status in “flash-kernel” source package in Natty:
  Fix Committed

Bug description:
  Binary package hint: flash-kernel

  When using flash-kernel with a recent Linaro kernel on an OMAP4 board
  the subarch check fails because the kfile does not end with a '3' or
  '4' - it's just named like this: vmlinuz-2.6.37-1002-linaro-omap.
  Since the linaro-omap kernel supports both the OMAP3 and OMAP4 there
  is no need to add a '3' or '4'.

  The attached patch omits the check_subarch check for OMAP boards if
  $kfile matches the substring 'linaro-omap'.