Re: [U-Boot] [PATCH v3] dfu: Introduction of the "dfu_hash_algo" env variable for checksum method setting

2014-05-08 Thread Lukasz Majewski
Hi Wolfgang, > Dear Lukasz Majewski, > > In message <1399552067-31208-1-git-send-email-l.majew...@samsung.com> > you wrote: > > Up till now the CRC32 of received data was calculated > > unconditionally. The standard crc32 implementation causes long > > delay when large images were uploaded. > >

Re: [U-Boot] [PATCH 1/4] bootm: allow to disable legacy image format

2014-05-08 Thread Heiko Schocher
Hello Mike, Am 08.05.2014 15:02, schrieb mike: Hi Heiko, Did you see my last email? The one that bounced with a mime header and where I attached a patch file. Seems I missed this EMail ... I just wonder if its not better to switch the define to be if (CONFIG_SIGNATURE_VERIFICATION_WITH_LE

Re: [U-Boot] [PATCH 1/4] bootm: allow to disable legacy image format

2014-05-08 Thread Wolfgang Denk
Dear mike, In message <536b8062.6030...@kaew.be> you wrote: > Hi Heiko, > > Did you see my last email? The one that bounced with a mime header and > where I attached a patch file. > > I just wonder if its not better to switch the define to be > > if (CONFIG_SIGNATURE_VERIFICATION_WITH_LEGACY_S

Re: [U-Boot] [PATCH v3] dfu: Introduction of the "dfu_hash_algo" env variable for checksum method setting

2014-05-08 Thread Wolfgang Denk
Dear Lukasz Majewski, In message <1399552067-31208-1-git-send-email-l.majew...@samsung.com> you wrote: > Up till now the CRC32 of received data was calculated unconditionally. > The standard crc32 implementation causes long delay when large images > were uploaded. > > The "dfu_hash_algo" environm

[U-Boot] [PATCH v2 3/3] mx28evk: Add documentation on how to boot from SPI NOR

2014-05-08 Thread Fabio Estevam
From: Fabio Estevam Explain the necessary steps in order to boot from SPI NOR. Based on a earlier submission from Mårten Wikman. Signed-off-by: Mårten Wikman Signed-off-by: Fabio Estevam --- Changes since v1: - Remove accidental hunk: "- +n" board/freescale/mx28evk/README | 22 +

[U-Boot] [PATCH v2 2/3] mx28evk: Add a target for SPI NOR boot

2014-05-08 Thread Fabio Estevam
From: Fabio Estevam Introduce 'mx28evk_spi' target which will store the environment variables into SPI NOR, which is useful when booting from SPI NOR. Signed-off-by: Fabio Estevam --- Changes since v1: - None boards.cfg | 1 + 1 file changed, 1 insertion(+) diff --git a/boards.cfg b/boards.c

[U-Boot] [PATCH v2 1/3] mx28evk: Remove extra CONFIG_ENV_SIZE

2014-05-08 Thread Fabio Estevam
From: Fabio Estevam When building a target with CONFIG_ENV_IS_IN_SPI_FLASH the following build warning is seen: include/configs/mx28evk.h:73:0: warning: "CONFIG_ENV_SIZE" redefined [enabled by default] Each target has its own CONFIG_ENV_SIZE definition, so remove the one that does not belong t

[U-Boot] [PATCH 3/3] mx28evk: Add documentation on how to boot from SPI NOR

2014-05-08 Thread Fabio Estevam
From: Fabio Estevam Explain the necessary steps in order to boot from SPI NOR. Based on a early submission from Mårten Wikman. Signed-off-by: Mårten Wikman Signed-off-by: Fabio Estevam --- board/freescale/mx28evk/README | 24 doc/README.mxs | 26 +

[U-Boot] [PATCH 2/3] mx28evk: Add a target for SPI NOR boot

2014-05-08 Thread Fabio Estevam
From: Fabio Estevam Introduce 'mx28evk_spi' target which will store the environment variables into SPI NOR, which is useful when booting from SPI NOR. Signed-off-by: Fabio Estevam --- boards.cfg | 1 + 1 file changed, 1 insertion(+) diff --git a/boards.cfg b/boards.cfg index 89ed095..7e24ab8

[U-Boot] [PATCH 1/3] mx28evk: Remove extra CONFIG_ENV_SIZE

2014-05-08 Thread Fabio Estevam
From: Fabio Estevam When building a target with CONFIG_ENV_IS_IN_SPI_FLASH the following build warning is seen: include/configs/mx28evk.h:73:0: warning: "CONFIG_ENV_SIZE" redefined [enabled by default] Each target has its own CONFIG_ENV_SIZE definition, so remove the one that does not belong t

Re: [U-Boot] [PATCH] usb: ci_udc: parse QTD before over-writing it

2014-05-08 Thread Stephen Warren
On 05/08/2014 05:16 PM, Stephen Warren wrote: > From: Stephen Warren > > ci_udc only allocates a single QTD structure per EP. All data needs to be > extracted from the DTD prior to calling handle_ep_complete(), since that Oh. s/handle_ep_complete/ci_ep_submit_next_request/ there... Let me know i

[U-Boot] [PATCH] usb: ci_udc: parse QTD before over-writing it

2014-05-08 Thread Stephen Warren
From: Stephen Warren ci_udc only allocates a single QTD structure per EP. All data needs to be extracted from the DTD prior to calling handle_ep_complete(), since that fills the QTD with next transaction's parameters. Fix handle_ep_complete() to extract the transaction (remaining) length before k

Re: [U-Boot] [PATCH 2/4] mpc8313, signed fit: disable legacy image format on ids8313 board

2014-05-08 Thread Kim Phillips
On Thu, 8 May 2014 13:05:16 +0200 Heiko Schocher wrote: > Disable legacy image format with CONFIG_DISABLE_IMAGE_FORMAT_LEGACY > on the ids8313 board, as it uses signed FIT images for booting > Linux. > > Signed-off-by: Heiko Schocher > Cc: Simon Glass > Cc: Kim Phillips > Cc: Michael Conrad

[U-Boot] [PATCH v3 4/5] net/designware: reorder struct dw_eth_dev to pack more efficiently.

2014-05-08 Thread Ian Campbell
The {tx,rx}_mac_descrtable fields are aligned to ARCH_DMA_MINALIGN, which could be 256 or even larger. That means there is a potentially huge hole in the struct before those fields, so move them to the front where they are better packed. Moving them to the front also helps ensure that so long as d

[U-Boot] [PATCH v3 3/5] net/designware: ensure cache invalidations are aligned to ARCH_DMA_MINALIGN

2014-05-08 Thread Ian Campbell
This is required at least on ARM. When sending instead of simply invalidating the entire descriptor, flush as little as possible while still respecting ARCH_DMA_MINALIGN, as requested by Alexey. Signed-off-by: Ian Campbell Cc: Alexey Brodkin --- v2: - collapsed "net/designware: align cache inva

[U-Boot] [PATCH v3 5/5] net/designware: Make DMA burst length configurable and reduce by default

2014-05-08 Thread Ian Campbell
The correct value for this setting can vary across SoCs and boards, so make it configurable. Also reduce the default value to 8, which is the same default as used in the Linux driver. Signed-off-by: Ian Campbell Cc: Alexey Brodkin --- v3: Pulled into this series instead of sunxi series. --- dr

[U-Boot] [PATCH v3 2/5] net/designware: ensure device private data is DMA aligned.

2014-05-08 Thread Ian Campbell
struct dw_eth_dev contains fields which are accessed via DMA, so make sure it is aligned to a dma boundary. Without this I see: ERROR: v7_dcache_inval_range - start address is not aligned - 0x7fb677e0 Signed-off-by: Ian Campbell Reviewed-by: Alexey Brodkin Acked-by: Marek Vasut --- v2: Sign

[U-Boot] [PATCH v3 0/5] net/designware: fixes for data cache, phylib and burst size

2014-05-08 Thread Ian Campbell
Pulling together various fixes for designware into a single series. I'm calling this v3, although some of these never had a v2. Most of these have been floating around for a few weeks, the cache line issues in particular mean that the driver is unlikely to work on any ARM system. I've been testing

[U-Boot] [PATCH v3 1/5] net/designware: call phy_connect_dev() to properly setup phylib device

2014-05-08 Thread Ian Campbell
This sets up the linkage from the phydev back to the ethernet device. This symptom of not doing this which I noticed was: Waiting for PHY auto negotiation to complete rather than: dwmac.1c5 Waiting for PHY auto negotiation to complete Signed-off-by: Ian Campbell Cc: Alexey Br

Re: [U-Boot] [PATCH 4/4] mpc8313: add CONFIG_SYS_GENERIC_BOARD to ids8313 board

2014-05-08 Thread Kim Phillips
On Thu, 8 May 2014 13:05:18 +0200 Heiko Schocher wrote: > - add CONFIG_SYS_GENERIC_BOARD > - remove CONFIG_OF_CONTROL to boot again > > Signed-off-by: Heiko Schocher > Cc: Simon Glass > Cc: Kim Phillips > --- on behalf of mpc83xx: Acked-by: Kim Phillips Kim ___

Re: [U-Boot] [PATCH] boards.cfg: fix a configuration error of ep8248 board

2014-05-08 Thread Kim Phillips
On Wed, 30 Apr 2014 07:14:53 +0200 Heiko Schocher wrote: > Hello Masahiro, > > Am 30.04.2014 05:55, schrieb Masahiro Yamada: > > "make ep8248_config" fails with an error like this: > > > > $ make ep8248_config > > make: *** [ep8248_config] Error 1 > > > > Its cause is that there are tw

[U-Boot] [sparc] Pull request

2014-05-08 Thread Daniel Hellstrom
Hello Tom, Please pull from u-boot-sparc.git, thanks! One of the fixes enables the SPARC platform to build again, sorry for the long delay and thanks for informing me about the problem. The following changes since commit 09865465821fd35eabedcd9f102f1d576c626ad8: Michal Simek (1): serial: zynq

Re: [U-Boot] Mainline u-boot on socfpga (SocKit) board

2014-05-08 Thread Wolfgang Denk
Dear Chin Liang See, In message <1399544922.2064.19.ca...@clsee-virtualbox.altera.com> you wrote: > > But nevertheless, it poses another challenge when come to license. The > driver is currently licensed under BSD-3 clause. Wonder can we upstream > BSD-3 clause code? Any advise would be appreciat

Re: [U-Boot] [PATCH v1 0/3] ARM: omap: add support for GPMC and ELM controllers on OMAP4 and OMAP5 platforms

2014-05-08 Thread Gupta, Pekon
>From: Gupta, Pekon > >This patch series intends to: >- Add support for GPMC and ELM controllers for OMAP4 and OMAP5 platform devices > by moving all generic arch specific code shared between > arch/AM33xx, arch/OMAP4 and arch/OMAP5 into arch/omap-common/ >- Separate out arch specific header for

[U-Boot] [PATCH] mx6sabreauto: Add the mx6dual-lite variant

2014-05-08 Thread Fabio Estevam
Tested by booting a mainline kernel via TFTP. Signed-off-by: Fabio Estevam --- board/freescale/mx6qsabreauto/mx6dl.cfg | 130 boards.cfg | 1 + include/configs/mx6qsabreauto.h | 4 + 3 files changed, 135 insertions(+) cre

[U-Boot] [PATCH v1 2/3] ARM: omap5: add platform specific info for GPMC and ELM controllers

2014-05-08 Thread Pekon Gupta
This patch moves platform specific information for GPMC and ELM controller into separate header files, so that any derivative devices do not mess other header files. Platform specific information added into arch-xx/../hardware.h - CPU related platform specific details like base-address of GPMC an

[U-Boot] [PATCH v1 3/3] ARM: omap: merge GPMC initialization code for all platform

2014-05-08 Thread Pekon Gupta
GPMC controller on TI's OMAP SoC is general purpose controller to interface with different types of external devices like; - parallel NOR flash - parallel NAND flash - OneNand flash - SDR RAM - Ethernet Devices like LAN9220 Though GPMC configurations may be different for each platform dependi

[U-Boot] [PATCH v1 0/3] ARM: omap: add support for GPMC and ELM controllers on OMAP4 and OMAP5 platforms

2014-05-08 Thread Pekon Gupta
This patch series intends to: - Add support for GPMC and ELM controllers for OMAP4 and OMAP5 platform devices by moving all generic arch specific code shared between arch/AM33xx, arch/OMAP4 and arch/OMAP5 into arch/omap-common/ - Separate out arch specific header for future scalability - Remove

[U-Boot] [PATCH v1 1/3] ARM: omap4: add platform specific info for GPMC and ELM controllers

2014-05-08 Thread Pekon Gupta
This patch moves platform specific information for GPMC and ELM controller into separate header files, so that any derivative devices do not mess other header files. Platform specific information added into arch-xx/../hardware.h - CPU related platform specific details like base-address of GPMC an

[U-Boot] [PATCH V2] ARM: tegra: use a CPU freq that all SKUs can support

2014-05-08 Thread Stephen Warren
From: Stephen Warren U-Boot on Tegra30 currently selects a main CPU frequency that cannot be supported at all on some SKUs, and needs higher VDD_CPU/VDD_CORE values on some others. This can result in unreliable operation of the main CPUs. Resolve this by switching to a CPU frequency that can be

[U-Boot] [PATCH] ARM: zynq: Enable generic board for Xilinx Zynq

2014-05-08 Thread Michal Simek
Enable CONFIG_SYS_GENERIC_BOARD for all Zynq boards. Signed-off-by: Michal Simek --- include/configs/zynq-common.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/configs/zynq-common.h b/include/configs/zynq-common.h index 8e0f93599fc4..153f3fe73d70 100644 --- a/include/configs/zy

Re: [U-Boot] [PATCH] zynq: treat ps7_init.c/h as external files to ignore them

2014-05-08 Thread Michal Simek
On 05/08/2014 02:30 PM, Masahiro Yamada wrote: > ps7_init.c and ps7_init.h are supposed to be exported by hw project > and copied to board/xilinx/zynq/ directory. > > We want them to be ignored by git. > So what we should do is to always treat them as external files > rather than replacing ps7_ini

Re: [U-Boot] [PATCH 1/4] bootm: allow to disable legacy image format

2014-05-08 Thread mike
Hi Heiko, Did you see my last email? The one that bounced with a mime header and where I attached a patch file. I just wonder if its not better to switch the define to be if (CONFIG_SIGNATURE_VERIFICATION_WITH_LEGACY_SIDE_DOOR). It can become mutually exclusive with the existing signature ve

Re: [U-Boot] [PATCH v3] dfu: Introduction of the "dfu_hash_algo" env variable for checksum method setting

2014-05-08 Thread Marek Vasut
On Thursday, May 08, 2014 at 02:27:47 PM, Lukasz Majewski wrote: > Up till now the CRC32 of received data was calculated unconditionally. > The standard crc32 implementation causes long delay when large images > were uploaded. > > The "dfu_hash_algo" environment variable gives the opportunity to >

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

2014-05-08 Thread Marek Vasut
On Thursday, May 08, 2014 at 10:56:37 AM, Lukasz Majewski wrote: > Dear Marek, > > Please pull following code. In the same occasion I would like to > apologize for the fuzz with sending the last PR. > > This one is ready to go and (hopefully) clans up all the code floating > around various USB ga

Re: [U-Boot] [PATCH] zynq: ignore ps7_init.h

2014-05-08 Thread Masahiro Yamada
Hi Michal, > > obj-y := board.o > > obj-$(CONFIG_SPL_BUILD) += $(if $(wildcard > > $(srctree)/$(src)/ps7_init.c),ps7_init.o) > > If this is acceptable by others I am quite happy to use it > because it seems to me like a good way how to handle it. > > In future when everything is read

[U-Boot] [PATCH] zynq: treat ps7_init.c/h as external files to ignore them

2014-05-08 Thread Masahiro Yamada
ps7_init.c and ps7_init.h are supposed to be exported by hw project and copied to board/xilinx/zynq/ directory. We want them to be ignored by git. So what we should do is to always treat them as external files rather than replacing ps7_init.c This commit does: - Move a weak function ps7_init()

[U-Boot] [PATCH v3] dfu: Introduction of the "dfu_hash_algo" env variable for checksum method setting

2014-05-08 Thread Lukasz Majewski
Up till now the CRC32 of received data was calculated unconditionally. The standard crc32 implementation causes long delay when large images were uploaded. The "dfu_hash_algo" environment variable gives the opportunity to enable on demand (when e.g. debugging) the hash (crc32) calculation. It can

Re: [U-Boot] [PATCH] zynq: ignore ps7_init.h

2014-05-08 Thread Michal Simek
On 05/08/2014 11:21 AM, Masahiro Yamada wrote: > Hi Michal, > >> >> Here is just one question if we should also ignore ps7_init.c too. >> It means move current ps7_init weak function to spl.c in mach-zynq >> and just compile ps7_init.c in board file if it is available there. >> >> Is there any nic

[U-Boot] Building under Cygwin - "-ansi" flag?

2014-05-08 Thread Vasili Galka
Hi, I'm building u-boot (am335x_evm config) using arm-none-eabi toolchain under Cygwin. When trying to build unmodified v2014.04 tag I get some errors. However, if I remove the "-ansi" flag from the Makefile, everything builds fine: -ifeq ($(HOSTOS),cygwin) -HOSTCFLAGS+= -ansi -endif I tried

[U-Boot] [PATCH][v2] drivers/usb : Define usb control register mask for w1c bits

2014-05-08 Thread Nikhil Badola
Define and use CONTROL_REGISTER_W1C_MASK to make sure that w1c bits of usb control register do not get reset while writing any other bit Signed-off-by: Nikhil Badola Signed-off-by: Ramneek Mehresh --- Changes for v2: - Using clrsetbits_be32() instead of new API drivers/usb/host/ehci-fs

[U-Boot] [PATCH 1/4] bootm: allow to disable legacy image format

2014-05-08 Thread Heiko Schocher
Disabling legacy image format is useful when using signed FIT images with required signature check. Use CONFIG_DISABLE_IMAGE_FORMAT_LEGACY in the board config file. Signed-off-by: Heiko Schocher Cc: Simon Glass Cc: Lars Steubesand Cc: Mike Pearce Cc: Wolfgang Denk --- README

[U-Boot] [PATCH 3/4] lib, fdt: move fdtdec_get_int() out of lib/fdtdec.c

2014-05-08 Thread Heiko Schocher
move fdtdec_get_int() out of lib/fdtdec.c into lib/fdtdec_common.c as this function is also used, if CONFIG_OF_CONTROL is not used. Poped up on the ids8313 board using signed FIT images, and activating CONFIG_SYS_GENERIC_BOARD. Without this patch it shows on boot: No valid FDT found - please appen

[U-Boot] [PATCH 0/4] mpc8313: ids8313 board updates

2014-05-08 Thread Heiko Schocher
- introduce CONFIG_DISABLE_IMAGE_FORMAT_LEGACY for disabling booting legacy image format, as this board use only signed FIT images, and activiate it for the ids8313 board. - add CONFIG_SYS_GENERIC_BOARD to the ids8313 board, therefore fdtdec_get_int() is moved out of lib/fdtdec.c as lib/fd

[U-Boot] [PATCH 4/4] mpc8313: add CONFIG_SYS_GENERIC_BOARD to ids8313 board

2014-05-08 Thread Heiko Schocher
- add CONFIG_SYS_GENERIC_BOARD - remove CONFIG_OF_CONTROL to boot again Signed-off-by: Heiko Schocher Cc: Simon Glass Cc: Kim Phillips --- include/configs/ids8313.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/configs/ids8313.h b/include/configs/ids8313.h index

[U-Boot] [PATCH 2/4] mpc8313, signed fit: disable legacy image format on ids8313 board

2014-05-08 Thread Heiko Schocher
Disable legacy image format with CONFIG_DISABLE_IMAGE_FORMAT_LEGACY on the ids8313 board, as it uses signed FIT images for booting Linux. Signed-off-by: Heiko Schocher Cc: Simon Glass Cc: Kim Phillips Cc: Michael Conrad --- include/configs/ids8313.h | 1 + 1 file changed, 1 insertion(+) diff

Re: [U-Boot] Mainline u-boot SPL for socfpga

2014-05-08 Thread Chin Liang See
Hi Charles, On Tue, 2014-05-06 at 12:22 +1200, Charles Manning wrote: > Hello > > > I am trying to understand the state of the socfpga preloader in > mainline u-boot. > > > From what I see, this is broken and perhaps has never worked. > > > When I build the code in u-boot-socfpga I get a he

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

2014-05-08 Thread Marek Vasut
On Thursday, May 08, 2014 at 09:08:24 AM, Lukasz Majewski wrote: > Hi Heiko, > > > Hello Lukasz, > > > > Am 08.05.2014 08:30, schrieb Lukasz Majewski: > > > Hi Marek, > > > > > >> On Tuesday, May 06, 2014 at 11:29:32 AM, Lukasz Majewski wrote: > > >>> Hi Marek, > > >>> > > >>> The following cha

Re: [U-Boot] Mainline u-boot on socfpga (SocKit) board

2014-05-08 Thread Chin Liang See
Hi Pavel, On Wed, 2014-05-07 at 17:48 +0200, ZY - pavel wrote: > Hi! > > I know that mainline U-Boot SPL is quite far from working on > socfpga... but would like to ask, what is the status of U-Boot > proper. That should work on socfpga, right? Or are there some pieces > missing? > > I tried >

Re: [U-Boot] [PATCH] zynq: ignore ps7_init.h

2014-05-08 Thread Masahiro Yamada
Hi Michal, > > Here is just one question if we should also ignore ps7_init.c too. > It means move current ps7_init weak function to spl.c in mach-zynq > and just compile ps7_init.c in board file if it is available there. > > Is there any nice hook in Kbuild to compile file if it is available? >

Re: [U-Boot] [PATCH v3] lib:crc32:hash: Allow setting of the initial crc32 value

2014-05-08 Thread Lukasz Majewski
Hi Simon, > Hi Lukasz, > > On 7 May 2014 06:57, Lukasz Majewski wrote: > > > > The current approach set the initial value of crc32 calculation to > > zero, which is correct for calculating checksum of the whole chunk > > of data. > > > > It however, lacks the flexibility, when one wants to calcu

[U-Boot] Pull request: u-boot-dfu

2014-05-08 Thread Lukasz Majewski
Dear Marek, Please pull following code. In the same occasion I would like to apologize for the fuzz with sending the last PR. This one is ready to go and (hopefully) clans up all the code floating around various USB gadgets and DFU. The following changes since commit 340ed422d2a58c4858ba8e110c23

Re: [U-Boot] [PATCH] sh: delete an unused source file

2014-05-08 Thread Nobuhiro Iwamatsu
Hi, Sorry, reply was late. This was already applied into u-boot/master. Thanks! Nobuhiro 2014-04-28 17:00 GMT+09:00 Masahiro Yamada : > Hi Nobuhiro, > > On Mon, 31 Mar 2014 15:02:24 +0900 > Nobuhiro Iwamatsu wrote: > >> Applied to u-boot-sh.git. >> Thanks! >> >> Nobuhiro >> >> 2014-03-31 14:46

Re: [U-Boot] [PATCH 1/2] musb-new, dfu: first send request answer then call completions

2014-05-08 Thread Lukasz Majewski
Hi Heiko, > comment in ep0_txstate() states: > > "report completions as soon as the fifo's loaded; there's no win > in waiting till this last packet gets acked". > > This is wrong for using dfu. In the dfu usecase we must send > a PollTimeout to the host, so the host can wait until the > U-Boot

Re: [U-Boot] [PATCH v2] dfu, nand: add medium specific polltimeout function

2014-05-08 Thread Lukasz Majewski
Hi Heiko, > add a possibility to add a medium specific polltimeout > function. So it is possible to define different > poll timeouts. > > Used on nand medium, for setting the DFU_MANIFEST_POLL_TIMEOUT > only on nand ubi partitions, which is currently the only > usecase. > > Signed-off-by: Heiko

Re: [U-Boot] [PATCH] zynq: add empty xil_io.h to avoid compile error

2014-05-08 Thread Michal Simek
On 05/08/2014 10:13 AM, Masahiro Yamada wrote: > ps7_init.c exported by hw project has #include "xil_io.h" line > but U-Boot does not have "xil_io.h". > > So we get an error on SPL build: > ps7_init.c:12581:20: fatal error: xil_io.h: No such file or directory > > We can delete the include direc

Re: [U-Boot] [PATCH] zynq: ignore ps7_init.h

2014-05-08 Thread Michal Simek
On 05/08/2014 10:13 AM, Masahiro Yamada wrote: > ps_init.h should be ignored because it is supposed to > be copied from an external project. > > Signed-off-by: Masahiro Yamada > Cc: Michal Simek > --- > board/xilinx/zynq/.gitignore | 1 + > 1 file changed, 1 insertion(+) > create mode 100644 b

[U-Boot] [PATCH 3/3] fs/fat: correct FAT16/12 file finding in root dir

2014-05-08 Thread Josh Wu
When write a file into FAT file system, it will search a match file in root dir. So the find_directory_entry() will get the first cluster of root dir content and search the directory item one by one. If the file is not found, we will call get_fatent_value() to get next cluster of root dir via looku

[U-Boot] [PATCH 1/3] fs/fat: add fat12 cluster check

2014-05-08 Thread Josh Wu
Signed-off-by: Josh Wu --- include/fat.h |4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/fat.h b/include/fat.h index c8eb7cc..65da733 100644 --- a/include/fat.h +++ b/include/fat.h @@ -85,7 +85,9 @@ + (mydata->fatsize != 32 ? 0 : \

[U-Boot] [PATCH 2/3] fs: fat_write: fix the incorrect last cluster checking

2014-05-08 Thread Josh Wu
In fat_write.c, the last clust condition check is incorrect: if ((curclust >= 0xff8) || (curclust >= 0xfff8)) { ... ... } For example, in FAT32 if curclust is 0x11000. It is a valid clust. But on above condition check, it will be think as a last clust. So the correct last clust c

[U-Boot] [PATCH 0/3] fs: fat: misc fix for FAT16/12

2014-05-08 Thread Josh Wu
This patch series fix the bug when search files in root dir in FAT16/12. In early time, I've sent a single patch for this: http://patchwork.ozlabs.org/patch/336585/ This patch series is updated version compare with the early one in above URL. It not only refined my early fix but also add

[U-Boot] [PATCH] zynq: add empty xil_io.h to avoid compile error

2014-05-08 Thread Masahiro Yamada
ps7_init.c exported by hw project has #include "xil_io.h" line but U-Boot does not have "xil_io.h". So we get an error on SPL build: ps7_init.c:12581:20: fatal error: xil_io.h: No such file or directory We can delete the include directive in ps7_init.c to avoid this error. But it is painful to

[U-Boot] [PATCH] zynq: ignore ps7_init.h

2014-05-08 Thread Masahiro Yamada
ps_init.h should be ignored because it is supposed to be copied from an external project. Signed-off-by: Masahiro Yamada Cc: Michal Simek --- board/xilinx/zynq/.gitignore | 1 + 1 file changed, 1 insertion(+) create mode 100644 board/xilinx/zynq/.gitignore diff --git a/board/xilinx/zynq/.giti

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

2014-05-08 Thread Lukasz Majewski
Hi Heiko, > Hello Lukasz, > > Am 08.05.2014 08:30, schrieb Lukasz Majewski: > > Hi Marek, > > > >> On Tuesday, May 06, 2014 at 11:29:32 AM, Lukasz Majewski wrote: > >>> Hi Marek, > >>> > >>> The following changes since commit > >>> af41d6b4cb1602abebaaa9c8774a9b0ece564796: > >>> > >>>common:

Re: [U-Boot] [PATCH v3 10/13] ARM: HYP/non-sec/PSCI: emit DT nodes

2014-05-08 Thread Ian Campbell
On Thu, 2014-05-08 at 07:22 +0100, Marc Zyngier wrote: > Hi Ian, > > On 2014-05-07 20:24, Ian Campbell wrote: > > On Sat, 2014-02-15 at 13:36 +, Marc Zyngier wrote: > >> @@ -32,5 +33,11 @@ int arch_fixup_fdt(void *blob) > >>size[bank] = bd->bi_dram[bank].size; > >>} > >> > >> -