Re: Adding ppc64el support in debian-cd

2014-10-03 Thread Aurelien Jarno
On Fri, Oct 03, 2014 at 01:00:04AM +0100, Steve McIntyre wrote:
 On Fri, Oct 03, 2014 at 12:33:01AM +0200, Aurelien Jarno wrote:
 Hi Steve,
 
 On Sat, Sep 27, 2014 at 10:02:34AM +0200, Aurelien Jarno wrote:
  On Mon, Sep 22, 2014 at 10:47:10PM +0200, Aurelien Jarno wrote:
   The tarball should be decompressed in the root of the CD-ROM, while the
   kernel and initrd should be placed in the /install directory. The ISO
   image should be generated with the --chrp-boot argument. Beside that the
   default options of genisoimage should be used, there is no need to
   specify any strange HFS option like on powerpc (Note: I only tested that
   on a VM using SLOF, it will be nice if someone with access to bare metal
   can confirm that).
   
   Don't hesitate to ask more details if needed. I will tell you once GRUB
   is fixed and all these files are in place on d-i.debian.org.
  
  GRUB is now fixed, and the latest daily build of d-i does have the CDROM
  files available:
  
  http://d-i.debian.org/daily-images/ppc64el/daily/cdrom/
 
 Please find attached a patch to add ppc64el support to debian-cd. Could
 you please merge it?
 
 Done, and pushed.
 
 I've also just added ppc64el to the daily and weekly build config -
 let's see how well it works!

Thanks! It seems the daily build has worked correctly. Unfortunately the
d-i's cdrom flavour misses the SCSI modules to access the CD-ROM, so a
full installation is not possible. I have fixed that in the d-i git, it
has missed the beta2 release, but should be in tomorrow's daily.

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


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



Re: Adding ppc64el support in debian-cd

2014-10-02 Thread Aurelien Jarno
Hi Steve,

On Sat, Sep 27, 2014 at 10:02:34AM +0200, Aurelien Jarno wrote:
 On Mon, Sep 22, 2014 at 10:47:10PM +0200, Aurelien Jarno wrote:
  The tarball should be decompressed in the root of the CD-ROM, while the
  kernel and initrd should be placed in the /install directory. The ISO
  image should be generated with the --chrp-boot argument. Beside that the
  default options of genisoimage should be used, there is no need to
  specify any strange HFS option like on powerpc (Note: I only tested that
  on a VM using SLOF, it will be nice if someone with access to bare metal
  can confirm that).
  
  Don't hesitate to ask more details if needed. I will tell you once GRUB
  is fixed and all these files are in place on d-i.debian.org.
 
 GRUB is now fixed, and the latest daily build of d-i does have the CDROM
 files available:
 
 http://d-i.debian.org/daily-images/ppc64el/daily/cdrom/

Please find attached a patch to add ppc64el support to debian-cd. Could
you please merge it?

Thanks,
Aurelien

-- 
Aurelien Jarno  GPG: 4096R/1DDD8C9B
aurel...@aurel32.net http://www.aurel32.net
From c7868964f5fb572fccbb7a00fd2f79bf612fadb5 Mon Sep 17 00:00:00 2001
From: Aurelien Jarno aurel...@aurel32.net
Date: Fri, 3 Oct 2014 00:11:47 +0200
Subject: [PATCH] Add initial support for ppc64el

---
 build_all.sh   |  2 +-
 tools/boot/jessie/boot-ppc64el | 65 ++
 tools/generate_di+k_list   |  9 ++
 3 files changed, 75 insertions(+), 1 deletion(-)
 create mode 100755 tools/boot/jessie/boot-ppc64el

diff --git a/build_all.sh b/build_all.sh
index 70337ec..87d938d 100755
--- a/build_all.sh
+++ b/build_all.sh
@@ -40,7 +40,7 @@ if [ -z $IMAGETARGET ] ; then
 	IMAGETARGET=official_images
 fi
 
-for ARCHES in i386 amd64 armel armhf arm64 mips mipsel powerpc s390x kfreebsd-amd64 kfreebsd-i386 source
+for ARCHES in i386 amd64 armel armhf arm64 mips mipsel powerpc ppc64el s390x kfreebsd-amd64 kfreebsd-i386 source
 do
 	export ARCHES
 	echo Now we're going to build CD for $ARCHES !
diff --git a/tools/boot/jessie/boot-ppc64el b/tools/boot/jessie/boot-ppc64el
new file mode 100755
index 000..0db3163
--- /dev/null
+++ b/tools/boot/jessie/boot-ppc64el
@@ -0,0 +1,65 @@
+#!/bin/bash
+#
+# Do install stuff for ppc64el, including making bootable CDs
+# Works with debian-installer
+#
+# $1 is the CD number
+# $2 is the temporary CD build dir
+
+. $BASEDIR/tools/boot/$DI_CODENAME/common.sh
+
+set -e
+#set -x
+
+N=$1
+CDDIR=$2
+INSTALLDIR=$CDDIR/install
+if [ $DI_WWW_HOME = default ];then
+DI_WWW_HOME=http://d-i.debian.org/daily-images/ppc64el/daily;
+try_di_image_cache
+fi
+
+# Common mkisofs options when creating CDs
+add_mkisofs_opt $CDDIR/../$N.mkisofs_opts -J -joliet-long
+add_mkisofs_opt $CDDIR/../$N.mkisofs_opts -cache-inodes
+
+# Only disc 1 bootable
+if [ $N != 1 ] ; then exit 0; fi
+
+cd $CDDIR/..
+
+BOOT_IMAGES=cdrom/initrd.gz cdrom/vmlinux cdrom/debian-cd_info.tar.gz
+
+# Download boot images.
+for image in $BOOT_IMAGES; do
+if [ ! -e $image ]; then
+dir=$(dirname $image)
+mkdir -p $dir
+if [ -n $LOCAL  -a -f ${LOCALDEBS:-$MIRROR}/dists/$DI_DIST/local/installer-$ARCH/current/images/$image ]; then
+cp ${LOCALDEBS:-$MIRROR}/dists/$DI_DIST/local/installer-$ARCH/current/images/$image $image
+elif [ ! $DI_WWW_HOME ];then
+if [ ! $DI_DIR ];then
+DI_DIR=$MIRROR/dists/$DI_DIST/main/installer-$ARCH/current/images
+fi
+cp $DI_DIR/$image $image
+else
+wget $DI_WWW_HOME/$image -O $image
+fi
+fi
+done
+
+# Boot setup including config and help files comes from d-i.
+mkdir -pv $PWD/CD$N
+cat cdrom/debian-cd_info.tar.gz | (cd CD$N/; tar zx)
+
+# Copy kernel and initrd
+mkdir -p $INSTALLDIR
+cp -lf cdrom/vmlinux $INSTALLDIR/
+cp -lf cdrom/initrd.gz $INSTALLDIR/
+
+# Add CHRP boot header
+if [ -d CD$N/ppc/bootinfo.txt ] ; then
+add_mkisofs_opt $CDDIR/../$N.mkisofs_opts -chrp-boot
+fi
+
+exit 0
diff --git a/tools/generate_di+k_list b/tools/generate_di+k_list
index 7759e4b..2ecea4e 100755
--- a/tools/generate_di+k_list
+++ b/tools/generate_di+k_list
@@ -232,6 +232,15 @@ linux-image-powerpc64
 linux-image-prep
 #endif
 
+#ifdef ARCH_ppc64el
+initramfs-tools
+grub-ieee1275
+busybox
+powerpc-utils
+powerpc-ibm-utils
+linux-image-powerpc64el
+#endif
+
 #ifdef ARCH_alpha
 aboot
 #endif
-- 
2.1.1



signature.asc
Description: Digital signature


Re: Adding ppc64el support in debian-cd

