NetBSD Problem Report #53549
From www@NetBSD.org Fri Aug 24 16:26:37 2018
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id 7F36B7A104
for <gnats-bugs@gnats.NetBSD.org>; Fri, 24 Aug 2018 16:26:37 +0000 (UTC)
Message-Id: <20180824162636.1E4117A214@mollari.NetBSD.org>
Date: Fri, 24 Aug 2018 16:26:36 +0000 (UTC)
From: scole_mail@gmx.com
Reply-To: scole_mail@gmx.com
To: gnats-bugs@NetBSD.org
Subject: ppc601 machines need their own INSTALL kernel
X-Send-Pr-Version: www-1.0
>Number: 53549
>Category: port-macppc
>Synopsis: ppc601 machines need their own INSTALL kernel
>Confidential: no
>Severity: serious
>Priority: low
>Responsible: port-macppc-maintainer
>State: closed
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Fri Aug 24 16:30:00 +0000 2018
>Closed-Date: Thu Nov 29 21:21:11 +0000 2018
>Last-Modified: Thu Nov 29 21:21:11 +0000 2018
>Originator: scole_mail
>Release: 8.0
>Organization:
none
>Environment:
NetBSD dstar 7.1.2_PATCH NetBSD 7.1.2_PATCH (GENERIC) #0: Wed Aug 22 09:17:21 PDT 2018 scole@dstar:/home/scole/nbsd/cvs/7_0/obj/sys/arch/i386/compile/GENERIC i386
>Description:
It may be almost moot at this point, but the Power PC 601 machines
need their own INSTALL kernel. The existing INSTALL kernel can't boot a ppc601.
When I was looking at the ppc601 stuff, iirc, I didn't have a working
CD drive or floppy, so I didn't try set up and test proper install
media. Creating 601 install media I guess that would involve:
- In /src/etc/etc.macppc/Makefile.inc, adding 601 kernel
BUILD_KERNELS+= INSTALL INSTALL_601 GENERIC_MD
- adding new kernel config file, e.g.,:
src/sys/arch/macppc/conf/INSTALL_601
It might be nice if this kernel was under 4M uncompressed so it
could be netbooted, but that is not necessary. It could be based
off the existing GENERIC_601, adding whatever else is required for
the INSTALL stuff. This should generate files like:
pub/NetBSD/NetBSD-8.0/macppc/binary/kernel/netbsd-INSTALL_601.gz
pub/NetBSD/NetBSD-8.0/macppc/binary/kernel/netbsd-INSTALL.symbols.gz
- I haven't looked closely at how boot floppies and iso images work,
but maybe changing
src/distrib/macppc/cdroms/installcd/Makefile
src/distrib/macppc/floppies/bootfloppy
to generate something like
pub/NetBSD/NetBSD-8.0/macppc/installation/floppy/boot6_1.fs
pub/NetBSD/NetBSD-8.0/macppc/installation/floppy/boot6_2.fs
pub/NetBSD/NetBSD-8.0/images/NetBSD-8.0-macppc_601.iso
pub/NetBSD/NetBSD-8.0/images/NetBSD-8.0-macppc_601.iso.torrent
- probably other stuff I'm missing...
I'll try to submit some patches, but I can't test such changes because
I no longer have 601 hardware.
If someone who understands the install framework better wants to do
this, feel free. I would say it is better to have something there
even if it is untested.
Thanks
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
From: scole_mail <scole_mail@gmx.com>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: port-macppc/53549 ppc601 machines need their own INSTALL kernel
Date: Thu, 30 Aug 2018 08:56:22 -0700
I was planning to commit this in a week or so unless there are
suggestions or objections.
These patches create separate iso and boot floppy images for
macppc/ppc601 machines. The default macppc install media won't boot as
the 601 kernel needs to be compiled with different flags and #define's.
So the new iso and floppies should be the same as the original macppc,
except for the kernel.
I don't have working hardware to test these; it's getting hard to find
working ~25 year old floppy and cdrom drives...
I plan to update the INSTALL docs once these are checked in.
Thanks
Summary of changes: (A/? = New, R/D = Removed, M = Modified)
=============================================================
? cdroms/installcd601/
? cdroms/installcd601/Makefile
? floppies/bootfloppy-common/
? floppies/bootfloppy-common/Makefile.inc
? floppies/bootfloppy_601/
? floppies/bootfloppy_601/Makefile
M cdroms/Makefile
M floppies/Makefile
M floppies/bootfloppy/Makefile
M floppies/md-kernel/Makefile
M floppies/ramdisk/Makefile
Apply patch with "cd .../src/distrib/macppc ; patch -s -p0 < .../patchfile"
--- /dev/null 2018-08-30 08:13:52.796702781 -0700
+++ cdroms/installcd601/Makefile 2018-08-29 12:31:03.648360761 -0700
@@ -0,0 +1,8 @@
+# $NetBSD: Makefile,v 1.1 2018/08/29 12:17:50 scole Exp $
+CDBASE= macppc-601 # gives ${CDBASE}.iso
+CDRELEASE= true # include $RELEASEDIR/$MACHINE
+CDKERNELS= netbsd-INSTALL_601.gz netbsd
+CDINSTKERNEL= ../../floppies/md-kernel
+CDBUILDEXTRA= ${DESTDIR}/usr/mdec/ofwboot.xcf
+
+.include "${.CURDIR}/../../../common/Makefile.bootcd"
--- /dev/null 2018-08-30 08:13:52.796702781 -0700
+++ floppies/bootfloppy-common/Makefile.inc 2018-08-29 13:46:42.129488532 -0700
@@ -0,0 +1,24 @@
+# $NetBSD: Makefile.inc,v 1.1 2018/08/29 13:46:24 scole Exp $
+
+.include <bsd.own.mk>
+.include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
+
+# Required variables:
+# FLOPPY_NETBSD
+
+FLOPPYBASE= boot
+FLOPPYSIZE= 2880
+FLOPPYFILES= boot netbsd
+FLOPPYMAX= 3
+FLOPPYSUFFIX= .fs
+
+FLOPPY_RELEASEDIR= installation/floppy
+
+MDEC= ${DESTDIR}/usr/mdec
+KERNOBJ!= cd ${.CURDIR}/../md-kernel && ${PRINTOBJDIR}
+FLOPPY_BOOT= ${MDEC}/ofwboot
+FLOPPYINSTBOOT= "${TOOL_INSTALLBOOT} -v -m ${MACHINE} -t raw -B 17 @IMAGE@ ${MDEC}/bootxx ${FLOPPY_BOOT}"
+
+.include "${DISTRIBDIR}/common/Makefile.tarfloppy"
+
+.include <bsd.prog.mk>
--- /dev/null 2018-08-30 08:13:52.796702781 -0700
+++ floppies/bootfloppy_601/Makefile 2018-08-29 13:43:14.145518418 -0700
@@ -0,0 +1,7 @@
+# $NetBSD: Makefile,v 1.1 2018/08/29 13:43:08 scole Exp $
+
+FLOPPY_NETBSD= ${KERNOBJ}/netbsd-INSTALL_601.gz
+
+.include <bsd.own.mk>
+
+.include "../bootfloppy-common/Makefile.inc"
Index: cdroms/Makefile
===================================================================
RCS file: /cvsroot/src/distrib/macppc/cdroms/Makefile,v
retrieving revision 1.1
diff -b -u -r1.1 Makefile
--- cdroms/Makefile 6 Mar 2007 21:57:06 -0000 1.1
+++ cdroms/Makefile 30 Aug 2018 15:14:34 -0000
@@ -1,6 +1,6 @@
# $NetBSD: Makefile,v 1.1 2007/03/06 21:57:06 bouyer Exp $
-SUBDIR= installcd
+SUBDIR= installcd installcd601
TARGETS+= release iso_image
.include <bsd.subdir.mk>
Index: floppies/Makefile
===================================================================
RCS file: /cvsroot/src/distrib/macppc/floppies/Makefile,v
retrieving revision 1.5
diff -b -u -r1.5 Makefile
--- floppies/Makefile 12 Apr 2002 02:19:30 -0000 1.5
+++ floppies/Makefile 30 Aug 2018 15:14:36 -0000
@@ -1,6 +1,6 @@
# $NetBSD: Makefile,v 1.5 2002/04/12 02:19:30 lukem Exp $
-SUBDIR= ramdisk .WAIT md-kernel .WAIT bootfloppy
+SUBDIR= ramdisk .WAIT md-kernel .WAIT bootfloppy bootfloppy_601
TARGETS+=release
.include <bsd.subdir.mk>
Index: floppies/bootfloppy/Makefile
===================================================================
RCS file: /cvsroot/src/distrib/macppc/floppies/bootfloppy/Makefile,v
retrieving revision 1.28
diff -b -u -r1.28 Makefile
--- floppies/bootfloppy/Makefile 29 Jan 2015 20:47:12 -0000 1.28
+++ floppies/bootfloppy/Makefile 30 Aug 2018 15:14:37 -0000
@@ -1,22 +1,7 @@
# $NetBSD: Makefile,v 1.28 2015/01/29 20:47:12 joerg Exp $
-.include <bsd.own.mk>
-.include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
-
-FLOPPYBASE= boot
-FLOPPYSIZE= 2880
-FLOPPYFILES= boot netbsd
-FLOPPYMAX= 3
-FLOPPYSUFFIX= .fs
-
-FLOPPY_RELEASEDIR= installation/floppy
-
-MDEC= ${DESTDIR}/usr/mdec
-KERNOBJ!= cd ${.CURDIR}/../md-kernel && ${PRINTOBJDIR}
FLOPPY_NETBSD= ${KERNOBJ}/netbsd-INSTALL.gz
-FLOPPY_BOOT= ${MDEC}/ofwboot
-FLOPPYINSTBOOT= "${TOOL_INSTALLBOOT} -v -m ${MACHINE} -t raw -B 17 @IMAGE@ ${MDEC}/bootxx ${FLOPPY_BOOT}"
-.include "${DISTRIBDIR}/common/Makefile.tarfloppy"
+.include <bsd.own.mk>
-.include <bsd.prog.mk>
+.include "../bootfloppy-common/Makefile.inc"
Index: floppies/md-kernel/Makefile
===================================================================
RCS file: /cvsroot/src/distrib/macppc/floppies/md-kernel/Makefile,v
retrieving revision 1.11
diff -b -u -r1.11 Makefile
--- floppies/md-kernel/Makefile 8 May 2002 21:44:56 -0000 1.11
+++ floppies/md-kernel/Makefile 30 Aug 2018 15:14:38 -0000
@@ -7,6 +7,7 @@
RAMDISK= ${RAMDISKDIR}/ramdisk.fs
MDSETTARGETS= INSTALL ${RAMDISK} - \
+ INSTALL_601 ${RAMDISK} - \
GENERIC_MD ${RAMDISK} -
MDSET_RELEASEDIR= binary/kernel
Index: floppies/ramdisk/Makefile
===================================================================
RCS file: /cvsroot/src/distrib/macppc/floppies/ramdisk/Makefile,v
retrieving revision 1.48
diff -b -u -r1.48 Makefile
--- floppies/ramdisk/Makefile 24 Jan 2017 18:04:03 -0000 1.48
+++ floppies/ramdisk/Makefile 30 Aug 2018 15:14:39 -0000
@@ -5,8 +5,9 @@
IMAGE= ramdisk.fs
# This must be kept in sync with config option MEMORY_DISK_ROOT_SIZE
-# in both
+# in
# src/sys/arch/macppc/conf/INSTALL
+# src/sys/arch/macppc/conf/INSTALL_601
# src/sys/arch/macppc/conf/GENERIC_MD
IMAGESIZE= 2560k
MAKEFS_FLAGS+= -f 15
Summary of changes: (A/? = New, R/D = Removed, M = Modified)
=============================================================
M Makefile.inc
Apply patch with "cd .../src/etc/etc.macppc ; patch -s -p0 < .../patchfile"
Index: Makefile.inc
===================================================================
RCS file: /cvsroot/src/etc/etc.macppc/Makefile.inc,v
retrieving revision 1.9
diff -b -u -r1.9 Makefile.inc
--- Makefile.inc 20 Jul 2014 14:52:29 -0000 1.9
+++ Makefile.inc 30 Aug 2018 15:17:36 -0000
@@ -8,6 +8,6 @@
KERNEL_SETS= GENERIC GENERIC.MP GENERIC_601
-BUILD_KERNELS+= INSTALL GENERIC_MD
+BUILD_KERNELS+= INSTALL INSTALL_601 GENERIC_MD
INSTALLATION_DIRS+= installation/floppy
Summary of changes: (A/? = New, R/D = Removed, M = Modified)
=============================================================
A INSTALL_601
Apply patch with "cd .../src/sys/arch/macppc/conf ; patch -s -p0 < .../patchfile"
--- /dev/null 2018-08-30 08:17:09.002386777 -0700
+++ INSTALL_601 2018-08-30 07:35:11.662157791 -0700
@@ -0,0 +1,173 @@
+# $NetBSD: INSTALL_601,v 1.1 2018/08/28 13:37:00 scole Exp $
+#
+# config file for INSTALL FLOPPY
+#
+# this config more or less matches a Power Macintosh 7200 with a USB card,
+# and platinumfb
+
+include "arch/macppc/conf/std.macppc.601"
+
+#options INCLUDE_CONFIG_FILE # embed config file in kernel binary
+
+makeoptions COPTS="-Os" # Reduce size.
+
+maxusers 12
+
+options RTC_OFFSET=0 # hardware clock is this many mins. west of GMT
+
+# Enable the hooks used for initializing the ram-disk.
+options MEMORY_DISK_HOOKS
+options MEMORY_DISK_IS_ROOT # Force root on ram-disk
+options MEMORY_DISK_SERVER=0 # no userspace memory disk support
+options MEMORY_DISK_ROOT_SIZE=5120 # 2560 KiB
+options MEMORY_DISK_RBFLAGS=RB_SINGLE # boot in single-user mode
+
+options USERCONF # userconf(4) support
+options PIPE_SOCKETPAIR # smaller, but slower pipe(2)
+#options SYSCTL_INCLUDE_DESCR # Include sysctl descriptions in kernel
+
+# Compatibility options
+include "conf/compat_netbsd13.config"
+
+# File systems
+file-system FFS # UFS
+file-system MFS # memory file system
+file-system NFS # Network File System client
+file-system CD9660 # ISO 9660 + Rock Ridge file system
+file-system MSDOSFS # MS-DOS file system
+#file-system PTYFS # /dev/pts/N support
+
+# Filesystem options
+options NFS_V2_ONLY # Exclude NFS3 code to save space
+options APPLE_UFS # Apple UFS support in FFS
+#options FFS_NO_SNAPSHOT # No FFS snapshot support
+options WAPBL # File system journaling support
+
+# Networking options
+options INET # IP + ICMP + TCP + UDP
+options INET6 # IPV6
+options NFS_BOOT_DHCP # Support DHCP NFS root
+
+options WSEMUL_VT100 # VT100 / VT220 emulation
+options WSDISPLAY_DEFAULTSCREENS=1
+#options WSDISPLAY_COMPAT_USL # wsconscfg VT handling
+options FONT_GALLANT12x22 # big, Sun-like font
+options FONT_QVSS8x15 # a smaller font for lower resolutions
+
+# Kernel root file system and dump configuration.
+config netbsd root on ? type ?
+
+#
+# Device configuration
+#
+
+mainbus* at root
+
+cpu* at mainbus?
+bandit* at mainbus?
+
+pci* at bandit? bus ?
+pci* at ppb? bus ?
+
+pchb* at pci? dev ? function ? # PCI-Host bridges
+ppb* at pci? dev ? function ? # PCI-PCI bridges
+
+# Display devices
+#
+# The 7200's onboard video is unsupported by OF so we need either a
+# graphics card that works as OF console or a serial console.
+# The only cards known to work ( so far ) are PCI Voodoo3s flashed with the
+# official Macintosh firmware from 3Dfx. The others should work but are
+# untested with OF 1.0.5
+# this will take over the console if output-device is set to 'screen' or
+# 'platinum'. It will provide a NetBSD console, but still won't work with OF
+#platinumfb0 at mainbus?
+
+#gffb* at pci? function ? # NVIDIA GeForce2 MX
+#machfb* at pci? function ? # ATI Mach 64, Rage, Rage Pro
+#r128fb* at pci? function ? # ATI Rage 128
+voodoofb* at pci? function ? # 3Dfx Voodoo3
+
+# ATI Radeon. Still has problems on some hardware
+#radeonfb* at pci? function ?
+
+# generic PCI framebuffer, should work with everything supported by OF
+genfb* at pci? function ?
+
+# make sure the console display is always wsdisplay0
+wsdisplay0 at wsemuldisplaydev? console 1
+wsdisplay* at wsemuldisplaydev? console 0
+
+obio* at pci? dev ? function ?
+
+mc* at obio? # MACE ethernet
+esp* at obio? flags 0x00ff # 53c9x SCSI
+# the 7200 has no mesh but other PMacs with 601 cards may
+mesh* at obio? flags 0xffff # MESH SCSI
+nvram* at obio? # nvram
+
+# the new, improved ADB subsystem
+
+cuda* at obio? # CUDA, for Old World PowerMacs
+nadb* at adb_bus? # ADB bus enumerator, at cuda or pmu
+adbkbd* at nadb? # ADB keyboard
+adbms* at nadb? # ADB mice and touchpads
+
+wskbd* at wskbddev? console ?
+wsmouse* at wsmousedev?
+
+iic0 at cuda0 # CUDA's IIC bus
+
+zsc* at obio?
+zstty* at zsc? channel ?
+mediabay* at obio?
+wdc* at mediabay? flags 0
+
+# Cryptographic Devices
+
+# PCI cryptographic devices
+# (disabled, requires opencrypto framework which requires generic softints
+#hifn* at pci? dev ? function ? # Hifn 7755/7811/795x
+#ubsec* at pci? dev ? function ? # Broadcom 5501/5601/580x/582x
+
+scsibus* at scsi?
+
+sd* at scsibus? target ? lun ? # SCSI disks
+cd* at scsibus? target ? lun ? # SCSI CD-ROM drives
+
+wdc* at obio? flags 0x1
+atabus* at ata?
+wd* at atabus? drive ? flags 0x0000
+
+atapibus* at atapi?
+
+# PCI USB controllers
+ohci* at pci? dev ? function ? # USB Open Host Controller
+#ehci* at pci? dev ? function ? # USB Enhanced Host Controller
+
+uhci* at pci? dev ? function ?
+usb* at uhci?
+
+#usb* at ehci? # USB bus support
+usb* at ohci? # USB bus support
+uhub* at usb? # USB Hubs
+uhub* at uhub? port ?
+uhidev* at uhub? port ? configuration ? interface ? # USB HID device
+
+ums* at uhidev? reportid ? # USB Mice
+wsmouse* at ums? mux 0
+ukbd* at uhidev? reportid ? # USB Keyboards
+uhid* at uhidev? reportid ? # USB Generic HID
+
+umass* at uhub? port ? configuration ? interface ? # USB Mass Storage
+
+pseudo-device md # memory disk
+#pseudo-device fss # file system snapshot device
+pseudo-device loop # network loopback
+pseudo-device pty # pseudo-terminals
+
+pseudo-device wsmux # mouse and keyboard multiplexor
+pseudo-device openfirm # /dev/openfirm
+
+pseudo-device raid # RAIDframe disk driver
+options RAID_AUTOCONFIG # auto-configuration of RAID components
From: Martin Husemann <martin@duskware.de>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: port-macppc/53549 ppc601 machines need their own INSTALL kernel
Date: Thu, 30 Aug 2018 18:08:46 +0200
On Thu, Aug 30, 2018 at 04:00:02PM +0000, scole_mail wrote:
> These patches create separate iso and boot floppy images for
> macppc/ppc601 machines. The default macppc install media won't boot as
> the 601 kernel needs to be compiled with different flags and #define's.
> So the new iso and floppies should be the same as the original macppc,
> except for the kernel.
Can we avoid the new ISOs?
The name of the kernel to load is passed to the bootloader, isn't it?
So even if the CD would not boot by default, it could be made to manually
boot by dropping to OF and doing some settings?
Or maybe the bootloader can figure it out and do some name magic, maybe
restricted to the loader in the HFS part?
Martin
From: scole_mail <scole_mail@gmx.com>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: port-macppc/53549 ppc601 machines need their own INSTALL kernel
Date: Thu, 30 Aug 2018 18:36:39 -0700
Martin Husemann <martin@duskware.de> writes:
>
> Can we avoid the new ISOs?
> The name of the kernel to load is passed to the bootloader, isn't it?
>
> So even if the CD would not boot by default, it could be made to manually
> boot by dropping to OF and doing some settings?
>
> Or maybe the bootloader can figure it out and do some name magic, maybe
> restricted to the loader in the HFS part?
>
If we don't want separate images, I guess it would be easiest just to
add the 601 install kernel to the existing iso cd and floppy images, and
document the names in the INSTALL doc.
Then the burden would be on the user to type in the correct kernel name
for the 601 at the openfirmware prompt. If someone is already motivated
enough to attempt an install on a 601, then I guess it shouldn't be that
big of a deal.
By the way, was there some magic done to the iso images in
http://ftp.netbsd.org/pub/NetBSD/NetBSD-8.0/images/
to get them to boot in qemu?
My home-built iso images don't boot with qemu and I'm vaguely recalling
this issue just came up on one of the mailing lists recently.
Thanks
From: Martin Husemann <martin@duskware.de>
To: gnats-bugs@NetBSD.org
Cc: scole_mail@gmx.com
Subject: Re: port-macppc/53549 ppc601 machines need their own INSTALL kernel
Date: Fri, 31 Aug 2018 09:43:00 +0200
On Fri, Aug 31, 2018 at 01:40:01AM +0000, scole_mail wrote:
> By the way, was there some magic done to the iso images in
> http://ftp.netbsd.org/pub/NetBSD/NetBSD-8.0/images/
> to get them to boot in qemu?
Yes, you need mkisofs from cdrtools 2.01 (but not newer!)
Then in distrib/cdrom copy some conf and mk files, adjust them to your
needs (mostly a simple s/5.0/$myversion/) and do something like:
make MKISOFS=..../bin/mkisofs USETOOLS=no RELEASE=$myversion \
TARGET_CD_IMAGE=macppccd DISTRIBDIR=.... all
where the value for DISTRIBDIR is the release dir output of a previous
"build.sh release" run.
Same for mac68k CD images, but with TARGET_CD_IMAGE=mac68kcd.
It would be really great if someone could find time to add support for this
HFS hybrid stuff to our makefs, so we could fully integrate it into the
standard builds.
Martin
From: Valery Ushakov <uwe@stderr.spb.ru>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: port-macppc/53549 ppc601 machines need their own INSTALL kernel
Date: Fri, 31 Aug 2018 11:15:37 +0300
On Fri, Aug 31, 2018 at 07:45:00 +0000, Martin Husemann wrote:
> It would be really great if someone could find time to add support
> for this HFS hybrid stuff to our makefs
Is it documented anywhere what is the problem? I guess someone knows
that, at least to some level of details, but unless it's in a PR it's
not realistic to expect someone else to re-investigate this from
scratch and then implement it b/c then they need to "find time" to
duplicate quite a bit of that initial effort and by that time the time
found sort of runs out.
-uwe
From: Martin Husemann <martin@duskware.de>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: port-macppc/53549 ppc601 machines need their own INSTALL kernel
Date: Fri, 31 Aug 2018 10:47:52 +0200
There is src/distrib/cdrom/README:
--8<--
Now build.sh script has the "iso-image" target using our native makefs(8)
and this distrib/cdrom is being superseded, but our makefs(8) still
lacks support for a hybrid ISO9660/HFS file system which is required
to create bootable CD images for mac68k and macppc.
On the other hand, the recent version of mkisofs(8) seems to use
iconv(3) libraries on creating the hybrid ISO9660/HFS file system,
but the latest mkisofs(8) (at least cdrtools-2.01.01.36) from pkgsrc
dumps core on it. cdrtools-2.01 is required to build images. (PR pkg/37643)
-->8--
and there are "UFS with hfs attributes" extensions, see e.g.
src/distrib/cdrom/5.0.conf:
# USE_APPLE_ISO adds -apple to mkisofs to provide the Apple ISO-9660
# Extensions. This gives full MacOS attribute information to files without
# the overhead of full HFS. (A disc that is forced into HFS mode by the
# presence of mac68k or macppc will use HFS, not the Apple ISO Extensions.)
And the hfs addition or UFS with attributes happens in distrib/cdrom/Makefile:
# Mac (mac68k, macppc)
.if !empty(ports:Mmacppc)
BOOTHFS= boothfs
MKISOFS_ARGS.${image}+= -hfs -part -hide-hfs-list ${.CURDIR}/hide-hfs.lst \
--macbin -map ${.CURDIR}/hfsmap.lst \
-boot-hfs-file ${.OBJDIR}/${BOOTHFS}
UUDECODE_FILES= ${BOOTHFS}
.include <bsd.files.mk>
.elif defined(USE_APPLE_ISO) || !empty(ports:Mmac68k)
MKISOFS_ARGS.${image}+= -apple --macbin -map ${.CURDIR}/hfsmap.lst
.endif
Very similar options are in etc/etc.mac68k/Makefile.inc:
# For "make iso-image"
# mkisofs arguments to create a hybrid (HFS/Rockridge) CD-ROM image.
MKISOFS_FLAGS+= -hfs --macbin \
-map ${RELEASEDIR}/${RELEASEMACHINEDIR}/installation/misc/extensions.map
So, AFAICT, it boils down to add support for mkisofs compatible options:
-hfs -part -hide-hfs-list --macbin -map -boot-hfs-file
-apple
(whatever those mean in technical details).
Martin
From: Valery Ushakov <uwe@stderr.spb.ru>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: port-macppc/53549 ppc601 machines need their own INSTALL kernel
Date: Fri, 31 Aug 2018 13:13:42 +0300
On Fri, Aug 31, 2018 at 08:50:01 +0000, Martin Husemann wrote:
> There is src/distrib/cdrom/README:
>
> --8<--
> Now build.sh script has the "iso-image" target using our native makefs(8)
> and this distrib/cdrom is being superseded, but our makefs(8) still
> lacks support for a hybrid ISO9660/HFS file system which is required
> to create bootable CD images for mac68k and macppc.
>
> On the other hand, the recent version of mkisofs(8) seems to use
> iconv(3) libraries on creating the hybrid ISO9660/HFS file system,
> but the latest mkisofs(8) (at least cdrtools-2.01.01.36) from pkgsrc
> dumps core on it. cdrtools-2.01 is required to build images. (PR pkg/37643)
> -->8--
Is that latest part still true? The PR has been closed for 9 years (I
vaguely remember trying a newer version of cdrtools and fixing a bug
in command line parsing, some 4 years ago).
-uwe
From: scole_mail <scole_mail@gmx.com>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: port-macppc/53549 ppc601 machines need their own INSTALL kernel
Date: Sun, 02 Sep 2018 07:09:30 -0700
I'll create a separate PR for the mkisofs issue.
Is there an objection to having separate 601 boot floppies?
Thanks
From: Martin Husemann <martin@duskware.de>
To: gnats-bugs@NetBSD.org
Cc: port-macppc-maintainer@netbsd.org, gnats-admin@netbsd.org,
netbsd-bugs@netbsd.org, scole_mail@gmx.com
Subject: Re: port-macppc/53549 ppc601 machines need their own INSTALL kernel
Date: Sun, 2 Sep 2018 16:16:20 +0200
On Sun, Sep 02, 2018 at 02:10:01PM +0000, scole_mail wrote:
> Is there an objection to having separate 601 boot floppies?
Not from me, that does not wast much space ,-)
Martin
From: scole_mail <scole_mail@gmx.com>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: port-macppc/53549 ppc601 machines need their own INSTALL kernel
Date: Wed, 05 Sep 2018 09:13:26 -0700
I created a separate PR http://gnats.netbsd.org/53573 regarding the hfs
issue.
Thanks
From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
To: gnats-bugs@NetBSD.org
Cc: martin@duskware.de, tsutsui@ceres.dti.ne.jp
Subject: Re: port-macppc/53549 ppc601 machines need their own INSTALL kernel
Date: Sat, 8 Sep 2018 00:47:26 +0900
> Yes, you need mkisofs from cdrtools 2.01 (but not newer!)
It looks cdrtools 3.01nb1 from pkgsrc-2018Q2 can be used
to build the 8.0 macppc image with the following diff:
(note large debug.tgz is removed manually for now)
---
Index: Makefile
===================================================================
RCS file: /cvsroot/src/distrib/cdrom/Makefile,v
retrieving revision 1.51
diff -u -p -d -r1.51 Makefile
--- Makefile 11 Feb 2017 03:07:06 -0000 1.51
+++ Makefile 7 Sep 2018 15:01:03 -0000
@@ -76,7 +76,7 @@ SUBDIR+= macppc_installboot
##### Default paths for programs #####
-MKISOFS?= /usr/local/bin/mkisofs
+MKISOFS?= /usr/pkg/bin/mkisofs
RSYNC?= /usr/pkg/bin/rsync
ALPHA_IBOOT?= ${TOOL_INSTALLBOOT} -m alpha -o sunsum,append
PMAX_IBOOT?= ${TOOL_INSTALLBOOT} -m pmax -o sunsum,append
@@ -296,6 +296,7 @@ MKISOFS_ARGS.${image}+= -b ${BOOTFILE.am
BOOTHFS= boothfs
MKISOFS_ARGS.${image}+= -hfs -part -hide-hfs-list ${.CURDIR}/hide-hfs.lst \
--macbin -map ${.CURDIR}/hfsmap.lst \
+ -data-change-warn \
-boot-hfs-file ${.OBJDIR}/${BOOTHFS}
UUDECODE_FILES= ${BOOTHFS}
.include <bsd.files.mk>
--- /dev/null 2018-09-08 00:11:34.407061407 +0900
+++ NetBSD-8.0.mk 2018-09-06 01:17:14.158166907 +0900
@@ -0,0 +1,70 @@
+# $NetBSD$
+#
+# Configuration file for the NetBSD-8.0 binary release.
+
+# sysinst expects the architectures at top level
+RELEASE_SUBDIR= # empty
+
+# BOOTFILE.alpha is absolute
+BOOTFILE.alpha= ${EXTFILEDIR}/alpha.bootxx
+EXTFILES.alpha= alpha.bootxx:alpha/binary/sets/base.tgz,./usr/mdec/bootxx_cd9660
+INTFILES.alpha= netbsd.alpha:alpha/installation/instkernel/netbsd.gz,link \
+ boot:alpha/binary/sets/base.tgz,./usr/mdec/boot
+
+# cats needs an a.out kernel to boot from
+INTFILES.cats= netbsd.cats:cats/binary/kernel/netbsd.aout-INSTALL.gz
+
+# BOOTFILE.i386 is relative to CD staging root
+BOOTFILE.i386= boot.i386
+INTFILES.i386= boot.i386:i386/binary/sets/base.tgz,./usr/mdec/bootxx_cd9660 \
+ boot:i386/binary/sets/base.tgz,./usr/mdec/boot \
+ netbsd:i386/binary/kernel/netbsd-INSTALL_LARGE.gz,link \
+ nblaptop:i386/binary/kernel/netbsd-INSTALL_LAPTOP.gz,link \
+ nbnoacpi:i386/binary/kernel/netbsd-INSTALL.gz,link
+
+# BOOTFILE.amd64 is relative to CD staging root
+BOOTFILE.amd64= boot.amd64
+INTFILES.amd64= boot.amd64:amd64/binary/sets/base.tgz,./usr/mdec/bootxx_cd9660 \
+ boot:amd64/binary/sets/base.tgz,./usr/mdec/boot \
+ netbsd:amd64/binary/kernel/netbsd-INSTALL.gz,link
+
+# macppc has external bootblock generation tool
+EXTFILES.macppc= macppc.bootxx:macppc/binary/sets/base.tgz,./usr/mdec/bootxx \
+ macppc.ofwboot:macppc/binary/sets/base.tgz,./usr/mdec/ofwboot
+INTFILES.macppc= ofwboot.xcf:macppc/installation/ofwboot.xcf,link \
+ ofwboot:macppc/binary/sets/base.tgz,./usr/mdec/ofwboot \
+ netbsd.macppc:macppc/binary/kernel/netbsd-INSTALL.gz,link
+
+# BOOTFILE.pmax is absolute
+BOOTFILE.pmax= ${EXTFILEDIR}/pmax.bootxx
+EXTFILES.pmax= pmax.bootxx:pmax/binary/sets/base.tgz,./usr/mdec/bootxx_cd9660
+INTFILES.pmax= netbsd.pmax:pmax/binary/kernel/netbsd-INSTALL.gz,link \
+ boot.pmax:pmax/binary/sets/base.tgz,./usr/mdec/boot.pmax
+
+# sgimips needs the compressed kernels with short names in /, the various
+# boot files that go into the volume header and the bootblock.h file
+# to grep for the volume header size
+EXTFILES.sgimips= sgimips.bootblock.h:sgimips/binary/sets/comp.tgz,./usr/include/sys/bootblock.h
+INTFILES.sgimips= aoutboot:sgimips/binary/sets/base.tgz,./usr/mdec/aoutboot \
+ ip2xboot:sgimips/binary/sets/base.tgz,./usr/mdec/ip2xboot \
+ ip3xboot:sgimips/binary/sets/base.tgz,./usr/mdec/ip3xboot \
+ ip2x:sgimips/binary/kernel/netbsd-INSTALL32_IP2x.gz,link \
+ ip3x:sgimips/binary/kernel/netbsd-INSTALL32_IP3x.gz,link
+
+
+# BOOTFILE.sparc is absolute
+BOOTFILE.sparc= ${EXTFILEDIR}/sparc-boot.fs
+EXTFILES.sparc= sparc-boot.fs:sparc/installation/bootfs/boot.fs.gz
+INTFILES.sparc= installation/bootfs/instfs.tgz:sparc/installation/bootfs/instfs.tgz,link
+INTDIRS.sparc= installation/bootfs
+MKISOFS_ARGS.sparc= -hide-hfs ./installation -hide-joliet ./installation
+
+# BOOTFILE.sparc64 is absolute
+BOOTFILE.sparc64= ${EXTFILEDIR}/sparc64-boot.fs
+EXTFILES.sparc64= sparc64-boot.fs:sparc64/installation/misc/boot.fs.gz
+
+# BOOTFILE.vax is absolute
+BOOTFILE.vax= ${EXTFILEDIR}/vax.xxboot
+EXTFILES.vax= vax.xxboot:vax/binary/sets/base.tgz,./usr/mdec/xxboot
+INTFILES.vax= netbsd.vax:vax/installation/netboot/install.ram.gz,link \
+ boot.vax:vax/binary/sets/base.tgz,./usr/mdec/boot
--- /dev/null 2018-09-08 00:11:34.407061407 +0900
+++ 8.0.conf 2018-09-06 01:16:42.555824532 +0900
@@ -0,0 +1,267 @@
+# $NetBSD$
+#
+# Makefile fragment for CD sets; includes config information.
+
+##############################################################################
+# The NetBSD release being packaged on this CD set. This also implies
+# inclusion of a config file for that release, named NetBSD-${CD_RELEASE}.mk.
+# That file defines the various per-port specifics for that release.
+
+CD_RELEASE?= 8.0 # conf files for patch releases will include this
+
+##############################################################################
+# The NetBSD release to be used in the .iso image filenames. Defaults to
+# ${CD_RELEASE} but can be overridden in the environment.
+
+ISO_RELEASE?= ${CD_RELEASE}
+
+##############################################################################
+# The names of the individual CD images, without ".iso".
+# This also indicates the suffix of configuration variables later in this file
+# which are CD-image specific.
+
+CD_IMAGES=
+.if defined(TARGET_CD_IMAGE)
+.for targetcd in ${TARGET_CD_IMAGE}
+CD_IMAGES+= ${targetcd}-${ISO_RELEASE}
+.endfor
+.else
+#CD_IMAGES+= multi-cd1-${ISO_RELEASE}
+#CD_IMAGES+= multi-cd2-${ISO_RELEASE}
+#CD_IMAGES+= multi-cd3-${ISO_RELEASE}
+#CD_IMAGES+= acorn26cd-${ISO_RELEASE}
+#CD_IMAGES+= acorn32cd-${ISO_RELEASE}
+#CD_IMAGES+= algorcd-${ISO_RELEASE}
+#CD_IMAGES+= alphacd-${ISO_RELEASE}
+#CD_IMAGES+= amd64cd-${ISO_RELEASE}
+#CD_IMAGES+= amigacd-${ISO_RELEASE}
+#CD_IMAGES+= arccd-${ISO_RELEASE}
+#CD_IMAGES+= ataricd-${ISO_RELEASE}
+#CD_IMAGES+= catscd-${ISO_RELEASE}
+#CD_IMAGES+= cesficcd-${ISO_RELEASE}
+#CD_IMAGES+= cobaltcd-${ISO_RELEASE}
+#CD_IMAGES+= dreamcastcd-${ISO_RELEASE}
+#CD_IMAGES+= evbarmcd-${ISO_RELEASE}
+#CD_IMAGES+= evbmips-mipsebcd-${ISO_RELEASE}
+#CD_IMAGES+= evbmips-mipselcd-${ISO_RELEASE}
+#CD_IMAGES+= evbppccd-${ISO_RELEASE}
+#CD_IMAGES+= evbsh3-sh3ebcd-${ISO_RELEASE}
+#CD_IMAGES+= evbsh3-sh3elcd-${ISO_RELEASE}
+#CD_IMAGES+= hp300cd-${ISO_RELEASE}
+#CD_IMAGES+= hp700cd-${ISO_RELEASE}
+#CD_IMAGES+= hpcarmcd-${ISO_RELEASE}
+#CD_IMAGES+= hpcmipscd-${ISO_RELEASE}
+#CD_IMAGES+= hpcshcd-${ISO_RELEASE}
+#CD_IMAGES+= i386cd-${ISO_RELEASE}
+#CD_IMAGES+= ibmnwscd-${ISO_RELEASE}
+#CD_IMAGES+= iyonix-${ISO_RELEASE}
+#CD_IMAGES+= luna68kcd-${ISO_RELEASE}
+CD_IMAGES+= mac68kcd-${ISO_RELEASE}
+CD_IMAGES+= macppccd-${ISO_RELEASE}
+#CD_IMAGES+= mipscocd-${ISO_RELEASE}
+#CD_IMAGES+= mmeyecd-${ISO_RELEASE}
+#CD_IMAGES+= mvmeppccd-${ISO_RELEASE}
+#CD_IMAGES+= mvme68kcd-${ISO_RELEASE}
+#CD_IMAGES+= netwindercd-${ISO_RELEASE}
+#CD_IMAGES+= news68kcd-${ISO_RELEASE}
+#CD_IMAGES+= newsmipscd-${ISO_RELEASE}
+#CD_IMAGES+= next68kcd-${ISO_RELEASE}
+#CD_IMAGES+= ofppccd-${ISO_RELEASE}
+#CD_IMAGES+= pmaxcd-${ISO_RELEASE}
+#CD_IMAGES+= prepcd-${ISO_RELEASE}
+#CD_IMAGES+= sandpointcd-${ISO_RELEASE}
+#CD_IMAGES+= sbmips-mipsebcd-${ISO_RELEASE}
+#CD_IMAGES+= sbmips-mipselcd-${ISO_RELEASE}
+#CD_IMAGES+= sgimipscd-${ISO_RELEASE}
+#CD_IMAGES+= sharkcd-${ISO_RELEASE}
+#CD_IMAGES+= sourcecd-${ISO_RELEASE}
+#CD_IMAGES+= sparccd-${ISO_RELEASE}
+#CD_IMAGES+= sparc64cd-${ISO_RELEASE}
+#CD_IMAGES+= sun2cd-${ISO_RELEASE}
+#CD_IMAGES+= sun3cd-${ISO_RELEASE}
+#CD_IMAGES+= vaxcd-${ISO_RELEASE}
+#CD_IMAGES+= x68kcd-${ISO_RELEASE}
+.endif
+
+##############################################################################
+# The maximum size of an individual CD.
+
+CD_SIZE= 700000
+
+##############################################################################
+# The CD volume IDs for each CD-ROM image. This will show up as the
+# "volume label" on most operating systems. This is REQUIRED for each image.
+# Typically only 16 characters should be used for maximum OS compatibility.
+
+.for image in ${CD_IMAGES}
+VOLID.${image}= NetBSD ${CD_RELEASE} ${image:S/-${ISO_RELEASE}$//}
+.endfor
+
+# The "abstract file" name. If there is a file in the CD root describing
+# use of the CD or booting info, this may be useful to some OS's.
+
+#.for image in ${CD_IMAGES}
+#ABSTRACT.${image}= booting.txt
+#.endfor
+
+# The "copyright file" name. If there is a file in the CD root describing
+# the copyright of the contained files, this may be useful to some OS's.
+# This usually needs ADDFILES to go along with it.
+
+#.for image in ${CD_IMAGES}
+#COPYRIGHT.${image}= copyrght.txt
+#ADDFILES.${image}+= copyrght.txt:${.CURDIR}/extra/copyright.txt,link
+#.endfor
+
+# The "publisher name" field on the CD-ROM. Room for 128 characters.
+
+PUBLISHER= The NetBSD Foundation, Inc. / http://www.NetBSD.org/
+
+# The "preparer name" field on the CD-ROM. Room for 128 characters.
+
+PREPARER= NetBSD CD Build System
+
+##############################################################################
+# The ports for which the base OS binaries will be included.
+# MACHINE_ARCH shared distribution directories and the "ALL" shared
+# distribution directory are added automatically where needed.
+#
+# The following ports, if included, will be bootable on their respective
+# CD images:
+#
+# alpha, amd64, cats, i386, macppc, pmax, sgimips, sparc, sparc64, sun3, vax.
+#
+# Special notes on booting:
+#
+# * macppc and mac68k will cause the inclusion of HFS partition and
+# filesystem info on the CD, with automatic MacBinary probing and encoding.
+#
+# * macppc cannot boot on the same disc as either pmax or vax.
+# macppc uses the same locations in block 0 to store boot
+# information as pmax and vax.
+# This will cause a warning in the build, and macppc will override.
+#
+# * sparc64 cannot boot using default boot arguments on the same disc as
+# the sun3x model of sun3. These platforms use the same partitions
+# in the Sun boot map by default. This will cause a warning in the build,
+# and sparc64 machines will have to boot with "boot cdrom:g" instead of
+# "boot cdrom".
+#
+# * sgimips must be on a disc on its own
+#
+
+BASE_PORTS.multi-cd1-${ISO_RELEASE}= amd64 sparc sparc64 macppc
+
+BASE_PORTS.multi-cd2-${ISO_RELEASE} = alpha \
+ amiga atari mac68k next68k sun3
+
+BASE_PORTS.multi-cd3-${ISO_RELEASE}= i386 \
+ cobalt hpcmips pmax # vax
+
+BASE_PORTS.acorn32cd-${ISO_RELEASE}=acorn32
+BASE_PORTS.algorcd-${ISO_RELEASE}=algor
+BASE_PORTS.alphacd-${ISO_RELEASE}=alpha
+BASE_PORTS.amd64cd-${ISO_RELEASE}=amd64
+BASE_PORTS.amigacd-${ISO_RELEASE}=amiga
+BASE_PORTS.arccd-${ISO_RELEASE}=arc
+BASE_PORTS.ataricd-${ISO_RELEASE}=atari
+BASE_PORTS.catscd-${ISO_RELEASE}=cats
+BASE_PORTS.cesficcd-${ISO_RELEASE}=cesfic
+BASE_PORTS.cobaltcd-${ISO_RELEASE}=cobalt
+BASE_PORTS.dreamcastcd-${ISO_RELEASE}=dreamcast
+BASE_PORTS.evbarmcd-${ISO_RELEASE}=evbarm
+BASE_PORTS.evbmips-mipsebcd-${ISO_RELEASE}=evbmips-mipseb
+BASE_PORTS.evbmips-mipselcd-${ISO_RELEASE}=evbmips-mipsel
+BASE_PORTS.evbsh3-sh3ebcd-${ISO_RELEASE}=evbsh3-sh3eb
+BASE_PORTS.evbsh3-sh3elcd-${ISO_RELEASE}=evbsh3-sh3el
+BASE_PORTS.evbsh5-sh5elcd-${ISO_RELEASE}=evbsh5-sh5el
+BASE_PORTS.hp300cd-${ISO_RELEASE}=hp300
+BASE_PORTS.hpcarmcd-${ISO_RELEASE}=hpcarm
+BASE_PORTS.hpcmipscd-${ISO_RELEASE}=hpcmips
+BASE_PORTS.hpcshcd-${ISO_RELEASE}=hpcsh
+BASE_PORTS.i386cd-${ISO_RELEASE}=i386
+BASE_PORTS.iyonixcd-${ISO_RELEASE}=iyonix
+BASE_PORTS.ibmnwscd-${ISO_RELEASE}=ibmnws
+BASE_PORTS.luna68kcd-${ISO_RELEASE}=luna68k
+BASE_PORTS.mac68kcd-${ISO_RELEASE}=mac68k
+BASE_PORTS.macppccd-${ISO_RELEASE}=macppc
+BASE_PORTS.mipscocd-${ISO_RELEASE}=mipsco
+BASE_PORTS.mmeyecd-${ISO_RELEASE}=mmeye
+BASE_PORTS.mvme68kcd-${ISO_RELEASE}=mvme68k
+BASE_PORTS.mvmeppccd-${ISO_RELEASE}=mvmeppc
+BASE_PORTS.netwindercd-${ISO_RELEASE}=netwinder
+BASE_PORTS.news68kcd-${ISO_RELEASE}=news68k
+BASE_PORTS.newsmipscd-${ISO_RELEASE}=newsmips
+BASE_PORTS.next68kcd-${ISO_RELEASE}=next68k
+BASE_PORTS.ofppccd-${ISO_RELEASE}=ofppc
+BASE_PORTS.pmaxcd-${ISO_RELEASE}=pmax
+BASE_PORTS.pmppccd-${ISO_RELEASE}=pmppc
+BASE_PORTS.prepcd-${ISO_RELEASE}=prep
+BASE_PORTS.sandpointcd-${ISO_RELEASE}=sandpoint
+BASE_PORTS.sbmips-mipsebcd-${ISO_RELEASE}=sbmips-mipseb
+BASE_PORTS.sbmips-mipselcd-${ISO_RELEASE}=sbmips-mipsel
+BASE_PORTS.sgimipscd-${ISO_RELEASE}=sgimips
+BASE_PORTS.sharkcd-${ISO_RELEASE}=shark
+BASE_PORTS.sourcecd-${ISO_RELEASE}=source
+BASE_PORTS.sparccd-${ISO_RELEASE}=sparc
+BASE_PORTS.sparc64cd-${ISO_RELEASE}=sparc64
+BASE_PORTS.sun2cd-${ISO_RELEASE}=sun2
+BASE_PORTS.sun3cd-${ISO_RELEASE}=sun3
+BASE_PORTS.vaxcd-${ISO_RELEASE}=vax
+BASE_PORTS.x68kcd-${ISO_RELEASE}=x68k
+
+.for image in ${CD_IMAGES}
+#INTDIRS.${image}+= packages
+# The following doc files are in ftp dir but not in RELEASEDIR on build.sh
+#BASE_PORTS.${image}+= CHANGES CHANGES-8.0 CHANGES.prev \
+#BASE_PORTS.${image}+= LAST_MINUTE README.files
+.endfor
+
+##############################################################################
+# These provide additional functionality to some host OS's that may or may
+# not be desired in some cases. Uncomment to enable, or comment out to
+# disable.
+
+# USE_ROCK_RIDGE adds -r to mkisofs to use full Un*x style pathnames and
+# permissions. For most situations, this is needed.
+
+USE_ROCK_RIDGE= yes
+
+# USE_LONG_NAMES adds -l to mkisofs to use full 32-character ISO-9660 names.
+# This allows some host OS's, particularly AmigaDOS, the ability to see long
+# filenames in most cases.
+
+USE_LONG_NAMES= yes
+
+# USE_TRANS_TBL adds -T to mkisofs to provide long names through the use of
+# TRANS.TBL translation table files. (These will automatically be hidden
+# from Joliet and HFS trees.) Typically this is not used in conjunction
+# with USE_LONG_NAMES, but may be used if names still exceed 32 characters.
+
+#USE_TRANS_TBL= yes
+
+# USE_JOLIET adds -J to mkisofs to provide Joliet long filename support for
+# Microsoft Windows OS's
+
+USE_JOLIET= yes
+
+# USE_APPLE_ISO adds -apple to mkisofs to provide the Apple ISO-9660
+# Extensions. This gives full MacOS attribute information to files without
+# the overhead of full HFS. (A disc that is forced into HFS mode by the
+# presence of mac68k or macppc will use HFS, not the Apple ISO Extensions.)
+
+USE_APPLE_ISO= yes
+
+# LOG_MKISOFS causes the mkisofs command to be logged in "extra verbose"
+# mode (-v -v) to the image filename with .log appended.
+
+#LOG_MKISOFS= yes
+
+##############################################################################
+# "Easter egg" file. If this option is present, the standard 32k end padding
+# is replaced by a message in this file (no more than 16k), padded to 32k
+# with null bytes.
+
+#EASTER_EGG= ${.CURDIR}/extra/egg.txt
+
+##############################################################################
---
$ cd /s/src/distrib/cdrom
$ /s/src/obj.macppc/tooldir.NetBSD-8.0-i386/bin/nbmake-macppc RELEASE=8.0 TARGET_CD_IMAGE=macppccd RSYNC_HOST=rsync3.jp.NetBSD.org RSYNC_PATH_PREFIX=/pub fetch
Fetching distributions....
/usr/pkg/bin/rsync --include "/shared" --include "/macppc" --include "/shared/powerpc" -va --delete --exclude=/* --exclude=Split --exclude=cdrom --exclude "/[a-z]*" --exclude "/shared/[a-z]*" rsync://rsync3.jp.NetBSD.org/pub/NetBSD/NetBSD-8.0/ /s/src/distrib/cdrom/obj.macppc/download/
Welcome to JAIST Public Mirror Service (ftp.jaist.ac.jp).
If you have any issues or comments, please contact the mirror admins via e-mail at ftp-admin@jaist.ac.jp.
*DISCLAIMER* JAIST is not liable for any use, storage or transmission of any files stored on this archive. This archive is provided as a free service to the public and all files are provided *as is*.
We banned the following addresses because they established multiple connections simultaneously. You should contact ftp-admin@jaist.ac.jp if you want us to cancel your ban.
124.109.1.152,132.222.121.100 103.18.1.145, 219.249.189.12, 103.18.0.18, 118.238.203.205, 106.186.114.104
receiving incremental file list
./
macppc/
macppc/INSTALL.html
macppc/INSTALL.more
macppc/INSTALL.ps
macppc/INSTALL.txt
macppc/binary/
macppc/binary/kernel/
macppc/binary/kernel/MD5
macppc/binary/kernel/SHA512
macppc/binary/kernel/netbsd-GENERIC.MP.gz
macppc/binary/kernel/netbsd-GENERIC.gz
macppc/binary/kernel/netbsd-GENERIC_601.gz
macppc/binary/kernel/netbsd-GENERIC_MD.gz
macppc/binary/kernel/netbsd-GENERIC_MD.symbols.gz
macppc/binary/kernel/netbsd-INSTALL.gz
macppc/binary/kernel/netbsd-INSTALL.symbols.gz
macppc/binary/sets/
macppc/binary/sets/MD5
macppc/binary/sets/SHA512
macppc/binary/sets/base.tgz
macppc/binary/sets/comp.tgz
macppc/binary/sets/debug.tgz
macppc/binary/sets/etc.tgz
macppc/binary/sets/games.tgz -> ../../../shared/powerpc/games.tgz
macppc/binary/sets/kern-GENERIC.MP.tgz
macppc/binary/sets/kern-GENERIC.tgz
macppc/binary/sets/kern-GENERIC_601.tgz
macppc/binary/sets/man.tgz -> ../../../shared/ALL/man.tgz
macppc/binary/sets/misc.tgz -> ../../../shared/ALL/misc.tgz
macppc/binary/sets/modules.tgz
macppc/binary/sets/tests.tgz
macppc/binary/sets/text.tgz
macppc/binary/sets/xbase.tgz
macppc/binary/sets/xcomp.tgz
macppc/binary/sets/xdebug.tgz
macppc/binary/sets/xetc.tgz
macppc/binary/sets/xfont.tgz
macppc/binary/sets/xserver.tgz
macppc/installation/
macppc/installation/ofwboot.elf
macppc/installation/ofwboot.xcf
macppc/installation/floppy/
macppc/installation/floppy/boot1.fs
macppc/installation/floppy/boot2.fs
shared/
shared/ALL/
shared/ALL/man.tgz
shared/ALL/misc.tgz
shared/powerpc/
shared/powerpc/games.tgz
shared/powerpc/xbase.tgz
shared/powerpc/xcomp.tgz
shared/powerpc/xfont.tgz
shared/powerpc/xserver.tgz
sent 1,012 bytes received 753,112,509 bytes 5,860,805.61 bytes/sec
total size is 752,925,744 speedup is 1.00
$ /s/src/obj.macppc/tooldir.NetBSD-8.0-i386/bin/nbmake-macppc RELEASE=8.0 TARGET_CD_IMAGE=macppccd all
all ===> macppc_installboot
rm -rf fs
/s/src/obj.macppc/tooldir.NetBSD-8.0-i386/bin/powerpc--netbsd-install -d fs
/s/src/obj.macppc/tooldir.NetBSD-8.0-i386/bin/powerpc--netbsd-install -d fs/cd9660
ln -s /s/src/sys/fs/unicode.h fs
ln -s /s/src/sys/fs/cd9660/iso.h fs/cd9660
# compile macppc_installboot/installboot.lo
cc -O -I. -I/s/src/distrib/cdrom/macppc_installboot -I/s/src/obj.macppc/tooldir.NetBSD-8.0-i386/include/compat -I/s/src/tools/compat -DHAVE_NBTOOL_CONFIG_H=1 -D_FILE_OFFSET_BITS=64 -c -o installboot.lo.o /s/src/distrib/cdrom/macppc_installboot/installboot.c
mv installboot.lo.o installboot.lo
# compile macppc_installboot/cd9660.lo
cc -O -I. -I/s/src/distrib/cdrom/macppc_installboot -I/s/src/obj.macppc/tooldir.NetBSD-8.0-i386/include/compat -I/s/src/tools/compat -DHAVE_NBTOOL_CONFIG_H=1 -D_FILE_OFFSET_BITS=64 -c -o cd9660.lo.o /s/src/distrib/cdrom/macppc_installboot/cd9660.c
mv cd9660.lo.o cd9660.lo
# compile macppc_installboot/cd9660_util.lo
cc -O -I. -I/s/src/distrib/cdrom/macppc_installboot -I/s/src/obj.macppc/tooldir.NetBSD-8.0-i386/include/compat -I/s/src/tools/compat -DHAVE_NBTOOL_CONFIG_H=1 -D_FILE_OFFSET_BITS=64 -c -o cd9660_util.lo.o /s/src/sys/fs/cd9660/cd9660_util.c
mv cd9660_util.lo.o cd9660_util.lo
# link macppc_installboot/macppc_installboot
cc -O -I. -I/s/src/distrib/cdrom/macppc_installboot -I/s/src/obj.macppc/tooldir.NetBSD-8.0-i386/include/compat -I/s/src/tools/compat -DHAVE_NBTOOL_CONFIG_H=1 -D_FILE_OFFSET_BITS=64 -o macppc_installboot installboot.lo cd9660.lo cd9660_util.lo -L/s/src/obj.macppc/tooldir.NetBSD-8.0-i386/lib -lnbcompat -lrt -lz
mkdir -p /s/src/distrib/cdrom/obj.macppc/staging/macppccd-8.0 /s/src/distrib/cdrom/obj.macppc/extfiles
rm -f /s/src/distrib/cdrom/obj.macppc/staging/macppccd-8.0.pathlist /s/src/distrib/cdrom/obj.macppc/macppccd-8.0.contents
Extracting: /s/src/distrib/cdrom/obj.macppc/download/macppc/binary/sets/base.tgz,./usr/mdec/bootxx --> /s/src/distrib/cdrom/obj.macppc/extfiles/macppc.bootxx...
Extracting: /s/src/distrib/cdrom/obj.macppc/download/macppc/binary/sets/base.tgz,./usr/mdec/ofwboot --> /s/src/distrib/cdrom/obj.macppc/extfiles/macppc.ofwboot...
cp /s/src/distrib/cdrom/obj.macppc/download/macppc/installation/ofwboot.xcf /s/src/distrib/cdrom/obj.macppc/staging/macppccd-8.0/ofwboot.xcf
Extracting: /s/src/distrib/cdrom/obj.macppc/download/macppc/binary/sets/base.tgz,./usr/mdec/ofwboot --> /s/src/distrib/cdrom/obj.macppc/staging/macppccd-8.0/ofwboot...
cp /s/src/distrib/cdrom/obj.macppc/download/macppc/binary/kernel/netbsd-INSTALL.gz /s/src/distrib/cdrom/obj.macppc/staging/macppccd-8.0/netbsd.macppc
# create cdrom/boothfs
rm -f boothfs
/s/src/obj.macppc/tooldir.NetBSD-8.0-i386/bin/nbuudecode -p /s/src/distrib/cdrom/boothfs.uue > boothfs
Total extents scheduled to be written = 375631
375631
Projected size of macppccd-8.0.iso: 769327104 bytes (751296K).
Image too large for 700000 KB CD!
*** Failed target: size-macppccd-8.0
*** Failed command: size=$((`cd /s/src/distrib/cdrom/obj.macppc/staging/macppccd-8.0 && /usr/pkg/bin/mkisofs -A "NetBSD 8.0" -hide-rr-moved -m Split -m cdrom -publisher "The NetBSD Foundation, Inc. / http://www.NetBSD.org/" -p "NetBSD CD Build System" -r -l -J -hide-joliet-list /s/src/distrib/cdrom/hide-jol.lst -V "NetBSD 8.0 macppccd" -graft-points -path-list /s/src/distrib/cdrom/obj.macppc/staging/macppccd-8.0.pathlist -hfs -part -hide-hfs-list /s/src/distrib/cdrom/hide-hfs.lst --macbin -map /s/src/distrib/cdrom/hfsmap.lst -boot-hfs-file /s/src/distrib/cdrom/obj.macppc/boothfs -print-size . 2>&1 | tee /dev/stderr | /s/src/obj.macppc/tooldir.NetBSD-8.0-i386/bin/nbsed '/=/!d;s/^[^=]*=//'` * 2048)) && if [ "" != "" ]; then size=$(($(($size + 327679)) / 327680 * 327680)) && bootfiles=`for f in ; do echo $f; done | uniq` && for f in $bootfiles; do bfsize=$(/s/src/obj.macppc/tooldir.NetBSD-8.0-i386/bin/nbstat -f '%z' $f) && size=$(($size + $(($(($bfsize + 327679)) / 327680 * 327!
680)))); done; fi && if [ "" != "" ]; then size=$(($size + $(($(($(/s/src/obj.macppc/tooldir.NetBSD-8.0-i386/bin/nbstat -f '%z' /s/src/distrib/cdrom/obj.macppc/extfiles/pmax.bootxx) + 511)) / 512 * 512)))); fi && if [ "" != "" ]; then size=$(($size + $(($(($(/s/src/obj.macppc/tooldir.NetBSD-8.0-i386/bin/nbstat -f '%z' /s/src/distrib/cdrom/obj.macppc/extfiles/vax.xxboot) + 511)) / 512 * 512)))); fi && if [ "" != "" -a "sgimips.bootblock.h:sgimips/binary/sets/comp.tgz,./usr/include/sys/bootblock.h" != "" ]; then size=$(($size + 4096 * 512)); fi && size=$(($(($size + 16383)) / 16384 * 16384 + 32768)) && sizek=$(($size / 1024)) && echo "Projected size of macppccd-8.0.iso: $size bytes (${sizek}K)." && if [ $sizek -gt 700000 ]; then echo "Image too large for 700000 KB CD!"; false; fi
*** Error code 1
Stop.
nbmake: stopped in /s/src/distrib/cdrom
$ rm -f obj.macppc/download/macppc/binary/sets/debug.tgz
$ /usr/pkg/bin/mkisofs --version
mkisofs 3.01 (i386-unknown-netbsd8.0.) Copyright (C) 1993-1997 Eric Youngdale (C) 1997-2015 Joerg Schilling
$ /s/src/obj.macppc/tooldir.NetBSD-8.0-i386/bin/nbmake-macppc RELEASE=8.0 TARGET_CD_IMAGE=macppccd all
all ===> macppc_installboot
rm -rf fs
/s/src/obj.macppc/tooldir.NetBSD-8.0-i386/bin/powerpc--netbsd-install -d fs
/s/src/obj.macppc/tooldir.NetBSD-8.0-i386/bin/powerpc--netbsd-install -d fs/cd9660
ln -s /s/src/sys/fs/unicode.h fs
ln -s /s/src/sys/fs/cd9660/iso.h fs/cd9660
mkdir -p /s/src/distrib/cdrom/obj.macppc/staging/macppccd-8.0 /s/src/distrib/cdrom/obj.macppc/extfiles
rm -f /s/src/distrib/cdrom/obj.macppc/staging/macppccd-8.0.pathlist /s/src/distrib/cdrom/obj.macppc/macppccd-8.0.contents
Total extents scheduled to be written = 242271
242271
Projected size of macppccd-8.0.iso: 496205824 bytes (484576K).
cd /s/src/distrib/cdrom/obj.macppc/staging/macppccd-8.0 && /usr/pkg/bin/mkisofs -o /s/src/distrib/cdrom/obj.macppc/macppccd-8.0.iso -A "NetBSD 8.0" -hide-rr-moved -m Split -m cdrom -publisher "The NetBSD Foundation, Inc. / http://www.NetBSD.org/" -p "NetBSD CD Build System" -r -l -J -hide-joliet-list /s/src/distrib/cdrom/hide-jol.lst -V "NetBSD 8.0 macppccd" -graft-points -path-list /s/src/distrib/cdrom/obj.macppc/staging/macppccd-8.0.pathlist -hfs -part -hide-hfs-list /s/src/distrib/cdrom/hide-hfs.lst --macbin -map /s/src/distrib/cdrom/hfsmap.lst -data-change-warn -boot-hfs-file /s/src/distrib/cdrom/obj.macppc/boothfs .
2.06% done, estimate finish Sat Sep 8 00:02:17 2018
4.13% done, estimate finish Sat Sep 8 00:01:53 2018
6.20% done, estimate finish Sat Sep 8 00:01:45 2018
8.26% done, estimate finish Sat Sep 8 00:01:41 2018
10.33% done, estimate finish Sat Sep 8 00:01:38 2018
12.39% done, estimate finish Sat Sep 8 00:01:37 2018
14.45% done, estimate finish Sat Sep 8 00:01:35 2018
16.52% done, estimate finish Sat Sep 8 00:01:35 2018
18.58% done, estimate finish Sat Sep 8 00:01:34 2018
20.64% done, estimate finish Sat Sep 8 00:01:33 2018
22.71% done, estimate finish Sat Sep 8 00:01:33 2018
24.77% done, estimate finish Sat Sep 8 00:01:33 2018
26.83% done, estimate finish Sat Sep 8 00:01:36 2018
28.89% done, estimate finish Sat Sep 8 00:01:35 2018
30.97% done, estimate finish Sat Sep 8 00:01:35 2018
33.03% done, estimate finish Sat Sep 8 00:01:35 2018
35.09% done, estimate finish Sat Sep 8 00:01:34 2018
37.15% done, estimate finish Sat Sep 8 00:01:34 2018
39.22% done, estimate finish Sat Sep 8 00:01:34 2018
41.28% done, estimate finish Sat Sep 8 00:01:33 2018
43.34% done, estimate finish Sat Sep 8 00:01:33 2018
45.40% done, estimate finish Sat Sep 8 00:01:33 2018
47.47% done, estimate finish Sat Sep 8 00:01:33 2018
49.53% done, estimate finish Sat Sep 8 00:01:33 2018
51.60% done, estimate finish Sat Sep 8 00:01:32 2018
53.67% done, estimate finish Sat Sep 8 00:01:32 2018
55.73% done, estimate finish Sat Sep 8 00:01:32 2018
57.79% done, estimate finish Sat Sep 8 00:01:32 2018
59.86% done, estimate finish Sat Sep 8 00:01:32 2018
61.93% done, estimate finish Sat Sep 8 00:01:33 2018
63.99% done, estimate finish Sat Sep 8 00:01:33 2018
66.05% done, estimate finish Sat Sep 8 00:01:33 2018
68.11% done, estimate finish Sat Sep 8 00:01:33 2018
70.17% done, estimate finish Sat Sep 8 00:01:33 2018
72.24% done, estimate finish Sat Sep 8 00:01:33 2018
74.30% done, estimate finish Sat Sep 8 00:01:33 2018
76.37% done, estimate finish Sat Sep 8 00:01:32 2018
78.42% done, estimate finish Sat Sep 8 00:01:32 2018
80.49% done, estimate finish Sat Sep 8 00:01:32 2018
82.56% done, estimate finish Sat Sep 8 00:01:32 2018
84.62% done, estimate finish Sat Sep 8 00:01:32 2018
86.68% done, estimate finish Sat Sep 8 00:01:32 2018
88.75% done, estimate finish Sat Sep 8 00:01:32 2018
90.82% done, estimate finish Sat Sep 8 00:01:32 2018
92.88% done, estimate finish Sat Sep 8 00:01:32 2018
94.94% done, estimate finish Sat Sep 8 00:01:33 2018
97.00% done, estimate finish Sat Sep 8 00:01:33 2018
mkisofs: File '/s/src/distrib/cdrom/obj.macppc/boothfs' did shrink.
Total extents actually written (inc HFS) = 242121
(Size of ISO volume = 236148, HFS extra = 5973)
Total translation table size: 0
Total rockridge attributes bytes: 6705
Total directory bytes: 20480
Path table size(bytes): 140
Max brk space used 0
242271 extents written (473 MB)
/s/src/distrib/cdrom/macppc_installboot/obj.macppc.NetBSD-8.0-i386/macppc_installboot /s/src/distrib/cdrom/obj.macppc/macppccd-8.0.iso /s/src/distrib/cdrom/obj.macppc/extfiles/macppc.bootxx /ofwboot
Rounding up to 32k boundary and padding 32k....
$
---
I'm afraid the above warning
"mkisofs: File '/s/src/distrib/cdrom/obj.macppc/boothfs' did shrink."
(which is the reason why I added '-data-change-warn' to the option)
is a false alarm, but image is bootable on my macppc (UMAX Apus2000).
Note SCSI CDROM drive on my Apus seems being dead, so I'm afraid
I can test further images soon.
---
Izumi Tsutsui
From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
To: gnats-bugs@NetBSD.org
Cc: uwe@stderr.spb.ru, martin@duskware.de, tsutsui@ceres.dti.ne.jp
Subject: Re: port-macppc/53549 ppc601 machines need their own INSTALL kernel
Date: Sat, 8 Sep 2018 23:48:21 +0900
> > It would be really great if someone could find time to add support
> > for this HFS hybrid stuff to our makefs
>
> Is it documented anywhere what is the problem? I guess someone knows
> that, at least to some level of details, but unless it's in a PR it's
> not realistic to expect someone else to re-investigate this from
> scratch and then implement it b/c then they need to "find time" to
> duplicate quite a bit of that initial effort and by that time the time
> found sort of runs out.
I've just tried to port OpenBSD's in-tree mkhybrid to our src/tools,
but there are still several problems:
http://mail-index.netbsd.org/port-macppc/2018/09/08/msg002546.html
---
Izumi Tsutsui
State-Changed-From-To: open->closed
State-Changed-By: scole@NetBSD.org
State-Changed-When: Thu, 29 Nov 2018 13:21:11 -0800
State-Changed-Why:
I think the items related to the ppc601 install issues are all
checked into current, so I'm closing the PR. I tested this as
much as I was able to, with a boot floppy on a 601, and the boot
iso on qemu.
Thanks for <tsutsui> for fixing and testing the boot floppy on a
non-601, http://gnats.netbsd.org/53727
There is a separate PR, https://gnats.netbsd.org/53573 which is
still open, regarding the hfs iso install issues.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.