All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tom Rini <trini@konsulko.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCHv4 3/3] ARM64: poplar: hi3798cv200: u-boot support for Poplar 96Boards
Date: Mon, 29 May 2017 08:26:58 -0400	[thread overview]
Message-ID: <20170529122658.GK10782@bill-the-cat> (raw)
In-Reply-To: <f3fb6e64-52c2-ad3f-72ef-d25834d77a84@linaro.org>

On Mon, May 29, 2017 at 02:18:48PM +0200, Jorge Ramirez wrote:
> On 05/29/2017 01:57 PM, Tom Rini wrote:
> >>The issue is actually with serial-uclass.c when the kernel dts
> >>contains a chosen node that contains the stdout-path.
> >>     chosen {
> >>         stdout-path = "serial0:115200n8";
> >>     };
> >>
> >>Disabling uart0 (ie serial0) in u-boot.dtsi loses the console
> >>instead of probing the pl01x for the platform_data.
> >>
> >>is there a pre-defined way to work around this?
> >Provide a new stdout-path in the -u-boot.dtsi too?  Any changes you
> 
> yes I obviously tried that but are you sure that that is allowed
> with "chosen" it being kind of a special type of node?
> the compiler just cant find the label when added to u-boot.dtsi
> hence why I was asking (sorry, I should have raised it upfront)
> ie:
> 
> /*
>  * U-Boot addition to:
>  *  1) use platform data for the console
>  *  2) provide support for the generic-ehci USB driver currently not
> available
>  *     in the linux kernel (8/May/2017).
>  *
>  * (C) Copyright 2017 Jorge Ramirez-Ortiz <jorge.ramirez-ortiz@linaro.org>
>  *
>  * SPDX-License-Identifier:     GPL-2.0+
>  */
> 
> &soc {
>     usb2: ehci at 9890000 {
>         compatible = "generic-ehci";
>         reg = <0x9890000 0x100>;
>         status = "okay";
>     };
> };
> 
> &uart0 {
>     status = "disabled";
> };
> 
> &chosen {
>     stdout-path = &uart0;
> 
> };
> 
> 
> leads to
> 
>   LD      u-boot
>   OBJCOPY u-boot.srec
>   OBJCOPY u-boot-nodtb.bin
>   SYM     u-boot.sym
> start=$(aarch64-linux-gnu-nm u-boot | grep __rel_dyn_start | cut -f
> 1 -d ' '); end=$(aarch64-linux-gnu-nm u-boot | grep __rel_dyn_end |
> cut -f 1 -d ' '); tools/relocate-rela u-boot-nodtb.bin 0x37000000
> $start $end
>   DTC     arch/arm/dts/hi3798cv200-poplar.dtb
> Error: ./arch/arm/dts/hi3798cv200-u-boot.dtsi:27.2-3 label or path,
> 'chosen', not found
> FATAL ERROR: Syntax error parsing input tree
> scripts/Makefile.lib:322: recipe for target
> 'arch/arm/dts/hi3798cv200-poplar.dtb' failed
> make[2]: *** [arch/arm/dts/hi3798cv200-poplar.dtb] Error 1
> dts/Makefile:32: recipe for target
> 'arch/arm/dts/hi3798cv200-poplar.dtb' failed
> make[1]: *** [arch/arm/dts/hi3798cv200-poplar.dtb] Error 2
> Makefile:865: recipe for target 'dts/dt.dtb' failed
> make: *** [dts/dt.dtb] Error 2
> 

Well, lets see.  Pantelis has been telling me that what we're doing here
is going to lead to problems like what you see here in some cases.  Any
suggestions?

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170529/4a795671/attachment.sig>

  parent reply	other threads:[~2017-05-29 12:26 UTC|newest]

Thread overview: 53+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-08 16:36 [U-Boot] Patchset v4 Poplar 96Boards EE Jorge Ramirez-Ortiz
2017-05-08 16:36 ` [U-Boot] [PATCHv4 1/3] ARM64: dts: hi3798cv200-poplar: add device tree bindings Jorge Ramirez-Ortiz
2017-05-08 16:36 ` [U-Boot] [PATCHv4 2/3] driver: mmc: update debug info Jorge Ramirez-Ortiz
2017-05-08 16:36 ` [U-Boot] [PATCHv4 3/3] ARM64: poplar: hi3798cv200: u-boot support for Poplar 96Boards Jorge Ramirez-Ortiz
2017-05-08 17:29   ` Tom Rini
2017-05-08 18:36     ` Jorge Ramirez
2017-05-08 21:37       ` Tom Rini
2017-05-09 15:27     ` Jorge Ramirez
2017-05-10  2:30       ` Tom Rini
2017-05-10  9:33         ` Jorge Ramirez
2017-05-10 14:49           ` Tom Rini
2017-05-10 16:33             ` Rob Herring
2017-05-10 17:45               ` Tom Rini
2017-05-10 18:09                 ` Simon Glass
2017-05-10 19:09                 ` Rob Herring
2017-05-10 19:42                   ` Simon Glass
2017-05-10 21:19                     ` Jorge Ramirez
2017-05-10 21:31                       ` Simon Glass
2017-05-11 11:45                         ` Jorge Ramirez
2017-05-11 12:35                     ` Tom Rini
2017-05-11 14:34                       ` Jorge Ramirez
2017-05-11 22:32                         ` Tom Rini
2017-05-12  8:16                           ` Jorge Ramirez
2017-05-12 12:35                             ` Tom Rini
2017-05-15 21:38                               ` Rob Herring
2017-05-17 13:33                                 ` Tom Rini
2017-05-17 14:38                                   ` Rob Herring
2017-05-17 22:13                                     ` Tom Rini
2017-05-17 22:06                         ` Tom Rini
2017-05-25 18:38                           ` Jorge Ramirez
2017-05-25 20:31                             ` Tom Rini
2017-05-25 20:55                               ` Jorge Ramirez
2017-05-25 20:58                                 ` Jorge Ramirez
2017-05-25 21:12                                   ` Tom Rini
2017-05-25 21:16                                     ` Jorge Ramirez
2017-05-25 22:08                                       ` Tom Rini
2017-05-26  7:28                                         ` Jorge Ramirez
2017-05-26  7:46                                           ` Jorge Ramirez
2017-05-26 12:46                                           ` Tom Rini
2017-05-26 12:58                                             ` Jorge Ramirez Ortiz
2017-05-26 16:09                                               ` Tom Rini
2017-05-29  9:00                                                 ` Jorge Ramirez
2017-05-29 11:57                                                   ` Tom Rini
2017-05-29 12:18                                                     ` Jorge Ramirez
2017-05-29 12:23                                                       ` Jorge Ramirez
2017-05-29 12:26                                                       ` Tom Rini [this message]
2017-05-29 12:28                                                         ` Jorge Ramirez
2017-05-25 21:21                                     ` Simon Glass
2017-05-25 22:09                                       ` Tom Rini
2017-05-10 17:49               ` Jorge Ramirez
2017-05-10 18:21                 ` Rob Herring
2017-05-10 18:37                   ` Jorge Ramirez
2017-05-25 16:08   ` Andreas Färber

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=20170529122658.GK10782@bill-the-cat \
    --to=trini@konsulko.com \
    --cc=u-boot@lists.denx.de \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.