home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / unix / bsd / 2832 < prev    next >
Encoding:
Internet Message Format  |  1992-07-25  |  37.5 KB

  1. Xref: sparky comp.unix.bsd:2832 comp.sys.ibm.pc.hardware:20260
  2. Path: sparky!uunet!elroy.jpl.nasa.gov!swrinde!mips!newsun!gateway.novell.com!terry
  3. From: terry@npd.Novell.COM (Terry Lambert)
  4. Newsgroups: comp.unix.bsd,comp.sys.ibm.pc.hardware
  5. Subject: 386BSD FAQ
  6. Summary: An unofficial FAQ
  7. Keywords: BSD 386BSD
  8. Message-ID: <1992Jul24.224936.18008@gateway.novell.com>
  9. Date: 24 Jul 92 22:49:36 GMT
  10. References: <dhuber.711965446@autmgr>
  11. Sender: news@gateway.novell.com (NetNews)
  12. Organization: Novell NPD -- Sandy, UT
  13. Lines: 975
  14. Nntp-Posting-Host: thisbe.eng.sandy.novell.com
  15.  
  16. In article <dhuber.711965446@autmgr> dhuber@autelca.ascom.ch (Daniel Huber) writes:
  17. >BTW. Is there a 386BSD FAQ?
  18.  
  19. Here is something that I have thrown together over the past little while:
  20.  
  21.  
  22.  
  23.             Frequently Asked Questions
  24.                 386BSD 0.1
  25.  
  26.  
  27.                 EXTREMELY UNOFFICIAL
  28.  
  29.  
  30.                    Terry Lambert
  31.               terry_lambert@gateway.novell.com
  32.                terry@icarus.weber.edu
  33.  
  34.  
  35.                Last Update: 24 Jul 92
  36.  
  37.  
  38. 0.0    Organization
  39.  
  40.     This FAQ consists of four parts:
  41.  
  42.     0.*    Organization.
  43.     1.*    Overview.
  44.     2.*    Questions list (with accompanying personally or net derived
  45.             answers).
  46.     3.*    Acknowledgement (but not naming -- sorry) of Contributors.
  47.     4.*    Future of this FAQ
  48.  
  49.  
  50. 1.0    Overview
  51.  
  52.     The 386BSD 0.1 operating system is a derivitive of the Berkeley
  53. Net/2 release.  The definitive "man without whom we would have nothing" in 
  54. this effort has been William Jolitz.  For more information, download the
  55. code.
  56.  
  57.  
  58. 2.0    Questions list
  59.  
  60.     Here is an incomplete questions list (incomplete, because I do not
  61.     have answers for all of them).  This will probably dissapoint my
  62.     many fans, who no doubt consider me infallable 8-).
  63.  
  64.     Where can I find the distribution?
  65.     Where can I get the distribution on CD ROM?
  66.     Why shouldn't I download 386BSD from UUNET?
  67.     How do I get 386bsd 0.1 installed with "real" partitoning?
  68.     How do I get a second disk running under 0.1?
  69.     How can I fix the "flashing multicolored characters and
  70.         ptdi81061 prompt" error?
  71.     What is the highest baud rate supported?
  72.     SLIP is configured, but doesn't seem to work: what's wrong?
  73.     The serial ports don't work on my machine; is it my UARTs?
  74.     I can install; why won't it boot of my hard drive?
  75.     How can I verify my checksums before I have 386bsd installed?
  76.     How can I make my tty driver not lock up?
  77.     Where are the commands "rpcinfo" and "rpcgen"?
  78.     Why don't the man pages for "magic" and "file" work?
  79.     Why is apropos broke?
  80.     Where can I get a working "netstat"?
  81.     How can I fix NFS to work with my NE2000 board?
  82.     How do I add swap space?
  83.     Where can I get a kernel with second drive and second swap in it?
  84.     How do I make a device that can see my DOS partition?
  85.     How can I get "ps" to work?
  86.     How can I read tapes with multiple extents?
  87.     How do I get around the NFS "Permission denied" error?
  88.     Some of my SCSI devices (like a tape) dont work; why?
  89.     The "mountd" hangs on exporting a file system subdirectory.
  90.     Are EISA cards supported?
  91.     Is microchannel (MCA, PS/2) supported?
  92.     How much disk space do I need?
  93.     How do I get rid of "startart" characters on my console?
  94.     I'm having trouble installing the binaries... why is that?
  95.     Where can I get X windows for 386BSD?
  96.     Where can I get (FTP) info on how to configure a kernel?
  97.     I get the error "isr 15 and error: isr 17" on an NE2000 card, OR
  98.         I have some card on IRQ2 and it dosn't work; why?
  99.     If I do a "pwd", my directory goes away.
  100.     I can't unpack etc01 becuse of "too many files open".
  101.  
  102.  
  103. 2.01    Where can I find the distribution?
  104.  
  105.     The following host sites are listed in the file DISTRIBUTION.HOSTS
  106.     in the 386/BSD distribution (bot name and address are provided):
  107.  
  108.         agate.berkeley.edu        128.32.136.1
  109.         gatekeeper.dec.com        16.1.0.2
  110.         MATH.ORST.EDU            128.193.16.60
  111.         UTKUX1.UTK.EDU            128.169.200.67
  112.         terminator.cc.umich.edu        141.211.164.8
  113.         nic.funet.fi            128.214.6.100
  114.         dsuvax.dsu.edu            138.247.32.2
  115.         altair.cis.ksu.edu        129.130.10.84
  116.         hpcsos.col.hp.com        15.255.240.16    *
  117.         math.niu.edu            131.156.3.4
  118.         sune.stacken.kth.se        130.237.234.42
  119.         raquel.doc.ic.ac.uk        146.169.11.3
  120.         rusmv1.rus.uni-stuttgart.de    129.69.1.12
  121.         HELIUM.CLUB.CC.CMU.EDU        128.2.55.10
  122.         banjo.concert.net        192.101.21.6
  123.         kirk.bu.oz.au            131.244.1.1
  124.         grand.central.org        192.54.226.100
  125.         pascal.math.fu-berlin.de    130.133.4.50
  126.         capella.eetech.mcgill.ca    132.206.1.17
  127.         ftp.ibr.cs.tu-bs.de        134.169.34.15
  128.         f.ms.uky.edu            128.163.128.6
  129.         azathoth.sura.net        128.167.254.184
  130.  
  131.     Notes:    *Internal HP sites only
  132.  
  133.     The code is also soon to be available, or perhaps already available,
  134.     from both CompuServe and BIX.
  135.  
  136.  
  137. 2.02    Where can I get the distribution on CD ROM?
  138.  
  139.     A company called "Yggdrasil Computing Infrastructure Corporation"
  140.     has posted (in the person of Adam J. Richter) the following:
  141.  
  142.     -----------------------------------------------------------------
  143.         I am considering selling the 386BSD 0.1 distribution on CDROM
  144.     through my company, Yggdrasil.  The distribution would run $100,
  145.     with $60 per CD donated to Lynne and Bill Jolitz, and would
  146.     include the following.
  147.  
  148.         o An ISO9660 level 2 CDROM with a copy of the 386BSD 0.1
  149.           distribution from agate and an unpacked directory tree
  150.           of the distribution,
  151.  
  152.         o Bootable installation diskettes in both 3.5" (1.44MB) and
  153.           5.25" (1.2MB) formats.  Each of these diskettes would have
  154.           a kernel capable of mounting an ISO9660 file system and
  155.           a script for installing from the CDROM.
  156.  
  157.         o Installation instructions.
  158.  
  159.         o An Yggdrasil "GNU World Order" T-shirt.
  160.  
  161.  
  162.         At Bill Jolitz's suggestion, I plan to wait for the first patch
  163.     for the early bugs, which should be out "very shortly."
  164.  
  165.         Please send me email if you have any comments or suggestions
  166.     about this idea or if you're sure that you'd buy a CD.
  167.     -----------------------------------------------------------------
  168.  
  169.     The posted email address is richter@nic.cerf.net (Adam J. Richter);
  170.     I would greatly encourage anyone interested in 386BSD who also has
  171.     a CD ROM drive to purchase this when it becomes available, and to
  172.     send Adam email so that he can get a distribution list going.  If
  173.     he's amenable to it, this distribution list should be used to
  174.     email future items, such as "software catalogs", etc.
  175.  
  176.  
  177. 2.03    Why shouldn't I download 386BSD from UUNET?
  178.  
  179.     1)    William Jolitz, the author doesn't want you to.
  180.     2)    UUNET has a policy against binaries, so you won't be able
  181.         to boot it if you do download it.
  182.  
  183.     William F. Jolitz writes:
  184.  
  185.     --------------------------------------------------------------------
  186.     "Do *not* obtain 386BSD from uunet!  BSDI is funded partially
  187.      from UUNET coffers, and those idiots still see 386BSD as a
  188.      rival to their hopes.
  189.  
  190.      As with other related situations, they have come up with
  191.      'plausibly deniable' reasons to not provide information that
  192.      they feel affects their competitive advantages."
  193.     --------------------------------------------------------------------
  194.  
  195.     'nuf said.
  196.  
  197.  
  198. 2.04    How do I get 386bsd 0.1 installed with "real" partitoning?
  199.  
  200.     This method also comes to us, as so much else does, by way of
  201.     Chris G. Demetriou.  The following is excerpted and edited from
  202.     a post by him on the matter:
  203.  
  204.     --------------------------------------------------------------------
  205.     HOW TO GET 386bsd 0.1 INSTALLED WITH "REAL" PARTITONING:
  206.  
  207.     (remember, if things don't work, they might be in places that aren't
  208.     normally looked in... things should work as below, but you might have
  209.     to use explicit paths occasionally... the 'better' stuff -- mount,
  210.     umount, cp, etc... is in /usr/distbin on the fixit floppy...  even
  211.     mknod is there, if the devices you need aren't on the fixit floppy...)
  212.  
  213.     (1) boot the fixit floppy
  214.     (2) disklabel the disk as appropriate
  215.     (3) newfs the partitions
  216.     (4) mount the new root partition under /mnt
  217.     (5) mkdir /mnt/usr
  218.     (6) mount the new /usr partition under /mnt/usr
  219.     (7) cpio directory-by-directory (recursively -- by hand!) the entire
  220.         contents of the fixit floppy to the hard drive
  221.  
  222.         you'll do something like:
  223.  
  224.         cd /
  225.         ls | cpio -pdalmu /mnt
  226.         cd /sbin
  227.         ls | cpio -pdalmu /mnt/sbin
  228.         cd /usr
  229.         ls | cpio -pdalmu /mnt/usr
  230.         cd /usr/bin
  231.         ls | cpio -pdalmu /mnt/usr/bin
  232.  
  233.         etc.  yes, it's tiring.
  234.  
  235.     (8) copy /usr/distbin/mount and /usr/distbin/umount to /mnt (so that
  236.         they'll be in the new root partition, so you can mount the
  237.         new /usr partition...)
  238.     (9) shutdown
  239.         and the eject the floppy.
  240.     (10) reboot off the hard drive, the fsck -p <root raw device>
  241.         If there are any errors, after the fsck is done, hit
  242.         ctl-alt-delete, and repeat this step.
  243.     (11) fsck -p <usr raw device>
  244.     (12) mount -u <root device> /
  245.     (13) mount <usr device> /usr
  246.     (14) insert 0.1 boot/install floppy (dist.fs) into floppy drive
  247.         and "mount /dev/fd0a /mnt"
  248.     (15) cd /mnt
  249.         and then
  250.         usr/bin/zcat etc/baselist.Z | usr/bin/cpio -pdalmu /
  251.     (16) cd /
  252.         and then
  253.     /mnt/usr/bin/zcat /mnt/etc/baseutils.cpio.Z | /mnt/usr/bin/cpio -idalmu
  254.     (17) umount /mnt    then eject the floppy
  255.     (18) umount /usr
  256.     (19) shutdown
  257.     (20) reboot off the hard drive, and get all of the various files (the
  258.         bindist files, srcdist files, etc...).
  259.         I put them into /usr/tmp, because there wasn't enough space
  260.         in /tmp (because it was on a small root partition...).
  261.     (21) cd / ; cat <all the binary files> | uncompress | cpio -idalmu
  262.     (22) rm <all the binary files>
  263.     (23) put your hostname into "/etc/myname" and put your ip addr/hostname
  264.         into /etc/hosts.
  265.     (24) make an fstab for yourself.  specifically, you want something like:
  266.         <root device name>    /    ufs rw 1 1
  267.         <usr device name>    /usr    ufs rw 1 2
  268.  
  269.     congrats.  you now have a working system!
  270.  
  271.     you can repeat step 21 for the srcdist and etcdist files, as well,
  272.     if you wish...
  273.  
  274.     If they don't work for you, sorry...
  275.  
  276.         Chris
  277.     --------------------------------------------------------------------
  278.  
  279.     If it doesn't work, I'll be sorry too, if it'll help.
  280.  
  281.  
  282. 2.05    How do I get a second disk running under 0.1?
  283.  
  284.     This is the result of the boot disk not auto-recognizing multiple
  285.     hard drives.  A very good fix to this, if you can recompile your
  286.     kernel without first needing a second drive, was posted in article
  287.     1863 in the news group comp.unix.bsd, by Christoph Robitschko
  288.     (email at chmr@fstgds01.tu-graz.ac.at ... I suggest you pick this
  289.     patch up from your favorite news archive, like wuarchive.wustl.edu,
  290.     instead of asking him for it).  In this article, he says:
  291.  
  292.     --------------------------------------------------------------------
  293.     I have hacked /sys/i386/isa/wd.c to support two (or any number)
  294.     hard disks.  It now prints the device description for each configured
  295.     disk on boot time and even doesn't break if it cannot find a
  296.     configured disk.
  297.  
  298.     Your configuration file should contain something like this:
  299.  
  300.         controller wd0 at isa? ...
  301.         disk wd0 at wd0 disk0
  302.         disk wd1 at wd0 disk1
  303.  
  304.     Enjoy ! (But at your own risk !)
  305.                             Christoph
  306.     --------------------------------------------------------------------
  307.  
  308.     The diffs for the hacked driver is in the article.
  309.  
  310.     If you can't get the article, or can't recompile due to a lack of
  311.     disk space, or some other overriding reason, a compile that has at
  312.     least second drive support, and second swap device support, is
  313.     available from James Risner (email risner@ms.uky.edu) by anonymous
  314.     FTP:  f.ms.uky.edu:/pub2/386bsd-0.1/unofficial/second.drive.randy/*.
  315.  
  316.     I don't know if this work is based on Christoph's, or if it was
  317.     independantly developed; I also do not know if the sources are
  318.     available or not.
  319.  
  320.  
  321. 2.06    How can I fix the "flashing multicolored characters and
  322.         ptdi81061 prompt" error?
  323.  
  324.     This error is a major error, as far as I'm concerned, as it effects
  325.     the majority of the equipment that I have available to me.  It is
  326.     also present on the HP vectra.  I have a soloution that works on
  327.     AT&T 6386E/WGS, but I warn you, it's very dirty.
  328.  
  329.     The problem is that the code checking the return from the read of
  330.     the CMOS RAM value falls through in the case of an invalid value.
  331.     What really is needed is the non-existance "else" case for a bad
  332.     CMOS setup, which goes and probes memory to see it's size.  What
  333.     currently happens is that the code falls through, the Maxmem is set
  334.     to zero, and the maxmem and physmem are set to -1 (this is a bad
  335.     thing).
  336.  
  337.     To solve this, I wrote a program in (forgive me!) Turbo C to read
  338.     and write CMOS values, so that I could force the memory count to
  339.     the correct value.  For a machine with a base  memory of 640K, the
  340.     expected value in CMOS is 0280 (in bytes x16 and x15, respectively).
  341.     What the AT&T boxes and the HP vectra have here is 027f, so it falls
  342.     through to the default case and blows up.
  343.  
  344.     The quick and dirty workaround:  If you download dist.fs from
  345.     Chris G. Demetriou's upload on agate.berkeley.edu for the hard disk
  346.     boot problem (this MUST be dist.fs, and not one of the other dist.fs
  347.     files modified for Isolan or WD ethernet and named something else!),
  348.     you can use uzap (available for anon ftp from wuarchive.wustl.edu,
  349.     located at mirrors2/unix-c/editors/uzap.tar-z) to binary edit the
  350.     dist.fs at byte offset 946834; it should be changed from 81FE8002
  351.     to 81FE7F02.  This is the compare for 640K in the bogus code.  You
  352.     can look for the pattern 81FE8002 in the other *.fs files, including
  353.     fixit.fs, and change it there, if you MUST use one of them instead.
  354.  
  355.     I have uploaded a patched version of dist.fs, and maile Chris, but
  356.     don't know how long this will take to become FTP'able.  Realize
  357.     that you *MUST* fix the sources if you are going to build a kernel
  358.     which is bootable!
  359.  
  360.     It should be noted that, if you download uzap, you should "touch"
  361.     uzap.c, as otherwise, make will try to use lex to create it, and
  362.     will probably fail.  This is due to the tar extraction order from
  363.     the uzap tar archive.
  364.  
  365.  
  366. 2.07    What is the highest baud rate supported?
  367.  
  368.     The highes baud rate that is supported is 38400.  This is somewhat
  369.     a misnomer, however, since it implies that you will get "support"
  370.     if 386BSD fails to perform at this baud rate.  This is incorrect;
  371.     if it doesn't perform at 38400, try a lower baud rate.  No one is
  372.     going to commit to "fix it" for you based on a complaint.  If anyone
  373.     wants to write a faster driver, the canonical method of running
  374.     higher baud rates is to take one interrupt an poll like hell.  This
  375.     would probably impact performace pretty significantly.
  376.  
  377.     If you need more than 38400, you should consider an ehternet card.
  378.  
  379.  
  380. 2.08    SLIP is configured, but doesn't seem to work: what's wrong?
  381.  
  382.     Warren Toomey and Peter Cooper have together discovered the soloution
  383.     for this one.  Place a "nohup" on the command line in front of the
  384.     "slattach", like so:
  385.  
  386.         nohup slattach /dev/com2 9600
  387.  
  388.     The problem is apparently related to the idea of controlling tty.
  389.     The slattach should have /dev/com2 as it's controlling tty after
  390.     it has been run, and does not.  This causes slattach to shut down.
  391.     Understandably, this leads to another workaround: restart slattach
  392.     once you're up.
  393.  
  394.  
  395. 2.09    The serial ports don't work on my machine; is it my UARTs?
  396.  
  397.     It doesn't matter if you have old (8250) or new (16450) UART's in
  398.     your box.  Most liekly, the problem is related to something living
  399.     at IRQ4 (if you are trying to use com1/com3) or IRQ3 (if com2/com4).
  400.     You should move the conflicting card to another interrupt, since, in
  401.     general, you won't beable to move the com card.  This is because
  402.     interrupt sharing requires either the interrupt line not being
  403.     current sinked (thus preventing other interrupts), or a *lot* of
  404.     fancy footwork and some very explicit knowledge of the cards
  405.     involved.  The first condition is not going to be met by most AT
  406.     bus (ISA) cards.  The second would require a general change in the
  407.     way com cards are made and nearly a driver per card.  DOS doesn't
  408.     have this problem because it'scom drivers in BIOS poll the cards for
  409.     input rather than being interrupt driven.  This is generally not a
  410.     good idea in a multiprocessing (say 386BSD) environment.
  411.  
  412.  
  413. 2.10    I can install; why won't it boot of my hard drive?
  414.  
  415.     In general, this will show up as a "bad disk label" error, and
  416.     can result in in not booting from the hard drive "most of the time".
  417.     You may be able to partially (or even completely) work around this
  418.     problem by making your machine run at a lower clock rate.
  419.  
  420.     This problem is the result of the kernel reading the wrong register
  421.     waiting for the drive controller to come ready.  On some controllers,
  422.     this isn't a problem; on others, it's fatal.
  423.  
  424.     The correct soloution is to use a patched "dist.fs" or "fixit.fs"
  425.     boot disk.  These have been provided by Chris G. Demetriou, and
  426.     are located on the machine agate.berkeley.edu in the directory
  427.     pub/386BSD/386bsd-0.1/unofficial/newbootables.cgd.  There are a
  428.     number of other bootables ther for WD8003 and Isolan ethernet cards,
  429.     since the probing for both can cause problems.
  430.  
  431.  
  432. 2.11    How can I verify my checksums before I have 386bsd installed?
  433.  
  434.     A "cksum" program for the 386BSD distribution which runs on
  435.     SVR4, and which can probably be easily modified to run elsewhere,
  436.     has been provided by Henry G. Juengst (whose email address is
  437.     juengst@boss1.physik.uni-bonn.de).  Henry states about his port:
  438.  
  439.  
  440.     --------------------------------------------------------------------
  441.     I found cksum in srcdist and compiled it. Some definition problems
  442.     had to be resolved (quick hack). DG/UX 5.4.1 is a System V R4. Now
  443.     I can begin to verify all files here (first check done) and use 386BSD
  444.     for education (for no money) in an astronomical observatory
  445.     (SNH, Erkrath/Germany) which is open for everybody.
  446.  
  447.     I hope this modified cksum will help anybody just to verify the
  448.     contributed files before moving them to anywhere. Use make.sh to
  449.     compile it. But have a look before you start. May be you have
  450.     to change _PROTO_ARGS in all *.c & *.h using
  451.     sed 's/_PROTO_ARGS/YOUR_PROTOTYPE_MACRO/g' file.c >file.new.c
  452.     (it was __P in the original source). If you are not sure you should
  453.     have a look into your /usr/include/stdio.h (for example).
  454.  
  455.     THIS IS NO PATCH FOR 386BSD !
  456.  
  457.     Henry
  458.  
  459.     Sorry, here should be the uuencoded .tar.Z file. But the nntp server
  460.     fails because out of disk space; 40 kbytes - mmmh. You can get it via
  461.     anonymous ftp from
  462.  
  463.     boss1.physik.uni-bonn.de:~ftp/pub/386bsd/cksum_dgux/cksum_dg.uue
  464.     [131.220.221.30]
  465.  
  466.     for the next two month. You won't waste your time if you have a look
  467.     into the other directories (e.g. ~ftp/pub/dcl) !
  468.  
  469.     If you don't have ftp access you can mail me. I will send it to you.
  470.     --------------------------------------------------------------------
  471.  
  472.     I'm sure that Henry's work will soon find its way to agate and other
  473.     canonical distribution sites.
  474.  
  475.  
  476. 2.12    How can I make my tty driver not lock up?
  477.  
  478.     1)    Don't use it (8-)).
  479.     2)    Apply Mark Eichin's (eichin@athena.mit.edu) patch for the
  480.         file tty_ring.c.
  481.         
  482.     Sorry, no binaries with this patch already installed.  Hopefully, it
  483.     will show up in the usual places soon.  Currently, the patch is
  484.     article 1930 of comp.unix.bsd.  You can get it form your favorite
  485.     news archive (mine is wuarchive.wustl.edu).
  486.  
  487. 2.13    Where are the commands "rpcinfo" and "rpcgen"?
  488.  
  489.     Chris Flatters (cflatter@nrao.edu) informs us in the following
  490.     posting except where we can find them:
  491.  
  492.     --------------------------------------------------------------------
  493.     The sources for the Sun OS 4.0 RPC are on titan.rice.edu (I don't have
  494.     the inet number handy) in directory sun-sources.  You will have to pick
  495.     up all the shell archives and unpack them to get at rpcgen.
  496.     --------------------------------------------------------------------
  497.  
  498.  
  499. 2.14    Why don't the man pages for "magic" and "file" work?
  500.  
  501.     James Jegers (jimj@miller.cs.uwm.edu) enlightens us:
  502.  
  503.     --------------------------------------------------------------------
  504.     The manual page for magic and file all have two dots
  505.     before the commands,  eg.    "..SH" it should be ".SH"
  506.     just delete one of the double dots in the whole file and then 
  507.     it will work.
  508.     --------------------------------------------------------------------
  509.  
  510.  
  511. 2.15    Why is apropos broke?
  512.  
  513.     Also from James Jegers:
  514.  
  515.     --------------------------------------------------------------------
  516.     The Makefile in /usr/othersrc/share/man/Makefile creates the
  517.     whatis.db.  The problem is that it doesn't strip the backspaces in
  518.     the title and apropos can't handle that.  So add a "col -b" to strip
  519.     those.
  520.  
  521.     exerpt from the makefile.
  522.  
  523.     makedb:
  524.        for file in `find /usr/share/man -type f -name '*.0' -print`; do \
  525.         sed -n -f /usr/share/man/makewhatis.sed $$file; \
  526.        done | col -b | sort -u > whatis.db
  527.        install -o ${BINOWN} -g ${BINGRP} -m 444 whatis.db \
  528.                   ${DESTDIR}/usr/share/man
  529.     --------------------------------------------------------------------
  530.  
  531.  
  532. 2.16    Where can I get a working "netstat"?
  533.  
  534.     Havard Eidnes (Havard.Eidnes@runit.sintef.no) has ported it for us:
  535.  
  536.     --------------------------------------------------------------------
  537.     Hi,
  538.  
  539.     I've ported netstat from NET2 to 386bsd version 0.1. The changes
  540.     are mostly involved with inserting #ifdefs for ISO, NS and IMP at
  541.     the relevant places ("removing" that code, essentially), not
  542.     compiling some of the modules (although the source remains together
  543.     with comments in the Makefile) plus modifying the "unixpr()" routine
  544.     in unix.c to traverse the open file table the new way.  The
  545.     "netstat -r" output looks a bit odd (although I guess this is the
  546.     "new way"?), but gives the right information.
  547.  
  548.     The source and binary is available with anonymous ftp from
  549.     ugle.unit.no (for lack of a better place) in the pub/unix/386bsd/
  550.     directory as netstat-bin.tar.Z and netstat-src.tar.Z.  Unpack the
  551.     source from /usr/src and the binary and formatted man page (as root)
  552.     from /.  Use binaries at own risk ;-)
  553.  
  554.     - Havard
  555.     --------------------------------------------------------------------
  556.  
  557.     Hopefully, this will find it's way into the regular distribution.
  558.  
  559.  
  560. 2.17    How can I fix NFS to work with my NE2000 board?
  561.  
  562.     Ken Raeburn (raeburn@cambridge.cygnus.com) has both identified the
  563.     problem and provided us with a work around:
  564.  
  565.     --------------------------------------------------------------------
  566.     I reported previously that I was seeing problems reading files over
  567.     NFS using the ne2000 driver; timeouts would eventually be reported, no
  568.     data would be read.  Listing files and directories (small ones
  569.     anyways) were not a problem.
  570.  
  571.     After playing with etherfind and kernel printfs, I've come to this
  572.     conclusion: Fragmented 8K UDP packets from the NFS server are not
  573.     reaching the UDP layer in 386bsd.  The Sun is sending them (according
  574.     to another Sun spying on the network), but the UDP input routine is
  575.     never called.  I don't know if the bug here is on the 386bsd or Sun
  576.     side, and won't have time to look into it in the next couple of days.
  577.  
  578.     In the meantime, mounting NFS file systems with "rsize=1024" does get
  579.     rid of this problem.
  580.  
  581.     (It does nothing about TCP being slow, though.)
  582.     Ken
  583.     --------------------------------------------------------------------
  584.  
  585.     Hopefully, the real soloution (a UDP fix) will be forthcoming so
  586.     that the slow TCP problem is fixed as well.
  587.  
  588.  
  589. 2.18    How do I add swap space?
  590.  
  591.     William F. Jolitz fprovides the soloution to this problem himself,
  592.     by way of a reply to Randy Suess' question on the matter:
  593.  
  594.     --------------------------------------------------------------------
  595.     >To add swap space, the device needs to be compiled into the kernel
  596.     >in advance, even if you don't plan to use it. It reserves space in
  597.     >it's swap space map for this (so eventually it can interleave them).
  598.  
  599.     Ok, that did it.  Thanks.  I am now able to have the swap
  600.     partition on the second drive added with swapon. (at least
  601.     the command completes with no errors.  Any way to actually
  602.     see if the system knows about the second swap partition?)
  603.  
  604.     in /sys/compile/YOUR_SYSTEM_NAME/swap386bsd.c,
  605.     duplicate the makedev(0,1) line in the swdevt struct
  606.     and change the 1 to a 9.
  607.     --------------------------------------------------------------------
  608.  
  609.     The swdevt struct fix is Randy's, the quoted material Bill's.
  610.  
  611.  
  612. 2.19    Where can I get a kernel with second drive and second swap in it?
  613.  
  614.     As mentioned elsewhere, James Risner (risner@ms.uky.edu) has
  615.     provided at least binaries (I havent checked for sources yet):
  616.  
  617.     --------------------------------------------------------------------
  618.     A recompiled kernel with second drive support and second drive swap
  619.     support is available on
  620.     f.ms.uky.edu:/pub2/386bsd-0.1/unofficial/second.drive.randy/*
  621.     --------------------------------------------------------------------
  622.  
  623.  
  624. 2.20    How do I make a device that can see my DOS partition?
  625.  
  626.     The correct answer to this problem is "one /dev/wdXX per partition
  627.     and a DOSFS VFS module".  Barring that, the soloution provided by
  628.     Jim Paradis (paradis@sousa.ltn.dec.com) will have to do:
  629.  
  630.     --------------------------------------------------------------------
  631.     To build a devices.c file that lets you access the DOS partition, you
  632.     need to know the byte offset of the DOS partition from the start of
  633.     the hard disk.  You would then add an entry to the devices[] array
  634.     as follows:
  635.  
  636.     {'C', "/dev/wd0d", <byteoffset>L, 16, 0, (int (*) ()) 0, 0, 0, 0},
  637.  
  638.     So, f'rinstance, if your DOS partition starts at the beginning of
  639.     the disk, you'd have:
  640.  
  641.     {'C', "/dev/wd0d", 0L, 16, 0, (int (*) ()) 0, 0, 0, 0},
  642.  
  643.     On the other hand, if your DOS partition starts 32Mb into the disk,
  644.     you'd say something like:
  645.  
  646.     {'C', "/dev/wd0d", (32768L * 1024L), 16, 0, (int (*) ()) 0, 0, 0, 0},
  647.     --------------------------------------------------------------------
  648.  
  649.     Once I have my machine a happy camper, the second soloution should be
  650.     available shortly.
  651.  
  652.  
  653. 2.21    How can I get "ps" to work?
  654.  
  655.     Jim Paradis (paradis@sousa.ltn.dec.com) has given us a patch to
  656.     ./src/lib/libutil/kvm.c in article 2115 of comp.unix.bsd.  Get it
  657.     from your usenet archive, or the usualt FTP sites when it becomes
  658.     generally available.
  659.  
  660.  
  661. 2.22    How can I read tapes with multiple extents?
  662.  
  663.     With a no-rewind device.  Tore Haraldsen (toreh@bootes.sds.no) has
  664.     given us the information to make one:
  665.  
  666.     --------------------------------------------------------------------
  667.     It IS possible to read multiple file tapes, if you do the following
  668.     modifications to i386/isa/as.c:
  669.  
  670.     1) Change the definition of dev_rewind macro to use a mask outside the
  671.        other fields used by the scsi driver. Using the partition field for
  672.        no-rewind flags will not work, due to imprecise coding elsewhere in
  673.        the driver. Use 0100 for instance. Make a new kernel.
  674.  
  675.     2) Create a device with this capability:
  676.             mknod /dev/nras2a c 13 80
  677.  
  678.        The last number, 80 = 16 (=minor device number for as2) + 64
  679.        (decimal representation of 0100).
  680.  
  681.     3) When using the tape device for the first time, do some sort of dummy
  682.        access to it: tar a cpio tape or vice versa. There seems to be some
  683.        sort of race condition otherwise that will otherwise give you the
  684.        unwanted rewind.
  685.  
  686.     4) Good luck. This is just a hack, somebody compentent will have to
  687.        rewrite the whole damn thing...
  688.  
  689.     -- Tore Haraldsen
  690.     --------------------------------------------------------------------
  691.  
  692.  
  693. 2.23    How do I get around the NFS "Permission denied" error?
  694.  
  695.     The problem is not the configuration of the server (unless there is
  696.     no real requirement to run it in "secure" mode, and you happen to
  697.     be running it that way anyway).  The problem is the fact that,
  698.     even though mount request are sent on a priveledged port, NFS
  699.     connections are not.  This is part of secure NFS, and is not
  700.     supported in 386BSD.
  701.     
  702.     There is a patch to cause NFS to use a secure port in 386BSD 0.1
  703.     -- unfortunately, I don't have references for it.  It did appear
  704.     as a postisting, somewhere between article 1600 and 2100 (I know,
  705.     big help).
  706.  
  707.  
  708. 2.24    Some of my SCSI devices (like a tape) dont work; why?
  709.  
  710.     Gary Ward (gpw10@phoenixcd.amdahl.com) has seemingly discovered
  711.     that the SCSI driver likes devices to start at 0 and work their
  712.     way up.  That means that you should put your first device at
  713.     LUN 0, the second at LUN 1, and so on.  The typical arrangement
  714.     of disks at 0 and 1, and a tape at 4 will cause the tape to
  715.     not be recognized.  Change this to disks at 0 and 1 ans the tape
  716.     at 2, and voila! the tape is suddenly there.
  717.  
  718.  
  719. 2.25    The "mountd" hangs on exporting a file system subdirectory.
  720.  
  721.     This is because of a bug in mountd itself, as identified by Roe
  722.     Peterson (roe@Unibase.SK.CA).  As yet, there is not a fixed
  723.     binary available, so you will have to make the change and compile
  724.     it yourself.  The change, as posted by Roe, is as follows:
  725.  
  726.     --------------------------------------------------------------------
  727.     Found a little bug in mountd:  If /etc/exports contained:
  728.  
  729.         /usr/src -root=0
  730.  
  731.     And /usr was not a file system unto itself, mountd went into an
  732.     infinite loop and stayed there.
  733.  
  734.     The fix:  in /usr/src/sbin/mountd/mountd.c, line 592 reads:
  735.         while (*cp == '/' && cp > ep->ex_dirp)
  736.     and should read:
  737.         while (*(cp-1) == '/' && cp > ep->ex_dirp)
  738.     --------------------------------------------------------------------
  739.  
  740.  
  741. 2.26    Are EISA cards supported?
  742.  
  743.     No, EISA cards are not directly support; however several, especially
  744.     Adaptek SCSI controllers will work in ISA mode.  When and if EISA
  745.     is directly supported, they will give a significant performance
  746.     advantage to EISA bus machines.  Until then, there is nothing that
  747.     is intrinsically better about owning an EISA bus machine.
  748.  
  749.  
  750. 2.27    Is microchannel (MCA, PS/2) supported?
  751.  
  752.     No.  Like EISA, this is unsupported currently; unlike EISA, it can't
  753.     work anyway until it is supported, as it doesn't fall back to ISA
  754.     operation.  If you want to work on this problem, I'm sure that
  755.     many people will appreciate it; you will probably need an ISA or
  756.     EISA machine to do the work, however.
  757.  
  758.  
  759. 2.28    How much disk space do I need?
  760.  
  761.     The following is culled down from the INSTALL.NOTES file of the
  762.     distribution:
  763.  
  764.     Binary only:    49 M (30 disk, 5 swap, 14 extraction)
  765.     Source:        125 M (49 bin, 37 disk, +6 extraction, 25 recompile)
  766.     User software:    +51 M
  767.  
  768.     Everything plus files from recompilation is 176 M with no space left
  769.     over.
  770.  
  771.     I personally recommend at least 20-60 M of empty space for room to
  772.     grow, build your own software, keep patches, read news, etc.  Call
  773.     it around 200 M for a full distribution you can rebuild from scratch
  774.     and as a general usable system.
  775.  
  776.     If you are binary only, call it 70-160 M, depending on the space you
  777.     want left over, and whether you load the additional user software.
  778.  
  779.     Add more space for X windows, additional swap, or anything else you
  780.     want to use disk for.  I find that I'm comfortable in 300 M with the
  781.     developement work I'm doing.
  782.  
  783.     NB:  Given the recent proliferation of postings for "multiple drive"
  784.     kernels, it's always possible to "start small" and expand later, if
  785.     you need to.  You can also NFS mount disk space from another machine
  786.     if you have networking installed, in which case you only need the
  787.     space required for the binary distribution, no mater what you want
  788.     to do.
  789.  
  790.  
  791. 2.29    How do I get rid of "startart" characters on my console?
  792.  
  793.     This has been a rather highly reported problem.  Ken Raeburn reports
  794.     that simply rebuilding the kernel from the supplied sources will
  795.     get rid of it.  Others have reported that moving the ethernet card
  796.     to another IRQ also seems to sovle the problem.
  797.  
  798.  
  799. 2.30    I'm having trouble installing the binaries... why is that?
  800.  
  801.     .
  802. 2.31    Where can I get X windows for 386BSD?
  803.  
  804.     There are a number of locations carrying X386 1.2E 1.0.  The most
  805.     recent announcement posting (by David E. Wexelblat, email address
  806.     is dwex@cbnewsj.cb.att.com) states:
  807.  
  808.     --------------------------------------------------------------------
  809.     Source Patches based on X11R5 PL12, from MIT, are available 
  810.     via anonymous FTP from:
  811.  
  812.         export.lcs.mit.edu (under /pub/contrib)
  813.         ftp.physics.su.oz.au (under /X386)
  814.         ftp.win.tue.nl (under /pub/X386)
  815.  
  816.     in the file 'X386-1.2E-1.diff.Z'.   For Linux, 386BSD, BSD/386
  817.     and Mach386, additional patch kits are (currently) required.
  818.     Send mail to x386@physics.su.oz.au if you need these additional
  819.     patch kits; we will try to make them generally available in the
  820.     near future.
  821.  
  822.     Binaries are available via anonymous FTP from:
  823.  
  824.         ftp.physics.su.oz.au        - SVR4 binaries
  825.             under /X386/SVR4
  826.         ftp.win.tue.nl            - SVR4 binaries
  827.             under /pub/X386/SVR4
  828.         f.ms.uky.edu            - SVR4 binaries
  829.             under /pub2/Xwindows/X386
  830.         stasi.bradley.edu        - SVR4 binaries
  831.             under /pub/X386
  832.         banjo.concert.net        - Linux binaries
  833.             under /pub/Linux/X11
  834.  
  835.     Each binary distribution will contain a README file that
  836.     describes the compile-time option selections that were made.
  837.  
  838.     Systems X386 1.2E has been verified as working on
  839.     
  840.         Dell SVR4 2.1
  841.         Esix 4.0.3A and 4.0.4
  842.         Microport SVR4 3.1 and 4.1
  843.         UHC SVR4
  844.         Consensys SVR4
  845.         ISC SVR4
  846.         AT&T SVR4
  847.         MST SVR4
  848.         [We believe that it will work correctly on all Intel-based,
  849.          ISA/EISA SVR4's - MicroChannel has not been tested]
  850.  
  851.         Interactive SVR3 2.2
  852.         Interactive SVR3 3.0
  853.  
  854.         Linux
  855.         BSD/386
  856.         386BSD    <*******************************
  857.  
  858.     --------------------------------------------------------------------
  859.  
  860.  
  861. 2.32    Where can I get (FTP) info on how to configure a kernel?
  862.  
  863.     One of the more frequent questions asked recently is "how do I
  864.     rebuild the kernel?"  Another, only slightly less frequently asked,
  865.     is "now that I've rebuilt the kernel, what do I do with it?"  The
  866.     answers to both questions have been provided by Richard Murphey
  867.     (email address rich@Rice.edu).  Thank you, Rich, for the following
  868.     information:
  869.  
  870.     --------------------------------------------------------------------
  871.  
  872.     Ready-to-print PostScript files for each section of the net2 system
  873.     maintainer's manual are on nova.cc.purdue.edu in
  874.     pub/386bsd/submissions/bsd.manuals.
  875.  
  876.     smm.02.config.ps.Z describes kernel configuration for the vax, however
  877.     some of it is relevant to 386BSD.  There is no freely available
  878.     rewrite for 386BSD that I know of.
  879.  
  880.     More specificly, for /dev/com2 you might look at the MAKEDEV script
  881.     which is generated when you configure the kernel.  Ideally, it should
  882.     have a mknod command with the appropriate numbers for each device.
  883.     Rich
  884.     --------------------------------------------------------------------
  885.  
  886.  
  887. 2.33    I get the error "isr 15 and error: isr 17" on an NE2000 card, OR
  888.         I have some card on IRQ2 and it dosn't work; why?
  889.     
  890.  
  891.     James Van Artsdalen (email at james@bigtex.cactus.org) has given
  892.     us the answer:
  893.  
  894.     --------------------------------------------------------------------
  895.     Some VGA cards use IRQ 2 for a vertical retrace interrupt.  Even when
  896.     the interrupt is not enabled in the VGA, some cards drive IRQ 2
  897.     inactive instead of leaving the signal tristate.
  898.  
  899.     If this is the problem, you can use Scotch tape to cover the IRQ 2
  900.     signal on the VGA's ISA connector.
  901.     --------------------------------------------------------------------
  902.  
  903.     There has been some discussion as to whether scoth tape is really
  904.     appropriate inside a card slot.  My answer would be "yes".  This is
  905.     because the alternate soloution of cutting the trace on the video
  906.     board seems, to my mind, to reduce the value of the board.  It is
  907.     possible that, in the future, with a bi-partite driver, you would
  908.     want to catch the retrace interrupt to get rid of "sparklies" or to
  909.     implement a driver for a very high resoloution monitor for X.  In
  910.     this happens, given a choice between alcohol and solder, I vote for
  911.     alcohol.
  912.  
  913.     An alternate soloution would be to remove your ethernet card until
  914.     you have rebuilt the kernel so that it expects it at an interrupt
  915.     other than 2, rejumper it, and reinstall it.  This gets around both
  916.     the tape and exacto knife soloutions, plus you don't have to know
  917.     which pin is IRQ2 (something you need a techincal reference for
  918.     the bus to find out).
  919.  
  920.  
  921. 2.34    If I do a "pwd", my directory goes away.
  922.  
  923.     There is a bug in "pwd".  This problem also shows in other programs,
  924.     but is seen most in "pwd".  At the shell prompt, type a control-C
  925.     (^C, interrput).  This will make the shell "come back".
  926.  
  927.     Some people have suggested using bash (GNU's "Born Again SHell") as
  928.     a replacement to fix this problem.  *THIS DOES NOT WORK, AND WILL
  929.     RESULT IN YOUR MACHINE HANGING IN BOOT OR AN "init failed" MESSAGE!*.
  930.     Once you have your shell up, you can exec bash without a problem.
  931.     Wait until the shell is up to do this, however.
  932.  
  933.  
  934. 2.35    I can't unpack etc01 becuse of "too many files open".
  935.  
  936.     The "too many files open" is a result of the "cat" command leaving
  937.     files open after it has read a file.  Hopefully, this will be fixed
  938.     soon.  In the mean time, Dwight E. Cass (email address at
  939.     dec@lazarus.nrtc.northrop.com) has provided us with this enecdotal
  940.     work around for his own experiences:
  941.  
  942.     --------------------------------------------------------------------
  943.     So - back to installation.  This time, when I get to the etc01
  944.     partition, I am a bit more awake, so I run it from csh (with the
  945.     open file limit at 256).  Works pretty well - but complains at the end
  946.     that it could not do the final configuration because it could not find
  947.     the configuration file - I checked the MANIFEST and the file is not
  948.     there, so I finally decided to ignore the message (but it was
  949.     bothersome!)  Once etc01 was done - source was easy ... and I am now
  950.     up and running, and quite impressed!!!
  951.     --------------------------------------------------------------------
  952.  
  953.     The moral:  Use csh! 8-).
  954.  
  955.  
  956. 3.0    Contributors
  957.  
  958.     I have tried to give credit to the contributors, where possible, in
  959.     the text of this FAQ.  Some of this was transcribed from memory from
  960.     postings seen more than a week ago, so if I have used a soloution
  961.     for which you feel you should have received credit, and didn't, I'm
  962.     sorry.
  963.  
  964.     Most of this information has been culled over the last few weeks of
  965.     postings to usenet, so it is by no means complete.
  966.  
  967.  
  968. 4.0    The future
  969.  
  970.     This is an unofficial FAQ.  I have created and posted it as an interim
  971.     soloution until an officially sanctioned FAQ can be arrived at by
  972.     someone-better-equiped-but-currently-to-busy-to-do-anything-about-it.
  973.  
  974.     This FAQ does not represent an official position by William Jolitz
  975.     or any of the other people quoted, without their permission, in it,
  976.     and should not be considered as such.
  977.  
  978.     Any misrepresentations of attitudes or views of individual (and
  979.     unwitting) contributors are due to my poor editorial skills.
  980.  
  981.  
  982. 5.0    END-OF-FAQ
  983.  
  984.  
  985.                     Terry Lambert
  986.                     terry_lambert@gateway.novell.com
  987.                     terry@icarus.weber.edu
  988. ---
  989. Disclaimer:  Any opinions in this posting are my own and not those of
  990. my present or previous employers.
  991.