Re: [U-Boot] U-boot compilation for little endian

2010-03-01 Thread Wolfgang Denk
Dear Ronny D,

In message <143206.74847...@web46114.mail.sp1.yahoo.com> you wrote:
> 
> I am using customized ppc440 based board. We need u-boot in little endian.
> Will it possible to compile the u-boot source in little endian for ppc440?

The natural byte order for the Power Architecture is Big Endian. We do
not support Littel Endian mode on Power.

I have to admit that I doubt if efforts to implement LE mode on
Power make any sense - as mentioned, BE is the natural byte order, and
usually it's much easier to explicitly convert date when accessing LE
devices as we're doing for example when accessing the PCI bus.

I recommend to reconsider your plans.

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
Unix: Some say the learning curve is steep,  but  you  only  have  to
climb it once.  - Karl Lehenbauer
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] U-boot compilation for little endian

2010-03-01 Thread Ronny D
Hi Stefan,

I am using customized ppc440 based board. We need u-boot in little endian.
Will it possible to compile the u-boot source in little endian for ppc440?


Regards,
Ronny D  



  The INTERNET now has a personality. YOURS! See your Yahoo! Homepage. 
http://in.yahoo.com/___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH 2/2] SPEAr : Supporting new mach ids for spear310 and spear320

2010-03-01 Thread Vipin KUMAR
From: Vipin Kumar 

Supporting new machine ids for SoCs spear310 and spear320

include/asm-arm/mach-types.h has to be updated before applying
this patch for build to work

Signed-off-by: Vipin Kumar 
---
 board/spear/spear310/spear310.c |2 +-
 board/spear/spear320/spear320.c |2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/board/spear/spear310/spear310.c b/board/spear/spear310/spear310.c
