Bug#754095: base-installer: ppc64el support

2014-08-28 Thread Aurelien Jarno
On Mon, Jul 07, 2014 at 04:18:13PM +0200, Frederic Bonnard wrote:
 Package: base-installer
 Version: 1.140
 Severity: normal
 Tags: patch
 User: debian-powe...@lists.debian.org
 Usertags: ppc64el
 
 Dear Maintainer,
 
 here is a patch from Ubuntu to add support to ppc64el.
 I've added a test when the CPU is used in POWERNV.
 Thank you,
 

[snip]

 --- base-installer-1.140/kernel/ppc64el.sh1970-01-01 00:00:00.0 
 +
 +++ base-installer-1.140/kernel/ppc64el.sh2014-05-14 11:55:07.0 
 +
 @@ -0,0 +1,13 @@
 +arch_get_kernel_flavour () {
 + echo powerpc64le
 + return 0
 +}
 +
 +arch_check_usable_kernel () {
 + return 0
 +}
 +
 +arch_get_kernel () {
 + echo linux-powerpc64le
 + echo linux-image-powerpc64le
 +}

I think only the second line is needed, the first line doesn't
correspond to any real package. Could you please confirm? I'll then
merge the patch.

Aurelien

-- 
Aurelien Jarno  GPG: 4096R/1DDD8C9B
aurel...@aurel32.net http://www.aurel32.net


-- 
To UNSUBSCRIBE, email to debian-boot-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/20140828083944.gs15...@hall.aurel32.net



Bug#754095: base-installer: ppc64el support

2014-07-07 Thread Frederic Bonnard
Package: base-installer
Version: 1.140
Severity: normal
Tags: patch
User: debian-powe...@lists.debian.org
Usertags: ppc64el

Dear Maintainer,

here is a patch from Ubuntu to add support to ppc64el.
I've added a test when the CPU is used in POWERNV.
Thank you,

F.

-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: ppc64el (ppc64le)

