linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* BAT setting after bootrom? and where to load elf image?
@ 2002-06-11 19:21 Tim Lai
  2002-06-12  2:47 ` Matt Porter
  0 siblings, 1 reply; 2+ messages in thread
From: Tim Lai @ 2002-06-11 19:21 UTC (permalink / raw)
  To: linuxppc-embedded


Hi, I am new to linux and trying to get some help from
some linux experts out here. I've been reading and
searching the mail list archive for the past few
weeks.
Here is what I have so far:

I have a ppc750 broad with vxWorks bootrom. I do not
have any device to reflash the broad. I read one of
the mail archive that someone write a program to
work with vxWorks bootrom. And this is what I want
to do. I plan to convert the vmlinux image to asm and
put it in the .text section of another elf file.
Load this elf file and relocate the vmlinux image to
0xC000000. Is this a feasible approach?

After the vxWorks bootrom come up, the BAT setting is
phy = virt. The board has 8Meg of RAM. Knowing the
linux kernel need to be at 0xC000000, should I change
the BAT setting to map 7-8M to 0xC0000000, then
copy the image to 0xC0000000?

I am a little confuse about the MMU in linux. Here is
what I understand:
after the bootrom, the CPU MMU should be phy = virt
after linux booted, linux MMU takes over, and kernel
space is 0xc0000000, and user space is 0x0 to
0xc0000000. What happened in between? Who is
responible for doing the mapping?

Thanks in advances.

Tim Lai


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: BAT setting after bootrom? and where to load elf image?
  2002-06-11 19:21 BAT setting after bootrom? and where to load elf image? Tim Lai
@ 2002-06-12  2:47 ` Matt Porter
  0 siblings, 0 replies; 2+ messages in thread
From: Matt Porter @ 2002-06-12  2:47 UTC (permalink / raw)
  To: Tim Lai; +Cc: linuxppc-embedded


On Tue, Jun 11, 2002 at 12:21:19PM -0700, Tim Lai wrote:
>
> Hi, I am new to linux and trying to get some help from
> some linux experts out here. I've been reading and
> searching the mail list archive for the past few
> weeks.
> Here is what I have so far:
>
> I have a ppc750 broad with vxWorks bootrom. I do not
> have any device to reflash the broad. I read one of
> the mail archive that someone write a program to
> work with vxWorks bootrom. And this is what I want
> to do. I plan to convert the vmlinux image to asm and
> put it in the .text section of another elf file.
> Load this elf file and relocate the vmlinux image to
> 0xC000000. Is this a feasible approach?
>
> After the vxWorks bootrom come up, the BAT setting is
> phy = virt. The board has 8Meg of RAM. Knowing the
> linux kernel need to be at 0xC000000, should I change
> the BAT setting to map 7-8M to 0xC0000000, then
> copy the image to 0xC0000000?
>
> I am a little confuse about the MMU in linux. Here is
> what I understand:
> after the bootrom, the CPU MMU should be phy = virt
> after linux booted, linux MMU takes over, and kernel
> space is 0xc0000000, and user space is 0x0 to
> 0xc0000000. What happened in between? Who is
> responible for doing the mapping?

However you want to do it, get the vmlinux located
at physical 0 and set r3-r7 as documented in head.S

Read head.S and you will see that it takes care of
(with some outside calls) all core MMU init for Linux.

Regards,
--
Matt Porter
porter@cox.net
This is Linux Country. On a quiet night, you can hear Windows reboot.

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-06-12  2:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-06-11 19:21 BAT setting after bootrom? and where to load elf image? Tim Lai
2002-06-12  2:47 ` Matt Porter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).