From owner-freebsd-mips@freebsd.org Tue Mar 6 18:35:13 2018 Return-Path: Delivered-To: freebsd-mips@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 E2E9FF496D0 for ; Tue, 6 Mar 2018 18:35:12 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from mail.baldwin.cx (bigwig.baldwin.cx [96.47.65.170]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 92E9C8414C for ; Tue, 6 Mar 2018 18:35:12 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from ralph.baldwin.cx (ralph.baldwin.cx [66.234.199.215]) by mail.baldwin.cx (Postfix) with ESMTPSA id 8EC2610A8C2; Tue, 6 Mar 2018 13:35:11 -0500 (EST) From: John Baldwin To: freebsd-mips@freebsd.org Subject: Re: ELF - panic on installworld Date: Tue, 06 Mar 2018 10:29:26 -0800 Message-ID: <1949943.3JoNfSzP6x@ralph.baldwin.cx> User-Agent: KMail/4.14.10 (FreeBSD/11.1-STABLE; KDE/4.14.30; amd64; ; ) In-Reply-To: <5A9DF0D6.7090306@grosbein.net> References: <20180305211635.GA21623@lyxys.ka.sub.org> <5A9DEE9E.6050906@grosbein.net> <5A9DF0D6.7090306@grosbein.net> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.4.3 (mail.baldwin.cx); Tue, 06 Mar 2018 13:35:11 -0500 (EST) X-Virus-Scanned: clamav-milter 0.99.2 at mail.baldwin.cx X-Virus-Status: Clean X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Mar 2018 18:35:13 -0000 On Tuesday, March 06, 2018 08:37:26 AM Eugene Grosbein wrote: > 06.03.2018 8:27, Eugene Grosbein wrote: > > > 06.03.2018 4:16, Wolfgang Zenker wrote: > > >> I'm trying to run installworld using 11-STABLE on an Ubiquity Edge > >> Router Lite (mips64, 2 cores, 512 MB Ram). Unfortunately I haven't > >> managed to finish the installworld yet, I always get a > >> panic: kernel stack overflow - trapframe at 0xffffffff80917eb0 > >> in slightly different places during the installworld. Of the 4 panics I > >> have seen on the serial console, 3 had the trapframe at 0xffffffff80917eb0 > >> and one at 0xffffffff80915eb0 > >> /usr/src and /usr/obj are nfs-mounted, and I have configured almost 2 GB > >> of swap. The build was done in a Qemu environment. > >> > >> Any hints how to proceed from here? > > > > Try increasing kernel stack size from default 2 pages to 4 by rebuilding > > the kernel with options KSTACK_PAGES=4 > > Note also, that depending on your network configuration, KSTACK_PAGES=4 > may or may not be enough. If it does not help, you need to double it once more. KSTACK_PAGES doesn't work on MIPS because the MIPS kstack has to be hardwired into the TLB and the code that does that assumes a hardcoded stack size. -- John Baldwin