Kernel: Linux 3.14-1-powerpc64le (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
diff -Nru base-installer-1.140/kernel/Makefile base-installer-1.140/kernel/Makefile
--- base-installer-1.140/kernel/Makefile	2012-08-12 01:01:47.0 +
+++ base-installer-1.140/kernel/Makefile	2014-05-14 11:56:00.0 +
@@ -1,4 +1,4 @@
-ARCHES = alpha amd64 armeb armel armhf hppa i386 ia64 m68k mips mipsel powerpc s390 s390x sh4 sparc kfreebsd-amd64 kfreebsd-i386
+ARCHES = alpha amd64 armeb armel armhf hppa i386 ia64 m68k mips mipsel powerpc ppc64el s390 s390x sh4 sparc kfreebsd-amd64 kfreebsd-i386
 
 test:
 	@STATUS=0; \
diff -Nru base-installer-1.140/kernel/ppc64el.sh base-installer-1.140/kernel/ppc64el.sh
--- base-installer-1.140/kernel/ppc64el.sh	1970-01-01 00:00:00.0 +
+++ base-installer-1.140/kernel/ppc64el.sh	2014-05-14 11:55:07.0 +
@@ -0,0 +1,13 @@
+arch_get_kernel_flavour () {
+	echo powerpc64le
+	return 0
+}
+
+arch_check_usable_kernel () {
+	return 0
+}
+
+arch_get_kernel () {
+	echo linux-powerpc64le
+	echo linux-image-powerpc64le
+}
diff -Nru base-installer-1.140/kernel/tests/ppc64el/postal.cpuinfo base-installer-1.140/kernel/tests/ppc64el/postal.cpuinfo
--- base-installer-1.140/kernel/tests/ppc64el/postal.cpuinfo	1970-01-01 00:00:00.0 +
+++ base-installer-1.140/kernel/tests/ppc64el/postal.cpuinfo	2014-05-14 11:55:39.0 +
@@ -0,0 +1,44 @@
+processor	: 0
+cpu		: POWER7+ (raw), altivec supported
+clock		: 4228.00MHz
+revision	: 2.1 (pvr 004a 0201)
+
+processor	: 1
+cpu		: POWER7+ (raw), altivec supported
+clock		: 4228.00MHz
+revision	: 2.1 (pvr 004a 0201)
+
+processor	: 2
+cpu		: POWER7+ (raw), altivec supported
+clock		: 4228.00MHz
+revision	: 2.1 (pvr 004a 0201)
+
+processor	: 3
+cpu		: POWER7+ (raw), altivec supported
+clock		: 4228.00MHz
+revision	: 2.1 (pvr 004a 0201)
+
+processor	: 4
+cpu		: POWER7+ (raw), altivec supported
+clock		: 4228.00MHz
+revision	: 2.1 (pvr 004a 0201)
+
+processor	: 5
+cpu		: POWER7+ (raw), altivec supported
+clock		: 4228.00MHz
+revision	: 2.1 (pvr 004a 0201)
+
+processor	: 6
+cpu		: POWER7+ (raw), altivec supported
+clock		: 4228.00MHz
+revision	: 2.1 (pvr 004a 0201)
+
+processor	: 7
+cpu		: POWER7+ (raw), altivec supported
+clock		: 4228.00MHz
+revision	: 2.1 (pvr 004a 0201)
+
+timebase	: 51200
+platform	: pSeries
+model		: IBM pSeries (emulated by qemu)
+machine		: CHRP IBM pSeries (emulated by qemu)
diff -Nru base-installer-1.140/kernel/tests/ppc64el/postal.test base-installer-1.140/kernel/tests/ppc64el/postal.test
--- base-installer-1.140/kernel/tests/ppc64el/postal.test	1970-01-01 00:00:00.0 +
+++ base-installer-1.140/kernel/tests/ppc64el/postal.test	2014-06-26 09:10:53.0 +
@@ -0,0 +1,11 @@
+subarch chrp_ibm
+cpuinfo postal.cpuinfo
+majors 2.6
+flavour powerpc64le
+kernel-2.6 \
+  linux-powerpc64le \
+  linux-image-powerpc64le
+usable \
+  linux-powerpc64le \
+  linux-image-powerpc64le \
+  linux-image-3.14-1-powerpc64le
diff -Nru base-installer-1.140/kernel/tests/ppc64el/powernv.cpuinfo base-installer-1.140/kernel/tests/ppc64el/powernv.cpuinfo
--- base-installer-1.140/kernel/tests/ppc64el/powernv.cpuinfo	1970-01-01 00:00:00.0 +
+++ base-installer-1.140/kernel/tests/ppc64el/powernv.cpuinfo	2014-06-26 09:09:52.0 +
@@ -0,0 +1,105 @@
+processor	: 0
+cpu		: POWER8E (raw), altivec supported
+clock		: 3425.00MHz
+revision	: 2.1 (pvr 004b 0201)
+
+processor	: 8
+cpu		: POWER8E (raw), altivec supported
+clock		: 3425.00MHz
+revision	: 2.1 (pvr 004b 0201)
+
+processor	: 16
+cpu		: POWER8E (raw), altivec supported
+clock		: 3425.00MHz
+revision	: 2.1 (pvr 004b 0201)
+
+processor	: 24
+cpu		: POWER8E (raw), altivec supported
+clock		: 3425.00MHz
+revision	: 2.1 (pvr 004b 0201)
+
+processor	: 32
+cpu		: POWER8E (raw), altivec supported
+clock		: 3425.00MHz
+revision	: 2.1 (pvr 004b 0201)
+
+processor	: 40
+cpu		: POWER8E (raw), altivec supported
+clock		: 3425.00MHz
+revision	: 2.1 (pvr 004b 0201)
+
+processor	: 48
+cpu		: POWER8E (raw), altivec supported
+clock		: 3425.00MHz
+revision	: 2.1 (pvr 004b 0201)
+
+processor	: 56
+cpu		: POWER8E (raw), altivec supported
+clock		: 3425.00MHz
+revision	: 2.1 (pvr 004b 0201)
+
+processor	: 64
+cpu		: POWER8E (raw), altivec supported
+clock		: 3425.00MHz
+revision	: 2.1 (pvr 004b 0201)
+
+processor	: 72
+cpu		: POWER8E (raw), altivec supported
+clock		: 3425.00MHz
+revision	: 2.1 (pvr 004b 0201)
+