From owner-freebsd-questions@FreeBSD.ORG Tue Aug 12 10:33:21 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 7815BD6C for ; Tue, 12 Aug 2014 10:33:21 +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 2D33D2887 for ; Tue, 12 Aug 2014 10:33:21 +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=6mi98ZXaJm2J0TfxM45pg2C59l39MMLMzG5iG+JLYZ0=; b=J6UwucfyGAt5V2zMyQurTiIMTxOB9HxESTPbeq6CzGJ5nKMH0O6aUORRaM2l/Rmy3oaIj2DybPxWroeHDkN6xSlL1OCIPi4rp8KHzz7GhHcKQW9oFcIz4Tq+r2E3utY3iSSXlu4m/vckdC4J883xO8f+cxkgoOU11J0x2Ef4ptA=; Received: from [91.98.170.60] (port=57139 helo=debian) by us.royaserver.com with esmtpsa (UNKNOWN:AES128-GCM-SHA256:128) (Exim 4.82) (envelope-from ) id 1XH9OI-002N4y-3r; Tue, 12 Aug 2014 15:03:18 +0430 Message-ID: <1407839576.14647.12.camel@debian> Subject: Re: ident name and kernel 10 From: Mohsen Pahlevanzadeh To: Polytropon Date: Tue, 12 Aug 2014 15:02:56 +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 10:33:21 -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. > > > 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