* Booting without Uboot on 8548E
@ 2006-11-04 8:52 M Ptich
2006-11-04 9:13 ` Benjamin Herrenschmidt
2006-11-04 17:22 ` Dan Malek
0 siblings, 2 replies; 12+ messages in thread
From: M Ptich @ 2006-11-04 8:52 UTC (permalink / raw)
To: linuxppc-dev
Documentation mentions that the only dependencies between 2.6 Kernel and
bootloader are:
1. 5 input parameters (bd_t pointer, start and end of command line, start
and end of ram disk)
2. bd_t pointer and command line must with within 16MB of Kernel
3. Initial TLB1 entry must have IPROT=1
Slowly, we are finding that this list is not complete. For example, address
calculation at the start of platform_init (r3 + ...) assumes that Kernel has
been initially loaded at 0-base virtual address.
And now we are stuck with apparently another dependency: our Kernel fails to
advance beyond time calibration because jiffies are not getting incremented,
so we are not getting timer interrupts. Is it true that Kernel relies on
EPIC timer set in Uboot ? If not - where the timer insterrupts are
configured ?
_________________________________________________________________
Try the next generation of search with Windows Live Search today!
http://imagine-windowslive.com/minisites/searchlaunch/?locale=en-us&source=hmtagline
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Booting without Uboot on 8548E
2006-11-04 8:52 Booting without Uboot on 8548E M Ptich
@ 2006-11-04 9:13 ` Benjamin Herrenschmidt
2006-11-04 9:19 ` Benjamin Herrenschmidt
2006-11-04 9:28 ` Booting without Uboot on 8548E M Ptich
2006-11-04 17:22 ` Dan Malek
1 sibling, 2 replies; 12+ messages in thread
From: Benjamin Herrenschmidt @ 2006-11-04 9:13 UTC (permalink / raw)
To: M Ptich; +Cc: linuxppc-dev
On Sat, 2006-11-04 at 08:52 +0000, M Ptich wrote:
> Documentation mentions that the only dependencies between 2.6 Kernel and
> bootloader are:
>
> 1. 5 input parameters (bd_t pointer, start and end of command line, start
> and end of ram disk)
> 2. bd_t pointer and command line must with within 16MB of Kernel
> 3. Initial TLB1 entry must have IPROT=1
This is for arch/ppc, which is sort-of deprecated. You should seriously
think about porting over to arch/powerpc instead.
> Slowly, we are finding that this list is not complete. For example, address
> calculation at the start of platform_init (r3 + ...) assumes that Kernel has
> been initially loaded at 0-base virtual address.
For which CPU core ? 6xx/7xx/7xxx/G2 cores don't assume such a thing,
the kernel can be loaded anywhere as long as the virtual and physical
addresses are the same.
> And now we are stuck with apparently another dependency: our Kernel fails to
> advance beyond time calibration because jiffies are not getting incremented,
> so we are not getting timer interrupts. Is it true that Kernel relies on
> EPIC timer set in Uboot ? If not - where the timer insterrupts are
> configured ?
I'm not familiar about which core family the 85xx is. Doesn't it use the
decrementer ?
Ben.
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Booting without Uboot on 8548E
2006-11-04 9:13 ` Benjamin Herrenschmidt
@ 2006-11-04 9:19 ` Benjamin Herrenschmidt
2006-11-10 8:14 ` Low memory not pageable on Freescale BookE M Ptich
2006-11-04 9:28 ` Booting without Uboot on 8548E M Ptich
1 sibling, 1 reply; 12+ messages in thread
From: Benjamin Herrenschmidt @ 2006-11-04 9:19 UTC (permalink / raw)
To: M Ptich; +Cc: linuxppc-dev
> > Slowly, we are finding that this list is not complete. For example, address
> > calculation at the start of platform_init (r3 + ...) assumes that Kernel has
> > been initially loaded at 0-base virtual address.
>
> For which CPU core ? 6xx/7xx/7xxx/G2 cores don't assume such a thing,
> the kernel can be loaded anywhere as long as the virtual and physical
> addresses are the same.
I've checked and 85xx is some sort of BookE, so you'll have to wait for
the freescale folks here to help you..
(Note that it's unlikely that people will be motivated to help you
considering the rude tone of your initial email)
Ben.
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Booting without Uboot on 8548E
2006-11-04 9:13 ` Benjamin Herrenschmidt
2006-11-04 9:19 ` Benjamin Herrenschmidt
@ 2006-11-04 9:28 ` M Ptich
2006-11-06 21:16 ` Andy Fleming
1 sibling, 1 reply; 12+ messages in thread
From: M Ptich @ 2006-11-04 9:28 UTC (permalink / raw)
To: benh; +Cc: linuxppc-dev
>You should seriously think about porting
>over to arch/powerpc instead.
8548E is E500v2 core. Our Kernel is from Freescale, it is using arch/ppc. I
am not sure how well (if at all) E500 is supported in the arch/powerpc from
the FSF ditribution.
>I'm not familiar about which core family the 85xx is. Doesn't it use the
>decrementer ?
Actually E500 could use Decrementer, with its Autoreload feature to get an
exact time tick. I did not think about it, will investigate.
M Ptich
>From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
>To: M Ptich <ptich@hotmail.com>
>CC: linuxppc-dev@ozlabs.org
>Subject: Re: Booting without Uboot on 8548E
>Date: Sat, 04 Nov 2006 20:13:40 +1100
>MIME-Version: 1.0
>Received: from gate.crashing.org ([63.228.1.57]) by
>bay0-mc7-f7.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.2444); Sat, 4
>Nov 2006 01:13:43 -0800
>Received: from [127.0.0.1] (localhost.localdomain [127.0.0.1])by
>gate.crashing.org (8.13.8/8.13.8) with ESMTP id kA49DeGf013357;Sat, 4 Nov
>2006 03:13:41 -0600
>X-Message-Info: LsUYwwHHNt3660MmjhEvYg2f34OAemlKtU9j2Z7TuGo=
>References: <BAY102-F21BB220054F2541A7614E4A9FD0@phx.gbl>
>X-Mailer: Evolution 2.8.1 Return-Path: benh@kernel.crashing.org
>X-OriginalArrivalTime: 04 Nov 2006 09:13:43.0980 (UTC)
>FILETIME=[86C386C0:01C6FFF1]
>
>On Sat, 2006-11-04 at 08:52 +0000, M Ptich wrote:
> > Documentation mentions that the only dependencies between 2.6 Kernel and
> > bootloader are:
> >
> > 1. 5 input parameters (bd_t pointer, start and end of command line,
>start
> > and end of ram disk)
> > 2. bd_t pointer and command line must with within 16MB of Kernel
> > 3. Initial TLB1 entry must have IPROT=1
>
>This is for arch/ppc, which is sort-of deprecated. You should seriously
>think about porting over to arch/powerpc instead.
>
> > Slowly, we are finding that this list is not complete. For example,
>address
> > calculation at the start of platform_init (r3 + ...) assumes that Kernel
>has
> > been initially loaded at 0-base virtual address.
>
>For which CPU core ? 6xx/7xx/7xxx/G2 cores don't assume such a thing,
>the kernel can be loaded anywhere as long as the virtual and physical
>addresses are the same.
>
> > And now we are stuck with apparently another dependency: our Kernel
>fails to
> > advance beyond time calibration because jiffies are not getting
>incremented,
> > so we are not getting timer interrupts. Is it true that Kernel relies on
> > EPIC timer set in Uboot ? If not - where the timer insterrupts are
> > configured ?
>
>I'm not familiar about which core family the 85xx is. Doesn't it use the
>decrementer ?
>
>Ben.
>
>
_________________________________________________________________
Get FREE company branded e-mail accounts and business Web site from
Microsoft Office Live
http://clk.atdmt.com/MRT/go/mcrssaub0050001411mrt/direct/01/
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Booting without Uboot on 8548E
2006-11-04 9:28 ` Booting without Uboot on 8548E M Ptich
@ 2006-11-06 21:16 ` Andy Fleming
2006-11-06 21:38 ` Benjamin Herrenschmidt
0 siblings, 1 reply; 12+ messages in thread
From: Andy Fleming @ 2006-11-06 21:16 UTC (permalink / raw)
To: M Ptich; +Cc: linuxppc-dev
On Nov 4, 2006, at 03:28, M Ptich wrote:
>> You should seriously think about porting
>> over to arch/powerpc instead.
>
> 8548E is E500v2 core. Our Kernel is from Freescale, it is using
> arch/ppc. I
> am not sure how well (if at all) E500 is supported in the arch/
> powerpc from
> the FSF ditribution.
The 8548 is supported in arch/powerpc as of 2.6.18.
But moving to arch/powerpc (while a good idea) is not going to solve
your problems. There are bound to be a large number of things the
kernel expects to have done for it by the firmware. In arch/powerpc,
the 8548 kernel expects PCI to be set up, for instance (We plan to
fix that, but it involves porting some code that only exists in arch/
ppc).
Andy
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Booting without Uboot on 8548E
2006-11-06 21:16 ` Andy Fleming
@ 2006-11-06 21:38 ` Benjamin Herrenschmidt
0 siblings, 0 replies; 12+ messages in thread
From: Benjamin Herrenschmidt @ 2006-11-06 21:38 UTC (permalink / raw)
To: Andy Fleming; +Cc: M Ptich, linuxppc-dev
> But moving to arch/powerpc (while a good idea) is not going to solve
> your problems. There are bound to be a large number of things the
> kernel expects to have done for it by the firmware. In arch/powerpc,
> the 8548 kernel expects PCI to be set up, for instance (We plan to
> fix that, but it involves porting some code that only exists in arch/
> ppc).
I hope you don't mean porting pci-auto over :)
While It was good to have back then, we should really fix out PCI layer
to properly assign unassigned devices itself.
There is much work to do to cleanup ppc32, ppc64 and core PCI so they
can deal with all the various setups around, but it's probably a
worthwhile goal.
Ben.
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Booting without Uboot on 8548E
2006-11-04 8:52 Booting without Uboot on 8548E M Ptich
2006-11-04 9:13 ` Benjamin Herrenschmidt
@ 2006-11-04 17:22 ` Dan Malek
1 sibling, 0 replies; 12+ messages in thread
From: Dan Malek @ 2006-11-04 17:22 UTC (permalink / raw)
To: M Ptich; +Cc: linuxppc-dev
On Nov 4, 2006, at 3:52 AM, M Ptich wrote:
> Documentation mentions that the only dependencies between 2.6
> Kernel and
> bootloader are:
>
> 1. 5 input parameters (bd_t pointer, start and end of command line,
> start
> and end of ram disk)
> 2. bd_t pointer and command line must with within 16MB of Kernel
> 3. Initial TLB1 entry must have IPROT=1
I don't know where these are "documented", but there are
many more dependencies. :-) Take a look at the cpu initialization
code from u-boot and you will notice how the TLB CAMs need
to be initialized with the various memory maps. All of the local
bus windows likewise need to be properly set up and match
the kernel configuration.
> And now we are stuck with apparently another dependency: our Kernel
> fails to
> advance beyond time calibration because jiffies are not getting
> incremented,
The time base needs to be enabled in HID0 prior to calling
the kernel.
All of these "dependencies" are typically things a boot rom is
going to also need for proper functioning. We just chose not
to do it again in the kernel. You are going to find more.
Thanks.
-- Dan
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2006-11-15 0:54 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-04 8:52 Booting without Uboot on 8548E M Ptich
2006-11-04 9:13 ` Benjamin Herrenschmidt
2006-11-04 9:19 ` Benjamin Herrenschmidt
2006-11-10 8:14 ` Low memory not pageable on Freescale BookE M Ptich
2006-11-10 14:17 ` Kumar Gala
2006-11-10 21:59 ` KGDB support in 2.6.18 for 85xx platforms M Ptich
2006-11-15 0:38 ` Low memory not pageable on Freescale BookE M Ptich
2006-11-15 0:55 ` Kumar Gala
2006-11-04 9:28 ` Booting without Uboot on 8548E M Ptich
2006-11-06 21:16 ` Andy Fleming
2006-11-06 21:38 ` Benjamin Herrenschmidt
2006-11-04 17:22 ` Dan Malek
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).