From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dalon Westergreen Date: Sat, 18 Feb 2017 19:22:05 -0800 Subject: [U-Boot] [PATCH v2 1/8] arm: socfpga: Add distro boot to socfpga common header In-Reply-To: References: <1487469127-10479-1-git-send-email-dwesterg@gmail.com> <1487469127-10479-2-git-send-email-dwesterg@gmail.com> Message-ID: <1487474525.13754.8.camel@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Sun, 2017-02-19 at 03:28 +0100, Marek Vasut wrote: > On 02/19/2017 02:52 AM, Dalon Westergreen wrote: > > > > This adds a common environment and support for distro boot > > in the common socfpga header. > > > > Signed-off-by: Dalon Westergreen > > > > -- > > Changes in V2: > > ?- Remove unneeded CONFIG_BOOTFILE and fdt_addr > > ?- cleanup spacing in MMC env size > > --- > > ?include/configs/socfpga_common.h | 53 > > +++++++++++++++++++++++++++++++++++++--- > > ?1 file changed, 49 insertions(+), 4 deletions(-) > > [...] > > +#define BOOT_TARGET_DEVICES(func) \ > > + BOOT_TARGET_DEVICES_MMC(func) \ > > + BOOT_TARGET_DEVICES_PXE(func) \ > > + func(DHCP, dhcp, na) > > + > > +#include > > + > > +#ifndef CONFIG_EXTRA_ENV_SETTINGS > > +#define CONFIG_EXTRA_ENV_SETTINGS \ > > + "verify=n\0" \ > > This is still here ... okay, i think i misunderstood what you meant... i am removing verify=n b/c i dont believe it is wise as a default, but as far as fdtfile my intent is to keep it. ?sysboot / extlinux uses ${soc}-${board}.dtb as the default devicetree which will result in socfpga-sr1500.dtb as an example. ?sysboot will however use ${fdtfile} first if found. > > > > + "fdtfile=" CONFIG_DEFAULT_FDT_FILE "\0" \ > > + "bootm_size=0xa000000\0" \ > > + "kernel_addr_r="__stringify(CONFIG_SYS_LOAD_ADDR)"\0" \ > > + "fdt_addr_r=0x02000000\0" \ > > + "scriptaddr=0x02100000\0" \ > > + "pxefile_addr_r=0x02200000\0" \ > > + "ramdisk_addr_r=0x02300000\0" \ > > + BOOTENV > > + > > +#endif > > +#endif > > + > > ?#endif /* __CONFIG_SOCFPGA_COMMON_H__ */ > > --dalon