[U-Boot] [PATCH V2] arm: novena: Switch novena to config_distro_bootcmd

Marek Vasut marex at denx.de
Wed Nov 25 00:31:02 CET 2015


On Monday, November 23, 2015 at 09:02:36 PM, Vagrant Cascadian wrote:
> On 2015-11-10, Marek Vasut wrote:
> > Switch Novena to distro bootcmd, so it can be used with debian easily.
> > 
> > diff --git a/include/configs/novena.h b/include/configs/novena.h
> > index 718989f..3bb406d 100644
> > --- a/include/configs/novena.h
> > +++ b/include/configs/novena.h
> > @@ -58,7 +59,7 @@
> > 
> >  /* Booting Linux */
> >  #define CONFIG_BOOTFILE			"fitImage"
> >  #define CONFIG_BOOTARGS			"console=ttymxc1,115200 "
> > 
> > -#define CONFIG_BOOTCOMMAND		"run net_nfs"
> > +#define CONFIG_BOOTCOMMAND		"run distro_bootcmd ; run 
net_nfs"
> > 
> >  #define CONFIG_HOSTNAME			novena
> >  
> >  /* Physical Memory Map */
> 
> ...
> 
> > @@ -199,6 +201,10 @@
> > 
> >  	"rootdev=/dev/mmcblk0p2\0"					\
> >  	"netdev=eth0\0"							\
> >  	"kernel_addr_r="__stringify(CONFIG_LOADADDR)"\0"		\
> > 
> > +	"pxefile_addr_r="__stringify(CONFIG_LOADADDR)"\0"		\
> > +	"scriptaddr="__stringify(CONFIG_LOADADDR)"\0"			\
> > +	"ramdisk_addr_r=0x28000000\0"		   			\
> > +	"fdt_addr_r=0x10000000\0"					\
> > 
> >  	"addcons="							\
> >  	
> >  		"setenv bootargs ${bootargs} "				\
> >  		"console=${consdev},${baudrate}\0"			\
> 
> "fdtfile=imx6q-novena.dtb" should be added above, maybe after fdt_addr_r.

Added, thanks.

> The use of CONFIG_BOOTARGS and "run addcons" appear to be redundant, or
> at least overlapping. Other boards simply set "console=ttymxc0,115200"
> or appropriate, which would be a bit simpler.

Should be ttymxc1. The idea is that addcons let's you configure console using
the consdev and baudrate (which specifies the UART baudrate in u-boot too),
so if you change the baudrate in U-Boot, it is automatically updated in Linux
too.

Best regards,
Marek Vasut


More information about the U-Boot mailing list