Package: vmdebootstrap
Version: 0.6-1
Severity: wishlist
Tags: patch

Thanks for maintaining vmdebootstrap!


For Jessie systems at least, the default kernel for armhf should be set
to armmp. Attached should be a patch to make this the default behavior,
and a second patch to remove explicitly setting the kernel variant for
several examples, which would be redundant.


FWIW, cubietruck could probably default to linux-image-armmp-lpae
rather than the default, though should be compatible with
linux-image-armmp.


live well,
  vagrant

From 9e0f43722a54c2547d7b47bea01d9aa65f897ee7 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagr...@debian.org>
Date: Tue, 3 Feb 2015 08:54:28 -0800
Subject: [PATCH 1/2] Default to armmp kernel for armhf architecture.

---
 vmdebootstrap | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/vmdebootstrap b/vmdebootstrap
index a9127ae..446fcaa 100755
--- a/vmdebootstrap
+++ b/vmdebootstrap
@@ -423,6 +423,8 @@ class VmDebootstrap(cliapp.Application):  # pylint: disable=too-many-public-meth
         if not self.settings['no-kernel']:
             if self.settings['arch'] == 'i386':
                 kernel_arch = '486'
+            elif self.settings['arch'] == 'armhf':
+                kernel_arch = 'armmp'
             else:
                 kernel_arch = self.settings['arch']
             kernel_image = 'linux-image-%s' % kernel_arch
-- 
2.1.4

From b771828b37b68913c00ba0d881a5d8f5ef6fb39f Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagr...@debian.org>
Date: Tue, 3 Feb 2015 08:54:53 -0800
Subject: [PATCH 2/2] Drop calls to --no-kernel and --package for several armhf
 examples.

---
 examples/beagleboneblack.sh | 2 --
 examples/cubietruck.sh      | 2 --
 examples/wandboard6q.sh     | 2 --
 3 files changed, 6 deletions(-)

diff --git a/examples/beagleboneblack.sh b/examples/beagleboneblack.sh
index 7fd44b2..8fba046 100755
--- a/examples/beagleboneblack.sh
+++ b/examples/beagleboneblack.sh
@@ -13,9 +13,7 @@ sudo vmdebootstrap \
  --enable-dhcp \
  --configure-apt \
  --no-extlinux \
- --no-kernel \
  --package u-boot \
- --package linux-image-armmp \
  --distribution sid \
  --serial-console-command "'/sbin/getty -L ttyO0 115200 vt100'" \
  --customize "beagleboneblack-customise.sh" \
diff --git a/examples/cubietruck.sh b/examples/cubietruck.sh
index 395b032..f1c05e7 100755
--- a/examples/cubietruck.sh
+++ b/examples/cubietruck.sh
@@ -13,8 +13,6 @@ sudo vmdebootstrap \
  --foreign /usr/bin/qemu-arm-static \
  --enable-dhcp \
  --configure-apt \
- --no-kernel \
- --package linux-image-armmp \
  --distribution sid \
  --serial-console-command "/sbin/getty -L ttyS0 115200 vt100" \
  --customize "cubietruck-customise.sh" \
diff --git a/examples/wandboard6q.sh b/examples/wandboard6q.sh
index 38c05a7..ed064f3 100755
--- a/examples/wandboard6q.sh
+++ b/examples/wandboard6q.sh
@@ -19,8 +19,6 @@ sudo ./vmdebootstrap \
  --configure-apt \
  --no-extlinux \
  --grub \
- --no-kernel \
- --package linux-image-armmp \
  --distribution sid \
  --serial-console-command "/sbin/getty -L ttymxc0 115200 vt100" \
  --customize "./examples/wandboard-customise.sh" \
-- 
2.1.4

-- System Information:
Debian Release: 8.0
  APT prefers testing
  APT policy: (500, 'testing'), (120, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386, armhf

Kernel: Linux 3.16.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages vmdebootstrap depends on:
ii  debootstrap    1.0.66
ii  extlinux       3:6.03+dfsg-4
ii  kpartx         0.5.0-5
ii  mbr            1.1.11-5+b1
ii  parted         3.2-6
ii  python         2.7.8-2
ii  python-cliapp  1.20140719-1
ii  python2.7      2.7.8-11
ii  qemu-utils     1:2.1+dfsg-11

Versions of packages vmdebootstrap recommends:
ii  grub2-common      2.02~beta2-20
ii  qemu-system       1:2.1+dfsg-11
ii  qemu-user-static  1:2.1+dfsg-11
ii  squashfs-tools    1:4.2+20130409-2

Versions of packages vmdebootstrap suggests:
pn  u-boot:armhf  <none>

-- no debconf information

Attachment: signature.asc
Description: PGP signature

Reply via email to