Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Aug 2014 15:02:56 +0430
From:      Mohsen Pahlevanzadeh <mohsen@pahlevanzadeh.org>
To:        Polytropon <freebsd@edvax.de>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: ident name and kernel 10
Message-ID:  <1407839576.14647.12.camel@debian>
In-Reply-To: <20140811095953.2b1519f0.freebsd@edvax.de>
References:  <1407727682.14647.4.camel@debian> <20140811095953.2b1519f0.freebsd@edvax.de>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 2014-08-11 at 09:59 +0200, Polytropon wrote:
> 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.
> 
> 
> 
you said true but i added some command:
cd /usr/src
make buildworld
                                                make kernel KERNCONF=MYK
shutdown now
                                               boot with single user####
 mount -u /
 mount -a -t ufs
 swapon -a
 adjkerntz -i
 mergemaster -p
 cd /usr/src
 make installworld
 mergemaster -iF
 make delete-old
 reboot
                                                          Normal boot###
 make delete-old-libs
                                                    uname -r returns MYK
                                                                        




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