From owner-freebsd-newbies Wed Jul 5 10:55:10 2000 Delivered-To: freebsd-newbies@freebsd.org Received: from odin.acuson.com (odin.acuson.com [157.226.230.71]) by hub.freebsd.org (Postfix) with ESMTP id 0ED4737BC0C for ; Wed, 5 Jul 2000 10:55:08 -0700 (PDT) (envelope-from djohnson@acuson.com) Received: from acuson.com ([157.226.69.47]) by odin.acuson.com (Netscape Messaging Server 3.54) with ESMTP id AAA1BAE; Wed, 5 Jul 2000 10:56:53 -0700 Message-ID: <396375F6.F2F84F7D@acuson.com> Date: Wed, 05 Jul 2000 10:52:54 -0700 From: David Johnson Organization: Acuson X-Mailer: Mozilla 4.7 [en] (X11; U; SunOS 5.5.1 sun4m) X-Accept-Language: en MIME-Version: 1.0 To: leegold Cc: newbies@FreeBSD.ORG Subject: Re: tar and patch - help a newbie References: <001601bfe314$caf15d50$3ce17ad1@beefstew> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-newbies@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org leegold wrote: > > Below are some instructions I have to follow to hopefully get some sound > working on my FReeBSD. I have learned how to build a kernel - think I can do > that. But I have had some nasty experiences w/tar in the past. Has anyone helped you with this yet over the weekend? If not, here's some missing steps: > 1. Download the driver source code (link). I'm assuming that you have this on a floppy and have the floppy mounted under /mnt. I'm also assuming that you have installed the kernel sources. You will need to be root to do the following steps. > 2. Extract it in the base of your kernel source tree: > cd /usr/src/sys > tar zxvf auvia.tar.gz They're wanting you to extract what you've downloaded into the kernel source tree. First you need to copy the file over: cp /mnt/auvia.tar.gz /usr/src/sys Then do the above steps exactly as shown. > 3. Patch the following files: > cd conf > patch < files.diff What you are doing here is patching some source files. A patch contains differences between some original files and some new files. By patching you change some original files into new files. For example, instead of these guys distributing the a foo.c file in it's entirety, they're essentially just distributing the single line of source code that actually changed. Since you are patching in the conf directory, I'm wondering what is being patched. This directory contains your kernel configurations. I'm guessing that the only thing worthwhile patching in here is LINT and GENERIC. But this doesn't make sense given step #5. If you're truly curious, examine files.diff to see what file is being patched and what they're changing. I'd follow the above steps exactly as shown. > 5. In your kernel configuration file, place the line: > device pcm0 Use your Favorite Editor(tm) and place that single line somewhere in your kernel configuration file. Read the manual first on building kernels. Somewhere along the way you should have copied the GENERIC file over to MYKERNEL (or some other name of your choosing). All this added line does is compile in new-style sound support. > 6. Compile the new kernel. Read The FreeBSD Manual (RTFM) on how to build a kernel. It really isn't that difficult if you read the FM. And don't forget the step on creating new devices. For sound you need to make snd0. David To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-newbies" in the body of the message