Add initial support for ppc64

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
18 messages Options
Reply | Threaded
Open this post in threaded view
|

Add initial support for ppc64

John Paul Adrian Glaubitz
Hi!

Here's a small series of patches which adds ppc64 support to debian-installer.
With the patches applied, I can build debian-installer inside a ppc64 chroot.

The generated d-i images should work on 64-Bit PowerPC Macs.

Cheers,
Adrian

 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - [hidden email]
`. `'   Freie Universitaet Berlin - [hidden email]
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913

Reply | Threaded
Open this post in threaded view
|

[PATCH 1/7] Clone boot configuration files from powerpc for ppc64.

John Paul Adrian Glaubitz
Signed-off-by: John Paul Adrian Glaubitz <[hidden email]>
---
 build/boot/ppc64/boot.msg             |  19 +++
 build/boot/ppc64/bootinfo.txt         | 266 ++++++++++++++++++++++++++++++++++
 build/boot/ppc64/hfs.map              |  12 ++
 build/boot/ppc64/ofboot.b             |  13 ++
 build/boot/ppc64/yaboot.conf          |  35 +++++
 build/boot/ppc64/yaboot.conf.hd-media |  35 +++++
 build/boot/ppc64/yaboot.conf.netboot  |  35 +++++
 debian/changelog                      |   3 +
 8 files changed, 418 insertions(+)
 create mode 100644 build/boot/ppc64/boot.msg
 create mode 100644 build/boot/ppc64/bootinfo.txt
 create mode 100644 build/boot/ppc64/hfs.map
 create mode 100644 build/boot/ppc64/ofboot.b
 create mode 100644 build/boot/ppc64/yaboot.conf
 create mode 100644 build/boot/ppc64/yaboot.conf.hd-media
 create mode 100644 build/boot/ppc64/yaboot.conf.netboot

