home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.bsd
- Path: sparky!uunet!think.com!rpi!ghost.dsi.unimi.it!serini
- From: serini@ghost.dsi.unimi.it (Piero Serini)
- Subject: Re: At boot: file too big to load
- References: <1992Nov22.225044.1344@ghost.dsi.unimi.it> <1992Nov23.070212.9393@tfs.com>
- Organization: Computer Science Dep. - Milan University
- Date: Mon, 23 Nov 1992 16:03:17 GMT
- Message-ID: <1992Nov23.160317.6369@ghost.dsi.unimi.it>
- Lines: 44
-
- julian@tfs.com (Julian Elischer) writes:
-
- >In article <1992Nov22.225044.1344@ghost.dsi.unimi.it> serini@ghost.dsi.unimi.it (Piero Serini) writes:
- >>Hi.
- ...
- >>if(roundup(x.a_text, 4096) + x.a_data + x.a_bss > (unsigned)&fil) {
- >> printf("File too big to load");
- >> return;
- >>}
- >>The meaning of the code is clear, but I can't figure out why
- >>a kernel which size is 466730 is too big to load.
-
- >I'll bet that if yu do a 'size' on the kernel,
- >it shows that the sum of the partitions in the file are bigger than that.
-
- yes, you're right. The "large" kernel will use 724848 bytes, and
- the start address of the struct "fil" varies from 621736 to 622376.
- The distribution stripped kernel reaches 526144.
- My kernel wants 668580, still too much.
- I put a printf in bootas code to know this. (start addr of the struct "fil")
- >>What do you (all) think about casting fil address a bit higher ?
-
- >no
-
- >>I'm waiting for your suggestions ...
-
- >The only answer is to have a kernel that can load above 1MB
- >otherwise it and the loader have to fit in the 640k window.
- >bill jolitz says 0.2 will be able to do this.
-
- Whe have to wait for it, then :)
-
- >I frequently have to decide what to leave out of the kernel
- >to add some other feature.
-
- Bye
-
- ------------------------------------------ Piero Serini -----------------
- E-mail: serini@ghost.dsi.unimi.it
- Piero Serini or: piero@strider.st.dsi.unimi.it
- Via Giambologna, 1
- I 20136 MILANO MI Computer Science Dept.
- ITALY Universita' Statale - Milano - ITALY
- -------------------------------------------------------------------------
-