LMA != VMA when compiling a kernel
Stanislav Sedov
stas at FreeBSD.org
Thu May 21 21:04:08 UTC 2009
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Thu, 21 May 2009 22:18:11 +0200
Guillaume Ballet <gballet at gmail.com> mentioned:
> Hello list,
>
> I am still working on a port of FreeBSD to the beagleboard, and am
> currently working on enabling the VM. So far, I have loaded the kernel
> at phys_addr = virt_addr = 0x80000000, because that is where the RAM
> is. However, when enabling the VM, I would like the kernel virtual
> addresses to start with 0xC0000000 as they do on most other platform.
>
> Hence, I have been trying to set the ELF file sections' VMAs to
> something starting with 0xC and the LMAs to something starting with
> 0x8. It turns out that just setting KERNPHYSADDR and KERNVIRTADDR is
> not enough >.< If found a way to do this by chaning the script linker
> and adding AT after each section declaration, and it works fine. But
> it's tedious, hacky and lots of hardcoded values only work with my
> platform.
>
Does beagleboard use PXA cpu? I know only one place where the physical
memory location for PXA is hardcoded, and I belive it should work fine
after changing it...
- --
Stanislav Sedov
ST4096-RIPE
-----BEGIN PGP SIGNATURE-----
iEYEARECAAYFAkoVwe0ACgkQK/VZk+smlYEfZgCfdTzYvcyQhghzClcHkXV3ccI7
8JwAn36Gw/pkJVS+jPEM3MiUiSqRKrOE
=hWi6
-----END PGP SIGNATURE-----
!DSPAM:4a15c1c6994291674276043!
More information about the freebsd-arm
mailing list