diff --git a/build/boot/ppc64/boot.msg b/build/boot/ppc64/boot.msg
new file mode 100644
index 000000000..30723098e
--- /dev/null
+++ b/build/boot/ppc64/boot.msg
@@ -0,0 +1,19 @@
+Welcome to Debian GNU/Linux ${DEBIAN_VERSION}!
+
+This is a Debian installation ${MEDIA_TYPE},
+built on ${BUILD_DATE}.
+
+The default option is 'install'. For maximum
+control, you can use the 'expert' option.
+
+If the system fails to boot at all (the typical
+symptom is a white screen which doesn't go away),
+use 'install video=ofonly' or 'expert video=ofonly'.
+
+Press the tab key for a list of options, or type
+'help' for help.
+
+************************************
+If in doubt, just choose 'install', and if that
+doesn't work, try 'install video=ofonly'.
+************************************
diff --git a/build/boot/ppc64/bootinfo.txt b/build/boot/ppc64/bootinfo.txt
new file mode 100644
index 000000000..bbaa4d3c5
--- /dev/null
+++ b/build/boot/ppc64/bootinfo.txt
@@ -0,0 +1,266 @@
+<chrp-boot>
+<description>Debian/GNU Linux Installation on IBM CHRP hardware</description>
+<os-name>Debian/GNU Linux for PowerPC</os-name>
+<boot-script>boot &device;:\install\yaboot</boot-script>
+<icon size=64,64 color-space=3,3,2>
+<bitmap>
+FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
+FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
+FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
+FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
+FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
+FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
+FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
+FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
+FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
+FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
+FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
+FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
+FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
+FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
+FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
+FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
+FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
+FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
+FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
+FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
+FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
+FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
+FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
+FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
+FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
+FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
+FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
+FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
+FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
+FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
+FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
+FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
+FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
+FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
+FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
+FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
+FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
+FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
+FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
+FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
+FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
+FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
+FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
+FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
+FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
+FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
+FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
+FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
+FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
+FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
+FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
+FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
+FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
+FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
+FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
+FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
+FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
+FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
+FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
+FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
+FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
+FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
+FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
+FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
+FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
+FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
+FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
+FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
+FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
+FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
+FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
+FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
+FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
+FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
+FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
+FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
+FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
+FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
+FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
+FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
+FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
+FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
+FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
+FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
+FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
+FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
+FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
+FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
+FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
+FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
+FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
+FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
+FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
+FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
+FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
+FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
+FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
+FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
+FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
+FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
+FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
+FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
+FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
+FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
+FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
+FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
+FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
+FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
+FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
+FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
+FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
+FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
+FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
+FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
+FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
+FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
+FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
+FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
+FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
+FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
+FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
+FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
+FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
+FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
+FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
+FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
+FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
+FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
+</bitmap>
+</icon>
+</chrp-boot>
+
diff --git a/build/boot/ppc64/hfs.map b/build/boot/ppc64/hfs.map
new file mode 100644
index 000000000..0d8b4cfce
--- /dev/null
+++ b/build/boot/ppc64/hfs.map
@@ -0,0 +1,12 @@
+# ext.  xlate  creator  type    comment
+.hqx    Ascii  'BnHx'   'TEXT'  "BinHex file"
+.sit    Raw    'SIT!'   'SITD'  "StuffIT Expander"
+.mov    Raw    'TVOD'   'MooV'  "QuickTime Movie"
+.deb    Raw    'Debn'   'bina'  "Debian package"
+.bin    Raw    'ddsk'   'DDim'  "Floppy or ramdisk image"
+.img    Raw    'ddsk'   'DDim'  "Floppy or ramdisk image"
+.b      Raw    'UNIX'   'tbxi'  "bootstrap"
+yaboot  Raw    'UNIX'   'boot'  "bootstrap"
+vmlinux Raw    'UNIX'   'boot'  "bootstrap"
+.conf   Raw    'UNIX'   'conf'  "bootstrap"
+*       Ascii  '????'   '????'  "Text file"
diff --git a/build/boot/ppc64/ofboot.b b/build/boot/ppc64/ofboot.b
new file mode 100644
index 000000000..ffa91e802
--- /dev/null
+++ b/build/boot/ppc64/ofboot.b
@@ -0,0 +1,13 @@
+<CHRP-BOOT>
+<COMPATIBLE>
+MacRISC MacRISC3 MacRISC4
+</COMPATIBLE>
+<DESCRIPTION>
+Debian GNU/Linux PowerPC first stage CDROM bootloader
+</DESCRIPTION>
+<BOOT-SCRIPT>
+" screen" output
+load-base release-load-area
+boot cd:,\install\yaboot
+</BOOT-SCRIPT>
+</CHRP-BOOT>
diff --git a/build/boot/ppc64/yaboot.conf b/build/boot/ppc64/yaboot.conf
new file mode 100644
index 000000000..d0e13a166
--- /dev/null
+++ b/build/boot/ppc64/yaboot.conf
@@ -0,0 +1,35 @@
+## This yaboot.conf is for CD booting only, do not use as reference.
+## Debian GNU/Linux PowerPC
+
+default=install
+root=/dev/ram
+
+message=/install/boot.msg
+
+image=/install/${TYPE}-linux
+ label=install
+ initrd=/install/${TYPE}-initrd.gz
+ initrd-size=${RAMDISK_SIZE}
+ append="--"
+ read-only
+
+image=/install/${TYPE}-linux
+ label=expert
+ initrd=/install/${TYPE}-initrd.gz
+ initrd-size=${RAMDISK_SIZE}
+ append="priority=low --"
+ read-only
+
+image=/install/${TYPE}-linux
+ label=rescue
+ initrd=/install/${TYPE}-initrd.gz
+ initrd-size=${RAMDISK_SIZE}
+ append="rescue/enable=true --"
+ read-only
+
+image=/install/${TYPE}-linux
+ label=auto
+ initrd=/install/${TYPE}-initrd.gz
+ initrd-size=${RAMDISK_SIZE}
+ append="auto=true priority=critical --"
+ read-only
diff --git a/build/boot/ppc64/yaboot.conf.hd-media b/build/boot/ppc64/yaboot.conf.hd-media
new file mode 100644
index 000000000..4e5c35a33
--- /dev/null
+++ b/build/boot/ppc64/yaboot.conf.hd-media
@@ -0,0 +1,35 @@
+## This yaboot.conf is for hd-media booting only, do not use as reference.
+## Debian GNU/Linux PowerPC
+
+default=install
+root=/dev/ram
+
+message=/boot.msg
+
+image=/vmlinux
+ label=install
+ initrd=/initrd.gz
+ initrd-size=${RAMDISK_SIZE}
+ append="--"
+ read-only
+
+image=/vmlinux
+ label=expert
+ initrd=/initrd.gz
+ initrd-size=${RAMDISK_SIZE}
+ append="priority=low --"
+ read-only
+
+image=/vmlinux
+ label=rescue
+ initrd=/initrd.gz
+ initrd-size=${RAMDISK_SIZE}
+ append="rescue/enable=true --"
+ read-only
+
+image=/vmlinux
+ label=auto
+ initrd=/initrd.gz
+ initrd-size=${RAMDISK_SIZE}
+ append="auto=true priority=critical --"
+ read-only
diff --git a/build/boot/ppc64/yaboot.conf.netboot b/build/boot/ppc64/yaboot.conf.netboot
new file mode 100644
index 000000000..0c2e7e3f5
--- /dev/null
+++ b/build/boot/ppc64/yaboot.conf.netboot
@@ -0,0 +1,35 @@
+## This yaboot.conf is for netbooting only, do not use as reference.
+## Debian GNU/Linux PowerPC
+
+default=install
+root=/dev/ram
+
+message=/boot.msg
+
+image=/vmlinux
+ label=install
+ initrd=/initrd.gz
+ initrd-size=${RAMDISK_SIZE}
+ append="--"
+ read-only
+
+image=/vmlinux
+ label=expert
+ initrd=/initrd.gz
+ initrd-size=${RAMDISK_SIZE}
+ append="priority=low --"
+ read-only
+
+image=/vmlinux
+ label=rescue
+ initrd=/initrd.gz
+ initrd-size=${RAMDISK_SIZE}
+ append="rescue/enable=true --"
+ read-only
+
+image=/vmlinux
+ label=auto
+ initrd=/initrd.gz
+ initrd-size=${RAMDISK_SIZE}
+ append="auto=true priority=critical --"
+ read-only
diff --git a/debian/changelog b/debian/changelog
index 85db40363..afb6d3c13 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -36,6 +36,9 @@ debian-installer (20170128) UNRELEASED; urgency=medium
   [ Mark Cave-Ayland ]
   * sparc64: Add virtio modules to cdrom image
 
+  [ John Paul Adrian Glaubitz ]
+  * Clone boot configuration files from powerpc for ppc64.
+
  -- Samuel Thibault <[hidden email]>  Sat, 11 Feb 2017 14:20:14 +0100
 
 debian-installer (20170127) unstable; urgency=medium
--
2.11.0

Reply | Threaded
Open this post in threaded view
|

[PATCH 2/7] Add ppc64 support based on powerpc configuration.

John Paul Adrian Glaubitz
In reply to this post by John Paul Adrian Glaubitz
Signed-off-by: John Paul Adrian Glaubitz <[hidden email]>
---
 build/config/ppc64.cfg                       | 97 ++++++++++++++++++++++++++++
 build/config/ppc64/powerpc64.cfg             | 18 ++++++
 build/config/ppc64/powerpc64/cdrom.cfg       |  9 +++
 build/config/ppc64/powerpc64/monolithic.cfg  |  8 +++
 build/config/ppc64/powerpc64/netboot-gtk.cfg | 16 +++++
 build/config/ppc64/powerpc64/netboot.cfg     |  9 +++
 debian/changelog                             |  1 +
 7 files changed, 158 insertions(+)
 create mode 100644 build/config/ppc64.cfg
 create mode 100644 build/config/ppc64/powerpc64.cfg
 create mode 100644 build/config/ppc64/powerpc64/cdrom.cfg
 create mode 100644 build/config/ppc64/powerpc64/monolithic.cfg
 create mode 100644 build/config/ppc64/powerpc64/netboot-gtk.cfg
 create mode 100644 build/config/ppc64/powerpc64/netboot.cfg

diff --git a/build/config/ppc64.cfg b/build/config/ppc64.cfg
new file mode 100644
index 000000000..0637b87dd
--- /dev/null
+++ b/build/config/ppc64.cfg
@@ -0,0 +1,97 @@
+SUBARCH_SUPPORTED = powerpc64
+
+KERNELMAJOR = 2.6
+BASEVERSION = $(LINUX_KERNEL_ABI)
+
+# create the kernels with builtin initrd.
+builtin_initrd: $(TEMP_KERNEL) $(TEMP_INITRD)
+ # temporary hack
+ case $(KERNELMAJOR) in \
+ 2.6) \
+ for subarch in $(SUBARCHES); do \
+ rm -f $(DEST)/vmlinuz-$$subarch.initrd; \
+ mkvmlinuz -v \
+ -a $$subarch \
+ -r $(KERNELVERSION) \
+ -k $(TEMP_KERNEL) \
+ -z -i $(TEMP_INITRD) \
+ -d $(TEMP)/lib \
+ -o $(DEST)/vmlinuz-$$subarch.initrd; \
+ done \
+ ;; \
+ *) \
+ echo "Kernel $(KERNELMAJOR) not supported" \
+ ;;\
+ esac
+
+# cd content for ppc64, includes yaboot for booting
+# apple ppc64 (newworld) computers
+cd_content_common:
+ mkdir -p $(TEMP_CD_TREE)/$(dir install/$(TYPE))
+
+ cp $(TEMP_KERNEL) $(TEMP_CD_TREE)/install/$(TYPE)-linux
+ ln -f $(TEMP_INITRD) $(TEMP_CD_TREE)/install/$(TYPE)-initrd.gz
+
+ # New-world bootability
+ cp -f boot/ppc64/ofboot.b $(TEMP_CD_TREE)/install/
+ cp -f /usr/lib/yaboot/yaboot $(TEMP_CD_TREE)/install/
+ bootvars-subst MEDIA_TYPE "${MEDIA_TYPE}" \
+ DEBIAN_VERSION "${DEBIAN_VERSION}" \
+ BUILD_DATE "${BUILD_DATE}" \
+ < boot/ppc64/boot.msg > $(TEMP_CD_TREE)/install/boot.msg
+ ramdisk-size-subst $(TEMP_INITRD) \
+ < boot/ppc64/yaboot.conf \
+ | sed 's,\$${TYPE},$(TYPE),g' \
+ > $(TEMP_CD_TREE)/install/yaboot.conf
+ # CHRP bootability
+ mkdir -p $(TEMP_CD_TREE)/etc
+ mkdir -p $(TEMP_CD_TREE)/ppc/chrp
+ cp -f $(TEMP_CD_TREE)/install/yaboot.conf $(TEMP_CD_TREE)/etc
+ cp -f boot/ppc64/bootinfo.txt $(TEMP_CD_TREE)/ppc
+
+# Adds yaboot to netboot dirs.
+netboot_content_common:
+ cp -f /usr/lib/yaboot/yaboot $(DEST)
+ bootvars-subst MEDIA_TYPE "${MEDIA_TYPE}" \
+ DEBIAN_VERSION "${DEBIAN_VERSION}" \
+ BUILD_DATE "${BUILD_DATE}" \
+ < boot/ppc64/boot.msg > $(DEST)/boot.msg
+ ramdisk-size-subst $(TEMP_INITRD) \
+ < boot/ppc64/yaboot.conf.netboot \
+ | sed 's,\$${TYPE},$(TYPE),g' \
+ > $(DEST)/yaboot.conf
+
+# creates a bootable cd image for ppc64
+arch_miniiso_common: cd_content_common
+ genisoimage -r -T --netatalk -chrp-boot -hfs -probe -map boot/ppc64/hfs.map -part -no-desktop -hfs-bless $(TEMP_CD_TREE)/install -hfs-volid Debian-Installer/PPC64 -o $(TEMP_MINIISO) $(TEMP_CD_TREE)
+
+# creates a bootable HFS filesystem, used for USB sticks
+hd_media_common: $(TEMP_KERNEL) $(TEMP_INITRD)
+ mkdir -p $(dir $(TEMP_BOOT))
+ : | dd of=$(TEMP_BOOT) bs=1024 seek=$(FLOPPY_SIZE)
+ HOME=$(TEMP) hformat -l $(DISK_LABEL) $(TEMP_BOOT)
+ HOME=$(TEMP) hmount $(TEMP_BOOT)
+ HOME=$(TEMP) hcopy -r $(TEMP_KERNEL) :vmlinux
+ HOME=$(TEMP) hcopy -r $(TEMP_INITRD) :initrd.gz
+ cp -a /usr/lib/yaboot/yaboot $(TEMP)/yaboot # used later
+ HOME=$(TEMP) hcopy -r $(TEMP)/yaboot :yaboot
+ HOME=$(TEMP) hattrib -c UNIX -t tbxi :yaboot
+
+ bootvars-subst MEDIA_TYPE "${MEDIA_TYPE}" \
+ DEBIAN_VERSION "${DEBIAN_VERSION}" \
+ BUILD_DATE "${BUILD_DATE}" \
+ < boot/ppc64/boot.msg > $(TEMP)/boot.msg
+ ramdisk-size-subst $(TEMP_INITRD) \
+ < boot/ppc64/yaboot.conf.hd-media \
+ > $(TEMP)/yaboot.conf
+ HOME=$(TEMP) hcopy -r $(TEMP)/boot.msg :boot.msg
+ HOME=$(TEMP) hcopy -r $(TEMP)/yaboot.conf :yaboot.conf
+
+ HOME=$(TEMP) hattrib -b :
+ HOME=$(TEMP) humount
+ rm -f $(TEMP)/.hcwd # clean up after hfsutils
+
+ $(if $(GZIPPED),gzip -v9f $(TEMP_BOOT))
+
+
+arch_tree:
diff --git a/build/config/ppc64/powerpc64.cfg b/build/config/ppc64/powerpc64.cfg
new file mode 100644
index 000000000..05428a139
--- /dev/null
+++ b/build/config/ppc64/powerpc64.cfg
@@ -0,0 +1,18 @@
+MEDIUM_SUPPORTED = cdrom netboot netboot-gtk
+MEDIUM_SUPPORTED_EXTRA = monolithic
+
+# The version of the kernel to use.
+KERNELVERSION = $(BASEVERSION)-powerpc64
+KERNELNAME = vmlinux
+
+SUBARCHES = chrp
+
+cd_content: cd_content_common
+
+netboot_content: netboot_content_common
+
+arch_miniiso: arch_miniiso_common
+
+arch_boot_screens:
+
+arch_boot: arch_boot_initrd
diff --git a/build/config/ppc64/powerpc64/cdrom.cfg b/build/config/ppc64/powerpc64/cdrom.cfg
new file mode 100644
index 000000000..886b0af76
--- /dev/null
+++ b/build/config/ppc64/powerpc64/cdrom.cfg
@@ -0,0 +1,9 @@
+MEDIA_TYPE = CD-ROM
+
+# cd booting does not need floppy images on powerpc
+TARGET = $(INITRD) $(KERNEL) builtin_initrd
+EXTRANAME = $(MEDIUM)/
+
+MANIFEST-BOOT = "CDROM image for 64bit Power and PowerPC cpus (except pre-power5 iSeries)"
+MANIFEST-INITRD = "initrd for use with 64bit Power and PowerPC cpus (except pre-power5 iSeries)"
+MANIFEST-KERNEL = "kernel for use with 64bit Power and PowerPC cpus (except pre-power5 iSeries)"
diff --git a/build/config/ppc64/powerpc64/monolithic.cfg b/build/config/ppc64/powerpc64/monolithic.cfg
new file mode 100644
index 000000000..727e191a0
--- /dev/null
+++ b/build/config/ppc64/powerpc64/monolithic.cfg
@@ -0,0 +1,8 @@
+MEDIA_TYPE = boot image
+
+TARGET = pkg-lists/standard-udebs pkg-lists/kernel-module-udebs $(INITRD) $(KERNEL) $(MINIISO)
+EXTRANAME = $(MEDIUM)/
+
+MANIFEST-INITRD = "initrd for 64bit Power and PowerPC cpus (except pre-power5 iSeries)"
+MANIFEST-KERNEL = "kernel image for use with 64bit Power and PowerPC cpus (except pre-power5 iSeries)"
+MANIFEST-MINIISO = "small bootable CD image for network install on 64bit Power and PowerPC machines (except pre-power5 iSeries)"
diff --git a/build/config/ppc64/powerpc64/netboot-gtk.cfg b/build/config/ppc64/powerpc64/netboot-gtk.cfg
new file mode 100644
index 000000000..d263cef0b
--- /dev/null
+++ b/build/config/ppc64/powerpc64/netboot-gtk.cfg
@@ -0,0 +1,16 @@
+MEDIA_TYPE = netboot image
+
+TYPE = netboot/gtk
+
+TARGET = $(INITRD) $(KERNEL) $(MINIISO) builtin_initrd
+EXTRANAME = netboot/gtk/
+
+MANIFEST-BOOT = "tftp boot image for 64bit Power and PowerPC cpus (except pre-power5 iSeries)"
+MANIFEST-INITRD = "initrd for use with 64bit Power and PowerPC cpus (except pre-power5 iSeries)"
+MANIFEST-KERNEL = "kernel for use with 64bit Power and PowerPC cpus (except pre-power5 iSeries)"
+
+KEEP_GI_LANGS = 1
+
+# All images that include cdebconf should include symbols needed by these
+# plugins.
+EXTRAUDEBS += cdebconf-gtk-entropy
diff --git a/build/config/ppc64/powerpc64/netboot.cfg b/build/config/ppc64/powerpc64/netboot.cfg
new file mode 100644
index 000000000..2d65a9c8d
--- /dev/null
+++ b/build/config/ppc64/powerpc64/netboot.cfg
@@ -0,0 +1,9 @@
+MEDIA_TYPE = netboot image
+
+TARGET = $(INITRD) $(KERNEL) $(MINIISO) builtin_initrd netboot_content
+EXTRANAME = $(MEDIUM)/
+
+MANIFEST-BOOT = "tftp boot image for 64bit Power and PowerPC cpus (except pre-power5 iSeries)"
+MANIFEST-INITRD = "initrd for 64bit Power and PowerPC cpus (except pre-power5 iSeries)"
+MANIFEST-KERNEL = "kernel for 64bit Power and PowerPC cpus (except pre-power5 iSeries)"
+MANIFEST-MINIISO = "small bootable CD image for powerpc64 netboot"
diff --git a/debian/changelog b/debian/changelog
index afb6d3c13..07c0b11c8 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -38,6 +38,7 @@ debian-installer (20170128) UNRELEASED; urgency=medium
 
   [ John Paul Adrian Glaubitz ]
   * Clone boot configuration files from powerpc for ppc64.
