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

Bug#783074: marked as done (flash-kernel: improvements to uboot-generic bootscript)

Your message dated Sun, 07 Jun 2015 12:19:34 +0000
with message-id <E1Z1ZY6-0002EH-8V@franck.debian.org>
and subject line Bug#783074: fixed in flash-kernel 3.41
has caused the Debian Bug report #783074,
regarding flash-kernel: improvements to uboot-generic bootscript
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org

783074: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=783074
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: flash-kernel
Version: 3.35
Severity: wishlist
Tags: patch

This patch adds a few improvements to the uboot-generic bootscript:

* Use kernel version in versioned files
* Include kernel version, device and partition in boot message
* Set the console in bootargs
* Set workaround for console value for some imx systems

The kernel versioning its also make it possible to use a kernel without
relying on the various vmlinuz, initrd, dtb smlinks being valid, or for
troubleshooting an alternate version.

Including some or all of these could remove the need for several
board-specific boot scripts, and possibly allow a reasonable default
for unknown systems.

diff --git a/bootscript/bootscr.uboot-generic b/bootscript/bootscr.uboot-generic
index 7451112..e68c306 100644
--- a/bootscript/bootscr.uboot-generic
+++ b/bootscript/bootscr.uboot-generic
@@ -13,11 +13,21 @@
 # The uboot must support the bootz and generic filesystem load commands.
+if test "${console}" = "ttymxc0" && test -n "${baudrate}"; then
+  setenv console "${console},${baudrate}"
+if test -n "${console}"; then
+  setenv bootargs "${bootargs} console=${console}"
 setenv bootargs ${bootargs} @@LINUX_KERNEL_CMDLINE@@
-load ${devtype} ${devnum}:${bootpart} ${kernel_addr_r} ${prefix}vmlinuz \
-&& load ${devtype} ${devnum}:${bootpart} ${fdt_addr_r} ${prefix}dtb \
-&& load ${devtype} ${devnum}:${bootpart} ${ramdisk_addr_r} ${prefix}initrd.img \
-&& echo "Booting Debian..." \
+load ${devtype} ${devnum}:${bootpart} ${kernel_addr_r} ${prefix}vmlinuz-${kvers} \
+&& load ${devtype} ${devnum}:${bootpart} ${fdt_addr_r} ${prefix}dtb-${kvers} \
+&& load ${devtype} ${devnum}:${bootpart} ${ramdisk_addr_r} ${prefix}initrd.img-${kvers} \
+&& echo "Booting Debian ${kvers} from ${devtype} ${devnum}:${bootpart}..." \
 && bootz ${kernel_addr_r} ${ramdisk_addr_r}:${filesize} ${fdt_addr_r}

live well,

Attachment: signature.asc
Description: PGP signature

--- End Message ---
--- Begin Message ---
Source: flash-kernel
Source-Version: 3.41

We believe that the bug you reported is fixed in the latest version of
flash-kernel, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 783074@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
Ian Campbell <ijc@debian.org> (supplier of updated flash-kernel package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)

Hash: SHA256

Format: 1.8
Date: Sun, 07 Jun 2015 12:29:42 +0100
Source: flash-kernel
Binary: flash-kernel flash-kernel-installer
Architecture: source
Version: 3.41
Distribution: unstable
Urgency: medium
Maintainer: Debian Install System Team <debian-boot@lists.debian.org>
Changed-By: Ian Campbell <ijc@debian.org>
 flash-kernel - utility to make certain embedded devices bootable
 flash-kernel-installer - Make the system bootable (udeb)
Closes: 783073 783074
 flash-kernel (3.41) unstable; urgency=medium
   * Improvements to generic u-boot boot script, based on a patch from Vagrant
     Cascadian (Closes: #783074):
     - If ${console} is set then add "console=${console}" to the bootargs.
     - Boot the kernel using the versioned filenames in preference to the
       generic symlinks.
     - Log which kernel (if known) and device we are booting from.
     - Workaround lack of baudrate included with console on various iMX
   * Install dtbs into /boot/dtbs/$kvers. Based on a patch from Vagrant
     Cascadian. Retain links at /boot/dtb and /boot/dtb-$kvers (Closes: #783073)
   * Switch boot scripts using $kvers to boot a specific kernel (rather than via
     the vmlinuz symlink) to prefer ${fk_kvers} if set in the environment,
     allowing a rudimentary ability to select which kernel to boot.
 0b6580f416128ca1a7e31becdfdec42690390c33 1857 flash-kernel_3.41.dsc
 347ba6ababaee6213093fe4bb1768bf12b00cb39 60216 flash-kernel_3.41.tar.xz
 3371fe991757dede75e9fda5515feb849df104031e49b3532bcf911accbb9e57 1857 flash-kernel_3.41.dsc
 25f5a44575de5f8ad9e67484fe971f76ef8f6bf13aaa686340f7ebb27b92dc68 60216 flash-kernel_3.41.tar.xz
 c8a5287d9ad8ebad6f6b5f4b48c4edac 1857 utils optional flash-kernel_3.41.dsc
 aae8dc592c9432fe901e5442229d018b 60216 utils optional flash-kernel_3.41.tar.xz

Version: GnuPG v1


--- End Message ---

Reply to: