List Info

Thread: Beige G3 troubles




Beige G3 troubles
user name
2006-09-12 03:20:51
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

On Sep 10, 2006, at 00:09, Izumi Tsutsui wrote:

> Which image did you tried? Could please you try this
one?
>
ftp://ftp.NetBSD.org/pub/NetBSD/misc/tsutsui/macppccd-3.1_RC
2.iso.gz

Now we get this:

- - a PowerBook 3400c with OF 2.0.1 boots this CD just fine
( boot 
ata1/0:0 )
- - a beige G3 with OF 2.0f1 still crashes but gets a little
further than 
previous attempts:
boot ide1/0:0
read stage 2 blocks: 0. done!
starting stage 2...
DEFAULT CATCH! code=FFF00400 %SRR0: 40FFED30 %SRR1: 4000B070

so whatever you did is definitely going into the right
direction.

have fun
Michael
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)

iQEVAwUBRQYnk8pnzkX8Yg2nAQIHdQf/Y3Rh8OYPd7VygmQi7c48FRlcUGAV
LuAJ
IVORlU/7uSeGlYC+ZZ+Mm07SeXD15DhHfYtkNh5t/RtyWSLG4HYH2dK1sexV
cLEp
3aLQCKj2ArgjB9pi4xBJt2jnYzG7091OAnPN8p7Vuo4x3l5V5U/tOF5iLQtq
+c/O
t2orvkmi2InLyTrdgX53Er8YUYUDiC2MgHZDxZQkMzwrB8gYvAKNudrCkyy/
ePye
Ze6XYQswK1xutT2r3FOS/rmT6hFeujhLE94SBsFl/E1XyTwXHHeZNXD+1jk+
te5w
ToqQq8ImkCWrlsyC9bneaPBR+XAgb7nuYXIEG7ZU/NkgNo2aSbrfqQ==
=Y5TL
-----END PGP SIGNATURE-----

Beige G3 troubles
user name
2006-09-12 12:11:33
macallanNetBSD.org wrote:

> > Which image did you tried? Could please you try
this one?
> >
ftp://ftp.NetBSD.org/pub/NetBSD/misc/tsutsui/macppccd-3.1_RC
2.iso.gz
> 
> Now we get this:
> 
> - - a PowerBook 3400c with OF 2.0.1 boots this CD just
fine ( boot 
> ata1/0:0 )
> - - a beige G3 with OF 2.0f1 still crashes but gets a
little further than 
> previous attempts:
> boot ide1/0:0
> read stage 2 blocks: 0. done!
> starting stage 2...
> DEFAULT CATCH! code=FFF00400 %SRR0: 40FFED30 %SRR1:
4000B070
> 
> so whatever you did is definitely going into the right
direction.

Umm, OF quirks actually disgust us...

According to <sys/bootblock.h>, the Apple partition
map has
the following parameters:
---
struct apple_part_map_entry {
	uint16_t	pmSig;		/* partition signature */
	uint16_t	pmSigPad;	/* (reserved) */
	uint32_t	pmMapBlkCnt;	/* number of blocks in partition map
*/
	uint32_t	pmPyPartStart;	/* first physical block of
partition */
	uint32_t	pmPartBlkCnt;	/* number of blocks in partition */
	uint8_t		pmPartName[32];	/* partition name */
	uint8_t		pmPartType[32];	/* partition type */
	uint32_t	pmLgDataStart;	/* first logical block of data area
*/
	uint32_t	pmDataCnt;	/* number of blocks in data area */
	uint32_t	pmPartStatus;	/* partition status information */
	uint32_t	pmLgBootStart;	/* first logical block of boot code
*/
	uint32_t	pmBootSize;	/* size of boot code, in bytes */
	uint32_t	pmBootLoad;	/* boot code load address */
	uint32_t	pmBootLoad2;	/* (reserved) */
	uint32_t	pmBootEntry;	/* boot code entry point */
	uint32_t	pmBootEntry2;	/* (reserved) */
	uint32_t	pmBootCksum;	/* boot code checksum */
	int8_t		pmProcessor[16]; /* processor type (e.g.
"68020") */
	uint8_t		pmBootArgs[128]; /* A/UX boot arguments */
	uint8_t		pad[248];	/* pad to end of block */
};
---

And the mkboothfs command in my latest patch puts the
following members:
---
	memset(&pme, 0, sizeof(pme));
	pme.pmSig =		htobe16(APPLE_PART_MAP_ENTRY_MAGIC);
	pme.pmMapBlkCnt =	htobe32(1);
	pme.pmPyPartStart =	htobe32(1);
	pme.pmPartBlkCnt =	htobe32(1);
	pme.pmDataCnt =		htobe32(1);
	strlcpy(pme.pmPartName, "NetBSD_BootBlock",
sizeof(pme.pmPartName));
	strlcpy(pme.pmPartType, "Apple_Driver",
sizeof(pme.pmPartType));
	pme.pmPartStatus =	htobe32(0x3b);
	pme.pmBootSize =	htobe32(MACPPC_BOOT_BLOCK_MAX_SIZE);
	pme.pmBootLoad =	htobe32(0x4000);
	pme.pmBootEntry =	htobe32(0x4000);
	strlcpy(pme.pmProcessor, "PowerPC",
sizeof(pme.pmProcessor));
---

Does any Mac guru know what values OF refers?


Anyway, I'd appreciate if someone try to create ISO CD-ROM
with modified mkboothfs by himself.
"make RELEASE=3.1_RC2 fetch && make
RELEASE=3.1_RC2"
in src/distrib/cdrom after applying my patch against the
netbsd-3
tree should just work. (rsync and mkisofs are required)
(I'm a bit tired to put ~180MB images again and again...)
---
Izumi Tsutsui
Beige G3 troubles
user name
2006-09-16 19:53:54
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

On Sep 12, 2006, at 08:11, Izumi Tsutsui wrote:

> Anyway, I'd appreciate if someone try to create ISO
CD-ROM
> with modified mkboothfs by himself.
> "make RELEASE=3.1_RC2 fetch && make
RELEASE=3.1_RC2"
> in src/distrib/cdrom after applying my patch against
the netbsd-3
> tree should just work. (rsync and mkisofs are required)
> (I'm a bit tired to put ~180MB images again and
again...)

Your patch applied just fine against -current, building an
iso now. 
Since it allows us to boot a few more models from CDROM I'd
really like 
to see it committed and pulled into the resp. branches, even
if it 
still fails on beige G3s

have fun
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)

iQEVAwUBRQxWUspnzkX8Yg2nAQL2nwf+PWnSgB8XgRP04cBBC8ksHFFEk5MI
RTCn
Knm8XkFmozxjCz26xjo1MLFe6V1gBurEzGsx/hlxBrPmZVOXdknQi/aLWt9F
hY9u
pxxx/4o7TH89gWhIBlCPIY85BzaiIehx3odfGos2MTD7FfZpnGvDCwjQrB93
v9s9
+BXDo+F01ximgv4TjkC+7031pe3uDcNR5f1bwSSFMgc/wqZ9nC8AksT/53N8
Wt/C
ayGFqvTD1vH55J9A3jvNHeFektdWGyTTKe/suosbEwu6DvJGCBOe/51qZsJi
GWxp
XnbI6wegg0y4mRdAfi91e4YO389bVPtZt99ddBmMX0Sch7+nAi7HLg==
=iIvi
-----END PGP SIGNATURE-----

Beige G3 troubles
user name
2006-09-17 04:30:55
macallannetbsd.org wrote:

> Your patch applied just fine against -current, building
an iso now. 
> Since it allows us to boot a few more models from CDROM
I'd really like 
> to see it committed and pulled into the resp. branches,

Committed into the HEAD.
I'll check if there is any conflict against each release
branches..

> even if it 
> still fails on beige G3s

BTW, does your G3 have any nvramrc entries?
IIRC, some of 2.0f1 machines require tweaks in nvramrc to
make
IDE CDROM usable for boot, and some Apple tool
(Multibooter?)
would fill it properly.
---
Izumi Tsutsui
[1-4]

about | contact  Other archives ( Real Estate discussion Medical topics )