2014-10-02 Thread Steve McIntyre
On Fri, Oct 03, 2014 at 12:33:01AM +0200, Aurelien Jarno wrote:
Hi Steve,

On Sat, Sep 27, 2014 at 10:02:34AM +0200, Aurelien Jarno wrote:
 On Mon, Sep 22, 2014 at 10:47:10PM +0200, Aurelien Jarno wrote:
  The tarball should be decompressed in the root of the CD-ROM, while the
  kernel and initrd should be placed in the /install directory. The ISO
  image should be generated with the --chrp-boot argument. Beside that the
  default options of genisoimage should be used, there is no need to
  specify any strange HFS option like on powerpc (Note: I only tested that
  on a VM using SLOF, it will be nice if someone with access to bare metal
  can confirm that).
  
  Don't hesitate to ask more details if needed. I will tell you once GRUB
  is fixed and all these files are in place on d-i.debian.org.
 
 GRUB is now fixed, and the latest daily build of d-i does have the CDROM
 files available:
 
 http://d-i.debian.org/daily-images/ppc64el/daily/cdrom/

Please find attached a patch to add ppc64el support to debian-cd. Could
you please merge it?

Done, and pushed.

I've also just added ppc64el to the daily and weekly build config -
let's see how well it works!

-- 
Steve McIntyre, Cambridge, UK.st...@einval.com
  Getting a SCSI chain working is perfectly simple if you remember that there
  must be exactly three terminations: one on one end of the cable, one on the
  far end, and the goat, terminated over the SCSI chain with a silver-handled
  knife whilst burning *black* candles. --- Anthony DeBoer


-- 
To UNSUBSCRIBE, email to debian-powerpc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/2014100304.gi12...@einval.com



Re: Adding ppc64el support in debian-cd

2014-09-27 Thread Aurelien Jarno
On Mon, Sep 22, 2014 at 10:47:10PM +0200, Aurelien Jarno wrote:
 On Mon, Sep 22, 2014 at 02:09:29PM +0100, Steve McIntyre wrote:
  On Mon, Sep 22, 2014 at 09:57:44AM -0300, Mauricio Faria de Oliveira wrote:
  On 09/22/2014 12:00 AM, Lennart Sorensen wrote:
  On Sun, Sep 21, 2014 at 06:19:43PM +0100, Steve McIntyre wrote:
  I'm adding support for new architectures at the moment. powerpc is one
  of the most awkward existing arches to add boot support for at the
  moment, due to the mess of older machines. I'm hoping that ppc64el is
  better, but I don't have much information to go on. What should we be
  doing to make bootable CD/DVD/USB images for ppc64el, please?
  
  Aurelien and Paulo know more about the bootable status/steps than me.
  
  I believe that w/ the grub2 and klibc uploads from this last weekend,
  it's almost there. There's powerpc-utils  util-linux coming in from
  DELAYED in 2 days  5 days.
  
  OK, cool.
 
 Indeed bootable CD images are done with GRUB on ppc64el, but it is
 currently broken. debian-installer will provide a kernel, a vmlinux and
 a file called debian-cd_info.tar.gz containing the grub files. I have
 put an example of such a directory tree there:
 
   http://temp.aurel32.net/ppc64el/d-i/
 
 The tarball should be decompressed in the root of the CD-ROM, while the
 kernel and initrd should be placed in the /install directory. The ISO
 image should be generated with the --chrp-boot argument. Beside that the
 default options of genisoimage should be used, there is no need to
 specify any strange HFS option like on powerpc (Note: I only tested that
 on a VM using SLOF, it will be nice if someone with access to bare metal
 can confirm that).
 
 Don't hesitate to ask more details if needed. I will tell you once GRUB
 is fixed and all these files are in place on d-i.debian.org.

GRUB is now fixed, and the latest daily build of d-i does have the CDROM
files available:

http://d-i.debian.org/daily-images/ppc64el/daily/cdrom/

Aurelien

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


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



Re: Adding ppc64el support in debian-cd

2014-09-24 Thread Luigi Burdo

