Date: Sun, 30 Dec 2012 20:19:15 -0700 From: Ian Lepore <freebsd@damnhippie.dyndns.org> To: Ronald Klop <ronald@klop.ws> Cc: freebsd-arm@freebsd.org Subject: Re: nand partitioning and fdt/dts? Message-ID: <1356923955.54953.114.camel@revolution.hippie.lan> In-Reply-To: <op.wp5gqzmxeclrs1@pinky> References: <op.wp5gqzmxeclrs1@pinky>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1356923955.54953.114.camel>