[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Debian installer image for Debian/m68k



On Fri, 1 Sep 2017, John Paul Adrian Glaubitz wrote:

> On 09/01/2017 10:51 AM, Finn Thain wrote:
> > > Note: This has not been tested at all and booting on a Mac with EMILE
> > >        most likely doesn't work at all since xorrisofs didn't like any of
> > >        the HFS-specific options so I had to drop them from the command
> > >        line.
> > >
> > 
> > Where can I find this code, BTW?
> 
> It's from debian-cd:
> 
> > https://anonscm.debian.org/git/debian-cd/debian-cd.git/
> 
> Grep for "hfs".
> 

The "-probe" and "--netatalk" options are not listed in the upstream man 
page for xorrisofs which makes me think that both the m68k and the powerpc 
code here has bit-rotted.

The hfs options look okay but they are for yaboot on PowerMacs. To create 
bootable CD for 68k Macs would be a different process (using EMILE SCSI 
CD-ROM drivers) etc.

I was going to download a daily build of the powermac installer to see how 
that works, but I found that there is no powerpc installer any more. So I 
downloaded this instead, 
https://cdimage.debian.org/cdimage/archive/6.0.10/powerpc/iso-cd/debian-6.0.10-powerpc-netinst.iso

Interestingly, there's not much use of HFS in there, but it mounts just 
fine under System 7. So I suspect we need the "-iso-level 4" option. 
Please see patch below.

> > > You can also download debian-installer from here and boot the d-i 
> > > kernel and initrd and then use the CD above as a package source:
> > > 
> > > http://ftp.ports.debian.org/debian-ports/pool-m68k/main/d/debian-installer/
> > 
> > That tar archive has the crucial initrd and kernel binary, but the Mac
> > tools have gone missing (Amiga and Atari tools are present though). It
> > would be good to get the hqx files included again. Should I send a patch,
> > or is that code still in the repo?
> 
> Looks like it's missing. I think it's included in the d-i build from
> individual packages. Was it part of m68kboot? [1]
> 

Was that package the origin of, for example, the bootstra.tos or amiboot 
files that appear in the tar file:

installer-m68k/20170828/images/tools/amiga/amiboot
installer-m68k/20170828/images/tools/atari/bootstra.tos

The changelog dates back to 2005:


m68kboot (6.0+cvs.20050629-1.1) unreleased; urgency=low

  * Non-maintainer upload.
  * Upload to debian-ports.org unreleased as it got removed from sid.

 -- Thorsten Glaser <tg@mirbsd.de>  Sun, 29 May 2011 03:14:27 +0000

m68kboot (6.0+cvs.20050629-1) unstable; urgency=low

  * Initial Release.

 -- Stephen R. Marenka <smarenka@debian.org>  Wed, 29 Jun 2005 20:28:20 -0500


Whereas the etch-m68k ISO is dated 2008-10-02, so I guess that means that 
m68kboot was not the origin of the hqx files. Perhaps it should be?

> Adrian
> 
> > [1] http://ftp.ports.debian.org/debian-ports/pool-m68k/main/m/m68kboot/
> 
> 

This patch sync's up the boot-m68k scripts with boot-powerpc, and drops 
some options that aren't implemented by xorrisofs and aren't needed by 
m68k.

diff --git a/tools/boot/buster/boot-m68k b/tools/boot/buster/boot-m68k
index 9c6d53c..6b1c3b5 100755
--- a/tools/boot/buster/boot-m68k
+++ b/tools/boot/buster/boot-m68k
@@ -29,15 +29,16 @@ fi
 
 cd $CDDIR/..
 
+add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-J -joliet-long"
+
+add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-iso-level 4"
+add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-hfs"
+add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-map $BASEDIR/data/hfs.map"
+
 # Recommended size for a HFS Catalog is 4 megas per giga, defaults to 4 megas
 # MAXDISKBLOCKS is measured in 2K blocks
 newsize=`echo "$MAXDISKBLOCKS * 2048 / 256" | bc`
 add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-hfs-parms MAX_XTCSIZE=$newsize"
-add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-J -joliet-long"
-add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "--netatalk"
-add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-hfs"
-add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-probe"
-add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-map $BASEDIR/data/hfs.map"
 
 # Only disk 1 bootable
 if [ $N != 1 ]; then
diff --git a/tools/boot/jessie/boot-m68k b/tools/boot/jessie/boot-m68k
index 3183a09..8fec02e 100755
--- a/tools/boot/jessie/boot-m68k
+++ b/tools/boot/jessie/boot-m68k
@@ -29,15 +29,16 @@ fi
 
 cd $CDDIR/..
 
+add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-J -joliet-long"
+
+add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-iso-level 4"
+add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-hfs"
+add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-map $BASEDIR/data/hfs.map"
+
 # Recommended size for a HFS Catalog is 4 megas per giga, defaults to 4 megas
 # MAXDISKBLOCKS is measured in 2K blocks
 newsize=`echo "$MAXDISKBLOCKS * 2048 / 256" | bc`
 add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-hfs-parms MAX_XTCSIZE=$newsize"
-add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-J -joliet-long"
-add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "--netatalk"
-add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-hfs"
-add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-probe"
-add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-map $BASEDIR/data/hfs.map"
 
 # Only disk 1 bootable
 if [ $N != 1 ]; then
diff --git a/tools/boot/stretch/boot-m68k b/tools/boot/stretch/boot-m68k
index 9c6d53c..6b1c3b5 100755
--- a/tools/boot/stretch/boot-m68k
+++ b/tools/boot/stretch/boot-m68k
@@ -29,15 +29,16 @@ fi
 
 cd $CDDIR/..
 
+add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-J -joliet-long"
+
+add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-iso-level 4"
+add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-hfs"
+add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-map $BASEDIR/data/hfs.map"
+
 # Recommended size for a HFS Catalog is 4 megas per giga, defaults to 4 megas
 # MAXDISKBLOCKS is measured in 2K blocks
 newsize=`echo "$MAXDISKBLOCKS * 2048 / 256" | bc`
 add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-hfs-parms MAX_XTCSIZE=$newsize"
-add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-J -joliet-long"
-add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "--netatalk"
-add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-hfs"
-add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-probe"
-add_mkisofs_opt $CDDIR/../$N.mkisofs_opts "-map $BASEDIR/data/hfs.map"
 
 # Only disk 1 bootable
 if [ $N != 1 ]; then


Reply to: