All of lore.kernel.org
 help / color / mirror / Atom feed
From: Rick Chen <rickchen36@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] Uboot send pull request
Date: Thu, 29 Nov 2018 19:23:02 +0800	[thread overview]
Message-ID: <CAN5B=eKXN6ZRwxLJF27u0NUVqdPVvso3C3OufGFG6dtxyXEPpA@mail.gmail.com> (raw)
In-Reply-To: <CAEUhbmWWsT7YXZcj94_BNehzL62vsy4Tgcv-i=awRwFjzGW-hg@mail.gmail.com>

Bin Meng <bmeng.cn@gmail.com> 於 2018年11月27日 週二 下午5:54寫道:
>
> Hi Rick,
>
> On Wed, Nov 21, 2018 at 4:53 PM Rick Chen <rickchen36@gmail.com> wrote:
> >
> > Bin Meng <bmeng.cn@gmail.com> 於 2018年11月21日 週三 下午3:18寫道:
> > >
> > > Hi Rick,
> > >
> > > On Wed, Nov 21, 2018 at 2:00 PM Rick Chen <rickchen36@gmail.com> wrote:
> > > >
> > > > > >
> > > > > > Do any of your above patches get v2 posted? At least I did not see any follow-up
> > > > > > response [1] regarding to "riscv: ax25-ae350: Pass dtb address to u-boot with a1
> > > > > > register"
> > > >
> > > > First of all you told me about that
> > > > board_fdt_blob_setup() should be completely removed.
> > > > Instead the simple fix should be add CONFIG_OF_PRIOR_STAGE
> > > > to ax25-ae350_defconfig.
> > > >
> > > > Then I explain you about that is for booting from flash.
> > > > And you said
> > > > In this case, we need support OF_CONTROL like other arch, eg:
> > > > CONFIG_OF_EMBED and CONFIG_OF_SEPARATE.
> > > >
> > > > In README, I don't find the limitation about when booting from flash,
> > > > it can not use  CONFIG_OF_BOARD.
> > > >
> > >
> > > Correct. However, when ax25-ae350's U-Boot boots from ROM, where does
> > > prior_stage_fdt_address get assigned to the ROM address? Besides, this
> > > variable is declared in fdtdec.h as follows:
> > >
> > > #if CONFIG_IS_ENABLED(OF_PRIOR_STAGE)
> > > extern phys_addr_t prior_stage_fdt_address;
> > > #endif
> > >
> > > It means only OF_PRIOR_STAGE will use this variable. But in your patch
> >
> > I have seen that declaration in fdtdec.h
> > But I was referred to
> > include\configs\bcmstb.h
> > extern phys_addr_t prior_stage_fdt_address;
> > and that is why I borrow prior_stage_fdt_address.
> >
>
> It looks to me that bcmstb.h was an ad-hoc hack of using
> prior_stage_fdt_address. I don't think it was originally meant to do
> such. It intends to work with OF_PRIOR_STAGE only.
>

I just refer to
bcmstb.c
phys_addr_t prior_stage_fdt_address BCMSTB_DATA_SECTION;
bcmstb.h
extern phys_addr_t prior_stage_fdt_address;

That is why I borrow and recycle to use it.


> > You do not point out this consideration directly, maybe that is why
> > we have some thinking is different.
> >
>
> Sorry I wasn't that clear, as I was expecting we continue discussing
> on that patch thread.
>

Yes.
I have reply some of your questions in another email.
Maybe we can move there and discuss further more. :)

Re: [PATCH v5 4/4] riscv: Remove redundant a2 store on DRAM base in start.S
https://www.mail-archive.com/u-boot at lists.denx.de/msg307101.html

B.R
Rick


> > > this was borrowed to support OF_BOARD, which is confusing I think. If
> > > U-Boot boots from reset vector, the canonical way to support DT is via
> > > CONFIG_OF_EMBED or CONFIG_OF_SEPARATE.
> > >
> > > > That is why ax25-ae350 use
> > > > CONFIG_OF_BOARD to support boot from RAM and ROM.
> > > > It is a flexible approach to meet Andes' HW mechanism.
> > > >
> > > > I think it is a configuration in ax25-ae350_defconfig.
> > > > It will not affect qemu-riscv32(64)_defconfig.
> > > >
> > >
> > > I understand it does not affect qemu riscv board. The thing is that I
> > > wasn't clear why you did that way for ax25-ae350.
> >
> > Actually I just want to remove the redundant code in start.S
> > -       li      t0, CONFIG_SYS_SDRAM_BASE
> > -       SREG    a2, 0(t0)
> > so borrowed prior_stage_fdt_address in CONFIG_OF_BOARD
> >
>
> Regards,
> Bin

  reply	other threads:[~2018-11-29 11:23 UTC|newest]