+  * Add ppc64 support based on powerpc configuration.
 
  -- Samuel Thibault <[hidden email]>  Sat, 11 Feb 2017 14:20:14 +0100
 
--
2.11.0

Reply | Threaded
Open this post in threaded view
|

[PATCH 3/7] Clone cdrom pkg-lists from powerpc for ppc64.

John Paul Adrian Glaubitz
In reply to this post by John Paul Adrian Glaubitz
Signed-off-by: John Paul Adrian Glaubitz <[hidden email]>
---
 build/pkg-lists/cdrom/ppc64.cfg | 31 +++++++++++++++++++++++++++++++
 debian/changelog                |  1 +
 2 files changed, 32 insertions(+)
 create mode 100644 build/pkg-lists/cdrom/ppc64.cfg

diff --git a/build/pkg-lists/cdrom/ppc64.cfg b/build/pkg-lists/cdrom/ppc64.cfg
new file mode 100644
index 000000000..f69f187b4
--- /dev/null
+++ b/build/pkg-lists/cdrom/ppc64.cfg
@@ -0,0 +1,31 @@
+input-modules-${kernel:Version}
+firewire-core-modules-${kernel:Version}
+
+pata-modules-${kernel:Version}
+console-setup-pc-ekmap
+console-setup-udeb
+kbd-udeb
+# The following can be removed once unix socket support is compiled
+# in to the kernel.
+usb-modules-${kernel:Version}
+serial-modules-${kernel:Version}
+usb-serial-modules-${kernel:Version} ?
+uinput-modules-${kernel:Version} ?
+# Currently all built into the kernel.
+#input-modules-${kernel:Version}
+fb-modules-${kernel:Version} ?
+eject-udeb
+pcmcia-storage-modules-${kernel:Version}
+pcmcia-modules-${kernel:Version}
+pcmciautils-udeb
+virtio-modules-${kernel:Version}
+
+# Support for USB CD-ROMs
+usb-storage-modules-${kernel:Version}
+# Support for SCSI CD-ROMs.
+scsi-common-modules-${kernel:Version} ?
+scsi-modules-${kernel:Version}
+
+# IBM Power hypervisor modules, only available on powerpc64.
+hypervisor-modules-${kernel:Version} ?
+fancontrol-modules-${kernel:Version} ?
diff --git a/debian/changelog b/debian/changelog
index 07c0b11c8..35f570ecd 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -39,6 +39,7 @@ debian-installer (20170128) UNRELEASED; urgency=medium
   [ John Paul Adrian Glaubitz ]
   * Clone boot configuration files from powerpc for ppc64.
   * Add ppc64 support based on powerpc configuration.
+  * Clone cdrom pkg-lists from powerpc for ppc64.
 
  -- Samuel Thibault <[hidden email]>  Sat, 11 Feb 2017 14:20:14 +0100
 
--
2.11.0

Reply | Threaded
Open this post in threaded view
|

[PATCH 4/7] Clone netboot pkg-lists from powerpc for ppc64.

John Paul Adrian Glaubitz
In reply to this post by John Paul Adrian Glaubitz
Signed-off-by: John Paul Adrian Glaubitz <[hidden email]>
---
 build/pkg-lists/netboot/ppc64.cfg | 30 ++++++++++++++++++++++++++++++
 debian/changelog                  |  1 +
 2 files changed, 31 insertions(+)
 create mode 100644 build/pkg-lists/netboot/ppc64.cfg

diff --git a/build/pkg-lists/netboot/ppc64.cfg b/build/pkg-lists/netboot/ppc64.cfg
new file mode 100644
index 000000000..3e9b572aa
--- /dev/null
+++ b/build/pkg-lists/netboot/ppc64.cfg
@@ -0,0 +1,30 @@
+input-modules-${kernel:Version}
+console-setup-pc-ekmap
+nic-modules-${kernel:Version}
+nic-pcmcia-modules-${kernel:Version}
+pcmcia-modules-${kernel:Version}
+mountmedia
+media-retriever
+usb-storage-modules-${kernel:Version}
+pcmciautils-udeb
+fb-modules-${kernel:Version} ?
+usb-modules-${kernel:Version}
+virtio-modules-${kernel:Version}
+
+console-setup-udeb
+kbd-udeb
+bogl-bterm-udeb
+hw-detect
+ethdetect
+netcfg
+
+# brltty
+brltty-udeb
+serial-modules-${kernel:Version}
+usb-serial-modules-${kernel:Version} ?
+uinput-modules-${kernel:Version} ?
+
+# IBM Power hypervisor modules, only available on powerpc64.
+hypervisor-modules-${kernel:Version} ?
+fancontrol-modules-${kernel:Version} ?
+
diff --git a/debian/changelog b/debian/changelog
index 35f570ecd..fe4d556e4 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -40,6 +40,7 @@ debian-installer (20170128) UNRELEASED; urgency=medium
   * Clone boot configuration files from powerpc for ppc64.
   * Add ppc64 support based on powerpc configuration.
   * Clone cdrom pkg-lists from powerpc for ppc64.
