linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* If not CONFIG_ALL_PPC, you're broken
@ 2000-10-16 23:08 Mark A. Greer
  2000-10-17  4:57 ` Dan Malek
  0 siblings, 1 reply; 4+ messages in thread
From: Mark A. Greer @ 2000-10-16 23:08 UTC (permalink / raw)
  To: linuxppc-dev


I've haven't been paying attention to this but it seems as though any
platform that doesn't fit in CONFIG_ALL_PPC doesn't build anymore.

I've intentionally stayed back from the bleeding edge so I don't run
into these types of problems.  However, now I'm ready to bring some
things up to the latest version and release to the world.  Problem is,
some of the stuff I depend on is  broken and has been for some time as I
understand it.

I guess I was hoping that enough people were tracking the latest changes
that things wouldn't stay broken for too long.  Yes, I know, I am lazy
and should contribute more.  Anyway, I think we all need to pay closer
attention to the changes that are being put in, including me.

What's the best way to get the other platforms working again?

Mark

--
Mark A. Greer (mgreer@mvista.com; 480-517-0287)
MontaVista Software, Inc.
2141 E. Broadway Road, Suite 108
Tempe, AZ  85282


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

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

* Re: If not CONFIG_ALL_PPC, you're broken
  2000-10-16 23:08 If not CONFIG_ALL_PPC, you're broken Mark A. Greer
@ 2000-10-17  4:57 ` Dan Malek
  2000-10-17 11:17   ` Matt Porter
  0 siblings, 1 reply; 4+ messages in thread
From: Dan Malek @ 2000-10-17  4:57 UTC (permalink / raw)
  To: mgreer; +Cc: linuxppc-dev


"Mark A. Greer" wrote:
>
> I've haven't been paying attention to this but it seems as though any
> platform that doesn't fit in CONFIG_ALL_PPC doesn't build anymore.

We don't even need CONFIG_ALL_PPC anymore.  We can just rename
arch/ppc to arch/powermac_workstation, as that is all that works
right now.  It sucks to have to build a 2 Mbyte kernel with USB,
keyboard, mouse, and tons of other stuff just to get a kernel that
will link when all you want is a serial and Ethernet port......and
then hack init functions that you didn't want anyway so they don't
try to touch hardware you don't have.

> ........  Yes, I know, I am lazy
> and should contribute more.  Anyway, I think we all need to pay closer
> attention to the changes that are being put in, including me.

Well, putting in the time is only part of it.  I am trying to support
about a dozen different PowerPC boards, none of which look like a
PowerMac.  By the time I test a kernel across all of these platforms
and check in a few changes I am completely out of date and have to
start over.

> What's the best way to get the other platforms working again?

Fortunately, it looks like some people (Matt, Troy, others) have pushed
a few PReP and CHRP updates, and Paul has a CHRP workstation for testing.
Maybe when the PMac stuff slows down, we can catch up.  Unfortunately,
we still have to build huge kernels with lots of stuff we don't need,
and I don't know how to fix that (well, I do but I don't think it
is likely to happen :-).


	-- Dan

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

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

* Re: If not CONFIG_ALL_PPC, you're broken
  2000-10-17  4:57 ` Dan Malek
@ 2000-10-17 11:17   ` Matt Porter
  2000-10-17 15:28     ` Dan Malek
  0 siblings, 1 reply; 4+ messages in thread
From: Matt Porter @ 2000-10-17 11:17 UTC (permalink / raw)
  To: Dan Malek; +Cc: mgreer, linuxppc-dev


On Tue, Oct 17, 2000 at 12:57:39AM -0400, Dan Malek wrote:
>
> "Mark A. Greer" wrote:
> >
> > I've haven't been paying attention to this but it seems as though any
> > platform that doesn't fit in CONFIG_ALL_PPC doesn't build anymore.
>
> We don't even need CONFIG_ALL_PPC anymore.  We can just rename
> arch/ppc to arch/powermac_workstation, as that is all that works
> right now.  It sucks to have to build a 2 Mbyte kernel with USB,
> keyboard, mouse, and tons of other stuff just to get a kernel that
> will link when all you want is a serial and Ethernet port......and
> then hack init functions that you didn't want anyway so they don't
> try to touch hardware you don't have.
>
> > ........  Yes, I know, I am lazy
> > and should contribute more.  Anyway, I think we all need to pay closer
> > attention to the changes that are being put in, including me.
>
> Well, putting in the time is only part of it.  I am trying to support
> about a dozen different PowerPC boards, none of which look like a
> PowerMac.  By the time I test a kernel across all of these platforms
> and check in a few changes I am completely out of date and have to
> start over.
>
> > What's the best way to get the other platforms working again?
>
> Fortunately, it looks like some people (Matt, Troy, others) have pushed
> a few PReP and CHRP updates, and Paul has a CHRP workstation for testing.
> Maybe when the PMac stuff slows down, we can catch up.  Unfortunately,
> we still have to build huge kernels with lots of stuff we don't need,
> and I don't know how to fix that (well, I do but I don't think it
> is likely to happen :-).

My solution for creating a slim embedded PPC kernel in 2.2 was to
stub out all the calls to Mac/CHRP specific routines that were made
in head.S and setup.c.  It doesn't require major surgery to the existing
code and let me generate a kernel with only the arch/ppc/kernel/ objects
that were required for the port.

I was planning on taking this same approach when I get around to
merging the K2 port into the real world.  I think it's a clean
approach if you don't mind stubbed functions.  I'm sure somebody
won't like it though...

--
Matt Porter
MontaVista Software, Inc.
mporter@mvista.com

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

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

* Re: If not CONFIG_ALL_PPC, you're broken
  2000-10-17 11:17   ` Matt Porter
@ 2000-10-17 15:28     ` Dan Malek
  0 siblings, 0 replies; 4+ messages in thread
From: Dan Malek @ 2000-10-17 15:28 UTC (permalink / raw)
  To: Matt Porter; +Cc: mgreer, linuxppc-dev


Matt Porter wrote:

> My solution for creating a slim embedded PPC kernel in 2.2 was to
> stub out all the calls to Mac/CHRP specific routines that were made
> in head.S and setup.c.

I think that is fine, but we have lost the configuration options that
indicate this should happen.  I first want to get a set of options
that makes sense, rework the code so we can selectively build the
kernels again (with CONFIG_ALL_PPC a sum of the options), and be able
to select processor core/processor type separately (i.e. I need to
select CONFIG_6xx and CONFIG_8260 at the same time...there are more
of these coming from both Mot and IBM).


	-- Dan

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

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

end of thread, other threads:[~2000-10-17 15:28 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-10-16 23:08 If not CONFIG_ALL_PPC, you're broken Mark A. Greer
2000-10-17  4:57 ` Dan Malek
2000-10-17 11:17   ` Matt Porter
2000-10-17 15:28     ` 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).