From owner-freebsd-arm@FreeBSD.ORG Sat Jun 17 19:17:20 2006 Return-Path: X-Original-To: freebsd-arm@freebsd.org Delivered-To: freebsd-arm@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AE86F16A47C for ; Sat, 17 Jun 2006 19:17:20 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (vc4-2-0-87.dsl.netrack.net [199.45.160.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id 241F643D48 for ; Sat, 17 Jun 2006 19:17:20 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (localhost.village.org [IPv6:::1] (may be forged)) by harmony.bsdimp.com (8.13.4/8.13.4) with ESMTP id k5HJH28V008092; Sat, 17 Jun 2006 13:17:03 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Sat, 17 Jun 2006 13:17:17 -0600 (MDT) Message-Id: <20060617.131717.-957833074.imp@bsdimp.com> To: daimon@dev-random.org From: "M. Warner Losh" In-Reply-To: <20060617004355.GA99313@mail.secure.net> References: <20060617004355.GA99313@mail.secure.net> X-Mailer: Mew version 4.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-arm@freebsd.org Subject: Re: KB9202 booting large kernels X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Jun 2006 19:17:20 -0000 In message: <20060617004355.GA99313@mail.secure.net> David Sharp writes: : i have been succesful with smaller nfs-root kernels booting on the : KB9202. however, when i try larger MD_ROOT kernels it does not work. the : break point is around 2.6MB total kernel size. as the size approaches : that number there will be some error messages about elf linker not finding a : symbol, or no error and just garbage on the console. after passing the 2.6M : mark by more than 10kB it silently hangs. : : does anyone have an idea what might be going wrong? Yes. There's multiple problems. First, we weren't allocating enough stack, so we overflowed the stack. Next, there's not PTEs allocated for a kernel that's so large. Finally, the default boot loader from kwikbytes is lame. All the problems have been corrected in p4. I've not had the time to merge them back into the mainline code. Warner