+  * Clone netboot pkg-lists from powerpc for ppc64.
 
  -- Samuel Thibault <[hidden email]>  Sat, 11 Feb 2017 14:20:14 +0100
 
--
2.11.0

Reply | Threaded
Open this post in threaded view
|

[PATCH 5/7] Clone netboot-gtk pkg-lists from powerpc for ppc64.

John Paul Adrian Glaubitz
In reply to this post by John Paul Adrian Glaubitz
Signed-off-by: John Paul Adrian Glaubitz <[hidden email]>
---
 build/pkg-lists/netboot/gtk/ppc64.cfg | 5 +++++
 debian/changelog                      | 1 +
 2 files changed, 6 insertions(+)
 create mode 100644 build/pkg-lists/netboot/gtk/ppc64.cfg

diff --git a/build/pkg-lists/netboot/gtk/ppc64.cfg b/build/pkg-lists/netboot/gtk/ppc64.cfg
new file mode 100644
index 000000000..bab02b461
--- /dev/null
+++ b/build/pkg-lists/netboot/gtk/ppc64.cfg
@@ -0,0 +1,5 @@
+#include "gtk-linux"
+
+mouse-modules-${kernel:Version}
+xserver-xorg-input-evdev-udeb
+xserver-xorg-video-fbdev-udeb
diff --git a/debian/changelog b/debian/changelog
index fe4d556e4..3b2e7dad8 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -41,6 +41,7 @@ debian-installer (20170128) UNRELEASED; urgency=medium
   * Add ppc64 support based on powerpc configuration.
   * Clone cdrom pkg-lists from powerpc for ppc64.
   * Clone netboot pkg-lists from powerpc for ppc64.
+  * Clone netboot-gtk pkg-lists from powerpc for ppc64.
 
  -- Samuel Thibault <[hidden email]>  Sat, 11 Feb 2017 14:20:14 +0100
 
--
2.11.0

Reply | Threaded
Open this post in threaded view
|

[PATCH 6/7] Add yaboot to Build-Depends for ppc64.

John Paul Adrian Glaubitz
In reply to this post by John Paul Adrian Glaubitz
Signed-off-by: John Paul Adrian Glaubitz <[hidden email]>
---
 debian/changelog | 1 +
 debian/control   | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index 3b2e7dad8..1cf61ee70 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -42,6 +42,7 @@ debian-installer (20170128) UNRELEASED; urgency=medium
   * Clone cdrom pkg-lists from powerpc for ppc64.
   * Clone netboot pkg-lists from powerpc for ppc64.
   * Clone netboot-gtk pkg-lists from powerpc for ppc64.
+  * Add yaboot to Build-Depends for ppc64.
 
  -- Samuel Thibault <[hidden email]>  Sat, 11 Feb 2017 14:20:14 +0100
 
diff --git a/debian/control b/debian/control
index 51680f462..237f81f41 100644
--- a/debian/control
+++ b/debian/control
@@ -95,7 +95,7 @@ Build-Depends:
  pxelinux [i386 amd64],
  syslinux-common (>= 3:6) [i386 amd64],
 # With isohybrid.
- yaboot [powerpc],
+ yaboot [powerpc ppc64],
 # For all our powerpc boot needs. Well, not really.
  aboot (>= 0.9b-2) [alpha],
 # A previous version didn't have netabootwrap.
--
2.11.0

Reply | Threaded
Open this post in threaded view
|

[PATCH 7/7] Add mkvmlinuz to Build-Depends for ppc64.

