Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 10 Feb 2013 21:20:25 +1300
From:      Andrew Turner <andrew@fubar.geek.nz>
To:        Warner Losh <imp@bsdimp.com>
Cc:        Tim Kientzle <tim@kientzle.com>, freebsd-arm@freebsd.org, Brett Wynkoop <wynkoop@wynn.com>
Subject:   Re: building RaspPi Images
Message-ID:  <20130210212025.009ee482@bender>
In-Reply-To: <8087503F-BE98-45B9-888B-044D9DA58B80@bsdimp.com>
References:  <5116CB50.9080303@ceetonetechnology.com> <7757848F-45C6-4DEF-A4A2-5F900EB10A06@kientzle.com> <20130210012052.4d7e1a46@ivory.local> <58DCA6BE-8C06-4F69-81A2-A3582FBB5B12@kientzle.com> <E691571B-EA19-4485-BB02-7486685B44C7@bsdimp.com> <EB4A0D67-9813-47DA-B3DB-F1309B2773F5@kientzle.com> <8087503F-BE98-45B9-888B-044D9DA58B80@bsdimp.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 10 Feb 2013 00:47:38 -0700
Warner Losh <imp@bsdimp.com> wrote:

> 
> On Feb 10, 2013, at 12:18 AM, Tim Kientzle wrote:
> 
> > On Feb 9, 2013, at 11:07 PM, Warner Losh wrote:
> > 
> >>> * For RPi, this already happens:  the first-stage boot
> >>>   loads a DTB, ubldr uses "fdt addr" to access that DTB
> >>>   in a known location and then passes it to the kernel.
> >> 
> >> Doesn't the RPi's boot loader give our /boot/loader enough info to
> >> get this without the fdt addr command?
> > 
> > I haven't dug into this yet, but there's a mismatch somewhere
> > between the RPi first-stage boot loader, U-Boot, and our ubldr.
> > 
> > I briefly tried loading our kernel straight from the RPi
> > first stage boot loader (dropping U-Boot and ubldr
> > phases) but didn't get very far with it.
> 
> Our ubldr currently ignores r2 on boot, and tries to get the FDT via
> a different uboot interface, but I'm thinking that part is broken... 

As I understand it ubldr is an elf image. We use the bootelf command
from U-Boot to jump into it. This command executes entry(argc, argv);
to run ubldr. As argc is an int and argv is a pointer these will be in
r0 and r1 respectively, as such is shouldn't look at r2.

It looks like ubldr doesn't look at argc and argv, and should have no
need to unless we decide to have it take the address of the dtb on the
command line, or have some other data passed in from U-Boot.

Andrew



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130210212025.009ee482>