From: Jakob Viketoft <jakob.viketoft@bitsim.se>
To: acmay@acmay.homeip.net
Cc: Linux PPC Embedded list <linuxppc-embedded@ozlabs.org>
Subject: Re: Adding machine types to the kernel tree...
Date: Mon, 07 Mar 2005 11:07:58 +0100 [thread overview]
Message-ID: <422C27FE.6000709@bitsim.se> (raw)
In-Reply-To: <1109875809.25252.24.camel@mud>
Thanks for the comments!
Andrew May wrote:
> I think a huge first step would be to banish xparameters.h from all the
> kernel code.
> Our HW guys just seem to do the strangest things without checking.
> So I have 2 spins of a board with 2 Virtex-II pro's each.
> The 2 spins have a small refrence clock change and the 2 CPU's have
> different IRQ mappings.
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?
Matt (Porter), I've seen that you've "ported" this to the 2.6 kernel,
what do you say?
> There is no way I wanted to build 4 kernels to handle these.
> I don't have the code with me, but the basic thing I did was fixup
> the compiled in arrays like rs_table in the board_io_mapping.
>
> So the quick way to start tracking things down may be to just
> replace all the constants in xparmaters.h with function calls
> that got the info from the boot loader if possible.
> You will get plenty of compile errors for the arrays, but then
> just this type of code needs to be fixed up to setup the arrary
> at run time rather than just get the pointer to it at run time.
The question is, do you want to have a bootloader (as U-boot) on a small
embedded system? In the FPGA case, you might need something that puts
the bitstream in the right place, but I'm not quite sure it would
constitute a bootloader. Maybe just having a static OCP list at a
certain location in flash and let the little bitstream prog send the
pointer to it as a kernel parameter at startup?
Reactions appreciated!
Cheers!
/Jakob
next prev parent reply other threads:[~2005-03-07 10:03 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 [this message]
2005-03-07 12:27 ` Matt Porter
2005-03-08 18:01 ` Debian User
2005-03-14 9:43 ` Jakob Viketoft
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=422C27FE.6000709@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).