From owner-freebsd-questions@FreeBSD.ORG Mon Mar 7 23:00:26 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0814A16A4CE for ; Mon, 7 Mar 2005 23:00:26 +0000 (GMT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.206]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7DCAC43D46 for ; Mon, 7 Mar 2005 23:00:25 +0000 (GMT) (envelope-from motionsiren@gmail.com) Received: by wproxy.gmail.com with SMTP id 70so1604772wra for ; Mon, 07 Mar 2005 15:00:25 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding; b=NnEzfbjkFh+kpBAVxa7tYhjJVJCs8hmIwgo/F2Ha3clo/oH3hyg56hEztjdceRacrENHv46jENQpNr95qSdUfv6rWjCxJ7D0h18wkyY+OWl9z8jsmr98t8q8zF2VemSgLCBlnoC7IzXjxea81p5hk60A5lZ0zptva5ZqxUisXVA= Received: by 10.54.81.7 with SMTP id e7mr82797wrb; Mon, 07 Mar 2005 15:00:24 -0800 (PST) Received: by 10.54.72.20 with HTTP; Mon, 7 Mar 2005 15:00:24 -0800 (PST) Message-ID: <781e2bc0050307150012c172a0@mail.gmail.com> Date: Mon, 7 Mar 2005 15:00:24 -0800 From: Benjamin Keating To: freebsd-questions@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Recompiling the Kernel for better ATA support X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Benjamin Keating List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Mar 2005 23:00:26 -0000 I'm having a problem with my drives and found a promising solution (http://lists.freebsd.org/pipermail/freebsd-hackers/2004-October/008821.html) It looks like i need to modify /usr/src/sys/dev/ata/ata-lowlevel.c with the following, but im unsure how to read it. Some pointers about how to understand this would be awesome. %< -------------------------------------- --- ata-lowlevel.c.orig Fri Oct 29 12:06:09 2004 +++ ata-lowlevel.c Fri Oct 29 12:05:38 2004 @@ -700,7 +700,7 @@ ATA_IDX_OUTB(atadev->channel, ATA_ALTSTAT, ATA_A_4BIT); /* only use 48bit addressing if needed (avoid bugs and overhead) */ - if ((lba > 268435455 || count > 256) && atadev->param && + if ((lba > 268435454 || count > 256) && atadev->param && atadev->param->support.command2 & ATA_SUPPORT_ADDRESS48) { >% -------------------------------------- After modifying this file, do I simply recompile my kernel? Here is how i go about recompiling mine (open to suggestions): # cd /usr/src/sys/i386/conf # cp GENERIC MYKERNEL # vi MYKERNEL # config MYKERNEL # cd /usr/src # make buildkernel KERNCONF=MYKERNEL # make installkernel KERNCONF=MYKERNEL Im new to kernel compiling and never patched files in the source before. Keep up the good work guys! I love this OS.