John Paul Adrian Glaubitz
In reply to this post by John Paul Adrian Glaubitz
Signed-off-by: John Paul Adrian Glaubitz <[hidden email]>
---
 debian/changelog | 1 +
 debian/control   | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index 1cf61ee70..4db7aa7b4 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -43,6 +43,7 @@ debian-installer (20170128) UNRELEASED; urgency=medium
   * Clone netboot pkg-lists from powerpc for ppc64.
   * Clone netboot-gtk pkg-lists from powerpc for ppc64.
   * Add yaboot to Build-Depends for ppc64.
+  * Add mkvmlinuz to Build-Depends for ppc64.
 
  -- Samuel Thibault <[hidden email]>  Sat, 11 Feb 2017 14:20:14 +0100
 
diff --git a/debian/control b/debian/control
index 237f81f41..be5ac92b6 100644
--- a/debian/control
+++ b/debian/control
@@ -148,7 +148,7 @@ Build-Depends:
  bf-utf-source [!s390 !s390x],
 # Contains the unicode font we use. Not a udeb since we
 # perform font reduction at build time.
- mkvmlinuz [powerpc],
+ mkvmlinuz [powerpc ppc64],
 # Used to make powerpc images that can boot direct from
 # firmware w/o using a boot loader.
  openssl,
--
2.11.0

Reply | Threaded
Open this post in threaded view
|

Re: [PATCH 2/7] Add ppc64 support based on powerpc configuration.

Ben Hutchings-3
In reply to this post by John Paul Adrian Glaubitz
On Mon, 2017-03-20 at 19:17 +0100, John Paul Adrian Glaubitz wrote:
[...]
> +KERNELMAJOR = 2.6
[...]
> + case $(KERNELMAJOR) in \
> + 2.6) \
[...]
> + *) \
> + echo "Kernel $(KERNELMAJOR) not supported" \
> + ;;\
[...]

Could you please not copy this nonsense?

Ben.

--
Ben Hutchings
Humans are not rational beings; they are rationalising beings.