I was thinking why not add the KVM PPC support to into the debian PPC distro
Christian Xeno74 was succes have it working on X1000 Semi 64 dual core.
will be wonderful have it simple installed for G4 and G5 machine too

Luigi
On 22/09/14 15:24, Konstantinos Margaritis wrote:

On Mon, 22 Sep 2014 09:57:44 -0300
Mauricio Faria de Oliveira mauri...@linux.vnet.ibm.com wrote:


Yes, ppc64el runs on POWER8 onwards with OpenFirmware based firmware.

I thought the base was Power7? At least my qemu-based ppc64le VM
declares itself as a Power7?

Konstantinos





--
To UNSUBSCRIBE, email to debian-powerpc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/blu437-smtp93b550c2defa36c36057a2c8...@phx.gbl



Re: Adding ppc64el support in debian-cd

2014-09-22 Thread Mauricio Faria de Oliveira

On 09/22/2014 12:00 AM, Lennart Sorensen wrote:

On Sun, Sep 21, 2014 at 06:19:43PM +0100, Steve McIntyre wrote:

I'm adding support for new architectures at the moment. powerpc is one
of the most awkward existing arches to add boot support for at the
moment, due to the mess of older machines. I'm hoping that ppc64el is
better, but I don't have much information to go on. What should we be
doing to make bootable CD/DVD/USB images for ppc64el, please?


Aurelien and Paulo know more about the bootable status/steps than me.

I believe that w/ the grub2 and klibc uploads from this last weekend,
it's almost there. There's powerpc-utils  util-linux coming in from
DELAYED in 2 days  5 days.


I thought only power8 machines were able to run ppc64el so far, and
those would be openfirmware I imagine (every other IBM power machine I
have worked with was).


Yes, ppc64el runs on POWER8 onwards with OpenFirmware based firmware.

Thanks!

--
Mauricio Faria de Oliveira
IBM Linux Technology Center


--
To UNSUBSCRIBE, email to debian-powerpc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/54201cc8.6030...@linux.vnet.ibm.com



Re: Adding ppc64el support in debian-cd

2014-09-22 Thread Steve McIntyre
On Mon, Sep 22, 2014 at 09:57:44AM -0300, Mauricio Faria de Oliveira wrote:
On 09/22/2014 12:00 AM, Lennart Sorensen wrote:
On Sun, Sep 21, 2014 at 06:19:43PM +0100, Steve McIntyre wrote:
I'm adding support for new architectures at the moment. powerpc is one
of the most awkward existing arches to add boot support for at the
moment, due to the mess of older machines. I'm hoping that ppc64el is
better, but I don't have much information to go on. What should we be
doing to make bootable CD/DVD/USB images for ppc64el, please?

Aurelien and Paulo know more about the bootable status/steps than me.

I believe that w/ the grub2 and klibc uploads from this last weekend,
it's almost there. There's powerpc-utils  util-linux coming in from
DELAYED in 2 days  5 days.

OK, cool.

I thought only power8 machines were able to run ppc64el so far, and
those would be openfirmware I imagine (every other IBM power machine I
have worked with was).

Yes, ppc64el runs on POWER8 onwards with OpenFirmware based firmware.

Right. I'll start working based on that shortly.

-- 
Steve McIntyre, Cambridge, UK.st...@einval.com
You can't barbecue lettuce! -- Ellie Crane


-- 
To UNSUBSCRIBE, email to debian-powerpc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/20140922130929.ga27...@einval.com



Re: Adding ppc64el support in debian-cd

2014-09-22 Thread Konstantinos Margaritis
On Mon, 22 Sep 2014 09:57:44 -0300
Mauricio Faria de Oliveira mauri...@linux.vnet.ibm.com wrote:

 Yes, ppc64el runs on POWER8 onwards with OpenFirmware based firmware.

I thought the base was Power7? At least my qemu-based ppc64le VM
declares itself as a Power7?

Konstantinos


