Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Sep 2007 22:41:33 +0200
From:      Marius Nuennerich <marius.nuennerich@gmx.de>
To:        freebsd-arm@freebsd.org
Subject:   Re: Comment bug in locore.S?
Message-ID:  <20070927224133.5fc9b24f@sol.hackerzberg.local>
In-Reply-To: <20070927170339.GA11021@ci0.org>
References:  <20070927171822.0bdec7d9@sol.hackerzberg.local> <20070927170339.GA11021@ci0.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 27 Sep 2007 19:03:39 +0200
Olivier Houchard <mlfbsd@ci0.org> wrote:

> On Thu, Sep 27, 2007 at 05:18:22PM +0200, Marius Nuennerich wrote:
> > Hi all,
> > 
> 
> Hi Marius,
> 
> > I'm still trying to boot FreeBSD on the neo1973. So far I managed to
> > put bytes over the serial console so I can see where I am. At the
> > moment the (virtual) machine crashes in locore.S (1.16) line 170:
> > ldr pc, .Lvirt_done
> > 
> > qemu: fatal: Trying to execute code outside RAM or ROM at 0xc0008???
> > 
> > Which I don't understand because the section should be mapped by the
> > MMU to 0x30008??? at that time.
> > 
> > In line 137 the sequence in the comment is described as
> > /* # of sections, PA|attr, VA */
> > but in line 185 the order is
> > n_sec, VA, PA|attr
> > 
> > Is the comment wrong?
> > 
> 
> No the comment is right, 0xc0000000 should be mapped.
> Did you define STARTUP_PAGETABLE_ADDR ? It's not marked as such, but it is
> mandatory now.

Yes, in the kernel config there are these lines:
makeoptions     KERNPHYSADDR=0x30008000
makeoptions     KERNVIRTADDR=0xc0000000
options         KERNPHYSADDR=0x30008000
options         KERNVIRTADDR=0xc0000000
options         PHYSADDR=0x30000000
options         STARTUP_PAGETABLE_ADDR=0x30800000

It's from Andrew Turners config file which he posted on
http://wiki.openmoko.org/wiki/FreeBSD
in the tarball.




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