From owner-freebsd-stable@freebsd.org Mon Nov 12 18:57:06 2018 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 523ED110E89A for ; Mon, 12 Nov 2018 18:57:06 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from hz.grosbein.net (hz.grosbein.net [IPv6:2a01:4f8:d12:604::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "hz.grosbein.net", Issuer "hz.grosbein.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 9FF117DBB8 for ; Mon, 12 Nov 2018 18:56:55 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from eg.sd.rdtc.ru (eg.sd.rdtc.ru [IPv6:2a03:3100:c:13:0:0:0:5]) by hz.grosbein.net (8.15.2/8.15.2) with ESMTPS id wACIumkP090684 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 12 Nov 2018 19:56:49 +0100 (CET) (envelope-from eugen@grosbein.net) X-Envelope-From: eugen@grosbein.net X-Envelope-To: sven@freegw.xs4all.nl Received: from [10.58.0.4] ([10.58.0.4]) by eg.sd.rdtc.ru (8.15.2/8.15.2) with ESMTPS id wACIul3a014599 (version=TLSv1.2 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Tue, 13 Nov 2018 01:56:47 +0700 (+07) (envelope-from eugen@grosbein.net) Subject: Re: Upgrade from 10.4 stable to 11.0 releng fails To: Sven Vermeulen , freebsd-stable@freebsd.org References: <6f0394cb-ae5a-f828-e10d-bf59d440c517@freegw.xs4all.nl> From: Eugene Grosbein Message-ID: <40c3d131-315c-64e7-c8df-3bb9892ca3ac@grosbein.net> Date: Tue, 13 Nov 2018 01:56:42 +0700 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <6f0394cb-ae5a-f828-e10d-bf59d440c517@freegw.xs4all.nl> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=0.3 required=5.0 tests=BAYES_00,LOCAL_FROM,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-Report: * -2.3 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * -0.0 SPF_PASS SPF: sender matches SPF record * 2.6 LOCAL_FROM From my domains X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on hz.grosbein.net X-Rspamd-Queue-Id: 9FF117DBB8 X-Spamd-Result: default: False [-5.40 / 200.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; MX_INVALID(0.50)[greylisted]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[grosbein.net]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; R_SPF_PERMFAIL(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_SHORT(-0.94)[-0.943,0]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; IP_SCORE(-2.86)[ip: (-8.50), ipnet: 2a01:4f8::/29(-2.87), asn: 24940(-2.93), country: DE(-0.01)]; ASN(0.00)[asn:24940, ipnet:2a01:4f8::/29, country:DE]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[] X-Rspamd-Server: mx1.freebsd.org X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Nov 2018 18:57:06 -0000 13.11.2018 1:36, Sven Vermeulen wrote: > I am busy trying to upgrade FreeBSD from 10.4 stable to 11.0 releng with make world. > > I did the following steps: > > 1) svn update (for /base/releng/11.0) > 2) make buildworld > 3) make buildkernel (using a custom kernel config) > 4) make installkernel (using a custom kernel config) > > installkernel gives some warnings with kldxref: > > kldxref /boot/kernel > kldxref: unknown metadata record 4 in file aic.ko > kldxref: unknown metadata record 4 in file atacard.ko > kldxref: unknown metadata record 4 in file atp.ko > ... > > I'm not sure if I can safely ignore these warnings. Yes, you can. However, you better upgrade directly from 10.4 to 11.2 when using source upgrade path to save the time and troubles. > > 5) reboot > > After the reboot the kernel seems to start fine but after that I get the following error: > > pid 22 (sh), uid 0: exited on signal 12 > init: /bin/sh on /etc/rc terminated abnormally, going to single user mode > Enter full pathname of shell or RETURN for /bin/sh: > > When I run the command /bin/sh /etc/rc on the prompt I get the following error: > > pid 30 (sh), uid 0: exited on signal 12 > Bad system call > > Any idea what is going wrong here? signal 12 is SIGSYS meaning that your binaries use syscalls that kernel does not have, so you either still run old 10.4 kernel with new binaries or you run new custom 11.0 kernel built without options COMPAT_FREEBSD10 and old binaries. There are many possible cases for this. For example, if you have degraded gmirror then you might installed new kernel and binaries to one part of the mirror only (due to its degraded state) but loader boots old kernel using another part of the mirror because it known nothing about gmirror and uses BIOS service to read plain disk (make it boot from another part forcebly then). Or some another glitch, verify installed data carefully. If you run new custom 11.0 kernel built without options COMPAT_FREEBSD10 and old binaries, then use loader to unload new kernel and load kernel.old before booting.