[U-Boot] [PATCH] qe/deep-sleep: add qe deep-sleep for generic board

2014-11-10 Thread Zhao Qiang
Deep sleep for generic board is supported now, and it use CONFIG_FSL_DEEP_SLEEP instead of CONFIG_DEEP_SLEEP, so modify it for qe. Signed-off-by: Zhao Qiang --- drivers/qe/qe.c | 31 +-- 1 file changed, 21 insertions(+), 10 deletions(-) diff --git a/drivers/qe/qe.c b

Re: [U-Boot] [PATCH] powerpc: remove orphaned boards mcc200 and prs200

2014-11-10 Thread Wolfgang Denk
Dear Nikita, In message <5460e6d9.10...@compulab.co.il> you wrote: > > >> TOP5200 powerpc mpc5200- - > >> Reinhard Meyer > >> TOP860powerpc mpc860 - - > >> Reinhard Meyer > >> TOP9000 arm

[U-Boot] [PATCH] qe/deep-sleep: add qe deep-sleep for generic board

2014-11-10 Thread Zhao Qiang
Deep sleep for generic board is supported now, and it use CONFIG_FSL_DEEP_SLEEP instead of CONFIG_DEEP_SLEEP, so modify it for qe. Signed-off-by: Zhao Qiang --- drivers/qe/qe.c | 23 +-- 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/drivers/qe/qe.c b/drivers/

[U-Boot] [PATCH v7 0/6] fs: fat/ext4/sandbox - Deal with files greater than 2GB

2014-11-10 Thread Suriyan Ramasami
The commands fatls/ext4ls give negative values when dealing with files greater than 2GB. The commands fatsize/ext4size do not update the variable filesize for these files. To deal with this, the fs functions have been modified to take an additional parameter of type "* loff_t" which is then popul

[U-Boot] Fix for ns16550 driver hanging on OMAP4

2014-11-10 Thread Gregoire Gentil
Here is a patch to apply the same fix on OMAP4 boards as on OMAP3, in order to prevent ns16550 hanging during SPL boot, Grégoire diff --git a/drivers/serial/ns16550.c b/drivers/serial/ns16550.c index 8f05191..a1d3781 100644 --- a/drivers/serial/ns16550.c +++ b/drivers/serial/ns16550.c @@ -132

[U-Boot] [PATCH v2 31/33] x86: ivybridge: Add LAPIC support

2014-11-10 Thread Simon Glass
The local advanced programmable interrupt controller is not used much in U-Boot but we do need to set it up. Add basic support for this, which will be extended as needed. Signed-off-by: Simon Glass --- Changes in v2: None arch/x86/cpu/ivybridge/cpu.c | 3 ++ arch/x86/include/asm/lapic.h

[U-Boot] [PATCH v2 09/33] x86: Replace fill_processor_name() with cpu_get_name()

2014-11-10 Thread Simon Glass
This implementation has a 'cpu' prefix and returns a pointer to the string, avoiding the need for copying. Signed-off-by: Simon Glass --- Changes in v2: - Add new patch to replace fill_processor_name() with cpu_get_name() arch/x86/cpu/cpu.c | 22 ++ arch/x86/includ

[U-Boot] [PATCH v2 13/33] x86: Emit post codes in startup code for Chromebooks

2014-11-10 Thread Simon Glass
On x86 it is common to use 'post codes' which are 8-bit hex values emitted from the code and visible to the user. Traditionally two 7-segment displays were made available on the motherboard to show the last post code that was emitted. This allows diagnosis of a boot problem since it is possible to

[U-Boot] [PATCH v2 32/33] x86: ivybridge: Implement SDRAM init

2014-11-10 Thread Simon Glass
Implement SDRAM init using the Memory Reference Code (mrc.bin) provided in the board directory and the SDRAM SPD information in the device tree. This also needs the Intel Management Engine (me.bin) to work. Binary blobs everywhere: so far we have MRC, ME and microcode. SDRAM init works by setting

[U-Boot] [PATCH v2 33/33] x86: Rename chromebook-x86 to coreboot

2014-11-10 Thread Simon Glass
Rename this vendor since it is intended to be used on any platform where coreboot runs at reset and then loads U-Boot. So far it is only tested on link. When other boards are supported it is likely that we will need to move to multiple board names, all under the 'coreboot' vendor. So while it woul

[U-Boot] [PATCH v2 01/33] Move early malloc() to before arch_cpu_init()

2014-11-10 Thread Simon Glass
For some CPUs, having malloc() available very early is useful. There is no reason to delay this since early malloc is allocated before board_init_f() is called. Move early malloc() init nearer to the start of the init sequence. Signed-off-by: Simon Glass --- Changes in v2: None common/board_f

[U-Boot] [PATCH v2 23/33] x86: ivybridge: Perform initial CPU setup

2014-11-10 Thread Simon Glass
Set up the flex ratio (controls speed versus heat output) and a few other very early things. Signed-off-by: Simon Glass --- Changes in v2: None arch/x86/cpu/ivybridge/cpu.c | 130 ++ arch/x86/include/asm/arch-ivybridge/model_206ax.h | 82 ++

[U-Boot] [PATCH v2 30/33] x86: Make show_boot_progress() common

2014-11-10 Thread Simon Glass
This function can probably be used on all x86 boards, so move it into the common file. Signed-off-by: Simon Glass --- Changes in v2: None arch/x86/cpu/coreboot/coreboot.c | 24 arch/x86/cpu/cpu.c | 24 2 files changed, 24 insertio

[U-Boot] [PATCH v2 29/33] x86: chromebook_link: Enable GPIO support

2014-11-10 Thread Simon Glass
Enable GPIO support and provide the required GPIO setup information to the driver. Signed-off-by: Simon Glass --- Changes in v2: None arch/x86/dts/link.dts | 3 + board/google/chromebook_link/link.c | 107 include/configs/chromebook_link.h

[U-Boot] [PATCH v2 24/33] x86: ivybridge: Check BIST value on boot

2014-11-10 Thread Simon Glass
The built-in self test value should be checked before we continue booting. Refuse to continue if there is something wrong. Signed-off-by: Simon Glass --- Changes in v2: None arch/x86/cpu/ivybridge/cpu.c | 16 1 file changed, 16 insertions(+) diff --git a/arch/x86/cpu/ivybridg

[U-Boot] [PATCH v2 25/33] x86: ivybridge: Perform Intel microcode update on boot

2014-11-10 Thread Simon Glass
Microcode updates are stored in the device tree. Work through these and apply any that are needed. Signed-off-by: Simon Glass --- Changes in v2: None arch/x86/cpu/ivybridge/Makefile | 1 + arch/x86/cpu/ivybridge/cpu.c| 5 + arch/x86/cpu/ivybridge/microco

[U-Boot] [PATCH v2 11/33] x86: Add chromebook_link board

2014-11-10 Thread Simon Glass
This board is a 'bare' version of the existing 'link 'board. It does not require coreboot to run, but is intended to start directly from the reset vector. This initial commit has place holders for a wide range of features. These will be added in follow-on patches and series. So far it cannot be bo

[U-Boot] [PATCH v2 19/33] x86: ivybridge: Add early LPC init so that serial works

2014-11-10 Thread Simon Glass
The PCH (Platform Controller Hub) includes an LPC (Low Pin Count) device which provides a serial port. This is accessible on Chromebooks, so enable it early in the boot process. Signed-off-by: Simon Glass --- Changes in v2: - Fix mangled cros_ec reg property arch/x86/cpu/ivybridge/Makefile

[U-Boot] [PATCH v2 03/33] dm: serial: Move current serial port pointer to global_data

2014-11-10 Thread Simon Glass
In general we can't store things in the data section until we have inited SDRAM. Some platforms allow this (e.g. those with SPL) but some don't. Move the pointer to global_data so that it will work on all platforms. Without this fix the serial port will not work prior to relocation with driver mod

[U-Boot] [PATCH v2 06/33] x86: config: Move common x86 configs to a common file

2014-11-10 Thread Simon Glass
Many of the x86 CONFIG options will be common across different boards. Move them to a common file. Signed-off-by: Simon Glass --- Changes in v2: - Move some features out of the common file include/configs/coreboot.h | 265 ++- include/configs/x86-commo

[U-Boot] [PATCH v2 27/33] x86: ivybridge: Add early init for PCH devices

2014-11-10 Thread Simon Glass
Many PCH devices are hard-coded to a particular PCI address. Set these up early in case they are needed. Signed-off-by: Simon Glass --- Changes in v2: None arch/x86/cpu/ivybridge/Makefile | 1 + arch/x86/cpu/ivybridge/cpu.c | 141 +

[U-Boot] [PATCH v2 26/33] x86: dts: Add microcode updates for ivybridge CPU

2014-11-10 Thread Simon Glass
Add two microcode updates that are provided for this CPU. The updates have been converted to a device tree form. Note: SPDX submission has been done. If this license is approved I will convert the files to use SPDX. Signed-off-by: Simon Glass --- Changes in v2: - Change commit message to indica

[U-Boot] [PATCH v2 14/33] x86: chromebook_link: Implement CAR support (cache as RAM)

2014-11-10 Thread Simon Glass
Add support for CAR so that we have memory to use prior to DRAM init. On link there is a total of 128KB of CAR available, although some is used for the memory reference code. Signed-off-by: Simon Glass --- Changes in v2: - Expand the comment about preserving ebp - Move SIPI code to after CAR ini

[U-Boot] [PATCH v2 20/33] x86: Tidy up coreboot header usage

2014-11-10 Thread Simon Glass
There is no need to explicitly write 'arch-coreboot' when including headers, as when the arch directory points to coreboot the correct files will be used. Signed-off-by: Simon Glass --- Changes in v2: None arch/x86/cpu/coreboot/coreboot.c | 4 ++-- arch/x86/cpu/coreboot/ipchecksum.c | 2 +-

[U-Boot] [PATCH v2 15/33] x86: Refactor PCI to permit alternate init

2014-11-10 Thread Simon Glass
We want access PCI earlier in the init sequence, so refactor the code so that it does not require use of a BSS variable to work. This will allow us to use early malloc() to store information about a PCI hose. Common PCI code moves to arch/x86/cpu/pci.c and a new board_pci_setup_hose() function is

[U-Boot] [PATCH v2 10/33] x86: Tidy up timer code for Intel core architecture

2014-11-10 Thread Simon Glass
We can use an MSR to obtain the time base. Add this back in and consolidate the code. Signed-off-by: Simon Glass --- Changes in v2: - Add new patch to tidy up timer code for Intel core architecture arch/x86/cpu/interrupts.c | 28 arch/x86/lib/tsc_timer.c | 16

[U-Boot] [PATCH v2 18/33] x86: pci: Allow configuration before relocation

2014-11-10 Thread Simon Glass
Add simple PCI access routines for x86 which permit use before relocation. The normal PCI stack is still used, but for pre-relocation use there can only ever be a single hose. After relocation, fall back to the normal access, although even then on x86 machines there is normally only a single PCI bu

[U-Boot] [PATCH v2 21/33] x86: Add clr/setbits functions

2014-11-10 Thread Simon Glass
These are available on other architectures. Make them available on x86 also. Signed-off-by: Simon Glass --- Changes in v2: None arch/x86/include/asm/io.h | 49 +++ 1 file changed, 49 insertions(+) diff --git a/arch/x86/include/asm/io.h b/arch/x86/in

[U-Boot] [PATCH v2 16/33] x86: Support use of PCI before relocation

2014-11-10 Thread Simon Glass
Add support for using PCI before SDRAM is available, using early malloc() and global_data. Signed-off-by: Simon Glass --- Changes in v2: - Split out new patch to support use fo PCI before relocation arch/x86/cpu/pci.c | 20 arch/x86/include/asm/global_data.

[U-Boot] [PATCH v2 28/33] x86: ivybridge: Add support for early GPIO init

2014-11-10 Thread Simon Glass
When not relying on Coreboot for GPIO init the GPIOs must be set up correctly. This is currently done statically through a rather ugly method. As the GPIOs are figured out they can be moved to the device tree and set up as needed rather than all at the start. In this implementation, board files sh

[U-Boot] [PATCH v2 22/33] x86: Add msr read/write functions that use a structure

2014-11-10 Thread Simon Glass
It is convenient to be able to adjust MSRs with a structure that splits the two 32-bit halves into separate fields, as they are often dealt with separately. Add a few functions to support this. Signed-off-by: Simon Glass --- Changes in v2: None arch/x86/include/asm/msr.h | 19 +

[U-Boot] [PATCH v2 12/33] x86: Build a .rom file which can be flashed to an x86 machine

2014-11-10 Thread Simon Glass
On x86 machines U-Boot needs to be added to a large ROM image which is then flashed onto the target board. The ROM has a particular format so it makes sense for U-Boot to build this image automatically. Unfortunately it relies on binary blobs so we cannot require this for the default build as yet.

[U-Boot] [PATCH v2 05/33] x86: Add ifdtool for working with Intel Flash Descriptor ROM images

2014-11-10 Thread Simon Glass
Newer Intel chips require a Management Engine which requires a particular format for the SPI flash that contains the boot loader. Add a tool that supports creating and modifying these ROM images. This tool is from Chrome OS but has been cleaned up to use U-Boot style and to add comments. A few fea

[U-Boot] [PATCH v2 07/33] x86: Add processor functions to halt and get stack pointer

2014-11-10 Thread Simon Glass
Add a function to get the stack pointer and another to halt the CPU. Signed-off-by: Simon Glass --- Changes in v2: - Remove the cpuid functions since they were already added in another patch arch/x86/include/asm/processor.h | 19 +++ 1 file changed, 19 insertions(+) diff --git

[U-Boot] [PATCH v2 08/33] x86: Remove unnecessary find_fdt(), prepare_fdt() functions

2014-11-10 Thread Simon Glass
These are no-longer needed so drop them. Signed-off-by: Simon Glass --- Changes in v2: - Remove definition of find_fdt() also - Remove prepare_fdt() also arch/x86/include/asm/init_helpers.h | 2 -- arch/x86/lib/init_helpers.c | 27 --- common/board_f.c

[U-Boot] [PATCH v2 02/33] fdt: Add a function to decode a variable-sized u32 array

2014-11-10 Thread Simon Glass
Sometimes an array can be of variable size up to a maximum. Add a helper function to decode this. Signed-off-by: Simon Glass --- Changes in v2: None include/fdtdec.h | 16 lib/fdtdec.c | 20 2 files changed, 36 insertions(+) diff --git a/include/fdtde

[U-Boot] [PATCH v2 04/33] dm: gpio: Add a function to read an ID from a list of GPIOs

2014-11-10 Thread Simon Glass
For board IDs a common approach is to set aside several GPIOs for use in determining the board ID. This can provide information about board features and the revision. Add a function that turns a list of GPIOs into an integer by assigning each GPIO to a single bit. Signed-off-by: Simon Glass ---

[U-Boot] [PATCH v2 17/33] x86: ivybridge: Enable PCI in early init

2014-11-10 Thread Simon Glass
Enable PCI so we can access devices that need to be set up before relocation. Signed-off-by: Simon Glass --- Changes in v2: None arch/x86/cpu/ivybridge/Makefile | 1 + arch/x86/cpu/ivybridge/cpu.c | 6 arch/x86/cpu/ivybridge/pci.c | 63 +++

[U-Boot] [PATCH v2 0/33] x86: Add support for running on bare hardware

2014-11-10 Thread Simon Glass
At present U-Boot's x86 support requires Coreboot to run first, starting up the CPU and then setting up SDRAM and video among other tasks. U-Boot then runs as a payload. Notably U-Boot does not handle the ACPI fun on x86 where the kernel can call back into the 'BIOS' to perform certain tasks. This

Re: [U-Boot] sandbox: Uninitialized variable

2014-11-10 Thread Simon Glass
Hi Wolfgang, On 6 November 2014 04:58, Wolfgang Denk wrote: > Dear Simon, > > cppcheck reports: > > [arch/sandbox/cpu/start.c:132]: (error) Uninitialized variable: err > > And also: > > [arch/sandbox/cpu/os.c:371]: (error) Memory leak: fname > > > Could you please have a look? Yes will take a lo

Re: [U-Boot] [PATCH 39/39] x86: ivybridge: Implement SDRAM init

2014-11-10 Thread Simon Glass
Hi Bin, On 9 November 2014 23:49, Bin Meng wrote: > Hi Simon, > > On Fri, Nov 7, 2014 at 4:20 AM, Simon Glass wrote: >> Implement SDRAM init using the Memory Reference Code (mrc.bin) provided in >> the board directory and the SDRAM SPD information in the device tree. This >> also needs the Intel

Re: [U-Boot] [PATCH 19/39] x86: Build a .rom file which can be flashed to an x86 machine

2014-11-10 Thread Simon Glass
Hi Bin, On 9 November 2014 23:36, Bin Meng wrote: > Hi Simon, > > On Fri, Nov 7, 2014 at 4:20 AM, Simon Glass wrote: >> On x86 machines U-Boot needs to be added to a large ROM image which is >> then flashed onto the target board. The ROM has a particular format so it >> makes sense for U-Boot to

Re: [U-Boot] [PATCH 33/39] RFC: x86: dts: Add microcode updates for ivybridge CPU

2014-11-10 Thread Simon Glass
Hi Bin, On 9 November 2014 20:02, Bin Meng wrote: > Hi Simon, > > On Fri, Nov 7, 2014 at 4:20 AM, Simon Glass wrote: >> Add two microcode updates that are provided for this CPU. The updates >> have been converted to a device tree form. >> >> (The license needs to be converted to SPDX) >> >> Sign

[U-Boot] [PATCH v3 14/14] dm: Update documentation to include CONFIG_DM... options

2014-11-10 Thread Simon Glass
Add documentation for the various driver model options that are now available. Signed-off-by: Simon Glass --- Changes in v3: - Rebase to master Changes in v2: - Rebase to master README | 119 doc/driver-model/README.txt | 44 +

[U-Boot] [PATCH v3 12/14] dm: arm: spl: Make driver model linker lists available

2014-11-10 Thread Simon Glass
The linker lists feature is useful in SPL as it holds the driver model platform data. So don't throw away the lists. Signed-off-by: Simon Glass Reviewed-by: Tom Rini --- Changes in v3: None Changes in v2: None arch/arm/cpu/u-boot-spl.lds | 7 +++ 1 file changed, 7 insertions(+) diff --gi

[U-Boot] [PATCH v3 13/14] dm: tegra: Enable driver model in SPL and adjust the GPIO driver

2014-11-10 Thread Simon Glass
Use the full driver model GPIO and serial drivers in SPL now that these are supported. Since device tree is not available they will use platform data. Remove the special SPL GPIO function as it is no longer needed. This is all in one commit to maintain bisectability. Signed-off-by: Simon Glass

Re: [U-Boot] [PATCH 32/39] x86: ivybridge: Perform Intel microcode update on boot

2014-11-10 Thread Simon Glass
Hi Bin, On 9 November 2014 19:54, Bin Meng wrote: > Hi Simon, > > On Fri, Nov 7, 2014 at 4:20 AM, Simon Glass wrote: >> Microcode updates are stored in the device tree. Work through these and >> apply any that are needed. >> >> Signed-off-by: Simon Glass >> --- >> >> arch/x86/cpu/ivybridge/Mak

Re: [U-Boot] [PATCH 31/39] x86: ivybridge: Check BIST value on boot

2014-11-10 Thread Simon Glass
Hi Bin, On 9 November 2014 19:50, Bin Meng wrote: > Hi Simon, > > On Fri, Nov 7, 2014 at 4:20 AM, Simon Glass wrote: >> The built-in self test value should be checked before we continue booting. >> Refuse to continue if there is something wrong. >> >> Signed-off-by: Simon Glass >> --- >> >> ar

[U-Boot] [PATCH v3 02/14] dm: tegra: Avoid using arch-specific memcpy() in SPL

2014-11-10 Thread Simon Glass
The faster functions are not actually available in SPL and the code size likely isn't worth it. Use the normal memcpy() in SPL. Signed-off-by: Simon Glass --- Changes in v3: - Add new patch to avoid using arch-specific memcpy() in SPL Changes in v2: None include/configs/tegra-common.h | 2 ++

[U-Boot] [PATCH v3 09/14] dm: Disable dm_warn() in SPL

2014-11-10 Thread Simon Glass
Since this function can use up quite a bit of space for its strings, disable it by default in SPL. Use CONFIG_DM_WARN to re-enable it. Signed-off-by: Simon Glass Reviewed-by: Tom Rini --- Changes in v3: None Changes in v2: None include/config_defaults.h | 1 + include/dm/util.h | 6 ++

[U-Boot] [PATCH v3 08/14] dm: Allow stdio registration to be dropped

2014-11-10 Thread Simon Glass
Provide a CONFIG_DM_STDIO option to enable registering a serial device with the stdio library. This is seldom useful in SPL, so disable it by default when building for SPL. Signed-off-by: Simon Glass Reviewed-by: Tom Rini --- Changes in v3: - Add #ifdef around serial_stub_puts() to fix error wh

[U-Boot] [PATCH v3 05/14] dm: spl: Make simple malloc() available when enabled

2014-11-10 Thread Simon Glass
Set up the simple malloc() implementation when requested, in preference to the full malloc(). Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None common/spl/spl.c | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/common/spl/spl.c b/common/spl/sp

[U-Boot] [PATCH v3 03/14] dm: Split the simple malloc() implementation into its own file

2014-11-10 Thread Simon Glass
The simple malloc() implementation is used when memory is tight. It provides a simple buffer with an incrementing pointer. At present the implementation is inside dlmalloc. Move it into its own file so that it is easier to find. Rather than using relocation as a signal that the full malloc() is a

[U-Boot] [PATCH v3 11/14] dm: tegra: Add platform data for the GPIO driver

2014-11-10 Thread Simon Glass
Add platform data for the GPIO driver. It doesn't need to contain anything since the GPIO driver will actually use information from the CONFIGs for now. This merely serves to ensure that the GPIO driver is bound. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None board/nvid

[U-Boot] [PATCH v3 04/14] dm: arm: spl: Allow simple malloc() in SPL

2014-11-10 Thread Simon Glass
For SPL it is sometimes useful to have a simple malloc() just to permit driver model to work, in the cases where the full malloc() is not made available by the board config. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None arch/arm/lib/crt0.S | 2 +- 1 file changed, 1 ins

[U-Boot] [PATCH v3 07/14] dm: Allow device removal features to be dropped

2014-11-10 Thread Simon Glass
For SPL we don't expect to need to remove a device. Save some code space by dropping this feature. The board config can define CONFIG_DM_DEVICE_REMOVE if this is in fact needed. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None drivers/core/Makefile| 3 +- driver

[U-Boot] [PATCH v3 06/14] dm: spl: Allow driver model to be used

2014-11-10 Thread Simon Glass
When enabled, set up driver model for SPL. This allows SPL to use the same drivers as the main U-Boot. Signed-off-by: Simon Glass Acked-by: Tom Rini --- Changes in v3: None Changes in v2: None common/spl/spl.c | 5 + scripts/Makefile.spl | 1 + 2 files changed, 6 insertions(+) diff -

[U-Boot] [PATCH v3 10/14] dm: tegra: Add platform data for the SPL uart

2014-11-10 Thread Simon Glass
Since we currently don't have device tree available in SPL, add platform data so the uart works. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None drivers/serial/serial_tegra.c | 16 1 file changed, 16 insertions(+) diff --git a/drivers/serial/serial_tegr

[U-Boot] [PATCH v3 01/14] arm: spl: Avoid setting up a duplicate global data structure

2014-11-10 Thread Simon Glass
This is already set up in crt0.S. We don't need a new structure and don't really want one in the 'data' section of the image, since it will be empty and crt0.S's changes will be ignored. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None arch/arm/lib/spl.c | 4 1 file

[U-Boot] [PATCH v3 0/14] dm: Implement driver model support in SPL

2014-11-10 Thread Simon Glass
Now that driver model operations prior to relocation, the remaining area where it does not work is SPL. This series enables this. Since SPL is quite memory-constrained, code and data size need to be kept as small as possible. This series includes a few changes to help with this: - Small and simpl

[U-Boot] can i pass an bootarg/environment variable from the command line while building u-boot?

2014-11-10 Thread harsha kiran
Hi! Is there a way i can set my bootarg variable form the command line while building u-boot? We have implemented a two-stage u-boot process for our products. The main idea is that we should be able to see which u-boot version (a software partnumber) we are running from the kernel /proc/cmdline.

Re: [U-Boot] porting u-boot, few final questions

2014-11-10 Thread DaveKucharczyk
So I am having another issue probably more related to computer science fundamentals. I have a global variable boot_dev defined in my board file like so... I define boot_device in arch/arm/include/asm/arch-mx5/sys_proto.h like this… Now, boot_dev returns the correct value in checkboard(), but r

Re: [U-Boot] [PATCH] Revert "ARM: SPL: do not set gd again"

2014-11-10 Thread Simon Glass
+Albert Hi Tom, On 16 September 2014 18:47, Tom Rini wrote: > > On Tue, Sep 16, 2014 at 08:27:23PM -0400, Tom Rini wrote: > > > At the high level, the problem is that we set gd multiple times (and > > still do, even after the commit we're reverting). We set important > > parts of gd to the copy

[U-Boot] [ANN] U-Boot v2015.01-rc1 released

2014-11-10 Thread Tom Rini
Hey all, I've pushed v2015.01-rc1 out to the repository and tarballs should exist soon. The merge window is now closed. Per both the min-summit and the follow up emails, I'm going to try and get into the every 2 week RC tagging groove. And, I'm going to be relying on everyones best judgement ab

Re: [U-Boot] [PATCH v3 11/11] beagle_x15: add board support for Beagle x15

2014-11-10 Thread Tom Rini
On Mon, Nov 10, 2014 at 02:02:44PM -0600, Felipe Balbi wrote: > BeagleBoard-X15 is the next generation Open Source > Hardware BeagleBoard based on TI's AM5728 SoC > featuring dual core 1.5GHZ A15 processor. The > platform features 2GB DDR3L (w/dual 32bit busses), > eSATA, 3 USB3.0 ports, integrate

Re: [U-Boot] [U-Boot,10/10] net: smc911x: Keep MAC programmed

2014-11-10 Thread Tom Rini
On Sat, Oct 11, 2014 at 06:42:58PM +0200, Marek Vasut wrote: > Make sure to keep the MAC address programmed in the SMC911x ADDRH > and ADDRL registers. Linux can read those registers to determine > the MAC address on EEPROM-less configurations. > > Signed-off-by: Marek Vasut > Cc: Joe Hershberge

Re: [U-Boot] [i2c] Pull request

2014-11-10 Thread Tom Rini
On Mon, Nov 10, 2014 at 08:41:00AM +0100, Heiko Schocher wrote: > Hello Tom, > > please pull from u-boot-i2c.git > > The following changes since commit 11ada9225a16ed2d8ddbf0715a2416245a777cbc: > > Merge branch 'rmobile' of git://www.denx.de/git/u-boot-sh (2014-11-05 > 13:11:18 -0500) > > a

Re: [U-Boot] sort drivers/mmc/Makefile

2014-11-10 Thread Tom Rini
On Tue, Sep 09, 2014 at 03:16:10PM +0200, Pavel Machek wrote: > Sort drivers/mmc makefile, as requested by wd. > > Signed-off-by: Pavel Machek > Acked-by: Chin Liang See > > diff --git a/drivers/mmc/Makefile b/drivers/mmc/Makefile > index 464cee1..461d7d8 100644 Applied to u-boot/master,

Re: [U-Boot] Please pull u-boot-ti/master

2014-11-10 Thread Tom Rini
On Wed, Nov 05, 2014 at 04:33:24PM -0500, Tom Rini wrote: > Hi me, > > The following changes since commit d5325eff10922acb11c39efece6d5f24de5b1998: > > Merge git://www.denx.de/git/u-boot-sunxi (2014-11-05 07:23:32 -0500) > > are available in the git repository at: > > > git://git.denx.de/

Re: [U-Boot] powerpc: o2dnt: convert to generic board

2014-11-10 Thread Tom Rini
On Tue, Oct 21, 2014 at 10:31:26PM +0200, Anatolij Gustschin wrote: > Signed-off-by: Anatolij Gustschin Applied to u-boot/master, thanks! -- Tom signature.asc Description: Digital signature ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.

Re: [U-Boot] [U-Boot, v1] ZFS: Clean up cppcheck warnings where relevant, leaked memory etc

2014-11-10 Thread Tom Rini
On Fri, Nov 07, 2014 at 10:08:35AM +0900, Jorgen Lundman wrote: > In a message from Wolfgang Denk highlighting warnings from cppcheck, > the patch will address those that are correctly diagnosed. Some are > false-positives: > > > [fs/zfs/zfs.c:937]: (error) Memory leak: l > dmu_read() allocates "

Re: [U-Boot] Pull request: u-boot-blackfin

2014-11-10 Thread Tom Rini
On Mon, Nov 10, 2014 at 12:42:46PM +0800, Sonic Zhang wrote: > Hi Tom, > > Please pull the following patches for Blackfin from u-boot-blackfin > into your tree. > > Thanks > > Sonic Zhang > > > The following changes since commit 11ada9225a16ed2d8ddbf0715a2416245a777cbc: > > Merge branch 'r

Re: [U-Boot] Added support for comments in input to mkenvimage.

2014-11-10 Thread Tom Rini
On Thu, Aug 28, 2014 at 11:17:17AM +, Dominik Muth wrote: > >From 4877c78a6b11ebf90fe25376f1362b12d233797a Mon Sep 17 00:00:00 2001 > From: Dominik Muth > Date: Thu, 28 Aug 2014 12:25:27 +0200 > Subject: [PATCH] Added support for comments in input to mkenvimage. > > This patch adds support f

Re: [U-Boot] Pull request: u-boot-arm/master

2014-11-10 Thread Tom Rini
On Sat, Nov 08, 2014 at 01:07:56AM +0100, Albert ARIBAUD wrote: > Hello Tom, > > The following changes since commit 5b3ee386fde82a1ba42ff09b95247842c9a1585e: > > kbuild: clear VENDOR variable to fix build error on tcsh (2014-10-23 > 16:35:12 -0400) > > are available in the git repository at:

Re: [U-Boot] [U-Boot, 6/9] board/matrix_vision/mvblx/sys_eeprom.c: fix buffer overflow

2014-11-10 Thread Tom Rini
On Thu, Nov 06, 2014 at 02:03:02PM +0100, Wolfgang Denk wrote: > Fix error detected by cppcheck: > > [board/matrix_vision/mvblx/sys_eeprom.c:353]: (error) Buffer is > accessed out of bounds. > > Signed-off-by: Wolfgang Denk > cc: Michael Jones > Acked-by: Michael Jones Applied to u-boot/mast

Re: [U-Boot] [U-Boot, 8/9] ARM: MXS: fix Uninitialized variable error

2014-11-10 Thread Tom Rini
On Thu, Nov 06, 2014 at 02:03:04PM +0100, Wolfgang Denk wrote: > cppcheck reports: > > [arch/arm/cpu/arm926ejs/mxs/timer.c:96]: (error) Uninitialized > variable: now > > Signed-off-by: Wolfgang Denk > Cc: Marek Vasut > Cc: Stefano Babic Applied to u-boot/master, thanks! -- Tom signature.

Re: [U-Boot] [U-Boot, v3] generic-board: make compile-time noise for non-generic boards

2014-11-10 Thread Tom Rini
On Fri, Nov 07, 2014 at 03:32:07AM +0900, Masahiro Yamada wrote: > Commit 0f605c1501f6 (Start the deprecation process for generic board) > added a run-time warning message. Let's be noisier for non-generic > boards to inform the dead line of the conversion. > > This commit intentionally outputs

Re: [U-Boot] [U-Boot, 5/9] common/cmd_fitupd.c: restore corrupted file

2014-11-10 Thread Tom Rini
On Thu, Nov 06, 2014 at 02:03:01PM +0100, Wolfgang Denk wrote: > This file got corrupted by the automatic editin of commit 1a45966 "Add > GPL-2.0+ SPDX-License-Identifier to source files"; restore the > opiginal content and manually insert the SPDX ID. > > The bug was detected by running cppcheck

Re: [U-Boot] [U-Boot, 9/9] board/esd/common/auto_update.c: fix Uninitialized variable

2014-11-10 Thread Tom Rini
On Thu, Nov 06, 2014 at 02:03:05PM +0100, Wolfgang Denk wrote: > cppcheck reports: > > [board/esd/common/auto_update.c:458]: (error) Uninitialized variable: cnt > > The variable is not really used anywhere, so remove it. > > Signed-off-by: Wolfgang Denk > Cc: Matthias Fuchs > Acked-by: Matthi

Re: [U-Boot] [U-Boot,2/9] board/cogent/lcd.c: fix syntax error

2014-11-10 Thread Tom Rini
On Thu, Nov 06, 2014 at 02:02:58PM +0100, Wolfgang Denk wrote: > Fix error detected by cppcheck: > > [board/cogent/lcd.c:237]: (error) Invalid number of character (() > when these macros are defined: > 'CONFIG_SHOW_ACTIVITY;CONFIG_STATUS_LED'. > > Signed-off-by: Wolfgang Denk Applied to u-boot

Re: [U-Boot] [U-Boot,4/9] drivers/net/uli526x.c: fix syntax error

2014-11-10 Thread Tom Rini
On Thu, Nov 06, 2014 at 02:03:00PM +0100, Wolfgang Denk wrote: > Fix error detected by cppcheck: > > [drivers/net/uli526x.c:551]: (error) printf format string requires 3 > parameters but only 2 are given. > > Signed-off-by: Wolfgang Denk > Cc: Roy Zang Applied to u-boot/master, thanks! -- T

Re: [U-Boot] [U-Boot,1/9] cppcheck cleanup: fix nullPointer errors

2014-11-10 Thread Tom Rini
On Thu, Nov 06, 2014 at 02:02:57PM +0100, Wolfgang Denk wrote: > There are a number of places where U-Boot intentionally and legally > accesses physical address 0x, for example when installing > exception vectors on systems where these are located in low memory. > > Add "cppcheck-suppress nul

Re: [U-Boot] MAINTAINERS: CFI flash maintainership only includes the CFI related files

2014-11-10 Thread Tom Rini
On Fri, Oct 31, 2014 at 01:57:42PM +0100, Stefan Roese wrote: > All the other files in drivers/mtd/* are not really CFI related. So lets > only include the files that are CFI specific. > > Signed-off-by: Stefan Roese > Cc: Heiko Schocher > Cc: Scott Wood > Cc: Masahiro Yamada > Cc: Jagan Teki

Re: [U-Boot] [U-Boot, v2] doc: fix documentation of out-of-tree build

2014-11-10 Thread Tom Rini
On Thu, Nov 06, 2014 at 02:39:05PM +0200, Timo Ketola wrote: > Correct environment variable for output directory is KBUILD_OUTPUT. > > Signed-off-by: Timo Ketola Applied to u-boot/master, thanks! -- Tom signature.asc Description: Digital signature ___

Re: [U-Boot] [U-Boot, 3/6] kbuild: sync top Makefile with Linux 3.18-rc1

2014-11-10 Thread Tom Rini
On Thu, Oct 30, 2014 at 11:06:11AM +0900, Masahiro Yamada wrote: > Since Linux 3.15, relative path feature and related fixes, > cleanups have been merged to the top Makefile. > > The relative path feature looks stable enough, so let's import it > to U-Boot along with various cleanups. > > Commit

Re: [U-Boot] [U-Boot, 5/6] kbuild: sync misc scripts with Linux 3.18-rc1

2014-11-10 Thread Tom Rini
On Thu, Oct 30, 2014 at 11:06:13AM +0900, Masahiro Yamada wrote: > This commit imports some updates in misc scripts from Linux 3.18-rc1. > > [1] commit cbb4d3e6510b99522719c5ef0 by Horia Geanta > scripts/kernel-doc: handle object-like macros > > [2] commit 164f0d2efaaef83 by Michal Marek > kbuil

Re: [U-Boot] [U-Boot, 4/6] kconfig: sync kconfig files with Linux 3.18-rc1

2014-11-10 Thread Tom Rini
On Thu, Oct 30, 2014 at 11:06:12AM +0900, Masahiro Yamada wrote: > This commit imports Kconfig updates from Linux 3.18-rc1. > > 'kvmconfig' and 'tinyconfig' help message have been commented out > since they are unavailable at least now; in the future perhaps > we can implement 'tinyconfig' to di

Re: [U-Boot] tools/env: Fix environment size and CRC on 64-bit hosts

2014-11-10 Thread Tom Rini
On Wed, Nov 05, 2014 at 12:30:18AM +0100, Dominic Sacré wrote: > On architectures where 'long' is 64 bit, the u-boot environment > as seen by the fw_env tools was missing 4 bytes. > This patch fixes getenvsize(), and thus also ensures that the > environment's CRC32 checksum is calculated correctly

Re: [U-Boot] [U-Boot, 1/6] kbuild: bug fixes and cleanups of Makefile.host

2014-11-10 Thread Tom Rini
On Thu, Oct 30, 2014 at 11:06:09AM +0900, Masahiro Yamada wrote: > This commit imports updates of scripts/Makefile.host > from Linux 3.18-rc1. > > Imported commits are: > > [1] commit d8d9efe22709 by Masahiro Yamada > kbuild: fix a typo in scripts/Makefile.host > > [2] commit edb950c17de0 by

Re: [U-Boot] [U-Boot,4/6] hush: fix segfault on syntax error

2014-11-10 Thread Tom Rini
On Wed, Oct 29, 2014 at 11:21:40PM +0100, Rabin Vincent wrote: > Hush segfaults if it sees a syntax error while attempting to parse a > command: > > $ ./u-boot -c "'" > ... > syntax error > Segmentation fault (core dumped) > > This is due to a NULL pointer dereference of in_str->p in static_

Re: [U-Boot] kbuild: remove "clobber" target

2014-11-10 Thread Tom Rini
On Thu, Oct 30, 2014 at 10:58:32AM +0900, Masahiro Yamada wrote: > Now we stick to Linux Kernel's build system, so squash > "clobber" to "clean" target. > > Signed-off-by: Masahiro Yamada Applied to u-boot/master, thanks! -- Tom signature.asc Description: Digital signature _

Re: [U-Boot] [U-Boot, 2/6] kbuild: improve multi-objs dependency and cleanups

2014-11-10 Thread Tom Rini
On Thu, Oct 30, 2014 at 11:06:10AM +0900, Masahiro Yamada wrote: > Since Linux 3.18-rc1, Kbuild is able to handle multi-objs > dependency correctly, which also allows us futher cleanups > of some makefiles. > > This commit imports those commits: > > [1] commit c8589d1e9e01 by Masahiro Yamada > k

Re: [U-Boot] [U-Boot, 5/6] hush: make run_command() return an error on parsing failure

2014-11-10 Thread Tom Rini
On Wed, Oct 29, 2014 at 11:21:41PM +0100, Rabin Vincent wrote: > run_command() returns success even if the command had a syntax error; > correct this behaviour. > > Signed-off-by: Rabin Vincent > Acked-by: Simon Glass signature.asc Description: Digital signature ___

Re: [U-Boot] [U-Boot, 1/6] dlmalloc: ensure gd is set for early alloc

2014-11-10 Thread Tom Rini
On Wed, Oct 29, 2014 at 11:21:37PM +0100, Rabin Vincent wrote: > Attempting to run the sandbox leads to a segfault, because some dynamic > libraries (outside of u-boot) attempt to use malloc() to allocate memory > before u-boot's gd variable is initialized. > > Check for gd not being NULL in the

Re: [U-Boot] image-fdt: boot_get_fdt() return value when no DTB exists

2014-11-10 Thread Tom Rini
On Wed, Oct 22, 2014 at 05:17:49PM +0300, Noam Camus wrote: > From: Noam Camus > > I believe that when no DTB is around we should return 1. > This why I fixed such scenarious to not return zero anymore. > Else kernel might get NULL pointer to DTB which doesn't exists. > > Signed-off-by: Noam Ca

Re: [U-Boot] [U-Boot, 3/6] hush: return consistent codes from run_command()

2014-11-10 Thread Tom Rini
On Wed, Oct 29, 2014 at 11:21:39PM +0100, Rabin Vincent wrote: > Attempting to run: > - an empty string > - a string with just spaces > > returns different error codes, 1 for the empty string and 0 > for the string with just spaces. Make both of them return > 0 for consistency. > > Signed-off

Re: [U-Boot] power_spi.c: Rewrite pmic_reg function

2014-11-10 Thread Tom Rini
On Sat, Oct 25, 2014 at 07:38:31AM -0400, Tom Rini wrote: > The pmic_spi_free function isn't ever used, and as the frameworks stand > today, cannot be, so remove it. Integrate the probe function into > pmic_reg as it's not really a "probe" today. Finally, add an err label > for the common failur

Re: [U-Boot] [U-Boot,2/6] sandbox: init cli for -c

2014-11-10 Thread Tom Rini
On Wed, Oct 29, 2014 at 11:21:38PM +0100, Rabin Vincent wrote: > sandbox crashes if a variable is set in the -c command, because > hush's top_vars is not allocated. Call cli_init() from sandbox > to ensure this is done before we execute the -c command. > > $ ./u-boot -c 'a=1' > ... > Segmenta

Re: [U-Boot] porting u-boot, few final questions

2014-11-10 Thread DaveKucharczyk
Update: my board_late_init() function wasn’t working because I defined BOARD_LATE_INIT instead of CONFIG_BOARD_LATE_INIT. Doh! Since arch/arm/lib/board.c file is being removed, and when CONFIG_SYS_GENERIC_BOARD is defined, we are now using… common/board_f.c (for pre-relocation init) common/board_r

[U-Boot] [PATCH v7 6/6] sandbox: script for testing sandbox/ext4/fat/fs commands

2014-11-10 Thread Suriyan Ramasami
Test size/read/write commands in a sandbox environment. Signed-off-by: Suriyan Ramasami --- Changes in v7: * Simon - take care of fat/vfat in mkfs - fs/nonfs test code repeats, put it in function test/fs/fs-test.sh | 561 + 1 file changed

  1   2   >