Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 Apr 2004 19:27:36 +0200 (CEST)
From:      "Julien Gabel" <jpeg@thilelli.net>
To:        freebsd-questions@freebsd.org
Subject:   Re: cdrecord problem
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>

next in thread | previous in thread | raw e-mail | index | archive | help
> # 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 <satimis@yahoo.com>
+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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?51956.192.168.0.105.1083086856.squirrel>