From owner-freebsd-questions@FreeBSD.ORG Tue Aug 12 04:33:30 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 1A7E41C2 for ; Tue, 12 Aug 2014 04:33:30 +0000 (UTC) Received: from us.royaserver.com (unknown [162.223.89.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 9431E2223 for ; Tue, 12 Aug 2014 04:33:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=pahlevanzadeh.org; s=default; h=Content-Transfer-Encoding:Mime-Version:Content-Type:References:In-Reply-To:Date:Cc:To:From:Subject:Message-ID; bh=JEZrCkWdCrbsTvAOydtvVjR2T4ilDBue1bAp9o39h7U=; b=kXbYR+epKRLL2fkfSaEgch2ofm6vZrpSI4tZ2BjvIrCrbLc6Fc32IxUCVj+oA2HFedkGNmvciEWq4jGJjpNXhK4Z3LI9ssPyJ4JA7bLXxKXIAi6v2HSBtS+B0ZZTF74T5goJmo20Lr1jiAvaM9FH3FnCF0URv0n9s2EDRx6F5ks=; Received: from [91.98.170.60] (port=56624 helo=debian) by us.royaserver.com with esmtpsa (UNKNOWN:AES128-GCM-SHA256:128) (Exim 4.82) (envelope-from ) id 1XH3lw-001YHA-Vr; Tue, 12 Aug 2014 09:03:21 +0430 Message-ID: <1407817979.14647.6.camel@debian> Subject: Re: ident name and kernel 10 From: Mohsen Pahlevanzadeh To: Polytropon Date: Tue, 12 Aug 2014 09:02:59 +0430 In-Reply-To: <20140811095953.2b1519f0.freebsd@edvax.de> References: <1407727682.14647.4.camel@debian> <20140811095953.2b1519f0.freebsd@edvax.de> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.12.2-1+b1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - us.royaserver.com X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - pahlevanzadeh.org X-Get-Message-Sender-Via: us.royaserver.com: authenticated_id: mohsen@pahlevanzadeh.org Cc: freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Aug 2014 04:33:30 -0000 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. > > > Thank you so much, Can you explain more about make buildworld