Thread overview: 54+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-20 10:18 [U-Boot] Uboot send pull request uboot at andestech.com
2018-11-20 14:00 ` Bin Meng
     [not found]   ` <752D002CFF5D0F4FA35C0100F1D73F3FA3A4C59E@ATCPCS16.andestech.com>
     [not found]     ` <CAN5B=eKcbcWGO8BYmPVdx5Yt3BZFWR6QsXo_-BxJreKcBYpcEA@mail.gmail.com>
2018-11-21  6:00       ` Rick Chen
2018-11-21  7:18         ` Bin Meng
2018-11-21  8:53           ` Rick Chen
2018-11-21  9:09             ` Rick Chen
2018-11-27  9:54             ` Bin Meng
2018-11-29 11:23               ` Rick Chen [this message]
2018-11-20 14:06 ` Auer, Lukas
     [not found]   ` <752D002CFF5D0F4FA35C0100F1D73F3FA3A4C7A8@ATCPCS16.andestech.com>
2018-11-21  9:37     ` Rick Chen
2018-11-21 13:09       ` Auer, Lukas
2018-11-22  8:38         ` Rick Chen
2018-11-22  9:18           ` Auer, Lukas
2018-11-22  9:42             ` Rick Chen
2018-11-22 10:16               ` Auer, Lukas
2018-11-20 17:38 ` Tom Rini
  -- strict thread matches above, loose matches on Subject: below --
2019-06-05 10:21 uboot at andestech.com
     [not found] ` <752D002CFF5D0F4FA35C0100F1D73F3FA40CC218@ATCPCS16.andestech.com>
2019-06-05 10:31   ` Rick Chen
2018-12-18 10:09 uboot at andestech.com
2018-12-23 17:31 ` Tom Rini
2018-12-05  6:32 uboot at andestech.com
2018-11-26  6:18 uboot at andestech.com
2018-11-27  3:12 ` Tom Rini
     [not found]   ` <752D002CFF5D0F4FA35C0100F1D73F3FA3A50B17@ATCPCS16.andestech.com>
2018-11-27  5:14     ` Rick Chen
2018-10-03 10:16 uboot at andestech.com
2018-10-03 15:58 ` Tom Rini
2018-05-30  8:33 uboot at andestech.com
2018-05-31  2:10 ` Tom Rini
2018-05-29  6:56 uboot at andestech.com
2018-05-29 15:00 ` Tom Rini
2018-03-30  7:05 uboot at andestech.com
2018-04-01 13:19 ` Tom Rini
2017-11-30  2:35 uboot at andestech.com
2017-11-30 15:33 ` Tom Rini
2017-09-28  5:25 uboot at andestech.com
2017-09-29 14:25 ` Tom Rini
2017-09-21  2:45 uboot at andestech.com
2017-09-22 14:17 ` Tom Rini
2017-09-13  1:39 uboot at andestech.com
2017-09-13  2:53 ` Tom Rini
2017-06-01  1:31 uboot at andestech.com
2017-05-24  1:36 uboot at andestech.com
2017-05-27  0:36 ` Tom Rini
2017-05-22  7:00 uboot at andestech.com
2017-05-23  0:18 ` Tom Rini
     [not found] <CGME20161202080940epcas2p1e67429b56c97e0f8523ff599db8213ae@epcas2p1.samsung.com>
2016-12-02  7:44 ` uboot at andestech.com
2016-12-02  9:08   ` Jaehoon Chung
2016-12-02 15:38     ` Tom Rini
2016-09-29  8:22 uboot at andestech.com
2016-10-01 12:58 ` Tom Rini
2016-01-21  6:48 uboot at andestech.com
2016-01-21 16:50 ` Tom Rini
2016-01-21  6:01 uboot at andestech.com
2014-10-07  7:21 uboot at andestech.com

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='CAN5B=eKXN6ZRwxLJF27u0NUVqdPVvso3C3OufGFG6dtxyXEPpA@mail.gmail.com' \
    --to=rickchen36@gmail.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.