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

Bug#751816: flash-kernel and dtb



Control: tags 751816 patch

On Tue, Jul 08, 2014 at 08:03:30PM +0100, Ian Campbell wrote:
> I think the patch below resolves the worst issue and it works for me on
> cubietruck.
> 
> The more minor stuff mentioned in that report I'm not sure it is
> actually worth worrying over. The main one seems to be
> that /etc/default/flash-kernel:LINUX_KERNEL_CMDLINE is still populated
> even on systems where there is no way at all for it to get used.
> 
> Thoughts on that?

Looks good to me.

The only improvement I might suggest is deleting the line entirely if
LINUX_KERNEL_CMDLINE isn't set, but that's a minor point. Would definitely like
to see the updated flash-kernel hit jessie soon!

Thanks!

live well,
  vagrant

> commit e141f15eb9b1804839752be98f895ef4c68969cd
> Author: Ian Campbell <ijc@hellion.org.uk>
> Date:   Sun Jul 6 16:52:10 2014 +0100
> 
>     Append /etc/flash-kernel/default:LINUX_KERNEL_CMDLINE to bootargs.
>     
>     Only for those platforms which set bootargs based on LINUX_KERNEL_COMMAND line,
>     not those which set an unconditional/unconfigurable bootargs.
> 
> diff --git a/bootscript/bootscr.beaglebone b/bootscript/bootscr.beaglebone
> index df8af94..a0e5121 100644
> --- a/bootscript/bootscr.beaglebone
> +++ b/bootscript/bootscr.beaglebone
> @@ -2,7 +2,7 @@
>  
>  setenv device mmc
>  setenv partition ${bootpart}
> -setenv bootargs '@@LINUX_KERNEL_CMDLINE@@'
> +setenv bootargs ${bootargs} @@LINUX_KERNEL_CMDLINE@@
>  
>  image_locations='/boot/ /'
>  kvers='@@KERNEL_VERSION@@'
> diff --git a/bootscript/bootscr.cubox-i b/bootscript/bootscr.cubox-i
> index f8c69bb..e9b1b09 100644
> --- a/bootscript/bootscr.cubox-i
> +++ b/bootscript/bootscr.cubox-i
> @@ -2,7 +2,7 @@
>  
>  setenv device mmc
>  setenv partition ${mmcdev}:${mmcpart}
> -setenv bootargs '@@LINUX_KERNEL_CMDLINE@@'
> +setenv bootargs ${bootargs} @@LINUX_KERNEL_CMDLINE@@
>  
>  image_locations='/boot/ /'
>  kvers='@@KERNEL_VERSION@@'
> diff --git a/bootscript/bootscr.highbank b/bootscript/bootscr.highbank
> index 6827b21..881bb3f 100644
> --- a/bootscript/bootscr.highbank
> +++ b/bootscript/bootscr.highbank
> @@ -1,4 +1,4 @@
> -setenv bootargs '@@LINUX_KERNEL_CMDLINE@@'
> +setenv bootargs ${bootargs} @@LINUX_KERNEL_CMDLINE@@
>  @@UBOOT_ENV_EXTRA@@
>  ext2load scsi 0 ${kernel_addr_r} vmlinuz
>  ext2load scsi 0 ${ramdisk_addr_r} initrd.img
> diff --git a/bootscript/bootscr.sunxi b/bootscript/bootscr.sunxi
> index b2ffe50..16624a9 100644
> --- a/bootscript/bootscr.sunxi
> +++ b/bootscript/bootscr.sunxi
> @@ -11,7 +11,7 @@ setenv kernel_addr_r 0x46000000
>  setenv fdt_addr_r 0x47000000
>  setenv ramdisk_addr_r 0x48000000
>  
> -setenv bootargs '@@LINUX_KERNEL_CMDLINE@@'
> +setenv bootargs ${bootargs} @@LINUX_KERNEL_CMDLINE@@
>  @@UBOOT_ENV_EXTRA@@
>  
>  image_locations='/boot/ /'
> diff --git a/bootscript/bootscr.wandboard b/bootscript/bootscr.wandboard
> index 6e1a5c3..847c4ec 100644
> --- a/bootscript/bootscr.wandboard
> +++ b/bootscript/bootscr.wandboard
> @@ -5,7 +5,7 @@ setenv partition ${mmcdev}:${mmcpart}
>  if test -z "${ramdiskaddr}" ; then
>  	setenv ramdiskaddr 0x13000000
>  fi
> -setenv bootargs '@@LINUX_KERNEL_CMDLINE@@'
> +setenv bootargs ${bootargs} @@LINUX_KERNEL_CMDLINE@@
>  
>  image_locations='/boot/ /'
>  kvers='@@KERNEL_VERSION@@'
> diff --git a/bootscript/bootscr.xgene-mustang b/bootscript/bootscr.xgene-mustang
> index 23c8fa0..919a8e4 100644
> --- a/bootscript/bootscr.xgene-mustang
> +++ b/bootscript/bootscr.xgene-mustang
> @@ -1,4 +1,4 @@
> -setenv bootargs '@@LINUX_KERNEL_CMDLINE@@'
> +setenv bootargs ${bootargs} @@LINUX_KERNEL_CMDLINE@@
>  @@UBOOT_ENV_EXTRA@@
>  ext4load scsi 0 ${kernel_addr_r} uImage
>  ext4load scsi 0 ${ramdisk_addr_r} uInitrd
> diff --git a/debian/changelog b/debian/changelog
> index ed1e883..f0a8f6f 100644
> --- a/debian/changelog
> +++ b/debian/changelog
> @@ -2,6 +2,9 @@ flash-kernel (3.23) UNRELEASED; urgency=medium
>  
>    * Avoid stalling install when debconf frontend is noninteractive. Patch from
>      David Lechner. (Closes: #753059)
> +  * Append command line options from
> +    /etc/default/flash-kernel:LINUX_KERNEL_CMDLINE to ${bootargs} rather than
> +    replacing it entirely. (Partially addresses #751816)
>  
>   -- Ian Campbell <ijc@hellion.org.uk>  Sun, 06 Jul 2014 16:46:09 +0100

Attachment: signature.asc
Description: Digital signature


Reply to: