From: "Chan Kim" <ckim@etri.re.kr>
To: "'Abder'" <koute102030@gmail.com>, "'Alex G.'" <mr.nuke.me@gmail.com>
Cc: "'U-Boot Mailing List'" <u-boot@lists.denx.de>
Subject: RE: a question about falcon mode
Date: Fri, 3 Dec 2021 18:12:36 +0900 [thread overview]
Message-ID: <003601d7e825$ea213dc0$be63b940$@etri.re.kr> (raw)
In-Reply-To: <CAHaxFpgbzoKPYOPSV7iLv3ZaYNuuKhnyzVf0V_7NHut4THkKYw@mail.gmail.com>
Hi, Alex and Abder,
Thank you for the comments.
Those will be a good hint for me (especially CONFIG_SPL_RAM_SUPPORT , using FIT image etc..) in reading the document and doing the experiment later.
Best regards
Chan
> -----Original Message-----
> From: Abder <koute102030@gmail.com>
> Sent: Wednesday, December 1, 2021 9:16 PM
> To: Alex G. <mr.nuke.me@gmail.com>
> Cc: Chan Kim <ckim@etri.re.kr>; U-Boot Mailing List <u-boot@lists.denx.de>
> Subject: Re: a question about falcon mode
>
> Hi Alex,
>
> Well yeah! I thought about that, my question was deliberately open to that
> answer too... but what I was looking for is if a dynamic capability was
> (already) implemented in the SPL for generating the fdtargs i.e., taking
> the dtb and the bootargs env variable (plus calculating the address and
> size of the initramfs if used) and putting all that info in the fdtarg
> blob just like u-boot does !
> But surely that also can be implemented in the SPL. I'm willing to try
> that in the near future... and eventually submit a patch for it, if
> everything goes as expected !
>
> Thanks for the reply though, and the snippet code too !
>
> Best regards
> --
> Abder
>
>
> Le lun. 29 nov. 2021 à 23:12, Alex G. <mr.nuke.me@gmail.com> a écrit :
> >
> >
> >
> > On 11/26/21 4:36 PM, Abder wrote:
> > > Hi Alex,
> > >
> > > Just a quick remarque that intrigued me:
> > >
> > > Le jeu. 25 nov. 2021 à 15:57, Alex G. <mr.nuke.me@gmail.com> a écrit :
> > >>
> > >> On 11/25/21 1:07 AM, Chan Kim wrote:
> > >>> Hello all,
> > >>>
> > >>> I'm trying to implement falcon mode for our board. Then should I
> > >>> first implement the normal mode(spl + proper)?
> > >>>
> > >>> It looks like so while I'm reading doc/README.falcon. (It says,
> > >>> after loading kernel, DT etc. I should give 'spl export' command).
> > >>>
> > >>
> > >> Falcon mode is a bit board dependent. There are a couple of ways
> > >> you could go about this.
> > >>
> > >> The first is to have an "fdtargs" partition. This is where "spl
> export"
> > >> comes in. Once you run "spl export", it will give a modified dtb at
> > >> "$fdtargsaddr". It's that DTB that you need to write to your
> > >> ftdargs partition. For example:
> > >>
> > >> > spl export fdt $loadaddr - $fdt_addr_r
> > >> > mmc write $fdtargsaddr 0x9800 0x8000
> > >>
> > >> In this example the ftdargs partition starts at sector 0x9800, and
> > >> is
> > >> 0x800 sectors long.
> > >>
> > >>
> > >> The second option is to forget about "spl export" and "fdtargs",
> > >> and package your kernel, devicetree, and overlays in a FIT
> > >> container. You'd make sure to enable SPL_LOAD_FIT_APPLY_OVERLAY.
> > >> There isn't much more to this other than the usual gotcha's with FIT
> and overlays.
> > >>
> > >
> > > Do you mean by this that the SPL has the capability to generate the
> > > "fdtargs" by it self (if we provide it with the dtb in the fitImage) ?
> > >
> > > Form my last experience with the falcon mode, I had a - not sure -
> > > conclusion that the only way to generate the "fdtargs" is by using
> > > the "spl export" command from uboot cmdline !
> > > because the reality of the fdtargs blob, as its name indicates, is
> > > not just the fdt but it has also the bootargs (inside the chosen
> > > node ) that are required by the kernel. So if you give only the DTB
> > > to the SPL it will not work - to my knowledge -, cuz the data that
> > > will be passed to the kernel needs to contain also the bootargs !
> > >
> > > Can you please confirm to me if this capability is implemented on
> > > the SPL and that we can actually forget about the "spl export"
> command ?
> >
> > It might not be obvious that an overlay can contain the "/chosen" node
> > with the appropriate bootargs:
> >
> > /dts-v1/;
> > /plugin/;
> > / {
> > fragment@1 {
> > target-path = "/chosen";
> > __overlay__ {
> > bootargs = "root=blablabla console=ttyeS0";
> > };
> > };
> > };
> >
> > > Thanks
> > > And apologies Chan for jumping on your thread,
> > >
> > >
> > > Best regards,
> > > --
> > > Abder
> > >
prev parent reply other threads:[~2021-12-03 9:12 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-25 7:07 a question about falcon mode Chan Kim
2021-11-25 14:57 ` Alex G.
2021-11-26 7:53 ` Chan Kim
2021-11-26 14:18 ` Alex G.
2021-11-26 22:36 ` Abder
2021-11-29 22:12 ` Alex G.
2021-12-01 12:16 ` Abder
2021-12-03 9:12 ` Chan Kim [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='003601d7e825$ea213dc0$be63b940$@etri.re.kr' \
--to=ckim@etri.re.kr \
--cc=koute102030@gmail.com \
--cc=mr.nuke.me@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox