Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Aug 2014 09:59:53 +0200
From:      Polytropon <freebsd@edvax.de>
To:        Mohsen Pahlevanzadeh <mohsen@pahlevanzadeh.org>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: ident name and kernel 10
Message-ID:  <20140811095953.2b1519f0.freebsd@edvax.de>
In-Reply-To: <1407727682.14647.4.camel@debian>
References:  <1407727682.14647.4.camel@debian>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 11 Aug 2014 07:58:02 +0430, Mohsen Pahlevanzadeh wrote:
> my instruction:
> ###################################
> cd /usr/src/sys/i386/conf/
> mkdir /root/kernels
> cp GENERIC /root/kernels/MYK
> ln -s /root/kernels/MYK
> ee /root/kernels/MYK  #### I changed ident from GENERIC TO MYK
> ee /root/kernels/MYK  ## add the following options for ipfw firewall(at
> end of file):
> ////////////////////////////////
> options    IPFIREWALL
> options    IPFIREWALL_VERBOSE
> options    IPFIREWALL_VERBOSE_LIMIT
> options    IPFIREWALL_DEFAULT_TO_ACCEPT
> options    IPDIVERT
> /////////////////////////////
> make LINT
> cd /usr/src/
> make buildkernel KERNELCONF=MYK
> make installkernel KERNELCONF=MYK
> init 6
> ##########################################

Even though this seems to work, it's not how you are supposed to
install a kernel today. Have a look at /usr/src/Makefile's comment
header:

#  1.  `cd /usr/src'       (or to the directory containing your source tree).
#  2.  `make buildworld'
#  3.  `make buildkernel KERNCONF=YOUR_KERNEL_HERE'     (default is GENERIC).
#  4.  `make installkernel KERNCONF=YOUR_KERNEL_HERE'   (default is GENERIC).
#       [steps 3. & 4. can be combined by using the "kernel" target]
#  5.  `reboot'        (in single user mode: boot -s from the loader prompt).
#  6.  `mergemaster -p'
#  7.  `make installworld'
#  8.  `make delete-old'
#  9.  `mergemaster'            (you may wish to use -i, along with -U or -F).
# 10.  `reboot'
# 11.  `make delete-old-libs' (in case no 3rd party program uses them anymore)

This procedure is a little bit different.

Additionally, you can store your own kernel config in /sys/i386/conf
(but make a local copy, for example in /root; symlinking is also okay).



> after boot, `uname -i` returns GENERIC ,
> My arch is i386: `uname -p` returns i386 ,
> Where's my problem?

It _may_ be a problem with the procedure you're using, even though
you said to have changed the "ident" statement in the kernel
configuration file. So maybe you try the recommended procedure
first and check the results.



-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...



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