The Unix Heritage Society mailing list
 help / color / mirror / Atom feed
* [pups] bsd2.11 kernel compile
@ 2002-06-18  3:11 Steven M. Schultz
  0 siblings, 0 replies; 5+ messages in thread
From: Steven M. Schultz @ 2002-06-18  3:11 UTC (permalink / raw)


Hi!

> From: "Chuck Dickman" <chd_1 at nktelco.net>

	I see you beat me to the answer ;)

> During the compile 'size' outputs a list of the sizes of the
> overlays. Look at the output. For mine....
> 
> > How do I figure out which overlay (or base) is the problem?
> 
> The base must be less than 7 8k pages or 57344(decimal) bytes.
> Each overlay must be less than 8k bytes or 8192(decimal).
> The network code is not overlayed, so you have 8 pages or the
> full 64k. 

	And you use "size" on the .o files to see how much each object file
	contributes to an overlay.

	With the exception of a few .o files which *must* be in the base
	segment (and these are identified in the Makefile) anything can go
	anywhere it will fit.  The overlay switching is extremely efficient
	so don't worry about the 'affinity' of modules too much.

	Oh, it should be mentioned that it is not legal to have an empty 
	(0 length) overlay except at the end - i.e. you can't have overlay 3
	be 0 bytes if overlay 4 or higher has nonzero size.

> To make it work, just get the sizes below the limits. The 
> optimal arrangement would be placing the code in such that
> the overlay changes were minimized. So... move your system
> disk drivers into base and change the configuration to
> remove any hardware you don't actually have. 
	
	With the exception of perhaps the tty driver for the specific serial
	devices present on the system it's not worth trying to pack things
	"optimally".   The overhead of overlays is inhererent in the function
	prologue and epilogue - the only extra overhead of actually switching
	overlays is stuffing ~two words or so into the MMU registers.

	DO NOT remove anything from the actual OV lines in the makefile - just
	make sure you define/configure devices as not being present in the
	config file (by saying you have 0 of them).  Then the .o files do
	not take up any space and can be segregated into unused overlays
	at the end (OV9 or 10 or so).

	Good Luck!

	Steven Schultz
	sms at 2bsd.com



^ permalink raw reply	[flat|nested] 5+ messages in thread
* [pups] bsd2.11 kernel compile
@ 2002-06-18  0:41 joseph lang
  2002-06-18  2:40 ` Chuck Dickman
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: joseph lang @ 2002-06-18  0:41 UTC (permalink / raw)


I am building a PDP 11 from junked parts and have it 
mostly working. I'm now installing BSD 2.11 and have run into 
a problem i could use some help with.

When compiling a new kernel (to include network) I get an error

ld: too big for type 431
*** exit 2

I assume this error is due to one of the overlays being too 
large. (this is pointed out in the install docs)

How do I figure out which overlay (or base) is the problem?
The random module shuffle in the documents only has 10 million 
combinations and at 30 minutes to compile, well I'm not going
to live that long. 

Is there a more scientific way to arrange the overlays?
Am I missing something obvious?

joe lang
langj at bellsouth.net



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2002-06-19  0:42 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-06-18  3:11 [pups] bsd2.11 kernel compile Steven M. Schultz
  -- strict thread matches above, loose matches on Subject: below --
2002-06-18  0:41 joseph lang
2002-06-18  2:40 ` Chuck Dickman
2002-06-18  7:55 ` Jochen Kunz
2002-06-19  0:42 ` joseph lang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).