[PATCH 1/5] tools: mkimage: Add support to generate FlexSPI Header for i.MX8m

Fabio Estevam festevam at gmail.com
Fri Jun 3 20:43:33 CEST 2022


Hi Mamta,

On Fri, Jun 3, 2022 at 8:39 AM Mamta Shukla
<mamta.shukla at leica-geosystems.com> wrote:

>  void build_image(int ofd)
>  {
> -       int file_off, header_hdmi_off = 0, header_image_off;
> -       int hdmi_fd, ap_fd, sld_fd;
> +       int file_off, header_hdmi_off = 0, header_image_off, fspi_off;
> +       int hdmi_fd, ap_fd, sld_fd, fspi_fd;
>         uint32_t sld_load_addr = 0;
>         uint32_t csf_off, sld_csf_off = 0;
>         int ret;
> @@ -455,6 +514,14 @@ void build_image(int ofd)
>
>         header_image_off = file_off + ivt_offset;
>
> +#ifdef CONFIG_FSPI_CONF_HEADER
> +       fspi = CONFIG_FSPI_CONF_FILE;
> +       fspi_fd = open(fspi, O_RDWR | O_CREAT, S_IRWXU);

Please check for error in case open() fails.


More information about the U-Boot mailing list