index 756aa56..03dfe16 100755
--- a/board/spear/spear310/spear310.c
+++ b/board/spear/spear310/spear310.c
@@ -32,7 +32,7 @@
 
 int board_init(void)
 {
-   return spear_board_init(MACH_TYPE_SPEAR300);
+   return spear_board_init(MACH_TYPE_SPEAR310);
 }
 
 /*
diff --git a/board/spear/spear320/spear320.c b/board/spear/spear320/spear320.c
index 756aa56..2ba2dbb 100755
--- a/board/spear/spear320/spear320.c
+++ b/board/spear/spear320/spear320.c
@@ -32,7 +32,7 @@
 
 int board_init(void)
 {
-   return spear_board_init(MACH_TYPE_SPEAR300);
+   return spear_board_init(MACH_TYPE_SPEAR320);
 }
 
 /*
-- 
1.6.0.2

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH 0/2] New mach ids and maintainer name added

2010-03-01 Thread Vipin KUMAR
From: Vipin Kumar 

The subpatches do the following
1. Add the maintainer name for SPEAr support in MAINTAINERS file
2. Support for new mach ids for spear310 and spear320 added

Note : include/asm-arm/mach-types.h has to be updated before applying this
patch.

Vipin Kumar (2):
  SPEAr : Adding maintainer name for spear SoCs
  SPEAr : Supporting new mach ids for spear310 and spear320

 MAINTAINERS |7 +++
 board/spear/spear310/spear310.c |2 +-
 board/spear/spear320/spear320.c |2 +-
 3 files changed, 9 insertions(+), 2 deletions(-)

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH 1/2] SPEAr : Adding maintainer name for spear SoCs

2010-03-01 Thread Vipin KUMAR
From: Vipin Kumar 

Signed-off-by: Vipin Kumar 
---
 MAINTAINERS |7 +++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/MAINTAINERS b/MAINTAINERS
index dd1579e..49a3762 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -771,6 +771,13 @@ Minkyu Kang 
 
SMDKC100ARM CORTEX-A8 (S5PC100 SoC)
 
+Vipin Kumar 
+
+   spear300ARM926EJS (spear300 Soc)
+   spear310ARM926EJS (spear310 Soc)
+   spear320ARM926EJS (spear320 Soc)
+   spear600ARM926EJS (spear600 Soc)
+
 -
 
 Unknown / orphaned boards:
-- 
1.6.0.2

___
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.

2010-03-01 Thread Minkyu Kang
Dear Naveen Krishna Ch,

On 1 March 2010 14:05, Naveen Krishna Ch  wrote:
> 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

Please send next version.

>>
>> > +       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 :)
>

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


Re: [U-Boot] Can u-boot access Linux's mtd partition?

2010-03-01 Thread Wolfgang Denk
Dear Joe Culler,

In message <67a3f13e1003010713y432d5ee2y17a7962b15e89...@mail.gmail.com> you 
wrote:
> 
> If I've already created some configuration files such as mac address
> in mtd2 partition.
> For example:
> 0x-0x0004 : "Bootloader"
> 0x0004-0x0200 : "User config"
> 
> Does u-boot can access mtd2 partition and read the mac address from
> the configure file?

Yes, it can, but you're implementing this the wrong way round.
Normally the boot loader configured low level things like the MAC
address, and then passes this information on to Linux.

> If so, would anyone tell me how to do or what similar code can I refer
> to in u-boot? Thanks.

See for example the "mtdparts" command.

> If not, can u-boot read the mac address from the eeprom instead of set
> it manually?

You can implement anything- it's softwrae, and thus extremely
flexible. But don't expect to find any ready-to-use code for your own
proprietary data formats. You will have to adapt this yourself. 

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
A father doesn't destroy his children.
-- Lt. Carolyn Palamas, "Who Mourns for Adonais?",
   stardate 3468.1.
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH 1/4] EHCI: fix root hub device descriptor

2010-03-01 Thread Remy Bohmer
Hi,

2010/2/27 Sergei Shtylyov :
> On little endian machines, EHCI root hub's USB revision is reported as 0.2 --
> cpu_to_le16() was missed in the initializer for the 'bcdUSB' descriptor field.
> The same should be done for the 'bcdDevice' field.
>
> Signed-off-by: Sergei Shtylyov 

Applied to u-boot-usb
Thanks!

Remy

> ---
>  drivers/usb/host/ehci-hcd.c |    4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> Index: u-boot/drivers/usb/host/ehci-hcd.c
> ===
> --- u-boot.orig/drivers/usb/host/ehci-hcd.c
> +++ u-boot/drivers/usb/host/ehci-hcd.c
> @@ -55,14 +55,14 @@ static struct descriptor {
>        {
>                0x12,           /* bLength */
>                1,              /* bDescriptorType: UDESC_DEVICE */
> -               0x0002,         /* bcdUSB: v2.0 */
> +               cpu_to_le16(0x0200), /* bcdUSB: v2.0 */
>                9,              /* bDeviceClass: UDCLASS_HUB */
>                0,              /* bDeviceSubClass: UDSUBCLASS_HUB */
>                1,              /* bDeviceProtocol: UDPROTO_HSHUBSTT */
>                64,             /* bMaxPacketSize: 64 bytes */
>                0x,         /* idVendor */
>                0x,         /* idProduct */
> -               0x0001,         /* bcdDevice */
> +               cpu_to_le16(0x0100), /* bcdDevice */
>                1,              /* iManufacturer */
>                2,              /* iProduct */
>                0,              /* iSerialNumber */
> ___
> U-Boot mailing list
> U-Boot@lists.denx.de
> http://lists.denx.de/mailman/listinfo/u-boot
>
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH 2/4] EHCI: fix off-by-one error in ehci_submit_root()

2010-03-01 Thread Remy Bohmer
Hi,

2010/2/27 Sergei Shtylyov :
> USB devices on the 2nd port are not detected and I get the following message:
>
> The request port(1) is not configured
>
> That's with default CONFIG_SYS_USB_EHCI_MAX_ROOT_PORTS value of 2. 
> 'req->index'
> is 1-based, so the comparison in ehci_submit_root() can't be correct.
>
> Signed-off-by: Sergei Shtylyov 

Applied to u-boot-usb
Thanks!

Remy

> ---
>  drivers/usb/host/ehci-hcd.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> Index: u-boot/drivers/usb/host/ehci-hcd.c
> ===
> --- u-boot.orig/drivers/usb/host/ehci-hcd.c
> +++ u-boot/drivers/usb/host/ehci-hcd.c
> @@ -536,7 +536,7 @@ ehci_submit_root(struct usb_device *dev,
>        uint32_t reg;
>        uint32_t *status_reg;
>
> -       if (le16_to_cpu(req->index) >= CONFIG_SYS_USB_EHCI_MAX_ROOT_PORTS) {
> +       if (le16_to_cpu(req->index) > CONFIG_SYS_USB_EHCI_MAX_ROOT_PORTS) {
>                printf("The request port(%d) is not configured\n",
>                        le16_to_cpu(req->index) - 1);
>                return -1;
> ___
> U-Boot mailing list
> U-Boot@lists.denx.de
> http://lists.denx.de/mailman/listinfo/u-boot
>
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH 4/4] EHCI: add NEC PCI ID

2010-03-01 Thread Remy Bohmer
Hi,

2010/2/27 Sergei Shtylyov :
> Add NEC EHCI controller to the list of the supported devices.
>
> Signed-off-by: Sergei Shtylyov 
>
>  drivers/usb/host/ehci-pci.c |    1 +
>  1 file changed, 1 insertion(+)

Applied to u-boot-usb
Thanks!

Remy

>
> Index: u-boot/drivers/usb/host/ehci-pci.c
> ===
> --- u-boot.orig/drivers/usb/host/ehci-pci.c
> +++ u-boot/drivers/usb/host/ehci-pci.c
> @@ -28,6 +28,7 @@
>  #ifdef CONFIG_PCI_EHCI_DEVICE
>  static struct pci_device_id ehci_pci_ids[] = {
>        /* Please add supported PCI EHCI controller ids here */
> +       {0x1033, 0x00E0},
>        {0, 0}
>  };
>  #endif
> ___
> U-Boot mailing list
> U-Boot@lists.denx.de
> http://lists.denx.de/mailman/listinfo/u-boot
>
___
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

2010-03-01 Thread Ben Warren
Terry,

On 2/28/2010 8:48 PM, Lv Terry-R65388 wrote:
> 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"
>   
I sometimes have problems with Thunderbird whitespace-damaging patches
in Windows, and find that stripping the '\r' carriage-return characters
seems to work. My weapon of choice is 'dos2unix', but you could go
old-school with 'tr' or even change the file type in vim.

HTH,
Ben
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH] mpc83xx: fix out-of-tree mpc8315 nand build

2010-03-01 Thread Kim Phillips
commit 2e95004deb6e33e33bf1b8a92a38cd2115bac4c2 "mpc83xx: Add NAND boot support
for MPC8315E-RDB boards" symlinked nand_spl/board/freescale/mpc8315erdb to
mpc8313erdb in order to not duplicate code.

Since the main makefile builds nand_spl/board/$(BOARDDIR) (which makes sense),
and the board Makefile and linker script are the only two necessary files
to enable out-of-tree building, and other boards have duplicated nand makefiles
(e.g. 8536ds & 8569mds), it only seems prudent to copy these two files in the
name of the 8315 too.

Signed-off-by: Kim Phillips 
Cc: Anton Vorontsov 
Cc: Wolfgang Denk 
---
 Makefile|3 -
 nand_spl/board/freescale/mpc8315erdb/Makefile   |  108 +++
 nand_spl/board/freescale/mpc8315erdb/u-boot.lds |   52 +++
 3 files changed, 160 insertions(+), 3 deletions(-)
 create mode 100644 nand_spl/board/freescale/mpc8315erdb/Makefile
 create mode 100644 nand_spl/board/freescale/mpc8315erdb/u-boot.lds

diff --git a/Makefile b/Makefile
index 524b9da..16b549c 100644
--- a/Makefile
+++ b/Makefile
@@ -2272,9 +2272,6 @@ MPC8313ERDB_NAND_66_config: unconfig
 
 MPC8315ERDB_NAND_config \
 MPC8315ERDB_config: unconfig
-   @if [ "$(findstring _NAND_,$@)" ] ; then \
-   ln -sf mpc8313erdb nand_spl/board/freescale/mpc8315erdb ; \
-   fi ;
@$(MKCONFIG) -t $(@:_config=) MPC8315ERDB ppc mpc83xx mpc8315erdb 
freescale
 
 MPC8323ERDB_config:unconfig
diff --git a/nand_spl/board/freescale/mpc8315erdb/Makefile 
b/nand_spl/board/freescale/mpc8315erdb/Makefile
new file mode 100644
index 000..a13e7e2
--- /dev/null
+++ b/nand_spl/board/freescale/mpc8315erdb/Makefile
@@ -0,0 +1,108 @@
+#
+# (C) Copyright 2007
+# Stefan Roese, DENX Software Engineering, s...@denx.de.
+# (C) Copyright 2008 Freescale Semiconductor
+#
+# 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
+#
+
+NAND_SPL := y
+TEXT_BASE := 0xfff0
+PAD_TO := 0xfff04000
+
+include $(TOPDIR)/config.mk
+
+LDSCRIPT= $(TOPDIR)/nand_spl/board/$(BOARDDIR)/u-boot.lds
+LDFLAGS= -Bstatic -T $(nandobj)u-boot.lds -Ttext $(TEXT_BASE) 
$(PLATFORM_LDFLAGS)
+AFLAGS += -DCONFIG_NAND_SPL
+CFLAGS += -DCONFIG_NAND_SPL
+
+SOBJS  = start.o ticks.o
+COBJS  = nand_boot_fsl_elbc.o $(BOARD).o sdram.o ns16550.o nand_init.o \
+ time.o cache.o
+
+SRCS   := $(addprefix $(obj),$(SOBJS:.o=.S) $(COBJS:.o=.c))
+OBJS   := $(addprefix $(obj),$(SOBJS) $(COBJS))
+__OBJS := $(SOBJS) $(COBJS)
+LNDIR  := $(OBJTREE)/nand_spl/board/$(BOARDDIR)
+
+nandobj:= $(OBJTREE)/nand_spl/
+
+ALL= $(nandobj)u-boot-spl $(nandobj)u-boot-spl.bin 
$(nandobj)u-boot-spl-16k.bin
+
+all:   $(obj).depend $(ALL)
+
+$(nandobj)u-boot-spl-16k.bin: $(nandobj)u-boot-spl
+   $(OBJCOPY) ${OBJCFLAGS} --pad-to=$(PAD_TO) -O binary $< $@
+
+$(nandobj)u-boot-spl.bin:  $(nandobj)u-boot-spl
+   $(OBJCOPY) ${OBJCFLAGS} -O binary $< $@
+
+$(nandobj)u-boot-spl:  $(OBJS) $(nandobj)u-boot.lds
+   cd $(LNDIR) && $(LD) $(LDFLAGS) $(__OBJS) \
+   -Map $(nandobj)u-boot-spl.map \
+   -o $(nandobj)u-boot-spl
+
+$(nandobj)u-boot.lds: $(LDSCRIPT)
+   $(CPP) $(CPPFLAGS) $(LDPPFLAGS) -ansi -D__ASSEMBLY__ -P - <$^ >$@
+
+# create symbolic links for common files
+
+$(obj)start.S:
+   ln -sf $(SRCTREE)/cpu/mpc83xx/start.S $(obj)start.S
+
+$(obj)nand_boot_fsl_elbc.c:
+   ln -sf $(SRCTREE)/nand_spl/nand_boot_fsl_elbc.c \
+  $(obj)nand_boot_fsl_elbc.c
+
+$(obj)sdram.c:
+   ln -sf $(SRCTREE)/board/$(BOARDDIR)/sdram.c $(obj)sdram.c
+
+$(obj)$(BOARD).c:
+   ln -sf $(SRCTREE)/board/$(BOARDDIR)/$(BOARD).c $(obj)$(BOARD).c
+
+$(obj)ns16550.c:
+   ln -sf $(SRCTREE)/drivers/serial/ns16550.c $(obj)ns16550.c
+
+$(obj)nand_init.c:
+   ln -sf $(SRCTREE)/cpu/mpc83xx/nand_init.c $(obj)nand_init.c
+
+$(obj)cache.c:
+   ln -sf $(SRCTREE)/lib_ppc/cache.c $(obj)cache.c
+
+$(obj)time.c:
+   ln -sf $(SRCTREE)/lib_ppc/time.c $(obj)time.c
+
+$(obj)ticks.S:
+   ln -sf $(SRCTREE)/lib_ppc/ticks.S $(obj)ticks.S
+
+#
+
+$(obj)%.o: $(obj)%.S
+   $(CC) $(AFLAGS) -c -o $@ $<
+
+$(obj)%.o: $(obj)%.c
+   $(CC) $(CFLAGS) -c -o $@ $<
+
+# defines $(obj).

[U-Boot] Can u-boot access Linux's mtd partition?

2010-03-01 Thread Joe Culler
Hi,

If I've already created some configuration files such as mac address
in mtd2 partition.
For example:
0x-0x0004 : "Bootloader"
0x0004-0x0200 : "User config"

Does u-boot can access mtd2 partition and read the mac address from
the configure file?
If so, would anyone tell me how to do or what similar code can I refer
to in u-boot? Thanks.
If not, can u-boot read the mac address from the eeprom instead of set
it manually?

Thank you,

Best regards,
Joe.
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH] arm, suen3: fix compile error, if doing not a local build

2010-03-01 Thread Heiko Schocher
Signed-off-by: Heiko Schocher 
---

Patch against current git://git.denx.de/u-boot-marvell.git

 board/keymile/km_arm/Makefile |3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

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

-- 
1.6.2.5
-- 
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


Re: [U-Boot] [PATCH] Add support for Indefia Nimbus Cloud Board

2010-03-01 Thread Semih Hazar


On 2/4/10 7:13 PM, Semih Hazar wrote:
> Please find the revised patch in a separate email, which also includes a
> new header file per your comments in the other email.
>
>   
Dear Wolfgang,

It's been a while over this issue, so I wanted to ask. Did you have time
to look at this?

Regards,
Semih

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] Pull request u-boot-marvell.git

2010-03-01 Thread Tom
Heiko Schocher wrote:
> 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 ?
> 

Please just the much smaller 'Compiler fix.. ' patch.
Thanks,
Tom


> bye
> Heiko

___
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

2010-03-01 Thread Stefano Babic
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

-- 
=
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80  Email: off...@denx.de
=
___
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

2010-03-01 Thread Stefano Babic
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: 2500
Rd Block Len: 512
SD version 1.10
High Capacity: No
Capacity: 2014838784
Bus Width: 4-bit

MX51EVK U-Boot > fatls mmc 0
14154   6091733.pdf

Of course, I have tested booting Linux that is stored on MMC, too.

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

I do not understand what you mean. I have not changed the type in
esdhc_xfertyp in my patch, it was already set to XFERTYP_DMAEN. The main
changes are related to set the correct accessors functions and these are
the only changes in esdhc_send_cmd().

> 
> I hasn't tested DMA mode before.

Have you tested this patch and have you found some issues ?

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

Adding the environment to the MMC is a feature that should be
implemented in a separate patch, because it is not strictly related to
the mx51evk. If it works, it must be possible to use it with all targets
having a MMC on board.

And I didn't want to add so much features before the patchset goes to
the mainline. I prefer that at least the basic support for a MX51
processor is in the mainline, allowing for others to add easier custom
boards with this SOC.

I think that such feature should be previously discussed on the ML.
On one side, it looks strange that the environment resides on a
removable media. On the other side, I understand that for test purposes
or for boards without other storage media this is a way to store it.

Regards,
Stefano

-- 
=
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80  Email: off...@denx.de
=
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH] POST progress API

2010-03-01 Thread Michael Zaidman
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 
---
 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
@@ -53,6 +53,11 @@
 
 #define POST_FAIL_SAVE 0x80
 
+#define POST_BEFORE1
+#define POST_AFTER 0
+#define POST_PASSED1
+#define POST_FAILED0
+
 #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
@@ -231,6 +231,12 @@ static void post_get_flags (int *test_flags)
}
 }
 
+void __show_post_progress (unsigned int test_num, int before, int result)
+{
+}
+void show_post_progress (unsigned int, int, int)
+   __attribute__((weak, alias("__show_post_progress")));
+
 static int post_run_single (struct post_test *test,
int test_flags, int flags, unsigned int i)
 {
@@ -248,13 +254,18 @@ static int post_run_single (struct post_test *test,
if (test_flags & POST_PREREL)
post_log_mark_start ( test->testid );
else
-   post_log ("POST %s ", test->cmd);
+   post_log ("POST %s ", test->cmd);
}
 
+   show_post_progress(i, POST_BEFORE, POST_FAILED);
+
if (test_flags & POST_PREREL) {
-   if ((*test->test) (flags) == 0)
+   if ((*test->test) (flags) == 0) {
post_log_mark_succ ( test->testid );
+   show_post_progress(i, POST_AFTER, POST_PASSED);
+   }
else {
+   show_post_progress(i, POST_AFTER, POST_FAILED);
if (test_flags & POST_CRITICAL)
gd->flags |= GD_FLG_POSTFAIL;
if (test_flags & POST_STOP)
@@ -264,6 +275,7 @@ static int post_run_single (struct post_test *test,
if ((*test->test) (flags) != 0) {
post_log ("FAILED\n");
show_boot_progress (-32);
+   show_post_progress(i, POST_AFTER, POST_FAILED);
if (test_flags & POST_CRITICAL)
gd->flags |= GD_FLG_POSTFAIL;
if (test_flags & POST_STOP)
@@ -271,6 +283,7 @@ static int post_run_single (struct post_test *test,
}
else
post_log ("PASSED\n");
+   show_post_progress(i, POST_AFTER, POST_PASSED);
}
 
if ((test_flags & POST_REBOOT) && !(flags & POST_MANUAL)) {
-- 
1.6.3.3

___
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

2010-03-01 Thread Wolfgang Denk
Dear "Lv Terry-R65388",

In message 
<1ae74f652ecb1440b73dd7c2c20842d1ac6...@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.

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
Do not underestimate the value of print statements for debugging.
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot