From: Jonas Bonn <jonas@southpole.se>
To: Olof Kindgren <olof.kindgren@gmail.com>
Cc: Kevin Mehall <contact@kevinmehall.net>,
"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
linux <linux@lists.openrisc.net>
Subject: Re: [PATCH] openrisc: Add DTS and defconfig for DE0-Nano
Date: Fri, 15 Nov 2013 13:12:49 +0100 [thread overview]
Message-ID: <52860FC1.6050500@southpole.se> (raw)
In-Reply-To: <CAKaYPCNqzYcSyTUjjb9H3naErjzqjLDBthE2xfQ98j-YOzQWwg@mail.gmail.com>
On 11/15/2013 12:39 PM, Olof Kindgren wrote:
> 2013/11/15 Jonas Bonn <jonas@southpole.se>
>
>> On 11/15/2013 11:22 AM, Geert Uytterhoeven wrote:
>>
>>> This should probably be "altera,de0_nano". We also need to put a version
>>>>
>>>
>>> "terasic,de0_nano"? The board says "Designed and manufactured by Terasic".
>>> Hmm, the sticker on the box says "Altera DE0-Nano".
>>>
>>
>> Good question...
>>
>>
>>
> terasic makes more sense than Altera. Altera just provides one of the
> components on the board
OK, terasic is probably better then.
>
>
>>
>>>> Version number needed. OpenCores wanted "projectname-rtlsvn###" where
>>>> ###
>>>> is the SVN commit number of the RTL directory in the project's source
>>>> repository.
>>>>
>>>
>>> That's gonna need some information diving, as Stefan's orpsoc git
>>> repositories
>>> only contains references to orpsocv2 git-svn-ids, not the svn ids of
>>> the original
>>> component repositories.
>>>
>>
>> Stefan? Where's the "official" home of these cores nowadays? Have they
>> been modified since they were copied from OpenCores into orpsocv2?
>>
>>
> Most cores are fetched directly from OpenCores SVN. Out of these, some are
> patched on the fly by ORPSoC before they are being built. Most of the new
> cores are only available on github
The version number is important in order to ensure _driver_
compatibility. As long as the patches don't make changes that requires
changes to the Linux driver then it's OK to just put the SVN version
number on them. If incompatible changes are being made, then we really
need to find a "home" for these cores so that we can manage their
version numbers in some way.
>
> More generally, can Linux use out-of-tree DTS files in an easy way? It's
> handy to have them in the kernel, but the best fit might actually be to put
> them in the corresponding orpsocv3 system directory. That would also make
> it easier to have separate device trees for differently configured FPGAs
> (they are reprogrammable after all).
Yes, the DTS files don't really belong in the kernel tree at all. They
belong "near the hardware". For these FPGA projects it definitely makes
sense to keep (or automatically generate) the DTS files in the RTL build
system, i.e. orpsoc.
We generally build the DTB into the kernel image itself, but that's not
really necessary. You just need to get the DTB into memory and pass the
kernel a pointer to it. If you can find some way to build the DTB into
the FPGA image (block RAM?) then you've got a self-describing HW image:
have the OpenRISC core initialize itself with r3 containing the
address of the DTB and jump to the kernel entry point (reset vector) and
everything should just work. If you put device tree logic into newlib
as well then you can use this HW description for (other) bare metal
apps, as well.
The device tree compiler is in the Linux kernel tree... but it's usable
outside of the Linux build system, as well. You'll find the binary in
script/dtc/dtc in the kernel tree... run it with --help to get an idea
of how it's used. It really isn't supposed to have anything to do with
Linux at all; it's a generic tool for a generic HW description.
/Jonas
>
>
> //Olof
>
next prev parent reply other threads:[~2013-11-15 12:12 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-09 20:37 [PATCH] openrisc: Add DTS and defconfig for DE0-Nano Geert Uytterhoeven
2013-11-10 5:51 ` Stefan Kristiansson
2013-11-10 8:18 ` Geert Uytterhoeven
2013-11-15 9:52 ` Jonas Bonn
2013-11-15 10:04 ` Andrew Back
2013-11-15 10:10 ` Geert Uytterhoeven
2013-11-15 10:19 ` Andrew Back
2013-11-15 9:50 ` Jonas Bonn
2013-11-15 10:22 ` Geert Uytterhoeven
2013-11-15 10:47 ` Geert Uytterhoeven
2013-11-15 10:57 ` Jonas Bonn
2013-11-15 11:39 ` Olof Kindgren
2013-11-15 11:57 ` Geert Uytterhoeven
2013-11-15 12:12 ` Jonas Bonn [this message]
[not found] ` <52860FC1.6050500-A9uVI2HLR7kOP4wsBPIw7w@public.gmane.org>
2013-11-15 15:16 ` [ORLinux] " Mark Rutland
[not found] ` <5285EE5A.1070202-A9uVI2HLR7kOP4wsBPIw7w@public.gmane.org>
2013-11-15 15:07 ` Mark Rutland
2013-11-16 8:45 ` Stefan Kristiansson
2013-11-16 11:01 ` Olof Kindgren
2013-11-17 8:44 ` [ORLinux] " Jonas Bonn
2013-11-17 13:46 ` Stefan Kristiansson
[not found] ` <1384029451-16555-1-git-send-email-geert-Td1EMuHUCqxL1ZNQvxDV9g@public.gmane.org>
2013-11-20 20:45 ` Rob Herring
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=52860FC1.6050500@southpole.se \
--to=jonas@southpole.se \
--cc=contact@kevinmehall.net \
--cc=devicetree@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@lists.openrisc.net \
--cc=olof.kindgren@gmail.com \
/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).