Date: Tue, 25 Apr 1995 19:25:13 +1000 From: Bruce Evans <bde@zeta.org.au> To: dgaudet@cs.ubc.ca, hackers@FreeBSD.org Subject: Re: comments on an attempted install Message-ID: <199504250925.TAA24082@godzilla.zeta.org.au>
next in thread | raw e-mail | index | archive | help
>The next problem I had was with the ed0 driver. I was planning on >installing via ftp. My net card (WD8003E) worked fine under Linux, >but I kept getting "ed0: device timeout" under FreeBSD. After hunting >on the net via the freebsd homepage I was able to search the man pages >and find docs on the ed0 errors. It was as I suspected -- the >FreeBSD driver wasn't looking on the same IRQ as the Linux driver did. >(I suspect the Linux driver hunts for the card on multiple IRQs, >because I never had to specify where it was.) I don't have docs The Linux driver does essentially `irqno = irqmap[inb(base_port + MAGIC_OFFSET) & MASK];' This fails for my WD8013EBT compatible card because `irqmap', `MAGIC_OFFSET' and `MASK' are wrong. I think the correct fix under Linux is to boot with Lilo and give a boot flag to specify the irq. The corresponding fix under FreeBSD is to boot with -c and set the irq. After you figure out the problem and the correct irq you can set the irq in a config file. For FreeBSD, the `dset' utility is normally run from /etc/rc to record the current config so that the irq gets set in /kernel (the wrong place) whether you want it or not. >BTW, swapfiles (a la Linux) may not be the greatest w.r.t. performance, >but on low diskspace machines they're a lifesaver. Besides, it seems FreeBSD has the more general `vn' driver. It allows any file to be used as a disk device. The disk device may have a swap partition as a special case. >like a waste of diskspace if you're sharing your machine between linux >and freebsd to have to devote a partition to swapping in each OS. >I'd rather stick a swapfile on a dos partition and share it between >linux, os/2, and freebsd. (Too bad OS/2 is the only one that doesn't >require some sort of special initialization for their swap files). This should be easier now that drivers support DOSpartitions better. I think the special initialization for using wd0s4 as a swap partition is simply `disklabel -r -w wd0s4 disktab_entry' followed by swapon. Swap devices have to be on partition 'b' so you can't have one on a whole slice. Bruce
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199504250925.TAA24082>
