[U-Boot] [PATCH] Cosmetic change - indentation correction.
Signed-off-by: Michael Zaidman --- common/miiphyutil.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/common/miiphyutil.c b/common/miiphyutil.c index 196ef4a..e5bf2fb 100644 --- a/common/miiphyutil.c +++ b/common/miiphyutil.c @@ -377,7 +377,7 @@ int miiphy_speed (char *devname, unsigned char addr) /* Get speed from basic control settings. */ return (bmcr & PHY_BMCR_100MB) ? _100BASET : _10BASET; - miiphy_read_failed: +miiphy_read_failed: printf (" read failed, assuming 10BASE-T\n"); return _10BASET; } @@ -436,7 +436,7 @@ int miiphy_duplex (char *devname, unsigned char addr) /* Get speed from basic control settings. */ return (bmcr & PHY_BMCR_DPLX) ? FULL : HALF; - miiphy_read_failed: +miiphy_read_failed: printf (" read failed, assuming half duplex\n"); return HALF; } -- 1.6.3.3 ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
[U-Boot] £1,000,000.00 Pounds
Contact Claims agent for your won prize awarded to you by the Lottery Board with your : Names : Address: ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
[U-Boot] 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 4 2) (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 (0x4) 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 written only for 8x NAND) * I made sure that OOB layout used in U-boot matches what NFC data sheet (IMX25.pdf) requires. Supporting Info: Source tree: u-boot-2009.11.1 source tree with set of Rigby patches applied Compiler: Code Sourcery arm cross-compiler (arm-2008q3/arm-none-eabi-gcc ver 4.3.2) Hardware: custom-built board Extra question: === "nand dump 4" produces the output in which all empty areas of the nand are marked as "00 10" instead of "ff ff". Why? I really do appreciate all suggestions and ideas. Thanks. Cheers, Momcilo Radulovic ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
Re: [U-Boot] 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. r65...@szx32-17[/home/r65388/uboot-imx]686% git am -i -u --whitespace=strip ./"U-Boot PATCH V4 Add initial support for Freescale mx51evkboard.txt" Commit Body is: -- [sba...@denx.de] Sent: 2010年2月5日星期五 22:14 To: u-boot@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 Signed-off-by: Fred Fan -- Apply? [y]es/[n]o/[e]dit/[v]iew patch/[a]ccept all y Applying: [sba...@denx.de] /home/r65388/uboot-imx/.git/rebase-apply/patch:69: trailing whitespace. # Copyright (C) 2007, Guennadi Liakhovetski # # (C) /home/r65388/uboot-imx/.git/rebase-apply/patch:72: trailing whitespace. # This program is free software; you can redistribute it and/or # /home/r65388/uboot-imx/.git/rebase-apply/patch:73: trailing whitespace. modify it under the terms of the GNU General Public License as # /home/r65388/uboot-imx/.git/rebase-apply/patch:74: trailing whitespace. published by the Free Software Foundation; either version 2 of # the /home/r65388/uboot-imx/.git/rebase-apply/patch:77: trailing whitespace. # This program is distributed in the hope that it will be useful, # but fatal: corrupt patch at line 145 Patch failed at 0001. When you have resolved this problem run "git am -i --resolved". If you would prefer to skip this patch, instead run "git am -i --skip". To restore the original branch and stop patching run "git am -i --abort". What's your git version? We're using 1.6.0.4. I don't know if it is the git version that cause the problem. Thanks~~ Yours Terry -Original Message- From: Wolfgang Denk [mailto:w...@denx.de] Sent: 2010年2月26日 20:33 To: Lv Terry-R65388 Cc: u-boot@lists.denx.de Subject: Re: [U-Boot] Where can I find the git repostory for mx51evk Dear "Lv Terry-R65388", In message <1ae74f652ecb1440b73dd7c2c20842d1ac6...@zch01exm27.fsl.freescale.net> you wrote: > > I have tried to apply the patch on mainline. You must be doing something wrong, then. I re-tested it, it applies cleanly: -> git-am -3 -i -u --whitespace=strip ~/Mail/U-Boot/7647 Commit Body is: -- Add initial support for Freescale mx51evk board The patch adds initial support for the Freescale mx51evk board. Network (FEC) and SD controller (fsl_esdhc) are supported. Signed-off-by: Stefano Babic Signed-off-by: Fred Fan -- Apply? [y]es/[n]o/[e]dit/[v]iew patch/[a]ccept all y Applying: Add initial support for Freescale mx51evk board -> > The steps are: > > 1. Copy patch from > > http://article.gmane.org/gmane.comp.boot-loaders.u-boot/74754. > 2. Paste it to local text file patch. Eventually the patch gets mangled (white space corrupted) this way. > 3. Clone a new u-boot. > 4. Try "git apply patch". > > I encountered errors: > > r65...@szx32-17[/home/r65388/uboot-imx]602% git apply patch > error: patch failed: MAINTAINERS:152 > error: MAINTAINERS: patch does not apply Try using "git am", and avoid the copy & paste - save the page as text file instead. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: w...@denx.de "It was the Law of the Sea, they said. Civilization ends at the wa- terline. Beyond that, we all enter the food chain, and not always right at the top." - Hunter S. Thompson ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
Re: [U-Boot] [PATCH 3/3 v6] SAMSUNG: SMDKC100: Adds ethernet support.
Hi kang, On 26 February 2010 21:21, Minkyu Kang wrote: > Dear Naveen Krishna CH, > > On 26 February 2010 20:47, wrote: > > From: Naveen Krishna CH > > > > 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 > > --- > > 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. > > > > Changes since V4: > > None > > > > Changes since v5: > > 1. Compile time warning are fixed. > > > > board/samsung/smdkc100/smdkc100.c | 40 > + > > include/configs/smdkc100.h| 12 ++- > > 2 files changed, 51 insertions(+), 1 deletions(-) > > > > diff --git a/board/samsung/smdkc100/smdkc100.c > b/board/samsung/smdkc100/smdkc100.c > > index 15a1a27..76bd4cc 100644 > > --- a/board/samsung/smdkc100/smdkc100.c > > +++ b/board/samsung/smdkc100/smdkc100.c > > @@ -23,10 +23,41 @@ > > */ > > > > #include > > +#include > > +#include > > +#include > > +#include > > + > > DECLARE_GLOBAL_DATA_PTR; > > > > +/* > > + * Miscellaneous platform dependent initialisations > > + */ > > +static void smc9115_pre_init(void) > > +{ > > + u32 tmp; > > Why didn't delete this variable? > My Bad, Patch replaced. Can i send this one alone as v6 or should i send the patch set again as v7 > > > + u32 smc_bw_conf, smc_bc_conf; > > + > > + struct s5pc100_gpio *const gpio = > > + (struct s5pc100_gpio *)S5PC100_GPIO_BASE; > > + > > + /* gpio configuration GPK0CON */ > > + gpio_cfg_pin(&gpio->gpio_k0, CONFIG_ENV_SROM_BANK, GPIO_FUNC(2)); > > + > > + /* Ethernet needs bus width of 16 bits */ > > + smc_bw_conf = SMC_DATA16_WIDTH(CONFIG_ENV_SROM_BANK); > > + smc_bc_conf = SMC_BC_TACS(0x0) | SMC_BC_TCOS(0x4) | > SMC_BC_TACC(0xe) > > + | SMC_BC_TCOH(0x1) | SMC_BC_TAH(0x4) > > + | SMC_BC_TACP(0x6) | SMC_BC_PMC(0x0); > > + > > + /* Select and configure the SROMC bank */ > > + s5pc1xx_config_sromc(CONFIG_ENV_SROM_BANK, smc_bw_conf, > smc_bc_conf); > > +} > > + > > Thanks > Minkyu Kang > -- > from. prom. > www.promsoft.net > ___ > U-Boot mailing list > U-Boot@lists.denx.de > http://lists.denx.de/mailman/listinfo/u-boot > -- Shine bright, (: Naveen Krishna Ch :) ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
Re: [U-Boot] [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-boun...@lists.denx.de [mailto:u-boot-boun...@lists.denx.de] On Behalf Of Stefano Babic Sent: 2010年2月5日 22:11 To: u-boot@lists.denx.de Cc: aflem...@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 --- cpu/arm_cortexa8/mx51/Makefile |2 +- cpu/arm_cortexa8/mx51/speed.c | 38 ++ drivers/mmc/fsl_esdhc.c| 149 +++- include/asm-arm/global_data.h |3 + include/fsl_esdhc.h| 27 +++ lib_arm/board.c|3 + 6 files changed, 173 insertions(+), 49 deletions(-) create mode 100644 cpu/arm_cortexa8/mx51/speed.c diff --git a/cpu/arm_cortexa8/mx51/Makefile b/cpu/arm_cortexa8/mx51/Makefile index 4d82293..7cfaa2c 100644 --- a/cpu/arm_cortexa8/mx51/Makefile +++ b/cpu/arm_cortexa8/mx51/Makefile @@ -27,7 +27,7 @@ include $(TOPDIR)/config.mk LIB= $(obj)lib$(SOC).a -COBJS = soc.o clock.o iomux.o timer.o +COBJS = soc.o clock.o iomux.o timer.o speed.o SOBJS = lowlevel_init.o SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c) diff --git a/cpu/arm_cortexa8/mx51/speed.c b/cpu/arm_cortexa8/mx51/speed.c new file mode 100644 index 000..10acbbf --- /dev/null +++ b/cpu/arm_cortexa8/mx51/speed.c @@ -0,0 +1,38 @@ +/* + * (C) Copyright 2000-2003 + * Wolfgang Denk, DENX Software Engineering, w...@denx.de. + * + * Copyright (C) 2004-2007 Freescale Semiconductor, Inc. + * TsiChung Liew (tsi-chung.l...@freescale.com) + * + * See file CREDITS for list of people who contributed to this + * project. + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation; either version 2 of + * the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + */ + +#include +#include + +int get_clocks(void) +{ + DECLARE_GLOBAL_DATA_PTR; + +#ifdef CONFIG_FSL_ESDHC + gd->sdhc_clk = mxc_get_clock(MXC_IPG_PERCLK); #endif + return 0; +} diff --git a/drivers/mmc/fsl_esdhc.c b/drivers/mmc/fsl_esdhc.c index c6e9e6e..e665b5e 100644 --- a/drivers/mmc/fsl_esdhc.c +++ b/drivers/mmc/fsl_esdhc.c @@ -37,7 +37,6 @@ #include #include - DECLARE_GLOBAL_DATA_PTR; struct fsl_esdhc { @@ -102,7 +101,8 @@ static int esdhc_setup_data(struct mmc *mmc, struct mmc_data *data) { uint wml_value; int timeout; - struct fsl_esdhc *regs = mmc->priv; + struct fsl_esdhc_cfg *cfg = (struct fsl_esdhc_cfg *)mmc->priv; + struct fsl_esdhc *regs = (struct fsl_esdhc *)cfg->esdhc_base; wml_value = data->blocksize/4; @@ -112,24 +112,24 @@ static int esdhc_setup_data(struct mmc *mmc, struct mmc_data *data) wml_value = 0x10 | wml_value; - out_be32(®s->dsaddr, (u32)data->dest); + esdhc_write32(®s->dsaddr, (u32)data->dest); } else { if (wml_value > 0x80) wml_value = 0x80; - if ((in_be32(®s->prsstat) & PRSSTAT_WPSPL) == 0) { + if ((esdhc_read32(®s->prsstat) & PRSSTAT_WPSPL) == 0) { printf("\nThe SD card is locked. Can not write to a locked card.\n\n"); return TIMEOUT; } wml_value = wml_value << 16 | 0x10; - out_be32(®s->dsaddr, (u32)data->src); + esdhc_write32(®s->dsaddr, (u32)data->src); } - out_be32(®s->wml, wml_value); + esdhc_write32(®s->wml, wml_value); - out_be32(®s->blkattr, data->blocks << 16 | data->blocksize); + esdhc_write32(®s->blkattr, data->blocks << 16 | data->blocksize); /* Calculate the timeout period for data transactions */ - timeout = __ilog2(mmc->tran_speed/10); + timeout = fls(mmc->tran_speed/10) - 1; timeout -= 13; if (timeout > 14) @@ -138,7 +138,7 @@ static int esdhc_setup_data(struct mmc *mmc, struct
Re: [U-Boot] 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 @@ -23,6 +23,9 @@ # include $(TOPDIR)/config.mk +ifneq ($(OBJTREE),$(SRCTREE)) +$(shell mkdir -p $(obj)../common) +endif LIB= $(obj)lib$(BOARD).a Should I make a new version of the "arm: add support for the suen3 board from keymile" patch, or a patch based on the actual git://git.denx.de/u-boot-marvell.git ? bye Heiko -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
[U-Boot] [PATCH] nios2: add unaligned.h to be included by zlib.c
Signed-off-by: Thomas Chou --- 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 000..483dd04 --- /dev/null +++ b/include/asm-nios2/unaligned.h @@ -0,0 +1,19 @@ +#ifndef _ASM_NIOS2_UNALIGNED_H +#define _ASM_NIOS2_UNALIGNED_H + +#include +#include +#include + +/* + * 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 + +#endif /* _ASM_NIOS2_UNALIGNED_H */ -- 1.6.6.1 ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot