devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Henrik Nordström" <henrik@henriknordstrom.net>
To: Linux on small ARM machines <arm-netbook@lists.phcomp.co.uk>
Cc: devicetree-discuss <devicetree-discuss@ozlabs.org>,
	Stephen Warren <swarren@wwwdotorg.org>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	debian-arm@lists.debian.org,
	"jonsmirl@gmail.com" <jonsmirl@gmail.com>,
	ARM Linux Mailing List <linux-arm-kernel@lists.infradead.org>,
	debian-kernel@lists.debian.org
Subject: Re: getting allwinner SoC support upstream (was Re: Uploading linux (3.9.4-1))
Date: Wed, 05 Jun 2013 23:59:34 +0200	[thread overview]
Message-ID: <1370469574.18839.33.camel@localhost> (raw)
In-Reply-To: <CAPweEDz=hFxXW3XF9CSNZpEFSjayb5an1E8Xze1_uQcCZONVxg@mail.gmail.com>

ons 2013-06-05 klockan 22:24 +0100 skrev Luke Kenneth Casson Leighton:

>  And Then Some, stephen.  there are two versions of u-boot being used:
> one is the community-assembled [GPL-compliant] one, and the other
> includes a [as-of-a-few-days-ago-but-no-longer, yay!]
> formerly-GPL-violating one from allwinner.
> 
>  the community-based one *doesn't* have fex integration (i don't
> think, but henrik will know for sure), but the allwinner one
> definitely does.

Correct.

>  .... and then there's the boot0 and boot1 loaders, these *do* have
> fex integration: they're absolutely tiny and they're designed to fit
> into the 1st level cache.  the job of these bootloaders is to set up
> the DDR3 RAM timings (so that you can access DRAM!!) and to then
> decide whether to load from NAND, SD/MMC etc. and many other things.

no, these are not tiny. boot0 is 24KB to fit the initial embedded SRAM
(not cache), but boot1 is on pair with u-boot in size and runs from
DRAM.
 
boot0 do NOT read the script.bin at all. It can't, there isn't space
fore it. There is tools in the build process that reads the script.bin
and adds some information to a header of boot0, but it's irrelevant to
the device tree question. Exactly the same can be done from a device
tree, or from a fex, it does not matter.

even most of boot1 is not using script.bin. The important parameters are
all recorded in a heaeder of boot1 when the image is composed using the
Allwinner pack tools. Currently based on those tools reading script.bin
to prepare the boot1 part of the image.

>  these boot0 and boot1 loaders are themselves configureable so that
> you can specify, through script.fex, what GPIO is to be the "reset
> key" and so on.  that's a much simplified story btw.

No. That info is in the boot0 and boot1 file headers, not script.bin. 

>  so the point is: if anyone wishes me to propose to allwinner that
> they convert over to devicetree, or any other proposal which involves
> significant low-level changes to their working practices that could
> potentially have a massive knock-on effect onto their
> multi-million-dollar clients, it had better be a damn good story.

Calm down. It isn't really a significant difference to them outside of
the kernel. They do not need to change any of their configuraiton
methods, only a small toolchain change in how the resultig images are
built to have a corresponding device tree built.

But it is a fair bit of one-time changes kernel side. And some
scratching to figure out how to use/improve/ignore the stuff being
mainlined.

Regards
Henrik

  parent reply	other threads:[~2013-06-05 21:59 UTC|newest]

Thread overview: 109+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CAPweEDx3mAy40BZrzrKPRbvg7vKMj7KevDQ3m_v4p6Yo50eSGg@mail.gmail.com>
     [not found] ` <CAPweEDx3mAy40BZrzrKPRbvg7vKMj7KevDQ3m_v4p6Yo50eSGg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-06-05 20:46   ` getting allwinner SoC support upstream (was Re: Uploading linux (3.9.4-1)) jonsmirl-Re5JQEeQqe8AvxtiuMwx3w
2013-06-05 21:00     ` Stephen Warren
2013-06-05 21:16       ` Russell King - ARM Linux
2013-06-05 22:07         ` Luke Kenneth Casson Leighton
2013-06-06  8:16           ` Jean-Christophe PLAGNIOL-VILLARD
2013-06-05 22:22         ` Tomasz Figa
2013-06-05 21:24       ` Luke Kenneth Casson Leighton
2013-06-05 21:38         ` Lennart Sorensen
2013-06-05 22:10           ` Russell King - ARM Linux
2013-06-05 21:59         ` Henrik Nordström [this message]
2013-06-05 22:47           ` [Arm-netbook] " luke.leighton
     [not found]             ` <CAPweEDxMpeJc-w=Yd7d2OT=UisRBp2rxf-MPMDUCOG3EyJz1GQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-06-05 23:07               ` jonsmirl-Re5JQEeQqe8AvxtiuMwx3w
2013-06-05 23:26                 ` luke.leighton
2013-06-05 23:28                   ` [Arm-netbook] " jonsmirl
2013-06-05 23:40                   ` Henrik Nordström
2013-06-05 23:54                     ` luke.leighton
2013-06-06  0:01                       ` [Arm-netbook] " Tomasz Figa
2013-06-06  9:27                         ` Thomas Petazzoni
2013-06-06 10:02                           ` Tomasz Figa
2013-06-07 18:26                           ` luke.leighton
2013-06-07 18:59                             ` Thomas Petazzoni
2013-06-07 19:14                               ` luke.leighton
2013-06-07 21:29                               ` luke.leighton
2013-06-08  8:28                                 ` Tomasz Figa
2013-06-08  9:08                                   ` luke.leighton
2013-06-09 22:09                                     ` luke.leighton
2013-06-09 22:31                                       ` Russell King - ARM Linux
2013-06-09 23:30                                         ` luke.leighton
2013-06-07 22:08                             ` Maxime Ripard
2013-06-07 23:07                               ` luke.leighton
     [not found]                                 ` <CAPweEDwFHY_AbBxjspm7BvfdFHsxL5H594cFN4ZVC6QFpu4QGA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-06-07 23:09                                   ` Dennis Lan (dlan)
2013-06-07 23:17                                     ` luke.leighton
2013-06-06  9:49                         ` Mark Brown
2013-06-06 12:24                         ` luke.leighton
     [not found]                           ` <CAPweEDzYLDzh_-OWU61dtVhajZ40QpQgZKHFYDsh3FgF=r9_ag-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-06-06 12:43                             ` [Arm-netbook] " Tomasz Figa
2013-06-06 12:49                               ` luke.leighton
2013-06-06 13:02                                 ` [Arm-netbook] " Tomasz Figa
2013-06-07  7:52                                   ` luke.leighton
2013-06-07  8:40                                     ` Vladimir Pantelic
     [not found]                                       ` <51B19C85.9090407-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2013-06-07  9:08                                         ` [Arm-netbook] " Russell King - ARM Linux
     [not found]                                     ` <CAPweEDx_1fvAv9sROtPreoyyj_yDAuYb040fM2zPc+tf22d=YA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-06-07  8:57                                       ` Tomasz Figa
2013-06-07 10:32                                         ` Bjørn Mork
2013-06-07 19:02                                         ` luke.leighton
2013-06-07 19:16                                           ` Tomasz Figa
     [not found]                                           ` <CAPweEDwmgr2JbH+txDDjR_gDA2R2C1v=AuVCUVTs7RriMhZNiA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-06-07 19:30                                             ` Russell King - ARM Linux
2013-06-07 21:34                                               ` luke.leighton
2013-06-07 14:30                                     ` Lennart Sorensen
2013-06-06 13:10                           ` Russell King - ARM Linux
2013-06-07  8:02                             ` luke.leighton
     [not found]                               ` <CAPweEDyYt+pN+UaFuqWL5RrHpyuq_4So-tArmx3dr=0wLS+hwQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-06-07  8:49                                 ` Russell King - ARM Linux
2013-06-07 10:26                               ` Henrik Nordström
2013-06-07 17:30                               ` Stephen Warren
2013-06-06 14:02                           ` Theodore Ts'o
     [not found]                             ` <20130606140250.GA4839-AKGzg7BKzIDYtjvyW6yDsg@public.gmane.org>
2013-06-06 15:05                               ` Olof Johansson
2013-06-06  0:19                       ` Henrik Nordström
2013-06-06 12:22                         ` luke.leighton
2013-06-06 12:51                           ` Vladimir Pantelic
2013-06-07  7:40                             ` [Arm-netbook] " luke.leighton
2013-06-07  7:48                               ` Vladimir Pantelic
2013-06-07  8:06                                 ` luke.leighton
2013-06-07  8:18                                   ` [Arm-netbook] " Alexandre Belloni
2013-06-07 18:15                                     ` luke.leighton
2013-06-07 14:49                                   ` joem
2013-06-07 18:26                                     ` [Arm-netbook] " Russell King - ARM Linux
2013-06-07 19:18                                       ` Luke Kenneth Casson Leighton
2013-06-07 19:31                                         ` Ben Hutchings
     [not found]                                         ` <CAPweEDxXnRWYK4GhSkN-PzM1hLOZPiD1MUne1Q-4FT6PJRJUtw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-06-07 19:35                                           ` Russell King - ARM Linux
2013-06-07 21:41                                             ` Luke Kenneth Casson Leighton
2013-06-07 20:00                                       ` joem
2013-06-07  9:14                                 ` [Arm-netbook] " Russell King - ARM Linux
     [not found]                           ` <CAPweEDyPffcN9cNJ10ZHt+AZJHTRdU0LMfCGM_756uAbf+NEBQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-06-06 13:15                             ` Russell King - ARM Linux
2013-06-06 18:51                           ` Henrik Nordström
2013-06-06 15:13                       ` [Arm-netbook] " jonsmirl
2013-06-06 16:00                         ` Olof Johansson
2013-06-06 17:28                           ` Maxime Ripard
2013-06-06 18:55                             ` Lennart Sorensen
2013-06-06 20:22                             ` Arnd Bergmann
2013-06-07 18:56                               ` luke.leighton
2013-06-07 18:50                             ` luke.leighton
2013-06-07 18:57                             ` Wookey
2013-06-07 19:08                               ` luke.leighton
2013-06-07 21:13                                 ` luke.leighton
2013-06-07  9:17                           ` Barry Song
2013-06-07 18:45                           ` luke.leighton
2013-06-07 18:54                             ` Olof Johansson
2013-06-07 19:04                               ` luke.leighton
     [not found]                                 ` <CAPweEDzeyJh+DKX=8tzrT9AnG9NqLp8nWkWFmB2Wy+JnBkqEdg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-06-07 19:31                                   ` Russell King - ARM Linux
     [not found]                   ` <CAPweEDw1BabE0cmT5fxZ3Z9p9EH508M3Nzcqk2VcO0oz-qYsvg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-06-05 23:40                     ` jonsmirl-Re5JQEeQqe8AvxtiuMwx3w
2013-06-05 23:52                       ` luke.leighton
2013-06-06  0:15                         ` Henrik Nordström
2013-06-06 12:19                           ` [Arm-netbook] " luke.leighton
2013-06-06 18:44                             ` Henrik Nordström
2013-06-05 22:54           ` Stephen Warren
2013-06-05 23:15             ` Henrik Nordström
2013-06-06  1:56         ` Stefan Monnier
2013-06-05 21:15     ` Luke Kenneth Casson Leighton
2013-06-05 21:47       ` Henrik Nordström
2013-06-05 22:20         ` [Arm-netbook] " luke.leighton
2013-06-06  0:23           ` Henrik Nordström
2013-06-05 21:52       ` Tomasz Figa
2013-06-05 22:38         ` Luke Kenneth Casson Leighton
2013-06-05 23:27           ` Tomasz Figa
2013-06-05 23:46             ` Luke Kenneth Casson Leighton
2013-06-06 15:30           ` Lennart Sorensen
2013-06-05 20:48 ` jonsmirl
2013-06-05 22:11   ` Tomasz Figa
2013-06-05 22:56     ` Luke Kenneth Casson Leighton
     [not found]       ` <CAPweEDwyX4=Sme9kyDU64k9h3SPUHuErD8gEqfdYLGwBOocZDQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-06-06  0:35         ` Greg KH
     [not found]   ` <CAKON4OyyRF4Z46RyJFDWUwo4L52Z8bgSH0CzDr2gDerw4iDwcw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-06-06  9:29     ` Thomas Petazzoni

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=1370469574.18839.33.camel@localhost \
    --to=henrik@henriknordstrom.net \
    --cc=arm-netbook@lists.phcomp.co.uk \
    --cc=debian-arm@lists.debian.org \
    --cc=debian-kernel@lists.debian.org \
    --cc=devicetree-discuss@ozlabs.org \
    --cc=jonsmirl@gmail.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=swarren@wwwdotorg.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).