Re: [U-Boot] [RFC PATCH V2] imx: add multi-BOM README

2013-11-10 Thread Wolfgang Denk
Dear Eric Nelson, In message <1384037510-12154-1-git-send-email-eric.nel...@boundarydevices.com> you wrote: > Signed-off-by: Eric Nelson > --- > V2 replaces the words "arch" and "architecture", since we're talking about > processor variations within a family, not different processor architecture

Re: [U-Boot] [PATCH v4 0/8] Provide a mechanism to avoid using #ifdef everywhere

2013-11-10 Thread Wolfgang Denk
Dear Simon, In message you wrote: > ... > > By chance I ran about "include/linux/kconfig.h" in the Linux kernel > > tree, which provides (among other things) the IS_ENABLED() macro that > > implements essentially the very same feature. Using this, the same > > code would be written as: > > > >

Re: [U-Boot] [PATCH 2/3] gpio_led: check gpio_request() return value

2013-11-10 Thread Igor Grinberg
On 11/08/13 01:03, Igor Grinberg wrote: > Add a check for the gpio_request() function return value and do not try > to configure the GPIO if the gpio_request() call fails. > Also, print an error message indicating the gpio_request() has failed. > > Signed-off-by: Igor Grinberg Tested-by: Ilya Le

Re: [U-Boot] [PATCH 3/3] gpio_led: add support for inverted polarity

2013-11-10 Thread Igor Grinberg
On 11/08/13 01:03, Igor Grinberg wrote: > Some GPIO connected LEDs have inverted polarity. > Introduce new config option: CONFIG_GPIO_LED_INVERTED_TABLE for the > specifying the inverted GPIO LEDs list and add support for this in the > gpio_led driver. > > Signed-off-by: Igor Grinberg Tested-b

[U-Boot] [PATCH 0/32] Add additional sandbox features and infrastructure

2013-11-10 Thread Simon Glass
At present sandbox only supports a basic set of features. To help address this, a recent series added SPI and SPI flash support; this series expands the coverage further. Firstly SDL is used to provide LCD and audio support. Sandbox gains its own LCD driver which can display images, host a command

[U-Boot] [PATCH 01/32] Add crc8 routine

2013-11-10 Thread Simon Glass
Add an implementation of the CRC8 algorithm. This is required by the TPM emulation, but is probably useful to U-Boot in general. Signed-off-by: Simon Glass Signed-off-by: Simon Glass Reviewed-by: Simon Glass --- include/linux/crc8.h | 23 +++ lib/Makefile | 1 + l

[U-Boot] [PATCH 05/32] sandbox: spi: Adjust 'sf test' to work on sandbox

2013-11-10 Thread Simon Glass
Add map_sysmem() calls so that this test works correctly on sandbox. Signed-off-by: Simon Glass Signed-off-by: Simon Glass Reviewed-by: Hung-ying Tyan --- common/cmd_sf.c | 14 +- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/common/cmd_sf.c b/common/cmd_sf.c index

[U-Boot] [PATCH 07/32] sandbox: config: Don't use 64-bit physical memory

2013-11-10 Thread Simon Glass
Sandbox uses an emulated memory map which is quite small. We don't need the CONFIG_PHYS_64BIT option since we can address memory with a 32-bit offset into our ram_buf. Adjust the phys_addr_t and phys_size_t types accordingly. Signed-off-by: Simon Glass Signed-off-by: Simon Glass Reviewed-by: Hu

[U-Boot] [PATCH 06/32] sandbox: Build a device tree file for sandbox

2013-11-10 Thread Simon Glass
Add support for building a device tree for sandbox's CONFIG_OF_HOSTFILE option to make it easier to use device tree with sandbox. This adjusts the Makefile to build a u-boot.dtb file which can be passed to sandbox U-Boot with: ./u-boot -d u-boot.dtb Signed-off-by: Simon Glass Signed-off-by:

[U-Boot] [PATCH 23/32] cros_ec: Add an enum for the number of flash regions

2013-11-10 Thread Simon Glass
Add an enum for the number of flash regions so we can keep track of all the possible regions. Signed-off-by: Simon Glass Signed-off-by: Simon Glass Reviewed-by: Randall Spangler --- include/ec_commands.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/ec_commands

[U-Boot] [PATCH 28/32] sandbox: Add os_jump_to_image() to run another executable

2013-11-10 Thread Simon Glass
For some tests it is useful to be able to run U-Boot again but pass on the same memory contents. Add a function to achieve this. Signed-off-by: Simon Glass Signed-off-by: Simon Glass Reviewed-by: Simon Glass --- arch/sandbox/cpu/os.c | 89 +++ i

[U-Boot] [PATCH 29/32] sandbox: Add -j option to indicate a jump from a previous U-Boot

2013-11-10 Thread Simon Glass
In order to support the 'go' command we allow the jumping U-Boot to pass its filename to the new U-Boot image. This can then be used to delete that image if required. Signed-off-by: Simon Glass Signed-off-by: Simon Glass Reviewed-by: Simon Glass Tested-by: Che-Liang Chiou --- arch/sandbox/cpu

[U-Boot] [PATCH 08/32] sandbox: Correct data sizes and printf() strings in fdtdec.c

2013-11-10 Thread Simon Glass
There are a few wwrnings in this file when building for sandbox. Addresses coming from the device tree need to be treated as ulong as elsewhere in U-Boot and we must use map_sysmem() to convert to a pointer when needed. Signed-off-by: Simon Glass Signed-off-by: Simon Glass Reviewed-by: Hung-ying

[U-Boot] [PATCH 10/32] sandbox: block driver using host file/device as backing store

2013-11-10 Thread Simon Glass
From: Henrik Nordström Provide a way to use any host file or device as a block device in U-Boot. This can be used to provide filesystem access within U-Boot to an ext2 image file on the host, for example. The support is plumbed into the filesystem and partition interfaces. We don't want to prin

[U-Boot] [PATCH 32/32] sandbox: Add LCD driver

2013-11-10 Thread Simon Glass
Add a simple LCD driver which uses SDL to display the image. We update the image regularly, while still providing for reasonable performance. Adjust the common lcd code to support sandbox. For command-line runs we do not want the LCD to be displayed, so add a --hide_lcd option to disable it. Sig

[U-Boot] [PATCH 19/32] sandbox: tpm: Add TPM emulation

2013-11-10 Thread Simon Glass
Add a simple TPM emulator for sandbox. It only supports a small subset of TPM operations. However, these are enough to perform common tasks. Note this is an initial commit to get this working, but it could use cleaning up (for example constants instead of open-coded values). Signed-off-by: Simon

[U-Boot] [PATCH 02/32] sandbox: Use system headers first for sandbox's os.c

2013-11-10 Thread Simon Glass
This file must be compiled with system headers, even if U-Boot has headers of the same name. The existing solution for this is good enough for libfdt, but fails when we have headers like stdint.h in U-Boot. Use -idirafter instead of -I, and remove the -nostdinc and other things that we don't want

[U-Boot] [PATCH 12/32] sandbox: Correct help message garbling

2013-11-10 Thread Simon Glass
The is displayed for options with no argument, and omitted for those with an argument. Swap this around. Signed-off-by: Simon Glass Signed-off-by: Simon Glass --- arch/sandbox/cpu/start.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/sandbox/cpu/start.c b/arch/sa

[U-Boot] [PATCH 31/32] sandbox: Add a simple sound driver

2013-11-10 Thread Simon Glass
Add a sound driver for sandbox, which uses SDL. Signed-off-by: Simon Glass Signed-off-by: Simon Glass Tested-by: Che-Liang Chiou --- arch/sandbox/include/asm/arch-sandbox/sound.h | 14 ++ drivers/sound/Makefile| 2 ++ drivers/sound/sandbox.c

[U-Boot] [PATCH 03/32] sandbox: Use uint64_t instead of u64 for time

2013-11-10 Thread Simon Glass
The uint64_t type is defined in linux/types.h, so is safer than u64, which is not actually a Linux type. Signed-off-by: Simon Glass --- arch/sandbox/cpu/os.c | 3 ++- include/os.h | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/arch/sandbox/cpu/os.c b/arch/sandb

[U-Boot] [PATCH 04/32] sandbox: Increase memory size to 32MB

2013-11-10 Thread Simon Glass
The current 4MB size is a little small for some tests, so increase it. Signed-off-by: Simon Glass Signed-off-by: Simon Glass Reviewed-by: Hung-ying Tyan --- include/configs/sandbox.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/configs/sandbox.h b/include/configs

[U-Boot] [PATCH 15/32] sandbox: Allow the console to work earlier

2013-11-10 Thread Simon Glass
With sandbox, errors and problems may be reported before console_init_f() is executed. For example, an argument may not parse correctly or U-Boot may panic(). At present this output is swallowed so there is no indication what is going wrong. Adjust the console to deal with a very early sandbox set

[U-Boot] [PATCH 18/32] sandbox: Add facility to save/restore sandbox state

2013-11-10 Thread Simon Glass
It is often useful to be able to save out the state from a sandbox test run, for analysis or to restore it later to continue a test. Add generic infrastructure for doing this using a device tree binary file. This is a flexible tagged file format which is already supported by U-Boot, and it supports

[U-Boot] [PATCH 20/32] sandbox: dts: Add display and keyboard to sandbox

2013-11-10 Thread Simon Glass
Add an LCD display and keyboard to the sandbox device tree so that these features can be used. Signed-off-by: Simon Glass Signed-off-by: Simon Glass --- board/sandbox/dts/sandbox.dts | 62 +++ 1 file changed, 62 insertions(+) diff --git a/board/sandbox/d

[U-Boot] [PATCH 22/32] sandbox: tpm: Fix nvwrite command

2013-11-10 Thread Simon Glass
From: Che-Liang Chiou The original codes misused recvbuf in source buffer instead of sendbuf, and read from incorrect offset 14 instead of 22. Signed-off-by: Che-Liang Chiou Signed-off-by: Simon Glass Reviewed-by: Simon Glass Tested-by: Che-Liang Chiou --- drivers/tpm/tpm_tis_sandbox.c | 4

[U-Boot] [PATCH 26/32] cros_ec: Add a function for decoding the Chrome OS EC flashmap

2013-11-10 Thread Simon Glass
In order to talk to the EC properly we need to be able to understand the layout of its internal flash memory. This permits emulation of the EC for sandbox, and also software system with a real EC. Signed-off-by: Simon Glass Signed-off-by: Simon Glass --- drivers/misc/cros_ec.c | 50

[U-Boot] [PATCH 30/32] sandbox: Add SDL library for LCD, keyboard, audio

2013-11-10 Thread Simon Glass
SDL (Simple DirectMedia Layer - see www.libsdl.org) is a library which provides simple graphics and sound features. It works under X11 and also with a simple frame buffer interface. It is ideally suited to sandbox U-Boot since it fits nicely with the low-level feature set required by U-Boot. For ex

[U-Boot] [PATCH 27/32] cros_ec: sandbox: Add Chrome OS EC emulation

2013-11-10 Thread Simon Glass
Add a simple emulation of the Chrome OS EC for sandbox, so that it can perform various EC tasks required by verified boot. Signed-off-by: Simon Glass Signed-off-by: Simon Glass Reviewed-by: Vadim Bendebury --- drivers/misc/Makefile | 1 + drivers/misc/cros_ec_sandbox.c | 558 +++

[U-Boot] [PATCH 14/32] sandbox: Implement the bootm command for sandbox

2013-11-10 Thread Simon Glass
When sandbox does a 'bootm' to run a kernel we cannot actually execute it. So just exit sandbox, which is essentially what U-Boot does on other archs. Also, allow sandbox to use bootm on any kernel, so that it can be used to test booting of kernels from any architecture. Signed-off-by: Simon Glass

[U-Boot] [PATCH 25/32] cros_ec: Move EC interface into common library

2013-11-10 Thread Simon Glass
From: Vadim Bendebury Add a common library for obtaining access to the Chrome OS EC. This is used by boards which need to talk to the EC. Signed-off-by: Vadim Bendebury Signed-off-by: Simon Glass Reviewed-by: Vadim Bendebury Tested-by: Vadim Bendebury --- board/samsung/smdk5250/exynos5-dt.c

[U-Boot] [PATCH 24/32] fdt: Add a function for reading a flash map entry

2013-11-10 Thread Simon Glass
A flash map describes the layout of flash memory in terms of offsets and sizes for each region. Add a function to read a flash map entry from the device tree. (Unfortunately I had to change this commit to also touch cros/ but it is a very small change and can be removed for upstreaming.) Signed-o

[U-Boot] [PATCH 13/32] sandbox: Allow return from board_init_f()

2013-11-10 Thread Simon Glass
The execution flow becomes easier if we can return from board_init_f() as ARM does. We can control things from start.c instead of having to call back into that file from other places. Signed-off-by: Simon Glass Signed-off-by: Simon Glass --- arch/sandbox/cpu/start.c | 11 ++- common/boa

[U-Boot] [PATCH 11/32] sandbox: Improve/augment memory allocation functions

2013-11-10 Thread Simon Glass
Implement realloc() and free() for sandbox, by adding a header to each block which contains the block size. Signed-off-by: Simon Glass Signed-off-by: Simon Glass Reviewed-by: Che-Liang Chiou Reviewed-by: Hung-ying Tyan --- arch/sandbox/cpu/os.c | 45 +++

[U-Boot] [PATCH 09/32] sandbox: Use os functions to read host device tree

2013-11-10 Thread Simon Glass
At present we use U-Boot's filesystem layer to read the sandbox device tree, but this is problematic since it relies on a temporary feauture added there. Since we plan to implement proper block layer support for sandbox, change this code to use the os layer functions instead. Also use the new fdt_c

[U-Boot] [PATCH 17/32] sandbox: Allow reading/writing of RAM buffer

2013-11-10 Thread Simon Glass
It is useful to be able to save and restore the RAM contents of sandbox U-Boot either for setting up tests, for later analysys, or for chaining together multiple tests which need to keep the same memory contents. Add a function to provide a memory file for U-Boot. This is read on start-up and writ

[U-Boot] [PATCH 0/32] Add additional sandbox features and infrastructure

2013-11-10 Thread Simon Glass
At present sandbox only supports a basic set of features. To help address this, a recent series added SPI and SPI flash support; this series expands the coverage further. Firstly SDL is used to provide LCD and audio support. Sandbox gains its own LCD driver which can display images, host a command

[U-Boot] [PATCH 21/32] sandbox: Add a prototype for cleanup_before_linux()

2013-11-10 Thread Simon Glass
This function is defined but has no prototype declaration. Add it. Signed-off-by: Simon Glass Signed-off-by: Simon Glass --- arch/sandbox/include/asm/u-boot-sandbox.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/sandbox/include/asm/u-boot-sandbox.h b/arch/sandbox/include/asm/u-bo

Re: [U-Boot] Non-trivial merge conflicts between u-boot/master and u-boot-arm/master

2013-11-10 Thread Gerhard Sittig
On Sat, Nov 09, 2013 at 14:50 -0500, Tom Rini wrote: > > On Sat, Nov 09, 2013 at 06:49:01PM +0100, Albert ARIBAUD wrote: > > > > Which 'not-a-diff-exactly' do you mean? > > Well, for example 'git show c0bb110' shows how > arch/blackfin/cpu/Makefile was merged as a conflict I had to fixup. The >

[U-Boot] [PATCH 16/32] sandbox: Add -i option to enter interactive mode

2013-11-10 Thread Simon Glass
Normally when U-Boot starts with a command (-c option) it quits when the command completes. Normally this is what is requires, since the test is likely complete. Provide an option to jump into the console instead, so that debugging or other tasks may be performed before quitting. Signed-off-by: S

Re: [U-Boot] [PATCH v6 07/17] dm: Add README for driver model

2013-11-10 Thread Gerhard Sittig
On Thu, Nov 07, 2013 at 09:32 -0700, Simon Glass wrote: > > +Declaring Drivers > +- > + > +A driver declaration looks something like this (see > +drivers/demo/demo-shape.c): > + > +static const struct demo_ops simple_ops = { > + .hello = shape_hello, > + .status = shape_sta

Re: [U-Boot] [PATCH v6 07/17] dm: Add README for driver model

2013-11-10 Thread Gerhard Sittig
On Thu, Nov 07, 2013 at 09:32 -0700, Simon Glass wrote: > > +Terminology > +--- > + > +Uclass - a group of device which operate in the same way. A uclass provides s/device/devices/? > +What is going on? > +- > + > +Let's start at the top. The demo command is in common/cmd

Re: [U-Boot] [PATCH v2 05/18] pcnet: enable the NOUFLO feature

2013-11-10 Thread Marek Vasut
Dear Paul Burton, > On relatively slow boards (such as the MIPS Malta with an FPGA core > card) it can be extremely common for transmits to underflow - to the > point where it appears they simply do not work at all. Setting the > NOUFLO bit causes the ethernet controller to not begin transmission

Re: [U-Boot] [PATCH 16/18] malta: setup PIIX4 interrupt route

2013-11-10 Thread Marek Vasut
Dear Paul Burton, > Without setting up the PIRQ[A:D] interrupt routes, PCI interrupts will > be left disabled. Linux does not set up this routing but relies upon it > having been set up by the bootloader, reading back the IRQ lines which > the PIRQ[A:D] signals have been routed to. Did you also s

Re: [U-Boot] [PATCH v4 1/8] Implement autoconf header file

2013-11-10 Thread Marek Vasut
Dear Simon Glass, > Add support for generating an autoconf.h header file that can be used in > the source instead of #ifdef. > > For example, instead of: > > #ifdef CONFIG_VERSION_VARIABLE > setenv("ver", version_string); /* set version variable */ > #endif I hope this has nothing to d

Re: [U-Boot] [PATCH v3 09/18] malta: support for coreFPGA6 boards

2013-11-10 Thread Marek Vasut
Dear Paul Burton, > This patch adds support for running on Malta boards using coreFPGA6 > core cards, including support for the msc01 system controller used > with them. The system controller is detected at runtime allowing one > U-boot binary to run on a Malta with either. > > Due to the PCI I/O

Re: [U-Boot] [PATCH v5 07/18] qemu-malta: rename to just "malta"

2013-11-10 Thread Marek Vasut
Dear Paul Burton, > This is in preparation for adapting this board to function correctly on > a physical MIPS Malta board. The board is moved into an "imgtec" vendor > directory at the same time in order to ready us for any other boards > supported by Imagination in the future. > > Signed-off-by:

Re: [U-Boot] [PATCH v3 08/18] malta: setup super I/O UARTs

2013-11-10 Thread Marek Vasut
Dear Paul Burton, > On a real Malta the Super I/O needs to be configured before we are able > to access the UARTs. This patch performs that configuration, setting up > the UARTs in the same way that YAMON would. [...] > --- /dev/null > +++ b/board/imgtec/malta/superio.c Do we not already have s

Re: [U-Boot] [PATCH v3 10/18] malta: display "U-boot" on the LCD screen

2013-11-10 Thread Marek Vasut
Dear Paul Burton, > Displaying a message on the LCD screen is a simple yet effective way to > show the user that the board has booted successfully. > > Signed-off-by: Paul Burton > --- > Changes in v3: > - rebase atop master > > Changes in v2: > - rebased after malta moved to board/imgtec/m

[U-Boot] [PATCH v2] configs: clean up unused macro CONFIG_L2_OFF

2013-11-10 Thread Masahiro Yamada
Since commit c2dd0d455 and 45bf05854 introduced the new cache maintainance framework to ARM, CONFIG_L2_OFF has not been used at all. Signed-off-by: Masahiro Yamada --- Changes in v2: - fix commit log include/configs/highbank.h | 1 - include/configs/kzm9g.h| 1 - include/c

Re: [U-Boot] [PATCH] configs: clean up unused macro CONFIG_L2_OFF

2013-11-10 Thread Masahiro Yamada
> Since commit c2dd0d455 and 45bf05854 introduced > the new cache maintainance framework to ARM, > CONFIG_L2_OFF has been used at all. Commit log was wrong. s/has been used/has not been used/ I posted v2 with corrected commit log. Best Regards Masahiro Yamada ___

Re: [U-Boot] [U-boot] uboot support ext4 format command?

2013-11-10 Thread TigerLiu
Hi, Albert: >I don't think it does, but you can find out by looking at the >documentation and code. >Besides, I don't think being able to format a filesystem from >the bootloader is really needed; this task is best performed in a >full-fledged operating system IMO. I aslo don't think uboot need

Re: [U-Boot] [PATCH 3/3] gpio_led: add support for inverted polarity

2013-11-10 Thread Otavio Salvador
On Thu, Nov 7, 2013 at 9:03 PM, Igor Grinberg wrote: > Some GPIO connected LEDs have inverted polarity. > Introduce new config option: CONFIG_GPIO_LED_INVERTED_TABLE for the > specifying the inverted GPIO LEDs list and add support for this in the > gpio_led driver. > > Signed-off-by: Igor Grinberg

[U-Boot] [PATCH] board: cogent: include header files in a more natural way

2013-11-10 Thread Masahiro Yamada
Signed-off-by: Masahiro Yamada --- Note: I built cogent_mpc8260 and cogent_mpc8xx boards and confirmed that the same binaries were still generated with the changes in this commit. board/cogent/config.mk | 12 board/cogent/dipsw.c | 2 +- board/cogent/flash.c | 2 +- board/coge

Re: [U-Boot] Question about patman

2013-11-10 Thread Masahiro Yamada
Hello Albert. > I have posted a patch to allow adding notes below the '---' line, if > this is what you mean. So far, there was no comment on it. See: > > http://patchwork.ozlabs.org/patch/283057/ Yeah! This is the function exactly I have wanted. Thank you. Beat Regards Masahiro Yamada __

Re: [U-Boot] [PATCH 3/4] arm: rmobile: Add support R8A7791

2013-11-10 Thread Nobuhiro Iwamatsu
Hi, OK. I removed unused defines from code. I already resend updarted patches. Could you check these? Best regards, Nobuhirio 2013/11/5 Albert ARIBAUD : > Hi Nobuhiro, > > On Thu, 31 Oct 2013 17:18:54 +0900, Nobuhiro Iwamatsu > wrote: > >> Hi, again. >> >> 2013/10/31 Nobuhiro Iwamatsu : >> >

[U-Boot] patman drops Cc tag

2013-11-10 Thread Masahiro Yamada
Hello. It seems patman deletes "Cc:" tag when it generating a patch file. Is this a bug or a spec? I want Cc: tag not to be touched by patman. Best Regards Masahiro Yamada ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listi

[U-Boot] [PATCH] nios2: remove unnecessary header include path

2013-11-10 Thread Masahiro Yamada
Signed-off-by: Masahiro Yamada Cc: Thomas Chou --- Note: I built all of nios2 boards and confirmed that the same binaries were still generated with the changes in this commit. board/altera/nios2-generic/config.mk | 4 board/psyent/pci5441/config.mk | 1 - board/psyent/pk1c20/config.

[U-Boot] [PATCH] cosmetic: README.scrapyard: Add eNET board

2013-11-10 Thread Masahiro Yamada
Commit 7e8c53d7 removed eNET board but missed to add eNET to README.scrapyard. This commit adds it for the record. Signed-off-by: Masahiro Yamada Cc: Simon Glass Cc: Graeme Russ --- doc/README.scrapyard | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/README.scrapyard b/doc/README.scrap

[U-Boot] [PATCH] examples: remove the remainders of dead board

2013-11-10 Thread Masahiro Yamada
Commit 309a292e deleted OXC board, but missed to remove the standalone example specific to OXC board. eepro100_eeprom.c has been an orphan file for a long term. Signed-off-by: Masahiro Yamada --- examples/standalone/Makefile | 4 +- examples/standalone/eepro100_eeprom.c | 214 ---

[U-Boot] [PATCH] examples: add again x86 standalone example

2013-11-10 Thread Masahiro Yamada
Commit fea25720 renamed arch/i386 to arch/x86. But it missed to modify examples/standalone/Makefile. This commit revives examples/standalone/82559_eeprom. Signed-off-by: Masahiro Yamada Cc: Simon Glass --- Hello, Simon. I think examples/standalone/82559_eeprom should have been originally impl

[U-Boot] [U-boot] not support parsing Android's boot.img format ?

2013-11-10 Thread TigerLiu
Hi, experts: It seems current uboot does not support parse boot.img which saved in NAND chip. Boot.img contains : kernel.img and ramdisk.img It contains a header struct: struct boot_img_hdr { unsigned char magic[BOOT_MAGIC_SIZE]; unsigned kernel_size; /* size in bytes */ uns

[U-Boot] [PATCH] board: Do not add -DCONFIG_SYS_TEXT_BASE in board config.mk

2013-11-10 Thread Masahiro Yamada
Board config.mk do not need to add -DCONFIG_SYS_TEXT_BASE to CPPFLAGS because the top level config.mk does instead. Signed-off-by: Masahiro Yamada --- See around line 240 of ./config.mk >>> ifneq ($(CONFIG_SYS_TEXT_BASE),) CPPFLAGS += -DCONFIG_SYS_TEXT_BASE=$(CONFIG_SYS_TEXT_BASE) endif <<<

[U-Boot] [PATCH 13/22] Makefile: refactor a little

2013-11-10 Thread Masahiro Yamada
Signed-off-by: Masahiro Yamada --- Makefile | 4 +--- spl/Makefile | 3 +-- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 1389ee7..e28878b 100644 --- a/Makefile +++ b/Makefile @@ -65,11 +65,9 @@ endif # the object files are placed in the source dire

[U-Boot] [PATCH 06/22] Makefile: make directories by Makefile.build

2013-11-10 Thread Masahiro Yamada
Signed-off-by: Masahiro Yamada --- arch/powerpc/cpu/mpc512x/Makefile | 2 -- arch/powerpc/cpu/mpc824x/Makefile | 4 board/LaCie/edminiv2/Makefile | 4 board/LaCie/net2big_v2/Makefile | 4 board/LaCie/netspace_v2/Makefile | 4 boar

[U-Boot] [PATCH 17/22] powerpc: mpc83xx: delete unused rules

2013-11-10 Thread Masahiro Yamada
Signed-off-by: Masahiro Yamada --- arch/powerpc/cpu/mpc83xx/Makefile | 6 -- 1 file changed, 6 deletions(-) diff --git a/arch/powerpc/cpu/mpc83xx/Makefile b/arch/powerpc/cpu/mpc83xx/Makefile index b7142f0..a501a3b 100644 --- a/arch/powerpc/cpu/mpc83xx/Makefile +++ b/arch/powerpc/cpu/mpc83xx

[U-Boot] [PATCH 03/22] drivers: descend into sub directories only when it is necessary

2013-11-10 Thread Masahiro Yamada
- Descend into drivers/fpga/ only when CONFIG_FPGA=y - Descend into drivers/bios_emulator only when CONFIG_BIOSEMU=y Signed-off-by: Masahiro Yamada --- drivers/Makefile | 4 ++-- drivers/bios_emulator/Makefile | 2 +- drivers/fpga/Makefile | 2 -- 3 files changed, 3 in

[U-Boot] [PATCH 07/22] Makefile: merge $(LIBBOARD) into $(LIBS)

2013-11-10 Thread Masahiro Yamada
We do not need to handle $(LIBBOARD) and $(LIBS) separately. Signed-off-by: Masahiro Yamada --- Makefile | 13 - 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/Makefile b/Makefile index e12f180..419278a 100644 --- a/Makefile +++ b/Makefile @@ -306,12 +306,11 @@ endif

[U-Boot] [PATCH 08/22] powerpc: move mpc8xxx entry under arch/powerpc/cpu/

2013-11-10 Thread Masahiro Yamada
Signed-off-by: Masahiro Yamada --- Makefile | 9 + arch/powerpc/cpu/Makefile | 3 +++ arch/powerpc/cpu/mpc8xxx/Makefile | 6 ++ spl/Makefile | 13 + 4 files changed, 11 insertions(+), 20 deletions(-) create mode 100

[U-Boot] [PATCH 21/22] Makefile: move fs/fat/ entry to drivers/Makefile

2013-11-10 Thread Masahiro Yamada
Signed-off-by: Masahiro Yamada Cc: Simon Glass --- Makefile | 3 +-- fs/Makefile | 5 + spl/Makefile | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index c04917f..b8713a4 100644 --- a/Makefile +++ b/Makefile @@ -243,8 +243,7 @@ endif LIBS-$(C

[U-Boot] [PATCH 00/22] A collection of trivial Makefile refactoring

2013-11-10 Thread Masahiro Yamada
This series does not add any new features but refactor makefiles. Masahiro Yamada (22): Makefile: abolish COBJS, SOBJS, etc. Makefile: specifiy an explicite object name rather than $(BOARD).o drivers: descend into sub directories only when it is necessary lib: descend into sub directories

[U-Boot] [PATCH 04/22] lib: descend into sub directories only when it is necessary

2013-11-10 Thread Masahiro Yamada
Signed-off-by: Masahiro Yamada --- Makefile | 8 lib/lzma/Makefile | 2 +- lib/lzo/Makefile | 2 +- lib/rsa/Makefile | 4 +--- lib/zlib/Makefile | 2 +- 5 files changed, 8 insertions(+), 10 deletions(-) diff --git a/Makefile b/Makefile index 1f499c5..e12f180 100644 --- a/Make

[U-Boot] [PATCH 10/22] drivers/net/fm: descend only when CONFIG_FMAN_ENET=y

2013-11-10 Thread Masahiro Yamada
CONFIG_FMAN_ENET is defined only for CPU mpc85xx. We do not need to filter by CPU mpc85xx. Signed-off-by: Masahiro Yamada --- Makefile| 4 +--- drivers/net/fm/Makefile | 2 -- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 0e9609f..5cdfc6d

[U-Boot] [PATCH 18/22] powerpc: mpc83xx: Do not create a symbolic link to ddr-gen2.c

2013-11-10 Thread Masahiro Yamada
Signed-off-by: Masahiro Yamada --- Makefile | 1 - arch/powerpc/cpu/mpc83xx/Makefile | 6 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 5ad2bd7..4f5a1ac 100644 --- a/Makefile +++ b/Makefile @@ -861,7 +861,6 @@ clobber:t

[U-Boot] [PATCH 19/22] powerpc: mpc824x: Do not create a symbolic link to bedbug_603e.c

2013-11-10 Thread Masahiro Yamada
Signed-off-by: Masahiro Yamada --- Makefile| 1 - arch/powerpc/cpu/mpc824x/.gitignore | 1 - arch/powerpc/cpu/mpc824x/Makefile | 6 +- 3 files changed, 1 insertion(+), 7 deletions(-) delete mode 100644 arch/powerpc/cpu/mpc824x/.gitignore diff --git a/Makefile b

[U-Boot] [PATCH 14/22] config.mk: delete unnecessary lines

2013-11-10 Thread Masahiro Yamada
SPL_BIN is already defined in spl/Makefile and it is used only in spl/Makefile. Signed-off-by: Masahiro Yamada --- config.mk | 6 -- 1 file changed, 6 deletions(-) diff --git a/config.mk b/config.mk index 8a82ab4..7c5c82d 100644 --- a/config.mk +++ b/config.mk @@ -13,12 +13,6 @@ SHELL := $(

[U-Boot] [PATCH 11/22] drivers/net/npe: descend only when CONFIG_IXP4XX_NPE=y

2013-11-10 Thread Masahiro Yamada
CONFIG_IXP4XX_NPE is defined only for CPU ixp. It is not necessary to filter by CPU ixp. Signed-off-by: Masahiro Yamada --- Makefile | 4 +--- drivers/net/npe/Makefile | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 5cdfc6d..4724f4

[U-Boot] [PATCH 05/22] drivers: tpm: clean up unused code

2013-11-10 Thread Masahiro Yamada
Signed-off-by: Masahiro Yamada --- drivers/tpm/Makefile | 2 - drivers/tpm/tis_i2c.c | 185 -- 2 files changed, 187 deletions(-) delete mode 100644 drivers/tpm/tis_i2c.c diff --git a/drivers/tpm/Makefile b/drivers/tpm/Makefile index 4b8cbec..2f

[U-Boot] [PATCH 15/22] tools: Makefile: delete redundant lines

2013-11-10 Thread Masahiro Yamada
HOSTOS is defined and exported at the top Makefile. Signed-off-by: Masahiro Yamada --- tools/gdb/Makefile | 2 -- 1 file changed, 2 deletions(-) diff --git a/tools/gdb/Makefile b/tools/gdb/Makefile index dee91fc..dd98fb6 100644 --- a/tools/gdb/Makefile +++ b/tools/gdb/Makefile @@ -23,8 +23,6 @@

[U-Boot] [PATCH 09/22] drivers/qe: move the entry to drivers/Makefile

2013-11-10 Thread Masahiro Yamada
Signed-off-by: Masahiro Yamada --- Makefile| 4 drivers/Makefile| 1 + drivers/qe/Makefile | 4 ++-- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 3a8ea67..0e9609f 100644 --- a/Makefile +++ b/Makefile @@ -271,11 +271,7 @@ LIBS-y += d

[U-Boot] [PATCH 01/22] Makefile: abolish COBJS, SOBJS, etc.

2013-11-10 Thread Masahiro Yamada
The support for COBJS, COBJS-y, SOBJS, SOBJS-y, GLCOBJS, GLSOBJS from scripts/Makefile.build. Going forward we need to use Kbuild style consistently. Signed-off-by: Masahiro Yamada --- scripts/Makefile.build | 12 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/scripts

[U-Boot] [PATCH 02/22] Makefile: specifiy an explicite object name rather than $(BOARD).o

2013-11-10 Thread Masahiro Yamada
Signed-off-by: Masahiro Yamada --- board/freescale/t1040qds/Makefile | 2 +- board/keymile/kmp204x/Makefile| 2 +- board/ti/beagle/Makefile | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/board/freescale/t1040qds/Makefile b/board/freescale/t1040qds/Makefile in

[U-Boot] [PATCH 20/22] arm: rmobile: Do not create a symbolic link to sh timer

2013-11-10 Thread Masahiro Yamada
Signed-off-by: Masahiro Yamada Cc: Nobuhiro Iwamatsu --- arch/arm/cpu/armv7/rmobile/Makefile | 8 +--- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/arch/arm/cpu/armv7/rmobile/Makefile b/arch/arm/cpu/armv7/rmobile/Makefile index 8f4cf3a..5e296c4 100644 --- a/arch/arm/cpu/armv

[U-Boot] [PATCH 16/22] Makefile: delete unused lines

2013-11-10 Thread Masahiro Yamada
Signed-off-by: Masahiro Yamada --- Makefile | 6 -- 1 file changed, 6 deletions(-) diff --git a/Makefile b/Makefile index e28878b..5ad2bd7 100644 --- a/Makefile +++ b/Makefile @@ -784,12 +784,6 @@ sinclude $(obj).boards.depend $(obj).boards.depend: boards.cfg @awk '(NF && $$1 !~ /^

[U-Boot] [PATCH 22/22] fs: descend into sub directories when it is necessary

2013-11-10 Thread Masahiro Yamada
Signed-off-by: Masahiro Yamada --- fs/Makefile | 20 ++-- fs/cbfs/Makefile | 2 +- fs/cramfs/Makefile | 4 ++-- fs/ext4/Makefile | 2 +- fs/fdos/Makefile | 2 +- fs/jffs2/Makefile| 2 -- fs/reiserfs/Makefile | 2 +- fs/sandbox/Makefile | 2 +- fs

[U-Boot] [PATCH 12/22] Makefile: rename all libraries to built-in.o

2013-11-10 Thread Masahiro Yamada
Signed-off-by: Masahiro Yamada --- Makefile | 112 ++--- arch/microblaze/cpu/u-boot.lds | 2 +- board/LEOX/elpt860/u-boot.lds | 8 +-- board/actux1/u-boot.lds| 8 +-- board/actux2/u-boot.l

Re: [U-Boot] [PATCH] cosmetic: README.scrapyard: Add eNET board

2013-11-10 Thread Simon Glass
On Sun, Nov 10, 2013 at 8:15 PM, Masahiro Yamada wrote: > Commit 7e8c53d7 removed eNET board but missed to > add eNET to README.scrapyard. > This commit adds it for the record. > > Signed-off-by: Masahiro Yamada > Cc: Simon Glass > Cc: Graeme Russ Acked-by: Simon Glass > --- > doc/README.sc

Re: [U-Boot] patman drops Cc tag

2013-11-10 Thread Simon Glass
Hi Masahiro, On Sun, Nov 10, 2013 at 8:11 PM, Masahiro Yamada wrote: > Hello. > > It seems patman deletes "Cc:" tag > when it generating a patch file. > Is this a bug or a spec? > It uses this to cc patches to people. > I want Cc: tag not to be touched by patman. Maybe we could add a new Patch-

Re: [U-Boot] [PATCH 21/22] Makefile: move fs/fat/ entry to drivers/Makefile

2013-11-10 Thread Simon Glass
On Sun, Nov 10, 2013 at 10:36 PM, Masahiro Yamada wrote: > Signed-off-by: Masahiro Yamada > Cc: Simon Glass Acked-by: Simon Glass > --- > Makefile | 3 +-- > fs/Makefile | 5 + > spl/Makefile | 2 +- > 3 files changed, 7 insertions(+), 3 deletions(-) > > diff --git a/Makefile b/Make

Re: [U-Boot] [PATCH] am33xx: Make SoC bootcount driver have its own symbol

2013-11-10 Thread Heiko Schocher
Hello Tom, Am 08.11.2013 19:54, schrieb Tom Rini: Some am33xx boards may not use the RTC block for bootcount (as it may not be wired up for the board) and use some other facility. So add another symbol for the bootcount driver for the IP block. Cc: Heiko Schocher Signed-off-by: Tom Rini ---

Re: [U-Boot] patman drops Cc tag

2013-11-10 Thread Masahiro Yamada
Hello Simon > > I want Cc: tag not to be touched by patman. > > Maybe we could add a new Patch-Cc: tag for this purpose? Good. Cc: patman does nothing. (git send-email can cc patches) Patch-cc: patman cc patches and deletes this tag. Best Regards Masahiro Yamada _

Re: [U-Boot] [PATCH v2] usb: dfu: make nand upload working

2013-11-10 Thread Heiko Schocher
Hello Lukasz, Am 08.11.2013 16:41, schrieb Lukasz Majewski: Hi Bo, Nowhere pass a value to len, which always 0, make no transfer which cause uploading failed. This patch make nand upload working. However it needs enough malloc buffer to store read data, that means the buffer at least equal to