home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / unix / bsd / 9212 < prev    next >
Encoding:
Internet Message Format  |  1992-11-22  |  1.5 KB

  1. Path: sparky!uunet!olivea!spool.mu.edu!agate!tfs.com!tfs.com!julian
  2. From: julian@tfs.com (Julian Elischer)
  3. Newsgroups: comp.unix.bsd
  4. Subject: Re: At boot: file too big to load
  5. Message-ID: <1992Nov23.070212.9393@tfs.com>
  6. Date: 23 Nov 92 07:02:12 GMT
  7. References: <1992Nov22.225044.1344@ghost.dsi.unimi.it>
  8. Organization: TRW Financial Systems
  9. Lines: 35
  10.  
  11. In article <1992Nov22.225044.1344@ghost.dsi.unimi.it> serini@ghost.dsi.unimi.it (Piero Serini) writes:
  12. >Hi.
  13. >At the end I succeeded recompiling that damn kernel.
  14. >A little problem still keeps me unhappy: if I install the new
  15. >kernel in /386bsd, at boot time bootas tells me: file too big to load.
  16. >
  17. >I gave a look into boot.c code, and found the following lines:
  18. >
  19. >if(roundup(x.a_text, 4096) + x.a_data + x.a_bss > (unsigned)&fil) {
  20. >    printf("File too big to load");
  21. >    return;
  22. >}
  23. >
  24. >now, x is declared struct exec x   , and fil struct dinode fil;
  25. >
  26. >The meaning of the code is clear, but I can't figure out why
  27. >a kernel which size is 466730 is too big to load.
  28.  
  29. I'll bet that if yu do a 'size' on the kernel,
  30. it shows that the sum of the partitions in the file are bigger than that.
  31. don't forget the zero filled section is not in the file, it just bzeros it.
  32.  
  33.  
  34.  
  35. >What do you (all) think about casting fil address a bit higher ?
  36.  
  37. no
  38.  
  39. >I'm waiting for your suggestions ...
  40.  
  41. The only answer is to have a kernel that can load above 1MB
  42. otherwise it and the loader have to fit in the 640k window.
  43. bill jolitz says 0.2 will be able to do this.
  44. I frequently have to decide what to leave out of the kernel
  45. to add some other feature.
  46.