-- 
To UNSUBSCRIBE, email to debian-powerpc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/20140922162400.58ff7d57f98cc122e6086...@freevec.org



Re: Adding ppc64el support in debian-cd

2014-09-22 Thread Mauricio Faria de Oliveira

On 09/22/2014 10:24 AM, Konstantinos Margaritis wrote:

On Mon, 22 Sep 2014 09:57:44 -0300
Mauricio Faria de Oliveira mauri...@linux.vnet.ibm.com wrote:


Yes, ppc64el runs on POWER8 onwards with OpenFirmware based firmware.


I thought the base was Power7? At least my qemu-based ppc64le VM
declares itself as a Power7?


Yes. It is possible to run ppc64el on POWER7 as guest [1] (only),
but that requires firmware that is not generally available.

That has been used for development, but is not supported [2].


[1] https://lists.gnu.org/archive/html/qemu-ppc/2013-08/msg00047.html
[2] 
https://www.ibm.com/developerworks/community/blogs/fe313521-2e95-46f2-817d-44a4f27eba32/entry/just_the_faqs_about_little_endian?lang=en


--
Mauricio Faria de Oliveira
IBM Linux Technology Center


--
To UNSUBSCRIBE, email to debian-powerpc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/5420448b.9030...@linux.vnet.ibm.com



Re: Adding ppc64el support in debian-cd

2014-09-22 Thread Aurelien Jarno
On Mon, Sep 22, 2014 at 02:09:29PM +0100, Steve McIntyre wrote:
 On Mon, Sep 22, 2014 at 09:57:44AM -0300, Mauricio Faria de Oliveira wrote:
 On 09/22/2014 12:00 AM, Lennart Sorensen wrote:
 On Sun, Sep 21, 2014 at 06:19:43PM +0100, Steve McIntyre wrote:
 I'm adding support for new architectures at the moment. powerpc is one
 of the most awkward existing arches to add boot support for at the
 moment, due to the mess of older machines. I'm hoping that ppc64el is
 better, but I don't have much information to go on. What should we be
 doing to make bootable CD/DVD/USB images for ppc64el, please?
 
 Aurelien and Paulo know more about the bootable status/steps than me.
 
 I believe that w/ the grub2 and klibc uploads from this last weekend,
 it's almost there. There's powerpc-utils  util-linux coming in from
 DELAYED in 2 days  5 days.
 
 OK, cool.

Indeed bootable CD images are done with GRUB on ppc64el, but it is
currently broken. debian-installer will provide a kernel, a vmlinux and
a file called debian-cd_info.tar.gz containing the grub files. I have
put an example of such a directory tree there:

  http://temp.aurel32.net/ppc64el/d-i/

The tarball should be decompressed in the root of the CD-ROM, while the
kernel and initrd should be placed in the /install directory. The ISO
image should be generated with the --chrp-boot argument. Beside that the
default options of genisoimage should be used, there is no need to
specify any strange HFS option like on powerpc (Note: I only tested that
on a VM using SLOF, it will be nice if someone with access to bare metal
can confirm that).

Don't hesitate to ask more details if needed. I will tell you once GRUB
is fixed and all these files are in place on d-i.debian.org.

Thanks,
Aurelien

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


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



Re: Adding ppc64el support in debian-cd

2014-09-21 Thread Lennart Sorensen
On Sun, Sep 21, 2014 at 06:19:43PM +0100, Steve McIntyre wrote:
 I'm adding support for new architectures at the moment. powerpc is one
 of the most awkward existing arches to add boot support for at the
 moment, due to the mess of older machines. I'm hoping that ppc64el is
 better, but I don't have much information to go on. What should we be
 doing to make bootable CD/DVD/USB images for ppc64el, please?

I thought only power8 machines were able to run ppc64el so far, and
those would be openfirmware I imagine (every other IBM power machine I
have worked with was).

-- 
Len Sorensen


-- 
To UNSUBSCRIBE, email to debian-powerpc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/20140922030041.ga13...@csclub.uwaterloo.ca