home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / os / linux / 25320 < prev    next >
Encoding:
Internet Message Format  |  1993-01-24  |  5.0 KB

  1. Path: sparky!uunet!gatech!rpi!batcomputer!munnari.oz.au!goanna!escargot!minyos.xx.rmit.OZ.AU!rcopg
  2. From: rcopg@minyos.xx.rmit.OZ.AU (Paul Gortmaker)
  3. Newsgroups: comp.os.linux
  4. Subject: Re: [Q] Upgrading Linux?
  5. Message-ID: <1ju2f7INNgdl@escargot.xx.rmit.OZ.AU>
  6. Date: 24 Jan 93 12:35:51 GMT
  7. References: <C18M2o.Bwv@mach1.wlu.ca>
  8. Organization: RMIT Computer Centre
  9. Lines: 125
  10. NNTP-Posting-Host: minyos.xx.rmit.oz.au
  11.  
  12. kfisher3@mach1.wlu.ca (kevin fisher U) writes:
  13.  
  14. >Hello World!
  15.  
  16. >    From someone's recent post I have deduced that upgrading my version
  17. >of linux (.98pl5) to .99p3 or greater is going to be a 'big problem.'
  18.  
  19. >    Can anyone give me any advice on how I can make it as painless as
  20. >possible?  I don't have any kind of tape backup unit or anything, but can
  21. >anyone suggest a (CHEAP!) one that will work with linux?
  22.  
  23. ==============================================================================
  24.  
  25.     I am running 0.99p3 on top of a basically stock 98p5 SLS, and upgrading
  26. is no big deal ...well, maybe ;-)
  27.  
  28.     If there is sufficient interest, I can double check the bits I'm not
  29. sure of and repost this as a pseudo FAQ. Mail me if you think it would help.
  30.  
  31.     I am typing this from memory, so let's hope I don't forget anything!
  32.     
  33.                 8-)
  34.  
  35. ---------------------------------------------------------------------------
  36.  
  37.     If you can arrange it, and are worried about losing stuff, try and copy
  38. the whole lot to another partition (if you have more than 1 Linux partition)
  39. (I didn't bother, but then again I never back up my DOS partition either!!!)
  40.  
  41.  
  42. Get the source code from your nearest ftp site. This will be in a directory 
  43. like ~/sources.
  44.  
  45. You will need 1) linux-0.99.tar.Z
  46.           2) linux-0.99.patch.1 thru to patch.3 (..patch 4 out yet ???)
  47.           3) ps-0.98 plus patches
  48.           4) gcc 2.3.3 release from ~/GCC directory (optional)
  49.  
  50. The reason I say to get the source code for ps is because you usually have to
  51. recompile it for it to work after a kernel upgrage (...see the FAQ)
  52.  
  53. cd /usr/src
  54. mv ./linux ./linux-0.98p5        (save old sources... could delete them)
  55. tar -xvvozf /tmp/linux-0.99.tar.Z    (assuming you FTP'd into /tmp)
  56. cd /
  57. patch < /tmp/linux-0.99.patch.1        (apply patch 1)
  58. patch < /tmp/linux-0.99.patch.2        (apply patch 2)
  59. patch < /tmp/linux-0.99.patch.3        (apply patch 3)
  60.     
  61.     Check to see that the file kmsg.c (and the pre-patch kmsg.c~) are
  62.     NOT in the root dir (ie /). If they are, see note # 3 below.
  63.  
  64.  
  65. cd /usr/src/linux
  66. vi Makefile     (choose rootdev, keyboard etc)
  67.  
  68.     While editing the Makefile, there is a couple of minor fixes that
  69.     need to be done to it. First, where it says "rm ./tools/version.h"
  70.     change it to "rm -f ./tools/version.h". And also, where it has the
  71.     line "all: Version Image" insert "tools/version.h" between "Version"
  72.     and "Image" (Similar changes to these were posted to c.o.l)
  73.  
  74. make config    (answer the questions it asks you)
  75. make clean    (delete any old core and object files etc.)
  76. make dep    (make dependencies)
  77. make all    (compile the lot -- go for a coffee, it'll be a while)
  78.  
  79.     ...I ususally use "make all" and then move the image to disk by hand
  80.     via "dd bs=8192 if=Image of=/dev/fd0" --this line is also in the 
  81.     Makefile, and executed via "make disk"
  82.  
  83. Possible problems. 
  84.     1) symlinks to include files. The kernel wants to use the files in
  85.     /usr/src/linux/include/linux, but looks in /usr/include/linux
  86.     Soln: 
  87.         cd /usr/include
  88.         rm -f ./linux
  89.         ln -s /usr/src/linux/include/linux ./linux
  90.  
  91.     2) as above, only for the asm files. (...both this and (1) are 
  92.     discussed in the FAQ)
  93.     Soln:
  94.         cd /usr/include
  95.         rm -f ./asm
  96.         ln -s /usr/src/linux/include/asm ./asm
  97.  
  98.     3) The file kmsg.c from the 99p0 sources got untarred into / instead
  99.     of where it was supposed to be. The proper place for it is listed
  100.     in the file itself, at the top ("less /kmsg.c") Move it to where it
  101.     belongs (ie "mv /kmsg.* /usr/src/linux/proc/fs" or whatever)
  102.  
  103.     4) DO NOT OVERWRITE YOUR 98p5 BOOT DISK. If the 99p3 hangs, and you
  104.     dont have the 98p5 disk you are f*cked!!
  105.  
  106.  
  107. Then untar the ps sources (into /usr/src/linux/ps ???), apply the patches,
  108. (I think there were 3), edit the makefile, and then recompile it. Make use
  109. of  the README files and RTFM wherever possible. (I had to !!!!!!!!!!!) Do 
  110. a "ps -U" to update the system info, and ps and top should work now.
  111.  
  112. You will also want to upgrage to GCC v2.3.3 at some point too. This will also
  113. have to be pulled out of the GCC directory at your local ftp site.
  114. I actually upgraded to 2.3.3 before upgrading to 0.99p3, but you are supposed
  115. to be able to use v2.2.2d
  116.  
  117. There are some tips to the GCC inst that have been posted too. Do a grep for
  118. gcc on your system's Linux news directory.
  119.  
  120.     Hope this helps. Let me know (via. e-mail) if you found this at all
  121. helpful.
  122.  
  123.  
  124.                         Paul.
  125.  
  126.  
  127. ---------------------------------------------------------------------------
  128.  
  129. Paul Gortmaker
  130.  
  131. c/o Microelectronics and Materials    Ph  (61) 3 660 2601.
  132.     Technology Centre.            FAX (61) 3 662 1921.
  133.     Royal Melbourne Institute        e-mail: rcopg@minyos.xx.rmit.oz.au
  134.     of Technology.                paulg@bunyip.ph.rmit.oz.au
  135.     GPO Box 2476V, Melbourne 3001,        
  136.     Victoria, Australia.
  137.