Re: [U-Boot] [PATCH 1/2] rpi: Fix fdt_high & initrd_high for 64-bit builds

2018-05-24 Thread Alexander Graf
On 20.04.18 12:03, Tuomas Tynkkynen wrote: > The magic value that disables relocation is dependent on the CPU word > size, so the current '' is doing the wrong thing on aarch64. > > Signed-off-by: Tuomas Tynkkynen The BCM283x series of SOCs is limited to 32bit address space, so I don't

Re: [U-Boot] [PATCH v2] sunxi: add support for Banana Pi M2 Zero board

2018-05-24 Thread Maxime Ripard
Hi, On Thu, May 24, 2018 at 12:38:19PM +0800, Jun Nie wrote: > Banana Pi M2 Zero is a board by Sinovoip with Allwinner H2+ SoC, 16-bit > 512MiB DDR3 memory, a MicroSD slot, two MicroUSB ports (one OTG and one > powering-only) and a miniHDMI port. > > DTS file is from Linux kernel with removing so

[U-Boot] [PATCH v2] menu: fix timeout duration

2018-05-24 Thread Masahiro Yamada
For distro-boot, the TIMEOUT directive in the boot script specifies how long to pause in units of 1/10 sec. [1] Commit 8594753ba0a7 ("menu: only timeout when menu is displayed") corrected this by simply dividing the timeout value by 10 in menu_interactive_choice(). I see two problems: - For exa

Re: [U-Boot] [PATCH] rpi: Adjust fdt_addr_r to a sane address

2018-05-24 Thread Alexander Graf
On 14.04.18 20:04, Tuomas Tynkkynen wrote: > Hi Alexander, > > On Fri, 13 Apr 2018 17:49:00 +0200 > Alexander Graf wrote: > > [...] >> >> diff --git a/include/configs/rpi.h b/include/configs/rpi.h >> index 325e52a019..fcf7e0976b 100644 >> --- a/include/configs/rpi.h >> +++ b/include/configs/rp

Re: [U-Boot] [PATCH v2] sunxi: add support for Banana Pi M2 Zero board

2018-05-24 Thread Jun Nie
2018-05-24 15:54 GMT+08:00 Maxime Ripard : > Hi, > > On Thu, May 24, 2018 at 12:38:19PM +0800, Jun Nie wrote: >> Banana Pi M2 Zero is a board by Sinovoip with Allwinner H2+ SoC, 16-bit >> 512MiB DDR3 memory, a MicroSD slot, two MicroUSB ports (one OTG and one >> powering-only) and a miniHDMI port.

Re: [U-Boot] mmc: Unirqify bcm2835_sdhost and fix writes

2018-05-24 Thread Alexander Graf
> The bcm2835 sdhost driver has a problem with "write multiple" commands. > It seems to boil down to the fact that the controller dislikes its FIFO > to get drained at the end of a block when a write multiple blocks command > is in flight. > > The easy fix is to simply get rid of all the IRQ drive

[U-Boot] [PULL] rpi patch queue 2018-05-24

2018-05-24 Thread Alexander Graf
Hi Tom, This is my current patch queue for rpi. Please pull. Alex The following changes since commit dca268a8f987730978e1a23adfd0ac82db341a10: .travis.yml: Further optimizations (2018-05-22 22:08:57 -0400) are available in the git repository at: git://github.com/agraf/u-boot.git tags/si

[U-Boot] [PATCH v3 08/11] common: board_f: Sort includes

2018-05-24 Thread Mario Six
Includes should be sorted. Reviewed-by: Simon Glass Signed-off-by: Mario Six --- v2 -> v3: No changes v1 -> v2: New in v2 --- common/board_f.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/board_f.c b/common/board_f.c index d24513d6d18..a716eeb8990 100644 --- a/

[U-Boot] [PATCH v3 05/11] mpc83xx: Add sysreset driver

2018-05-24 Thread Mario Six
Add a sysreset driver for the MPC83xx platform. Reviewed-by: Simon Glass Signed-off-by: Mario Six --- v2 -> v3: * Added driver file to MAINTAINERS v1 -> v2: New in v2 --- MAINTAINERS | 1 + arch/powerpc/cpu/mpc83xx/cpu.c | 3 +- drivers/sysreset/Kconfig

[U-Boot] [PATCH v3 09/11] board_f: Use static print_cpuinfo if CONFIG_CPU is active

2018-05-24 Thread Mario Six
When the DM CPU drivers are active, printing information about a CPU should be delegated to a matching driver. Hence, add a static print_cpuinfo that implements this delegation when DM CPU drivers are active. Signed-off-by: Mario Six --- v2 -> v3: No changes v1 -> v2: New in v2 --- common/b

[U-Boot] [PATCH v3 10/11] cpu: Add MPC83xx CPU driver

2018-05-24 Thread Mario Six
Add a CPU driver for the MPC83xx architecture. Signed-off-by: Mario Six --- v2 -> v3: * Added driver files to MAINTAINERS v1 -> v2: * Removed cpu_print_info * Fixed CPU info printing * Removed usage of uclass_{first,next}_device_compat * Removed printing of reset status --- MAINTAINERS

[U-Boot] [PATCH v3 02/11] sysreset: Add get_status method

2018-05-24 Thread Mario Six
It's useful to have the reset status of the SoC printed out during reset (e.g. to learn whether the reset was caused by software or a watchdog). As a first step to implement this, add a get_status method to the sysreset class, which enables the caller to get printable information about the reset s

[U-Boot] [PATCH v3 07/11] timer: Add MPC83xx timer driver

2018-05-24 Thread Mario Six
Add a timer driver for the MPC83xx architecture. Signed-off-by: Mario Six --- v2 -> v3: * Got rid of the static variables * Added driver files to MAINTAINERS v1 -> v2: * Removed now-superfluous comments * Removed usage of uclass_{first,next}_device_compat * Switched to usage of new board uclas

[U-Boot] [PATCH v3 06/11] clk: Add MPC83xx clock driver

2018-05-24 Thread Mario Six
Add a clock driver for the MPC83xx architecture. Signed-off-by: Mario Six --- v2 -> v3: * Added driver files to MAINTAINERS v1 -> v2: * Added binding of sysreset driver --- MAINTAINERS | 3 + arch/powerpc/cpu/mpc83xx/speed.c | 4 + arch/powerpc/include/asm/

[U-Boot] [PATCH v3 03/11] test: Add tests for sysreset_get_status

2018-05-24 Thread Mario Six
Add some tests for sysreset_get_status. Signed-off-by: Mario Six --- v2 -> v3: New in v3. --- drivers/sysreset/sysreset_sandbox.c | 16 test/dm/sysreset.c | 19 +++ 2 files changed, 35 insertions(+) diff --git a/drivers/sysreset/sysreset_sand

[U-Boot] [PATCH v3 11/11] misc: Add MPC83xx serdes driver

2018-05-24 Thread Mario Six
Add a driver to configure the SerDes (Serializer/Deserializer) lanes on the MPC83xx architecture. Signed-off-by: Mario Six --- v2 -> v3: * Added driver file to MAINTAINERS v1 -> v2: No changes --- MAINTAINERS | 1 + arch/powerpc/cpu/mpc83xx/serdes.c

[U-Boot] [PATCH v3 04/11] board_f: Add reset status printing

2018-05-24 Thread Mario Six
To print the reset status during boot, add a method print_resetinfo to board_f, which is called in init_sequence_f[], that gets the reset information from the sysreset driver (assuming there is only one seems reasonable), and prints it. Reviewed-by: Simon Glass Signed-off-by: Mario Six --- v2

[U-Boot] [PATCH v3 01/11] ram: Add driver for MPC83xx

2018-05-24 Thread Mario Six
Add a RAM driver for the MPC83xx architecture. Reviewed-by: Simon Glass Signed-off-by: Mario Six --- v2 -> v3: * Converted some #ifdefs to if (IS_ENABLED(...)) * Added driver files to MAINTAINERS v1 -> v2: No changes --- MAINTAINERS| 2 + arch/powerpc/cpu/m

Re: [U-Boot] [PATCH v3 1/2] arm: print instructions pointed to by pc

2018-05-24 Thread Alexander Graf
On 15.05.18 19:42, Heinrich Schuchardt wrote: > If an exception occurs in a loaded image and the relocation offset is > unknown, it is helful to know the instructions pointed to by the > program counter. This patch adds the missing output. > > A possible output is: > Code: e1c560d0 e12fff1e

Re: [U-Boot] [PATCH v2 1/1] arm: print instructions pointed to by pc

2018-05-24 Thread Alexander Graf
On 13.05.18 16:45, Marek Vasut wrote: > On 05/13/2018 02:22 PM, Tuomas Tynkkynen wrote: >> Hi, >> >> On Thu, 10 May 2018 16:38:30 +0200 >> Heinrich Schuchardt wrote: >> >>> If an exception occurs in a loaded image and the relocation offset is >>> unknown, it is helful to know the instructions po

Re: [U-Boot] [PATCH v2] sunxi: add support for Banana Pi M2 Zero board

2018-05-24 Thread Maxime Ripard
On Thu, May 24, 2018 at 04:22:53PM +0800, Jun Nie wrote: > > Why not using straight the DT from linux here? There's a couple of > > things missing from this one (the pinctrl nodes, for example). > > I had thought that pinctrl is not merged yet in u-boot per the > comments for patch V1. Will > keep

[U-Boot] [RFC] arm: dts: am33xx: Sync DTS with Linux 4.16.11

2018-05-24 Thread Felix Brack
Hello, I am working on a patch to synchronize the DTS files of the am33xx SoC with those from Linux 4.16.11 (current stable). After some tiny modifications to the boards am335x-pdu001, am335x-evm, am335x-rut, am437x-gp-evm and am43x-epos-evm buildman passes without any warnings on the 46 am33xx b

Re: [U-Boot] [PATCH 1/4] usb: xhci: Set accurate add context flags when updating hub attributes

2018-05-24 Thread Marek Vasut
On 05/24/2018 08:40 AM, Bin Meng wrote: > If a USB 3.0 hub is plugged into the root port of the xHC, the xHCI > driver will issue a 'Configure Endpoint' command to the xHC for it > to update its internal data structure for this hub device. The hub > attributes are in the slot context so we need tel

Re: [U-Boot] [PATCH v2 1/1] arm: print instructions pointed to by pc

2018-05-24 Thread Marek Vasut
On 05/24/2018 10:57 AM, Alexander Graf wrote: > > > On 13.05.18 16:45, Marek Vasut wrote: >> On 05/13/2018 02:22 PM, Tuomas Tynkkynen wrote: >>> Hi, >>> >>> On Thu, 10 May 2018 16:38:30 +0200 >>> Heinrich Schuchardt wrote: >>> If an exception occurs in a loaded image and the relocation offs

[U-Boot] [PATCH] x86: baytrail: Correct the comment of IACORE_VIDS bit ranges

2018-05-24 Thread Bin Meng
The guaranteed vid bit ranges in IACORE_VIDS MSR is actually [22:16]. This corrects the comment for it. Signed-off-by: Bin Meng --- arch/x86/cpu/baytrail/cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/cpu/baytrail/cpu.c b/arch/x86/cpu/baytrail/cpu.c index 29b

[U-Boot] [PATCH] net: add Socionext AVE ethernet driver support

2018-05-24 Thread Kunihiko Hayashi
Add driver for Socionext AVE ethernet controller that includes MAC and MDIO bus supporting RGMII/RMII modes. The driver behaves the ethernet driver model (DM_ETH) with devicetree. This patch requires the internal phy definition [1]. [1] http://patchwork.ozlabs.org/patch/915965/ Signed-off-by: Kun

[U-Boot] initialization to TI AM335x MII connected to Marvell's 88e6341 switch

2018-05-24 Thread Avner Flesch
Hi, I have costume board based on Beagle Bone Black board except the networking - instead of Ethernet PHY, we put a Marvell switch 88e6341 (The CPU port connected with MII). So, I need the u-boot source modification for it (c/h files and dts files) If someone can point me to a reference or se

[U-Boot] [PATCH 3/3] dts: mvebu: a80x0: Enable SD/eMMC interfaces

2018-05-24 Thread xswang
From: Konstantin Porotchkin Enable SDHCI interface on AP and CP0 in A80x0 DTS files Signed-off-by: Konstantin Porotchkin Signed-off-by: Evan Wang --- arch/arm/dts/armada-8040-db.dts| 14 ++ arch/arm/dts/armada-8040-mcbin.dts | 8 2 files changed, 22 insertions(+) d

[U-Boot] [PATCH 1/3] mvebu: pinctrl: sync compatible string with Linux 4.17-rc4

2018-05-24 Thread xswang
From: Evan Wang Signed-off-by: Evan Wang --- arch/arm/dts/armada-ap806.dtsi | 2 +- arch/arm/dts/armada-cp110-master.dtsi| 4 ++-- arch/arm/dts/armada-cp110-slave.dtsi | 2 +- .../pinctrl/marvell,mvebu-pinctrl.txt

[U-Boot] [PATCH 2/3] mvebu: pinctrl: Add SD/eMMC PHY selector to the driver

2018-05-24 Thread xswang
From: Konstantin Porotchkin When the pin control driver selects SD/eMMC function for a pin group, there is additional configuration to be done for this case - switch the PHY to work with SDHCI interface. This patch adds the missing functionality into the pin control driver. Signed-off-by: Konsta

Re: [U-Boot] [PATCH] rpi: Adjust fdt_addr_r to a sane address

2018-05-24 Thread Tuomas Tynkkynen
Hi Alexander, On Thu, 24 May 2018 10:12:54 +0200 Alexander Graf wrote: > On 14.04.18 20:04, Tuomas Tynkkynen wrote: > > Hi Alexander, > > > > On Fri, 13 Apr 2018 17:49:00 +0200 > > Alexander Graf wrote: > > > > [...] > >> > >> diff --git a/include/configs/rpi.h b/include/configs/rpi.h > >>

Re: [U-Boot] Exception Level switching seems broken on RK3399

2018-05-24 Thread Dr. Philipp Tomsich
Vincente, > On 19 May 2018, at 16:58, Vicente Bergas wrote: > > Hello, > I am writing this from a standalone Sapphire board [1], > that is, without the Excavator base board. > The CPU is the Rockchip RK3399, which implements ARMv8.0-A. > > Currently the boot process is: > 1.- Boot ROM > 2.- SPL

Re: [U-Boot] [PATCH V3 1/2] mmc: add HS400 support

2018-05-24 Thread Peng Fan
Hi Fabio, > -Original Message- > From: Fabio Estevam [mailto:feste...@gmail.com] > Sent: 2018年5月19日 22:39 > To: Peng Fan > Cc: Jaehoon Chung ; Kishon Vijay Abraham I > ; U-Boot-Denx > Subject: Re: [U-Boot] [PATCH V3 1/2] mmc: add HS400 support > > On Sat, May 19, 2018 at 9:54 AM, Peng F

Re: [U-Boot] [PATCH v4 04/16] sandbox: smbios: Update to support sandbox

2018-05-24 Thread Alexander Graf
On 16.05.18 17:42, Simon Glass wrote: > At present this code casts addresses to pointers so cannot be used with > sandbox. Update it to use mapmem instead. > > Signed-off-by: Simon Glass I really dislike the whole fact that you have to call map_sysmem() at all. I don't quite understand the who

Re: [U-Boot] [PATCH v4 07/16] efi: sandbox: Add distroboot support

2018-05-24 Thread Alexander Graf
On 16.05.18 17:42, Simon Glass wrote: > With sandbox these values depend on the host system. Let's assume that it > is x86_64 for now. > > Signed-off-by: Simon Glass > --- > > Changes in v4: None > Changes in v3: None > Changes in v2: None > > include/config_distro_bootcmd.h | 2 +- > 1 file

Re: [U-Boot] [PATCH v4 10/16] efi: sandbox: Add relocation constants

2018-05-24 Thread Alexander Graf
On 16.05.18 17:42, Simon Glass wrote: > Add these so that we can build the EFI loader for sandbox. The values are > for x86_64 so potentially bogus. But we don't support relocation within > sandbox anyway. > > Signed-off-by: Simon Glass > --- > > Changes in v4: None > Changes in v3: None > Cha

[U-Boot] [PATCH] regmap: Separate memory-based operations

2018-05-24 Thread Alexey Brodkin
One of important features of regmap [at least in Linux kernel] is an ability to seamlessly communicate to devices connected via different buses like: MMIO, SPI, I2C and many others. Current implementation in U-Boot only supports memory-mapped registers which is a vere valid case but we'll need mor

Re: [U-Boot] [U-Boot, v3, 1/3] mmc: dwmmc: socfpga: Add reset ctrl to driver

2018-05-24 Thread Tom Rini
On Tue, May 08, 2018 at 11:19:24AM +0800, Ley Foon Tan wrote: > Add code to reset all reset signals as in mmc DT node. A reset property is an > optional feature, > so only print out a warning and do not fail if a reset property is not > present. > > If a reset property is discovered, then use i

Re: [U-Boot] [PATCH v4 00/16] efi: Enable basic sandbox support for EFI loader

2018-05-24 Thread Alexander Graf
On 16.05.18 17:42, Simon Glass wrote: > A limitation of the EFI loader at present is that it does not build with > sandbox. This makes it hard to write tests, since sandbox is used for most > testing in U-Boot. > > This series enables the EFI loader feature. It allows sandbox to build and > run

Re: [U-Boot] arm: armv7m: Clean up some thumb / compiler flag options

2018-05-24 Thread Tom Rini
On Mon, May 07, 2018 at 08:46:52PM -0400, Tom Rini wrote: > - The correct way to build with thumb mode is to select SYS_THUMB_BUILD > - We should be setting -march=armv7-m in arch/arm/Makefile not the > sub-config.mk file. > > Signed-off-by: Tom Rini Applied to u-boot/master, thanks! -- Tom

Re: [U-Boot] Convert CONFIG_SUPPORT_EMMC_RPMB to Kconfig

2018-05-24 Thread Tom Rini
On Tue, May 08, 2018 at 04:43:31AM +, Alex Kiernan wrote: > Convert CONFIG_SUPPORT_EMMC_RPMB to Kconfig. Split the command handling > from the underlying support and expose this through CMD_MMC_RPMB. > > Signed-off-by: Alex Kiernan Applied to u-boot/master, thanks! -- Tom signature.asc

Re: [U-Boot] [U-Boot,3/3] i2c: Drop CONFIG_SH_SH7734_I2C

2018-05-24 Thread Tom Rini
On Wed, May 09, 2018 at 03:24:35PM +0300, Tuomas Tynkkynen wrote: > Last user of this driver went away in May 2017 in commit > eb5ba3aefdf0f6c ("i2c: Drop use of CONFIG_I2C_HARD"). > > Signed-off-by: Tuomas Tynkkynen > Acked-by: Heiko Schocher Applied to u-boot/master, thanks! -- Tom signa

Re: [U-Boot] [U-Boot, 2/3] configs: at91: Adjust CONFIG_ENV_OFFSET to match sama5 address

2018-05-24 Thread Tom Rini
On Wed, May 09, 2018 at 10:30:25AM +0300, Eugen Hristev wrote: > From: Nicolas Ferre > > In order to have a single ENV_OFFSET to manage, use the same as the sama5 one. > This address matches our NAND flash map available at: > http://www.at91.com/linux4sam/bin/view/Linux4SAM/Sama5d3XplainedMainPa

Re: [U-Boot] clk: at91: clk-h32mx: replace dm_warn with dev_dbg

2018-05-24 Thread Tom Rini
On Wed, May 09, 2018 at 10:58:30AM +0300, Eugen Hristev wrote: > dm_warn is too noisy, replace with dev_dbg for less noise. > > Based on original work by Wenyou Yang > > Signed-off-by: Eugen Hristev Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature _

Re: [U-Boot] configs: sama5d2_xplained: enable ext4 command support

2018-05-24 Thread Tom Rini
On Wed, May 09, 2018 at 01:08:01PM +0300, Eugen Hristev wrote: > To support loading the zImage + DTB from the rootfs ext4 partitions, > enable the ext4 command support. > > Based on original work by Wenyou Yang > > Signed-off-by: Eugen Hristev Applied to u-boot/master, thanks! -- Tom signa

Re: [U-Boot] spl: Add full fitImage support

2018-05-24 Thread Tom Rini
On Sun, May 13, 2018 at 12:23:17AM +0200, Marek Vasut wrote: > Add support for loading U-Boot and optionally FDT from a fitImage > in SPL by using the full fitImage support from U-Boot. While we do > have limited SPL loading support in SPL with a small footprint, it > is missing a lot of important

Re: [U-Boot] twister: Let SPL load U-Boot from MMC

2018-05-24 Thread Tom Rini
On Mon, May 14, 2018 at 09:17:45AM +0200, Ladislav Michl wrote: > MMC is not initialized in SPL, so it cannot load u-boot.img > preventing boot from MMC. > > Also driver specific functions are guarded with generic > configuration options which leads to build failures when device > driver is not e

Re: [U-Boot] FIT: Make fit_conf_print() be a static function

2018-05-24 Thread Tom Rini
On Tue, May 08, 2018 at 02:34:05PM -0400, Tom Rini wrote: > We only call fit_conf_print from one place in the code, so mark it as > static and move it up to where we call it. This in turn has us move a > few other already static functions up further as well. > > Signed-off-by: Tom Rini Applied

Re: [U-Boot] [uboot-snps-arc] [PATCH 0/3] Improvements for ARC UART

2018-05-24 Thread Alexey Brodkin
Hi Tom, On Mon, 2018-05-21 at 17:03 +0300, Alexey Brodkin wrote: > * Move ARC_SERIAL to Kconfig > * Implement DEBUG_SERIAL in ARC_UART and > * Enable DEBUG_UART in nSIM boards > > Alexey Brodkin (3): > serial: Convert ARC_SERIAL to Kconfig > serial/serial_arc: Implement debug serial > AR

Re: [U-Boot] [U-Boot, v4, 05/16] sandbox: Add a setjmp() implementation

2018-05-24 Thread Alexander Graf
> Add an implementation of setjmp() and longjmp() which rely on the > underlying host C library. Since we cannot know how large the jump buffer > needs to be, pick something that should be suitable and check it at > runtime. At present we need access to the underlying struct as well. > > Signed-of

Re: [U-Boot] [U-Boot,v2,1/2] fs: ext4: fix crash on ext4ls

2018-05-24 Thread Tom Rini
On Wed, May 09, 2018 at 04:28:37PM +0300, Eugen Hristev wrote: > Found a crash while issuing ext4ls with a non-existent directory. > Crash test: > > => ext4ls mmc 0 1 > ** Can not find directory. ** > data abort > pc : [<3fd7c2ec>] lr : [<3fd93ed8>] > reloc pc : [<26f142ec>]lr : [<26

Re: [U-Boot] [U-Boot, v4, 08/16] Define board_quiesce_devices() in a shared location

2018-05-24 Thread Alexander Graf
> This undocumented function relies on arch-specific code to declare a nop > weak version. Add the weak function in common code instead to avoid having > to duplicate the same function in each arch. > > Signed-off-by: Simon Glass Thanks, applied to efi-next Alex ___

Re: [U-Boot] [U-Boot,v3,2/2] scripts: add decodecode from Linux

2018-05-24 Thread Tom Rini
On Tue, May 15, 2018 at 07:42:24PM +0200, Heinrich Schuchardt wrote: > The script decodecode can be used to disassemble the 'Code:' line written > when an exception occurs. > > The script is copied from Linux v4.16. > > Signed-off-by: Heinrich Schuchardt Applied to u-boot/master, thanks! --

Re: [U-Boot] [U-Boot,2/3] i2c: Drop CONFIG_TSI108_I2C

2018-05-24 Thread Tom Rini
On Wed, May 09, 2018 at 03:24:34PM +0300, Tuomas Tynkkynen wrote: > Last user of this driver went away in June 2015 in commit > d928664f4101e24 ("powerpc: 74xx_7xx: remove 74xx_7xx cpu support") > > Signed-off-by: Tuomas Tynkkynen > Acked-by: Heiko Schocher Applied to u-boot/master, thanks! -

Re: [U-Boot] [U-Boot, V2] pylibfdt: Add missing CC and LD to Makefile

2018-05-24 Thread Tom Rini
On Fri, May 18, 2018 at 09:56:53AM +0200, Marek Vasut wrote: > Add missing CC and LDSHARED variables to the Makefile to pass the > correct C compiler and linker path to the build of _libfdt.so . > > Signed-off-by: Marek Vasut > Cc: Tom Rini > Cc: Masahiro Yamada > Cc: Simon Glass > Reviewed-b

Re: [U-Boot] Licenses/README: Update some style and add explicit license to the document

2018-05-24 Thread Tom Rini
On Tue, May 08, 2018 at 11:34:36AM -0400, Tom Rini wrote: > - Add an SPDX license tag to the file, saying it's GPL-2.0. > - From the Linux Kernel v4.17-rc4, import the "License identifier > syntax" section as-is from Documentation/process/license-rules.rst > and then change it to be clearer ab

Re: [U-Boot] [U-Boot, v2, 2/2] test: fs: fs-test: Modified test 1 to do a ls to a nonexistent dir

2018-05-24 Thread Tom Rini
On Wed, May 09, 2018 at 04:28:38PM +0300, Eugen Hristev wrote: > Added a simple ls to a nonexistent directory for test 1. > In case the driver is broken for a nonexistent directory, U-boot > might crash. > > Here is an example failed output: > > => # Test Case 1 - ls > => ext4ls host 0:0 >

Re: [U-Boot] [U-Boot, 1/3] configs: at91: sama5_common: Adjust CONFIG_ENV_OFFSET to match block alignment

2018-05-24 Thread Tom Rini
On Wed, May 09, 2018 at 10:30:24AM +0300, Eugen Hristev wrote: > From: Nicolas Ferre > > Fix the unaligned environment address. > This address matches our NAND flash map available at: > http://www.at91.com/linux4sam/bin/view/Linux4SAM/Sama5d3XplainedMainPage#NAND_Flash_demo_Memory_map > > Signe

Re: [U-Boot] [U-Boot,1/3] fit: Fix CONFIG_FIT_SPL_PRINT

2018-05-24 Thread Tom Rini
On Sun, May 13, 2018 at 12:22:52AM +0200, Marek Vasut wrote: > Rename CONFIG_FIT_SPL_PRINT to CONFIG_SPL_FIT_PRINT and add Kconfig > entry for it. > > Signed-off-by: Marek Vasut > Cc: Pantelis Antoniou > Cc: Simon Glass > Reviewed-by: Simon Glass Applied to u-boot/master, thanks! -- Tom

Re: [U-Boot] [U-Boot, 3/3] configs: at91sam9x5ek: updated mtdparts variable in bootargs

2018-05-24 Thread Tom Rini
On Wed, May 09, 2018 at 10:30:26AM +0300, Eugen Hristev wrote: > We have a new demo layout of our sama5 boards for the NAND Flash > memory. > According to this new layout, adjust the mtdparts variable in bootargs > to align with this, which is available at : > http://www.at91.com/linux4sam/bin/vie

Re: [U-Boot] arm64: timer: Create timer_get_bootus for bootstage support

2018-05-24 Thread Tom Rini
On Tue, May 15, 2018 at 04:47:02PM +0200, Michal Simek wrote: > Implement timer_get_boot_us() based on available functions to support > bootstage command. > > Signed-off-by: Michal Simek Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature __

Re: [U-Boot] bootcount: Add bootcount command

2018-05-24 Thread Tom Rini
On Sat, May 12, 2018 at 05:49:47AM +, Alex Kiernan wrote: > Add a command to manipulate the bootcounter. This is useful if you can > run device recovery from inside U-Boot and need to reset the bootcounter > after executing that process as part of altbootcmd. > > Signed-off-by: Alex Kiernan

Re: [U-Boot] [U-Boot,v2,1/1] doc: expand README.commands

2018-05-24 Thread Tom Rini
On Thu, May 10, 2018 at 03:57:27PM +0200, Heinrich Schuchardt wrote: > Describe U_BOOT_CMD_COMPLETE. > Describe the arguments of U_BOOT_CMD and U_BOOT_CMD_COMPLETE. > Describe the arguments of the command function. > Describe the arguments of the completion function. > > Signed-off-by: Heinrich S

Re: [U-Boot] [U-Boot,1/3] net: Drop CONFIG_TSI108_ETH

2018-05-24 Thread Tom Rini
On Wed, May 09, 2018 at 03:24:33PM +0300, Tuomas Tynkkynen wrote: > Last user of this driver went away in June 2015 in commit > d928664f4101e24 ("powerpc: 74xx_7xx: remove 74xx_7xx cpu support") > > Signed-off-by: Tuomas Tynkkynen Applied to u-boot/master, thanks! -- Tom signature.asc Descr

Re: [U-Boot] [U-Boot, v2] Makefile: adopt --std=gnu11 for HOSTCFLAGS on Linux

2018-05-24 Thread Tom Rini
On Mon, May 14, 2018 at 03:22:06PM +0200, Philipp Tomsich wrote: > Following the conversion of the SPDX license tags, a number of files > compiled with -pedantic now generate warnings similar to the following > for using C99-style '//' comments in ISO C90 code: > > tools/gen_eth_addr.c:1:1: war

Re: [U-Boot] [U-Boot, v4, 09/16] Add a comment for board_quiesce_devices()

2018-05-24 Thread Alexander Graf
> This exported function should have a comment describing what it does. Also > it should really be removed in favour of device_remove(), which handles > this sort of thing now. Add a comment with a TODO. > > Signed-off-by: Simon Glass Thanks, applied to efi-next Alex __

Re: [U-Boot] spl: fit: Add support for loading FPGA bitstream

2018-05-24 Thread Tom Rini
On Sat, May 12, 2018 at 10:25:28PM +0200, Marek Vasut wrote: > Add support for loading FPGA into the SPL fitImage support. The > mechanism is flexible and allows user to override the actual > function for loading the FPGA itself. This is because on some > systems, the FPGA must be programmed to al

Re: [U-Boot] [U-Boot, v4, 06/16] efi: sandbox: Add required linker sections

2018-05-24 Thread Alexander Graf
> The EFI loader code requires certain linker sections to exist. Add these > for sandbox so that the EFI loader code will link. > > Signed-off-by: Simon Glass Thanks, applied to efi-next Alex ___ U-Boot mailing list U-Boot@lists.denx.de https://lists

Re: [U-Boot] [U-Boot, 1/2] configs: sama5d2_xplained: set default FAT env location to SD-Card

2018-05-24 Thread Tom Rini
On Fri, May 11, 2018 at 11:14:31AM +0300, Eugen Hristev wrote: > For sama5d2_xplained_mmc_defconfig, we have the following layout for SD-Card: > partition 1: FAT: contains bootstrap binary (second level bootloader), > U-boot, U-boot env, kernel, dtb > partition 2: EXT4: Rootfs. > > Add to defconf

Re: [U-Boot] [U-Boot, v4, 02/16] efi: Update some comments related to smbios tables

2018-05-24 Thread Alexander Graf
> Clarify the operation of this code with some additional comments. > > Signed-off-by: Simon Glass > Reviewed-by: Heinrich Schuchardt Thanks, applied to efi-next Alex ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [U-Boot, 2/2] configs: sama5d2_xplained: fix bootcmd/args for spi+emmc demo

2018-05-24 Thread Tom Rini
On Fri, May 11, 2018 at 11:14:32AM +0300, Eugen Hristev wrote: > For sama5d2_xplained_spiflash_defconfig, we have the demo layout > as presented on this link: > http://www.at91.com/linux4sam/bin/view/Linux4SAM/Sama5d2XplainedMainPage#SPI_eMMC_Flash_demo_Memory_map > > on SPI Flash (4 Mbyte) we ha

Re: [U-Boot] [U-Boot, 2/3] fit: Add empty fit_print_contents() and fit_image_print()

2018-05-24 Thread Tom Rini
On Sun, May 13, 2018 at 12:22:53AM +0200, Marek Vasut wrote: > These functions may be needed in SPL, so add empty variants of them > if CONFIG_SPL_FIT_PRINT is disabled. > > Signed-off-by: Marek Vasut > Cc: Pantelis Antoniou > Cc: Simon Glass > Reviewed-by: Simon Glass Applied to u-boot/mast

Re: [U-Boot] [U-Boot, v3, 1/2] arm: print instructions pointed to by pc

2018-05-24 Thread Tom Rini
On Tue, May 15, 2018 at 07:42:23PM +0200, Heinrich Schuchardt wrote: > If an exception occurs in a loaded image and the relocation offset is > unknown, it is helful to know the instructions pointed to by the > program counter. This patch adds the missing output. > > A possible output is: > Co

Re: [U-Boot] [U-Boot, v4] efi_loader: fix off-by-one bug in efi_get_variable

2018-05-24 Thread Alexander Graf
> efi_get_variable() always stores an extra zero byte after the output data. > When the returned data size matches the output buffer size, the extra zero > byte is stored past the end of the output buffer. > > Signed-off-by: Ivan Gorinov > Reviewed-by: Heinrich Schuchardt Thanks, applied to efi

Re: [U-Boot] [uboot-snps-arc] [PATCH 0/3] Improvements for ARC UART

2018-05-24 Thread Tom Rini
On Thu, May 24, 2018 at 12:40:30PM +, Alexey Brodkin wrote: > Hi Tom, > > On Mon, 2018-05-21 at 17:03 +0300, Alexey Brodkin wrote: > > * Move ARC_SERIAL to Kconfig > > * Implement DEBUG_SERIAL in ARC_UART and > > * Enable DEBUG_UART in nSIM boards > > > > Alexey Brodkin (3): > > serial:

Re: [U-Boot] [U-Boot,3/3] fit: Add standalone image type handling

2018-05-24 Thread Tom Rini
On Sun, May 13, 2018 at 12:22:54AM +0200, Marek Vasut wrote: > Just add IH_TYPE_STANDALONE to fit_get_image_type_property(). > > Signed-off-by: Marek Vasut > Cc: Pantelis Antoniou > Cc: Simon Glass > Reviewed-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Descript

[U-Boot] Please pull ARC changes

2018-05-24 Thread Alexey Brodkin
Hi Tom, The following changes since commit 8a9dc16e4d07d29fff08b7caca36f0865065f7f7: spl: Add full fitImage support (2018-05-23 22:06:42 -0400) are available in the Git repository at: git://git.denx.de/u-boot-arc.git tags/arc-uart-updates-for-2018.07-rc1 for you to fetch changes up to 0556

[U-Boot] [PATCH v7 02/18] fastboot: Refactor fastboot_okay/fail to take response

2018-05-24 Thread Alex Kiernan
Add the response string as a parameter to fastboot_okay/fail, instead of modifying a global, to match the contract expected by the AOSP U-Boot code. Signed-off-by: Alex Kiernan Reviewed-by: Joe Hershberger --- Changes in v7: None Changes in v6: None Changes in v5: None Changes in v4: None Chang

[U-Boot] [PATCH v7 03/18] fastboot: Extract fastboot_okay/fail to fb_common.c

2018-05-24 Thread Alex Kiernan
Add drivers/fastboot/fb_common.c, where fastboot_okay/fail are implemented so we can call them from a non-USB implementation. Introduce fastboot_response which takes varargs parameters so we can use it to generate formatted response strings. Refactor fastboot_okay/fail to use it. Signed-off-by: A

[U-Boot] [PATCH v7 04/18] fastboot: Correct dependencies in FASTBOOT_FLASH

2018-05-24 Thread Alex Kiernan
Ensure that when selecting FASTBOOT_FLASH you end up with a buildable configuration. Prior to this you could select NAND without MTDPARTS and end up with an image which (surprisingly) excluded NAND. Also fix dependencies on FASTBOOT_GPT_NAME/FASTBOOT_MBR_NAME which require you have EFI_PARTITION/D

[U-Boot] [PATCH v7 05/18] fastboot: Add missing newlines

2018-05-24 Thread Alex Kiernan
Add newlines so we format our output correctly. Signed-off-by: Alex Kiernan Acked-by: Joe Hershberger Reviewed-by: Jocelyn Bohr --- Changes in v7: None Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None drivers/fastboot/fb_mmc.c | 28 +

[U-Boot] [PATCH v7 10/18] fastboot: Rename public fb_ functions to fastboot_

2018-05-24 Thread Alex Kiernan
Rename fb_mmc_flash_write/fb_mmc_erase/fb_nand_flash_write/fb_nand_erase to fastboot_... as they form a public interface Signed-off-by: Alex Kiernan Reviewed-by: Simon Glass --- Changes in v7: None Changes in v6: - add docbook comments Changes in v5: - new Changes in v4: None Changes in v3: N

[U-Boot] [PATCH v7 08/18] fastboot: Rename fb_set_reboot_flag to fastboot_set_reboot_flag

2018-05-24 Thread Alex Kiernan
Rename fb_set_reboot_flag to fastboot_set_reboot_flag so it matches all other fastboot code in the global name space. Fix the guards around them so that they're dependent on FASTBOOT, not just USB_FUNCTION_FASTBOOT. Move the weak implementation of fastboot_set_reboot_flag to fb_common.c so we can

[U-Boot] [PATCH v7 11/18] ti: fastboot: Move weak overrides to board files

2018-05-24 Thread Alex Kiernan
Overriding fastboot_set_reboot_flag() in arch/arm/mach-omap2/boot-common.c leaves it applying all boards that derive from this, not just the ones which have support for Android bootloader flow. Move the weak function override to the relevant board files. Signed-off-by: Alex Kiernan Reviewed-by: S

[U-Boot] [PATCH v7 06/18] fastboot: Remove FIXME for CONFIG_FASTBOOT_...NAME

2018-05-24 Thread Alex Kiernan
CONFIG_FASTBOOT_GPT_NAME and CONFIG_FASTBOOT_MBR_NAME are always defined by Kconfig if you're compiling this code, so remove these redundant defaults. Signed-off-by: Alex Kiernan Reviewed-by: Simon Glass Acked-by: Joe Hershberger --- Changes in v7: None Changes in v6: None Changes in v5: None

[U-Boot] [PATCH v7 07/18] fastboot: Fix parameter types in _fb_nand_write

2018-05-24 Thread Alex Kiernan
Compiling on a 64 bit target the arguments to _fb_nand_write are incompatible: drivers/fastboot/fb_nand.c: In function ‘_fb_nand_write’: drivers/fastboot/fb_nand.c:101:42: warning: passing argument 3 of ‘nand_write_skip_bad’ from incompatible pointer type [-Wincompatible-pointer-types] r

[U-Boot] [PATCH v7 13/18] fastboot: Migrate FASTBOOT_FLASH_NAND_TRIMFFS to Kconfig

2018-05-24 Thread Alex Kiernan
Add FASTBOOT_FLASH_NAND_TRIMFFS to Kconfig; note there are no in-tree users of it. Signed-off-by: Alex Kiernan Reviewed-by: Simon Glass --- Changes in v7: None Changes in v6: None Changes in v5: - new Changes in v4: None Changes in v3: None Changes in v2: None drivers/fastboot/Kconfig |

[U-Boot] [PATCH v7 18/18] fastboot: Update fastboot documentation

2018-05-24 Thread Alex Kiernan
Update fastboot documentation to reflect merged USB/UDP implementation. Signed-off-by: Alex Kiernan --- Changes in v7: None Changes in v6: - new Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None doc/README.android-fastboot | 240 +++---

[U-Boot] [PATCH v7 12/18] fs: Add fs_get_type_name to return current filesystem name

2018-05-24 Thread Alex Kiernan
Add fs_get_type_name so we can get the current filesystem type. Signed-off-by: Alex Kiernan Reviewed-by: Simon Glass Reviewed-by: Joe Hershberger --- Changes in v7: None Changes in v6: None Changes in v5: None Changes in v4: - add docbook comments Changes in v3: - new Changes in v2: None f

[U-Boot] [PATCH v7 14/18] mmc: Separate "mmc swrite" from fastboot

2018-05-24 Thread Alex Kiernan
Introduce CONFIG_IMAGE_SPARSE and CONFIG_CMD_MMC_SWRITE so the "mmc swrite" command is separated from the fastboot code. Move image-sparse from common to lib so it's clear it's library code. Rename CONFIG_FASTBOOT_FLASH_FILLBUF_SIZE to CONFIG_IMAGE_SPARSE_FILLBUF_SIZE and migrate it to Kconfig.

[U-Boot] [PATCH v7 16/18] fastboot: Add support for 'oem format' command

2018-05-24 Thread Alex Kiernan
Introduce 'oem format' which matches the USB implementation, guard this with CONFIG_FASTBOOT_CMD_OEM_FORMAT so that you can configure it out. Signed-off-by: Alex Kiernan Reviewed-by: Simon Glass --- Changes in v7: None Changes in v6: None Changes in v5: - new Changes in v4: None Changes in v3:

[U-Boot] [PATCH v7 15/18] net: fastboot: Merge AOSP UDP fastboot

2018-05-24 Thread Alex Kiernan
Merge UDP fastboot support from AOSP: https://android.googlesource.com/platform/external/u-boot/+/android-o-mr1-iot-preview-8 Signed-off-by: Alex Kiernan Signed-off-by: Alex Deymo Signed-off-by: Jocelyn Bohr Reviewed-by: Simon Glass --- Changes in v7: None Changes in v6: - add docbook com

[U-Boot] [PATCH v7 09/18] fastboot: Extract common definitions from USB fastboot

2018-05-24 Thread Alex Kiernan
Move FASTBOOT_VERSION to include/fastboot.h so when we merge the UDP code we only have one definition. Signed-off-by: Alex Kiernan Reviewed-by: Simon Glass Acked-by: Joe Hershberger --- Changes in v7: None Changes in v6: None Changes in v5: None Changes in v4: - leave strcmp_l1() in USB fastbo

[U-Boot] [PATCH v7 00/18] Add fastboot UDP support

2018-05-24 Thread Alex Kiernan
This series merges the fastboot UDP support from AOSP into mainline U-Boot. Changes in UDP behaviour from the AOSP code, so it follows the existing USB behaviour: - 'boot' now follows the USB code and does 'bootm CONFIG_FASTBOOT_BUF_ADDR'. I've added 'fastboot_bootcmd' which if set overrides t

[U-Boot] [PATCH v7 17/18] usb: fastboot: Convert USB f_fastboot to shared fastboot

2018-05-24 Thread Alex Kiernan
Convert USB fastboot code to use shared fastboot protocol. Signed-off-by: Alex Kiernan --- Changes in v7: - set FASTBOOT_CMD_OEM_FORMAT for all existing users of FASTBOOT_FLASH_MMC_DEV that also have CMD_GPT Changes in v6: - merged from RFC USB fastboot series - when entering the DATA phase e

[U-Boot] [PATCH v7 01/18] fastboot: Move fastboot to drivers/fastboot

2018-05-24 Thread Alex Kiernan
Separate CMD_FASTBOOT from FASTBOOT and move code and configuration to drivers/fastboot. Switch dependencies on FASTBOOT to USB_FUNCTION_FASTBOOT as anyone who wants FASTBOOT before this series wants USB_FUNCTION_FASTBOOT. Split USB_FUNCTION_FASTBOOT from FASTBOOT so they retain their existing beh

Re: [U-Boot] [PATCH v6 17/18] usb: fastboot: Convert USB f_fastboot to shared fastboot

2018-05-24 Thread Alex Kiernan
Hi Sam On Tue, May 22, 2018 at 8:16 PM Alex Kiernan wrote: > On Tue, May 22, 2018 at 7:41 PM Sam Protsenko > wrote: > > On 22 May 2018 at 18:53, Alex Kiernan wrote: > > > On Tue, May 22, 2018 at 4:29 PM Sam Protsenko < > semen.protse...@linaro.org> > > > wrote: > > > > > >> On 22 May 2018 at

[U-Boot] [PATCH 1/2] fit: allow fit to call hardware accelerated hash

2018-05-24 Thread Ben Whitten
Move to calling the abstraction which allows for hardware acceleration. Signed-off-by: Ben Whitten --- common/image-fit.c | 26 -- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/common/image-fit.c b/common/image-fit.c index 8c15ed1..01ea864 100644 --- a/c

[U-Boot] [PATCH 2/2] crypto: add Atmel hardware acceleration for SHA1 & 256

2018-05-24 Thread Ben Whitten
We can use the hardware hash block to reduce space, particularly useful for verifying FIT signatures from SPL. Signed-off-by: Ben Whitten --- drivers/crypto/Kconfig | 5 + drivers/crypto/Makefile| 1 + drivers/crypto/atmel_sha.c | 289 + dr

[U-Boot] [PATCH] board: STiH410-B2260: Add pxefile_addr_r variable

2018-05-24 Thread riku . voipio
From: Riku Voipio Reading doc/README.distro , we see platform needs to set pxefile_addr_r to support distro boot. Signed-off-by: Riku Voipio --- include/configs/stih410-b2260.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/configs/stih410-b2260.h b/include/configs/stih410-b2260.h

  1   2   >