From owner-freebsd-arm@FreeBSD.ORG Mon Jun 12 12:49:57 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 F367C16A502 for ; Mon, 12 Jun 2006 12:49:56 +0000 (UTC) (envelope-from m.boyarov@bsd.by) Received: from mx1.cybernet.by (mx1.cybernet.by [195.222.70.246]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5FF2343D46 for ; Mon, 12 Jun 2006 12:49:19 +0000 (GMT) (envelope-from m.boyarov@bsd.by) Received: from mx1.cybernet.by (mx1.cybernet.by [127.0.0.4]) by mx1.cybernet.by (Postfix) with ESMTP id 0FA513C10B8; Mon, 12 Jun 2006 15:48:52 +0300 (EEST) Received: by mx1.cybernet.by (Postfix, from userid 58) id B598B3C1068; Mon, 12 Jun 2006 15:48:51 +0300 (EEST) X-Spam-Checker-Version: SpamAssassin 3.1.1 (2006-03-10) on mx1.cybernet.by X-Spam-Level: X-Spam-Status: No, score=0.1 required=8.0 tests=AWL autolearn=ham version=3.1.1 Received: from deimos (unknown [217.21.35.33]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.cybernet.by (Postfix) with ESMTP id B8E8D3C0BB0; Mon, 12 Jun 2006 15:48:45 +0300 (EEST) Received: by deimos (Pustifikus, from userid 1026) id 6633A28436; Mon, 12 Jun 2006 15:48:37 +0300 (EEST) To: Olivier Houchard References: <7hirngmc3j.fsf@bsd.by> <20060606015312.GA48678@ci0.org> From: m.boyarov@bsd.by (Max N. Boyarov) Date: Mon, 12 Jun 2006 15:48:37 +0300 In-Reply-To: <20060606015312.GA48678@ci0.org> (Olivier Houchard's message of "Tue, 6 Jun 2006 03:53:13 +0200") Message-ID: <7hfyiatu8q.fsf@bsd.by> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: ClamAV using ClamSMTP on mx1.cybernet.by Cc: freebsd-arm@freebsd.org Subject: Re: ep80219 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: Mon, 12 Jun 2006 12:49:57 -0000 >>>>> "OH" == Olivier Houchard writes: OH> On Mon, Jun 05, 2006 at 07:59:44AM +0300, Max N. Boyarov wrote: >> >> Hi, Olivier >> >> Patch for ep80219 can be downloaded from >> http://ncd0.bsd.by/arm/ep80219.diff.gz and small fix for >> VERBOSE_INIT_ARM http://ncd0.bsd.by/arm/verbose_init_arm.diff.gz >> >> OH> Thanks a lot for this ! I've already committed the OH> VERBOSE_INIT_ARM fix. Reading the EP80219 diffs, it seems a lot OH> of the code is very similar to the i80321 one. Do you think it OH> would be doable to merge them, and only have ep80219_machdep.c OH> in the i80219, with the EP80219-specific reg file, or would it OH> end up being a #ifdef nightmare ? I try to rewrite ep80219 without #ifdef nightmare and with sharing code from i80321 -- Best regards, Max N. Boyarov BSD.by Team. E-mail: m.boyarov@bsd.by Minsk, Republic of Belarus http://bsd.by From owner-freebsd-arm@FreeBSD.ORG Sat Jun 17 17:02:32 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 535F616A47D for ; Sat, 17 Jun 2006 17:02:32 +0000 (UTC) (envelope-from daimon@dev-random.org) Received: from sharp.org (sharp.org [161.58.2.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id E48A443D49 for ; Sat, 17 Jun 2006 17:02:31 +0000 (GMT) (envelope-from daimon@dev-random.org) Received: from betty.inside.home.sharp.org (sharp.org [161.58.2.117]) by sharp.org (8.12.11.20060308/8.12.9) with ESMTP id k5HH2OgV090190 for ; Sat, 17 Jun 2006 11:02:28 -0600 (MDT) Received: from betty.inside.home.sharp.org (localhost [127.0.0.1]) by betty.inside.home.sharp.org (8.13.6/8.13.3) with ESMTP id k5H0i0gN006978 for ; Fri, 16 Jun 2006 17:44:00 -0700 (PDT) (envelope-from daimon@dev-random.org) Received: (from djs@localhost) by betty.inside.home.sharp.org (8.13.6/8.13.6/Submit) id k5H0hx6s006977 for freebsd-arm@freebsd.org; Fri, 16 Jun 2006 17:44:00 -0700 (PDT) (envelope-from daimon@dev-random.org) X-Authentication-Warning: betty.inside.home.sharp.org: djs set sender to daimon@dev-random.org using -f Date: Fri, 16 Jun 2006 17:43:55 -0700 From: David Sharp To: freebsd-arm@freebsd.org Message-ID: <20060617004355.GA99313@mail.secure.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.1i Subject: 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 17:02:32 -0000 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? From owner-freebsd-arm@FreeBSD.ORG Sat Jun 17 18:54:36 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 BFC7D16A474 for ; Sat, 17 Jun 2006 18:54:36 +0000 (UTC) (envelope-from Danovitsch@vitsch.net) Received: from amsfep15-int.chello.nl (amsfep17-int.chello.nl [213.46.243.15]) by mx1.FreeBSD.org (Postfix) with ESMTP id B317943D45 for ; Sat, 17 Jun 2006 18:54:35 +0000 (GMT) (envelope-from Danovitsch@vitsch.net) Received: from Tuinhuisje.Vitsch.net ([62.195.87.223]) by amsfep15-int.chello.nl (InterMail vM.6.01.04.04 201-2131-118-104-20050224) with ESMTP id <20060617185433.KGDQ10562.amsfep15-int.chello.nl@Tuinhuisje.Vitsch.net>; Sat, 17 Jun 2006 20:54:33 +0200 Received: from [192.168.87.6] (f23025.upc-f.chello.nl [80.56.23.25]) (authenticated bits=0) by Tuinhuisje.Vitsch.net (8.13.1/8.13.1) with ESMTP id k5HIsJUY089977; Sat, 17 Jun 2006 20:54:24 +0200 (CEST) (envelope-from Danovitsch@vitsch.net) From: "Daan Vreeken [PA4DAN]" Organization: Vitsch Electronics To: David Sharp Date: Sat, 17 Jun 2006 20:54:09 +0200 User-Agent: KMail/1.8.2 References: <20060617004355.GA99313@mail.secure.net> In-Reply-To: <20060617004355.GA99313@mail.secure.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200606172054.09689.Danovitsch@vitsch.net> 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 18:54:36 -0000 On Saturday 17 June 2006 02:43, David Sharp wrote: > 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? I don't have a clue to what is causing it, but I have a KB9202 here since a couple of weeks, and I have noticed the same problem. As it was my first experience with FreeBSD on anything not i386 and not Sparc I assumed I was doing something wrong :) I boot my board over TFTP, but I have yet to check wether the entire kernel gets downloaded, or if it's the TFTP client that only reads the first +/- 2.6 MByte. grtz, Daan From owner-freebsd-arm@FreeBSD.ORG Sat Jun 17 18:59:03 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 1554F16A47A for ; Sat, 17 Jun 2006 18:59:03 +0000 (UTC) (envelope-from mlfbsd@dong.ci0.org) Received: from dong.ci0.org (cognet.ci0.org [80.65.224.102]) by mx1.FreeBSD.org (Postfix) with ESMTP id 57B1A43D6A for ; Sat, 17 Jun 2006 18:58:58 +0000 (GMT) (envelope-from mlfbsd@dong.ci0.org) Received: from dong.ci0.org (localhost.ci0.org [127.0.0.1]) by dong.ci0.org (8.13.6/8.13.4) with ESMTP id k5HJWI9T002842; Sat, 17 Jun 2006 21:32:18 +0200 (CEST) (envelope-from mlfbsd@dong.ci0.org) Received: (from mlfbsd@localhost) by dong.ci0.org (8.13.6/8.13.4/Submit) id k5HJWIZF002841; Sat, 17 Jun 2006 21:32:18 +0200 (CEST) (envelope-from mlfbsd) Date: Sat, 17 Jun 2006 21:32:18 +0200 From: mlfbsd To: "Daan Vreeken [PA4DAN]" Message-ID: <20060617193217.GA2793@ci0.org> References: <20060617004355.GA99313@mail.secure.net> <200606172054.09689.Danovitsch@vitsch.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200606172054.09689.Danovitsch@vitsch.net> User-Agent: Mutt/1.4.1i 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 18:59:03 -0000 On Sat, Jun 17, 2006 at 08:54:09PM +0200, Daan Vreeken [PA4DAN] wrote: > On Saturday 17 June 2006 02:43, David Sharp wrote: > > 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? > > I don't have a clue to what is causing it, but I have a KB9202 here since a > couple of weeks, and I have noticed the same problem. > As it was my first experience with FreeBSD on anything not i386 and not Sparc > I assumed I was doing something wrong :) > I boot my board over TFTP, but I have yet to check wether the entire kernel > gets downloaded, or if it's the TFTP client that only reads the first +/- 2.6 > MByte. > > grtz, > Daan Hi, There have been some none issues with large kernel, but it was for kernels > 8MB. If you're not using the gzipped kernel stuff, then the best suspect would be the TFTP client from the bootloader, which is known to be dodgy. Warner worked on this, and you may try your luck in flashing what's in sys/boot/arm/at91 (make sure to replace any occurence of -DBOOT_TSC with -DBOOT_KB9202). Cheers, Olivier From owner-freebsd-arm@FreeBSD.ORG Sat Jun 17 19:06:54 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 1143F16A47B for ; Sat, 17 Jun 2006 19:06:54 +0000 (UTC) (envelope-from david@sharp.org) Received: from sharp.org (sharp.org [161.58.2.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id CC12343D5D for ; Sat, 17 Jun 2006 19:06:41 +0000 (GMT) (envelope-from david@sharp.org) Received: from betty.inside.home.sharp.org (sharp.org [161.58.2.117]) by sharp.org (8.12.11.20060308/8.12.9) with ESMTP id k5HJ6Yom098882 for ; Sat, 17 Jun 2006 13:06:37 -0600 (MDT) Received: from betty.inside.home.sharp.org (localhost [127.0.0.1]) by betty.inside.home.sharp.org (8.13.6/8.13.3) with ESMTP id k5HJ6JP8049944; Sat, 17 Jun 2006 12:06:19 -0700 (PDT) (envelope-from david@sharp.org) Received: (from djs@localhost) by betty.inside.home.sharp.org (8.13.6/8.13.6/Submit) id k5HJ6IYH049943; Sat, 17 Jun 2006 12:06:18 -0700 (PDT) (envelope-from david@sharp.org) X-Authentication-Warning: betty.inside.home.sharp.org: djs set sender to david@sharp.org using -f Date: Sat, 17 Jun 2006 12:06:18 -0700 From: David Sharp To: "Daan Vreeken [PA4DAN]" Message-ID: <20060617190618.GA658@mail.secure.net> References: <20060617004355.GA99313@mail.secure.net> <200606172054.09689.Danovitsch@vitsch.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200606172054.09689.Danovitsch@vitsch.net> User-Agent: Mutt/1.4.2.1i 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:06:54 -0000 i used ramMonitor to tftp the kernel info flash. using the read command i checked to make sure it was all there. upon booting the kernel via copy from flash same result. works for small kernels not for large. gziped kernels did the same thing. in the compressed state they were less than 2.6M, but never worked if they were larger than 2.6 when uncompressed. so.. it seems like a freebsd problem not the boot loader. On 2006.06.17 20:54:09 +0000, Daan Vreeken [PA4DAN] wrote: > On Saturday 17 June 2006 02:43, David Sharp wrote: > > 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? > > I don't have a clue to what is causing it, but I have a KB9202 here since a > couple of weeks, and I have noticed the same problem. > As it was my first experience with FreeBSD on anything not i386 and not Sparc > I assumed I was doing something wrong :) > I boot my board over TFTP, but I have yet to check wether the entire kernel > gets downloaded, or if it's the TFTP client that only reads the first +/- 2.6 > MByte. > > grtz, > Daan > 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