[U-Boot] Add ext4 write support

2011-12-27 Thread uma . shankar
We are still keeping crc16.c file in fs/ext4 because the lib/crc16.c file ( Poly - x^16 + x^12 + x^5 + 1) is not compatible with Linux kernel crc implementation (Poly - x^16 + x^15 + x^2 + 1). Also, fs/ubifs/crc16.c is also giving some errors. Kernel does not mount the partition if we use this

Re: [U-Boot] [PATCH 4/6] EEYNOS: Add SMDK5250 board support

2011-12-27 Thread Chander Kashyap
Dear minkyu Kang On 23 December 2011 11:21, Chander Kashyap chander.kash...@linaro.org wrote: Dear Minkyu Kang, On 23 December 2011 09:51, Minkyu Kang proms...@gmail.com wrote: Dear Chander Kashyap, On 22 December 2011 19:52, Chander Kashyap chander.kash...@linaro.org wrote: SMDK5250

[U-Boot] [PATCH V3 0/2] *** Add ext4 filesystem support in uboot ***

2011-12-27 Thread uma . shankar
From: Uma Shankar uma.shan...@samsung.com *** This patch series adds support for ext4 ls,load and write features in uboot Journaling is supported for write feature. To Enable ext4 ls and load commands, modify the board specific config file with #define CONFIG_CMD_EXT2 #define CONFIG_CMD_EXT4 To

[U-Boot] [PATCH 1/2] mtd/nand:Fix wrong address read in is_blank()

2011-12-27 Thread Prabhakar Kushwaha
IFC NAND Machine calculates ECC on 512byte sector. Same is taken care in fsl_ifc_run_command() while ECC status verification. Here buffer number is calculated assuming 512byte sector and same is passed to is_blank. However in is_blank() buffer address is calculated using mdt-writesize which is

[U-Boot] [PATCH 2/2] mtd/nand: Fix IFC driver to support 2K NAND page

2011-12-27 Thread Prabhakar Kushwaha
1) OOB area should be updated irrespective of NAND page size. Earlier it was updated only for 512byte NAND page. 2) During OOB update fbcr should be equal to OOB size. Signed-off-by: Poonam Aggrwal poonam.aggr...@freescale.com Signed-off-by: Prabhakar Kushwaha prabha...@freescale.com --- Based

[U-Boot] [RFC PATCH 0/19] Create generic board init and move ARM and x86 to it

2011-12-27 Thread Simon Glass
This series creates a generic board.c implementation which contains the essential functions of the various arch/xxx/lib/board.c files. What is the motivation for this change? 1. There is a lot of repeated code in the board.c files. Any change to things like setting up the baud rate requires a

[U-Boot] [RFC PATCH 03/19] Add basic initcall implementation

2011-12-27 Thread Simon Glass
Signed-off-by: Simon Glass s...@chromium.org --- include/initcall.h | 25 + lib/Makefile |1 + lib/initcall.c | 41 + 3 files changed, 67 insertions(+), 0 deletions(-) create mode 100644 include/initcall.h create

[U-Boot] [RFC PATCH 02/19] Make relocation functions global

2011-12-27 Thread Simon Glass
We want to be able to call relocations functions from our new board code, so make them global and add to the header. Signed-off-by: Simon Glass s...@chromium.org --- common/reloc.c | 29 ++--- include/reloc.h | 16 2 files changed, 42 insertions(+),

[U-Boot] [RFC PATCH 04/19] define CONFIG_SYS_LEGACY_BOARD everywhere

2011-12-27 Thread Simon Glass
We are introducing a new unified board setup and we want this to be the default. So we need to opt all architectures out first. Signed-off-by: Simon Glass s...@chromium.org --- README|5 + arch/arm/config.mk|3 +++ arch/avr32/config.mk |3 +++

[U-Boot] [RFC PATCH 13/19] x86: Add processor library and relocation functions

2011-12-27 Thread Simon Glass
These are needed for generic relocation to function correctly. Signed-off-by: Simon Glass s...@chromium.org --- arch/x86/include/asm/reloc.h | 32 arch/x86/lib/Makefile|1 + arch/x86/lib/proc.S | 67 ++ 3 files

[U-Boot] [RFC PATCH 01/19] Introduce generic global_data

2011-12-27 Thread Simon Glass
We want to unify the global_data structure. Most fields are common across architectures, but there are a fair number of SOC-specific additions. It isn't clear how best to deal with these, but for now we just use #ifdef. Checkpatch warnings here might be unavoidable: warning:

[U-Boot] [RFC PATCH 07/19] Add spl load feature

2011-12-27 Thread Simon Glass
Signed-off-by: Simon Glass s...@chromium.org --- common/board_f.c | 22 ++ 1 files changed, 22 insertions(+), 0 deletions(-) diff --git a/common/board_f.c b/common/board_f.c index f9eb4ca..06317ed 100644 --- a/common/board_f.c +++ b/common/board_f.c @@ -277,6 +277,7 @@

[U-Boot] [RFC PATCH 05/19] Add generic post-relocation board_r.c

2011-12-27 Thread Simon Glass
This file handles common post-relocation init for boards which use the generic framework. Signed-off-by: Simon Glass s...@chromium.org --- board/freescale/p2020come/Makefile |4 + common/Makefile|6 +- common/board_r.c | 382

[U-Boot] [RFC PATCH 08/19] switch ARM over to generic board

2011-12-27 Thread Simon Glass
Signed-off-by: Simon Glass s...@chromium.org --- arch/arm/config.mk |3 --- arch/arm/include/asm/global_data.h |8 arch/arm/lib/Makefile |2 ++ 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/arch/arm/config.mk b/arch/arm/config.mk

[U-Boot] [RFC PATCH 11/19] x86: Remove compiler warning in sc520_timer.c

2011-12-27 Thread Simon Glass
Removes 'set but not used' warning. Signed-off-by: Simon Glass s...@chromium.org --- arch/x86/cpu/sc520/sc520_timer.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/x86/cpu/sc520/sc520_timer.c b/arch/x86/cpu/sc520/sc520_timer.c index 495a694..7f812dc 100644 ---

[U-Boot] [RFC PATCH 10/19] Add CONFIG_SYS_SYM_OFFSETS to support offset symbols

2011-12-27 Thread Simon Glass
Link symbols as created by the link script can either be absolute or relative to the text start. This option switches between the two options so that we can support both. As we convert architectures over to generic board, we can see if this option is actually needed, or whether it is possible to

[U-Boot] [RFC PATCH 19/19] x86: Remove unused board/global_data code

2011-12-27 Thread Simon Glass
Now that x86 uses generic board, this code is not needed. Signed-off-by: Simon Glass s...@chromium.org --- arch/x86/include/asm/global_data.h | 61 - arch/x86/lib/Makefile |2 - arch/x86/lib/board.c | 453 +--- 3 files

[U-Boot] [RFC PATCH 15/19] Add fields required by x86 to global_data

2011-12-27 Thread Simon Glass
These two fields are needed for x86. Signed-off-by: Simon Glass s...@chromium.org --- include/asm-generic/global_data.h |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/include/asm-generic/global_data.h b/include/asm-generic/global_data.h index 16fee5a..99750a8 100644

[U-Boot] [RFC PATCH 18/19] Bring in x86 to unified board architecture

2011-12-27 Thread Simon Glass
Signed-off-by: Simon Glass s...@chromium.org --- arch/x86/config.mk |6 -- arch/x86/include/asm/global_data.h |6 ++ arch/x86/lib/Makefile |2 ++ common/board_r.c |3 +++ 4 files changed, 11 insertions(+), 6 deletions(-) diff

[U-Boot] [RFC PATCH 09/19] arm: Remove unused code in board.c, global_data.h

2011-12-27 Thread Simon Glass
Now that ARM uses the generic board, we don't need this code. Signed-off-by: Simon Glass s...@chromium.org --- arch/arm/include/asm/global_data.h | 81 - arch/arm/lib/Makefile |2 - arch/arm/lib/board.c | 622 +--- 3 files

[U-Boot] [RFC PATCH 14/19] Tidy up asm/generic sections.h to include x86 symbols

2011-12-27 Thread Simon Glass
Include some symbols used by x86 and other architectures, then move x86 over to using this header file. Signed-off-by: Simon Glass s...@chromium.org --- arch/arm/include/asm/u-boot-arm.h |4 arch/x86/include/asm/u-boot-x86.h |8 arch/x86/lib/board.c |1 +

[U-Boot] [RFC PATCH 17/19] x86: Add initial memory barrier macros

2011-12-27 Thread Simon Glass
These are available on other architecures, so add them on x86. Signed-off-by: Simon Glass s...@chromium.org --- arch/x86/include/asm/io.h |8 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/arch/x86/include/asm/io.h b/arch/x86/include/asm/io.h index 9b757d4..b12bdd8

[U-Boot] [RFC PATCH 16/19] x86: Change stub example to use asm-generic/sections.h

2011-12-27 Thread Simon Glass
We can use the declarations of __bss_start and _end from this header instead of declaring them locally. Signed-off-by: Simon Glass s...@chromium.org --- examples/standalone/stubs.c |7 +++ 1 files changed, 3 insertions(+), 4 deletions(-) diff --git a/examples/standalone/stubs.c

[U-Boot] [RFC PATCH 12/19] x86: Remove dead code in eNET

2011-12-27 Thread Simon Glass
This avoids a compiler warning about unused variables. Signed-off-by: Simon Glass s...@chromium.org --- board/eNET/eNET.c |5 - 1 files changed, 0 insertions(+), 5 deletions(-) diff --git a/board/eNET/eNET.c b/board/eNET/eNET.c index 429fe1b..2f26470 100644 --- a/board/eNET/eNET.c +++

[U-Boot] [RFC PATCH 06/19] Add generic pre-relocation board_f.c

2011-12-27 Thread Simon Glass
This file handles common pre-relocation init for boards which use the generic framework. It starts up the console, DRAM, performs relocation and then jumps to post-relocation init. Signed-off-by: Simon Glass s...@chromium.org --- board/freescale/p2020come/Makefile |2 + common/Makefile

Re: [U-Boot] [PATCH 2/2] mtd/nand: Fix IFC driver to support 2K NAND page

2011-12-27 Thread Marek Vasut
1) OOB area should be updated irrespective of NAND page size. Earlier it was updated only for 512byte NAND page. 2) During OOB update fbcr should be equal to OOB size. Cool, does the IFC driver have any relationship with the linux one? Is this patch pulled from Linux or is this

Re: [U-Boot] [PATCH 1/2] mtd/nand:Fix wrong address read in is_blank()

2011-12-27 Thread Marek Vasut
IFC NAND Machine calculates ECC on 512byte sector. Same is taken care in fsl_ifc_run_command() while ECC status verification. Here buffer number is calculated assuming 512byte sector and same is passed to is_blank. However in is_blank() buffer address is calculated using mdt-writesize which

Re: [U-Boot] [PATCH] kirkwood: add support for D-Link DNS-325

2011-12-27 Thread Prafulla Wadaskar
Hi Stefan Thanks for your patch, I will provide feedback in next week. Regards.. Prafulla . . . -Original Message- From: Stefan Herbrechtsmeier [mailto:ste...@code.herbrechtsmeier.net] Sent: 23 December 2011 22:05 To: u-boot@lists.denx.de Cc: Stefan Herbrechtsmeier; Prafulla

Re: [U-Boot] [PATCH 1/2] mtd/nand:Fix wrong address read in is_blank()

2011-12-27 Thread Marek Vasut
IFC NAND Machine calculates ECC on 512byte sector. Same is taken care in fsl_ifc_run_command() while ECC status verification. Here buffer number is calculated assuming 512byte sector and same is passed to is_blank. However in is_blank() buffer address is calculated using