From: Marek Vasut <marex@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH V2] arm: novena: Switch novena to config_distro_bootcmd
Date: Wed, 25 Nov 2015 00:31:02 +0100 [thread overview]
Message-ID: <201511250031.02330.marex@denx.de> (raw)
In-Reply-To: <87k2p8zdpf.fsf@aikidev.net>
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
next prev parent reply other threads:[~2015-11-24 23:31 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-10 21:43 [U-Boot] [PATCH V2] arm: novena: Switch novena to config_distro_bootcmd Marek Vasut
2015-11-23 20:02 ` Vagrant Cascadian
2015-11-24 23:31 ` Marek Vasut [this message]
2015-11-24 1:13 ` Vagrant Cascadian
2015-11-24 23:31 ` Marek Vasut
-- strict thread matches above, loose matches on Subject: below --
2015-11-24 23:37 Marek Vasut
2015-11-25 21:30 ` Vagrant Cascadian
2015-12-12 23:16 ` Vagrant Cascadian
2015-12-14 11:24 ` Stefano Babic
2015-12-22 1:19 ` Marek Vasut
2015-12-29 18:50 ` Marek Vasut
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201511250031.02330.marex@denx.de \
--to=marex@denx.de \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.