Re: [U-Boot] setting Ethernet address

2014-03-16 Thread Benedict Hewson
On Saturday 15 Mar 2014 16:59:05 Fabio Estevam wrote: On Sat, Mar 15, 2014 at 4:08 AM, Benedict Hewson bened...@hewson-venieri.com wrote: In the fec_get_hwaddr() function I have printed out the values returned by imx_get_mac_from_fuse() and they are all 0. I have read in the

Re: [U-Boot] [PATCH v1 0/9] sunxi: initial upstreamining effort

2014-03-16 Thread Ian Campbell
On Fri, 2014-03-14 at 15:17 -0500, Dennis Gilmore wrote: On Fri, 14 Mar 2014 10:16:42 -0400 Tom Rini tr...@ti.com wrote: On Fri, Mar 14, 2014 at 10:33:32AM +, Ian Campbell wrote: Hi, This is my first cut at an upstreamable series based upon the

[U-Boot] [PATCH] fpga: zynqpl: Fixed bug in alignment routine

2014-03-16 Thread Eli Billauer
The aligned buffer is always with a higher address, so copying should run from the end of the buffer to the beginning, and not the other way around. Signed-off-by: Eli Billauer eli.billa...@gmail.com --- drivers/fpga/zynqpl.c |5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff

Re: [U-Boot] setting Ethernet address

2014-03-16 Thread Wolfgang Denk
Dear Benedict Hewson, In message 4458778.Fr6NCEssuz@desktop1 you wrote: yes using setenv ethaddr and setenv ipaddr allows me to ping other computers and to ping the board. Good. I was wondering why if I try to set ethaddr as part of CONFIG_EXTRA_ENV_SETTINGS it is not there when I boot

Re: [U-Boot] setting Ethernet address

2014-03-16 Thread Benedict Hewson
On Sunday 16 Mar 2014 09:06:10 Wolfgang Denk wrote: I was wondering why if I try to set ethaddr as part of CONFIG_EXTRA_ENV_SETTINGS it is not there when I boot the board. This would define it only in the default environment (and doing this is strongly deprecated and will never be

Re: [U-Boot] Enabling uart 3 in arndale

2014-03-16 Thread armdev
Please can someone help On 14-Mar-2014, at 1:34 pm, armdev armdev@gmail.com wrote: Hi, We are trying to enable the UART3 on COM18 pins of arndale board. The UART3 RXD and TXD are on pins 2 and 4 which as per the base board specification is connected as XuRXD3 : UART_3_RXD/GPA1[4]

Re: [U-Boot] Enabling uart 3 in arndale

2014-03-16 Thread Michael Trimarchi
Hi On Fri, Mar 14, 2014 at 9:04 AM, armdev armdev@gmail.com wrote: Hi, We are trying to enable the UART3 on COM18 pins of arndale board. The UART3 RXD and TXD are on pins 2 and 4 which as per the base board specification is connected as XuRXD3 : UART_3_RXD/GPA1[4] : 2 XuTXD3 :

Re: [U-Boot] Enabling uart 3 in arndale

2014-03-16 Thread armdev
Dear Michael, Yep didn’t got any prints. So tried a hack. a) Booted using uart 2 b) set the GPACON c) Copied the config from 0x12c2 to 0x12c3 d)tried to write a char 0x41 (A) on 0x12c20020 0x12c30020, I got output on UART2 but not on UART3. We would like to use both uarts. Have you used

Re: [U-Boot] Enabling uart 3 in arndale

2014-03-16 Thread Michael Trimarchi
Hi On Sun, Mar 16, 2014 at 11:07 AM, armdev armdev@gmail.com wrote: Dear Michael, Yep didn't got any prints. So tried a hack. a) Booted using uart 2 b) set the GPACON c) Copied the config from 0x12c2 to 0x12c3 d)tried to write a char 0x41 (A) on 0x12c20020 0x12c30020, I got

Re: [U-Boot] Enabling uart 3 in arndale

2014-03-16 Thread armdev
Dear Michael, Thanks for taking out time to extend help. As per the RefManual the UART is taking the SCLK_UART Clock and as there are 4 channels (4 UARTS). Following is from the public exynos 5250 manual

Re: [U-Boot] Enabling uart 3 in arndale

2014-03-16 Thread Tomasz Figa
Hi, On 14.03.2014 09:04, armdev wrote: Hi, We are trying to enable the UART3 on COM18 pins of arndale board. The UART3 RXD and TXD are on pins 2 and 4 which as per the base board specification is connected as XuRXD3 : UART_3_RXD/GPA1[4] : 2 XuTXD3 : UART_3_TXD/GPA1[5] : 4 As per the public

Re: [U-Boot] Enabling uart 3 in arndale

2014-03-16 Thread Tomasz Figa
Hi, On 16.03.2014 11:42, armdev wrote: Dear Michael, Thanks for taking out time to extend help. As per the RefManual the UART is taking the SCLK_UART Clock and as there are 4 channels (4 UARTS). Following is from the public exynos 5250 manual

Re: [U-Boot] [PATCH v1 5/9] sunxi: generic sun7i build infrastructure.

2014-03-16 Thread Ian Campbell
On Fri, 2014-03-14 at 10:17 -0400, Tom Rini wrote: On Fri, Mar 14, 2014 at 10:33:47AM +, Ian Campbell wrote: +/* + * Size of malloc() pool + * 1MB = 0x10, 0x10 = 1024 * 1024 + */ +#define CONFIG_SYS_MALLOC_LEN (CONFIG_ENV_SIZE + (1 20)) This is really

[U-Boot] [PATCH u-boot sunxi 2/4] sunxi: FIXUP: sunxi: initial sun7i dram setup support

2014-03-16 Thread Hans de Goede
mctl_ddr3_reset() should not be called here for sun7i, at least the u-boot-sunxi sources don't do this. Signed-off-by: Hans de Goede hdego...@redhat.com --- arch/arm/cpu/armv7/sunxi/dram.c | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm/cpu/armv7/sunxi/dram.c

[U-Boot] [PATCH u-boot sunxi 0/4] sun4i support on top of Ian's patches

2014-03-16 Thread Hans de Goede
Hi All, Here is a patch-set adding sun4i support on top of Ian's recent 1st attempt to get sun7i upstream patch-set. Note I've had to drop the raising of the cpu core clock, without matching axp209 changes this causes issues on sun4i. I've been thinking about how to best move forward with this

[U-Boot] [PATCH u-boot sunxi 1/4] sunxi: FIXUP: sunxi: initial generic sun7i cpu, board and start of day support

2014-03-16 Thread Hans de Goede
We should not be raising the cpu core frequency until we have pmic support in place. Signed-off-by: Hans de Goede hdego...@redhat.com --- board/sunxi/board.c | 10 -- 1 file changed, 10 deletions(-) diff --git a/board/sunxi/board.c b/board/sunxi/board.c index 5dbcf2a..cc3083c 100644 ---

[U-Boot] [PATCH u-boot sunxi 4/4] sunxi: Add sun4i support

2014-03-16 Thread Hans de Goede
Signed-off-by: Hans de Goede hdego...@redhat.com --- arch/arm/cpu/armv7/sunxi/board.c| 2 +- arch/arm/cpu/armv7/sunxi/clock.c| 2 + arch/arm/cpu/armv7/sunxi/cpu_info.c | 7 ++ arch/arm/cpu/armv7/sunxi/dram.c | 129 board/sunxi/Makefile

[U-Boot] [PATCH u-boot sunxi 3/4] sunxi: Implement reset_cpu

2014-03-16 Thread Hans de Goede
There is no way to reset the cpu, so use the watchdog for this. Signed-off-by: Hans de Goede hdego...@redhat.com --- arch/arm/cpu/armv7/sunxi/board.c| 7 +++ arch/arm/include/asm/arch-sunxi/timer.h | 4 2 files changed, 11 insertions(+) diff --git

Re: [U-Boot] [PATCH u-boot sunxi 4/4] sunxi: Add sun4i support

2014-03-16 Thread Hans de Goede
Hi, On 03/16/2014 02:53 PM, Hans de Goede wrote: Woops I forgot to add a commit msg here, I've jut fixed this locally: Based linux-sunxi#sunxi commit d854c4de2f57 arm: Handle .gnu.hash section in ldscripts vs v2014.01. As well as the following signed-off-by the sunxi branch shows

Re: [U-Boot] [PATCH u-boot sunxi 0/4] sun4i support on top of Ian's patches

2014-03-16 Thread Ian Campbell
On Sun, 2014-03-16 at 14:53 +0100, Hans de Goede wrote: Hi All, Here is a patch-set adding sun4i support on top of Ian's recent 1st attempt to get sun7i upstream patch-set. Note I've had to drop the raising of the cpu core clock, without matching axp209 changes this causes issues on

Re: [U-Boot] [linux-sunxi] [PATCH v1 9/9] sunxi: add gmac Ethernet support

2014-03-16 Thread Ian Campbell
On Fri, 2014-03-14 at 10:22 -0400, Tom Rini wrote: On Fri, Mar 14, 2014 at 11:28:06AM +, Ian Campbell wrote: On Fri, 2014-03-14 at 19:11 +0800, Chen-Yu Tsai wrote: [snip] I think you should keep them in the same patch. You can then just add the appropriate config options when support

Re: [U-Boot] [PATCH u-boot sunxi 0/4] sun4i support on top of Ian's patches

2014-03-16 Thread Hans de Goede
Hi, On 03/16/2014 04:05 PM, Ian Campbell wrote: On Sun, 2014-03-16 at 14:53 +0100, Hans de Goede wrote: Hi All, Here is a patch-set adding sun4i support on top of Ian's recent 1st attempt to get sun7i upstream patch-set. Note I've had to drop the raising of the cpu core clock, without

Re: [U-Boot] [PATCH v1 8/9] sunxi: non-FEL SPL boot support for sun7i

2014-03-16 Thread Ian Campbell
On Fri, 2014-03-14 at 15:03 -0400, Tom Rini wrote: On 03/14/2014 02:50 PM, Hans de Goede wrote: Hi, On 03/14/2014 03:17 PM, Tom Rini wrote: On Fri, Mar 14, 2014 at 10:33:50AM +, Ian Campbell wrote: Based linux-sunxi#sunxi commit d854c4de2f57 arm: Handle .gnu.hash section in

Re: [U-Boot] [PATCH u-boot sunxi 0/4] sun4i support on top of Ian's patches

2014-03-16 Thread Ian Campbell
On Sun, 2014-03-16 at 16:15 +0100, Hans de Goede wrote: Hi, On 03/16/2014 04:05 PM, Ian Campbell wrote: On Sun, 2014-03-16 at 14:53 +0100, Hans de Goede wrote: Hi All, Here is a patch-set adding sun4i support on top of Ian's recent 1st attempt to get sun7i upstream patch-set.

Re: [U-Boot] [PATCH v1 8/9] sunxi: non-FEL SPL boot support for sun7i

2014-03-16 Thread Ian Campbell
On Sun, 2014-03-16 at 15:19 +, Ian Campbell wrote: On Fri, 2014-03-14 at 15:03 -0400, Tom Rini wrote: On 03/14/2014 02:50 PM, Hans de Goede wrote: Hi, On 03/14/2014 03:17 PM, Tom Rini wrote: On Fri, Mar 14, 2014 at 10:33:50AM +, Ian Campbell wrote: Based

Re: [U-Boot] [PATCH u-boot sunxi 2/4] sunxi: FIXUP: sunxi: initial sun7i dram setup support

2014-03-16 Thread Ian Campbell
On Sun, 2014-03-16 at 14:53 +0100, Hans de Goede wrote: mctl_ddr3_reset() should not be called here for sun7i, at least the u-boot-sunxi sources don't do this. oops, I misread an ifndef. I'll fold in, thanks. Ian. ___ U-Boot mailing list

Re: [U-Boot] [PATCH u-boot sunxi 3/4] sunxi: Implement reset_cpu

2014-03-16 Thread Ian Campbell
On Sun, 2014-03-16 at 14:53 +0100, Hans de Goede wrote: There is no way to reset the cpu, so use the watchdog for this. The sunxi.git tree does this by calling watchdog_set(0). I think it would be better to introduce the generic watchdog support and the add this a patch to use it for reset.

Re: [U-Boot] [PATCH v1 7/9] sunxi: mmc support

2014-03-16 Thread Ian Campbell
On Fri, 2014-03-14 at 17:36 +0200, Pantelis Antoniou wrote: [...] Thanks for your review. It seems there are still quite a few issues dating back to the original allwinner dumps here. @linux-sunxi: if anyone wants to volunteer to help cleanup this particular driver I'd be very happy -- there's

[U-Boot] [PATCH] woodburn_sd: Remove CONFIG_BOOT_INTERNAL

2014-03-16 Thread Fabio Estevam
From: Fabio Estevam fabio.este...@freescale.com CONFIG_BOOT_INTERNAL is not used anywhere, so let's remove it. Signed-off-by: Fabio Estevam fabio.este...@freescale.com --- include/configs/woodburn_sd.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/include/configs/woodburn_sd.h

Re: [U-Boot] [linux-sunxi] Re: [PATCH v1 7/9] sunxi: mmc support

2014-03-16 Thread Chen-Yu Tsai
On Mon, Mar 17, 2014 at 4:38 AM, Ian Campbell i...@hellion.org.uk wrote: On Fri, 2014-03-14 at 17:36 +0200, Pantelis Antoniou wrote: [...] Thanks for your review. It seems there are still quite a few issues dating back to the original allwinner dumps here. @linux-sunxi: if anyone wants to

Re: [U-Boot] Secure booting

2014-03-16 Thread Simon Glass
Hi, On 15 March 2014 21:39, JYOTI DUBEY jyoti0...@gmail.com wrote: Can somebody inform me what all changes I need to make in U-boot 2013 source code to enable secure booting? Please can you provide more details? - What board? - What docs have you already read? - Did you look at the settings

Re: [U-Boot] Relocation

2014-03-16 Thread TigerLiu
Hi, Albert: Relocation will always happen, and there is no provision for avoiding it. I have ever tried to del these code in crt0.S : ldr sp, [r8, #GD_START_ADDR_SP] /* r8 = gd-start_addr_sp */ bic sp, sp, #7 /* 8-byte alignment for ABI compliance */ ldr