[U-Boot] [PATCH] Nios2 altera: add reference to in_be32, out_be32

2017-01-20 Thread Kostya Belezko
Fixing compilation problem u-boot-socfpga/drivers/serial/ns16550.c:144: undefined reference to `out_be32' --- arch/nios2/include/asm/io.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/nios2/include/asm/io.h b/arch/nios2/include/asm/io.h index 69ab23e..65a1e04 100644 ---

[U-Boot] u-boot hangs when attaching an mtd to ubi using spinor flash, MX25L51245G

2017-01-20 Thread Davis Roman
Hello, I'm seeing unusual behavior when u-boot attempts to attach an mtd partition to a ubi device using a spi-nor flash (MX25L51245G). When the mtd partition size is set to less than 15MiB, the attach works, however when the mtd partition size is increased to 16MB or greater, u-boot displays

[U-Boot] [PATCH] LS1021ATWR: Modify u-boot size for sd secureboot

2017-01-20 Thread Vinitha Pillai-B57223
From: Vinitha Pillai Raw uboot image is used in place of FIT image in secure boot. The maximum allocated size of raw u-boot bin is 1MB in memory map. Hence , CONFIG_SYS_MONITOR_LEN has been modified to 1 MB. The bootscript (BS_ADDR) and its header (BS_HDR_ADDR) offset on

Re: [U-Boot] u-boot hangs when attaching an mtd to ubi using spinor flash, MX25L51245G

2017-01-20 Thread Davis Roman
My apologizes, the formatting was off in my last email. --- Hello, I'm seeing unusual behavior when u-boot attempts to attach an mtd partition to a ubi device using a spi-nor flash (MX25L51245G). When the mtd partition

[U-Boot] [PATCH 4/4] mmc: meson: add MMC support in Odroid C2 board init / config

2017-01-20 Thread Heiner Kallweit
Add MMC support in Odroid C2 board init code and config. Signed-off-by: Heiner Kallweit --- board/amlogic/odroid-c2/odroid-c2.c | 27 +++ configs/odroid-c2_defconfig | 6 +- 2 files changed, 32 insertions(+), 1 deletion(-) diff --git

[U-Boot] [PATCH 0/4] mmc: meson: add MMC support for Meson GX (S905)

2017-01-20 Thread Heiner Kallweit
This patch set implements eMMC on Amlogic Meson GX (S905). It's based on Carlo Caione's work submitted here: http://lists.denx.de/pipermail/u-boot/2016-May/254391.html Changes to the original version: - BLK support added - fully DT-based now - minor general refactoring The driver was

Re: [U-Boot] [PATCH RFC] common/image: Allow initrd_high & fdt_high to have special case no_reloc

2017-01-20 Thread Tom Rini
On Wed, Jan 18, 2017 at 02:50:28AM +0200, Tuomas Tynkkynen wrote: > The documented way of disabling relocation of the initrd or FDT is > setting initrd_high or fdt_high to 0x. > However, that is actually wrong on 64-bit platforms, where > 0x needs to be used. This is

[U-Boot] [PATCH v4 00/17] arm: rpi: Enable USB, Ethernet, MMC, Video driver model on Raspberry Pi

2017-01-20 Thread Simon Glass
Raspberry Pi uses a DWC2 USB controller and a SMSC USB Ethernet adaptor. Driver model support for these is available. This series does the following: - Enable CONFIG_DM_ETH and CONFIG_DM_USB on Raspberry Pi - Convert the MMC driver to driver model - Convert the video driver to driver model -

[U-Boot] [PATCH v4 02/17] dm: video: Correct line clearing code

2017-01-20 Thread Simon Glass
At present we clear many more bytes than we should on 16bpp and 32bpp displays. The number of pixels to clear is currently calculated as the line length (in bytes) multiplied by the number of lines to clear. This is only correct for 8bpp displays. Correct the calculation to use the number of text

[U-Boot] [PATCH] x86: baytrail: Configure SPI BIOS parameters

2017-01-20 Thread Stefan Roese
Without configuring these registers in the SPI controller, the Linux MTD device driver is not able to correctly read/write to the SPI NOR chip at all. In fact, the chip is not detected at all. Signed-off-by: Stefan Roese Cc: Simon Glass Cc: Bin Meng

[U-Boot] [PATCH v4 04/17] arm: rpi: Drop the GPIO device addresses

2017-01-20 Thread Simon Glass
We can rely on the device tree to provide this information. Signed-off-by: Simon Glass --- Changes in v4: None Changes in v3: None arch/arm/mach-bcm283x/include/mach/gpio.h | 5 - 1 file changed, 5 deletions(-) diff --git a/arch/arm/mach-bcm283x/include/mach/gpio.h

[U-Boot] [PATCH v4 01/17] dm: mmc: Set up the MMC device when controller is probed

2017-01-20 Thread Simon Glass
When an MMC controller is set up we should probe the device to find out what it is. This includes finding its capacity and reading its partition table. Signed-off-by: Simon Glass --- Changes in v4: None Changes in v3: None drivers/mmc/mmc-uclass.c | 12 1 file

[U-Boot] [PATCH v4 09/17] arm: rpi: Add a function to obtain the MMC clock

2017-01-20 Thread Simon Glass
Move this code into the new message handler file. Signed-off-by: Simon Glass --- Changes in v4: None Changes in v3: None arch/arm/mach-bcm283x/include/mach/msg.h | 7 +++ arch/arm/mach-bcm283x/msg.c | 28

[U-Boot] [PATCH v4 06/17] dm: arm: rpi: Move to driver model for USB

2017-01-20 Thread Simon Glass
Start using driver model for USB on the Raspberry Pi. The dwc2 supports this now so this is just a config change. Signed-off-by: Simon Glass --- Changes in v4: None Changes in v3: None configs/rpi_2_defconfig | 1 + configs/rpi_3_32b_defconfig | 1 +

[U-Boot] [PATCH v4 03/17] string: Use memcpy() within memmove() when we can

2017-01-20 Thread Simon Glass
A common use of memmove() can be handled by memcpy(). Also memcpy() includes an optimisation for large sizes: it copies a word at a time. So we can get a speed-up by calling memcpy() to handle our move in this case. Update memmove() to call memcpy() if the destination is before the source.

[U-Boot] [PATCH v4 07/17] dm: arm: rpi: Use driver model for Ethernet

2017-01-20 Thread Simon Glass
Enable CONFIG_DM_ETH so that driver model is used for the USB Ethernet device. Signed-off-by: Simon Glass --- Changes in v4: None Changes in v3: None configs/rpi_2_defconfig | 1 + configs/rpi_3_32b_defconfig | 1 + configs/rpi_3_defconfig | 1 +

[U-Boot] [PATCH v4 05/17] arm: rpi: Drop CONFIG_CONS_INDEX

2017-01-20 Thread Simon Glass
This is not needed now that serial uses driver model. Signed-off-by: Simon Glass --- Changes in v4: None Changes in v3: None include/configs/rpi.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/configs/rpi.h b/include/configs/rpi.h index ce539a008cc..fe0e6a060ae

[U-Boot] [PATCH v4 17/17] arm: rpi: Add a TODO to move all messages into the msg handler

2017-01-20 Thread Simon Glass
The board code should all move into msg.c for consistency. Add a TODO for this. Signed-off-by: Simon Glass --- Changes in v4: - Add patches to convert video and MMC to driver model also - Rebase to master Changes in v3: - Drop applied patches from series - Drop patch to

[U-Boot] [PATCH v4 16/17] dm: video: arm: rpi: Convert to use driver model for video

2017-01-20 Thread Simon Glass
Adjust the video driver to work with driver model and move over existing baords. There is no need to keep the old code. We can also drop setting of CONFIG_FB_ADDR since driver model doesn't have this problem. Signed-off-by: Simon Glass --- Changes in v4: None Changes in v3:

[U-Boot] [PATCH v4 14/17] dm: video: Refactor lcd_simplefb to prepare for driver model

2017-01-20 Thread Simon Glass
Adjust this function so that we can convert it to support CONFIG_DM_VIDEO without a lot of code duplication. Signed-off-by: Simon Glass --- Changes in v4: None Changes in v3: None common/lcd_simplefb.c | 33 ++--- 1 file changed, 22

[U-Boot] [PATCH v4 15/17] dm: video: Add driver-model support to lcd_simplefb

2017-01-20 Thread Simon Glass
Allow this to work with CONFIG_DM_VIDEO enabled. Signed-off-by: Simon Glass --- Changes in v4: None Changes in v3: None common/lcd_simplefb.c | 18 ++ 1 file changed, 18 insertions(+) diff --git a/common/lcd_simplefb.c b/common/lcd_simplefb.c index

[U-Boot] [PATCH v4 10/17] dm: mmc: rpi: Convert Raspberry Pi to driver model for MMC

2017-01-20 Thread Simon Glass
Convert the bcm2835 SDHCI driver over to support CONFIG_DM_MMC and move all boards over. There is no need to keep the old code since there are no other users. Signed-off-by: Simon Glass --- Changes in v4: None Changes in v3: None board/raspberrypi/rpi/rpi.c | 13

[U-Boot] [PATCH v4 08/17] arm: rpi: Add a file to handle messages

2017-01-20 Thread Simon Glass
The bcm283x chips provide a way for the ARM core to communicate with the graphics processor, which is in charge of many things. This is handled by way of a message prototcol. At present the code for sending message (and receiving a reply) is spread around U-Boot, primarily in the board file. This

[U-Boot] [PATCH v4 12/17] video: arm: rpi: Move the video query out of the driver

2017-01-20 Thread Simon Glass
Add a function to get the video size to the msg handler and remove it from the video driver. Signed-off-by: Simon Glass --- Changes in v4: None Changes in v3: None arch/arm/mach-bcm283x/include/mach/msg.h | 9 + arch/arm/mach-bcm283x/msg.c | 26

[U-Boot] [PATCH v4 13/17] video: arm: rpi: Move the video settings out of the driver

2017-01-20 Thread Simon Glass
Add a function to set the video parameters to the msg handler and remove it from the video driver. Signed-off-by: Simon Glass --- Changes in v4: None Changes in v3: None arch/arm/mach-bcm283x/include/mach/msg.h | 17 arch/arm/mach-bcm283x/msg.c | 61

[U-Boot] [PATCH v4 11/17] dm: arm: rpi: Drop CONFIG_OF_EMBED

2017-01-20 Thread Simon Glass
We should not use an embedded device tree on a production board. There does not seem to be any reason for it in commit 7670909. So drop this. Signed-off-by: Simon Glass --- Changes in v4: None Changes in v3: None configs/rpi_2_defconfig | 1 -

[U-Boot] Driver not loaded by SPL

2017-01-20 Thread Felix Brack
Hello, I have written a pin controller driver for the TI AM335x SOC using U-Boot 2016.11-rc1. I use device tree to configure the board's hardware. The driver runs fine once u-boot.img is loaded. However it does not get loaded by the SPL code. Using the hang() routine for "debugging" I can tell

Re: [U-Boot] [PATCH 0/1] Distroboot support for DE0-nano-SoC board

2017-01-20 Thread Marek Vasut
On 01/20/2017 07:11 PM, Frank Kunz wrote: > Am 20.01.2017 um 18:18 schrieb Marek Vasut: >> On 01/20/2017 05:45 PM, Frank Kunz wrote: >> >> Hi, >> >>> This patch adds common distribution boot environment variables for >>> DE0-nanos-SoC board. It disables the watchdog enalbe in uboot since >>> this

[U-Boot] [PATCH 6/7] STiH410-B2260: add device tree

2017-01-20 Thread patrice.chotard
From: Patrice Chotard This device tree has been extracted from v4.9 kernel Signed-off-by: Patrice Chotard --- arch/arm/dts/Makefile |3 + arch/arm/dts/st-pincfg.h | 71 ++

[U-Boot] [PATCH 4/7] STiH410: Add STi SDHCI driver

2017-01-20 Thread patrice.chotard
From: Patrice Chotard Signed-off-by: Patrice Chotard --- arch/arm/Kconfig | 2 + arch/arm/include/asm/arch-stih410/sdhci.h | 69 +++ arch/arm/include/asm/arch-stih410/sti.h | 5 ++

[U-Boot] [PATCH 2/7] board: Add STMicroelectronics STiH410-B2260 support

2017-01-20 Thread patrice.chotard
From: Patrice Chotard This board is a 96Board based on STMicrolectronics STiH410 soc: - 1GB DDR - On-Board USB combo WiFi/Bluetooth RTL8723BU with PCB soldered antenna - Ethernet 1000-BaseT - Sata - HDMI - 2 x USB2 type A - micro USB2 type AB - SD card

Re: [U-Boot] [PATCH 0/1] Distroboot support for DE0-nano-SoC board

2017-01-20 Thread Frank Kunz
Am 20.01.2017 um 18:18 schrieb Marek Vasut: > On 01/20/2017 05:45 PM, Frank Kunz wrote: > > Hi, > >> This patch adds common distribution boot environment variables for >> DE0-nanos-SoC board. It disables the watchdog enalbe in uboot since >> this is done by the OS. > > So if the board hangs in

[U-Boot] [PATCH 1/7] arm: Add support for STMicroelectronics STiH410 soc

2017-01-20 Thread patrice.chotard
From: Patrice Chotard The STiH410 is an advanced multi-HD AVC processor with 3D graphics acceleration and 1.5-GHz ARM Cortex-A9 SMP CPU part of the stih407 family. It has wide connectivity including USB 3.0, PCI-e, SATA and gigabit ethernet. Signed-off-by: Patrice

[U-Boot] [PATCH 3/7] STiH410: Add STi serial driver

2017-01-20 Thread patrice.chotard
From: Patrice Chotard This patch adds support to ASC (asynchronous serial controller) driver, which is basically a standard serial driver. This IP is common across other STMicroelectronics SoCs Signed-off-by: Patrice Chotard --- arch/arm/Kconfig

[U-Boot] [PATCH 0/7] Add STMicroelectronics STiH410-B2260 board support

2017-01-20 Thread patrice.chotard
From: Patrice Chotard This boards is a 96boards based on STiH410 SoC. This series adds basic support with serial, mmc and pinctrl support. Patrice Chotard (7): arm: Add support for STMicroelectronics STiH410 soc board: Add STMicroelectronics STiH410-B2260 support

[U-Boot] Uboot: Problem when compiling old Uboot version with new gcc

2017-01-20 Thread Prasant J
(Sorry for posting about uboot on the eldk mailing list. I am now posting it on Uboot mailing list) Hi, For my Cortex-A5 based ARM Processor (from ADI), I'm trying to compile old uboot (2015.01) release with a new compiler (gcc6). Its giving the following error:

[U-Boot] [PATCH v2] cros_ec: i2c: Add support for version 3 of the EC protocol

2017-01-20 Thread Moritz Fischer
Add support for version 3 of the ec protocol. It basically works by stitching some additional header in front (special command code), and having a result and packet_length stitched on for the reply. Signed-off-by: Moritz Fischer Cc: Simon Glass Cc:

[U-Boot] [PATCH 5/7] STiH410: add STi pinctrl driver

2017-01-20 Thread patrice.chotard
From: Patrice Chotard Signed-off-by: Patrice Chotard --- drivers/pinctrl/Kconfig | 10 ++ drivers/pinctrl/Makefile | 1 + drivers/pinctrl/pinctrl-sti.c | 311 ++ 3 files changed, 322

[U-Boot] ERROR: can't get kernel image!

2017-01-20 Thread Borisa Jevtic
Hi guys. I have come across a bulletin that blames the problem (described bellow) on the U-Boot bootloader: https://e2e.ti.com/support/embedded/linux/f/354/t/73788 And this is a typical bootup sequence happening for us: U-Boot 1.3.4 (Feb 28 2012 - 20:31:25) - AT91SAM9260@200 MHz - DRAM: 64 MB

[U-Boot] [PATCH 7/7] STIH410-B2260: Add STiH410-B2260 defconfig

2017-01-20 Thread patrice.chotard
From: Patrice Chotard Signed-off-by: Patrice Chotard --- configs/stih410-b2260_defconfig | 22 ++ 1 file changed, 22 insertions(+) create mode 100644 configs/stih410-b2260_defconfig diff --git

Re: [U-Boot] [U-Boot, 1/2] spl: Move check for SPL_LIBCOMMON support to header

2017-01-20 Thread Tom Rini
On Fri, Jan 20, 2017 at 10:38:41AM -0600, Andrew F. Davis wrote: > On 01/20/2017 10:25 AM, Tom Rini wrote: > > On Fri, Jan 06, 2017 at 01:35:44PM -0600, Andrew F. Davis wrote: > > > >> Print statements in SPL depend on lib/common support, so many such > >> statements are ifdef'd, move the check

Re: [U-Boot] [linux-sunxi] Re: [RFC PATCH 08/11] sunxi: SPL: add FIT config selector for Pine64 boards

2017-01-20 Thread Icenowy Zheng
21.01.2017, 05:56, "André Przywara" : > On 20/01/17 21:35, Maxime Ripard wrote: > > Hi Maxime, > > thanks for having a look! > >>  On Fri, Jan 20, 2017 at 01:53:28AM +, Andre Przywara wrote: >>>  For a board or platform to support FIT loading in the SPL, it has to >>>

Re: [U-Boot] [linux-sunxi] Re: [RFC PATCH 08/11] sunxi: SPL: add FIT config selector for Pine64 boards

2017-01-20 Thread Icenowy Zheng
21.01.2017, 05:56, "André Przywara" : > On 20/01/17 21:35, Maxime Ripard wrote: > > Hi Maxime, > > thanks for having a look! > >>  On Fri, Jan 20, 2017 at 01:53:28AM +, Andre Przywara wrote: >>>  For a board or platform to support FIT loading in the SPL, it has to >>>

Re: [U-Boot] [U-Boot, v2] api: Use hashtable function for API_env_enum

2017-01-20 Thread Tom Rini
On Mon, Dec 26, 2016 at 06:57:56PM +0100, Emmanuel Vadot wrote: > The current code can loop undefinitly as it doesn't parse > correctly the env data. > Since the env is an hashtable, use the hashtable function for > the API_ENV_ENUM api call. > > Signed-off-by: Emmanuel Vadot

Re: [U-Boot] [U-Boot, 1/1] common/image.c: prefixes for binary multiples

2017-01-20 Thread Tom Rini
On Wed, Jan 04, 2017 at 02:04:44PM +0100, xypron.g...@gmx.de wrote: > IEC 8-13:2008 Quantities and units > Part 13: Information science and technology > > defines the prefixes to use for binary multiples. > > Instead of writing > Data Size:6726132 Bytes = 6568.49 kB = 6.41 MB > in

Re: [U-Boot] [U-Boot, 1/2] ARM: Default to using optimized memset and memcpy routines

2017-01-20 Thread Tom Rini
On Thu, Jan 12, 2017 at 01:16:02PM -0500, Tom Rini wrote: > We have long had available optimized versions of the memset and memcpy > functions that are borrowed from the Linux kernel. We should use these > in normal conditions as the speed wins in many workflows outweigh the > relatively minor

Re: [U-Boot] [U-Boot, 2/2] spl: Remove inline ifdef check for EXT and FAT support

2017-01-20 Thread Tom Rini
On Fri, Jan 06, 2017 at 01:35:45PM -0600, Andrew F. Davis wrote: > These files are only included for build by the make system > when CONFIG_SPL_{EXT,FAT}_SUPPORT is enabled, remove the unneed > checks for these in the source files. > > Signed-off-by: Andrew F. Davis > Reviewed-by:

Re: [U-Boot] api: storage: Test all block device in dev_stor_get

2017-01-20 Thread Tom Rini
On Thu, Jan 05, 2017 at 06:40:21AM +0100, Emmanuel Vadot wrote: > In a config with one MMC at device id '1' and no MMC at device id '0' > (a BeagleBone Black with no sd inserted for example), the current code > will first test to access the MMC 0 (sd port), seeing that no device is > present it

Re: [U-Boot] mach-omap2: Fix secure boot media generation

2017-01-20 Thread Tom Rini
On Thu, Jan 12, 2017 at 10:21:58AM -0600, Andrew F. Davis wrote: > While moving OMAP related files to mach-omap2 the functionality > relating to generating secure boot files was modified. This change > prevents secure platforms other than AM33xx and OMAP54XX from > correctly building files for

Re: [U-Boot] spl: Add some missing newlines

2017-01-20 Thread Tom Rini
On Thu, Jan 12, 2017 at 10:19:55AM -0600, Andrew F. Davis wrote: > Signed-off-by: Andrew F. Davis > Acked-by: Lokesh Vutla > Acked-by: Michal Simek Applied to u-boot/master, thanks! -- Tom signature.asc Description: Digital

Re: [U-Boot] [U-Boot,2/2] board_init.c: Always use memset()

2017-01-20 Thread Tom Rini
On Thu, Jan 12, 2017 at 01:16:03PM -0500, Tom Rini wrote: > We can make the code read more easily here by simply using memset() > always as when we don't have an optimized version of the function we > will still have a version of this function around anyhow. > > Cc: Simon Glass

Re: [U-Boot] bootm: qnx: Disable data cache before booting QNX image

2017-01-20 Thread Tom Rini
On Thu, Jan 19, 2017 at 10:23:56AM +0100, Emmanuel Vadot wrote: > Instead of disabling the data cache in the bootelf command, disabling > it in the do_bootm_qnxelf function. > Some ELF binary might want the cache enabled. > > Signed-off-by: Emmanuel Vadot Applied to

Re: [U-Boot] spl: Add missing line ending to SPL print

2017-01-20 Thread Tom Rini
On Mon, Jan 16, 2017 at 01:06:48PM +0100, Michal Simek wrote: > One print requires line ending to be aligned with SW running > after it. Prints look weird without it. > > For example: > U-Boot SPL 2017.01-01801-g1fb1292c7b9d (Jan 16 2017 - 12:50:53) > EL Level: EL3 > Trying to boot from

Re: [U-Boot] binman: add tools directory to the python path

2017-01-20 Thread Tom Rini
On Mon, Jan 16, 2017 at 08:14:46AM +0100, Emmanuel Vadot wrote: > The built _libfdt.so is placed in the /tools dir and need to say here > as it contains relative paths. > Add the directory to the python path so binman can use this module. > > Signed-off-by: Emmanuel Vadot

Re: [U-Boot] meson: misc_init_r is board-specific

2017-01-20 Thread Tom Rini
On Sun, Jan 15, 2017 at 07:53:53PM +0100, Andreas Färber wrote: > Move it from meson-gxbb-common.h to odroid-c2.h to allow new boards not > to implement it. > > Signed-off-by: Andreas Färber Applied to u-boot/master, thanks! -- Tom signature.asc Description: Digital

Re: [U-Boot] [U-Boot,v3] odroid-c2: Enable distro boot

2017-01-20 Thread Tom Rini
On Sun, Jan 15, 2017 at 08:22:30PM +0100, Andreas Färber wrote: > Use the generic "distro" boot framework to enable automatic DHCP boot. > MMC and USB are not yet implemented, so this is the only boot option. > > The fdt and kernel addresses are adopted from downstream; ramdisk and > scriptaddr

Re: [U-Boot] MAINTAINERS: DFU: Change e-mail address of DFU maintanier

2017-01-20 Thread Tom Rini
On Mon, Jan 16, 2017 at 12:04:10AM +0100, Lukasz Majewski wrote: > Signed-off-by: Lukasz Majewski Applied to u-boot/master, thanks! -- Tom signature.asc Description: Digital signature ___ U-Boot mailing list U-Boot@lists.denx.de

Re: [U-Boot] [U-Boot,1/1] cmd/host: add missing \n in help text

2017-01-20 Thread Tom Rini
On Thu, Jan 19, 2017 at 05:49:13PM +0100, Sébastien Szymanski wrote: > Signed-off-by: Sébastien Szymanski Applied to u-boot/master, thanks! -- Tom signature.asc Description: Digital signature ___ U-Boot mailing

Re: [U-Boot] [PATCH] mx6saberesd_spl: Correct falcon mode addition

2017-01-20 Thread Tom Rini
On Fri, Jan 20, 2017 at 07:58:03PM -0500, Tom Rini wrote: > When falcon mode support was added, it was right around when SPL_OS_BOOT > was migrated to Kconfig. So first we must move the enablement to the > defconfig file. Next, it turned off EXT support rather than add the > information to

Re: [U-Boot] [U-Boot, RESEND] bootm: relocate ramdisk if CONFIG_SYS_BOOT_RAMDISK_HIGH set

2017-01-20 Thread Tom Rini
On Wed, Jan 18, 2017 at 05:12:24PM -0800, Rick Altherr wrote: > In 35fc84f, bootm was refactored so plain 'bootm' and > 'bootm ' shared a common implementation. > The 'bootm ramdisk' command implementation is now part of the common > implementation but not invoke by plain 'bootm' since the

Re: [U-Boot] tools: mkimage: fix sizeof_mismatch found by coverity

2017-01-20 Thread Tom Rini
On Tue, Jan 17, 2017 at 07:36:51PM +0100, Sven Ebenfeld wrote: > Reported-by: Coverity (CID: 155214) > Signed-off-by: Sven Ebenfeld Applied to u-boot/master, thanks! -- Tom signature.asc Description: Digital signature ___

Re: [U-Boot] [U-Boot,1/2] ARM: OMAP4: Fix compiler warning

2017-01-20 Thread Tom Rini
On Tue, Jan 17, 2017 at 08:52:58AM +0530, Lokesh Vutla wrote: > Latest gcc 6.2 compiler is throwing the below warning for > omap4_panda_defconfig > arch/arm/mach-omap2/omap4/hw_data.c:136:3: warning: > 'abe_dpll_params_sysclk_196608khz' defined but not used > [-Wunused-const-variable=] >

Re: [U-Boot] ARM: omap3_logic: Refactor Boot Environmental variables

2017-01-20 Thread Tom Rini
On Wed, Jan 04, 2017 at 11:51:24AM -0600, Adam Ford wrote: > Some scripts are calling the same functions, so these changes consolidate > common scripts together to reduce redundancy and shrink size a bit. This > also keeps the 'bootargs' variable from growing if manually called more > than one

Re: [U-Boot] [U-Boot, v2] serial, ns16550: bugfix: ns16550 fifo not enabled

2017-01-20 Thread Tom Rini
On Wed, Jan 18, 2017 at 08:05:49AM +0100, Heiko Schocher wrote: > commit: 65f83802b7a5b "serial: 16550: Add getfcr accessor" > breaks u-boot commandline working with long commands > sending to the board. > > Since the above patch, you have to setup the fcr register. > > For board/archs which

Re: [U-Boot] [U-Boot, 2/2] ARM: OMAP5+: Remove unsed dpll structures

2017-01-20 Thread Tom Rini
On Tue, Jan 17, 2017 at 08:52:59AM +0530, Lokesh Vutla wrote: > Latest gcc compile strted complaining about defined structure definition > that are not used. Remove the unused sturctures. > > Reported-by: Dan Murphy > Signed-off-by: Lokesh Vutla Applied to

Re: [U-Boot] build: Always build the libfdt python module

2017-01-20 Thread Tom Rini
On Mon, Jan 16, 2017 at 08:07:15AM +0100, Emmanuel Vadot wrote: > Do not rely on CONFIG_SPL_OF_PLATDATA to build the libfdt python module. > If swig is present, this will be build > > Signed-off-by: Emmanuel Vadot Applied to u-boot/master, thanks! -- Tom

Re: [U-Boot] [PATCH 1/1] cmd/host: add missing \n in help text

2017-01-20 Thread Simon Glass
On 19 January 2017 at 09:49, Sébastien Szymanski wrote: > Signed-off-by: Sébastien Szymanski > --- > cmd/host.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Reviewed-by: Simon Glass

Re: [U-Boot] [PATCH 2/2] board_init.c: Always use memset()

2017-01-20 Thread Simon Glass
Hi Tom, On 19 January 2017 at 07:25, Tom Rini wrote: > > On Thu, Jan 19, 2017 at 06:57:51AM -0700, Simon Glass wrote: > > On 12 January 2017 at 11:16, Tom Rini wrote: > > > We can make the code read more easily here by simply using memset() > > > always

Re: [U-Boot] [PATCH] MAINTAINERS: DFU: Change e-mail address of DFU maintanier

2017-01-20 Thread Simon Glass
On 15 January 2017 at 16:04, Lukasz Majewski wrote: > Signed-off-by: Lukasz Majewski > --- > MAINTAINERS | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Reviewed-by: Simon Glass ___ U-Boot

Re: [U-Boot] [PATCH] spl: Add missing line ending to SPL print

2017-01-20 Thread Simon Glass
On 16 January 2017 at 08:49, Michal Simek wrote: > On 16.1.2017 16:37, Lokesh Vutla wrote: >> >> >> On Monday 16 January 2017 05:36 PM, Michal Simek wrote: >>> One print requires line ending to be aligned with SW running >>> after it. Prints look weird without it. >>> >>>

Re: [U-Boot] [PATCH] rockchip: rename miniarm to tinker board

2017-01-20 Thread Simon Glass
Hi Eddie, On 15 January 2017 at 07:36, Eddie Cai wrote: > Miniarm is the internal project code. Now it is officially named Tinker board. > So rename it. > > Signed-off-by: Eddie Cai > --- > arch/arm/dts/Makefile | 2

Re: [U-Boot] [PATCH v2] i2c: mux: Allow muxes to work as children of i2c bus without i2c-parent

2017-01-20 Thread Simon Glass
On 16 January 2017 at 10:46, Moritz Fischer wrote: > For mux check if the parent is already a device of UCLASS_I2C and if yes > just use that. Otherwise see if someone specified an i2c-parent phandle. > This mimics the behavior found in the Kernel, as it removes the >

Re: [U-Boot] [PATCH v6 01/13] binman: Introduce binman, a tool for building binary images

2017-01-20 Thread Simon Glass
Hi, On 16 January 2017 at 13:25, Jörg Krause wrote: > Hi, > > On Fri, 2016-11-25 at 20:15 -0700, Simon Glass wrote: >> This adds the basic code for binman, including command parsing, >> processing >> of entries and generation of images. >> >> So far no entry types

Re: [U-Boot] [PATCH v2 1/4] kconfig: Add API kconfig file

2017-01-20 Thread Simon Glass
Hi, On 17 January 2017 at 08:50, Emmanuel Vadot wrote: > Add kconfig file to enable API support > > Signed-off-by: Emmanuel Vadot > --- > Kconfig | 2 ++ > api/Kconfig | 9 + > 2 files changed, 11 insertions(+) > create mode 100644

Re: [U-Boot] [PATCH 1/2] Enable ROCKCHIP_SPL_BACK_TO_BROM for firefly-rk3288 board

2017-01-20 Thread Simon Glass
On 17 January 2017 at 02:32, Romain Perier wrote: > Like the rock2, this board has been tested with back to brom feature. > This commits adjusts environment offset regarding if back_to_brom is > enabled or not and uses this feature by default. > > Signed-off-by:

Re: [U-Boot] [PATCH v2 3/4] api: FreeBSD: flush cache before starting loader/kernel

2017-01-20 Thread Simon Glass
Hi, On 17 January 2017 at 08:50, Emmanuel Vadot wrote: > From: Warner Losh > > FreeBSD loader(8) just loaded code to some random location that may > contain stale icache entries. > FreeBSD Kernel needs the icache and dcache flushed. > Before running

Re: [U-Boot] [PATCH 1/3] drivers: timer: Introduce ARC timer driver

2017-01-20 Thread Simon Glass
On 16 January 2017 at 06:49, Vlad Zakharov wrote: > This commit introduces timer driver for ARC. > > ARC timers are configured via ARC AUX registers so we use special > functions to access timer control registers. > > This driver allows utilization of either

Re: [U-Boot] [PATCH 2/2] rockchip: Enable ETH address randomization for the firefly-rk3288

2017-01-20 Thread Simon Glass
On 17 January 2017 at 02:32, Romain Perier wrote: > This commit enables ethernet MAC address randomization on the > firefly-rk3288. It removes the error at startup 'ethernet@ff29 > address not set'. > > Signed-off-by: Romain Perier >

Re: [U-Boot] [PATCH v2 2/4] kconfig: Add a FREEBSD option

2017-01-20 Thread Simon Glass
Hi, On 17 January 2017 at 08:50, Emmanuel Vadot wrote: > Add a FreeBSD option that enable the API and enable the data cache > command as it is needed to boot the FreeBSD loader. > > Signed-off-by: Emmanuel Vadot > --- > common/Kconfig | 9 +

Re: [U-Boot] [PATCH 12/12] aspeed: Configuration for ast2500 eval board

2017-01-20 Thread Simon Glass
Hi Maxim, On 17 January 2017 at 12:46, Maxim Sloyko wrote: > > > On Sat, Jan 14, 2017 at 9:14 AM, Simon Glass wrote: >> >> Hi Maxim, >> >> On 4 January 2017 at 12:46, Maxim Sloyko wrote: >> > --- >> > >> >> Commit message? >> >> > --- >>

Re: [U-Boot] [PATCH 05/12] aspeed/ast2500: Device Tree and bindings for some of the clocks

2017-01-20 Thread Simon Glass
Hi Maxim, On 17 January 2017 at 16:27, Maxim Sloyko wrote: > > > On Sat, Jan 14, 2017 at 9:13 AM, Simon Glass wrote: >> >> Hi Maxim, >> >> On 5 January 2017 at 15:20, Maxim Sloyko wrote: >> > On Wed, Jan 4, 2017 at 7:26 PM, Tom Rini

Re: [U-Boot] [U-boot] [PATCH 1/2] rockchip: configs: move env offset to common header

2017-01-20 Thread Simon Glass
On 16 January 2017 at 21:19, Jacob Chen wrote: > To reduce redundant code. > > Signed-off-by: Jacob Chen > --- > > include/configs/evb_rk3288.h | 14 -- > include/configs/fennec_rk3288.h | 14 -- >

Re: [U-Boot] [U-boot] [PATCH 2/2] rockchip: firefly: configs: use spl back to brom

2017-01-20 Thread Simon Glass
On 16 January 2017 at 21:19, Jacob Chen wrote: > Keep it same with other boards otherwise i have to write special script for > it.. > > Signed-off-by: Jacob Chen > --- > > configs/firefly-rk3288_defconfig | 2 +- >

Re: [U-Boot] [PATCH] binman: add tools directory to the python path

2017-01-20 Thread Simon Glass
On 16 January 2017 at 00:14, Emmanuel Vadot wrote: > The built _libfdt.so is placed in the /tools dir and need to say here > as it contains relative paths. > Add the directory to the python path so binman can use this module. > > Signed-off-by: Emmanuel Vadot

Re: [U-Boot] [PATCH] x86: baytrail: Configure SPI BIOS parameters

2017-01-20 Thread Simon Glass
Hi Stefan, On 20 January 2017 at 07:26, Stefan Roese wrote: > Without configuring these registers in the SPI controller, the Linux > MTD device driver is not able to correctly read/write to the SPI > NOR chip at all. In fact, the chip is not detected at all. > > Signed-off-by:

Re: [U-Boot] [PATCH 1/2] rockchip: rename miniarm to tinker board

2017-01-20 Thread Simon Glass
On 17 January 2017 at 20:03, Eddie Cai wrote: > Miniarm is the internal project code. Now it is officially named Tinker board. > So rename it. > > Signed-off-by: Eddie Cai > --- > arch/arm/dts/Makefile

Re: [U-Boot] [PATCH 2/3] arc: dts: separate single axs10x.dts file

2017-01-20 Thread Simon Glass
On 16 January 2017 at 06:49, Vlad Zakharov wrote: > We want to use the same device tree blobs in both Linux and U-Boot for > ARC boards. > > Earlier device tree sources in U-Boot were very simplified and hadn't been > updated for quite a long period of time. > >

Re: [U-Boot] [PATCH] spl: Add some missing newlines

2017-01-20 Thread Simon Glass
Hi Andrew, On 12 January 2017 at 09:19, Andrew F. Davis wrote: > Signed-off-by: Andrew F. Davis > --- > common/spl/spl.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/common/spl/spl.c b/common/spl/spl.c > index a76ea3a603..e43718de62

Re: [U-Boot] [RFC PATCH 08/11] sunxi: SPL: add FIT config selector for Pine64 boards

2017-01-20 Thread Siarhei Siamashka
On Fri, 20 Jan 2017 21:55:53 + André Przywara wrote: > On 20/01/17 21:35, Maxime Ripard wrote: > > Hi Maxime, > > thanks for having a look! > > > On Fri, Jan 20, 2017 at 01:53:28AM +, Andre Przywara wrote: > >> For a board or platform to support FIT loading

Re: [U-Boot] [PATCH 3/3] arc: use timer driver for ARC boards

2017-01-20 Thread Simon Glass
On 16 January 2017 at 06:49, Vlad Zakharov wrote: > This commit replaces legacy timer code with usage of arc timer > driver. > > It removes arch/arc/lib/time.c file and selects CONFIG_CLK, > CONFIG_TIMER and CONFIG_ARC_TIMER options for all ARC boards by default.

Re: [U-Boot] [PATCH] build: Always build the libfdt python module

2017-01-20 Thread Simon Glass
On 16 January 2017 at 00:07, Emmanuel Vadot wrote: > Do not rely on CONFIG_SPL_OF_PLATDATA to build the libfdt python module. > If swig is present, this will be build > > Signed-off-by: Emmanuel Vadot > --- > tools/Makefile | 2 +- > 1 file changed,

Re: [U-Boot] [RFC PATCH 05/11] tools: mksunxiboot: allow larger SPL binaries

2017-01-20 Thread Siarhei Siamashka
On Fri, 20 Jan 2017 01:53:25 + Andre Przywara wrote: > mksunxiboot limits the size of the resulting SPL binaries to pretty > conservative values to cover all SoCs and all boot media (NAND). > In preparation for supporting modern SoCs without NAND, which may > require

Re: [U-Boot] [RFC PATCH 09/11] sunxi: Pine64: defconfig: enable SPL FIT support

2017-01-20 Thread Maxime Ripard
On Fri, Jan 20, 2017 at 01:53:29AM +, Andre Przywara wrote: > The Pine64 (as all 64-bit Allwinner boards so far) need to load an > ARM Trusted Firmware image beside the actual U-Boot proper. > This can now be easily achieved by using the just extended SPL FIT > loading support, so enable it in

Re: [U-Boot] [PATCH] armv8/fsl-layerscape: fdt: remove SYSCLK frequency fixup for ls1012a

2017-01-20 Thread Scott Wood
On Fri, 2017-01-20 at 16:28 +, york sun wrote: > On 01/19/2017 07:34 PM, Yangbo Lu wrote: > > > > Generally SYSCLK frequency is dependent on on-board switch settings. > > It may vary as per requirement, but this doesn't apply to ls1012a. > > ls1012a has its SYSCLK frequencies specified in the

Re: [U-Boot] [PATCH] armv8/fsl-layerscape: fdt: remove SYSCLK frequency fixup for ls1012a

2017-01-20 Thread york sun
On 01/20/2017 01:36 PM, Scott Wood wrote: > On Fri, 2017-01-20 at 16:28 +, york sun wrote: >> On 01/19/2017 07:34 PM, Yangbo Lu wrote: >>> >>> Generally SYSCLK frequency is dependent on on-board switch settings. >>> It may vary as per requirement, but this doesn't apply to ls1012a. >>> ls1012a

Re: [U-Boot] [RFC PATCH 11/11] SPL: SPI: sunxi: add SPL FIT image support

2017-01-20 Thread Maxime Ripard
Hi, On Fri, Jan 20, 2017 at 01:53:31AM +, Andre Przywara wrote: > The sunxi-specific SPI load routine only knows how to load a legacy > U-Boot image. > Teach it how to handle FIT images as well, simply by providing the > existing SPL FIT loader with the right loader routine to access the SPI

Re: [U-Boot] [RFC PATCH 08/11] sunxi: SPL: add FIT config selector for Pine64 boards

2017-01-20 Thread André Przywara
On 20/01/17 21:35, Maxime Ripard wrote: Hi Maxime, thanks for having a look! > On Fri, Jan 20, 2017 at 01:53:28AM +, Andre Przywara wrote: >> For a board or platform to support FIT loading in the SPL, it has to >> provide a board_fit_config_name_match() routine, which helps to select >> one

Re: [U-Boot] [RFC PATCH 11/11] SPL: SPI: sunxi: add SPL FIT image support

2017-01-20 Thread André Przywara
On 20/01/17 21:37, Maxime Ripard wrote: > Hi, > > On Fri, Jan 20, 2017 at 01:53:31AM +, Andre Przywara wrote: >> The sunxi-specific SPI load routine only knows how to load a legacy >> U-Boot image. >> Teach it how to handle FIT images as well, simply by providing the >> existing SPL FIT

Re: [U-Boot] [RFC PATCH 00/11] extend FIT loading support (plus Pine64/ATF support)

2017-01-20 Thread André Przywara
Hi, On 20/01/17 17:35, Andrew F. Davis wrote: > On 01/20/2017 11:17 AM, Andre Przywara wrote: >> Hi Andrew, >> >> thanks for the comments. >> >> On 20/01/17 17:02, Andrew F. Davis wrote: >>> On 01/19/2017 07:53 PM, Andre Przywara wrote: Currently the FIT format is not used to its full

[U-Boot] [RFC PATCH] SPL: replace ctype implementation with tiny version

2017-01-20 Thread Andre Przywara
The ctype implementation (isdigit() & friends) works with an array of 256 Bytes - one for each character. This is pretty big in SPL terms, so let's replace this "bloated" implementation with a tiny version using C statements. This only implements the functions that the SPL requires and confines

  1   2   >