From owner-freebsd-questions@FreeBSD.ORG Tue Apr 27 10:27:52 2004 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 8D6D216A4CE for ; Tue, 27 Apr 2004 10:27:52 -0700 (PDT) Received: from smtp.thilelli.net (jgabel.net1.nerim.net [80.65.226.192]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6672443D4C for ; Tue, 27 Apr 2004 10:27:51 -0700 (PDT) (envelope-from jpeg@thilelli.net) Received: from localhost (localhost.thilelli.net [127.0.0.1]) by bento.thilelli.net (Postfix) with ESMTP id E963578C65 for ; Tue, 27 Apr 2004 19:27:37 +0200 (CEST) Received: from bento.thilelli.net ([127.0.0.1]) by localhost (bento.thilelli.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 54457-01 for ; Tue, 27 Apr 2004 19:27:37 +0200 (CEST) Received: from webmail.thilelli.net (localhost.thilelli.net [127.0.0.1]) by bento.thilelli.net (Postfix) with SMTP id D892578C50 for ; Tue, 27 Apr 2004 19:27:36 +0200 (CEST) Received: from 192.168.0.105 (SquirrelMail authenticated user jgabel) by webmail.thilelli.net with HTTP; Tue, 27 Apr 2004 19:27:36 +0200 (CEST) Message-ID: <51956.192.168.0.105.1083086856.squirrel@webmail.thilelli.net> In-Reply-To: <20040427165556.56003.qmail@web40308.mail.yahoo.com> References: <50666.192.168.0.105.1083070521.squirrel@webmail.thilelli.net> <20040427165556.56003.qmail@web40308.mail.yahoo.com> Date: Tue, 27 Apr 2004 19:27:36 +0200 (CEST) From: "Julien Gabel" To: freebsd-questions@freebsd.org User-Agent: SquirrelMail/1.4.2 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 Importance: Normal X-Virus-Scanned: by amavisd-new at thilelli.net Subject: Re: cdrecord problem X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Apr 2004 17:27:52 -0000 > # cp /usr/src/sys/i386/conf/GENERIC > /usr/src/sys/i386/conf/GENERIC.BK > # cat /usr/src/sys/i386/conf/GENERIC > ........ > # ATA and ATAPI devices > device ata > device atapicd # ATAPI CDROM > drives > ..... > # SCSI peripherals > device scbus # SCSI bus (required > for SCSI) > device cd # CD > device pass # Passthrough device > (direct SCSI access) > ... > > found already there > > Added > device atapicam > to /usr/src/sys/i386/conf/GENERIC > > Now coming to rebuilding the kernel I am very > cautionous avoiding the OS can't start after reboot. > I shall do following steps; > > # cd /usr/src > # make buildworld > # make KERNCONF=GENERIC buildkernel > # make KERNCONF=GENERIC installkernel > # reboot > > Please advise. TIA 1/ Better to keep the GENERIC configuration file not touched. Copy the GENERIC file to a new file named "the-name-of-the-machine-in-upper-case" (ex.: FBSDBOX) and changed the 'ident' entry according to the new name. 2/ Add the device atapicam at the end of the file. 3/ Clean up the obj directory. 4/ Build and install the new kernel. 5/ Reboot. *Example* of the steps: # shutdown now /* In order to go to Single User Mode */ # cd /usr/src/sys/i386/conf # cp GENERIC FBSDBOX # diff -u GENERIC FBSDBOX --- GENERIC Mon Jan 26 20:42:11 2004 +++ FBSDBOX Tue Apr 27 19:16:36 2004 @@ -22,7 +22,7 @@ cpu I486_CPU cpu I586_CPU cpu I686_CPU -ident GENERIC +ident FBSDBOX #To statically compile in device wiring instead of /boot/device.hints #hints "GENERIC.hints" #Default places to look for devices. @@ -271,3 +271,7 @@ device firewire # FireWire bus code device sbp # SCSI over FireWire (Requires scbus and da) device fwe # Ethernet over FireWire (non-standard!) + + +# Modified by Stephen Liu +device atapicam # From atapicam(4) # rm -rf /usr/obj/* # cd /usr/src ; make cleandir ; make cleandir # make -DALWAYS_CHECK_MAKE buildkernel KERNCONF=FBSDBOX # make -DALWAYS_CHECK_MAKE installkernel KERNCONF=FBSDBOX # shutdown -r now Note that the last build/installed kernel is backuped automatically when installing a new kernel, so you can always boot specifying the last known working kernel at boot time if the new one isn't working as expected. Another good place to start is: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/\ kernelconfig.html Particularly (for your last point): http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/\ kernelconfig-trouble.html#KERNELCONFIG-NOBOOT -- -jpeg.