nand partitioning and fdt/dts?
Ian Lepore
freebsd at damnhippie.dyndns.org
Mon Dec 31 03:19:26 UTC 2012
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 at 200000 {
> - reg = <0x200000 0x1fe00000>;
> + reg = <0x200000 0x600000>;
> + label = "fbsd-boot";
> + };
> +
> + slice at 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
More information about the freebsd-arm
mailing list