Hi Peng,

On Sun, 5 Jan 2025 at 17:27, Peng Fan <peng....@oss.nxp.com> wrote:
>
> Hi Simon,
>
> On Sun, Jan 05, 2025 at 08:30:55AM +1300, Simon Glass wrote:
> >Hi Peng,
> >
> >On Sat, 4 Jan 2025 at 16:19, Peng Fan (OSS) <peng....@oss.nxp.com> wrote:
> >>
> >> Switch to bootstd for NXP i.MX9/8M boards with a bsp_bootcmd as fallback.
> >>
> [...]
> >>
> >
> >This also switches to a text environment, great!
> >
> >For bsp_bootcmd is it possible to create a bootmeth for your use case?
> >If you would like to take a look (separate from this series), I could
> >help with any issues that come up.
>
> I just give a quick look of bootmeth, seems needs extlinux or bootscript
> (boot.scr). But both are used on NXP i.MX release as of now. In NXP
> releases, we put all script in the U-Boot ENV.
>
> Do you have suggestions how to move to support bootmeth.

I'm not entirely sure what you are trying to do with the bootcmd, but
you could write your own bootmeth, e.g. using common code from the
others. For example, bootmeth_script.c shows how to run a script and
bootmeth_extlinux.c shows how to run an extlinux file. You could then
create C code to perform your 'bsp' function, e.g. a new
bootmeth_bsp.c.

Regards,
Simonn

Reply via email to