Re: [U-Boot] [PATCH] arm, arm-kirkwood: disable l2c before linux boot

2012-01-02 Thread Michael Walle
Am Mittwoch 21 Dezember 2011, 00:35:46 schrieb Michael Walle: The decompressor expects the L2 cache to be disabled. This fixes booting some kernels, which have CONFIG_ARM_PATCH_PHYS_VIRT enabled. Ping :) -- Michael ___ U-Boot mailing list U-Boot

Re: [U-Boot] [PATCH] kirkwood_spi: fix setting of irq mask

2012-01-02 Thread Michael Walle
Am Sonntag 18 Dezember 2011, 02:57:01 schrieb Prafulla Wadaskar: -Original Message- From: Michael Walle [mailto:mich...@walle.cc] Sent: 17 December 2011 09:31 To: u-boot@lists.denx.de Cc: Albert ARIBAUD; Prafulla Wadaskar; Wolfgang Denk Subject: Re: [PATCH] kirkwood_spi: fix

[U-Boot] [PATCH] lsxl: add support for lschlv2 and lsxhl

2012-01-02 Thread Michael Walle
This patchset adds support for both the Linkstation Live (LS-CHLv2) and Linkstation Pro (LS-XHL) by Buffalo. Signed-off-by: Michael Walle mich...@walle.cc Cc: Prafulla Wadaskar prafu...@marvell.com --- MAINTAINERS |4 + board/Marvell/lsxl/Makefile | 50

Re: [U-Boot] [PATCH] lsxl: add support for lschlv2 and lsxhl

2012-01-02 Thread Michael Walle
directory? I was just guessing. It is a Marvell SoC and marvell SoC boards of other vendors are in the Marvell/ directory, too. But i'm also happy with Buffalo/ (or buffalo/?). +Michael Walle mich...@walle.cc + + lsxlARM926EJS (Kirkwood SoC) You add two boards, so please also

Re: [U-Boot] [PATCH] lsxl: add support for lschlv2 and lsxhl

2012-01-02 Thread Michael Walle
On Tue, January 3, 2012 00:55, Wolfgang Denk wrote: +#define CONFIG_ETHADDR 02:00:01:00:00:00 ... +#define CONFIG_IPADDR 192.168.11.150 +#define CONFIG_SERVERIP 192.168.11.1 +#define CONFIG_NETMASK 255.255.255.0 NAK. We do not allow such static

Re: [U-Boot] [PATCH] lsxl: add support for lschlv2 and lsxhl

2012-01-03 Thread Michael Walle
Hi Wolfgang, On Tue, January 3, 2012 09:09, Wolfgang Denk wrote: NAK. We do not allow such static network configurations. i've already guessed that ;) you may remember our lengthy discussions about the board which don't have a dedicated NVRAM for the ethernet address. Well, this is such a

Re: [U-Boot] [PATCH] lsxl: add support for lschlv2 and lsxhl

2012-01-03 Thread Michael Walle
Am Dienstag 03 Januar 2012, 15:46:09 schrieb Wolfgang Denk: Dear Michael, In message b96abc7f27f132b4b00377ddd9ca632d.squir...@ssl.serverraum.org you wrote: The linkstations don't have a (populated) serial port. There is no way to access an unmodified board other than using the

Re: [U-Boot] [PATCH] lsxl: add support for lschlv2 and lsxhl

2012-01-08 Thread Michael Walle
Hi Wolfgang, Am Dienstag 03 Januar 2012, 00:55:41 schrieb Wolfgang Denk: +#define CONFIG_ETHADDR 02:00:01:00:00:00 ... +#define CONFIG_IPADDR 192.168.11.150 +#define CONFIG_SERVERIP192.168.11.1 +#define CONFIG_NETMASK 255.255.255.0 NAK. We

Re: [U-Boot] [PATCH] lsxl: add support for lschlv2 and lsxhl

2012-01-08 Thread Michael Walle
Am Dienstag 03 Januar 2012, 15:46:09 schrieb Wolfgang Denk: Dear Michael, In message b96abc7f27f132b4b00377ddd9ca632d.squir...@ssl.serverraum.org you wrote: The linkstations don't have a (populated) serial port. There is no way to access an unmodified board other than using the

[U-Boot] [PATCH] cmd_source: introduce run_script()

2012-01-10 Thread Michael Walle
Move actual script execution into a new function run_script(), which then can be called from other modules. Signed-off-by: Michael Walle mich...@walle.cc Cc: Wolfgang Denk w...@denx.de --- common/cmd_source.c | 71 -- include/common.h|1

Re: [U-Boot] [PATCH] cmd_source: introduce run_script()

2012-01-11 Thread Michael Walle
On Wed, January 11, 2012 00:40, Mike Frysinger wrote: On Tuesday 10 January 2012 18:04:19 Michael Walle wrote: --- a/common/cmd_source.c +++ b/common/cmd_source.c +/* + * Run a series of commands, separated by '\n'. + * Beware, the contents of script may be modified while it is parsed

Re: [U-Boot] [PATCH] cmd_source: introduce run_script()

2012-01-12 Thread Michael Walle
Am Mittwoch 11 Januar 2012, 00:40:04 schrieb Mike Frysinger: although i wonder if it'd be possible to merge this into existing run_commands2() ... do we allow newlines now in variables that get run ? mh if the hush parser is enabled this seems to be true. eg. source() and run_commands2() use

Re: [U-Boot] [PATCH] cmd_source: introduce run_script()

2012-01-12 Thread Michael Walle
Am Donnerstag 12 Januar 2012, 22:51:48 schrieb Michael Walle: Am Mittwoch 11 Januar 2012, 00:40:04 schrieb Mike Frysinger: although i wonder if it'd be possible to merge this into existing run_commands2() ... do we allow newlines now in variables that get run ? mh if the hush parser

[U-Boot] [PATCH v2] arm, arm-kirkwood: disable l2c before linux boot

2012-01-13 Thread Michael Walle
The decompressor expects the L2 cache to be disabled. This fixes booting some kernels, which have CONFIG_ARM_PATCH_PHYS_VIRT enabled. Signed-off-by: Michael Walle mich...@walle.cc Cc: Albert ARIBAUD albert.u.b...@aribaud.net Cc: Prafulla Wadaskar prafu...@marvell.com --- This is a repost, because

Re: [U-Boot] [PATCH v2] arm, arm-kirkwood: disable l2c before linux boot

2012-01-13 Thread Michael Walle
[Sorry can't answer to the original message, because it was blocked by spam filter] Also, I'm missing something: you introduce two functions, for enabling and disabling the cache, yet the code uses only the one for disabling. So what enabled it in the first place? The L2C is enabled in

[U-Boot] [PATCH v2] main: unify command parsing functions

2012-01-13 Thread Michael Walle
Introduce source_commands() which incorporates run_command2() and parts of source(). All command script are now treated the same, that is newlines are accepted within a command script and variable. Signed-off-by: Michael Walle mich...@walle.cc Cc: Wolfgang Denk w...@denx.de Cc: Mike Frysinger

[U-Boot] [PATCH v2] main: unify command parsing functions

2012-01-20 Thread Michael Walle
Introduce source_commands() which incorporates run_command2() and parts of source(). All command script are now treated the same, that is newlines are accepted within a command script and variable. Signed-off-by: Michael Walle mich...@walle.cc Cc: Wolfgang Denk w...@denx.de Cc: Mike Frysinger

Re: [U-Boot] [PATCH v2] main: unify command parsing functions

2012-01-20 Thread Michael Walle
Am Freitag 20 Januar 2012, 23:46:51 schrieb Michael Walle: Introduce source_commands() which incorporates run_command2() and parts of source(). All command script are now treated the same, that is newlines are accepted within a command script and variable. Signed-off-by: Michael Walle

Re: [U-Boot] [PATCH v4 4/9] Stop using builtin_run_command()

2012-01-21 Thread Michael Walle
Hi Simon, Am Samstag 14 Januar 2012, 07:45:52 schrieb Simon Glass: diff --git a/common/cmd_source.c b/common/cmd_source.c index 481241c..32fff5c 100644 --- a/common/cmd_source.c +++ b/common/cmd_source.c @@ -179,7 +179,7 @@ source (ulong addr, const char *fit_uname)

Re: [U-Boot] [PATCH v2] arm, arm-kirkwood: disable l2c before linux boot

2012-01-31 Thread Michael Walle
Am Freitag 13 Januar 2012, 23:59:08 schrieb Michael Walle: [Sorry can't answer to the original message, because it was blocked by spam filter] Also, I'm missing something: you introduce two functions, for enabling and disabling the cache, yet the code uses only the one for disabling. So

[U-Boot] [PATCH v3] arm, arm-kirkwood: disable l2c before linux boot

2012-01-31 Thread Michael Walle
The decompressor expects the L2 cache to be disabled. This fixes booting some kernels, which have CONFIG_ARM_PATCH_PHYS_VIRT enabled. Signed-off-by: Michael Walle mich...@walle.cc Cc: Albert ARIBAUD albert.u.b...@aribaud.net Cc: Prafulla Wadaskar prafu...@marvell.com Cc: Wolfgang Denk w

[U-Boot] [PATCH v4] arm, arm-kirkwood: disable l2c before linux boot

2012-02-01 Thread Michael Walle
The decompressor expects the L2 cache to be disabled. This fixes booting some kernels, which have CONFIG_ARM_PATCH_PHYS_VIRT enabled. Signed-off-by: Michael Walle mich...@walle.cc Acked-by: Prafulla Wadaskar prafu...@marvell.com Cc: Albert ARIBAUD albert.u.b...@aribaud.net Cc: Prafulla Wadaskar

Re: [U-Boot] [PATCH v4 4/9] Stop using builtin_run_command()

2012-02-15 Thread Michael Walle
Am Mittwoch 15 Februar 2012, 07:05:24 schrieb Simon Glass: Unfortunately I think that this approach is a little broken. We are running a command sequence from getenv(), but while processing it, we might update the environment variable. Worse, we actually overwrite the newlines in the variable

Re: [U-Boot] [PATCH 1/2] Add run_command_list() to run a list of commands

2012-02-15 Thread Michael Walle
Am Mittwoch 15 Februar 2012, 23:23:19 schrieb Simon Glass: Hi Michael, On Wed, Feb 15, 2012 at 11:38 AM, Michael Walle mich...@walle.cc wrote: Am Mittwoch 15 Februar 2012, 07:07:09 schrieb Simon Glass: This new function runs a list of commands separated by semicolon. We move this out

Re: [U-Boot] bootm does not work if netconsole is enabled

2013-06-11 Thread Michael Walle
Am 2013-04-10 18:13, schrieb Joe Hershberger: Hi Michael, On Wed, Apr 10, 2013 at 5:07 AM, Michael Walle mich...@walle.cc wrote: On Wed, April 10, 2013 03:51, Joe Hershberger wrote: Hi Michael, I just tested this on my Zynq target and it worked. However, you make a good point

Re: [U-Boot] bootm does not work if netconsole is enabled

2013-06-20 Thread Michael Walle
Am Mittwoch, 10. April 2013, 18:13:57 schrieb Joe Hershberger: disabling the network console before control is handed over to an operating system sounds reasonable. If i understand you correctly, the network will only be halted once the bootloader starts an operating system. Then what

[U-Boot] bootm does not work if netconsole is enabled

2013-04-09 Thread Michael Walle
Hi Joe, Hi Tom, If i have the netconsole enabled i cannot boot linux using the bootm command. This bug exists at least in 2013.01.01 and 2013.04-rc2 :/ Here is the output of the serial console of a successful startup: ## Booting kernel from Legacy Image at 0010 ... Image Name:

Re: [U-Boot] bootm does not work if netconsole is enabled

2013-04-10 Thread Michael Walle
On Wed, April 10, 2013 03:51, Joe Hershberger wrote: Hi Michael, I just tested this on my Zynq target and it worked. However, you make a good point that it is possible for there to be more traces after the eth_halt call. I can't imagine the stack would like that in all situations (since

Re: [U-Boot] bootm does not work if netconsole is enabled

2013-04-10 Thread Michael Walle
Hi Joe, Am Mittwoch 10 April 2013, 18:13:57 schrieb Joe Hershberger: If i understand you correctly, the network will only be halted once the bootloader starts an operating system. Then what do you think about making either the nc_send_packet() or nc_putc()/nc_puts() function a noop when

Re: [U-Boot] [PATCH v9 0/4] Kirkwood: add lschlv2 and lsxhl board support

2012-06-21 Thread Michael Walle
Hi all, Am Mittwoch 06 Juni 2012, 13:26:40 schrieb Prafulla Wadaskar: u-boot-marvell.git is cloned from u-boot-arm.git, and I always sync with this before any task. And just to keep it clean for pull requests I would not like to pull any other repository in it. Copying Albert on this, who

[U-Boot] [PATCH] api: net: fix length check in eth_receive()

2012-06-22 Thread Michael Walle
FreeBSD's ubldr. Without this patch it will just stop receiving packets if the NIC receives more than PKTBUFSRX too large packets. Signed-off-by: Michael Walle mich...@walle.cc Cc: Joe Hershberger joe.hershber...@gmail.com Cc: Rafal Jaworowski r...@semihalf.com Cc: Piotr Kruszynski p...@semihalf.com

Re: [U-Boot] [PATCH] api: net: fix length check in eth_receive()

2012-06-25 Thread Michael Walle
[removed Piotr Kruszynski from CC because mail address does not exist anymore] Hi Joe, Am Montag 25 Juni 2012, 22:25:56 schrieb Joe Hershberger: Hi Michael, On Fri, Jun 22, 2012 at 4:24 PM, Michael Walle mich...@walle.cc wrote: If the requested length is too small to hold the received

Re: [U-Boot] [PATCH v9 0/4] Kirkwood: add lschlv2 and lsxhl board support

2012-06-25 Thread Michael Walle
Hi Prafulla, u-boot-marvell.git is cloned from u-boot-arm.git, and I always sync with this before any task. And just to keep it clean for pull requests I would not like to pull any other repository in it. i just got informed by albert, that he updated his tree. So hopefully the patchset can

Re: [U-Boot] [PATCH v8 2/4] net: use common rand()/srand() functions

2012-07-05 Thread Michael Walle
Am Donnerstag 05 Juli 2012, 20:18:12 schrieb Kim Phillips: On Mon, 4 Jun 2012 15:10:55 -0500 Joe Hershberger joe.hershber...@gmail.com wrote: On Fri, Jun 1, 2012 at 3:39 PM, Michael Walle mich...@walle.cc wrote: Replace rand() with the functions from lib/. The link-local network code

Re: [U-Boot] [PATCH] net: make net_rand.h inclusion depend on BOOTP_RANDOM_DELAY

2012-07-06 Thread Michael Walle
41768 327732 50034 ./u-boot In file included from bootp.c:15:0: net_rand.h: In function 'srand_mac': net_rand.h:40:2: warning: implicit declaration of function 'srand' [-Wimplicit-function-declaration] adding this dependency fixes it. Cc: Michael Walle mich...@walle.cc Cc: Joe Hershberger

Re: [U-Boot] [PATCH v9 2/4] net: use common rand()/srand() functions

2012-07-08 Thread Michael Walle
it independent from calls to srand() in other modules. Signed-off-by: Michael Walle mich...@walle.cc Acked-by: Joe Hershberger joe.hershber...@ni.com --- include/common.h |4 ++- lib/Makefile |4 ++- net/Makefile |2 - net/link_local.c |7 +++-- net

Re: [U-Boot] [STATUS] v2012.07-rc1 is out - release date July 23

2012-07-21 Thread Michael Walle
Hi, Am Dienstag 10 Juli 2012, 09:31:42 schrieb Wolfgang Denk: Hi everybody, this is to let you know that the v2012.07-rc1 prerelease is out. Please help testing, so we can fix the remaining issues before the release, which I decided to shift by a week, i. e. the new schedule for the

[U-Boot] Invalid Netconsole source MAC address [was: Re: [STATUS] v2012.07-rc1 is out - release date July 23]

2012-07-21 Thread Michael Walle
Hi, Am Dienstag 10 Juli 2012, 09:31:42 schrieb Wolfgang Denk: Hi everybody, this is to let you know that the v2012.07-rc1 prerelease is out. Please help testing, so we can fix the remaining issues before the release, which I decided to shift by a week, i. e. the new schedule

Re: [U-Boot] Invalid Netconsole source MAC address [was: Re: [STATUS] v2012.07-rc1 is out - release date July 23]

2012-07-23 Thread Michael Walle
Hi Joe, Am Montag 23 Juli 2012, 21:30:28 schrieb Joe Hershberger: On Sat, Jul 21, 2012 at 1:04 PM, Michael Walle mich...@walle.cc wrote: Mh i guess NetLoop isn't called and thus NetOurEther is never initialized. Similar issue like d7310c7e63ca9ffd42527dc9735cb505cbe908b7. Initializing

Re: [U-Boot] [PATCH] net: Make sure the ethaddr is updated in net_init()

2012-07-24 Thread Michael Walle
() is called (especially by nc_start()). Signed-off-by: Joe Hershberger joe.hershber...@ni.com Reported-by: Michael Walle mich...@walle.cc --- net/net.c |3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/net/net.c b/net/net.c index 9de7d92..e8ff066 100644 --- a/net/net.c

[U-Boot] [PATCH] lsxl: support power switch

2012-07-30 Thread Michael Walle
. Additionally, this patch fixes the board function set_led(LED_OFF). Signed-off-by: Michael Walle mich...@walle.cc Cc: Prafulla Wadaskar prafu...@marvell.com --- board/buffalo/lsxl/lsxl.c | 22 +- 1 files changed, 21 insertions(+), 1 deletions(-) diff --git a/board/buffalo/lsxl/lsxl.c

Re: [U-Boot] [PATCH] lsxl: support power switch

2012-07-31 Thread Michael Walle
On Tue, July 31, 2012 07:59, Prafulla Wadaskar wrote: -Original Message- From: Michael Walle [mailto:mich...@walle.cc] Sent: 31 July 2012 02:17 To: u-boot@lists.denx.de Cc: Michael Walle; Prafulla Wadaskar Subject: [PATCH] lsxl: support power switch This patch restores

Re: [U-Boot] [PATCH] lsxl: support power switch

2012-07-31 Thread Michael Walle
Am Dienstag 31 Juli 2012, 13:12:19 schrieb Prafulla Wadaskar: -Original Message- From: Michael Walle [mailto:mich...@walle.cc] Sent: 31 July 2012 16:22 To: Prafulla Wadaskar Cc: Michael Walle; u-boot@lists.denx.de Subject: RE: [PATCH] lsxl: support power switch On Tue

[U-Boot] [PATCH v4 1/3] lib: add rand() function

2012-05-10 Thread Michael Walle
It's a PRNG using the simple and fast xorshift method. Signed-off-by: Michael Walle mich...@walle.cc --- include/common.h |4 lib/Makefile |1 + lib/rand.c | 43 +++ 3 files changed, 48 insertions(+), 0 deletions(-) create mode

[U-Boot] [PATCH v4 0/3] net: helper functions

2012-05-10 Thread Michael Walle
This patchset is a split-off from my patch series Kirkwood: add lschlv2 and lsxhl board support. Changes: v4: - typo fixes (thanks Mike) - seed all 46bits of the generated ethernet address (suggested by Mike) v3, v2: [contained only lsxhl board changes] Michael Walle (3): lib: add rand

[U-Boot] [PATCH v4 2/3] net: add helper to generate random mac address

2012-05-10 Thread Michael Walle
Add new function eth_random_enetaddr() to generate a locally administered ethernet address. Signed-off-by: Michael Walle mich...@walle.cc --- include/net.h | 15 +++ net/eth.c | 20 2 files changed, 35 insertions(+), 0 deletions(-) diff --git a/include

[U-Boot] [PATCH v4 3/3] net: add eth_setenv_enetaddr_by_index()

2012-05-10 Thread Michael Walle
Signed-off-by: Michael Walle mich...@walle.cc --- include/net.h | 12 net/eth.c |8 2 files changed, 20 insertions(+), 0 deletions(-) diff --git a/include/net.h b/include/net.h index 0da5679..eec846b 100644 --- a/include/net.h +++ b/include/net.h @@ -119,6 +119,18

[U-Boot] [PATCH v4] Kirkwood: add lschlv2 and lsxhl board support

2012-05-10 Thread Michael Walle
This patch adds support for both the Linkstation Live (LS-CHLv2) and Linkstation Pro (LS-XHL) by Buffalo. Signed-off-by: Michael Walle mich...@walle.cc Cc: Prafulla Wadaskar prafu...@marvell.com Cc: Wolfgang Denk w...@denx.de --- This patch depends on PATCH v4 0/3] net: helper functions

Re: [U-Boot] [PATCH v4 0/3] net: helper functions

2012-05-11 Thread Michael Walle
Am Donnerstag 10 Mai 2012, 19:32:11 schrieb Michael Walle: This patchset is a split-off from my patch series Kirkwood: add lschlv2 and lsxhl board support. Hi Joe, will you ack/nak these patch series and in case of an ack, Prafulla will fetch these into his tree? Or how is it supposed to work

Re: [U-Boot] [PATCH v4 0/3] net: helper functions

2012-05-11 Thread Michael Walle
Am Freitag 11 Mai 2012, 21:18:50 schrieb Wolfgang Denk: Dear Michael Walle, In message 1336671134-16342-1-git-send-email-mich...@walle.cc you wrote: This patchset is a split-off from my patch series Kirkwood: add lschlv2 and lsxhl board support. Changes: v4: - typo fixes

Re: [U-Boot] [PATCH v4 1/3] lib: add rand() function

2012-05-11 Thread Michael Walle
Am Freitag 11 Mai 2012, 21:20:02 schrieb Wolfgang Denk: Dear Michael Walle, In message 1336671134-16342-2-git-send-email-mich...@walle.cc you wrote: It's a PRNG using the simple and fast xorshift method. ... +static unsigned int y = 2463534242U; Hm... can we introduce at least

Re: [U-Boot] [PATCH v4 0/3] net: helper functions

2012-05-11 Thread Michael Walle
Am Freitag 11 Mai 2012, 22:43:16 schrieb Wolfgang Denk: Keep these patches together, please. The responsible custodians can still ACK individual patches of the series. The fact that only a single board ever needed these functions makes me wonder if these are really of any general use.

Re: [U-Boot] [PATCH v4 3/3] net: add eth_setenv_enetaddr_by_index()

2012-05-11 Thread Michael Walle
Am Freitag 11 Mai 2012, 21:25:27 schrieb Wolfgang Denk: Dear Michael Walle, In message 1336671134-16342-4-git-send-email-mich...@walle.cc you wrote: Signed-off-by: Michael Walle mich...@walle.cc How many boards will be using this code? Hopefully more boars will use this function

Re: [U-Boot] [PATCH v4 1/3] lib: add rand() function

2012-05-11 Thread Michael Walle
please keep the ML on Cc: - thanks. sorry wrong key In message 201205112249.27871.mich...@walle.cc you wrote: +static unsigned int y = 2463534242U; Hm... can we introduce at least a little entropy somewhere? Mh? A user is supposed to seed via srand(). Then why

Re: [U-Boot] [PATCH v4 0/3] net: helper functions

2012-05-11 Thread Michael Walle
Am Freitag 11 Mai 2012, 23:14:25 schrieb Wolfgang Denk: Dear Michael Walle, In message 201205112254.13896.mich...@walle.cc you wrote: What about the rand function? I guess that should be two compile time options - CONFIG_RAND - CONFIG_RANDOM_HWADDR Any better names? Please

Re: [U-Boot] [PATCH v4 1/3] lib: add rand() function

2012-05-11 Thread Michael Walle
Am Freitag 11 Mai 2012, 23:29:47 schrieb Wolfgang Denk: Dear Michael Walle, In message 201205112320.15462.mich...@walle.cc you wrote: This is inconsequent. Either we assume that the user will seed srand(), then y should not be initialized at all, so it goes to the BSS segment

Re: [U-Boot] [PATCH v4 0/3] net: helper functions

2012-05-11 Thread Michael Walle
Am Freitag 11 Mai 2012, 23:30:59 schrieb Wolfgang Denk: Well, you patch did not change this code. And I have to admit that I doubt the increased code size would be worth such a change, at this place. Ok, can we agree on keeping the rand function in lib/ but using just one macro

Re: [U-Boot] [PATCH v4 3/3] net: add eth_setenv_enetaddr_by_index()

2012-05-11 Thread Michael Walle
Am Freitag 11 Mai 2012, 23:16:02 schrieb Wolfgang Denk: Dear Michael Walle, In message 201205112301.50311.mich...@walle.cc you wrote: Eventually this should be made configurable? Given the above, i would keep it non-configurable if youre fine with that. Only if the code size

[U-Boot] [PATCH v5 0/5] Kirkwood: add lschlv2 and lsxhl board support

2012-05-11 Thread Michael Walle
mode - add some convenience scripts - small cleanups Michael Walle (5): lib: add rand() function net: add helper to generate random mac address net: fix potential compiler warning net: add eth_setenv_enetaddr_by_index() Kirkwood: add lschlv2 and lsxhl board support MAINTAINERS

[U-Boot] [PATCH v5 1/5] lib: add rand() function

2012-05-11 Thread Michael Walle
It's a PRNG using the simple and fast xorshift method. Signed-off-by: Michael Walle mich...@walle.cc Cc: Wolfgang Denk w...@denx.de --- include/common.h |6 ++ lib/Makefile |1 + lib/rand.c | 43 +++ 3 files changed, 50 insertions

[U-Boot] [PATCH v5 4/5] net: add eth_setenv_enetaddr_by_index()

2012-05-11 Thread Michael Walle
Signed-off-by: Michael Walle mich...@walle.cc Cc: Joe Hershberger joe.hershber...@gmail.com --- include/net.h | 16 net/eth.c | 15 +++ 2 files changed, 31 insertions(+), 0 deletions(-) diff --git a/include/net.h b/include/net.h index f6aeba2..bdc3da6 100644

[U-Boot] [PATCH v5 3/5] net: fix potential compiler warning

2012-05-11 Thread Michael Walle
Future compiler versions may generate a too many arguments for functions warning. Signed-off-by: Michael Walle mich...@walle.cc Cc: Joe Hershberger joe.hershber...@gmail.com --- net/eth.c | 14 -- 1 files changed, 12 insertions(+), 2 deletions(-) diff --git a/net/eth.c b/net/eth.c

[U-Boot] [PATCH v5 2/5] net: add helper to generate random mac address

2012-05-11 Thread Michael Walle
Add new function eth_random_enetaddr() to generate a locally administered ethernet address. Signed-off-by: Michael Walle mich...@walle.cc Cc: Joe Hershberger joe.hershber...@gmail.com --- include/net.h | 17 + net/eth.c | 22 ++ 2 files changed, 39

[U-Boot] [PATCH v5 5/5] Kirkwood: add lschlv2 and lsxhl board support

2012-05-11 Thread Michael Walle
This patch adds support for both the Linkstation Live (LS-CHLv2) and Linkstation Pro (LS-XHL) by Buffalo. Signed-off-by: Michael Walle mich...@walle.cc Cc: Prafulla Wadaskar prafu...@marvell.com --- MAINTAINERS |5 + board/buffalo/lsxl/Makefile | 50

Re: [U-Boot] [PATCH v5 4/5] net: add eth_setenv_enetaddr_by_index()

2012-05-11 Thread Michael Walle
Am Samstag 12 Mai 2012, 00:50:48 schrieb Michael Walle: Signed-off-by: Michael Walle mich...@walle.cc Cc: Joe Hershberger joe.hershber...@gmail.com --- include/net.h | 16 net/eth.c | 15 +++ 2 files changed, 31 insertions(+), 0 deletions(-) diff

Re: [U-Boot] [PATCH v5 4/5] net: add eth_setenv_enetaddr_by_index()

2012-05-17 Thread Michael Walle
Hi Joe, Am Mittwoch 16 Mai 2012, 02:56:39 schrieb Joe Hershberger: Hi Michael, On Fri, May 11, 2012 at 5:50 PM, Michael Walle mich...@walle.cc wrote: Signed-off-by: Michael Walle mich...@walle.cc Cc: Joe Hershberger joe.hershber...@gmail.com --- include/net.h | 16

Re: [U-Boot] [PATCH v4 0/3] net: helper functions

2012-05-21 Thread Michael Walle
Am Freitag 11 Mai 2012, 18:51:09 schrieb Prafulla Wadaskar: I will check on this patch in this week end since I am travelling. Hi Prafulla, did you find the time to review the arm/board specific patches in this series (http://patchwork.ozlabs.org/patch/158627/)? -- Michael

Re: [U-Boot] [PATCH v5 5/5] Kirkwood: add lschlv2 and lsxhl board support

2012-05-22 Thread Michael Walle
[sorry my first mail didn't have 'Kirkwood' in the subject] This patch adds support for both the Linkstation Live (LS-CHLv2) and Linkstation Pro (LS-XHL) by Buffalo. Am Freitag 11 Mai 2012, 18:51:09 schrieb Prafulla Wadaskar: I will check on this patch in this week end since I am travelling.

Re: [U-Boot] [PATCH v5 4/5] net: add eth_setenv_enetaddr_by_index()

2012-05-22 Thread Michael Walle
Am Mittwoch 16 Mai 2012, 02:56:39 schrieb Joe Hershberger: You should synchronize with Rob Herring who is also trying to add this eth_setenv_enetaddr_by_index() function. http://patchwork.ozlabs.org/patch/152590/ Hi Rob, Joe mentioned you have the same patch as me here:

Re: [U-Boot] [PATCH v5 4/5] net: add eth_setenv_enetaddr_by_index()

2012-05-22 Thread Michael Walle
Am Dienstag 22 Mai 2012, 23:41:55 schrieb Rob Herring: On 05/22/2012 04:18 PM, Michael Walle wrote: Am Mittwoch 16 Mai 2012, 02:56:39 schrieb Joe Hershberger: You should synchronize with Rob Herring who is also trying to add this eth_setenv_enetaddr_by_index() function. http

Re: [U-Boot] [PATCH v5 1/5] lib: add rand() function

2012-05-23 Thread Michael Walle
Am Samstag 12 Mai 2012, 00:50:45 schrieb Michael Walle: It's a PRNG using the simple and fast xorshift method. Signed-off-by: Michael Walle mich...@walle.cc Cc: Wolfgang Denk w...@denx.de Hi Wolfgang, can you ack this patch? In that case i could add the acked-by line in the next version

Re: [U-Boot] [PATCH v5 5/5] Kirkwood: add lschlv2 and lsxhl board support

2012-05-24 Thread Michael Walle
Hi Prafulla, thanks for the review. On Thu, May 24, 2012 09:24, Prafulla Wadaskar wrote: -Original Message- From: Michael Walle [mailto:mich...@walle.cc] Sent: 12 May 2012 04:21 To: u-boot@lists.denx.de Cc: Prafulla Wadaskar; Wolfgang Denk; Mike Frysinger; Joe Hershberger

Re: [U-Boot] [PATCH v5 1/5] lib: add rand() function

2012-05-24 Thread Michael Walle
On Thu, May 24, 2012 06:32, Prafulla Wadaskar wrote: Hi Wolfgang, can you ack this patch? In that case i could add the acked-by line in the next version of this patch series to ease the picking by Prafulla. All your previous comments should be addressed :) --- include/common.h |6

Re: [U-Boot] [PATCH v5 4/5] net: add eth_setenv_enetaddr_by_index()

2012-05-25 Thread Michael Walle
Am Freitag 25 Mai 2012, 20:50:09 schrieb Joe Hershberger: [..snip..] That way you aren't adding a function that noone else uses and you don't need a silly guard around it. Hi Joe, thanks for the review. I think i'll drop the dynamic ethernet variable name support entirely. Two reasons: - it

Re: [U-Boot] [PATCH v5 5/5] Kirkwood: add lschlv2 and lsxhl board support

2012-05-25 Thread Michael Walle
Am Donnerstag 24 Mai 2012, 09:24:40 schrieb Prafulla Wadaskar: +/* + * Version number information + */ +#if defined(CONFIG_LSCHLV2) +#define CONFIG_IDENT_STRING LS-CHLv2 +#define CONFIG_SYS_KWD_CONFIG $(SRCTREE)/$(CONFIG_BOARDDIR)/kwbimage- lschl.cfg +#define CONFIG_MACH_TYPE 3006

[U-Boot] [PATCH v6 2/3] net: add helper to generate random mac address

2012-05-25 Thread Michael Walle
Add new function eth_random_enetaddr() to generate a locally administered ethernet address. Signed-off-by: Michael Walle mich...@walle.cc Acked-by: Joe Hershberger joe.hershber...@gmail.com --- include/net.h | 17 + net/eth.c | 22 ++ 2 files changed

[U-Boot] [PATCH v6 0/3] Kirkwood: add lschlv2 and lsxhl board support

2012-05-25 Thread Michael Walle
- don't define values for feature macros - use tab for vertical alignment - remove static network configuration, instead introduce a rescue mode - add some convenience scripts - small cleanups Michael Walle (3): lib: add rand() function net: add helper to generate random mac address

[U-Boot] [PATCH v6 3/3] Kirkwood: add lschlv2 and lsxhl board support

2012-05-25 Thread Michael Walle
This patch adds support for both the Linkstation Live (LS-CHLv2) and Linkstation Pro (LS-XHL) by Buffalo. Signed-off-by: Michael Walle mich...@walle.cc Cc: Prafulla Wadaskar prafu...@marvell.com --- MAINTAINERS |5 + board/buffalo/lsxl/Makefile | 44

[U-Boot] [PATCH] Kirkwood: declare mpp config static and const

2012-05-25 Thread Michael Walle
Change the prototype of kirkwood_mpp_conf() from void kirkwood_mpp_conf(u32 *mpp_list) to void kirkwood_mpp_conf(const u32 *mpp_list) Now we can declare the kwmpp_config static and const where possible. Signed-off-by: Michael Walle mich...@walle.cc Cc: Prafulla Wadaskar prafu...@marvell.com

Re: [U-Boot] [PATCH] Kirkwood: declare mpp config static and const

2012-05-28 Thread Michael Walle
Hi Luka, Am Sonntag 27 Mai 2012, 23:20:29 schrieb Luka Perkov: NACK. At least in this version. Please double check all the kirkwood boards (taken from boards.cfg): ups sorry, actually my tree wasn't up to date :( pogo_e02 is missing, too. diff --git a/board/raidsonic/ib62x0/ib62x0.c

Re: [U-Boot] [PATCH v3 02/21] net: Move MAC-seeded rand out of bootp.c

2012-05-28 Thread Michael Walle
Am Mittwoch 23 Mai 2012, 19:57:58 schrieb Joe Hershberger: t_ran -- Mit freundlichen Grüßen, Michael Walle In den Rohrwiesen 1a 66440 Blieskastel mich...@walle.cc --- Don't cry because it is over, smile because it happened. ___ U-Boot mailing

Re: [U-Boot] [PATCH v3 02/21] net: Move MAC-seeded rand out of bootp.c

2012-05-28 Thread Michael Walle
[sorry for my first mail.. wasn't intented to be send] Sorry for being too late on this. Am Mittwoch 23 Mai 2012, 19:57:58 schrieb Joe Hershberger: Make the MAC-seeded random number generator available to /net in general. MAC-seeded rand will be needed by link-local as well, so give it an

Re: [U-Boot] [PATCH 1/3] kirkwood: add kirkwood_mpp_save/restore functions

2012-05-28 Thread Michael Walle
Am Donnerstag 24 Mai 2012, 10:26:44 schrieb Prafulla Wadaskar: + +void kirkwood_mpp_save(void) This should be void kirkwood_mpp_save(unsigned int *mpp_ctrl, int len) +{ + int i; + + for (i = 0; i MPP_NR_REGS; i++) + mpp_regs[i] = readl(MPP_CTRL(i)); +} +

Re: [U-Boot] [PATCH 1/3] kirkwood: add kirkwood_mpp_save/restore functions

2012-05-29 Thread Michael Walle
Am Dienstag 29 Mai 2012, 14:42:08 schrieb Prafulla Wadaskar: And const will be a problem since mpp_ctrl will be array that will be dynamically modified. But not within kirkwood_mpp_restore(), right? So an mpp_ctrl array would be implicitly casted from u32* to const u32*. so we would have the

Re: [U-Boot] [PATCH v3 02/21] net: Move MAC-seeded rand out of bootp.c

2012-05-29 Thread Michael Walle
Hi Joe, Am Dienstag 29 Mai 2012, 23:08:23 schrieb Joe Hershberger: Hi Michael, On Tue, May 29, 2012 at 1:23 PM, Michael Walle mich...@walle.cc wrote: Hi Joe, Am Dienstag 29 Mai 2012, 20:08:26 schrieb Joe Hershberger: If you can verify that the functionality

Re: [U-Boot] [PATCH v3 02/21] net: Move MAC-seeded rand out of bootp.c

2012-05-29 Thread Michael Walle
Hi Joe, Am Mittwoch 30 Mai 2012, 00:40:18 schrieb Joe Hershberger: Ah now i get it. But which other code may run and seed the NG with the timer only, while we are in the link local netloop? Shouldn't it be safe to first call srand(mac+timer) and then rand() multiple times? No other code

[U-Boot] [PATCH v7 3/4] net: add helper to generate random mac address

2012-05-31 Thread Michael Walle
Add new function eth_random_enetaddr() to generate a locally administered ethernet address. Signed-off-by: Michael Walle mich...@walle.cc Acked-by: Joe Hershberger joe.hershber...@gmail.com --- include/net.h | 17 + net/eth.c | 22 ++ 2 files changed

[U-Boot] [PATCH v7 1/4] lib: add rand() function

2012-05-31 Thread Michael Walle
It's a PRNG using the simple and fast xorshift method. Signed-off-by: Michael Walle mich...@walle.cc Cc: Wolfgang Denk w...@denx.de --- include/common.h |8 lib/Makefile |1 + lib/rand.c | 48 3 files changed, 57

[U-Boot] [PATCH v7 2/4] net: use common rand()/srand() functions

2012-05-31 Thread Michael Walle
Replace rand() with the functions from lib/. The link-local network code stores its own seed, derived from the MAC address. Thus making it independent from calls to srand() in other modules. Signed-off-by: Michael Walle mich...@walle.cc Cc: Joe Hershberger joe.hershber...@ni.com --- include

[U-Boot] [PATCH v7 0/4] Kirkwood: add lschlv2 and lsxhl board support

2012-05-31 Thread Michael Walle
directory instead of Marvell - add both boards to MAINTAINERS - don't define values for feature macros - use tab for vertical alignment - remove static network configuration, instead introduce a rescue mode - add some convenience scripts - small cleanups Michael Walle (4): lib: add rand

[U-Boot] [PATCH v7 4/4] Kirkwood: add lschlv2 and lsxhl board support

2012-05-31 Thread Michael Walle
This patch adds support for both the Linkstation Live (LS-CHLv2) and Linkstation Pro (LS-XHL) by Buffalo. Signed-off-by: Michael Walle mich...@walle.cc Cc: Prafulla Wadaskar prafu...@marvell.com --- MAINTAINERS |5 + board/buffalo/lsxl/Makefile | 44

Re: [U-Boot] [PATCH v7 2/4] net: use common rand()/srand() functions

2012-05-31 Thread Michael Walle
Hi Joe, Am Donnerstag 31 Mai 2012, 21:04:03 schrieb Joe Hershberger: On Thu, May 31, 2012 at 1:12 PM, Michael Walle mich...@walle.cc wrote: Replace rand() with the functions from lib/. The link-local network code stores its own seed, derived from the MAC address. Thus making

Re: [U-Boot] [PATCH v7 4/4] Kirkwood: add lschlv2 and lsxhl board support

2012-06-01 Thread Michael Walle
Hi Luka, On Fri, June 1, 2012 01:07, Luka Perkov wrote: +#ifdef CONFIG_RESET_PHY_R +/* Configure and enable MV88E1118 PHY */ +void reset_phy(void) +{ +u16 devadr; +char *name = egiga1; + +if (miiphy_set_current_dev(name)) +return; + +/* command to read PHY

[U-Boot] [PATCH v8 3/4] net: add helper to generate random mac address

2012-06-01 Thread Michael Walle
Add new function eth_random_enetaddr() to generate a locally administered ethernet address. Signed-off-by: Michael Walle mich...@walle.cc Acked-by: Joe Hershberger joe.hershber...@gmail.com --- include/net.h | 17 + net/eth.c | 22 ++ 2 files changed

[U-Boot] [PATCH v8 0/4] Kirkwood: add lschlv2 and lsxhl board support

2012-06-01 Thread Michael Walle
: - add to buffalo vendor directory instead of Marvell - add both boards to MAINTAINERS - don't define values for feature macros - use tab for vertical alignment - remove static network configuration, instead introduce a rescue mode - add some convenience scripts - small cleanups Michael Walle (4

[U-Boot] [PATCH v8 1/4] lib: add rand() function

2012-06-01 Thread Michael Walle
It's a PRNG using the simple and fast xorshift method. Signed-off-by: Michael Walle mich...@walle.cc Cc: Wolfgang Denk w...@denx.de --- include/common.h |8 lib/Makefile |1 + lib/rand.c | 48 3 files changed, 57

[U-Boot] [PATCH v8 4/4] Kirkwood: add lschlv2 and lsxhl board support

2012-06-01 Thread Michael Walle
This patch adds support for both the Linkstation Live (LS-CHLv2) and Linkstation Pro (LS-XHL) by Buffalo. Signed-off-by: Michael Walle mich...@walle.cc Cc: Prafulla Wadaskar prafu...@marvell.com --- MAINTAINERS |5 + board/buffalo/lsxl/Makefile | 44

[U-Boot] [PATCH v8 2/4] net: use common rand()/srand() functions

2012-06-01 Thread Michael Walle
Replace rand() with the functions from lib/. The link-local network code stores its own seed, derived from the MAC address. Thus making it independent from calls to srand() in other modules. Signed-off-by: Michael Walle mich...@walle.cc Cc: Joe Hershberger joe.hershber...@ni.com --- include

Re: [U-Boot] [PATCH v8] kirkwood: add NAS62x0 board support

2012-06-01 Thread Michael Walle
Hi Luka, Am Dienstag 17 April 2012, 21:22:17 schrieb Luka Perkov: +/* + * Machine type + */ +#define CONFIG_MACH_TYPE MACH_TYPE_NAS6210 btw i guess this will break in about half a year. because: - uboot follows mach-types.h from the kernel - the kernel will only keep mach-types for

[U-Boot] [PATCH v9 0/4] Kirkwood: add lschlv2 and lsxhl board support

2012-06-05 Thread Michael Walle
mode - add some convenience scripts - small cleanups Michael Walle (4): lib: add rand() function net: use common rand()/srand() functions net: add helper to generate random mac address Kirkwood: add lschlv2 and lsxhl board support MAINTAINERS |5 + board

  1   2   3   4   5   6   7   8   9   10   >