NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: port-macppc/53727: boot floppy doesn't work for openfirmware version 1 machines?
The following reply was made to PR port-macppc/53727; it has been noted by GNATS.
From: scole_mail <scole_mail%gmx.com@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: Izumi Tsutsui <tsutsui%ceres.dti.ne.jp@localhost>
Subject: Re: port-macppc/53727: boot floppy doesn't work for openfirmware version 1 machines?
Date: Tue, 13 Nov 2018 08:55:42 -0800
As discussed in
http://mail-index.netbsd.org/port-macppc/2018/11/13/msg002551.html
patch is needed for both OFW1 and OFW2 machines? So how about something
like?
Summary of changes: (A/? = New, R/D = Removed, M = Modified)
=============================================================
M ofdev.c
Apply patch with "cd .../src/sys/arch/macppc/stand/ofwboot ; patch -s -p0 < .../patchfile"
Index: ofdev.c
===================================================================
RCS file: /cvsroot/src/sys/arch/macppc/stand/ofwboot/ofdev.c,v
retrieving revision 1.26
diff -b -u -r1.26 ofdev.c
--- ofdev.c 19 Feb 2012 12:02:55 -0000 1.26
+++ ofdev.c 13 Nov 2018 16:36:23 -0000
@@ -444,7 +444,11 @@
/* Else try APM or MBR partitions */
struct drvr_map *map = (struct drvr_map *)buf;
- if (map->sbSig == DRIVER_MAP_MAGIC)
+ /* OF1 & OF2 won't boot floppy with faked APM */
+ if (ofw_version < 3 && strncmp(devname,"fd",2) == 0)
+ error = search_dos_label(&ofdev, 0, buf,
+ &label, 0);
+ else if (map->sbSig == DRIVER_MAP_MAGIC)
error = search_mac_label(&ofdev, buf, &label);
else
error = search_dos_label(&ofdev, 0, buf,
Home |
Main Index |
Thread Index |
Old Index