[U-Boot] [PATCH] MAINTAINERS: Transfer openrd_base maintainership to Prafulla Wadaskar

2010-11-30 Thread Simon Kagstrom
Signed-off-by: Simon Kagstrom simon.kagst...@netinsight.net --- I no longer work on OpenRD base, so transfer the maintainership to Prafulla at Marvell. MAINTAINERS |5 + 1 files changed, 1 insertions(+), 4 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index f47fca5..ed07052 100644

Re: [U-Boot] [PATCH] ARM: Kirkwood: Add support for OpenRD-Client OpenRD-Ultimate

2010-06-10 Thread Simon Kagstrom
On Thu, 10 Jun 2010 14:42:24 +0530 Tanmay Upadhyay tanmay.upadh...@einfochips.com wrote: This patch modifies existing OpenRD-Base support to deal with all the three OpenRD boards (OpenRD-Base, OpenRD-Client OpenRD-Ultimate). Yes, that's a good change! diff --git

Re: [U-Boot] [PATCH] ARM: Kirkwood: Add support for OpenRD-Client OpenRD-Ultimate

2010-06-10 Thread Simon Kagstrom
On Thu, 10 Jun 2010 15:08:00 +0530 Tanmay Upadhyay tanmay.upadh...@einfochips.com wrote: +#define MACH_TYPE_OPENRD_ULTIMATE 2884 I don't think this file is supposed to be edited in patches, but rather synched from arm-linux by Wolfgang from time to time. Sorry, I didn't know

Re: [U-Boot] net, kirkwood_egiga: init mac address before using network commands

2010-03-30 Thread Simon Kagstrom
On Tue, 30 Mar 2010 07:38:39 +0200 Heiko Schocher h...@denx.de wrote: initialize mac address with the value from ethaddr, before doing some network commands. This is not in line with u-boot design principle not to initalize not used devices, and maybe should go away, if there is a solution

Re: [U-Boot] net, kirkwood_egiga: init mac address before using network commands

2010-03-30 Thread Simon Kagstrom
On Tue, 30 Mar 2010 09:52:29 +0200 Detlev Zundel d...@denx.de wrote: I also actively request the U-Boot community to give feedback here - after all, this _is_ a community project and fixing real problems is one of the main tasks of a bootloader. Personally, I'd prefer using Heikos approach

Re: [U-Boot] net, kirkwood_egiga: init mac address before using network commands

2010-03-30 Thread Simon Kagstrom
On Tue, 30 Mar 2010 10:26:59 +0200 Wolfgang Denk w...@denx.de wrote: Personally, I'd prefer using Heikos approach until Arm Linux has moved to device trees. I know it's a deviation from how it's supposed to work, but it also solves a real problem without introducing kludges elsewhere.

Re: [U-Boot] Killed Sheeva Plug

2010-03-26 Thread Simon Kagstrom
On Thu, 25 Mar 2010 20:57:10 +0100 Norbert Wegener n...@wegener-net.de wrote: While trying to learn about it, at the U-Boot prompt I issued a command I'd better not issued: nand erase It seems, U-Boot did what I asked to do... No U-Boot prompt any more and nothing else:-( You can reflash it

Re: [U-Boot] EABI 4.2

2010-03-17 Thread Simon Kagstrom
(Sorry if this has already been taken up, I've not been following the discussion closely) On Thu, 11 Mar 2010 11:11:09 +0100 Martin Krause martin.kra...@tqs.de wrote: Does this mean, my toolchain is broken? I use ELDK4.2 for ARM. I belive so, how many bytes is in dirent.namelen? alloca

Re: [U-Boot] EABI 4.2

2010-03-17 Thread Simon Kagstrom
On Wed, 17 Mar 2010 09:53:36 -0500 Praveen G K praveen...@gmail.com wrote: I had a similar problem a few months ago, which turned out to be a stack alignment issue:  http://www.mail-archive.com/u-boot@lists.denx.de/msg23202.html the behavior was pretty similar, with code built with

Re: [U-Boot] Does ubifs in u-boot is only for ppc

2009-11-11 Thread Simon Kagstrom
On Wed, 11 Nov 2009 18:21:25 +0800 Lv Terry-R65388 r65...@freescale.com wrote: I'm trying to build a u-boot image for our arm board with ubifs support. [...] fs/ubifs/libubifs.a(lpt.o):/home/r65388/uboot-v2009.08/uboot-imx/fs/ubif s/lpt.c:87: more undefined references to `fls' follow

Re: [U-Boot] [PATCH v2 1/2]: common: Add a watchdog CLI command

2009-11-06 Thread Simon Kagstrom
(Ping!) On Thu, 29 Oct 2009 09:09:23 +0100 Simon Kagstrom simon.kagst...@netinsight.net wrote: A watchdog command to enable the watchdog with a timeout from the CLI can sometimes be useful. Add that. This also adds a common API for enabling watchdogs. The API is simple: int

[U-Boot] [PATCH v2 0/2]: Watchdog support from the command line

2009-10-29 Thread Simon Kagstrom
Hi! These two patches add a generic watchdog CLI command and a driver for the watchdog on Marvell Kirkwood that uses it. The command usage is watchdog - Watchdog commands Usage: watchdog timeout- start the watchdog with `timeout' seconds timeout ChangeLog: v2: Adapt according to

[U-Boot] [PATCH v2 1/2]: common: Add a watchdog CLI command

2009-10-29 Thread Simon Kagstrom
return a negative value if the call failed. Signed-off-by: Simon Kagstrom simon.kagst...@netinsight.net --- ChangeLog: v2: * Passing zero as timeout is invalid (Prafulla) * Add return value from watchdog_enable(), negative means failure (Prafulla, Wolfgang) * Remove watchdog_disable

[U-Boot] [PATCH v2 2/2]: arm:kirkwood: Add hardware watchdog support for Marvell Kirkwood boards

2009-10-29 Thread Simon Kagstrom
Initialize by calling the generic API watchdog_enable() with the number of seconds for the watchdog to timeout. It's not possible to disable the watchdog once it's on. Signed-off-by: Simon Kagstrom simon.kagst...@netinsight.net --- ChangeLog: v2: * Remove watchdog_disable() * Add

Re: [U-Boot] [PATCH] arm:kirkwood: Add hardware watchdog support for Marvell Kirkwood boards

2009-10-28 Thread Simon Kagstrom
Hi again Prafulla and the list! On Mon, 28 Sep 2009 09:06:26 +0200 Simon Kagstrom simon.kagst...@netinsight.net wrote: Initialize by calling kw_watchdog_init() with the number of seconds for the watchdog to timeout. Signed-off-by: Simon Kagstrom simon.kagst...@netinsight.net Were there any

Re: [U-Boot] [PATCH] arm:kirkwood: Add hardware watchdog support for Marvell Kirkwood boards

2009-10-28 Thread Simon Kagstrom
Thanks for the comments! On Wed, 28 Oct 2009 02:24:43 -0700 Prafulla Wadaskar prafu...@marvell.com wrote: #define UBOOT_CNTR 0 /* counter to use for uboot timer */ +#define WATCHDOG_CNTR2 BTW, this declaration will not be required if you see struct kwtmr_register

Re: [U-Boot] [PATCH] arm:kirkwood: Add hardware watchdog support for Marvell Kirkwood boards

2009-10-28 Thread Simon Kagstrom
On Wed, 28 Oct 2009 04:34:10 -0700 Prafulla Wadaskar prafu...@marvell.com wrote: #define CNTMR_VAL_REG(tmrnum) kwtmr_regs-tmr[tmrnum].val and used for the regular timer support. I'm not sure I like that, but at least the file should be internally consistent. You can

Re: [U-Boot] [PATCH] arm:kirkwood: Add hardware watchdog support for Marvell Kirkwood boards

2009-10-28 Thread Simon Kagstrom
On Wed, 28 Oct 2009 05:57:34 -0700 Prafulla Wadaskar prafu...@marvell.com wrote: Sure, but WATCHDOG_RESET() will be called anyway (and probably before my code), so it will be enabled anyhow in that case. My point is that sometimes you don't want the watchdog to get started directly, hence

[U-Boot] [PATCH 0/2]: Watchdog support from the command line

2009-10-28 Thread Simon Kagstrom
Hi! These two patches add a generic watchdog CLI command and a driver for the watchdog on Marvell Kirkwood that uses it. The command usage is watchdog - Watchdog commands Usage: watchdog timeout- start the watchdog with `timeout' seconds timeout watchdog off - stop the

[U-Boot] [PATCH 1/2]: common: Add a watchdog CLI command

2009-10-28 Thread Simon Kagstrom
the watchdog might or might not be possible depending on the hardware, and the timeout range can also vary in the same way. Signed-off-by: Simon Kagstrom simon.kagst...@netinsight.net --- common/Makefile |1 + common/cmd_watchdog.c | 61

[U-Boot] [PATCH 2/2]: arm:kirkwood: Add hardware watchdog support for Marvell Kirkwood boards

2009-10-28 Thread Simon Kagstrom
Initialize by calling the generic API watchdog_enable() with the number of seconds for the watchdog to timeout. It's not possible to disable the watchdog once it's on. Signed-off-by: Simon Kagstrom simon.kagst...@netinsight.net --- ChangeLog: v2: (Some of the comments from Prafulla) * Use

Re: [U-Boot] [PATCH 1/2]: common: Add a watchdog CLI command

2009-10-28 Thread Simon Kagstrom
On Wed, 28 Oct 2009 07:29:35 -0700 Prafulla Wadaskar prafu...@marvell.com wrote: +static int do_watchdog(cmd_tbl_t *cmdtp, int flag, int argc, + if (timeout 0) + goto usage; How about passing zero value here, will it be a correct input for watchdog_enable? Good point,

Re: [U-Boot] ARM pull request v3

2009-10-23 Thread Simon Kagstrom
Hi Tom and Wolfgang! On Sun, 18 Oct 2009 17:58:48 -0500 Tom tom@windriver.com wrote: [...] The following changes since commit a380279b2abe130c2d3d2c8de36f8ff98bc6b3b0: Daniel Gorsulowski (1): at91: Update MEESC board support are available in the git repository at:

Re: [U-Boot] ARM pull request v3

2009-10-14 Thread Simon Kagstrom
On Wed, 14 Oct 2009 06:18:30 -0500 Tom Rix t...@bumblecow.com wrote: Tom: Perhaps you could pick up [PATCH v3] arm926ejs: 8-byte align stack to avoid LDRD/STRD problems for the ARM repo as well then? I know it could go via Prafullas tree, but it's not really Marvell-specific, just

Re: [U-Boot] ARM pull request v3

2009-10-13 Thread Simon Kagstrom
On Tue, 13 Oct 2009 16:51:14 +0200 Wolfgang Denk w...@denx.de wrote: I want to let you know that there will probably be some compilation warnings. These are patches for these. These have been sent to the list and ACK'ed by Tom and currently in my master. This will be part of my next pull

Re: [U-Boot] arm/master merged

2009-10-12 Thread Simon Kagstrom
On Sun, 11 Oct 2009 14:00:15 -0500 Tom Rix t...@bumblecow.com wrote: I have merged arm/next into arm/master. There are new warnings in CPU9260 , CONFIG_SYS_64BIT_VSPRINTF CPU9G20 , CONFIG_SYS_64BIT_VSPRINTF GPUAT91 , CONFIG_NET_MULTI, davinci_dm355evm , CONFIG_SYS_64BIT_VSPRINTF,

[U-Boot] [PATCH v3] arm926ejs: 8-byte align stack to avoid LDRD/STRD problems

2009-10-06 Thread Simon Kagstrom
undefined behavior). Tested on an OpenRD base board, where both printouts and ubifs stuff now works. Signed-off-by: Simon Kagstrom simon.kagst...@netinsight.net --- ChangeLog: v2: Update after Andrews comments * Mask away the low address bits to get 16-byte alignment v3: Update after Andrews

Re: [U-Boot] [PATCH v2] arm926ejs: 16-byte align stack to avoid LDRD/STRD problems

2009-10-06 Thread Simon Kagstrom
On Mon, 05 Oct 2009 13:37:36 -0500 Tom tom@windriver.com wrote: Simon Kagstrom wrote: U-boot for Marvell Kirkwood boards no longer work after the EABI changes introduced in commit f772acf8a584067033eff1e231fcd1fb3a00d3d9. This turns out to be caused by a stack alignment issue

[U-Boot] [PATCH] arm926ejs: 16-byte align stack to avoid LDRD/STRD problems

2009-10-05 Thread Simon Kagstrom
undefined behavior), and start.S gave the stack a 12-byte alignment. Tested on an OpenRD base board, where both printouts and ubifs stuff now works. Signed-off-by: Simon Kagstrom simon.kagst...@netinsight.net --- cpu/arm926ejs/start.S |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff

Re: [U-Boot] [PATCH] arm926ejs: 16-byte align stack to avoid LDRD/STRD problems

2009-10-05 Thread Simon Kagstrom
On Mon, 5 Oct 2009 09:30:54 -0500 Andrew Dyer amd...@gmail.com wrote:        sub     r0, r0, #(CONFIG_STACKSIZE_IRQ+CONFIG_STACKSIZE_FIQ)  #endif -       sub     sp, r0, #12             /* leave 3 words for abort-stack     */ +       sub     sp, r0, #16             /* leave 3 words for

[U-Boot] [PATCH v2] arm926ejs: 16-byte align stack to avoid LDRD/STRD problems

2009-10-05 Thread Simon Kagstrom
undefined behavior), and start.S gave the stack a 12-byte alignment. Tested on an OpenRD base board, where both printouts and ubifs stuff now works. Signed-off-by: Simon Kagstrom simon.kagst...@netinsight.net --- ChangeLog: v2: Update after Andrews comments * Mask away the low address bits to get

Re: [U-Boot] [PATCH] Make arm926ejs use -mabi=apcs-gnu to avoid EABI problems

2009-10-02 Thread Simon Kagstrom
On Thu, 01 Oct 2009 20:27:11 +0200 Wolfgang Denk w...@denx.de wrote: -PLATFORM_CPPFLAGS += -march=armv5te +PLATFORM_CPPFLAGS += -march=armv5te -mabi=apcs-gnu I have to admit that I really hesitate ifwe should add this - the longer I think about it, the more I tend to say no. I call

[U-Boot] [PATCH] Make arm926ejs use -mabi=apcs-gnu to avoid EABI problems

2009-10-01 Thread Simon Kagstrom
Using -mabi=apcs-gnu allows Marvell Kirkwood-based boards to boot with the EABI changes introduced in commit f772acf8a584067033eff1e231fcd1fb3a00d3d9. Signed-off-by: Simon Kagstrom simon.kagst...@netinsight.net --- Wolfgang can live with this change to make Kirkwood builds work again: On Wed, 30

Re: [U-Boot] kirkwood (openrd): saveenv will not work with environment in NAND

2009-09-30 Thread Simon Kagstrom
On Tue, 29 Sep 2009 17:16:42 +0200 Dieter Kiermaier dk-arm-li...@gmx.de wrote: Hm, it looks like there is the whole nand system somewhat broken :( Haven't seen it earlier, but: U-Boot 2009.08-00208-g9ef0569-dirty (Sep 29 2009 - 15:42:42) OpenRD_base SoC:   Kirkwood 88F6281_A0 DRAM:  

Re: [U-Boot] kirkwood (openrd): saveenv will not work with environment in NAND

2009-09-30 Thread Simon Kagstrom
On Wed, 30 Sep 2009 09:02:14 +0200 Dieter Kiermaier dk-arm-li...@gmx.de wrote: arm-none-linux-gnueabi-ld: ERROR: Source object /home/dieter/ArtistaNET-III/Software/trunk/SDK/tools/gcc/bin/../lib/gcc/arm-none-linux-gnueabi/4.2.0/libgcc.a(_udivsi3.o) has EABI version 4, but target u-boot has

Re: [U-Boot] kirkwood (openrd): saveenv will not work with environment in NAND

2009-09-30 Thread Simon Kagstrom
-boards, but is there some way to isolate this to kirkwood? // Simon From 29ff02ca77406e820203ad27369e0684aa1a098c Mon Sep 17 00:00:00 2001 From: Simon Kagstrom simon.kagst...@netinsight.net Date: Fri, 4 Sep 2009 11:15:20 +0200 Subject: [PATCH] Make arm926ejs use -mabi=apcs-gnu and private libgcc

Re: [U-Boot] kirkwood (openrd): saveenv will not work with environment in NAND

2009-09-30 Thread Simon Kagstrom
On Wed, 30 Sep 2009 10:15:35 +0200 Dieter Kiermaier dk-arm-li...@gmx.de wrote: is there anywhere a document how to build open source u-boot for sheevaplug which explains all these details? (haven't found some documentation about this) (Wearing my Prafulla hat): I guess this should

Re: [U-Boot] [PATCH] arm:kirkwood: Add hardware watchdog support for Marvell Kirkwood boards

2009-09-29 Thread Simon Kagstrom
On Mon, 28 Sep 2009 19:16:16 -0700 Prafulla Wadaskar prafu...@marvell.com wrote: But do you really need Watchdog support for u-boot? Paranoia really has no limits :-). The main objective for me personally is to have the watchdog on when Linux starts, but if there is a risk (for whatever reason)

Re: [U-Boot] [PATCH] arm:kirkwood: Add hardware watchdog support for Marvell Kirkwood boards

2009-09-29 Thread Simon Kagstrom
On Tue, 29 Sep 2009 06:45:44 -0700 Prafulla Wadaskar prafu...@marvell.com wrote: The main objective for me personally is to have the watchdog on when Linux starts, but if there is a risk (for whatever reason) that U-boot hangs, it would also help there. Its good to have watchdog, it

[U-Boot] [PATCH] arm:kirkwood: Add hardware watchdog support for Marvell Kirkwood boards

2009-09-28 Thread Simon Kagstrom
Initialize by calling kw_watchdog_init() with the number of seconds for the watchdog to timeout. Signed-off-by: Simon Kagstrom simon.kagst...@netinsight.net --- cpu/arm926ejs/kirkwood/timer.c | 29 + include/asm-arm/arch-kirkwood/cpu.h |2 ++ 2 files

Re: [U-Boot] [PATCH] arm:kirkwood: Add hardware watchdog support for Marvell Kirkwood boards

2009-09-28 Thread Simon Kagstrom
On Mon, 28 Sep 2009 07:36:32 -0500 Tom tom@windriver.com wrote: +void hw_watchdog_reset(void) +{ + unsigned long time = CONFIG_SYS_TCLK * watchdog_timeout; diff --git a/include/asm-arm/arch-kirkwood/cpu.h b/include/asm-arm/arch-kirkwood/cpu.h index b3022a3..df49c3f 100644

[U-Boot] [PATCH] ubifs: Correct dereferencing of files-after-symlinks

2009-09-25 Thread Simon Kagstrom
-by: Simon Kagstrom simon.kagst...@netinsight.net --- fs/ubifs/ubifs.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/fs/ubifs/ubifs.c b/fs/ubifs/ubifs.c index b03ed0b..286739c 100644 --- a/fs/ubifs/ubifs.c +++ b/fs/ubifs/ubifs.c @@ -439,7 +439,7 @@ static unsigned long

[U-Boot] [RFC] Detecting coldstart on kirkwood CPUs

2009-09-25 Thread Simon Kagstrom
[PATCH] Reset sysrst count before restarting Signed-off-by: Simon Kagstrom simon.kagst...@netinsight.net --- cpu/arm926ejs/kirkwood/cpu.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/cpu/arm926ejs/kirkwood/cpu.c b/cpu/arm926ejs/kirkwood/cpu.c index bab5faf..d0cdaf6 100644

Re: [U-Boot] [PATCH, RFC] Make arm926ejs use -march=armv5t to avoid problems with EABI

2009-09-24 Thread Simon Kagstrom
On Thu, 24 Sep 2009 14:36:47 +0200 Stefan Roese s...@denx.de wrote: On Monday 14 September 2009 11:02:15 Simon Kagstrom wrote: Make arm926ejs use -march=armv5t to avoid problems with EABI Using -march=armv5t instead of armv5te allows Marvell Kirkwood-based boards to boot

Re: [U-Boot] [PATCH] arm: Correct build with CONFIG_SYS_HUSH_PARSER set

2009-09-24 Thread Simon Kagstrom
Hi Prafulla! Small reminder :-). Perhaps you missed this patch - and I also forgot to add you under To:. It's a simple one-liner to get kirkwood/cpu.c to build when CONFIG_SYS_HUSH_PARSER is set. // Simon On Thu, 17 Sep 2009 14:40:18 +0200 Simon Kagstrom simon.kagst...@netinsight.net wrote

Re: [U-Boot] [PATCH v4] Support for the OpenRD base board

2009-09-21 Thread Simon Kagstrom
The implementation is borrowed from the sheevaplug board and the Marvell 1.1.4 code. Unsupported (or untested) is the SD card, PCIe and SATA. Signed-off-by: Simon Kagstrom simon.kagst...@netinsight.net --- I get run-time problems when building for armv5te for OpenRD base (apparently the same

Re: [U-Boot] [PATCH v4 3/4]: Define ffs/fls for all architectures

2009-09-17 Thread Simon Kagstrom
On Wed, 16 Sep 2009 21:19:03 +0200 Stefan Roese s...@denx.de wrote: include/asm-ppc/bitops.h: @@ -230,6 +231,7 @@ extern __inline__ int ffs(int x) { return __ilog2(x -x) + 1; } +#define ffs So after ffs() is define as an inline function, you define it to nothing. I understand

Re: [U-Boot] [PATCH v4 3/4]: Define ffs/fls for all architectures

2009-09-17 Thread Simon Kagstrom
On Thu, 17 Sep 2009 08:56:08 +0200 Yes, the patch should have contained something like that. Well, we'll have to cook up a fix for this then. Sorry about that again. Simon, could you do this please? Yes, absolutely. I'll try to have it done by this afternoon. And btw: #ifndef

[U-Boot] [PATCH] Correct ffs/fls regression for PowerPC etc

2009-09-17 Thread Simon Kagstrom
itself. Signed-off-by: Simon Kagstrom simon.kagst...@netinsight.net --- I've runtime tested on ARM (OpenRD base) and build-tested on MPC8536DS, where __ilog2_u64 now at least is non-empty. It would be nice if (at least!) some PowerPC people could test the patch. include/asm-arm/bitops.h

[U-Boot] [PATCH] arm: Correct build with CONFIG_SYS_HUSH_PARSER set

2009-09-17 Thread Simon Kagstrom
arm: Correct build with CONFIG_SYS_HUSH_PARSER set FLAG_PARSE_SEMICOLON is not defined without hush.h, so include that. Signed-off-by: Simon Kagstrom simon.kagst...@netinsight.net --- cpu/arm926ejs/kirkwood/cpu.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/cpu

[U-Boot] [PATCH v2] Correct ffs/fls regression for PowerPC etc

2009-09-17 Thread Simon Kagstrom
itself. Signed-off-by: Simon Kagstrom simon.kagst...@netinsight.net --- I've runtime tested on ARM (OpenRD base) and build-tested on MPC8536DS, where __ilog2_u64 now at least is non-empty. It would be nice if (at least!) some PowerPC people could test the patch. ChangeLog: v2 - Make _all_ macros

[U-Boot] [PATCH] ubifs: Add support for looking up directory and relative symlinks

2009-09-15 Thread Simon Kagstrom
ubifs: Add support for looking up directory and relative symlinks This patch adds support for resolving symlinks to directories as well as relative symlinks. Symlinks are now always resolved during file lookup, so the load stage no longer needs to special-case them. Signed-off-by: Simon Kagstrom

[U-Boot] UBIFS LZO decompression failure

2009-09-15 Thread Simon Kagstrom
Hi List! I have a slight problem with UBIFS on the OpenRD base board (an ARM board very similar to sheevaplug). Loading files which have been compressed with LZO by ubifs fails: OpenRD ubi part root; ubifsmount rootfs Creating 1 MTD partitions on nand0: 0x001e-0x2000 :

[U-Boot] [PATCH v3] Support for the OpenRD base board

2009-09-14 Thread Simon Kagstrom
Support for the OpenRD base board The implementation is borrowed from the sheevaplug board and the Marvell 1.1.4 code and likely to be a bit incomplete. Signed-off-by: Simon Kagstrom simon.kagst...@netinsight.net --- The configuration does not include UBIFS support, which still needs

[U-Boot] [PATCH v2] Support for the OpenRD base board

2009-09-11 Thread Simon Kagstrom
Support for the OpenRD base board The implementation is borrowed from the sheevaplug board and the Marvell 1.1.4 code and likely to be a bit incomplete. Signed-off-by: Simon Kagstrom simon.kagst...@netinsight.net --- The configuration does not include UBIFS support, which still needs he

Re: [U-Boot] [PATCH v2] Support for the OpenRD base board

2009-09-11 Thread Simon Kagstrom
Thanks for the comments Prafulla! I'll update the patch according to them, but have some questions: On Fri, 11 Sep 2009 03:43:04 -0700 Prafulla Wadaskar prafu...@marvell.com wrote: +#define CONFIG_ENV_SIZE 0x2 /* 128k */ +#define CONFIG_ENV_ADDR

Re: [U-Boot] [PATCH v2] Support for the OpenRD base board

2009-09-11 Thread Simon Kagstrom
On Fri, 11 Sep 2009 06:33:44 -0700 Prafulla Wadaskar prafu...@marvell.com wrote: +#define CONFIG_ENV_SIZE 0x2 /* 128k */ +#define CONFIG_ENV_ADDR 0xa +#define CONFIG_ENV_OFFSET0xa /* env starts here */ Do you

[U-Boot] [PATCH] Support for the OpenRD base board

2009-09-10 Thread Simon Kagstrom
Support for the OpenRD base board The implementation is borrowed from the sheevaplug board and the Marvell 1.1.4 code and likely to be a bit incomplete. Signed-off-by: Simon Kagstrom simon.kagst...@netinsight.net --- The configuration does not include UBIFS support, which still needs he

Re: [U-Boot] [PATCH] ARM: compiler options cleanup - improve tool chain support

2009-09-07 Thread Simon Kagstrom
On Fri, 04 Sep 2009 22:05:45 +0200 Wolfgang Denk w...@denx.de wrote: nand_bbt: Can't scan flash and build the RAM-based BBT Net: egiga0 88E1116 Initialized on egiga0 Hit any key to stop autoboot: 0 Marvell The 4.1 version just hangs on the NAND printout. I've tested

Re: [U-Boot] [PATCH v4 4/4]: arm: Define test_and_set_bit and test_and_clear bit for ARM

2009-09-07 Thread Simon Kagstrom
Hi Justin! On Fri, 4 Sep 2009 17:27:59 -0400 Justin Waters justin.wat...@timesys.com wrote: I found a slight problem with this section of the patch: On Mon, 2009-08-24 at 03:10 -0400, Simon Kagstrom wrote: diff --git a/include/asm-arm/bitops.h b/include/asm-arm/bitops.h index 854e225

Re: [U-Boot] [PATCH 1/1] at91: Update MEESC board support

2009-09-07 Thread Simon Kagstrom
On Mon, 07 Sep 2009 09:26:17 +0200 Daniel Gorsulowski daniel.gorsulow...@esd.eu wrote: nack this will be done when u-boot will need to use the macb# Just imagine: U-boot boots a Linux kernel from NAND flash. It does NOT need the ethernet interface, so it does NOT initialize ethernet, so the

Re: [U-Boot] [PATCH] ARM: compiler options cleanup - improve tool chain support

2009-09-07 Thread Simon Kagstrom
On Mon, 7 Sep 2009 01:59:13 -0700 Prafulla Wadaskar prafu...@marvell.com wrote: Well, I sent a patch [PATCH, RFC] Make arm926ejs use -march=armv5t to avoid problems with EABI, which corrects this for me, although I'd like some input on if it really makes any sense. I have tested this with

Re: [U-Boot] U-boot environment on Sheevaplug

2009-09-04 Thread Simon Kagstrom
On Thu, 3 Sep 2009 23:20:02 -0700 Prafulla Wadaskar prafu...@marvell.com wrote: I just wanted to check if there has been any progress on the issue below (4-bit ECC support to read for the kernel / U-boot) during the summer. I am restarting work on this issue for u-boot, Does anybody

Re: [U-Boot] [PATCH v3 4/4] tools: mkimage: Add: Kirkwood Boot Image support (kwbimage)

2009-09-04 Thread Simon Kagstrom
Hi Prafulla! I see the complications and understand that it might be difficult to get it running. On Thu, 3 Sep 2009 07:15:48 -0700 Prafulla Wadaskar prafu...@marvell.com wrote: I think it could also be useful to be able to produce just the boot header without the U-boot image. For example

Re: [U-Boot] [PATCH v3 4/4] tools: mkimage: Add: Kirkwood Boot Image support (kwbimage)

2009-09-04 Thread Simon Kagstrom
On Fri, 4 Sep 2009 00:17:57 -0700 Prafulla Wadaskar prafu...@marvell.com wrote: I see the complications and understand that it might be difficult to get it running. So we can keep this complex enhancement for future updates, keeping this patch simpler I agree, let's merge this patch

Re: [U-Boot] [PATCH v3 4/4] tools: mkimage: Add: Kirkwood Boot Image support (kwbimage)

2009-09-04 Thread Simon Kagstrom
On Fri, 04 Sep 2009 10:24:38 +0200 Wolfgang Denk w...@denx.de wrote: Dear Simon Kagstrom, In message 20090904083003.3f7f0...@marrow.netinsight.se you wrote: Understandable. On the other hand, it should be possible to pad the U-boot image to some specific size to keep the size constant

[U-Boot] [PATCH, RFC] Make arm926ejs use -march=armv5t to avoid problems with EABI

2009-09-04 Thread Simon Kagstrom
Make arm926ejs use -march=armv5t to avoid problems with EABI Using -march=armv5t instead of armv5te allows Marvell Kirkwood-based boards to boot with the EABI changes introduced in commit f772acf8a584067033eff1e231fcd1fb3a00d3d9 Signed-off-by: Simon Kagstrom simon.kagst...@netinsight.net

Re: [U-Boot] [PATCH v3 4/4] tools: mkimage: Add: Kirkwood Boot Image support (kwbimage)

2009-09-04 Thread Simon Kagstrom
On Fri, 04 Sep 2009 12:57:57 +0200 Wolfgang Denk w...@denx.de wrote: Dear Simon Kagstrom, In message 20090904103602.7a0ec...@marrow.netinsight.se you wrote: Understandable. On the other hand, it should be possible to pad the U-boot image to some specific size to keep the size

Re: [U-Boot] [PATCH v3 4/4] tools: mkimage: Add: Kirkwood Boot Image support (kwbimage)

2009-09-03 Thread Simon Kagstrom
On Mon, 24 Aug 2009 23:03:59 +0530 Prafulla Wadaskar prafu...@marvell.com wrote: This patch adds type kwbimabe support for new mkimage core For more details refer docs/README.kwbimage +Command syntax: +-- +./tools/mkimage -l kwboot_file + to list the kwb image file

Re: [U-Boot] [PATCH] ARM: compiler options cleanup - improve tool chain support

2009-08-25 Thread Simon Kagstrom
On Mon, 24 Aug 2009 12:01:54 +0200 Wolfgang Denk w...@denx.de wrote: Dear Simon Kagstrom, In message 20090824105935.038bd...@marrow.netinsight.se you wrote: I updated my git tree today and got this patch (among other things). It does not work very well for me, unfortunately. I've tried

Re: [U-Boot] U-boot environment on Sheevaplug

2009-08-25 Thread Simon Kagstrom
Hi again! I just wanted to check if there has been any progress on the issue below (4-bit ECC support to read for the kernel / U-boot) during the summer. On Wed, 8 Jul 2009 15:59:27 +0200 Simon Kagstrom simon.kagst...@netinsight.net wrote: Hi Prafulla (and the list)! I'm wondering a bit how

[U-Boot] [PATCH v4 0/4]: bitops cleanup and fixes

2009-08-24 Thread Simon Kagstrom
Hi yet again! This update to the patch series just cleans up the commit messages to have the comments in the git comments section. // Simon ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

[U-Boot] [PATCH v4 3/4]: Define ffs/fls for all architectures

2009-08-24 Thread Simon Kagstrom
Define ffs/fls for all architectures UBIFS requires fls(), which is not defined for arm (and some other architectures) and this patch adds it. The implementation is taken from Linux and is generic. ffs() is also defined for those that miss it. Signed-off-by: Simon Kagstrom simon.kagst

[U-Boot] [PATCH v4 1/4]: Move __set/clear_bit from ubifs.h to bitops.h

2009-08-24 Thread Simon Kagstrom
-by: Simon Kagstrom simon.kagst...@netinsight.net --- ChangeLog: v2: Unify code style (newline between __set_bit and __clear_bit) v3: Move BIT_MASK and BIT_WORD above the include of asm/bitops.h v4: Move the definition to generic code (Mike Frysinger) fs/ubifs/ubifs.h| 32

[U-Boot] [PATCH v4 4/4]: arm: Define test_and_set_bit and test_and_clear bit for ARM

2009-08-24 Thread Simon Kagstrom
arm: Define test_and_set_bit and test_and_clear bit for ARM Needed for (e.g.) ubifs support to work. Signed-off-by: Simon Kagstrom simon.kagst...@netinsight.net --- include/asm-arm/bitops.h | 28 +--- 1 files changed, 25 insertions(+), 3 deletions(-) diff --git

[U-Boot] [PATCH v4 2/4]: arm: Make arm bitops endianness-independent

2009-08-24 Thread Simon Kagstrom
arm: Make arm bitops endianness-independent Bring over the bitop implementations from the Linux include/asm-generic/bitops/non-atomic.h to provide endianness-independence. Signed-off-by: Simon Kagstrom simon.kagst...@netinsight.net --- ChangeLog: v2: Use generic __set_bit and __clear_bit

Re: [U-Boot] [PATCH] ARM: compiler options cleanup - improve tool chain support

2009-08-24 Thread Simon Kagstrom
Hi, On Fri, 21 Aug 2009 23:12:45 +0200 Wolfgang Denk w...@denx.de wrote: For some time there have been repeated reports about build problems with some ARM (cross) tool chains. Especially issues about (in)compatibility with the tool chain provided runtime support library libgcc.a caused to

Re: [U-Boot] [PATCH] ARM: compiler options cleanup - improve tool chain support

2009-08-24 Thread Simon Kagstrom
On Mon, 24 Aug 2009 12:01:54 +0200 Wolfgang Denk w...@denx.de wrote: I updated my git tree today and got this patch (among other things). It does not work very well for me, unfortunately. I've tried three toolchains (4.3.3, 4.3.4, 4.4.1) built with crosstool-ng, and all of them build an

Re: [U-Boot] [PATCH] ARM: compiler options cleanup - improve tool chain support

2009-08-24 Thread Simon Kagstrom
On Mon, 24 Aug 2009 14:01:20 +0200 Wolfgang Denk w...@denx.de wrote: Please re-run the tests with $ USE_PRIVATE_LIBGCC=yes $ export USE_PRIVATE_LIBGCC $ make mrproper $ make ..._config $ make all and with $ unset USE_PRIVATE_LIBGCC $ make

Re: [U-Boot] [PATCH] ARM: compiler options cleanup - improve tool chain support

2009-08-24 Thread Simon Kagstrom
On Mon, 24 Aug 2009 05:41:59 -0700 Prafulla Wadaskar prafu...@marvell.com wrote: I get following erro only if I execute following build command make mrproper; make sheevaplug_config; make USE_PRIVATE_LIBGCC=no CROSS_COMPILE=armv5tel-redhat-linux-gnueabi- 2 warn.txt And cat warn.txt

Re: [U-Boot] [PATCH v2 1/4]: Move __set/clear_bit from ubifs.h to bitops.h

2009-08-21 Thread Simon Kagstrom
On Thu, 20 Aug 2009 13:44:35 -0400 Mike Frysinger vap...@gentoo.org wrote: On Thursday 20 August 2009 04:52:50 Simon Kagstrom wrote: --- a/include/asm-sh/bitops.h +++ b/include/asm-sh/bitops.h @@ -146,6 +146,11 @@ static inline int ffs (int x) } return r; } + +#define

Re: [U-Boot] [PATCH v2 1/4]: Move __set/clear_bit from ubifs.h to bitops.h

2009-08-21 Thread Simon Kagstrom
On Fri, 21 Aug 2009 02:29:30 -0400 Mike Frysinger vap...@gentoo.org wrote: this is just silly to put into every arch header. why not do in the common code: #ifndef __set_bit # define __set_bit generice_set_bit #endif It's a function (static inline) in some architectures.

[U-Boot] [PATCH v3 0/4]: bitops cleanup and fixes

2009-08-21 Thread Simon Kagstrom
Hi yet again! This patch series is an update to [PATCH 0/4]: bitops cleanup and fixes: http://article.gmane.org/gmane.comp.boot-loaders.u-boot/66184 and contains the patches which were not accepted. The patches are: 0001-Move-__set-clear_bit-from-ubifs.h-to-bitops.h.patch - Code style

[U-Boot] [PATCH v3 1/4]: Move __set/clear_bit from ubifs.h to bitops.h

2009-08-21 Thread Simon Kagstrom
style (newline between __set_bit and __clear_bit) v3: Move BIT_MASK and BIT_WORD above the include of asm/bitops.h v4: Move the definition to generic code (Mike Frysinger) Signed-off-by: Simon Kagstrom simon.kagst...@netinsight.net --- fs/ubifs/ubifs.h| 32

[U-Boot] [PATCH v3 2/4]: arm: Make arm bitops endianness-independent

2009-08-21 Thread Simon Kagstrom
arm: Make arm bitops endianness-independent Bring over the bitop implementations from the Linux include/asm-generic/bitops/non-atomic.h to provide endianness-independence. v2: Use generic __set_bit and __clear_bit for ARM Signed-off-by: Simon Kagstrom simon.kagst...@netinsight.net --- include

[U-Boot] [PATCH v3 3/4]: Define ffs/fls for all architectures

2009-08-21 Thread Simon Kagstrom
/fls) v3: Move the definition to generic code (Mike Frysinger) Signed-off-by: Simon Kagstrom simon.kagst...@netinsight.net --- include/asm-i386/bitops.h |1 + include/asm-m68k/bitops.h |1 + include/asm-nios/bitops.h |1 + include/asm-nios2/bitops.h |1 + include/asm-ppc/bitops.h

[U-Boot] [PATCH v3 4/4]: arm: Define test_and_set_bit and test_and_clear bit for ARM

2009-08-21 Thread Simon Kagstrom
arm: Define test_and_set_bit and test_and_clear bit for ARM Needed for (e.g.) ubifs support to work. Signed-off-by: Simon Kagstrom simon.kagst...@netinsight.net --- include/asm-arm/bitops.h | 28 +--- 1 files changed, 25 insertions(+), 3 deletions(-) diff --git

Re: [U-Boot] [PATCH 1/3]: arm:kirkwood Define kirkwood phy address magic number

2009-08-21 Thread Simon Kagstrom
On Thu, 20 Aug 2009 20:20:08 -0700 Prafulla Wadaskar prafu...@marvell.com wrote: +#define KIRKWOOD_PHY_ADR_REQUEST 0xee define this in header file Basically this is needed in drivers/net/phy/mv88e61xx.c for multi chip support in this case we need to define this in

Re: [U-Boot] [PATCH] net: See to it that sent data is aligned to the ethernet controllers wishes

2009-08-20 Thread Simon Kagstrom
On Wed, 19 Aug 2009 09:55:46 -0700 Ben Warren biggerbadder...@gmail.com wrote: My preference is for the drivers to handle alignment. OK, I'm fine with that. I'd like to withdraw this patch then. I like Dave's idea of creating a buffer (or multiple buffers) in initialization(), then

[U-Boot] [PATCH v4] arm: kirkwood: See to it that sent data is 8-byte aligned

2009-08-20 Thread Simon Kagstrom
instead v4: Correct alignment passed to memalign (should be 8!), allocate buffer at initialization(), use PKTSIZE_ALIGN Signed-off-by: Simon Kagstrom simon.kagst...@netinsight.net --- drivers/net/kirkwood_egiga.c | 21 + drivers/net/kirkwood_egiga.h |1 + 2 files

Re: [U-Boot] [PATCH] arm:kirkwood Wait for the link to come up on kirkwood network init

2009-08-20 Thread Simon Kagstrom
On Wed, 19 Aug 2009 10:08:02 -0700 Ben Warren biggerbadder...@gmail.com wrote: - u16 phyadr; - miiphy_read(dev-name, 0xEE, 0xEE, phyadr); - if (!miiphy_link(dev-name, phyadr)) { - printf(%s: No link on %s\n, __FUNCTION__, dev-name); Please use __func__ instead. It's

[U-Boot] [PATCH 3/3] [repost]: arm: kirkwood: See to it that sent data is 8-byte aligned

2009-08-20 Thread Simon Kagstrom
instead v4: Correct alignment passed to memalign (should be 8!), allocate buffer at initialization(), use PKTSIZE_ALIGN Signed-off-by: Simon Kagstrom simon.kagst...@netinsight.net --- drivers/net/kirkwood_egiga.c | 21 + drivers/net/kirkwood_egiga.h |1 + 2 files

[U-Boot] [PATCH 2/3]: Wait for the link to come up on kirkwood network init

2009-08-20 Thread Simon Kagstrom
printout Signed-off-by: Simon Kagstrom simon.kagst...@netinsight.net --- drivers/net/kirkwood_egiga.c | 20 ++-- 1 files changed, 14 insertions(+), 6 deletions(-) diff --git a/drivers/net/kirkwood_egiga.c b/drivers/net/kirkwood_egiga.c index 065e335..9f36633 100644

[U-Boot] [PATCH 0/3]: arm:Kirkwood network driver fixes

2009-08-20 Thread Simon Kagstrom
Hi! Three patches to fix various network driver issues on kirkwood. Patch 3 is a repost of the patch sent earlier today which is rebased on top of the other two. // Simon ___ U-Boot mailing list U-Boot@lists.denx.de

[U-Boot] [PATCH 1/3]: arm:kirkwood Define kirkwood phy address magic number

2009-08-20 Thread Simon Kagstrom
Signed-off-by: Simon Kagstrom simon.kagst...@netinsight.net --- drivers/net/kirkwood_egiga.c | 14 ++ 1 files changed, 10 insertions(+), 4 deletions(-) diff --git a/drivers/net/kirkwood_egiga.c b/drivers/net/kirkwood_egiga.c index f31fefc..065e335 100644 --- a/drivers/net

Re: [U-Boot] [PATCH 2/4]: Define ffs/fls for all architectures

2009-08-20 Thread Simon Kagstrom
On Thu, 20 Aug 2009 01:11:09 +0200 Jean-Christophe PLAGNIOL-VILLARD plagn...@jcrosoft.com wrote: On 11:13 Tue 18 Aug , Simon Kagstrom wrote: Define ffs/fls for all architectures UBIFS requires fls(), which is not defined for arm (and some other architectures) and this patch adds

[U-Boot] [PATCH v2 0/4]: bitops cleanup and fixes

2009-08-20 Thread Simon Kagstrom
Hi again! This patch series is an update to [PATCH 0/4]: bitops cleanup and fixes: http://article.gmane.org/gmane.comp.boot-loaders.u-boot/66184 and contains the patches which were not accepted. The patches are: 0001-Move-__set-clear_bit-from-ubifs.h-to-bitops.h.patch - Code style

[U-Boot] [PATCH v2 1/4]: Move __set/clear_bit from ubifs.h to bitops.h

2009-08-20 Thread Simon Kagstrom
) v3: Move BIT_MASK and BIT_WORD above the include of asm/bitops.h Signed-off-by: Simon Kagstrom simon.kagst...@netinsight.net --- fs/ubifs/ubifs.h | 32 include/asm-avr32/bitops.h |4 include/asm-m68k/bitops.h |4 include/asm-nios

[U-Boot] [PATCH v2 2/4]: Make arm bitops endianness-independent

2009-08-20 Thread Simon Kagstrom
Bring over the bitop implementations from the Linux include/asm-generic/bitops/non-atomic.h to provide endianness-independence. Signed-off-by: Simon Kagstrom simon.kagst...@netinsight.net --- include/asm-arm/bitops.h | 45 +++-- 1 files changed, 27

[U-Boot] [PATCH v2 3/4]: Define ffs/fls for all architectures

2009-08-20 Thread Simon Kagstrom
UBIFS requires fls(), which is not defined for arm (and some other architectures) and this patch adds it. The implementation is taken from Linux and is generic. ffs() is also defined for those that miss it. v2: Unify code style (empty line between ffs/fls) Signed-off-by: Simon Kagstrom

  1   2   >