signature.asc (849 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: [PATCH 2/7] Add ppc64 support based on powerpc configuration.

John Paul Adrian Glaubitz
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On 03/20/2017 10:19 PM, Ben Hutchings wrote:
> Could you please not copy this nonsense?

I also copied it for sparc64 "as is" back then, simply for consistency reasons.
Wouldn't it be better to clean it up in a separate commit, for all architectures?

Thanks,
Adrian

- --
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - [hidden email]
`. `'   Freie Universitaet Berlin - [hidden email]
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEYv+KdYTgKVaVRgAGdCY7N/W1+RMFAljQSc0ACgkQdCY7N/W1
+ROb5g/9HPPQ37f42CdwTZsbhs7Z5HUgnDQwl3atZ5qqUnltS3SnkJMhkygkQ/x9
ZZMiTg+0KO3lqz0rVXEdTuhZ1yWKmK23ixIynVeNm21o+eYYScPe+UDLFEsoABpG
uDw/mc+71wJU1bvmPbzpvLSm5MPRpY+6XsxwU6S1/boxrH7oYgdBPISC7jAwQs9f
rWXKsm/uR8+Cd1ghFr5LrsMqvwTnFzTJMP5OQ6JejVFucZxHFb8hh785U3SKqdZ4
c2v/Exrhn1sAOjyZ3+fTg9bhy1FVBi9q77Cw2tqUKKiFuio1o13h8l8su5Famvqj
2Lblvo8w2BHU/jd4XlnkscCDB6MLy2by71X+HiU1xBrX+u7plhbt2X826WEL9VrB
qFCDsg+5MOG1wEK5zgesd6oy1z7lRKVp16QmR1GDtWzd4kE+EDV3mbuIaUBJHkzx
daHYpFrX3Mjs0bb28y5xqsN3oZapygsdnL2A6E9wXgj160TJk0QKB4HYnUPdWg1l
2u6KMo8AjcHvxs0UsGAfhTdAdYvy6KnOfM15XbuHdaxSjWnDlJ+pXAKpQPJAN2jT
Qfiedq9cW+S2MLxPmTadHUwLaD2NOcyxn/tCLMcsyo2uWFW0wW0BPBdQchXaKvvy
ATT9X90pkd5UO6GPx6a4ZzOv9XYtjQFC6gWGUmcaLZ7rduU42J4=
=JqtO
-----END PGP SIGNATURE-----

Reply | Threaded
Open this post in threaded view
|

Re: [PATCH 2/7] Add ppc64 support based on powerpc configuration.

Ben Hutchings-3
On Mon, 2017-03-20 at 22:29 +0100, John Paul Adrian Glaubitz wrote:
> On 03/20/2017 10:19 PM, Ben Hutchings wrote:
> > Could you please not copy this nonsense?
>
> I also copied it for sparc64 "as is" back then, simply for
> consistency reasons.
> Wouldn't it be better to clean it up in a separate commit, for all
> architectures?

Yes, why don't you do that first.

Ben.

--
Ben Hutchings
Humans are not rational beings; they are rationalising beings.


signature.asc (849 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: [PATCH 2/7] Add ppc64 support based on powerpc configuration.

John Paul Adrian Glaubitz
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Hi Ben!

On 03/20/2017 10:33 PM, Ben Hutchings wrote:
> On Mon, 2017-03-20 at 22:29 +0100, John Paul Adrian Glaubitz wrote:
>> On 03/20/2017 10:19 PM, Ben Hutchings wrote:
>>> Could you please not copy this nonsense?
>>
>> I also copied it for sparc64 "as is" back then, simply for consistency reasons. Wouldn't it be better to clean it up in a separate commit, for all
>> architectures?
>
> Yes, why don't you do that first.

Could you give me a quick heads-up how you would like the code to be
changed? I would assume that running "mkvmlinuz" is still required
for booting from Open Firmware, isn't it?

I'm happy to make the requested changes, also in the powerpc code,
but I'm not 100% sure what you want me to change.

Thanks,
Adrian

- --
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - [hidden email]
`. `'   Freie Universitaet Berlin - [hidden email]
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEYv+KdYTgKVaVRgAGdCY7N/W1+RMFAljdcr8ACgkQdCY7N/W1
+RPqYxAAsZF3H6NNcKoqJtS3+ny86yl1gJqkRBLkhJbHgs7Pxcw1qO0bs4Ddhzqt
Vp+OHisRSIyju7H3y1TboSeZtGeQvjEncz4ucslYKayghefhNJNIL60rL1jstLxD
dQLo3o2aQDMlswx4HEIowuAVjHDSPVQ2VGI3bZk3kwnxJcV8qyFKIWTpHy70G0zF
hxICW2D0KSGlIeae+bb0r+p/JbD73ouW+/VeEQOfVeqnhlwRGP6crunTBEC+2BPM
u8wbkQ6GxfJI4iaUTG5dF/0WaY+qzpxTgDX+vyT/OQPY4huMiwna88g5wunt5kE6
a74SatIkEkqrPwY9g9lvSoQlfj+N2GcjBycUSVi+gq3DmbJLkwC5xKOuoQ0d7ECf
TT1J/LE/CZN8E6XM1P6QOhQjcJGSjJydiASys2QDRNoEy9iw0ExurQfT7j90kMVb
crMI9lGug4qPP6NOGAtCX/Nwlw7lW1cm/lNpy8I84X2HTicRDjW4xAmu2Sy/zh5w
Wg+cZhNklsdcCZ6DcSHvvMBQThmw8Hp1HGjBnqLPLM69Me0LDmv1Vu7k98idg2/A
meKaMmqEABkUkK8zL92hGT20S9VMlfldG/OnE+HGNylxaVoV0m8WXB9jI+w7SEwy
ubssM3zlJi2TShIsoETKPraCV3sP6DGcKwlHVaEmjqbMbQeJGDw=
=d3PK
-----END PGP SIGNATURE-----

Reply | Threaded
Open this post in threaded view
|

Re: [PATCH 2/7] Add ppc64 support based on powerpc configuration.

Ben Hutchings-3
On Thu, 2017-03-30 at 23:04 +0200, John Paul Adrian Glaubitz wrote:

> Hi Ben!
>
> On 03/20/2017 10:33 PM, Ben Hutchings wrote:
> > On Mon, 2017-03-20 at 22:29 +0100, John Paul Adrian Glaubitz wrote:
> > > On 03/20/2017 10:19 PM, Ben Hutchings wrote:
> > > > Could you please not copy this nonsense?
> > >
> > > I also copied it for sparc64 "as is" back then, simply for
> > > consistency reasons. Wouldn't it be better to clean it up in a
> > > separate commit, for all 
> > > architectures?
> >
> > Yes, why don't you do that first.
>
> Could you give me a quick heads-up how you would like the code to be
> changed? I would assume that running "mkvmlinuz" is still required
> for booting from Open Firmware, isn't it?
I think so - though I've never used it myself.

> I'm happy to make the requested changes, also in the powerpc code,
> but I'm not 100% sure what you want me to change.

Delete all the checks for Linux "2.6" and the related assignments.

Ben.

--
Ben Hutchings
In a hierarchy, every employee tends to rise to his level of
incompetence.


signature.asc (849 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: [PATCH 2/7] Add ppc64 support based on powerpc configuration.

John Paul Adrian Glaubitz
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On 03/30/2017 11:43 PM, Ben Hutchings wrote:
>> Could you give me a quick heads-up how you would like the code to be changed? I would assume that running "mkvmlinuz" is still required for booting from
>> Open Firmware, isn't it?
>
> I think so - though I've never used it myself.

Ok, I'll do some more research then to make sure I fully understand
the code.

>> I'm happy to make the requested changes, also in the powerpc code, but I'm not 100% sure what you want me to change.
>
> Delete all the checks for Linux "2.6" and the related assignments.

Ok. Btw, is there a reason why build/config/*.cfg still sets
KERNELMAJOR = 2.6 for all architectures? Is that still being used
somewhere?

Adrian

- --
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - [hidden email]
`. `'   Freie Universitaet Berlin - [hidden email]
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEYv+KdYTgKVaVRgAGdCY7N/W1+RMFAljdfgUACgkQdCY7N/W1
+RMMUQ//TDFp+CeR4QIR460Px10rDq+uOwJxjsC8+I1DAKgSX46GQzU4+5dLRQD/
FV3aHF2BvX9dU9tXlifk67BJ1mBDsdWCDXnAwqADj6OEqgKdJfRcDjp4zKdKPbc6
JCO4MD1+dKBdUp6Yj0Nv/nFz1sWu8qz3UD1aEdssJb8/Ak/8upAr/Q175zd9obXj
JvUiOZfR6rVJf7ShQQ9diQaYpzO47CvIx9IXgunsbx3PmkY1gOUoTwtC0ShLV+GX
XmbXwXeKErvgsOJt7GtHs5QFX6X2kFv1XdPA84cDgxi0agjFc70dFeN82MSjRWQG
yFmqkrXEjZBVuk+CP1VuxEQw0+lG1xgwgAgRs3aoaoUPKiHf8BTeeRqvsg9KAaCq
MTaGS6JV9QcMVm4/kR5sCc30oK8gPeNNOBjOhoQap8c7GBHsBF3rZdLs82xc3VEF
x5Ggx1ZKAT1FN6fKI6Aak/z4QOuchhbXU52yh/DPTeztEiuD1qM8os43OHxMOhkE
6oLXruvIiOfCjT7Lp/3rL/B4n+km4h4y7EQ+uIIov0pI8Xw19/DropEoIqNiQ55H
BG971J8B1vV2avbQvprjp4gEnkuDw2euniao3OXFid6EQPKSdV2yEF0s9VkLX6GZ
KdjTOgYkOk3g7+xZ4MkZCX7epxxUXUsIUnj+ZrZyM8E8LxF4614=
=ToFJ
-----END PGP SIGNATURE-----

Reply | Threaded
Open this post in threaded view
|

Re: [PATCH 2/7] Add ppc64 support based on powerpc configuration.

Ben Hutchings-3
On Thu, 2017-03-30 at 23:52 +0200, John Paul Adrian Glaubitz wrote:

> On 03/30/2017 11:43 PM, Ben Hutchings wrote:
> > > Could you give me a quick heads-up how you would like the code to
> > > be changed? I would assume that running "mkvmlinuz" is still
> > > required for booting from
> > > Open Firmware, isn't it?
> >
> > I think so - though I've never used it myself.
>
> Ok, I'll do some more research then to make sure I fully understand
> the code.
>
> > > I'm happy to make the requested changes, also in the powerpc
> > > code, but I'm not 100% sure what you want me to change.
> >
> > Delete all the checks for Linux "2.6" and the related assignments.
>
> Ok. Btw, is there a reason why build/config/*.cfg still sets
> KERNELMAJOR = 2.6 for all architectures? Is that still being used
> somewhere?
build/Makefile passes it to build/util/pkg-list.  It appears to be
possible to restrict packages listed in build/pkg-lists to particular
kernel major version by putting that at the end of the line:

        if ($line=~s/^(.*) \[([0-9. ]+)\]$/$1/) {
                my %kernels=();
                $kernels{$_} = 1 foreach split ' ', $2;
                return unless $kernels{$kernel_major};
        }

but none of the lists do so any more.

So to get rid of KERNELMAJOR you would first need to delete this
feature and parameter from build/util/pkg-list, and check that it
behaves the same with current package lists.

Ben.

--
Ben Hutchings
In a hierarchy, every employee tends to rise to his level of
incompetence.

signature.asc (849 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: [PATCH 2/7] Add ppc64 support based on powerpc configuration.

John Paul Adrian Glaubitz
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On 03/31/2017 12:56 AM, Ben Hutchings wrote:
> So to get rid of KERNELMAJOR you would first need to delete this feature and parameter from build/util/pkg-list, and check that it behaves the same with
> current package lists.

Ok, thanks.

So, for the time being would the attached patch for ppc64 and powerpc
be sufficient?

Cheers,
Adrian

- --
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - [hidden email]
`. `'   Freie Universitaet Berlin - [hidden email]
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEYv+KdYTgKVaVRgAGdCY7N/W1+RMFAljeZFsACgkQdCY7N/W1
+RNT/w//UEsvHH4dHmSWlo/7/J4nJKxkh+iMPa/mhf63BMXtUZlJ9x/5YvbJmpZF
K6rqn+3c/vwUgvSIB9WpmqDNog0rs2ywZp6iPxwGxxhDgfy/e2JiozJopQu18afV
Qhjuq+zNcQfYBU/37OwXAq4YzLUD5OQzi/1kwCKXisMHN5XVvQyZYVsq+5MAMlux
ekDl9Uur02eE5oSN7tQ2RULtegaw0xWkWlqAme1i+C2chfNdeed0Hz+SjzDkUUci
7+Ia5rNdCu3y11EOKIPfrgd49660eTzkzANZiHuzQz8jSbHNAHMtvLXbtRAVAlpY
lOjJMPlpF4ftrDTLOR7FbNFJh8HRdUA1cVCCS9TgRabN/1DztUBmwBF+HPa/paU2
I3dn3+wNLo5qBpO4J4JgBEpC+NIyWE3VFKPFlLFgEyu4fZ9AcZkx7xKSmQy9vSG2
kHeBKmAhArlKtm0xvVTmVyekd8DdXV2OpZ8vRX4kYNOwg726s4H81LQY1oZ/qJ5E
liIdRAK3Bg9vC/och8gfblsypjjX1uh4j9Bk69hUkPjEptGlKTgAg4+cTFlE9zk5
JGMJayplHq4uh8FXvm7V3Kz/xqOY4lZbf7Jw+DMn17qPwA876prlUCp6dFd9/e0t
EepkbLLrRCwLfwk07wW8iSYBqr1yngqcZnJWtN9DcpFfclWXfoc=
=+6Ff
-----END PGP SIGNATURE-----

0001-powerpc-Remove-useless-kernel-version-check-in-built.patch (1K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: [PATCH 2/7] Add ppc64 support based on powerpc configuration.

Ben Hutchings-3
On Fri, 2017-03-31 at 16:14 +0200, John Paul Adrian Glaubitz wrote:

> On 03/31/2017 12:56 AM, Ben Hutchings wrote:
> > So to get rid of KERNELMAJOR you would first need to delete this
> > feature and parameter from build/util/pkg-list, and check that it
> > behaves the same with
> > current package lists.
>
> Ok, thanks.
>
> So, for the time being would the attached patch for ppc64 and powerpc
> be sufficient?
Looks good to me.

Ben.

--
Ben Hutchings
To err is human; to really foul things up requires a computer.


signature.asc (849 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: [PATCH 2/7] Add ppc64 support based on powerpc configuration.

John Paul Adrian Glaubitz
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On 03/31/2017 04:34 PM, Ben Hutchings wrote:
>> So, for the time being would the attached patch for ppc64 and powerpc be sufficient?
>
> Looks good to me.

Great, thank you ;).

- --
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - [hidden email]
`. `'   Freie Universitaet Berlin - [hidden email]
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEYv+KdYTgKVaVRgAGdCY7N/W1+RMFAljeaQ8ACgkQdCY7N/W1
+RPsOhAAwTU53lc+BbgBfRTSE0Kt2CtpWo6yS1EKz0mQ8RY36xpKtOCxy59qi9ep
PYC5hgG9SqPOKcFigaVwog1UtXAnqrmr1iWiKs2FFnI5HqlAO78fXvYUBzJC+mpD
Gy+89Mrv0zTXkEogTBvoNJ/0ShTK1aXVjh1vGbOG3+Tmo++H98psgMsNKGQJmBsE
DYeGpFZnkYStIvWyAD5+tWRTmqdF7regXa0JfqyVcUk3tcgpoWG7qY5SzVgJPZNV
ll/TwNdI8XqebT62AvILZ81nq4o5gxBvhsNqsmhE+1JXp6r2rqZQIeIvioRZ2ZWl
vGPsYetDnKwNtRDd4Ugl2uMybeo81Vz+4yLIdyVLB6W/pF1HCja3RMmb+53z1NXU
7IU81UxWBeMHYT9QDgZ71nhN3rKuNVD4EcBLROYjSzzujWUSj9KsikgmfRizdmMP
T15HTrdOmebq4jiC5d0gqngafBhLdHw1MgP2ZuZAKt+tizguxkiglZMx4met/XdB
sviWdvisCwQeiKQbgbG/1o76eoXW2evXbF7LjViIRpqR/o7T/2nOfI7VUwCuriX/
Cbkpyk0bcVAb7RNauA7plK+qVpV02V5k7JuhFUnOrC+E6fQqDpgnrUEijvLGUbgo
GS0RVm9RVSNABC5QY0TY0HPVe2aUyE9Ah1ESa+VcLcGP6Zg8YA0=
=OOUg
-----END PGP SIGNATURE-----