[U-Boot] Loading a userland file

2012-11-03 Thread Grant
I'm trying to get Tiny Core working on the Beaglebone. I'm stuck on getting the Tiny Core userland file uCore to load so init works. I'm using this uEnv.txt: bootfile=/uImage optargs=init=/init rootwait fatload mmc 0 0x4310 uCore mmcboot=echo Booting from mmc ...; run mmcargs; bootm

Re: [U-Boot] [PATCH 02/17] Add gettime command

2012-11-03 Thread Luka Perkov
Hi Simon, On Fri, Nov 02, 2012 at 05:27:18PM -0700, Simon Glass wrote: From: Anton Staaf robot...@chromium.org Gettime returns the current timer value. If CONFIG_SYS_HZ is defined then the timer value is also converted to seconds. Tegra20 (SeaBoard) # gettime Timer val: 7754 Seconds :

Re: [U-Boot] [PATCH v3 0/18] Add environment call-back and flags capability

2012-11-03 Thread Wolfgang Denk
Dear Joseph Hershberger, In message fef7fe83-c55c-4ff4-a885-41a692404...@ni.com you wrote: htmlbody pfont size=2 face=sans-serifHi Wolfgang,br Please do not send HTML messages. Please send plain text only. Message unreadable, ignored. Sorry. Best regards, Wolfgang Denk -- DENX Software

Re: [U-Boot] [PATCH 01/10] arm: Compile cache_disable() with -O2 to avoid failure

2012-11-03 Thread Marek Vasut
Dear Simon Glass, It is good to have these functions written in C instead of assembler, but with -O0 the cache_disable() function doesn't return. Rather than revert to assembler, this fix just forces this to be built with -O2. Signed-off-by: Simon Glass s...@chromium.org ---

Re: [U-Boot] pull request for u-boot-tegra/master into ARM/master

2012-11-03 Thread Albert ARIBAUD
Hi Tom, On Mon, 29 Oct 2012 16:49:34 -0700, Tom Warren twarren.nvi...@gmail.com wrote: Albert, Please pull u-boot-tegra/master into ARM/master. Thanks! checkpatch is clean, and ./MAKEALL -a arm is clean (except for previous failures not created by these patches). Note that the serial:

[U-Boot] [PATCH V2] ARM: Fix malloc area size for versatile and integrator

2012-11-03 Thread Marek Vasut
These boards couldn't save their environment because they couldn't malloc() the whole size of the sector. Signed-off-by: Marek Vasut ma...@denx.de Cc: Linus Walleij linus.wall...@linaro.org --- include/configs/integrator-common.h |3 ++- include/configs/versatile.h |2 +- 2 files

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

2012-11-03 Thread Albert ARIBAUD
Hi Tom, On Fri, 2 Nov 2012 10:08:22 -0700, Tom Rini tr...@ti.com wrote: Hello, The following changes since commit c7d35bef255dedb3ec3856982f042dde514676b0: am33xx/ddr_defs.h: rename DDR2/DDR3 defines to their actual part numbers (2012-10-25 11:31:38 -0700) are available in the git

Re: [U-Boot] Custodian branch base commits

2012-11-03 Thread Albert ARIBAUD
Hi Stephen, On Wed, 31 Oct 2012 10:56:08 -0600, Stephen Warren swar...@wwwdotorg.org wrote: Hopefully, u-boot-arm/master will merge in (or get reset to) u-boot/master fairly shortly. However, should Tegra's repo have to wait for this? Yes, tegra has to wait otherwise you've just

Re: [U-Boot] [PATCH 01/10] arm: Compile cache_disable() with -O2 to avoid failure

2012-11-03 Thread Wolfgang Denk
Dear Simon Glass, In message 1351813330-23741-1-git-send-email-...@chromium.org you wrote: It is good to have these functions written in C instead of assembler, but with -O0 the cache_disable() function doesn't return. Rather than revert to assembler, this fix just forces this to be built with

Re: [U-Boot] [PATCH 05/10] arm: Add CONFIG_DELAY_ENVIRONMENT to delay environment loading

2012-11-03 Thread Wolfgang Denk
Dear Simon Glass, In message 1351813330-23741-5-git-send-email-...@chromium.org you wrote: This option delays loading of the environment until later, so that only the default environment will be available to U-Boot. This can address the security risk of untrusted data being used during boot.

Re: [U-Boot] [PATCH 06/10] arm: Add CONFIG_DISPLAY_BOARDINFO_LATE to display board info on LCD

2012-11-03 Thread Wolfgang Denk
Dear Simon Glass, In message 1351813330-23741-6-git-send-email-...@chromium.org you wrote: This option displays board info after stdio is running, so that it will appear on the LCD. If it is displayed earlier, the board info will appear on the serial console but not on the LCD. Note that this

Re: [U-Boot] [PATCH 07/10] arm: Add option to display customised memory information

2012-11-03 Thread Wolfgang Denk
Dear Simon Glass, In message 1351813330-23741-7-git-send-email-...@chromium.org you wrote: Some boards want to report more than just memory size. For example, it might be useful to display the memory type (DDR2, DDR3) or manufacturer. Add a weak function to support this requirement. Any

Re: [U-Boot] [PATCH 04/10] arm: Move fdt check earlier so that board_early_init_f() can use it

2012-11-03 Thread Wolfgang Denk
Dear Simon Glass, In message 1351813330-23741-4-git-send-email-...@chromium.org you wrote: We want to use the fdt inside board_early_init_f(), so check for its presence earlier in the pre-reloc init sequence. Signed-off-by: Simon Glass s...@chromium.org --- arch/arm/lib/board.c |7

Re: [U-Boot] [PATCH 09/10] arm: Move bootstage record for board_init_f() to after arch_cpu_init()

2012-11-03 Thread Wolfgang Denk
Dear Simon Glass, In message 1351813330-23741-9-git-send-email-...@chromium.org you wrote: The timer may be inited in arch_cpu_init() so it is not safe to make a bootstage mark before this is called. Arrange the code to fix this. We now get a correct time for board_init_f: Timer summary

Re: [U-Boot] [PATCH 6/7] fs: Add a Coreboot Filesystem (CBFS) driver and commands

2012-11-03 Thread Wolfgang Denk
Dear Simon Glass, In message CAPnjgZ2hD4ZgzM=0rppsgr0-iojtv+q40e3gyexeqxndkop...@mail.gmail.com you wrote: --- /dev/null +++ b/common/cmd_cbfs.c @@ -0,0 +1,214 @@ +/* + * Copyright (c) 2011 The Chromium OS Authors. All rights reserved. + * + * See file CREDITS for list of

Re: [U-Boot] [PATCH 2/3] tpm: Add Infineon slb9635_i2c TPM driver

2012-11-03 Thread Wolfgang Denk
Dear Simon Glass, In message 1351874667-23959-2-git-send-email-...@chromium.org you wrote: From: Rong Chang rongch...@chromium.org Add a driver for the I2C TPM from Infineon. Signed-off-by: Che-Liang Chiou clch...@chromium.org Signed-off-by: Rong Chang rongch...@chromium.org

Re: [U-Boot] [PATCH 1/3] tpm: Add casts for proper compilation

2012-11-03 Thread Wolfgang Denk
Dear Simon Glass, In message 1351874667-23959-1-git-send-email-...@chromium.org you wrote: From: Taylor Hutt th...@chromium.org When building for the Sandbox version, the casts in this change are necessary to avoid compilation issues. Signed-off-by: Taylor Hutt th...@chromium.org

Re: [U-Boot] Loading a userland file

2012-11-03 Thread Grant
I'm trying to get Tiny Core working on the Beaglebone. I'm stuck on getting the Tiny Core userland file uCore to load so init works. I'm using this uEnv.txt: bootfile=/uImage optargs=init=/init rootwait fatload mmc 0 0x4310 uCore mmcboot=echo Booting from mmc ...; run mmcargs; bootm

Re: [U-Boot] [RFC PATCH 00/50] net: net subsystem ops cleanup

2012-11-03 Thread Wolfgang Denk
Dear Tomas Hlavacek, In message 1351876722-5183-1-git-send-email-tmshl...@gmail.com you wrote: This patchset is a first stage of preparation of the net subsystem for the driver model. The idea of this patchset is: 1) Remove ops .init, .send, .recv and .halt from the eth_device struct.

Re: [U-Boot] [PATCH 01/17] arm: Add new bootstage step for the main loop

2012-11-03 Thread Wolfgang Denk
Dear Simon Glass, In message 1351902453-27956-2-git-send-email-...@chromium.org you wrote: Mark when we get to the main loop. Signed-off-by: Simon Glass s...@chromium.org --- common/main.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/common/main.c

Re: [U-Boot] [PATCH 16/17] console: Enable function to display console info

2012-11-03 Thread Wolfgang Denk
Dear Simon Glass, In message 1351902453-27956-17-git-send-email-...@chromium.org you wrote: The CONFIG_SYS_CONSOLE_INFO_QUIET option should suppress the console information, but allow boards to display it later if required. Adjust the code to support this. This is used to avoid printing the

Re: [U-Boot] [PATCH 09/17] Add sha256 command for hashing

2012-11-03 Thread Wolfgang Denk
Dear Simon Glass, In message 1351902453-27956-10-git-send-email-...@chromium.org you wrote: From: ARUN MANKUZHI aru...@samsung.com sha256 command is added which can be used to test SHA 256 hash algorithm. Signed-off-by: ARUN MANKUZHI aru...@samsung.com Signed-off-by: Simon Glass

Re: [U-Boot] [PATCH 02/17] Add gettime command

2012-11-03 Thread Wolfgang Denk
Dear Simon Glass, In message 1351902453-27956-3-git-send-email-...@chromium.org you wrote: From: Anton Staaf robot...@chromium.org Gettime returns the current timer value. If CONFIG_SYS_HZ is defined then the timer value is also converted to seconds. Tegra20 (SeaBoard) # gettime Timer

Re: [U-Boot] [PATCH 15/17] Add console command to access io space registers

2012-11-03 Thread Wolfgang Denk
Dear Simon Glass, In message 1351902453-27956-16-git-send-email-...@chromium.org you wrote: From: Vadim Bendebury vben...@chromium.org Provide u-boot console functions to access IO space registers. A no thrills implementation, accessing one register at a time. For example: boot iod

Re: [U-Boot] [PATCH 06/17] env: Add the ability to merge the saved env with the default.

2012-11-03 Thread Wolfgang Denk
Dear Simon Glass, In message 1351902453-27956-7-git-send-email-...@chromium.org you wrote: From: Doug Anderson diand...@chromium.org This is a useful mechanism any time you have a way to update the saved environment outside of u-boot. This can be a tool like fw_setenv. I don't see the

Re: [U-Boot] [PATCH 17/17] tpm: Add TPM stress test

2012-11-03 Thread Wolfgang Denk
Dear Simon Glass, In message 1351902453-27956-18-git-send-email-...@chromium.org you wrote: From: Luigi Semenzato semenz...@chromium.org Add a simple command to stress-test a TPM (Trusted Platform Module). Signed-off-by: Luigi Semenzato semenz...@chromium.org Commit-Ready: Stefan

Re: [U-Boot] [PATCH 05/17] stdio: remove useless strncpy

2012-11-03 Thread Wolfgang Denk
Dear Simon Glass, In message 1351902453-27956-6-git-send-email-...@chromium.org you wrote: From: Vincent Palatin vpala...@chromium.org The name is already copied when we memopy the whole structure. memopy? --- a/common/stdio.c +++ b/common/stdio.c @@ -135,7 +135,6 @@ struct stdio_dev*

Re: [U-Boot] [PATCH 14/17] console: Call overwrite_console before searching for console devices

2012-11-03 Thread Wolfgang Denk
Dear Simon Glass, In message 1351902453-27956-15-git-send-email-...@chromium.org you wrote: From: Anton Staaf robot...@chromium.org Move the overwrite_console function call to before the search for the console devices. This lets the board specific function replace the environment variables

Re: [U-Boot] Merging device trees at runtime for module-based systems

2012-11-03 Thread David Gibson
On Thu, Nov 01, 2012 at 10:24:06AM +0100, Daniel Mack wrote: On 01.11.2012 04:26, David Gibson wrote: On Fri, Oct 26, 2012 at 09:24:11AM +0200, Daniel Mack wrote: I would especially like to know where such a new functionality should live, which data types it should operate on and what

Re: [U-Boot] Merging device trees at runtime for module-based systems

2012-11-03 Thread Daniel Mack
On 03.11.2012 16:25, David Gibson wrote: On Thu, Nov 01, 2012 at 10:24:06AM +0100, Daniel Mack wrote: On 01.11.2012 04:26, David Gibson wrote: On Fri, Oct 26, 2012 at 09:24:11AM +0200, Daniel Mack wrote: I would especially like to know where such a new functionality should live, which data

Re: [U-Boot] [RFC PATCH v3 0/13] Port of MUSB driver from Linux (changes from Linux)

2012-11-03 Thread Ilya Yanok
Hi Tom, On Tue, Oct 23, 2012 at 1:45 AM, Tom Rini tr...@ti.com wrote: In general, things look OK but please run it through checkpatch.pl, use just one Signed-off-by line and fixup if (...) { ... one line ... } in the glue code you add that's not synced up from the kernel (I saw one in the

[U-Boot] [PATCH v4 0/13] Port of MUSB driver from Linux (changes from Linux)

2012-11-03 Thread Ilya Yanok
Current MUSB driver in U-Boot uses old UDC API while new gagdet client drivers need new gadget API. Also current MUSB driver has some significant limitations (like inability to handle tx for endpoints other than ep0). So I think port of new Linux driver is desirable. This is initial port,

[U-Boot] [PATCH v4 01/13] linux/usb/ch9.h: update with the version from Linux tree

2012-11-03 Thread Ilya Yanok
Signed-off-by: Ilya Yanok ya...@cogentembedded.com Signed-off-by: Ilya Yanok ilya.ya...@cogentembedded.com --- drivers/usb/gadget/config.c |1 - drivers/usb/gadget/epautoconf.c |1 - drivers/usb/gadget/ether.c |1 - drivers/usb/gadget/s3c_udc_otg.c |1 -

[U-Boot] [PATCH v4 02/13] usb: use linux/usb/ch9.h instead of usbdescriptors.h

2012-11-03 Thread Ilya Yanok
Linux usb/ch9.h seems to have all the same information (and more) as usbdescriptors.h so use the former instead of the later one. As a consequense of this change USB_SPEED_* values don't correspond directly to EHCI speed encoding anymore, I've added necessary recoding in EHCI driver. Also there

[U-Boot] [PATCH v4 04/13] musb-new: dsps backend driver

2012-11-03 Thread Ilya Yanok
Backend driver for MUSB OTG controllers found on TI AM33xx and TI81xx SoCs (tested with AM33xx only). Signed-off-by: Ilya Yanok ya...@cogentembedded.com Signed-off-by: Ilya Yanok ilya.ya...@cogentembedded.com --- Changes in v2: - rename backend config option to CONFIG_USB_MUSB_DSPS - we are

[U-Boot] [PATCH v4 02/13] usb: use linux/usb/ch9.h instead of usbdescriptors.h

2012-11-03 Thread Ilya Yanok
Linux usb/ch9.h seems to have all the same information (and more) as usbdescriptors.h so use the former instead of the later one. As a consequense of this change USB_SPEED_* values don't correspond directly to EHCI speed encoding anymore, I've added necessary recoding in EHCI driver. Also there

[U-Boot] [PATCH v4 0/13] Port of MUSB driver from Linux (changes from Linux)

2012-11-03 Thread Ilya Yanok
My apologies for double posting -- I was so stupid to forget to fix the Signed-off-by lines Current MUSB driver in U-Boot uses old UDC API while new gagdet client drivers need new gadget API. Also current MUSB driver has some significant limitations (like inability to handle tx for endpoints

[U-Boot] [PATCH v4 01/13] linux/usb/ch9.h: update with the version from Linux tree

2012-11-03 Thread Ilya Yanok
Signed-off-by: Ilya Yanok ilya.ya...@cogentembedded.com --- drivers/usb/gadget/config.c |1 - drivers/usb/gadget/epautoconf.c |1 - drivers/usb/gadget/ether.c |1 - drivers/usb/gadget/s3c_udc_otg.c |1 - drivers/usb/gadget/usbstring.c |1 -

[U-Boot] [PATCH v4 04/13] musb-new: dsps backend driver

2012-11-03 Thread Ilya Yanok
Backend driver for MUSB OTG controllers found on TI AM33xx and TI81xx SoCs (tested with AM33xx only). Signed-off-by: Ilya Yanok ilya.ya...@cogentembedded.com --- Changes in v2: - rename backend config option to CONFIG_USB_MUSB_DSPS - we are providing host support now so add yourself to usb.h

[U-Boot] [PATCH v4 06/13] am335x_evm: enable both musb gadget and host

2012-11-03 Thread Ilya Yanok
Enable musb gadget in Ethernet mode on port 0 and musb host on port1. Signed-off-by: Ilya Yanok ilya.ya...@cogentembedded.com --- include/configs/am335x_evm.h | 27 +++ 1 file changed, 27 insertions(+) diff --git a/include/configs/am335x_evm.h

[U-Boot] [PATCH v4 05/13] am33xx: init OTG hardware and new musb gadget driver

2012-11-03 Thread Ilya Yanok
AM33xx has support for dual port MUSB OTG controller. This patch adds initialization for the controller using new MUSB gadget driver and ether gadget. Signed-off-by: Ilya Yanok ilya.ya...@cogentembedded.com --- Changes in v3: - use clrsetbits_le32 for USB PHY ops

[U-Boot] [PATCH v4 07/13] musb-new: am35x backend driver

2012-11-03 Thread Ilya Yanok
Backend driver for MUSB OTG controllers found on TI AM35x. It seems that on AM35X interrupt status registers can be updated _before_ core registers. As we don't use true interrupts in U-Boot and poll interrupt status registers instead this can result in interrupt handler being called with

[U-Boot] [PATCH v4 08/13] OMAP3: am35x_def.h: add USB defines

2012-11-03 Thread Ilya Yanok
Add defines for MUSB IP block on AM35X SoCs. Signed-off-by: Ilya Yanok ilya.ya...@cogentembedded.com --- arch/arm/include/asm/arch-omap3/am35x_def.h | 27 +++ 1 file changed, 27 insertions(+) diff --git a/arch/arm/include/asm/arch-omap3/am35x_def.h

[U-Boot] [PATCH v4 10/13] am3517_evm: switch to musb-new

2012-11-03 Thread Ilya Yanok
Use new musb framework instead of the old one on AM3517_EVM. Signed-off-by: Ilya Yanok ilya.ya...@cogentembedded.com --- board/logicpd/am3517evm/am3517evm.c | 74 +++ include/configs/am3517_evm.h| 37 -- 2 files changed, 90

[U-Boot] [PATCH v4 09/13] OMAP3: am35x: add musb functions

2012-11-03 Thread Ilya Yanok
AM35XX specific functions for integrated USB PHY/MUSB IP. Signed-off-by: Ilya Yanok ilya.ya...@cogentembedded.com --- arch/arm/cpu/armv7/omap3/Makefile |1 + arch/arm/cpu/armv7/omap3/am35x_musb.c | 75 arch/arm/include/asm/arch-omap3/musb.h | 28

[U-Boot] [PATCH v4 12/13] omap3_beagle: add musb-new init

2012-11-03 Thread Ilya Yanok
Add initialization for new MUSB framework. Signed-off-by: Ilya Yanok ilya.ya...@cogentembedded.com --- board/ti/beagle/beagle.c | 43 include/configs/omap3_beagle.h |2 ++ 2 files changed, 45 insertions(+) diff --git

[U-Boot] [PATCH v4 11/13] musb-new: omap2plus backend driver

2012-11-03 Thread Ilya Yanok
Backend driver for MUSB OTG controllers found on TI OMAP2/3/4 (tested only on OMAP3 Beagle). Signed-off-by: Ilya Yanok ilya.ya...@cogentembedded.com --- arch/arm/include/asm/omap_musb.h|4 + drivers/usb/musb-new/Makefile |1 + drivers/usb/musb-new/linux-compat.h |9 +

[U-Boot] [PATCH v4 13/13] omap3_beagle: use new MUSB intstead of the old one

2012-11-03 Thread Ilya Yanok
Enable using of new MUSB framework on Beagle. NOTE! This is not just a change of backend code: top-level behavior is also changed, we now use USB device port for USB Ethernet instead of serial. Signed-off-by: Ilya Yanok ilya.ya...@cogentembedded.com --- include/configs/omap3_beagle.h | 11

Re: [U-Boot] [PATCH v1 7/8] am33xx_spl_bch: simple SPL nand loader for AM33XX

2012-11-03 Thread Ilya Yanok
Hi Tom, On Wed, Oct 31, 2012 at 1:03 AM, Tom Rini tr...@ti.com wrote: + for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { + this-ecc.hwctl(mtd, NAND_ECC_READ); + nand_command(block, page, data_pos, NAND_CMD_RNDOUT); + + this-read_buf(mtd, p,

[U-Boot] [PATCH] TPM: remove dead code

2012-11-03 Thread Wolfgang Denk
The TPM code was added more than a year or 4 releases ago. This was done under the proposition that board support that would actually use such code would be added soon. However, nothing happened since. The code has no users in mainline, and does not even get build for any configuration, so we

Re: [U-Boot] [PATCH 1/3] tpm: Add casts for proper compilation

2012-11-03 Thread Simon Glass
Hi Wolfgang, On Sat, Nov 3, 2012 at 8:00 AM, Wolfgang Denk w...@denx.de wrote: Dear Simon Glass, In message 1351874667-23959-1-git-send-email-...@chromium.org you wrote: From: Taylor Hutt th...@chromium.org When building for the Sandbox version, the casts in this change are necessary to

Re: [U-Boot] [PATCH 2/3] tpm: Add Infineon slb9635_i2c TPM driver

2012-11-03 Thread Simon Glass
Hi Wolfgang, On Sat, Nov 3, 2012 at 8:07 AM, Wolfgang Denk w...@denx.de wrote: Dear Simon Glass, In message 1351874667-23959-2-git-send-email-...@chromium.org you wrote: From: Rong Chang rongch...@chromium.org Add a driver for the I2C TPM from Infineon. Signed-off-by: Che-Liang Chiou

Re: [U-Boot] [PATCH 17/17] tpm: Add TPM stress test

2012-11-03 Thread Simon Glass
Hi Wolfgang, On Sat, Nov 3, 2012 at 8:29 AM, Wolfgang Denk w...@denx.de wrote: Dear Simon Glass, In message 1351902453-27956-18-git-send-email-...@chromium.org you wrote: From: Luigi Semenzato semenz...@chromium.org Add a simple command to stress-test a TPM (Trusted Platform Module).

Re: [U-Boot] [PATCH] TPM: remove dead code

2012-11-03 Thread Simon Glass
Hi Wolfgang, On Sat, Nov 3, 2012 at 9:30 AM, Wolfgang Denk w...@denx.de wrote: The TPM code was added more than a year or 4 releases ago. This was done under the proposition that board support that would actually use such code would be added soon. However, nothing happened since. The code

Re: [U-Boot] [PATCH 07/15] x86: Add functions to access MSRs

2012-11-03 Thread Simon Glass
Hi Graeme, On Wed, Oct 24, 2012 at 3:22 PM, Graeme Russ graeme.r...@gmail.com wrote: Hi Stefan, On Thu, Oct 25, 2012 at 8:15 AM, Stefan Reinauer reina...@google.com wrote: Graeme, Reusing code from the Linux kernel is generally a great idea. However for simplicity I'd rather have 25 lines

Re: [U-Boot] [PATCH 6/7] fs: Add a Coreboot Filesystem (CBFS) driver and commands

2012-11-03 Thread Simon Glass
Hi Wolfgang, On Sat, Nov 3, 2012 at 8:04 AM, Wolfgang Denk w...@denx.de wrote: Dear Simon Glass, In message CAPnjgZ2hD4ZgzM=0rppsgr0-iojtv+q40e3gyexeqxndkop...@mail.gmail.com you wrote: --- /dev/null +++ b/common/cmd_cbfs.c @@ -0,0 +1,214 @@ +/* + * Copyright (c) 2011 The

[U-Boot] [PATCH 0/20] Final patch set for basic coreboot x86 implementation

2012-11-03 Thread Simon Glass
This series contains patches to: - enable video and keyboard - fix up some x86 relocation bugs - Implement show_boot_progress() - Provide access to new Intel core architecture timers - Enable device tree control and add a basic fdt include file With the above changes (on top of

[U-Boot] [PATCH 02/20] x86: Reorder x86's post relocation memory layout

2012-11-03 Thread Simon Glass
From: Gabe Black gabebl...@chromium.org This changes the layout in decreasing addresses from: 1. Stack 2. Sections in the image 3. Heap to 1. Sections in the image 2. Heap 3. Stack This allows the stack to grow significantly more since it isn't constrained by the other u-boot areas. More

[U-Boot] [PATCH 03/20] x86: Make the upper bound on relocated symbols closed instead of open

2012-11-03 Thread Simon Glass
From: Gabe Black gabebl...@chromium.org This seems to be a bug. Signed-off-by: Simon Glass s...@chromium.org --- arch/x86/lib/relocate.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/x86/lib/relocate.c b/arch/x86/lib/relocate.c index c0b9b29..23edca9 100644 ---

[U-Boot] [PATCH 11/20] x86: Emit port 80 post codes in show_boot_progress()

2012-11-03 Thread Simon Glass
From: Stefan Reinauer reina...@chromium.org This helps us monitor boot progress and determine where U-Boot dies if there are any problems. Signed-off-by: Stefan Reinauer reina...@google.com Signed-off-by: Simon Glass s...@chromium.org --- arch/x86/cpu/coreboot/coreboot.c |2 ++ 1 files

[U-Boot] [PATCH 10/20] x86: fdt: Create basic .dtsi file for coreboot

2012-11-03 Thread Simon Glass
This contains just the minimum information for a coreboot-based board. Signed-off-by: Stefan Reinauer reina...@chromium.org Signed-off-by: Gabe Black gabebl...@chromium.org Signed-off-by: Simon Glass s...@chromium.org --- arch/x86/dts/coreboot.dtsi | 16

[U-Boot] [PATCH 16/20] x86: Remove coreboot_ from file name

2012-11-03 Thread Simon Glass
From: Stefan Reinauer reina...@chromium.org ... because that information is already encoded in the directory name. Signed-off-by: Stefan Reinauer reina...@chromium.org Signed-off-by: Simon Glass s...@chromium.org --- arch/x86/cpu/coreboot/Makefile |3 +--

[U-Boot] [PATCH 14/20] x86: Provide tick counter and frequency reference for Intel core architecture

2012-11-03 Thread Simon Glass
From: Vadim Bendebury vben...@chromium.org Some u-boot modules rely on availability of get_ticks() and get_tbclk() functions, reporting a free running clock and its frequency respectively. Traditionally these functions return number and frequency of timer interrupts. Intel's core architecture

[U-Boot] [PATCH 09/20] x86: coreboot: Set CONFIG_ARCH_DEVICE_TREE correctly

2012-11-03 Thread Simon Glass
From: Gabe Black gabebl...@chromium.org We will use coreboot.dtsi as our fdt include file. Signed-off-by: Gabe Black gabebl...@chromium.org Signed-off-by: Simon Glass s...@chromium.org --- arch/x86/cpu/coreboot/config.mk | 23 +++ 1 files changed, 23 insertions(+), 0

[U-Boot] [PATCH 20/20] x86: coreboot: Enable video display

2012-11-03 Thread Simon Glass
Enable the display on coreboot, using CFB. Signed-off-by: Simon Glass s...@chromium.org --- include/configs/coreboot.h | 10 -- 1 files changed, 8 insertions(+), 2 deletions(-) diff --git a/include/configs/coreboot.h b/include/configs/coreboot.h index 7c9c7e4..e62d7aa 100644 ---

[U-Boot] [PATCH 19/20] x86: Remove video_init() prototype from u-boot-x86.h

2012-11-03 Thread Simon Glass
This function is not intended to be exported from the video drivers, so remove the prototype. This fixes an error: cfb_console.c:1793:12: error: static declaration of 'video_init' follows non-static declaration Signed-off-by: Simon Glass s...@chromium.org --- arch/x86/include/asm/u-boot-x86.h

[U-Boot] [PATCH 07/20] x86: Add CONFIG_DELAY_ENVIRONMENT to delay environment loading

2012-11-03 Thread Simon Glass
From: Stefan Reinauer reina...@chromium.org This option delays loading of the environment until later, so that only the default environment will be available to U-Boot. This can address the security risk of untrusted data being used during boot. When CONFIG_DELAY_ENVIRONMENT is defined, it is

[U-Boot] [PATCH 08/20] x86: Add support for CONFIG_OF_CONTROL

2012-11-03 Thread Simon Glass
From: Gabe Black gabebl...@chromium.org Allow a device tree to be provided through the standard mechanisms. Signed-off-by: Gabe Black gabebl...@google.com Signed-off-by: Simon Glass s...@chromium.org --- arch/x86/lib/board.c|7 +++ arch/x86/lib/init_helpers.c | 29

[U-Boot] [PATCH 18/20] video: Check for valid FB pointer before clearing

2012-11-03 Thread Simon Glass
From: Duncan Laurie dlau...@chromium.org This command will start erasing at memory address zero if there is not a valid framebuffer address that was found during video_init(). This is a common case with Chrome OS devices in normal mode when we do not execute the video option rom in coreboot.

[U-Boot] [PATCH 01/20] x86: Initialise SPI if enabled

2012-11-03 Thread Simon Glass
From: Gabe Black gabebl...@chromium.org If we have SPI support, make sure that we init it. Signed-off-by: Gabe Black gabebl...@google.com Signed-off-by: Simon Glass s...@chromium.org Signed-off-by: Vic Yang victory...@chromium.org --- arch/x86/include/asm/init_helpers.h |1 +

[U-Boot] [PATCH 12/20] x86: Fix MTRR clear to detect which MTRR to use

2012-11-03 Thread Simon Glass
From: Duncan Laurie dlau...@chromium.org Coreboot was always using MTRR 7 for the write-protect cache entry that covers the ROM and U-boot was removing it. However with 4GB configs we need more MTRRs for the BIOS and so the WP MTRR needs to move. Instead coreboot will always use the last

[U-Boot] [PATCH 05/20] x86: Override calculate_relocation_address to use the e820 map

2012-11-03 Thread Simon Glass
From: Gabe Black gabebl...@chromium.org Because calculate_relocation_address now uses the e820 map, it will be able to avoid addresses over 32 bits and regions that are at high addresses but not big enough for U-Boot. It also means we can remove the hack which limitted U-Boot's idea of the size

[U-Boot] [PATCH 17/20] x86: drop unused code in coreboot.c

2012-11-03 Thread Simon Glass
From: Stefan Reinauer reina...@chromium.org The function setup_pcat_compatibility() is weak and implemented as empty function in board.c hence we don't have to override that with another empty function. monitor_flash_len is unused, drop it. Signed-off-by: Stefan Reinauer reina...@chromium.org

[U-Boot] [PATCH 06/20] x86: Add back cold- and warm-boot flags

2012-11-03 Thread Simon Glass
From: Gabe Black gabebl...@chromium.org These were removed, but actually are useful. Cold means that we started from a reset/power on. Warm means that we started from another U-Boot. We determine whether u-boot on x86 was warm or cold booted (really if it started at the beginning of the text

[U-Boot] [PATCH 13/20] x86: Issue SMI to finalize Coreboot in final stage

2012-11-03 Thread Simon Glass
From: Duncan Laurie dlau...@chromium.org This will write magic value to APMC command port which will trigger an SMI and cause coreboot to lock down the ME, chipset, and CPU. Signed-off-by: Duncan Laurie dlau...@chromium.org Signed-off-by: Simon Glass s...@chromium.org ---

[U-Boot] [PATCH 04/20] x86: Make calculate_relocation_address an overridable function

2012-11-03 Thread Simon Glass
From: Gabe Black gabebl...@chromium.org Different systems may have different mechanisms for picking a suitable place to relocate U-Boot to. Signed-off-by: Gabe Black gabebl...@chromium.org Signed-off-by: Simon Glass s...@chromium.org --- arch/x86/lib/init_helpers.c |3 ++- 1 files changed,

[U-Boot] [PATCH 15/20] x86: Provide a way to throttle port80 accesses

2012-11-03 Thread Simon Glass
From: Vadim Bendebury vben...@chromium.org Some systems (like Google Link device) provide the ability to keep a history of the target CPU port80 accesses, which is extremely handy for debugging. The problem is that the EC handling port 80 access is orders of magnitude slower than the AP. This

[U-Boot] [PATCH 1/3] lzma: update to lzma sdk 9.20

2012-11-03 Thread Simon Glass
From: Stefan Reinauer reina...@chromium.org Updated code taken from latest lzma sdk release 9.20 at http://downloads.sourceforge.net/sevenzip/lzma920.tar.bz2 This generates quite a lot of checkpatch warnings, but I guess we need to keep the code style as is to avoid a massive job each time we

[U-Boot] [PATCH 2/3] md5: Fix gcc-4.7 build problem in md5

2012-11-03 Thread Simon Glass
From: Han Shen shen...@google.com Fixed by replacing pointer casting with memcpy. Signed-off-by: Simon Glass s...@chromium.org --- lib/md5.c |3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/lib/md5.c b/lib/md5.c index 2ae4a06..9791e59 100644 --- a/lib/md5.c +++

[U-Boot] [PATCH 3/3] Add stricmp() and strnicmp()

2012-11-03 Thread Simon Glass
strnicmp() is present but disabled. Make it available and define stricmp() also. There is a only a small performance penalty to having stricmp() call strnicmp(), so do this instead of a standalone function, to save code space. BRANCH=none Signed-off-by: Simon Glass s...@chromium.org ---

Re: [U-Boot] [PATCH 04/10] arm: Move fdt check earlier so that board_early_init_f() can use it

2012-11-03 Thread Simon Glass
Hi Wolfgang, On Sat, Nov 3, 2012 at 7:56 AM, Wolfgang Denk w...@denx.de wrote: Dear Simon Glass, In message 1351813330-23741-4-git-send-email-...@chromium.org you wrote: We want to use the fdt inside board_early_init_f(), so check for its presence earlier in the pre-reloc init sequence.

Re: [U-Boot] [PATCH 1/2] MAKEALL: Fix kill_children

2012-11-03 Thread Tom Rini
On Tue, Oct 30, 2012 at 08:55:20PM -0500, Joe Hershberger wrote: When building in parallel, make sure that we look up the children based on the the actual process group id instead of just assuming that the MAKEALL pid is the process group id. Also ensure that logs from incomplete builds are

Re: [U-Boot] [PATCH v4 00/24] pmic: Redesign PMIC framework to support multiple instances of devices

2012-11-03 Thread Tom Rini
On Tue, Oct 30, 2012 at 05:56:55PM +0100, Lukasz Majewski wrote: PMIC framework has been redesigned to support multiple instances of power related devices (e.g. fuel gauge, PMICs, chargers, micro USB IC, battery). I _think_ this series is causing: $ uboot-build.sh mx51_efikamx Testing

Re: [U-Boot] [RFC PATCH 00/50] net: net subsystem ops cleanup

2012-11-03 Thread Tomas Hlavacek
Dear Wolfgang, On Sat, Nov 3, 2012 at 4:09 PM, Wolfgang Denk w...@denx.de wrote: Dear Tomas Hlavacek, In message 1351876722-5183-1-git-send-email-tmshl...@gmail.com you wrote: This patchset is a first stage of preparation of the net subsystem for the driver model. The idea of this patchset

[U-Boot] [PATCH] mmc: add no simultaenous power and vdd

2012-11-03 Thread RgC
Bring in the code from Linux kernel. Signed-off-by: RgC sessya...@gmail.com CC: Andy Fleming aflem...@freescale.com modified: drivers/mmc/sdhci.c modified: include/sdhci.h --- drivers/mmc/sdhci.c | 3 +++ include/sdhci.h | 1 + 2 files changed, 4 insertions(+) diff

Re: [U-Boot] [PATCH 1/3] tpm: Add casts for proper compilation

2012-11-03 Thread Wolfgang Denk
Dear Simon, In message capnjgz0rv991pa7mevxr463g-tkka+rzf8gn7r0_zbznowo...@mail.gmail.com you wrote: I recommend to remove the whole TPM code instead. It is actually used in the x86 Chromebook, but the patch to enable it never made it to mainline. There was quite a bit of push-back on

Re: [U-Boot] [PATCH] TPM: remove dead code

2012-11-03 Thread Wolfgang Denk
Dear Simon, In message CAPnjgZ0JLarq6r=she+cfbjkyuf6hrggp4br9u_asug14mz...@mail.gmail.com you wrote: On Sat, Nov 3, 2012 at 9:30 AM, Wolfgang Denk w...@denx.de wrote: The TPM code was added more than a year or 4 releases ago. This was done under the proposition that board support that

Re: [U-Boot] [PATCH 3/3] Add stricmp() and strnicmp()

2012-11-03 Thread Wolfgang Denk
Dear Simon Glass, In message 1351979121-3769-3-git-send-email-...@chromium.org you wrote: strnicmp() is present but disabled. Make it available and define stricmp() also. There is a only a small performance penalty to having stricmp() call strnicmp(), so do this instead of a standalone

Re: [U-Boot] [PATCH 2/3] md5: Fix gcc-4.7 build problem in md5

2012-11-03 Thread Wolfgang Denk
Dear Simon Glass, In message 1351979121-3769-2-git-send-email-...@chromium.org you wrote: From: Han Shen shen...@google.com Fixed by replacing pointer casting with memcpy. Signed-off-by: Simon Glass s...@chromium.org --- lib/md5.c |3 +-- 1 files changed, 1 insertions(+), 2

Re: [U-Boot] [PATCH] mmc: add no simultaenous power and vdd

2012-11-03 Thread Wolfgang Denk
Dear RgC, In message 20121104001018.GA57283@crg you wrote: Bring in the code from Linux kernel. PLease provide exact reference; see http://www.denx.de/wiki/view/U-Boot/Patches#Attributing_Code_Copyrights_Sign Signed-off-by: RgC sessya...@gmail.com Sorry, but we need a real name here. Best

Re: [U-Boot] [PATCH 2/3] md5: Fix gcc-4.7 build problem in md5

2012-11-03 Thread Wolfgang Denk
Dear Simon, In message 20121104003242.92729200...@gemini.denx.de I wrote: /* Append length in bits and transform */ - ctx-in32[14] = ctx-bits[0]; - ctx-in32[15] = ctx-bits[1]; + memcpy(ctx-in + 14 * sizeof(__u32), ctx-bits, 2 * sizeof(__u32)); This makes the code actually

Re: [U-Boot] [PATCH] mmc: add no simultaenous power and vdd

2012-11-03 Thread RgC
Dear Wolfgang, On 2012.11/04, Wolfgang Denk wrote: Dear RgC, In message 20121104001018.GA57283@crg you wrote: Bring in the code from Linux kernel. PLease provide exact reference; see http://www.denx.de/wiki/view/U-Boot/Patches#Attributing_Code_Copyrights_Sign Sorry wasn't reading

[U-Boot] [PATCH v2] mmc: add no simultaenous power and vdd

2012-11-03 Thread RgC
Bring in the code from Linux kernel. Added to Linux kernel by: commit e08c1694d9e2138204f2b79b73f0f159074ce2f5 Author: Andres Salomon dilin...@queued.net Date: Fri Jul 4 10:00:03 2008 -0700 Some HW balks when writing both voltage setting and power up at the same time to SDHCI_POWER_CONTROL

[U-Boot] [PATCH v1 0/1] Factorize ARM startup code as mush as possible.

2012-11-03 Thread Albert ARIBAUD
File crt0.S is introduced which contains the C runtime framework, that is, the assembly code responsible for setting up the C environments needed by board_init_*() and relocate_code(). Corresponding code is removed from all start.S files in arch/arm. This precedes further factorization, e.g.

[U-Boot] [PATCH v1] arm: move generic startup code in crt0.S

2012-11-03 Thread Albert ARIBAUD
Signed-off-by: Albert ARIBAUD albert.u.b...@aribaud.net --- arch/arm/cpu/arm1136/start.S | 62 ++ arch/arm/cpu/arm1176/start.S | 62 ++ arch/arm/cpu/arm720t/start.S | 53 ++--- arch/arm/cpu/arm920t/start.S | 61

Re: [U-Boot] [PATCH] TPM: remove dead code

2012-11-03 Thread Simon Glass
Hi Wolfgang, On Sat, Nov 3, 2012 at 5:28 PM, Wolfgang Denk w...@denx.de wrote: Dear Simon, In message CAPnjgZ0JLarq6r=she+cfbjkyuf6hrggp4br9u_asug14mz...@mail.gmail.com you wrote: On Sat, Nov 3, 2012 at 9:30 AM, Wolfgang Denk w...@denx.de wrote: The TPM code was added more than a year

Re: [U-Boot] [PATCH 3/3] Add stricmp() and strnicmp()

2012-11-03 Thread Simon Glass
Hi Wolfgang, On Sat, Nov 3, 2012 at 5:31 PM, Wolfgang Denk w...@denx.de wrote: Dear Simon Glass, In message 1351979121-3769-3-git-send-email-...@chromium.org you wrote: strnicmp() is present but disabled. Make it available and define stricmp() also. There is a only a small performance