[comp.os.minix] Re-compiling the Minix kernel on a 1040 ST

rcd@mtuxo.att.com (XG1V6-R.DUTT) (12/28/88)

The ST Minix documentation recommends that 1040 ST owners create
a 512K RAM disk partition to store the root file system.  In my experience
this is too large a RAM disk size to recompile the Minix kernel.

I have a 1040 ST with 1 Meg RAM, and, at first I created a 512K root
partition on my hard disk (/dev/hd3). I put /usr on a 6 Meg partition (hd4).
Small programs compiled OK, but when I started a make in /usr/src/kernel,
I got error messages like "can't find ../h/com.h".  Error messages like
these can really lead you down the wrong trail. You start wondering why cc
can't find include files that you know are there. On doing chmem +30000 on
cem, I got "out of memory" messages. Reducing cem's allocation to 20000 gives
"stack too low" errors.

Suspecting that it really was a lack of memory problem, I re-created a
downsized root file system (of 256K), and re-booted. With a 256K RAM disk,
I was able to re-compile and build the kernel just fine, thanks, after
doing a "chmem =70000 /usr/lib/cem".

Rana Dutt ...!att!mtsbb!rcd
AT&T Bell Laboratories, Middletown, NJ 		(201) 957-3389