Mo Radulovic | 1 Mar 2010 02:35
Picon

mx25 and 16x SLC NAND problem

Hello everyone,

I was wondering if anyone can shed any light on the problem I encountered
trying to get 16x Micron SLC NAND (MT29F2G16AA; 2K page, 64byte spare area
and 128K erase block) to work with Freescale i.MX258 SoC.

Description:
=========
(1) I am booting successfully from NAND.
(2) When I try to save the environment, it seems that write works (saveenv)
and I can verify that all the data is realy properly written to the  NAND
(nand dump 40000 20000)
(3) Data in the OOB area also seems logical: first 9-byte ECC sequnce
(calculated for the first 512-byte subpage  that actualy contains the data)
is different from 3 other (mutualy identical) ECC sequences calculated for
the empty subpages.
(4) reset produces :
"MXC_NAND: HWECC uncorrectable ECC error in block 2 page 128 subpage 0"
(which points to where I have my env offset set to (0x40000) with no
redundant area)
"*** Warning - bad CRC or NAND, using default environment"

My Troubleshooting:
================
* I tried using different block to store the environment and all of them
behave the same (as stated above).
* I double-checked i.MX258 datasheet to make sure that NFC (v1.1) is
properly initialized (4-symbol ECC and all relevant  NFC/CCM registers)
* I tried Freescale's version of the U-boot (released as a part of their
Board Support Package) with worse results (their u-boot version seems to be
(Continue reading)

Lv Terry-R65388 | 1 Mar 2010 05:48
Favicon

Re: Where can I find the git repostory for mx51evk

Hi Denk,

	It seems that "git am" doesn't work for me.

	The steps are:

	1. Save the patch as txt file in outlook and copy to u-boot directory.
	2. Use git am to apply the patch.

	r65388 <at> szx32-17[/home/r65388/uboot-imx]686% git am -i -u --whitespace=strip ./"U-Boot PATCH V4
1111 Add initial support for Freescale mx51evkboard.txt"
Commit Body is:
--------------------------
[sbabic <at> denx.de]
Sent: 2010年2月5日星期五 22:14
To: u-boot <at> lists.denx.de
Subject: [U-Boot] [PATCH V4 11/11] Add initial support for Freescale
mx51evkboard

The patch adds initial support for the Freescale mx51evk board.
Network (FEC) and SD controller (fsl_esdhc) are supported.

Signed-off-by: Stefano Babic <sbabic <at> denx.de>
Signed-off-by: Fred Fan <fanyefeng <at> gmail.com>
--------------------------
Apply? [y]es/[n]o/[e]dit/[v]iew patch/[a]ccept all y
Applying: [sbabic <at> denx.de]
/home/r65388/uboot-imx/.git/rebase-apply/patch:69: trailing whitespace.
# Copyright (C) 2007, Guennadi Liakhovetski <lg <at> denx.de> # # (C) 
/home/r65388/uboot-imx/.git/rebase-apply/patch:72: trailing whitespace.
(Continue reading)

Naveen Krishna Ch | 1 Mar 2010 06:05
Picon

Re: [PATCH 3/3 v6] SAMSUNG: SMDKC100: Adds ethernet support.

Hi kang,

On 26 February 2010 21:21, Minkyu Kang <promsoft <at> gmail.com> wrote:

> Dear Naveen Krishna CH,
>
> On 26 February 2010 20:47,  <ch.naveen <at> samsung.com> wrote:
> > From: Naveen Krishna CH <ch.naveen <at> samsung.com>
> >
> > Add setup for ethernet on SMDKC100, allowing kernel/ramdisk to be
> > loaded over tftp.
> >
> > The preinit function will configure GPIO (GPK0CON) & SROMC to look
> > for environment in SROM Bank 3.
> >
> > Signed-off-by: Naveen Krishna Ch <ch.naveen <at> samsung.com>
> > ---
> > Changes since V1:
> >
> > 1. The CONFIG_BOOTP* and Net config Macros are removed from config
> header.
> > Comments from Ben Warren are fixed
> > 2. The GPIO configuration is modified & Macro and Function are renamed.
> > Comments from Minkyu Kang are fixedChanges since V2
> >
> > Changes since V2:
> > 1. GPIO configurations function has been implemented.
> >
> > Changes since V3:
> > 1. Comments from Minkyu Kang are fixed.
(Continue reading)

Lv Terry-R65388 | 1 Mar 2010 07:48
Favicon

Re: [PATCH V4 10/11] fsl_esdhc: add support for mx51 processor

Hi Stefano,

	Have you tested mmc on mx51 board?

	The original esdhc uses PIO mode in function esdhc_send_cmd(), while fsl_esdhc uses DMA mode.

	I hasn't tested DMA mode before.

	BTW: have you considered add the feature to save environment data to mmc?

	Thanks~~

Yours
Terry 

-----Original Message-----
From: u-boot-bounces <at> lists.denx.de [mailto:u-boot-bounces <at> lists.denx.de] On Behalf Of Stefano Babic
Sent: 2010年2月5日 22:11
To: u-boot <at> lists.denx.de
Cc: afleming <at> gmail.com; Phillips Kim-R1AAHA
Subject: [U-Boot] [PATCH V4 10/11] fsl_esdhc: add support for mx51 processor

The esdhc controller in the mx51 processor is quite the same as the one in some powerpc processors (MPC83xx,
MPC85xx). This patches adapts the driver to support the arm mx51.

Signed-off-by: Stefano Babic <sbabic <at> denx.de>
---
 cpu/arm_cortexa8/mx51/Makefile |    2 +-
 cpu/arm_cortexa8/mx51/speed.c  |   38 ++++++++++
 drivers/mmc/fsl_esdhc.c        |  149 +++++++++++++++++++++++++++-------------
(Continue reading)

Heiko Schocher | 1 Mar 2010 08:31
Picon
Picon
Favicon

Re: Pull request u-boot-marvell.git

Hello Tom,

Tom wrote:
> Prafulla Wadaskar wrote:
>> Hi Tom
>>
>> Pls pull the following
>>
>> The following changes since commit
>> 1b063b552e815f90a6a880e78fc40cc309dd52ad:
>>   Anders Darander (1):
>>         Add bootcount to AT91
>>
>> are available in the git repository at:
>>
>> http://git.denx.de/u-boot/u-boot-marvell.git  master branch
>>
>> Heiko Schocher (1):
>>       arm: add support for the suen3 board from keymile
> 
> For the regression test, I get a failure to build error.
> This must be fixed.

Yes, you are right, good catch. The following patch will help:

diff --git a/board/keymile/km_arm/Makefile b/board/keymile/km_arm/Makefile
index fffc6a3..c5b0be1 100644
--- a/board/keymile/km_arm/Makefile
+++ b/board/keymile/km_arm/Makefile
 <at>  <at>  -23,6 +23,9  <at>  <at> 
(Continue reading)

Thomas Chou | 1 Mar 2010 08:28
Picon

[PATCH] nios2: add unaligned.h to be included by zlib.c

Signed-off-by: Thomas Chou <thomas <at> wytron.com.tw>
---
 include/asm-nios2/unaligned.h |   19 +++++++++++++++++++
 1 files changed, 19 insertions(+), 0 deletions(-)
 create mode 100644 include/asm-nios2/unaligned.h

diff --git a/include/asm-nios2/unaligned.h b/include/asm-nios2/unaligned.h
new file mode 100644
index 0000000..483dd04
--- /dev/null
+++ b/include/asm-nios2/unaligned.h
 <at>  <at>  -0,0 +1,19  <at>  <at> 
+#ifndef _ASM_NIOS2_UNALIGNED_H
+#define _ASM_NIOS2_UNALIGNED_H
+
+#include <linux/unaligned/le_byteshift.h>
+#include <linux/unaligned/be_byteshift.h>
+#include <linux/unaligned/generic.h>
+
+/*
+ * Select endianness
+ */
+#ifndef __NIOS2EB__
+#define get_unaligned	__get_unaligned_le
+#define put_unaligned	__put_unaligned_le
+#else
+#define get_unaligned	__get_unaligned_be
+#define put_unaligned	__put_unaligned_be
+#endif
+
(Continue reading)

Wolfgang Denk | 1 Mar 2010 09:13
Picon
Picon
Favicon

Re: Where can I find the git repostory for mx51evk

Dear "Lv Terry-R65388",

In message <1AE74F652ECB1440B73DD7C2C20842D1AC6D5C <at> zch01exm27.fsl.freescale.net> you wrote:
> 
> 	It seems that "git am" doesn't work for me.

Well, I'm afraid there is little we can do to help you with that.
Setting up a basic working tool chain is something you have to do
yourself; we don't know your environment. If you don't succeed
yourself, then ask another, more experienced engineer in your team
for help, or some support guy.

> 	The steps are:
> 
> 	1. Save the patch as txt file in outlook and copy to u-boot directory.
> 	2. Use git am to apply the patch.

Maybe you should try and avoid working in a Windows based environment
here. I have no way how many wonderful ways Outlook knows to mess up
the messages it processes.

> 	What's your git version?
> 	We're using 1.6.0.4.

We are using git versions 1.6.2.5 and 1.6.6 (i. e. what comes with
recent Fedora distributions).

> 	I don't know if it is the git version that cause the problem.

The problems you report are not caused by git version differences.
(Continue reading)

Michael Zaidman | 1 Mar 2010 10:47
Picon

[PATCH] POST progress API

Added POST progress API implemented as weak calls before and after
each call to the POST test callback in the post_run_single routine
of the post.c file.

Signed-off-by: Michael Zaidman <michael.zaidman <at> gmail.com>
---
 include/post.h |    5 +++++
 post/post.c    |   17 +++++++++++++++--
 2 files changed, 20 insertions(+), 2 deletions(-)

diff --git a/include/post.h b/include/post.h
index 9fcd3ce..ff83bce 100644
--- a/include/post.h
+++ b/include/post.h
 <at>  <at>  -53,6 +53,11  <at>  <at> 

 #define POST_FAIL_SAVE		0x80

+#define POST_BEFORE		1
+#define POST_AFTER		0
+#define POST_PASSED		1
+#define POST_FAILED		0
+
 #ifndef	__ASSEMBLY__

 struct post_test {
diff --git a/post/post.c b/post/post.c
index b29eb87..00e8353 100644
--- a/post/post.c
+++ b/post/post.c
(Continue reading)

Stefano Babic | 1 Mar 2010 10:04
Picon
Picon
Favicon

Re: [PATCH V4 10/11] fsl_esdhc: add support for mx51 processor

Lv Terry-R65388 wrote:
> Hi Stefano,
> 

Hi Terry,

> Have you tested mmc on mx51 board?

Yes, of course. The whole patchset for mx51evk was tested on two
different releases of the board, with respectively a TO2 and a TO3
processor.

And the driver was tested with both MMC slots on the mx51evk (both are
supported):

For example, on a release 3.0 board:
U-Boot 2009.11-00347-g0b1898d (Feb 24 2010 - 11:30:10)

CPU:   Freescale i.MX51 family 3.0V at 800 MHz
Board: MX51EVK 3.0 [POR]

I get:
MMC:   FSL_ESDHC: 0, FSL_ESDHC: 1

MX51EVK U-Boot > mmcinfo
Device: FSL_ESDHC
Manufacturer ID: 1
OEM: 5041
Name: SP02G
Tran Speed: 25000000
(Continue reading)

Stefano Babic | 1 Mar 2010 10:11
Picon
Picon
Favicon

Re: Where can I find the git repostory for mx51evk

Lv Terry-R65388 wrote:
> Hi Denk,
>

Hi Terry,

> It seems that "git am" doesn't work for me.
> 
> The steps are:
> 
> 1. Save the patch as txt file in outlook and copy to u-boot
> directory.

Do not do it. Even if it for some strange seems working (it could be for
an  easy patch), you apply a patch different as the one sent to the ML.
The correct step is to save the e-mail as it is. If your e-mail client
does not support it, take another one.

> 2. Use git am to apply the patch.
> /home/r65388/uboot-imx/.git/rebase-apply/patch:72: trailing
> whitespace. # This program is free software; you can redistribute it

This is really caused by your client and tells you that the e-mail was
not correctly saved.

Regards,
Stefano

--

-- 
=====================================================================
(Continue reading)


Gmane