All of lore.kernel.org
 help / color / mirror / Atom feed
From: Priyanka Jain <priyanka.jain@nxp.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] board/ls2080ardb: Update board env based on SoC
Date: Tue, 29 Aug 2017 08:54:13 +0000	[thread overview]
Message-ID: <DB6PR0402MB27123A447D083D5A3613846CE69F0@DB6PR0402MB2712.eurprd04.prod.outlook.com> (raw)
In-Reply-To: <VI1PR04MB2078FF3C7B7C660432960DEF9A9B0@VI1PR04MB2078.eurprd04.prod.outlook.com>



> -----Original Message-----
> From: York Sun
> Sent: Friday, August 25, 2017 8:53 PM
> To: Priyanka Jain <priyanka.jain@nxp.com>; u-boot at lists.denx.de
> Subject: Re: [PATCH] board/ls2080ardb: Update board env based on SoC
> 
> On 08/24/2017 09:52 PM, Priyanka Jain wrote:
> >
> >
> >> -----Original Message-----
> >> From: York Sun
> >> Sent: Thursday, August 24, 2017 8:26 PM
> >> To: Priyanka Jain <priyanka.jain@nxp.com>; u-boot at lists.denx.de
> >> Subject: Re: [PATCH] board/ls2080ardb: Update board env based on SoC
> >>
> >> On 08/24/2017 12:07 AM, Priyanka Jain wrote:
> >>> As per current implemenetation, default value of board env is based
> >>> on board filename i.e ls2080ardb.
> >>>
> >>> With distro support changes, this env is used to decide upon kernel
> >>> dtb which is different for other SoCs (ls2088a, ls2081a) combination
> >>> supported with this board.
> >>>
> >>> Add support to modify board env based on SoC type
> >>
> >> Please point me to where environmental variable "board" is used for distro
> boot.
> >> I only see it for PXE.
> > Please refer to file end part in "ENV_SETTINGS" section in file
> > "include/configs/ls2080ardb.h", Linux boot commands like "nor_bootcmd"
> uses command "bootm $loadr_addr#$board"
> > Depending upon board value, kernel dtb is chosen.
> 
> I see. It is not a variable used by U-Boot itself. I wonder if you can use multiple
> configurations in FIT image to maximize the flexibility to load different device
> tree image.
> 
> York
This is mainly useful when we are booting using separate images , not a FIT image.
Example of use case:
LS2080ARDB can supports ls2080a, ls2081a, ls2088a socs.
Single flash image is build for the board which can support either combination of SoC.
kernel is booted with same itb which is flex_installer_arm64.itb which depending on $board env selects dtb image on NOR flash.
flex_installer_arm64.itb has configuration like:
configurations {
default = "ls2088ardb";

ls2080ardb {
description = "config for ls2080ardb";
kernel = "kernel";
ramdisk = "initrd-installer";
fdt = "ls2080ardb-dtb";
};

ls2088ardb {
description = "config for ls2088ardb";
kernel = "kernel";
ramdisk = "initrd-installer";
fdt = "ls2088ardb-dtb";
};

Priyanka

      reply	other threads:[~2017-08-29  8:54 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-24  7:06 [U-Boot] [PATCH] board/ls2080ardb: Update board env based on SoC Priyanka Jain
2017-08-24 14:55 ` York Sun
2017-08-25  4:52   ` Priyanka Jain
2017-08-25 15:22     ` York Sun
2017-08-29  8:54       ` Priyanka Jain [this message]

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=DB6PR0402MB27123A447D083D5A3613846CE69F0@DB6PR0402MB2712.eurprd04.prod.outlook.com \
    --to=priyanka.jain@nxp.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.