home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / unix / bsd / 9222 < prev    next >
Encoding:
Text File  |  1992-11-23  |  2.0 KB  |  55 lines

  1. Newsgroups: comp.unix.bsd
  2. Path: sparky!uunet!think.com!rpi!ghost.dsi.unimi.it!serini
  3. From: serini@ghost.dsi.unimi.it (Piero Serini)
  4. Subject: Re: At boot: file too big to load
  5. References: <1992Nov22.225044.1344@ghost.dsi.unimi.it> <1992Nov23.070212.9393@tfs.com>
  6. Organization: Computer Science Dep. - Milan University
  7. Date: Mon, 23 Nov 1992 16:03:17 GMT
  8. Message-ID: <1992Nov23.160317.6369@ghost.dsi.unimi.it>
  9. Lines: 44
  10.  
  11. julian@tfs.com (Julian Elischer) writes:
  12.  
  13. >In article <1992Nov22.225044.1344@ghost.dsi.unimi.it> serini@ghost.dsi.unimi.it (Piero Serini) writes:
  14. >>Hi.
  15. ...
  16. >>if(roundup(x.a_text, 4096) + x.a_data + x.a_bss > (unsigned)&fil) {
  17. >>    printf("File too big to load");
  18. >>    return;
  19. >>}
  20. >>The meaning of the code is clear, but I can't figure out why
  21. >>a kernel which size is 466730 is too big to load.
  22.  
  23. >I'll bet that if yu do a 'size' on the kernel,
  24. >it shows that the sum of the partitions in the file are bigger than that.
  25.  
  26. yes, you're right. The "large" kernel will use 724848 bytes, and 
  27. the start address of the struct "fil" varies from 621736 to 622376.
  28. The distribution stripped kernel reaches 526144.
  29. My kernel wants 668580, still too much.
  30. I put a printf in bootas code to know this. (start addr of the struct "fil")
  31. >>What do you (all) think about casting fil address a bit higher ?
  32.  
  33. >no
  34.  
  35. >>I'm waiting for your suggestions ...
  36.  
  37. >The only answer is to have a kernel that can load above 1MB
  38. >otherwise it and the loader have to fit in the 640k window.
  39. >bill jolitz says 0.2 will be able to do this.
  40.  
  41. Whe have to wait for it, then :)
  42.  
  43. >I frequently have to decide what to leave out of the kernel
  44. >to add some other feature.
  45.  
  46. Bye
  47.  
  48. ------------------------------------------ Piero Serini -----------------
  49.                                E-mail: serini@ghost.dsi.unimi.it   
  50. Piero Serini                   or: piero@strider.st.dsi.unimi.it
  51. Via Giambologna, 1
  52. I  20136  MILANO  MI                Computer Science Dept.
  53. ITALY                        Universita' Statale - Milano - ITALY
  54. -------------------------------------------------------------------------
  55.