回复: [EXT] Re: [PATCH v2 16/17] imx95_evk: add i.MX95 19x19 EVK board basic support
Alice Guo (OSS)
alice.guo at oss.nxp.com
Tue Dec 24 09:23:33 CET 2024
> -----邮件原件-----
> 发件人: Simon Glass <sjg at chromium.org>
> 发送时间: 2024年12月21日 1:37
> 收件人: Alice Guo (OSS) <alice.guo at oss.nxp.com>
> 抄送: Tom Rini <trini at konsulko.com>; Stefano Babic <sbabic at denx.de>; Fabio
> Estevam <festevam at gmail.com>; dl-uboot-imx <uboot-imx at nxp.com>; Lukasz
> Majewski <lukma at denx.de>; Sean Anderson <seanga2 at gmail.com>; Alper
> Nebi Yasak <alpernebiyasak at gmail.com>; u-boot at lists.denx.de;
> marex at denx.de; Alice Guo <alice.guo at nxp.com>; Ye Li <ye.li at nxp.com>;
> Peng Fan <peng.fan at nxp.com>
> 主题: [EXT] Re: [PATCH v2 16/17] imx95_evk: add i.MX95 19x19 EVK board basic
> support
>
> Caution: This is an external email. Please take care when clicking links or
> opening attachments. When in doubt, report the message using the 'Report this
> email' button
>
>
> Hi Alice,
>
> On Thu, 19 Dec 2024 at 19:56, Alice Guo <alice.guo at oss.nxp.com> wrote:
> >
> > From: Ye Li <ye.li at nxp.com>
> >
> > This patch adds i.MX95 19x19 EVK board basic support.
> >
> > Signed-off-by: Ye Li <ye.li at nxp.com>
> > Signed-off-by: Alice Guo <alice.guo at nxp.com>
> > Reviewed-by: Peng Fan <peng.fan at nxp.com>
> > ---
> > arch/arm/dts/imx95-19x19-evk-u-boot.dtsi | 224
> ++++++++++++++++++++++++++
> > arch/arm/mach-imx/imx9/Kconfig | 6 +
> > arch/arm/mach-imx/imx9/scmi/container.cfg | 10 ++
> > arch/arm/mach-imx/imx9/scmi/imximage.cfg | 15 ++
> > arch/arm/mach-imx/imx9/scmi/soc.c | 1 +
> > board/freescale/imx95_evk/Kconfig | 12 ++
> > board/freescale/imx95_evk/MAINTAINERS | 6 +
> > board/freescale/imx95_evk/Makefile | 11 ++
> > board/freescale/imx95_evk/imx95_19x19_evk.env | 95 +++++++++++
> > board/freescale/imx95_evk/imx95_evk.c | 54 +++++++
> > board/freescale/imx95_evk/spl.c | 117 ++++++++++++++
> > configs/imx95_19x19_evk_defconfig | 178
> ++++++++++++++++++++
> > doc/board/nxp/imx95_evk.rst | 109 +++++++++++++
> > doc/board/nxp/index.rst | 1 +
> > include/configs/imx95_evk.h | 36 +++++
> > 15 files changed, 875 insertions(+)
> >
> > diff --git a/board/freescale/imx95_evk/imx95_19x19_evk.env
> > b/board/freescale/imx95_evk/imx95_19x19_evk.env
> > new file mode 100644
> > index
> >
> 0000000000000000000000000000000000000000..27e09d3d70a068efb97d69b
> 27089
> > d1f213f39ee9
> > --- /dev/null
> > +++ b/board/freescale/imx95_evk/imx95_19x19_evk.env
> > @@ -0,0 +1,95 @@
> > +sec_boot=no
> > +initrd_addr=0x93800000
> > +emmc_dev=0
> > +sd_dev=1
> > +prepare_mcore=setenv mcore_clk clk-imx95.mcore_booted
> > +scriptaddr=0x93500000
> > +kernel_addr_r=" __stringify(CONFIG_SYS_LOAD_ADDR) "
> > +image=Image
> > +splashimage=0xA0000000
> > +console=ttyLP0,115200 earlycon
> > +fdt_addr_r=0x93000000
> > +fdt_addr=0x93000000
> > +cntr_addr=0xA8000000
> > +cntr_file=os_cntr_signed.bin
> > +boot_fit=no
> > +fdtfile=" CONFIG_DEFAULT_FDT_FILE "
> > +bootm_size=0x10000000
> > +mmcdev=" __stringify(CONFIG_SYS_MMC_ENV_DEV)"
> > +mmcpart=1
> > +mmcroot=/dev/mmcblk1p2 rootwait rw
> > +mmcautodetect=yes
> > +mmcargs=setenv bootargs ${mcore_clk} console=${console}
> > +root=${mmcroot} loadbootscript=fatload mmc ${mmcdev}:${mmcpart}
> > +${loadaddr} ${script}; bootscript=echo Running bootscript from mmc
> > +...; source loadimage=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr}
> > +${image} loadfdt=fatload mmc ${mmcdev}:${mmcpart} ${fdt_addr_r}
> > +${fdtfile} loadcntr=fatload mmc ${mmcdev}:${mmcpart} ${cntr_addr}
> > +${cntr_file} auth_os=auth_cntr ${cntr_addr} boot_os=booti ${loadaddr}
> > +- ${fdt_addr_r}; mmcboot=echo Booting from mmc ...;
> > + run mmcargs;
> > + if test ${sec_boot} = yes; then
> > + if run auth_os; then
> > + run boot_os;
> > + else
> > + echo ERR: failed to authenticate;
> > + fi;
> > + else
> > + if test ${boot_fit} = yes || test ${boot_fit} = try;
> then
> > + bootm ${loadaddr};
> > + else
> > + if run loadfdt; then
> > + run boot_os;
> > + else
> > + echo WARN: Cannot load
> the DT;
> > + fi;
> > + fi;
> > + fi;
> > +netargs=setenv bootargs ${mcore_clk} console=${console}
> > + root=/dev/nfs
> > + ip=dhcp nfsroot=${serverip}:${nfsroot},v3,tcp
> > +netboot=echo Booting from net ...;
> > + run netargs;
> > + if test ${ip_dyn} = yes; then
> > + setenv get_cmd dhcp;
> > + else
> > + setenv get_cmd tftp;
> > + fi;
> > + if test ${sec_boot} = yes; then
> > + ${get_cmd} ${cntr_addr} ${cntr_file};
> > + if run auth_os; then
> > + run boot_os;
> > + else
> > + echo ERR: failed to authenticate;
> > + fi;
> > + else
> > + ${get_cmd} ${loadaddr} ${image};
> > + if test ${boot_fit} = yes || test ${boot_fit} = try;
> then
> > + bootm ${loadaddr};
> > + else
> > + if ${get_cmd} ${fdt_addr_r} ${fdtfile};
> then
> > + run boot_os;
> > + else
> > + echo WARN: Cannot load
> the DT;
> > + fi;
> > + fi;
> > + fi;
> > +bsp_bootcmd=echo Running BSP bootcmd ...;
> > + mmc dev ${mmcdev}; if mmc rescan; then
> > + if run loadbootscript; then
> > + run bootscript;
> > + else
> > + if test ${sec_boot} = yes; then
> > + if run loadcntr; then
> > + run mmcboot;
> > + else run netboot;
> > + fi;
> > + else
> > + if run loadimage; then
> > + run mmcboot;
> > + else run netboot;
> > + fi;
> > + fi;
> > + fi;
> > + fi;
> > \ No newline at end of file
>
> Could this be moved to use standard boot?
>
Hi Simon, Fabio
I am new to standard boot and trying to understand the flow, could that be a follow up patch to switch imx95 to use standard boot? Then we no need to wait longer for i.MX95 patchset for mainline.
Best Regards,
Alice Guo
More information about the U-Boot
mailing list