From owner-freebsd-arm@FreeBSD.ORG Mon Dec 31 03:19:26 2012 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3050A70F for ; Mon, 31 Dec 2012 03:19:26 +0000 (UTC) (envelope-from freebsd@damnhippie.dyndns.org) Received: from duck.symmetricom.us (duck.symmetricom.us [206.168.13.214]) by mx1.freebsd.org (Postfix) with ESMTP id 3B8E38FC0A for ; Mon, 31 Dec 2012 03:19:18 +0000 (UTC) Received: from damnhippie.dyndns.org (daffy.symmetricom.us [206.168.13.218]) by duck.symmetricom.us (8.14.5/8.14.5) with ESMTP id qBV3JH68081528 for ; Sun, 30 Dec 2012 20:19:18 -0700 (MST) (envelope-from freebsd@damnhippie.dyndns.org) Received: from [172.22.42.240] (revolution.hippie.lan [172.22.42.240]) by damnhippie.dyndns.org (8.14.3/8.14.3) with ESMTP id qBV3JFlh085037; Sun, 30 Dec 2012 20:19:15 -0700 (MST) (envelope-from freebsd@damnhippie.dyndns.org) Subject: Re: nand partitioning and fdt/dts? From: Ian Lepore To: Ronald Klop In-Reply-To: References: Content-Type: text/plain; charset="us-ascii" Date: Sun, 30 Dec 2012 20:19:15 -0700 Message-ID: <1356923955.54953.114.camel@revolution.hippie.lan> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit Cc: freebsd-arm@freebsd.org X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.14 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, 31 Dec 2012 03:19:26 -0000 On Sun, 2012-12-30 at 23:00 +0100, Ronald Klop wrote: > Hi, > > I configured my SheevaPlug like this: > http://wiki.freebsd.org/NAND#Static_NAND_partitioning > > Now I'm running with this little local patch. > Index: sys/boot/fdt/dts/sheevaplug.dts > =================================================================== > --- sys/boot/fdt/dts/sheevaplug.dts (revision 244271) > +++ sys/boot/fdt/dts/sheevaplug.dts (working copy) > @@ -95,7 +95,12 @@ > }; > > slice@200000 { > - reg = <0x200000 0x1fe00000>; > + reg = <0x200000 0x600000>; > + label = "fbsd-boot"; > + }; > + > + slice@800000 { > + reg = <0x800000 0x1f800000>; > label = "root"; > }; > }; > > Not a problem, but I wonder why the config in wiki is different to the > config in svn. > Can somebody explain this? > Is there a better way to load the kernel than the fbsd-boot slice in nand? > I could imagine a bootloader loading the kernel from the 'root' slice, but > can't find any information how to configure that (if it already exists). > > Regards, > Ronald. In theory you should be able to use /boot/ubldr as the thing that lives in the fbsd-boot partition, and it knows how to find /boot/kernel on the root filesystem. I have to say "in theory" because I can't test it on my DreamPlugs. I've lost the original u-boot on both of them and have a different one that I found on the web installed. Sadly, it doesn't have the "bootelf" command built in, so I can load ubldr but not launch it. Oh wait, I just realized: ubldr probably doesn't know about nandfs. -- Ian