NetBSD-Bugs archive

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

Re: port-mac68k/50435: "BSD/Mac68k Booter" can't boot cross-compiled kernels from the NetBSD root partition.



Update:

Using
makeoptions	COPTS="-O2 -m68030"

instead of
makeoptions	COPTS="-Os -m68030"

in the config file makes (at least some) cross-compiled kernels
bootable, though somewhat larger:

-rwxr-xr-x 1 johnson johnson 2190185 Nov 14 13:54 MACLCIII/netbsd
-rwxr-xr-x 1 johnson johnson 2496135 Nov 16 14:38 TESTLCIII/netbsd

Stand by...  I'm checking whether the GENERIC kernel (using sbc instead
of ncrscsi) works if -Os is specified instead of -O2...

% diff GENERIC GENERICTEST
27c27,28
< makeoptions	COPTS="-O2 -fno-reorder-blocks"	# see share/mk/sys.mk
---
> #makeoptions	COPTS="-O2 -fno-reorder-blocks"	# see share/mk/sys.mk
> makeoptions	COPTS="-Os -fno-reorder-blocks"	# see share/mk/sys.mk
254,255c255,256
< ncrscsi0 at obio? addr 0		# SCSI NCR 5380
< #sbc0	at obio? addr 0 flags 0x1	# MI SCSI NCR 5380
---
> #ncrscsi0 at obio? addr 0		# SCSI NCR 5380
> sbc0	at obio? addr 0 flags 0x1	# MI SCSI NCR 5380

The GENERICTEST kernel failed.

So it appears that the use of -Os instead of -O2 causes the
cross-compiled kernel to be (always?) unbootable, and it's likely that
some other combination of options makes "BSD/Mac68k Booter" think that
the resulting kernel file is not in a format that it can execute (I can
try to isolate a test case for that if it would be helpful).

-Stan



Home | Main Index | Thread Index | Old Index