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.



The following reply was made to PR port-mac68k/50435; it has been noted by GNATS.

From: Mac User <userm57%yahoo.com@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: Martin Husemann <martin%duskware.de@localhost>, 
 port-mac68k-maintainer%netbsd.org@localhost, gnats-admin%netbsd.org@localhost, 
 netbsd-bugs%netbsd.org@localhost
Subject: Re: port-mac68k/50435: "BSD/Mac68k Booter" can't boot cross-compiled
 kernels from the NetBSD root partition.
Date: Mon, 16 Nov 2015 15:12:39 -0700

 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