[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#836679: flash-kernel: cannot configure kernel 4.7 with new flash-kernel



Package: flash-kernel
Version: 3.68
Severity: important

Dear Maintainer,

I cannot install latest kernel on my OlinuXino card:
# dpkg --configure linux-image-4.7.0-1-armmp-lpae
dpkg: dependency problems prevent configuration of linux-image-4.7.0-1-armmp-lpae:
 linux-image-4.7.0-1-armmp-lpae depends on initramfs-tools (>= 0.110~) | linux-initramfs-tool; however:
  Package initramfs-tools is not configured yet.
  Package linux-initramfs-tool is not installed.
  Package initramfs-tools which provides linux-initramfs-tool is not configured yet.

dpkg: error processing package linux-image-4.7.0-1-armmp-lpae (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 linux-image-4.7.0-1-armmp-lpae

After this failure, flash-kernel fails with the following message:
# flash-kernel
DTB: sun7i-a20-olinuxino-lime.dtb
Couldn't find 

Indeed, there's no DTB file for kernel 4.7 in /boot:
# ls /boot/dtbs/
4.4.0-1-armmp-lpae  4.5.0-2-armmp-lpae  4.6.0-1-armmp-lpae

This may be because kernel 4.7 is not yet fully installed:
# dpkg -l linux-image*
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                                   Version                  Architecture             Description
+++-======================================-========================-========================-==================================================================================
rc  linux-image-3.16.0-4-armmp-lpae        3.16.7-ckt25-1           armhf                    Linux 3.16 for ARMv7 multiplatform compatible SoCs supporting LPAE
ii  linux-image-4.4.0-1-armmp-lpae         4.4.6-1                  armhf                    Linux 4.4 for ARMv7 multiplatform compatible SoCs supporting LPAE
hi  linux-image-4.5.0-2-armmp-lpae         4.5.2-1                  armhf                    Linux 4.5 for ARMv7 multiplatform compatible SoCs supporting LPAE
ii  linux-image-4.6.0-1-armmp-lpae         4.6.4-1                  armhf                    Linux 4.6 for ARMv7 multiplatform compatible SoCs supporting LPAE
iF  linux-image-4.7.0-1-armmp-lpae         4.7.2-1                  armhf                    Linux 4.7 for ARMv7 multiplatform compatible SoCs supporting LPAE (signed)
un  linux-image-4.7.0-1-armmp-lpae-unsigne <none>                   <none>                   (no description available)
iU  linux-image-armmp-lpae                 4.7+75                   armhf                    Linux for ARMv7 multiplatform compatible SoCs supporting LPAE (meta-package)

Once I remove the fix done with #833097 [1] , I get:
# flash-kernel 
DTB: sun7i-a20-olinuxino-lime.dtb
flash-kernel: installing version 4.7.0-1-armmp-lpae
Generating boot script u-boot image... done.
Taking backup of boot.scr.
Installing new boot.scr.

Which is much better...

Now I can finish the installation:
# dpkg --configure --pending
Setting up initramfs-tools (0.125) ...
update-initramfs: deferring update (trigger activated)
Setting up linux-image-4.7.0-1-armmp-lpae (4.7.2-1) ...
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-4.7.0-1-armmp-lpae
cp: cannot stat '/etc/modprobe.d/*': No such file or directory
DTB: sun7i-a20-olinuxino-lime.dtb
flash-kernel: deferring update (trigger activated)
/etc/kernel/postinst.d/zz-flash-kernel:
DTB: sun7i-a20-olinuxino-lime.dtb
flash-kernel: deferring update (trigger activated)
Setting up linux-image-armmp-lpae (4.7+75) ...
Processing triggers for initramfs-tools (0.125) ...
update-initramfs: Generating /boot/initrd.img-4.7.0-1-armmp-lpae
cp: cannot stat '/etc/modprobe.d/*': No such file or directory
DTB: sun7i-a20-olinuxino-lime.dtb
flash-kernel: installing version 4.7.0-1-armmp-lpae
Generating boot script u-boot image... done.
Taking backup of boot.scr.
Installing new boot.scr.
Processing triggers for flash-kernel (3.68) ...
DTB: sun7i-a20-olinuxino-lime.dtb
flash-kernel: installing version 4.7.0-1-armmp-lpae
Generating boot script u-boot image... done.
Taking backup of boot.scr.
Installing new boot.scr.


Could find another fix for #833097 ?

All the best

[1] https://anonscm.debian.org/cgit/d-i/flash-kernel.git/commit/?id=33929c93c03d9d48bc4e1c58610bcb2ab3efdd04



-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing')
Architecture: armhf (armv7l)

Kernel: Linux 4.6.0-1-armmp-lpae (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages flash-kernel depends on:
ii  debconf [debconf-2.0]  1.5.59
ii  devio                  1.2-1.2
ih  initramfs-tools        0.125
ii  linux-base             4.4
ii  mtd-utils              1:1.5.2-1
ii  ucf                    3.0036

Versions of packages flash-kernel recommends:
ii  u-boot-tools  2016.03+dfsg1-6

flash-kernel suggests no packages.

-- debconf information:
* flash-kernel/linux_cmdline: quiet


Reply to: