From owner-freebsd-newbies Wed Jul 5 12:28:45 2000 Delivered-To: freebsd-newbies@freebsd.org Received: from smtp01.mrf.mail.rcn.net (smtp01.mrf.mail.rcn.net [207.172.4.60]) by hub.freebsd.org (Postfix) with ESMTP id B07D837B740 for ; Wed, 5 Jul 2000 12:28:39 -0700 (PDT) (envelope-from goldtech@worldpost.com) Received: from 216-164-220-177.s177.tnt5.nyw.ny.dialup.rcn.com ([216.164.220.177] helo=beefstew) by smtp01.mrf.mail.rcn.net with smtp (Exim 2.12 #3) id 139uqX-0005XS-00; Wed, 5 Jul 2000 15:28:34 -0400 Message-ID: <000401bfe6b7$49f85b80$b1dca4d8@beefstew> From: "leegold" To: "David Johnson" Cc: References: <001601bfe314$caf15d50$3ce17ad1@beefstew> <396375F6.F2F84F7D@acuson.com> Subject: Re: tar and patch - help a newbie Thanks Date: Wed, 5 Jul 2000 15:29:07 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Sender: owner-freebsd-newbies@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Well yes, I got some help and fortunately it wasn't "rocket science" and I got the commands to work OK. But I will print out and review your post - Thanks. I tried being a real "gun slinger" and commenting out devs before I rebuilt the new kernel - but that backfired and I got some error messages - so I ended up just adding the device I needed ( pcm0 ) and changing indent field to a new name ( vs. GENERIC ) and deferred streamlining my kernel to another time. And I an getting audio now - so it worked. Just minor stuff to iron out now. A couple of error messages ect. but I can play audio cds now - excellent. Lee ----- Original Message ----- From: David Johnson To: leegold Cc: Sent: Wednesday, July 05, 2000 1:52 PM Subject: Re: tar and patch - help a newbie > 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