From owner-freebsd-stable@FreeBSD.ORG Sat Dec 11 15:40:32 2004 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5864116A4CE for ; Sat, 11 Dec 2004 15:40:32 +0000 (GMT) Received: from coldstone.hollensbe.org (hollensbe.org [69.9.134.99]) by mx1.FreeBSD.org (Postfix) with ESMTP id D20F543D53 for ; Sat, 11 Dec 2004 15:40:31 +0000 (GMT) (envelope-from erik@hollensbe.org) Received: (qmail 15506 invoked by uid 98); 11 Dec 2004 12:53:48 -0000 Received: from erik@hollensbe.org by coldstone.isle.yi.org by uid 89 with qmail-scanner-1.20 (clamuko: 0.65. spamassassin: 2.63. Clear:RC:1(127.0.0.1):. Processed in 0.012305 secs); 11 Dec 2004 12:53:48 -0000 X-Qmail-Scanner-Mail-From: erik@hollensbe.org via coldstone.isle.yi.org X-Qmail-Scanner: 1.20 (Clear:RC:1(127.0.0.1):. Processed in 0.012305 secs) Received: from unknown (HELO mail.hollensbe.org) (127.0.0.1) by localhost with SMTP; 11 Dec 2004 12:53:48 -0000 X-MessageWall-Score: 0 (mail.hollensbe.org) Received: from [68.118.48.185] (authenticated as erik@hollensbe.org) by mail.hollensbe.org (MessageWall 1.0.8) with SMTP (encrypted with RC4-SHA); 11 Dec 2004 12:53:46 -0000 In-Reply-To: <20041211120123.C9F7D16A4D6@hub.freebsd.org> References: <20041211120123.C9F7D16A4D6@hub.freebsd.org> Mime-Version: 1.0 (Apple Message framework v619) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Erik Hollensbe Date: Sat, 11 Dec 2004 04:53:44 -0800 To: freebsd-stable@freebsd.org X-Mailer: Apple Mail (2.619) cc: Erik Hollensbe Subject: Re: hw.ata.ata_dma="0": can I do this during bootup at the X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Dec 2004 15:40:32 -0000 >>>> It would be nice if I can set hw.ata.ata_dma="0" at the loader >>>> prompt during bootup, so that the system at least will boot from >>>> harddisk. Is that possible? >>> Yes, that's possible. Drop the loader to the prompt and do the >>> following: >>> set hw.ata.ata_dma=0 >>> boot >> >> btw: I have a similar problems, but not with the boot disc, but one of >> my data drives, thus I want ata_dma enabled for the other discs. >> >> I have to dispatch a >> >> atacontrol mode 1 foo UDMA33 >> >> to set this drive (slave on second controller) to UDMA33 (otherwise it >> would use UDMA100). But I have to do it before /etc/rc.d/fsck starts >> accessing the device. Right now I've added above line to the beginning >> of aforesaid script. >> Is there a nicer/better place to tell the kernel (don't like editing >> the >> rc-scripts). > > You can use /etc/rc.early for that. You'll have to create it if it > doesn't yet exist. Put 'atacontrol mode 1 foo UDMA33' in it, and it > should execute that command before mounting the drives. Note that you can put this in loader.conf as well - if you're having trouble booting the system to do it, boot to "safe mode" - should get you in. I have an old Aladdin V with a buggy UDMA chipset, and doing this fixed the problem rather nicely. -- Erik Hollensbe