All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] board: novtech: meerkat96: Add environment variables
@ 2021-04-04 19:47 Carl Gelfand
  2021-04-09 11:29 ` Stefano Babic
  0 siblings, 1 reply; 2+ messages in thread
From: Carl Gelfand @ 2021-04-04 19:47 UTC (permalink / raw)
  To: u-boot

Add environment variables for booting Linux on  imx7d-meerkat96.

Signed-off-by: Carl Gelfand <carlgelfand@gmail.com>
---
 include/configs/meerkat96.h | 16 +++++++++++++++-
 1 file changed, 15 insertions(+), 1 deletion(-)

diff --git a/include/configs/meerkat96.h b/include/configs/meerkat96.h
index f43a8415e1..f3a6906054 100644
--- a/include/configs/meerkat96.h
+++ b/include/configs/meerkat96.h
@@ -33,7 +33,21 @@
        (CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_INIT_SP_OFFSET)

 /* Environment configs */
-
+#define CONFIG_EXTRA_ENV_SETTINGS \
+       "image=zImage\0" \
+       "console=ttymxc5\0" \
+       "bootcmd=mmc dev ${mmcdev};mmc dev ${mmcdev}; if mmc rescan;
then if run loadimage; then run mmcboot; else run netboot; fi; else
run netboot; fi\0" \
+       "fdt_addr=0x83000000\0" \
+       "fdt_file=imx7d-meerkat96.dtb\0" \
+       "loadaddr=0x80800000\0" \
+       "loadfdt=fatload mmc ${mmcdev}:${mmcpart} ${fdt_addr} ${fdt_file}\0" \
+       "loadimage=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${image}\0" \
+       "mmcargs=setenv bootargs console=${console},${baudrate}
root=${mmcroot}\0" \
+       "mmcroot=/dev/mmcblk0p2 rootwait rw\0" \
+       "boot_fdt=try\0" \
+       "mmcboot=echo Booting from mmc ...; run mmcargs; if test
${boot_fdt} = yes || test ${boot_fdt} = try; then if run loadfdt; then
bootz ${loadaddr} - ${fdt_addr}; else if test ${boot_fdt} = try; then
bootz; else echo WARN: Cannot load the DT; fi; fi; else bootz; fi;\0"
\
+       "mmcdev=0\0" \
+       "mmcpart=1\0" \
 /* USB configs */
 #define CONFIG_EHCI_HCD_INIT_AFTER_RESET
 #define CONFIG_MXC_USB_PORTSC          (PORT_PTS_UTMI | PORT_PTS_PTW)
--
2.20.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [PATCH] board: novtech: meerkat96: Add environment variables
  2021-04-04 19:47 [PATCH] board: novtech: meerkat96: Add environment variables Carl Gelfand
@ 2021-04-09 11:29 ` Stefano Babic
  0 siblings, 0 replies; 2+ messages in thread
From: Stefano Babic @ 2021-04-09 11:29 UTC (permalink / raw)
  To: u-boot

Hi Carl,

do you used git send-email for this ? It looks like the patch was 
changed by your mailer, I cannot applied it with git am ("malformed 
patch"). Can you check and resend, maybe with git send-email ?

Best regards,
SAtefano Babic

On 04.04.21 21:47, Carl Gelfand wrote:
> Add environment variables for booting Linux on  imx7d-meerkat96.
> 
> Signed-off-by: Carl Gelfand <carlgelfand@gmail.com>
> ---
>   include/configs/meerkat96.h | 16 +++++++++++++++-
>   1 file changed, 15 insertions(+), 1 deletion(-)
> 
> diff --git a/include/configs/meerkat96.h b/include/configs/meerkat96.h
> index f43a8415e1..f3a6906054 100644
> --- a/include/configs/meerkat96.h
> +++ b/include/configs/meerkat96.h
> @@ -33,7 +33,21 @@
>          (CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_INIT_SP_OFFSET)
> 
>   /* Environment configs */
> -
> +#define CONFIG_EXTRA_ENV_SETTINGS \
> +       "image=zImage\0" \
> +       "console=ttymxc5\0" \
> +       "bootcmd=mmc dev ${mmcdev};mmc dev ${mmcdev}; if mmc rescan;
> then if run loadimage; then run mmcboot; else run netboot; fi; else
> run netboot; fi\0" \
> +       "fdt_addr=0x83000000\0" \
> +       "fdt_file=imx7d-meerkat96.dtb\0" \
> +       "loadaddr=0x80800000\0" \
> +       "loadfdt=fatload mmc ${mmcdev}:${mmcpart} ${fdt_addr} ${fdt_file}\0" \
> +       "loadimage=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${image}\0" \
> +       "mmcargs=setenv bootargs console=${console},${baudrate}
> root=${mmcroot}\0" \
> +       "mmcroot=/dev/mmcblk0p2 rootwait rw\0" \
> +       "boot_fdt=try\0" \
> +       "mmcboot=echo Booting from mmc ...; run mmcargs; if test
> ${boot_fdt} = yes || test ${boot_fdt} = try; then if run loadfdt; then
> bootz ${loadaddr} - ${fdt_addr}; else if test ${boot_fdt} = try; then
> bootz; else echo WARN: Cannot load the DT; fi; fi; else bootz; fi;\0"
> \
> +       "mmcdev=0\0" \
> +       "mmcpart=1\0" \
>   /* USB configs */
>   #define CONFIG_EHCI_HCD_INIT_AFTER_RESET
>   #define CONFIG_MXC_USB_PORTSC          (PORT_PTS_UTMI | PORT_PTS_PTW)
> --
> 2.20.1
> 


-- 
=====================================================================
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-04-09 11:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-04 19:47 [PATCH] board: novtech: meerkat96: Add environment variables Carl Gelfand
2021-04-09 11:29 ` Stefano Babic

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.