Re: [U-Boot] [PATCH] OMAP3: Fix timer handling to 1ms and CONFIG_SYS_HZ to 1000.

2009-04-02 Thread Ladislav Michl
On Thu, Apr 02, 2009 at 12:43:53AM +0200, Wolfgang Denk wrote: Dear Jean-Christophe PLAGNIOL-VILLARD, In message 20090331202939.gi24...@game.jcrosoft.org you wrote: On 11:19 Tue 17 Mar , Dirk Behme wrote: Fix OMAP3 timer handling to 1ms tick and CONFIG_SYS_HZ to 1000. Clean up

[U-Boot] [PATCH v2] OMAP3: Fix timer handling to 1ms and CONFIG_SYS_HZ to 1000.

2009-04-02 Thread Ladislav Michl
From: Manikandan Pillai mani.pil...@ti.com Signed-off-by: Dirk Behme dirk.be...@googlemail.com Signed-off-by: Manikandan Pillai mani.pil...@ti.com Signed-off-by: Ladislav Michl la...@linux-mips.org --- Changes from Dirk's patch which is replaced by this [2]: * Fix conflicts after commit

Re: [U-Boot] core ticks/timer code

2009-04-02 Thread Ladislav Michl
Dirk, On Tue, Mar 31, 2009 at 05:55:13PM +0200, Dirk Behme wrote: ... I'd like that we split general ticks/timer code clean up and bug fixes. I'd like that we implement the changes proposed by Mike and Jean-Christophe independent and don't mix them with other fixes for broken timer code

Re: [U-Boot] [PATCH] OMAP3: Fix timer handling to 1ms and CONFIG_SYS_HZ to 1000.

2009-04-20 Thread Ladislav Michl
On Thu, Apr 02, 2009 at 12:43:53AM +0200, Wolfgang Denk wrote: In message 20090331202939.gi24...@game.jcrosoft.org you wrote: On 11:19 Tue 17 Mar , Dirk Behme wrote: Fix OMAP3 timer handling to 1ms tick and CONFIG_SYS_HZ to 1000. Clean up macros and comments. Signed-off-by:

[U-Boot] [PATCH] arm925t: Fix CONFIG_SYS_HZ to 1000

2009-04-20 Thread Ladislav Michl
Let CONFIG_SYS_HZ to have value of 1000 effectively fixing all users of get_timer. Signed-off-by: Ladislav Michl la...@linux-mips.org diff --git a/cpu/arm925t/interrupts.c b/cpu/arm925t/interrupts.c index e5c77f7..a22be66 100644 --- a/cpu/arm925t/interrupts.c +++ b/cpu/arm925t/interrupts.c

Re: [U-Boot] [PATCH v4] Separate mtdparts command from jffs2

2009-04-20 Thread Ladislav Michl
the jffs2 commands making it possible to only select mtdparts when no JFFS2 support is needed. One more leftover... Let nboot command know about partitions even if JFFS2 support is not enabled. Signed-off-by: Ladislav Michl la...@linux-mips.org diff --git a/common/cmd_nand.c b/common/cmd_nand.c index

[U-Boot] [PATCH 2/4] NetStar: remove debug junk leaked into eeprom utility

2009-04-20 Thread Ladislav Michl
It is a shame such a crap ever leaked into official repository. I'm sorry about that. Signed-off-by: Ladislav Michl la...@linux-mips.org --- board/netstar/eeprom.c |8 +-- board/netstar/eeprom_start.S | 190 +++--- 2 files changed, 14 insertions

[U-Boot] [PATCH 3/4] NetStar: fix eeprom utility indentation and spelling

2009-04-20 Thread Ladislav Michl
Signed-off-by: Ladislav Michl la...@linux-mips.org --- board/netstar/eeprom.c | 17 - 1 files changed, 8 insertions(+), 9 deletions(-) diff --git a/board/netstar/eeprom.c b/board/netstar/eeprom.c index 5783bed..5ee89e1 100644 --- a/board/netstar/eeprom.c +++ b/board/netstar

[U-Boot] [PATCH 4/4] NetStar: disable CONFIG_CMD_JFFS2

2009-04-20 Thread Ladislav Michl
Now, when CONFIG_CMD_MTDPARTS exists as a separate option it is no longer necessary to enable CONFIG_CMD_JFFS2. Signed-off-by: Ladislav Michl la...@linux-mips.org --- include/configs/netstar.h |3 --- 1 files changed, 0 insertions(+), 3 deletions(-) diff --git a/include/configs/netstar.h b

[U-Boot] [PATCH v2] arm925t: Fix CONFIG_SYS_HZ to 1000

2009-04-21 Thread Ladislav Michl
Let CONFIG_SYS_HZ to have value of 1000 effectively fixing all users of get_timer. Changes since original version: * Set PTV=2 (divisor 8) for boards using 12MHz timer clock source to improve timer resolution. Signed-off-by: Ladislav Michl la...@linux-mips.org diff --git a/cpu/arm925t

Re: [U-Boot] [PATCH] arm925t: Fix CONFIG_SYS_HZ to 1000

2009-04-21 Thread Ladislav Michl
On Tue, Apr 21, 2009 at 05:38:21PM +0200, Dirk Behme wrote: Ladislav Michl wrote: On Mon, Apr 20, 2009 at 08:27:34PM +0200, Dirk Behme wrote: Just to get an idea of the math: CONFIG_SYS_CLK_FREQ is 1200 (12MHz)? This is divided by 256, so TIMER_CLOCK is 46875Hz? A free running 32-bit

Re: [U-Boot] [ANNOUNCE] Kconfig support

2009-04-21 Thread Ladislav Michl
On Tue, Apr 21, 2009 at 10:08:38PM +0200, Wolfgang Denk wrote: Dear Sascha, In message 20090421182102.gz21...@pengutronix.de you wrote: This is not quite correct. What I consider important is an evo- lutionary path - this may include bigger changes and reorganizations, but I

Re: [U-Boot] [ANNOUNCE] Kconfig support

2009-04-22 Thread Ladislav Michl
On Wed, Apr 22, 2009 at 01:12:07AM +0200, Wolfgang Denk wrote: One of these boards is the Auerswald Innokom, a board Robert once ported. We probably still have it somewhere @Pengutronix, but nobody in the world has any interest in running a top of tree U-Boot on it. Still it is in the tree

Re: [U-Boot] [ANNOUNCE] Kconfig support

2009-04-22 Thread Ladislav Michl
Hello Heiko! On Wed, Apr 22, 2009 at 10:53:46AM +0200, Heiko Schocher wrote: Hello Ladislav Ladislav Michl wrote: May I? Last time I looked at mainline U-Boot about year ago, sending few patches and it was working for me. Since then some changes (only minor ones from design pespective

Re: [U-Boot] [ANNOUNCE] Kconfig support

2009-04-23 Thread Ladislav Michl
On Wed, Apr 22, 2009 at 10:26:12AM -0400, Jerry Van Baren wrote: Wolfgang Denk wrote: Dear Wolfgang, Ladislav Michl wrote: That's perfectly understandable. I'm just trying to point out, that design flaws can be fixed incrementaly, without breaking anything attitude does not reflect reality

Re: [U-Boot] [PATCH v2] arm925t: Fix CONFIG_SYS_HZ to 1000

2009-04-23 Thread Ladislav Michl
On Thu, Apr 23, 2009 at 09:34:21AM +0200, Jean-Christophe PLAGNIOL-VILLARD wrote: On 01:12 Wed 22 Apr , Ladislav Michl wrote: Let CONFIG_SYS_HZ to have value of 1000 effectively fixing all users of get_timer. Changes since original version: * Set PTV=2 (divisor 8) for boards using

Re: [U-Boot] U-Boot Timer Qualification

2009-04-28 Thread Ladislav Michl
On Mon, Apr 27, 2009 at 03:28:28PM -0400, Mike Frysinger wrote: if you want your points to have any meaning/usage, then they have to be on the mailing list. irc is useless for people trying to search for background information to a problem. I agree here, but I already gave up. And if the

[U-Boot] [PATCH] Make nboot skip bad blocks

2009-03-13 Thread Ladislav Michl
0x1040 ... ... CHANGELOG * nboot: skip bad block when loading image from NAND Signed-off-by: Ladislav Michl la...@linux-mips.org diff --git a/common/cmd_nand.c b/common/cmd_nand.c index 11f9096..f915fb6 100644 --- a/common/cmd_nand.c +++ b/common/cmd_nand.c @@ -511,7 +511,7 @@ static int

[U-Boot] [PATCH] Update board NetStar

2009-03-13 Thread Ladislav Michl
Hi, following patch brings board NetStar back into shape. CHANGELOG * Make NAND work again (broken after new NAND code merge) * Move conditional compilation to Makefile * Enable I2C driver and RTC clock Signed-off-by: Ladislav Michl la...@linux-mips.org diff --git a/board/netstar/Makefile b

Re: [U-Boot] [PATCH] Make nboot skip bad blocks

2009-03-16 Thread Ladislav Michl
On Sun, Mar 15, 2009 at 05:59:28PM -0400, Mike Frysinger wrote: On Friday 13 March 2009 09:38:19 Ladislav Michl wrote: nboot command currently does not skip bad blocks and gives read error when loading image stored over bad block. With patch applied, nboot works as expected: iirc, some

Re: [U-Boot] [PATCH] Update board NetStar

2009-03-16 Thread Ladislav Michl
On Fri, Mar 13, 2009 at 02:31:39PM +0100, Ladislav Michl wrote: following patch brings board NetStar back into shape. After some private conversation with Jean-Christophe this patch splits into following serie. Many thanks to Jean-Christophe for suggestions

[U-Boot] [PATCH 1/5] NetStar: config reindentation

2009-03-16 Thread Ladislav Michl
Fix indentation broken by symbol renames. Sort driver related definitons. Signed-off-by: Ladislav Michl la...@linux-mips.org diff --git a/include/configs/netstar.h b/include/configs/netstar.h index 2c90265..0b578e8 100644 --- a/include/configs/netstar.h +++ b/include/configs/netstar.h @@ -64,12

[U-Boot] [PATCH 2/5] NetStar: Fix NAND

2009-03-16 Thread Ladislav Michl
Fix NAND support broken during new NAND code merge. Move those few lines of code to board/netstar/netstar.c Signed-off-by: Ladislav Michl la...@linux-mips.org diff --git a/board/netstar/Makefile b/board/netstar/Makefile index 8d911b8..0d163fd 100644 --- a/board/netstar/Makefile +++ b/board

[U-Boot] [PATCH 3/5] NetStar: use generic flash driver

2009-03-16 Thread Ladislav Michl
Use generic flash driver. Signed-off-by: Ladislav Michl la...@linux-mips.org --- a/include/configs/netstar.h 2009-03-16 15:27:19.0 +0100 +++ b/include/configs/netstar.h 2009-03-16 15:28:18.0 +0100 @@ -59,16 +59,6 @@ #define PHYS_SDRAM_1_SIZE (64 * 1024 * 1024) #define

[U-Boot] [PATCH 4/5] NetStar: add RTC support

2009-03-16 Thread Ladislav Michl
Add RTC support. Signed-off-by: Ladislav Michl la...@linux-mips.org --- a/include/configs/netstar.h 2009-03-16 15:42:01.0 +0100 +++ b/include/configs/netstar.h 2009-03-16 15:43:33.0 +0100 @@ -110,6 +110,14 @@ #define CONFIG_SYS_NAND_BASE 0x0400 + (2 23) #define

[U-Boot] [PATCH 5/5] NetStar: update crcit utility

2009-03-16 Thread Ladislav Michl
Make crc32 function to match its prototype. Use more meaningful identifiers. Signed-off-by: Ladislav Michl la...@linux-mips.org diff --git a/board/netstar/crcit.c b/board/netstar/crcit.c index ce98e20..e0cea9b 100644 --- a/board/netstar/crcit.c +++ b/board/netstar/crcit.c @@ -31,11 +31,11

Re: [U-Boot] [PATCH 2/5] NetStar: Fix NAND

2009-03-17 Thread Ladislav Michl
On Tue, Mar 17, 2009 at 12:17:30PM -0500, Scott Wood wrote: On Mon, Mar 16, 2009 at 11:28:24PM +0100, Ladislav Michl wrote: Fix NAND support broken during new NAND code merge. Move those few lines of code to board/netstar/netstar.c What was the breakage? Blocks being considered bad during

Re: [U-Boot] [PATCH v4] Separate mtdparts command from jffs2

2009-03-23 Thread Ladislav Michl
for that purpose, but that can be fixed later (tm). Signed-off-by: Ladislav Michl la...@linux-mips.org diff --git a/common/cmd_mtdparts.c b/common/cmd_mtdparts.c index c8bf2c6..3d437c0 100644 --- a/common/cmd_mtdparts.c +++ b/common/cmd_mtdparts.c @@ -84,13 +84,10 @@ * */ -/* - * JFFS2/CRAMFS support

[U-Boot] [PATCH] Remove nowhere used symbol CONFIG_SYS_CLKS_IN_HZ

2009-03-23 Thread Ladislav Michl
Compile tested using 'MAKEALL arm' shown few errors, but none related to this patch. I'll address them in separate patches. Signed-off-by: Ladislav Michl la...@linux-mips.org diff --git a/include/configs/ADNPESC1.h b/include/configs/ADNPESC1.h index 0977bee..b8afc17 100644 --- a/include/configs

[U-Boot] [PATCH 3/3] OMAP: use {read, write}l to access timer registers

2009-03-24 Thread Ladislav Michl
Signed-off-by: Ladislav Michl la...@linux-mips.org --- cpu/arm925t/interrupts.c | 21 + 1 files changed, 9 insertions(+), 12 deletions(-) diff --git a/cpu/arm925t/interrupts.c b/cpu/arm925t/interrupts.c index 361047b..e5c77f7 100644 --- a/cpu/arm925t/interrupts.c +++ b/cpu

Re: [U-Boot] [PATCH 3/5] NetStar: use generic flash driver

2009-03-24 Thread Ladislav Michl
Dear Wolfgang, On Wed, Mar 18, 2009 at 08:44:20PM +0100, Wolfgang Denk wrote: In message 20090316222932.gd1...@localhost.localdomain you wrote: Use generic flash driver. Signed-off-by: Ladislav Michl la...@linux-mips.org Does not apply to me: I'm sorry for that. Updated version

[U-Boot] [PATCH] NetStar: make crcit utility more readable.

2009-12-30 Thread Ladislav Michl
Signed-off-by: Ladislav Michl la...@linux-mips.org --- board/netstar/crcit.c |9 + 1 files changed, 5 insertions(+), 4 deletions(-) diff --git a/board/netstar/crcit.c b/board/netstar/crcit.c index e0cea9b..0eef41a 100644 --- a/board/netstar/crcit.c +++ b/board/netstar/crcit.c

[U-Boot] [PATCH] NetStar: Remove debug junk leaked into eeprom utility

2009-12-30 Thread Ladislav Michl
Signed-off-by: Ladislav Michl la...@linux-mips.org --- board/netstar/eeprom.c |8 +-- board/netstar/eeprom_start.S | 190 +++--- 2 files changed, 14 insertions(+), 184 deletions(-) rewrite board/netstar/eeprom_start.S (94%) diff --git a/board

[U-Boot] [PATCH] NetStar: Disable CONFIG_CMD_JFFS2

2009-12-30 Thread Ladislav Michl
Signed-off-by: Ladislav Michl la...@linux-mips.org --- include/configs/netstar.h |3 --- 1 files changed, 0 insertions(+), 3 deletions(-) diff --git a/include/configs/netstar.h b/include/configs/netstar.h index 7bddf24..e37a378 100644 --- a/include/configs/netstar.h +++ b/include/configs

Re: [U-Boot] [PATCH] NetStar: Remove debug junk leaked into eeprom utility

2010-01-11 Thread Ladislav Michl
Dear Sandeep, NetStar is OMAP based board and you are listed as OMAP maintainer, so one week before merge window closes I'd like to ask whenever there are any issues with patches I sent, which I should eventually resolve to get them merged. Thank you, ladis

Re: [U-Boot] u-boot on ARM PIC?

2010-01-13 Thread Ladislav Michl
On Wed, Jan 13, 2010 at 11:37:19AM +0100, Peter Korsgaard wrote: Hi, I'll soon start an ARM based project (at91sam9g45), and am looking into booting options. I normally use PPC, so I'm not really familiar with the finer details of U-Boot on ARM. I would like to use a failsafe setup with 2x

Re: [U-Boot] [PATCH] NetStar: Remove debug junk leaked into eeprom utility

2010-01-18 Thread Ladislav Michl
Dear u-boot custodians, 18 days since patches submission passed and there are less that 14 hrs till merge window closes. So this is yet another reminder for those pending patches. This board must be cursed, as I got silence only as reaction to every single patch posted. Interestingly enough,

Re: [U-Boot] [STATUS] Patch status update

2010-01-26 Thread Ladislav Michl
Hi Wolfgang, On Mon, Jan 25, 2010 at 11:44:48PM +0100, Wolfgang Denk wrote: 6043 12/30 Ladislav Michl [U-Boot] [PATCH] NetStar: Remove debug junk leaked into eeprom utility http://article.gmane.org/gmane.comp.boot-loaders.u-boot/73165 6044 12/30 Ladislav Michl [U

Re: [U-Boot] [STATUS] Patch status update

2010-01-27 Thread Ladislav Michl
On Tue, Jan 26, 2010 at 11:52:23PM +0100, Wolfgang Denk wrote: Dear Sandeep, In message 0554bef07d437848af01b9c9b5f0bc5d985ee...@dlee01.ent.ti.com you wrote: Sandeep, could you please comment? I have pushed these updates. Thank you. Thanks. Please send a pull request to Tom

[U-Boot] CFI numblocks incorrect?

2010-01-27 Thread Ladislav Michl
it seems CFI flash support is somehow broken. mtd-eraseregions is filled as bellow: erase size blocks correct blocks 400001 01 200001 02 800000 01 00010f 0f 'blocks' is actual numblocks field value while 'correct blocks' is

[U-Boot] [PATCH 0/5] NetStar updates

2010-01-27 Thread Ladislav Michl
Dear Sandeep, following patches are intended to bring NetStar board to useable state. Similar fixes for linker errors will be needed for VoiceBlue board - I'll send them later, of course if you do not have any objections against this solution. Best regards, ladis

[U-Boot] [PATCH 1/5] NetStar: eeprom - undefined reference to `memset'

2010-01-27 Thread Ladislav Michl
From: Ladislav Michl la...@linux-mips.org Defining partially initialized struct eth_device on stack means gcc has to zero out it, and some gcc versions optimize this with an implicit call to memset. Move definition to data section to avoid that (it has also nice side effect that we need

[U-Boot] [PATCH 2/5] NetStar: eeprom - be less verbose

2010-01-27 Thread Ladislav Michl
From: Ladislav Michl la...@linux-mips.org Use shorter yet descriptive messages, replace printf() with puts() where appropriate. This saves few bytes. Signed-off-by: Ladislav Michl la...@linux-mips.org --- board/netstar/eeprom.c | 27 +-- 1 files changed, 13 insertions

[U-Boot] [PATCH 3/5] NetStar: eeprom - fix linker error

2010-01-27 Thread Ladislav Michl
From: Ladislav Michl la...@linux-mips.org linking eeprom with libgeneric.a is not really needed and causes following error: ../../lib_generic/libgeneric.a(string.o): In function `strcmp': lib_generic/string.c:152: multiple definition of `strcmp' ../../examples/standalone/libstubs.a(stubs.o

[U-Boot] [PATCH 4/5] NetStar: fix default environment

2010-01-27 Thread Ladislav Michl
From: Ladislav Michl la...@linux-mips.org Correct switching partitions after upgrade and make it more readable. Signed-off-by: Ladislav Michl la...@linux-mips.org --- include/configs/netstar.h | 12 ++-- 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/include/configs

[U-Boot] [PATCH 5/5] NetStar: make mtdparts default ready for recent kernels

2010-01-27 Thread Ladislav Michl
From: Ladislav Michl la...@linux-mips.org Recent kernels are using generic NAND and NOR drivers. Change default mtdparts to reflect it. Signed-off-by: Ladislav Michl la...@linux-mips.org --- include/configs/netstar.h |7 +++ 1 files changed, 3 insertions(+), 4 deletions(-) diff --git

Re: [U-Boot] How to use multiple env variables.

2010-01-28 Thread Ladislav Michl
On Thu, Jan 28, 2010 at 12:30:54PM +0530, Shashi Kumar M.S wrote: Is there any option for multiple env variables so that when i upgrade the kernel and rootfile system if not working properly so that i can fall back to the previous kernel and ramdisk considering i have a sufficiently big nand

Re: [U-Boot] How to use multiple env variables.

2010-01-28 Thread Ladislav Michl
On Thu, Jan 28, 2010 at 09:19:37PM +0530, Shashi Kumar M.S wrote: Where should this variable swapos should be. Both 'ospart' and 'swapos' are ordinary u-boot environment variables. 1. should this swapos be in one of the separate partition of the nand flash so that can be set by the kernel.

[U-Boot] [PATCH] ns16550: kick watchdog while waiting for a character

2010-02-01 Thread Ladislav Michl
From: Ladislav Michl la...@linux-mips.org ns16550 busyloops waiting for incoming byte causing watchdog to reboot while waiting for a key press. A call to WATCHDOG_RESET in NS16550_getc loop fixes it. Signed-off-by: Ladislav Michl la...@linux-mips.org --- diff --git a/drivers/serial/ns16550.c b

Re: [U-Boot] [PATCH] net: Use 0.5 sec timeout in miiphy_reset() instead of counting loop

2010-02-02 Thread Ladislav Michl
On Tue, Feb 02, 2010 at 01:43:48PM +0100, Stefan Roese wrote: This patch fixes a problem I've notived on a buggy PPC4xx system. This system has problems with the PHY MDIO communication and seemed to be stuck/crashed in miiphy_reset(). But degugging revealed, that the CPU didn't crash, but only

Re: [U-Boot] [PATCH 0/5] NetStar updates

2010-02-08 Thread Ladislav Michl
On Mon, Feb 08, 2010 at 10:55:04AM -0600, Paulraj, Sandeep wrote: Patches 1, 4 and 5 returned checkpatch errors. I used scripts/checkpatch.pl from linux-2.6.33-rc5 and for patch 5 it reports patch has no obvious style problems and is ready for submission. For others two it reports lines over 80

Re: [U-Boot] [PATCH 0/5] NetStar updates

2010-02-08 Thread Ladislav Michl
On Mon, Feb 08, 2010 at 01:21:42PM -0600, Paulraj, Sandeep wrote: I fixed all the checkpatch errors myself and pushed the entire series. Thank you for your effort, I really appreciate it. However, the dark side is that now it is pretty unobvious, what actually changed and that's why incremental

[U-Boot] [PATCH] netstar.h: do not exceed 80 columns

2010-02-09 Thread Ladislav Michl
From: Ladislav Michl la...@linux-mips.org Limit line length to 80 characters mostly by removing obvious and sometimes misleading comments. Fix indentation, too. Signed-off-by: Ladislav Michl la...@linux-mips.org --- netstar.h | 65

[U-Boot] [PATCH] VoiceBlue: fix linker errors

2010-02-09 Thread Ladislav Michl
From: Ladislav Michl la...@linux-mips.org linking eeprom with libgeneric.a is not really needed and causes following error: ../../lib_generic/libgeneric.a(string.o): In function `strcmp': /home/ladis/src/u-boot-ti/lib_generic/string.c:152: multiple definition of `strcmp' ../../examples

[U-Boot] [PATCH] VoiceBlue: limit line lenght to 80 characters

2010-02-09 Thread Ladislav Michl
From: Ladislav Michl la...@linux-mips.org Reindent configuration header to limit line lenght to 80 characters by removing obvious and sometimes misleading comments. Signed-off-by: Ladislav Michl la...@linux-mips.org --- voiceblue.h | 164

[U-Boot] [PATCH] igep00x0: Use BCH8 ECC

2015-10-12 Thread Ladislav Michl
Used NAND chips requires at least 4-bit error correction, so use BCH8 as it is what kernel uses. Signed-off-by: Ladislav Michl <la...@linux-mips.org> --- omap3_igep00x0.h | 18 +- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/include/configs/omap3_igep

[U-Boot] [PATCH] UBI: Fix compile error when CONFIG_UBI_SILENCE_MSG defined

2016-01-03 Thread Ladislav Michl
drivers/mtd/ubi/io.c:1354:3: error: 'dump_len' undeclared (first use in this function) dump_len = max_t(int, 128, len - i); Signed-off-by: Ladislav Michl <la...@linux-mips.org> --- drivers/mtd/ubi/io.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/mtd/ubi/io.c b/drivers/m

Re: [U-Boot] [PATCHv2 1/3] nand_spl_simple: Add a simple flash read function

2016-01-04 Thread Ladislav Michl
On Mon, Jan 04, 2016 at 07:38:23PM +0100, Ladislav Michl wrote: > On Mon, Jan 04, 2016 at 12:23:36PM -0600, Scott Wood wrote: > > On Mon, 2016-01-04 at 16:54 +0100, Ladislav Michl wrote: > > > From: Thomas Gleixner <t...@linutronix.de> > > > > > > To supp

Re: [U-Boot] [PATCHv2 1/3] nand_spl_simple: Add a simple flash read function

2016-01-04 Thread Ladislav Michl
On Mon, Jan 04, 2016 at 12:23:36PM -0600, Scott Wood wrote: > On Mon, 2016-01-04 at 16:54 +0100, Ladislav Michl wrote: > > From: Thomas Gleixner <t...@linutronix.de> > > > > To support UBI in SPL we need a simple flash read function. Add one to > > nand_spl_simple

[U-Boot] [PATCHv2 0/3] spl: Lightweight UBI and UBI fastmap support

2016-01-04 Thread Ladislav Michl
This is an update of Thomas's patchset: https://patchwork.ozlabs.org/patch/367305/ https://patchwork.ozlabs.org/patch/367306/ Changes from previous version: - fixes ubi_calc_fm_size to include also sizeof(struct ubi_fm_sb) - dropped private copy of ubi-media.h - ubi-wrapper.h now contains

[U-Boot] [PATCHv2 1/3] nand_spl_simple: Add a simple flash read function

2016-01-04 Thread Ladislav Michl
From: Thomas Gleixner To support UBI in SPL we need a simple flash read function. Add one to nand_spl_simple and keep it as simple as it goes. Signed-off-by: Thomas Gleixner --- drivers/mtd/nand/nand_spl_simple.c | 64

[U-Boot] [PATCHv2 3/3] igep00x0: UBIize

2016-01-04 Thread Ladislav Michl
people can play with that. Thanks to Marek Vasut for pointing me to Thomas' work and arguing so well towards UBI that I had no other choice than giving it a try. Signed-off-by: Ladislav Michl <la...@linux-mips.org> --- board/isee/igep00x0/igep00x0.c| 48 +

Re: [U-Boot] [PATCH] SPL: Lightweight UBI and UBI fastmap support

2016-01-04 Thread Ladislav Michl
On Mon, Jan 04, 2016 at 10:30:03AM +0100, Heiko Schocher wrote: > Am 30.12.2015 um 03:12 schrieb Ladislav Michl: > >From: Thomas Gleixner <t...@linutronix.de> > > > >This is an update of Thomas's patch: > >https://patchwork.ozlabs.org/patch/367306/ > >

[U-Boot] [PATCH 1/4] igep00x0: Cleanup ethernet support

2016-01-02 Thread Ladislav Michl
- move chip reset to separate function - use CONFIG_SMC911X_BASE instead of hardcoded value - remove unneeded local variable from board_eth_init. Signed-off-by: Ladislav Michl <la...@linux-mips.org> --- board/isee/igep00x0/igep00x0.c | 33 +++-- 1 file chang

[U-Boot] [PATCH 0/4] igep00x0: Minor cleanups

2016-01-02 Thread Ladislav Michl
This patch serie was created as a side product while working on UBIizing NAND flash space to improve system reliability. It is safe to apply for current release to start with clean land for adding new features. Ladislav Michl (4): igep00x0: Cleanup ethernet support igep00x0: Do not include

[U-Boot] [PATCH 4/4] igep00x0: Remove no-op macros from config header

2016-01-02 Thread Ladislav Michl
Signed-off-by: Ladislav Michl <la...@linux-mips.org> --- include/configs/omap3_igep00x0.h | 5 - 1 file changed, 5 deletions(-) diff --git a/include/configs/omap3_igep00x0.h b/include/configs/omap3_igep00x0.h index bd1c038..5da6cfd 100644 --- a/include/configs/omap3_igep00x0.h +++ b/i

Re: [U-Boot] [PATCH] igep00x0: Do not include config_distro_defaults.h directly

2016-01-02 Thread Ladislav Michl
Hi Enric Balletbo, On Wed, Dec 30, 2015 at 10:34:28PM +0100, Enric Balletbo Serra wrote: [indentation changes snipped] > again, any reason for this change? I'm sure you know there is no other reason, but to indent constants to the same column with others. I did that in one patch as it is also

[U-Boot] [PATCH 2/4] igep00x0: Do not include config_distro_defaults.h

2016-01-02 Thread Ladislav Michl
File is already included: omap3_igep00x0.h -> ti_omap3_common.h -> ti_armv7_omap.h -> ti_armv7_common.h -> config_distro_defaults.h Signed-off-by: Ladislav Michl <la...@linux-mips.org> --- include/configs/omap3_igep00x0.h | 2 -- 1 file changed, 2 deletions(-) diff --git

[U-Boot] [PATCH 3/4] igep00x0: Fix config header intentation

2016-01-02 Thread Ladislav Michl
Signed-off-by: Ladislav Michl <la...@linux-mips.org> --- include/configs/omap3_igep00x0.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/configs/omap3_igep00x0.h b/include/configs/omap3_igep00x0.h index 16775e2..bd1c038 100644 --- a/include/c

Re: [U-Boot] [PATCHv2 2/3] spl: Lightweight UBI and UBI fastmap support

2016-01-06 Thread Ladislav Michl
Hi, I cannot work on ubispl till next week, so just one quick additional patch before v3 in case anyone wants to give it a try. Move vol_id check to ubi_scan_vid_hdr to verify it has meaningfull value before testing ubi->toload (in my case 0x7FFFEFFF was read causing test_bit hang) ladis

[U-Boot] [PATCH] igep00x0: cleanup ethernet support

2015-12-29 Thread Ladislav Michl
Move chip reset to separate function, use CONFIG_SMC911X_BASE instead of hardcoded value, remove unneeded local variable from board_eth_init. Signed-off-by: Ladislav Michl <la...@linux-mips.org> --- board/isee/igep00x0/igep00x0.c | 33 +++-- 1 file chang

[U-Boot] [PATCH] SPL: Lightweight UBI and UBI fastmap support

2015-12-29 Thread Ladislav Michl
e also sizeof(struct ubi_fm_sb) - dropped private copy of ubi-media.h - accomodate for actual Makefile As original patch is more that a year old, should we update to current linux fastmap code? Signed-off-by: Thomas Gleixner <t...@linutronix.de> Signed-off-by: Ladislav Michl <la...

[U-Boot] [PATCH] Fix compile error when CONFIG_UBI_SILENCE_MSG defined

2015-12-29 Thread Ladislav Michl
Signed-off-by: Ladislav Michl <la...@linux-mips.org> --- drivers/mtd/ubi/io.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/mtd/ubi/io.c b/drivers/mtd/ubi/io.c index d1bdec3..0be9c5a 100644 --- a/drivers/mtd/ubi/io.c +++ b/drivers/mtd/ubi/io.c @@ -1351,7 +1351,6 @@ stat

[U-Boot] [PATCH] igep00x0: Do not include config_distro_defaults.h directly

2015-12-29 Thread Ladislav Michl
File is already included: omap3_igep00x0.h -> ti_omap3_common.h -> ti_armv7_omap.h -> ti_armv7_common.h -> config_distro_defaults.h Signed-off-by: Ladislav Michl <la...@linux-mips.org> --- include/configs/omap3_igep00x0.h | 10 +++--- 1 file changed, 3 insertions(+), 7

[U-Boot] [PATCH] ti_omap3_common: Do not define CONFIG_SPL_NAND_SUPPORT

2015-12-29 Thread Ladislav Michl
Symbol is already defined in ti_armv7_common.h which is included via ti_armv7_omap.h Signed-off-by: Ladislav Michl <la...@linux-mips.org> --- include/configs/ti_omap3_common.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/configs/ti_omap3_common.h b/include/c

[U-Boot] [RFC] igep00x0: UBI everywhere but SPL

2015-12-29 Thread Ladislav Michl
This patch converts IGEP board to use UBI volumes for environment, u-boot, kernel... With exception of first four sectors with SPL loaded by SoC boot ROM whole NAND is UBI managed. I misused BOOT_DEVICE_BOARD, which is probably not briliant idea, but works well enough. Also code it too big, so I

[U-Boot] [PATCH] armv7: Add missing newline after OMAP die ID

2016-01-03 Thread Ladislav Michl
Signed-off-by: Ladislav Michl <la...@linux-mips.org> --- arch/arm/cpu/armv7/omap-common/utils.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/cpu/armv7/omap-common/utils.c b/arch/arm/cpu/armv7/omap-common/utils.c index 602d993..52ea734 100644 --- a/arch/a

Re: [U-Boot] [PATCHv2 1/3] nand_spl_simple: Add a simple flash read function

2016-01-04 Thread Ladislav Michl
On Mon, Jan 04, 2016 at 06:19:06PM +0100, Marek Vasut wrote: > On Monday, January 04, 2016 at 04:54:42 PM, Ladislav Michl wrote: > > From: Thomas Gleixner <t...@linutronix.de> > > > > To support UBI in SPL we need a simple flash read function. Add one to > > nand

[U-Boot] [PATCHv2 2/3] spl: Lightweight UBI and UBI fastmap support

2016-01-04 Thread Ladislav Michl
share the fastmap code, as UBISPL only utilizes the slightly modified functions ubi_attach_fastmap() and ubi_scan_fastmap() from the original kernel ubi fastmap implementation. Signed-off-by: Thomas Gleixner <t...@linutronix.de> Signed-off-by: Ladislav Michl <la...@linux-mips.o

Re: [U-Boot] [PATCHv3 4/4] igep00x0: UBIize

2016-01-12 Thread Ladislav Michl
Hi Heiko, On Tue, Jan 12, 2016 at 10:08:21AM +0100, Heiko Schocher wrote: > Am 11.01.2016 um 13:58 schrieb Ladislav Michl: > >On Mon, Jan 11, 2016 at 07:20:06AM +0100, Heiko Schocher wrote: > >>Beside of that, this patch does not apply ... > > > >Ah, igep00x0 part is

Re: [U-Boot] [PATCHv3 4/4] igep00x0: UBIize

2016-01-12 Thread Ladislav Michl
Hi Heiko, just one more thing I forgot to mention... On Tue, Jan 12, 2016 at 10:08:21AM +0100, Heiko Schocher wrote: > Am 11.01.2016 um 13:58 schrieb Ladislav Michl: [...] > >All that ubispl_info structure is board specific and there is not much left > >besides initializing it. A

[U-Boot] [RFC] runtime mtdparts_default; was: igep00x0: UBIize

2016-06-04 Thread Ladislav Michl
Hi Enric and all, On Mon, Jan 25, 2016 at 04:56:51PM +0100, Ladislav Michl wrote: > Hi Enric, > > On Mon, Jan 25, 2016 at 08:26:23AM +0100, Enric Balletbo Serra wrote: > > The ROM boot on OMAP reads the first 4 blocks searching for the SPL, > > in production is a practice

Re: [U-Boot] [PATCH 5/6] cmd: mtdparts: support runtime generated mtdparts

2016-06-05 Thread Ladislav Michl
On Sun, Jun 05, 2016 at 07:58:46PM +0200, Michal Suchanek wrote: > Hello, > > On 5 June 2016 at 19:43, Ladislav Michl <la...@linux-mips.org> wrote: > > Some CPUs contains boot ROM code capable reading first few blocks > > (where SPL resides) of NAND flash a

[U-Boot] [PATCH 0/6] cmd: mtdparts: Add support for runtime generated defaults

2016-06-05 Thread Ladislav Michl
Greetings, this patch serie is a by-product of UBI SPL patchset, see http://lists.denx.de/pipermail/u-boot/2016-January/242962.html (and earlier) First three patches are just bugfixes. With fourth one, controversy starts, but here can be easily overcome by a config option for a boards wanting to

[U-Boot] [PATCH 2/6] cmd: mtdparts: fix null pointer dereference in parse_mtdparts

2016-06-05 Thread Ladislav Michl
-off-by: Ladislav Michl <la...@linux-mips.org> --- cmd/mtdparts.c | 23 +-- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/cmd/mtdparts.c b/cmd/mtdparts.c index 3a88a10..995cb87 100644 --- a/cmd/mtdparts.c +++ b/cmd/mtdparts.c @@ -1524,7 +1524,7 @@ stat

[U-Boot] [PATCH 1/6] cmd: mtdparts: fix mtdparts variable presence confusion in mtdparts_init

2016-06-05 Thread Ladislav Michl
A private buffer is used to read mtdparts variable from non-relocated environment. A pointer to that buffer is returned unconditionally, confusing later test for variable presence in the environment. Fix it by returning NULL when getenv_f fails. Signed-off-by: Ladislav Michl <la...@linux-mips.

[U-Boot] [PATCH 5/6] cmd: mtdparts: support runtime generated mtdparts

2016-06-05 Thread Ladislav Michl
block size. This patch adds support for the latter option. Signed-off-by: Ladislav Michl <la...@linux-mips.org> --- cmd/mtdparts.c | 22 ++ 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/cmd/mtdparts.c b/cmd/mtdparts.c index 53074a1..71c7acb 100644 ---

[U-Boot] [PATCH 4/6] cmd: mtdparts: use defaults by default

2016-06-05 Thread Ladislav Michl
unless explicitely deleted or redefined. Signed-off-by: Ladislav Michl <la...@linux-mips.org> --- cmd/mtdparts.c | 22 -- 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/cmd/mtdparts.c b/cmd/mtdparts.c index 7860ed9..53074a1 100644 --- a/cmd/mtdparts.c +++

[U-Boot] [PATCH 3/6] cmd: mtdparts: consolidate mtdparts reading from env

2016-06-05 Thread Ladislav Michl
Signed-off-by: Ladislav Michl <la...@linux-mips.org> --- cmd/mtdparts.c | 42 -- 1 file changed, 20 insertions(+), 22 deletions(-) diff --git a/cmd/mtdparts.c b/cmd/mtdparts.c index 995cb87..7860ed9 100644 --- a/cmd/mtdparts.c +++ b/cmd/mtdp

[U-Boot] [PATCH 6/6] igep00x0: generate default mtdparts according NAND chip used

2016-06-05 Thread Ladislav Michl
Just a sample implementation. Eventually become part of of UBI SPL patch series. Signed-off-by: Ladislav Michl <la...@linux-mips.org> --- board/isee/igep00x0/igep00x0.c | 16 include/configs/omap3_igep00x0.h | 1 + 2 files changed, 17 insertions(+) diff --git a/boar

Re: [U-Boot] [PATCH 5/6] cmd: mtdparts: support runtime generated mtdparts

2016-06-06 Thread Ladislav Michl
On Mon, Jun 06, 2016 at 09:08:47AM +0200, Michal Suchanek wrote: > On 5 June 2016 at 20:23, Ladislav Michl <la...@linux-mips.org> wrote: > > On Sun, Jun 05, 2016 at 07:58:46PM +0200, Michal Suchanek wrote: > >> There is similar problem on sunxi. > >> > >>

Re: [U-Boot] [PATCH 5/6] cmd: mtdparts: support runtime generated mtdparts

2016-06-07 Thread Ladislav Michl
On Tue, Jun 07, 2016 at 09:43:20AM +0200, Michal Suchanek wrote: > On 6 June 2016 at 23:21, Ladislav Michl <la...@linux-mips.org> wrote: > > On Mon, Jun 06, 2016 at 08:50:55PM +0200, Michal Suchanek wrote: > > Linux already depends on U-Boot as U-Boot feeds Linu

Re: [U-Boot] [PATCH 5/6] cmd: mtdparts: support runtime generated mtdparts

2016-06-06 Thread Ladislav Michl
On Mon, Jun 06, 2016 at 08:50:55PM +0200, Michal Suchanek wrote: > On 6 June 2016 at 09:48, Ladislav Michl <la...@linux-mips.org> wrote: [snip] > > Okay, specifing size in therms of eraseblock would solve my problem > > and I have to admit I'm not aware such a thin

Re: [U-Boot] BOOT_DELAY broken

2016-06-12 Thread Ladislav Michl
On Sun, Jun 12, 2016 at 02:19:50PM -0700, Sergey Kubushyn wrote: > OK, it is broken in last commit. Totally broken. > > I can NOT get my custom board to stop at all. "CONFIG_BOOTDELAY=3" added > to my board defconfig doesn't change anything. Even changing default to > 3 from 0 in common/Kconfig

[U-Boot] [PATCH] armv7: fix order of OMAP die ID printing

2016-06-02 Thread Ladislav Michl
Signed-off-by: Ladislav Michl <la...@linux-mips.org> --- diff --git a/arch/arm/cpu/armv7/omap-common/utils.c b/arch/arm/cpu/armv7/omap-common/utils.c index 52ea734..2d03ebf 100644 --- a/arch/arm/cpu/armv7/omap-common/utils.c +++ b/arch/arm/cpu/armv7/omap-common/utils.c @@ -108,6 +108,6 @

Re: [U-Boot] [PATCH] i.MX6 nand bootupdate

2016-06-16 Thread Ladislav Michl
Hi Stefano, On Wed, Jun 15, 2016 at 12:14:21PM +0200, Stefano Babic wrote: > Hi Sergey, > > > On 14/06/2016 20:32, Sergey Kubushyn wrote: > > Here is the initial support for writing i.MX6 NAND U-Boot into NAND > > with all FCB and DBBT stuff as required. > > > > This is a very interesting

[U-Boot] [PATCH] armv7: add reset timeout to identify_nand_chip

2016-06-17 Thread Ladislav Michl
to be a safe timeout. Signed-off-by: Ladislav Michl <la...@linux-mips.org> --- arch/arm/cpu/armv7/omap3/spl_id_nand.c | 32 + arch/arm/include/asm/arch-omap3/sys_proto.h | 2 +- 2 files changed, 15 insertions(+), 19 deletions(-) diff --git a/arch/arm/cpu/armv7

[U-Boot] [PATCH] armv7: make gpmc_cfg const

2016-06-17 Thread Ladislav Michl
Signed-off-by: Ladislav Michl <la...@linux-mips.org> --- arch/arm/cpu/armv7/omap-common/mem-common.c | 8 +++- arch/arm/include/asm/arch-omap3/sys_proto.h | 4 ++-- include/linux/mtd/omap_gpmc.h | 2 +- 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/arch/a

[U-Boot] [RFC] omap3: single binary supporting all flash types

2016-06-17 Thread Ladislav Michl
Hi there! currently it is not possible to build single working OMAP3 binary which enables more than one of these: CONFIG_NOR CONFIG_NAND CONFIG_CMD_ONENAND first problem lies in gpmc_init which configures CS[0] to one flash type determined at compile time. Another is that identify_nand_chip hang

[U-Boot] (no subject)

2016-06-17 Thread Ladislav Michl
Add timeout to onenand_wait ready loop as it hangs here indefinitely when chip not present. Once there, do the same for onenand_bbt_wait as well (note: recent Linux driver code does the same) Signed-off-by: Ladislav Michl <la...@linux-mips.org> --- drivers/mtd/onenand/onenand_base.

  1   2   3   >