From: Jakob Viketoft <jakob.viketoft@bitsim.se>
To: Debian User <acmay@acmay.homeip.net>
Cc: Linux PPC Embedded list <linuxppc-embedded@ozlabs.org>
Subject: Re: Adding machine types to the kernel tree...
Date: Mon, 14 Mar 2005 10:43:09 +0100 [thread overview]
Message-ID: <42355CAD.3040603@bitsim.se> (raw)
In-Reply-To: <20050308180149.GA4293@acmay.homeip.net>
Sorry for the delay in answer, but I've been off sick most of last week.
Anyway, I've contacted Jon Masters off the list about the OF device tree
approach and hopefully there will be something coming of this soon enough.
Cheers!
/Jakob
Debian User wrote:
> On Mon, Mar 07, 2005 at 05:27:32AM -0700, Matt Porter wrote:
>
>>On Mon, Mar 07, 2005 at 11:07:58AM +0100, Jakob Viketoft wrote:
>>
>>>Thanks for the comments!
>>>
>>>Andrew May wrote:
>>>
>>>>I think a huge first step would be to banish xparameters.h from all the
>>>>kernel code.
>
> ....
>
>>>I understand that there is numerous resentment against having this file
>>>in the kernel and I've been thinking of a solution without it. One such
>>>path would be serving the kernel with a OCP list of the devices used,
>>>but I'm unsure about the current status of OCP. Is this The Right Way to
>>>do it, or are OCP likely to be abandoned further along the 2.6 road?
>
>
> Not so much resentment, as a realization that xparamters.h is where all
> the work is going to flow from.
>
>
>>>Matt (Porter), I've seen that you've "ported" this to the 2.6 kernel,
>>>what do you say?
>>
>>Don't tie anything permanently to OCP. :) Eventually, 4xx will convert
>>to platform devices like other similar SoC type subarches in ppc32 have
>>already done. The only reason it hasn't been done yet is that there
>>are some other higher priority things on my plate at the moment.
>
>
> I am still working with an old 2_4_devel kernel myself.
> The something better is comming has always held me back from working
> on things as well.
>
> Even now OCP is being dropped for platform devices.
> And birecs is being dropped for OF.
> The kernel I am working with is a step behind both of those.
>
>
>>However, it seems you are talking about passing information to
>>the kernel from some bootrom or full featured firmware. That is
>>a separate issue from how information is passed from the arch-code
>>into drivers (this is what OCP and platform devices accomplish).
>>For now, you could define a birec type for xparameters and
>>standardize around passing the info in that. In the future,
>>birecs should be replaced by the "flattened OF device tree" method
>>that has been discussed here a bit (I know Jon Masters is lurking
>>around here, maybe with some code).
>
>
> A simple fucntion that would take the xparameters.h and create the
> birecs/OF data would be a nice way to go.
> I would think the func could run on the host to generate a binary
> blob that could be attached to the kernel or dropped in flash, for
> simple bootloaders.
> For a better bootloader it could run the func itself on the target
> and put the data in ram, and then fixup the data if needed.
>
>
>>Even the smallest bootloader rom could put the xparameters.h info in
>>a location and point to it using the standard birec method when
>>transferring control to the kernel.
>
>
> I am a U-boot person myself, but I think there will be a higher number
> of users that just stick with the standard loader providied by the vendor
> and do the wrapper thing in the kernel.
>
>
>>I belive this would give Andrew the kind of flexibility he would like.
>
>
> Yes, I think it would.
next prev parent reply other threads:[~2005-03-14 10:32 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-03 11:46 Adding machine types to the kernel tree Jakob Viketoft
2005-03-03 18:50 ` Andrew May
2005-03-07 10:07 ` Jakob Viketoft
2005-03-07 12:27 ` Matt Porter
2005-03-08 18:01 ` Debian User
2005-03-14 9:43 ` Jakob Viketoft [this message]
2005-03-07 17:38 ` Kumar Gala
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=42355CAD.3040603@bitsim.se \
--to=jakob.viketoft@bitsim.se \
--cc=acmay@acmay.homeip.net \
--cc=linuxppc-embedded@ozlabs.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).