[U-Boot] Spansion S29JL032H and detecting problem

2008-12-11 Thread Roman Mashak
Hello I'm porting U-Boot on ARM926EJ-S based board, which has one NOR flash (specified in the subject line). For debug purpose I compiled U-Boot to run from RAM via JTAG; therefore the configuration of flash is as follows: #define CFG_FLASH_BASE 0x2C00 #define CFG_MAX_FLASH_BANKS 1

Re: [U-Boot] [PATCH] cmd_sf: rename "speed" to "hz"

2008-12-11 Thread Wolfgang Denk
Dear Mike Frysinger, In message <200812112130.02918.vap...@gentoo.org> you wrote: > > > > -#ifndef CONFIG_SF_DEFAULT_SPEED > > > -# define CONFIG_SF_DEFAULT_SPEED 100 > > > +#ifndef CONFIG_SF_DEFAULT_HZ > > > +# define CONFIG_SF_DEFAULT_HZ100 > > > > I consider "FREQ" (and even "SPEED)

Re: [U-Boot] SATA/IDE/etc... init

2008-12-11 Thread Stefan Roese
On Friday 12 December 2008, Wolfgang Denk wrote: > > btw, does nand_init() fall into the same category ? should i convert > > that to a "nand init" step ? > > Yes, it does. > > I'm not sure here, though. Many people seem to find at least the NAND > flash size output useful. Yes. And please don't

Re: [U-Boot] U-Boot hangs in start_armboot()

2008-12-11 Thread Roman Mashak
Hello 2008/12/12 Roman Mashak : [skip] > So I believe 'default_environment[]' has correct "baudrate" > environment set and on startup it will be picked up by > 'init_baudrate()' from $(UBOOT)/lib_arm/board.c Problem is fixed, it was due to a bug in the function configuring clock frequency, which

Re: [U-Boot] u-boot.lds i686-pc-linux-gnu-ld section .start16 overlapssection .text

2008-12-11 Thread LanceZ
>Hmm, I have 170kB free - minus 128kB (assuming you're using a 128kB flash >rather than my 256kB) leaves 42kB, so you are using ~36kB more than my 86kB >Looks like you may have some places to carve out some code. >Good luck, glad to be of service I changed the space to 256KB, and build OK. Than

Re: [U-Boot] [PATCH] cmd_sf: rename "speed" to "hz"

2008-12-11 Thread Mike Frysinger
On Thursday 11 December 2008 18:59:46 Wolfgang Denk wrote: > In message Mike Frysinger you wrote: > > The term "hz" is used everywhere else when talking about the frequency of > > the SPI bus, so have the sf command use it as well to stay consistent. > > It even presents itself as "hz" when showin

[U-Boot] [PATCH] tsec: report when there is no vendor specific PHY support.

2008-12-11 Thread Paul Gortmaker
Commit af1c2b84 added a generic phy support, with an ID of zero and a 32 bit mask; meaning that it will match on any PHY ID. The problem is that there is a test that checked if a matching PHY was found, and if not, it printed the non-matching ID. But since there will always be a match (on the gene

Re: [U-Boot] U-Boot hangs in start_armboot()

2008-12-11 Thread Roman Mashak
Hello 2008/12/12 Roman Mashak : > Certainly. > > * CPU is arm926ejs based processor with standard peripherals (UART, > I2C, timers etc.) > * our custom board > * U-Boot-1.3.4 Forgot to mention the serial settings in my board's configuration file: #define CONFIG_BAUDRATE 115200 #define CF

Re: [U-Boot] [PATCH v2] SATA: do not auto-initialize during boot

2008-12-11 Thread Kumar Gala
On Dec 11, 2008, at 5:51 PM, Mike Frysinger wrote: > Rather than have the board code initialize SATA automatically during > boot, > make the user manually run "sata init". This brings the SATA > subsystem in > line with common U-Boot policy. > > Along these lines, the "is_sata_supported()" h

Re: [U-Boot] [PATCH] SATA: do not auto-initialize during boot

2008-12-11 Thread Scott Wood
Mike Frysinger wrote: > On Thursday 11 December 2008 18:53:00 Wolfgang Denk wrote: >> And if they do, the code should fail gracefully, i. e. print some >> friendly error message like that S-ATA is not available. > > in this case, i think that's up to the controller. i.e. the controller > doesnt

Re: [U-Boot] [PATCH] SATA: do not auto-initialize during boot

2008-12-11 Thread Kumar Gala
On Dec 11, 2008, at 6:01 PM, Wolfgang Denk wrote: > Dear Kumar, > > In message <29E3D6BF-AA38-40C3- > ac21-87dcbbb82...@kernel.crashing.org> you wrote: >> >> >>> I agree with Kumare - having to run "sata init" manually is >>> annoying. > > Sorry for the bodus 'e' here. > >>> We should auto-run

Re: [U-Boot] pci_hose_{bus_to_phys,phys_to_bus} and inbound memory

2008-12-11 Thread Wolfgang Denk
Dear Kumar, In message you wrote: > > On Dec 4, 2008, at 10:58 AM, Kumar Gala wrote: > > > We have an issue with inbound windows overlapping outbound windows. > > This is fine, but it does mean that pci_hose_{bus_to_phys,phys_to_bus} > > can return the wrong thing. > > > > I was wondering if th

Re: [U-Boot] [PATCH] SATA: do not auto-initialize during boot

2008-12-11 Thread Wolfgang Denk
Dear Kumar, In message <29e3d6bf-aa38-40c3-ac21-87dcbbb82...@kernel.crashing.org> you wrote: > > > > I agree with Kumare - having to run "sata init" manually is annoying. Sorry for the bodus 'e' here. > > We should auto-run it upon the first "sata" command if it hasn't been > > called before (

Re: [U-Boot] [PATCH] cmd_sf: rename "speed" to "hz"

2008-12-11 Thread Wolfgang Denk
Dear Mike Frysinger, In message <1229034488-26048-1-git-send-email-vap...@gentoo.org> you wrote: > The term "hz" is used everywhere else when talking about the frequency of > the SPI bus, so have the sf command use it as well to stay consistent. It > even presents itself as "hz" when showing user

Re: [U-Boot] [PATCH] SATA: do not auto-initialize during boot

2008-12-11 Thread Mike Frysinger
On Thursday 11 December 2008 18:53:00 Wolfgang Denk wrote: > In message Mike Frysinger you wrote: > > > Also, in the code you removed we do a runtime check on 8536 to see if > > > SATA is even available. That check is still valid. > > > > why ? if the hardware doesnt support it, then the user sho

Re: [U-Boot] [PATCH] SATA: do not auto-initialize during boot

2008-12-11 Thread Wolfgang Denk
Dear Mike Frysinger, In message <200812111624.20543.vap...@gentoo.org> you wrote: > > it made sense when the init step was automatic. but you're telling me users And we still want to have it automatic, just deferred. > of your board are incapable of looking at it and going "hmm, this has a SAT

Re: [U-Boot] [PATCH] common/main: support bootdelay=0 for CONFIG_AUTOBOOT_KEYED

2008-12-11 Thread Peter Korsgaard
> "Wolfgang" == Wolfgang Denk writes: Wolfgang> Dear Peter Korsgaard, Wolfgang> In message <1228922656-27689-1-git-send-email-jac...@sunsite.dk> you wrote: >> Support bootdelay=0 in abortboot for the CONFIG_AUTOBOOT_KEYED case >> similar to the CONFIG_ZERO_BOOTDELAY_CHECK support for the

Re: [U-Boot] [PATCH] SATA: do not auto-initialize during boot

2008-12-11 Thread Wolfgang Denk
Dear Mike Frysinger, In message <200812111607.10866.vap...@gentoo.org> you wrote: > > having init_sata() be automatic though would prevent hotplugging ... but > maybe > people dont care about that ... No - if you also allow to run "sata init" manually. the thing is that it just should be done

Re: [U-Boot] [PATCH] SATA: do not auto-initialize during boot

2008-12-11 Thread Wolfgang Denk
Dear Mike Frysinger, In message <200812111556.23044.vap...@gentoo.org> you wrote: > > > Also, in the code you removed we do a runtime check on 8536 to see if > > SATA is even available. That check is still valid. > > why ? if the hardware doesnt support it, then the user shouldnt be > attemptin

[U-Boot] [PATCH v2] SATA: do not auto-initialize during boot

2008-12-11 Thread Mike Frysinger
Rather than have the board code initialize SATA automatically during boot, make the user manually run "sata init". This brings the SATA subsystem in line with common U-Boot policy. Along these lines, the "is_sata_supported()" hook is no longer needed, so scrub it from the tree. Signed-off-by: Mi

Re: [U-Boot] [PATCH] SATA: do not auto-initialize during boot

2008-12-11 Thread Wolfgang Denk
Dear Kumar Gala, In message <3b24dcfa-1309-4b92-a4ae-d9943d332...@kernel.crashing.org> you wrote: > > > and ...), so it isnt a big deal imo. i asked if Wolfgang wanted it > > automated > > and he preferred making the user do it themselves. > > This seems backwards to me.. ACK here. > 'sata

Re: [U-Boot] [PATCH] SATA: do not auto-initialize during boot

2008-12-11 Thread Wolfgang Denk
Dear Mike Frysinger, In message <200812111503.54148.vap...@gentoo.org> you wrote: > > it's already standard behavior with most mass storage things (like mmc and sf > and ...), so it isnt a big deal imo. i asked if Wolfgang wanted it automated > and he preferred making the user do it themselves.

Re: [U-Boot] SATA/IDE/etc... init

2008-12-11 Thread Mike Frysinger
On Thursday 11 December 2008 18:22:06 Wolfgang Denk wrote: > In message Mike Frysinger you wrote: > > btw, does nand_init() fall into the same category ? should i convert > > that to a "nand init" step ? > > Yes, it does. > > I'm not sure here, though. Many people seem to find at least the NAND >

Re: [U-Boot] [PATCH] at91: Fix Choose environment variables location out of tree build

2008-12-11 Thread Wolfgang Denk
Dear Jean-Christophe PLAGNIOL-VILLARD, In message <1228948562-12728-1-git-send-email-plagn...@jcrosoft.com> you wrote: > Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD > > diff --git a/Makefile b/Makefile > index 2ac8141..0e31697 100644 > --- a/Makefile > +++ b/Makefile > @@ -2586,6 +2586,7 @@

Re: [U-Boot] [PATCH v3] easylogo: add optional gzip support

2008-12-11 Thread Wolfgang Denk
Dear Mike Frysinger, In message <1228941641-27682-1-git-send-email-vap...@gentoo.org> you wrote: > Some images can be quite large, so add an option to compress the image data > with gzip in the U-Boot image. Then at runtime, the board can decompress it > with the normal zlib functions. ... > +

[U-Boot] [PATCH] spi/stmicro: fix debug() display of cmd

2008-12-11 Thread Mike Frysinger
The stmicro_wait_ready() func tries to show the actual opcode that was sent to the device, but instead it displays the array pointer. Fix it to pull out the opcode from the start of the array. Signed-off-by: Mike Frysinger --- drivers/mtd/spi/stmicro.c |2 +- 1 files changed, 1 insertions(+

Re: [U-Boot] [PATCH] common/main: support bootdelay=0 for CONFIG_AUTOBOOT_KEYED

2008-12-11 Thread Wolfgang Denk
Dear Peter Korsgaard, In message <1228922656-27689-1-git-send-email-jac...@sunsite.dk> you wrote: > Support bootdelay=0 in abortboot for the CONFIG_AUTOBOOT_KEYED case > similar to the CONFIG_ZERO_BOOTDELAY_CHECK support for the > !CONFIG_AUTOBOOT_KEYED case. Ummm... how do you enter the "passwor

Re: [U-Boot] [PATCH] MAKEALL: Automatically use parallel builds

2008-12-11 Thread Wolfgang Denk
Dear Mike, In message <200812090056.25498.vap...@gentoo.org> you wrote: > > > -: ${JOBS:=} > > +# Determine number of CPU cores if no default was set > > +: ${BUILD_NCPUS:"`getconf _NPROCESSORS_ONLN`"} > > + > > +if [ "$BUILD_NCPUS" -gt 1 ] > > no point in quoting here ... if it isnt numeric, then

Re: [U-Boot] pci_hose_{bus_to_phys,phys_to_bus} and inbound memory

2008-12-11 Thread Kumar Gala
On Dec 4, 2008, at 10:58 AM, Kumar Gala wrote: > We have an issue with inbound windows overlapping outbound windows. > This is fine, but it does mean that pci_hose_{bus_to_phys,phys_to_bus} > can return the wrong thing. > > I was wondering if there was any issue if PCI_REGION_MEMORY was set > for

Re: [U-Boot] [PATCH] SATA: do not auto-initialize during boot

2008-12-11 Thread Kumar Gala
On Dec 11, 2008, at 5:18 PM, Wolfgang Denk wrote: > Dear Mike Frysinger, > > In message <1228991549-11486-1-git-send-email-vap...@gentoo.org> you > wrote: >> Rather than have the board code initialize SATA automatically >> during boot, >> make the user manually run "sata init". This brings t

Re: [U-Boot] SATA/IDE/etc... init

2008-12-11 Thread Wolfgang Denk
Dear Mike Frysinger, In message <200812110747.19343.vap...@gentoo.org> you wrote: > > btw, does nand_init() fall into the same category ? should i convert that to > a "nand init" step ? Yes, it does. I'm not sure here, though. Many people seem to find at least the NAND flash size output usefu

Re: [U-Boot] [PATCH] SATA: do not auto-initialize during boot

2008-12-11 Thread Wolfgang Denk
Dear Mike Frysinger, In message <1228991549-11486-1-git-send-email-vap...@gentoo.org> you wrote: > Rather than have the board code initialize SATA automatically during boot, > make the user manually run "sata init". This brings the SATA subsystem in > line with common U-Boot policy. I agree with

Re: [U-Boot] U-Boot hangs in start_armboot()

2008-12-11 Thread Roman Mashak
Hello 2008/12/11 Jean-Christophe PLAGNIOL-VILLARD : [skip] > First could you give us few information as which CPU, Target and U-Boot > version do you work on? Certainly. * CPU is arm926ejs based processor with standard peripherals (UART, I2C, timers etc.) * our custom board * U-Boot-1.3.4 -- R

[U-Boot] [PATCH] cmd_sf: rename "speed" to "hz"

2008-12-11 Thread Mike Frysinger
The term "hz" is used everywhere else when talking about the frequency of the SPI bus, so have the sf command use it as well to stay consistent. It even presents itself as "hz" when showing user help. Signed-off-by: Mike Frysinger --- common/cmd_sf.c | 10 +- 1 files changed, 5 insert

Re: [U-Boot] [PATCH] SATA: do not auto-initialize during boot

2008-12-11 Thread Mike Frysinger
On Thursday 11 December 2008 16:36:12 Scott Wood wrote: > Mike Frysinger wrote: > > it made sense when the init step was automatic. but you're telling me > > users of your board are incapable of looking at it and going "hmm, this > > has a SATA disk" ? it isnt like disks are tiny and they have to

Re: [U-Boot] [PATCH] SATA: do not auto-initialize during boot

2008-12-11 Thread Scott Wood
Mike Frysinger wrote: > it made sense when the init step was automatic. but you're telling me users > of your board are incapable of looking at it and going "hmm, this has a SATA > disk" ? it isnt like disks are tiny and they have to scan a board for some > obscure IC. disks are friggin huge.

Re: [U-Boot] crash when doing `sf probe` multiple times due to API miscommunication

2008-12-11 Thread Mike Frysinger
On Thursday 11 December 2008 15:52:25 Mike Frysinger wrote: > the `sf probe` command does: > static int do_spi_flash_probe(...) > { > ... > new = spi_flash_probe(bus, cs, speed, mode); > if (flash) > spi_flash_free(flash); > flash = new; > ... > } oh, i

Re: [U-Boot] [PATCH] SATA: do not auto-initialize during boot

2008-12-11 Thread Mike Frysinger
On Thursday 11 December 2008 16:16:12 Scott Wood wrote: > Mike Frysinger wrote: > > On Thursday 11 December 2008 16:01:33 Scott Wood wrote: > >> Mike Frysinger wrote: > >>> why ? if the hardware doesnt support it, then the user shouldnt be > >>> attempting to use it. if they do, that's their faul

Re: [U-Boot] [PATCH] tsec: report when there is no vendor specific PHY support.

2008-12-11 Thread Andy Fleming
On Dec 11, 2008, at 2:29 PM, Paul Gortmaker wrote: > Commit af1c2b84 added a generic phy support, with an ID of zero > and a 32 bit mask; meaning that it will match on any PHY ID. > > The problem is that there is a test that checked if a matching > PHY was found, and if not, it printed the non-ma

Re: [U-Boot] [PATCH] SATA: do not auto-initialize during boot

2008-12-11 Thread Scott Wood
Mike Frysinger wrote: > On Thursday 11 December 2008 16:01:33 Scott Wood wrote: >> Mike Frysinger wrote: >>> why ? if the hardware doesnt support it, then the user shouldnt be >>> attempting to use it. if they do, that's their fault for doing something >>> stupid. >> There's no need to be unneces

Re: [U-Boot] [PATCH] mtd: SPI Flash: Winbond W25X16/WX2532/WX2564 support

2008-12-11 Thread Mike Frysinger
On Wednesday 09 July 2008 18:37:06 Wolfgang Denk wrote: > In message Jason McMullan wrote: > > Add support for the Winbond W25X16/32/64 series of > > SPI Flash devices. > > Signed-off-by line is missing. > > > --- /dev/null > > +++ b/drivers/mtd/spi/winbond.c > > @@ -0,0 +1,331 @@ > > +/* > > + * C

Re: [U-Boot] [PATCH] SATA: do not auto-initialize during boot

2008-12-11 Thread Mike Frysinger
On Thursday 11 December 2008 16:01:33 Scott Wood wrote: > Mike Frysinger wrote: > > On Thursday 11 December 2008 15:51:32 Kumar Gala wrote: > >> 'sata init' isn't safe. It seems like you should only be able to call > >> it once. However I think we can keep issuing it and cause bad things > >> to

Re: [U-Boot] [PATCH] SATA: do not auto-initialize during boot

2008-12-11 Thread Scott Wood
Mike Frysinger wrote: > On Thursday 11 December 2008 15:51:32 Kumar Gala wrote: >> 'sata init' isn't safe. It seems like you should only be able to call >> it once. However I think we can keep issuing it and cause bad things >> to happen. > > i dont think so. the SATA driver should be doing the

[U-Boot] spansion spi flash driver ?

2008-12-11 Thread Mike Frysinger
in your original drivers/mtd/spi/spi_flash.c commit, you had this: #ifdef CONFIG_SPI_FLASH_SPANSION case 0x01: flash = spi_flash_probe_spansion(spi, idcode); break; #endif does that mean you have a spansion driver sitting around but it just wasnt merged ? if i dont have to wr

Re: [U-Boot] [PATCH] SATA: do not auto-initialize during boot

2008-12-11 Thread Mike Frysinger
On Thursday 11 December 2008 15:51:32 Kumar Gala wrote: > On Dec 11, 2008, at 2:03 PM, Mike Frysinger wrote: > > On Thursday 11 December 2008 11:17:56 Kumar Gala wrote: > >> On Dec 11, 2008, at 4:32 AM, Mike Frysinger wrote: > >>> Rather than have the board code initialize SATA automatically during

Re: [U-Boot] [PATCH] V2 NAND_SPL support for phycore imx31

2008-12-11 Thread Scott Wood
On Fri, Dec 05, 2008 at 02:13:51PM +0300, Maxim Artamonov wrote: > +#ifdef CONFIG_NAND_SPL > +/* somewhat macro to reduce bin size for CONFIG_NAND_SPL*/ > +.macro FILLREGS begreg, val, count, step Why not use this macro always? > @@ -32,6 +35,15 @@ > #include > .globl _start > _start: bre

Re: [U-Boot] problem doing rebase in fresh git.denx.de/u-boot.git clone

2008-12-11 Thread Wolfgang Denk
Dear Peter, In message you wrote: > > >> ~$ git clone git://git.denx.de/u-boot.git > > ... > >> ~/uboot$ git rebase v1.3.3 > > > > What exactly do you expect this command to do? > > I have some patches that apply against v1.3.3 and work fine. Moving > them to v2008.10 did not work so far, so I

[U-Boot] crash when doing `sf probe` multiple times due to API miscommunication

2008-12-11 Thread Mike Frysinger
the `sf probe` command does: static int do_spi_flash_probe(...) { ... new = spi_flash_probe(bus, cs, speed, mode); if (flash) spi_flash_free(flash); flash = new; ... } looks good ... if the user ran `sf probe` once already, then we need to fr

Re: [U-Boot] [PATCH] SATA: do not auto-initialize during boot

2008-12-11 Thread Kumar Gala
On Dec 11, 2008, at 2:03 PM, Mike Frysinger wrote: > On Thursday 11 December 2008 11:17:56 Kumar Gala wrote: >> On Dec 11, 2008, at 4:32 AM, Mike Frysinger wrote: >>> Rather than have the board code initialize SATA automatically during >>> boot, >>> make the user manually run "sata init". This b

[U-Boot] [PATCH 2/3] sbc8548: use proper PHY address

2008-12-11 Thread Paul Gortmaker
The values given for the PHY address were wrong, so the code read no valid PHY ID, and fell through to the generic PHY support, which would work on 1000M but would not auto negotiate down to 100M or 10M. Signed-off-by: Paul Gortmaker --- include/configs/sbc8548.h |4 ++-- 1 files changed, 2

[U-Boot] [PATCH 0/3] sbc8548 PHY fix, cmdline editing.

2008-12-11 Thread Paul Gortmaker
Hi Andy, Would you please merge these three sbc8548 patches via the mpc85xx tree? This fixes an incorrect PHY address issue that was masked by the tsec driver inadvertently doing an "if (0) {...}" Rather than put in bogus PHY address for the eTSEC3 and eTSEC4, I just purged them from the board

[U-Boot] [PATCH 3/3] sbc8548: enable command line editing by default.

2008-12-11 Thread Paul Gortmaker
Lets make things a bit more user friendly. It isn't 1985 anymore. Signed-off-by: Paul Gortmaker --- include/configs/sbc8548.h |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/include/configs/sbc8548.h b/include/configs/sbc8548.h index b27b282..e93b861 100644 --- a/includ

[U-Boot] [PATCH 1/3] sbc8548: don't enable the 3rd and 4th eTSEC

2008-12-11 Thread Paul Gortmaker
These interfaces don't have usable connectors on the board, so don't bother enumerating or configuring them. Signed-off-by: Paul Gortmaker --- include/configs/sbc8548.h | 15 +-- 1 files changed, 1 insertions(+), 14 deletions(-) diff --git a/include/configs/sbc8548.h b/include/con

Re: [U-Boot] [RFC USB PATCH] USB ehci I/O function fix

2008-12-11 Thread Remy Bohmer
Hello Michael, 2008/12/11 Michael Trimarchi : > From e2f57c5cee96b506d9580cf93d4bd2a0de1c3e3d Mon Sep 17 00:00:00 2001 > From: michael > Date: Thu, 11 Dec 2008 13:43:55 +0100 > Subject: [PATCH] This patch add varius fix to the ehci. > - fix ehci_readl, ehci_writel > - introduce new define in eh

Re: [U-Boot] [PATCH] SATA: do not auto-initialize during boot

2008-12-11 Thread Mike Frysinger
On Thursday 11 December 2008 11:17:56 Kumar Gala wrote: > On Dec 11, 2008, at 4:32 AM, Mike Frysinger wrote: > > Rather than have the board code initialize SATA automatically during > > boot, > > make the user manually run "sata init". This brings the SATA > > subsystem in > > line with common U-B

Re: [U-Boot] [PATCH] SATA: do not auto-initialize during boot

2008-12-11 Thread Mike Frysinger
On Thursday 11 December 2008 11:18:36 Kumar Gala wrote: > On Dec 11, 2008, at 4:32 AM, Mike Frysinger wrote: > > diff --git a/board/freescale/mpc8536ds/mpc8536ds.c b/board/freescale/ > > mpc8536ds/mpc8536ds.c > > index 2b17612..ada8020 100644 > > --- a/board/freescale/mpc8536ds/mpc8536ds.c > > +++

Re: [U-Boot] [PATCH] nand: move board_nand_init to nand.h

2008-12-11 Thread Scott Wood
On Sat, Dec 06, 2008 at 02:40:55AM -0500, Mike Frysinger wrote: > Rather than putting the function prototype for board_nand_init() in the one > place where it gets called, put it into nand.h so that every place that also > defines it gets the prototype. Otherwise, errors can go silently unnoticed

Re: [U-Boot] SATA/IDE/etc... init

2008-12-11 Thread Scott Wood
On Thu, Dec 11, 2008 at 07:47:18AM -0500, Mike Frysinger wrote: > btw, does nand_init() fall into the same category ? Hmm, in general I'd say yes, but that raises the issue with certain drivers (such as fsl elbc) of how to communicate the ECC layout being used to the kernel. Currently (or at lea

[U-Boot] [PATCH] NAND CMD: Add bad block skipping for nboot

2008-12-11 Thread David . Kondrad
This patch adds bad block skipping for nboot command by using nand_read_skip_bad function. The initial read size had to be increased because there seems to be an issue with nand_read_skip_bad and read sizes less than erasesize when the first block needs to be skipped. Since our kernel images are

Re: [U-Boot] NetLoop() code ordering

2008-12-11 Thread Ben Warren
Hi Curtis, Please copy the U-boot mailing list on all correspondence. Curtis Wald wrote: > > Hi, > > As you’re listed as the custodian for the U-Boot Network Library I had > a question: > > Looking in net/net.c NetLoop() starting at line 322: > > eth_halt(); > > #ifdef CONFIG_NET_MULTI > > eth_s

Re: [U-Boot] problem doing rebase in fresh git.denx.de/u-boot.git clone

2008-12-11 Thread Peter Vollmer
On Thu, 11 Dec 2008 17:01:57 +0100, Wolfgang Denk <[EMAIL PROTECTED]> wrote: >> ~$ git clone git://git.denx.de/u-boot.git > ... >> ~/uboot$ git rebase v1.3.3 > > What exactly do you expect this command to do? I have some patches that apply against v1.3.3 and work fine. Moving them to v2008.10 did

Re: [U-Boot] [PATCH] [ONENAND] Reduce OneNAND IPL code size v2

2008-12-11 Thread Scott Wood
On Wed, Dec 10, 2008 at 09:05:00AM +0900, Kyungmin Park wrote: > >> diff --git a/cpu/arm1136/start.S b/cpu/arm1136/start.S > >> index e622338..132cc4a 100644 > >> --- a/cpu/arm1136/start.S > >> +++ b/cpu/arm1136/start.S > >> @@ -33,23 +33,7 @@ > >> .globl _start > >> _start: breset > >> #ifd

Re: [U-Boot] [PATCH] SATA: do not auto-initialize during boot

2008-12-11 Thread Kumar Gala
On Dec 11, 2008, at 4:32 AM, Mike Frysinger wrote: > diff --git a/board/freescale/mpc8536ds/mpc8536ds.c b/board/freescale/ > mpc8536ds/mpc8536ds.c > index 2b17612..ada8020 100644 > --- a/board/freescale/mpc8536ds/mpc8536ds.c > +++ b/board/freescale/mpc8536ds/mpc8536ds.c > @@ -582,17 +582,6 @@ ge

Re: [U-Boot] [PATCH] SATA: do not auto-initialize during boot

2008-12-11 Thread Kumar Gala
On Dec 11, 2008, at 4:32 AM, Mike Frysinger wrote: > Rather than have the board code initialize SATA automatically during > boot, > make the user manually run "sata init". This brings the SATA > subsystem in > line with common U-Boot policy. > > Along these lines, the "is_sata_supported()" h

Re: [U-Boot] problem doing rebase in fresh git.denx.de/u-boot.git clone

2008-12-11 Thread Wolfgang Denk
Dear "Peter Vollmer", In message <[EMAIL PROTECTED]> you wrote: > Hi all, > > I just tried to do a git bisect in my clone of the u-boot git repo > to trace some commits in the past, but I noticed there > is a problem doing a rebase in an unchanged fresh > clone of git.denx.de/u-boot.git. Thats wh

[U-Boot] nios: Move README.nios_CONFIG_SYS_NIOS_CPU to doc/ dir

2008-12-11 Thread Shinya Kuribayashi
Signed-off-by: Shinya Kuribayashi <[EMAIL PROTECTED]> --- Hi Jean, in the commit 6d0f6bcf (rename CFG_ macros to CONFIG_SYS), this README file was added into ${TOPDIR} dir. Was this intended? Thanks, Shinya README.nios_CONFIG_SYS_NIOS_CPU | 140 --- do

Re: [U-Boot] [PATCH] Hardware diagnosis for inka4x0 boards.

2008-12-11 Thread Detlev Zundel
Hi Wolfgang, >> This patch adds diagnosis functions for the buzzer, UARTs and digital > > Such hardware test code should be implemented as part of the POST > system, i. e. please create a post/board/inka4x0/ directory for it, > and make it part of the POST. But these tests cannot be part of any P

Re: [U-Boot] [PATCH] inka4x0: board specific RTC support.

2008-12-11 Thread Detlev Zundel
Hi Wolfgang, > Dear [EMAIL PROTECTED], > > In message <[EMAIL PROTECTED]> you wrote: >> From: Andreas Pfefferle <[EMAIL PROTECTED]> >> >> This patch adds the board specific communication routines needed >> by the external 4543 RTC. > > No, that's broken by design. An RTC is not board-dependent,

[U-Boot] [PATCH 3/3] Create bad block aware partition table

2008-12-11 Thread Rohit Hagargundgi
The idea and most of the code is from the following thread http://lists.denx.de/pipermail/u-boot/2008-July/036604.html The idea is that existing bad blocks can reduce the usable size in the partition. User defines partition table only once but bad blocks are different on different chips.

[U-Boot] [PATCH 2/3] Add partition based OneNAND commands

2008-12-11 Thread Rohit Hagargundgi
Add commands which operate on partitions. They are: 1. onenand partwrite : Write image / data to partition skipping bad blocks. 2. onenand partread: Read image / data from partition skipping bad blocks. 3. onenand lastslcpart : Configure Flex-OneNAND boundary to

[U-Boot] [PATCH 1/3] Bad block support for environment variables partition in OneNAND

2008-12-11 Thread Rohit Hagargundgi
Currently, environment variables partition can only be one block. However, this block can be bad. With this patch, user can give many blocks to environment variables partition. This is done by changing CONFIG_ENV_SIZE or CONFIG_ENV_SIZE_FLEX macro. The variables are written to first block in the p

[U-Boot] [PATCH 0/3] Bad blocks and Partition support for OneNAND / Flex-OneNAND

2008-12-11 Thread Rohit Hagargundgi
Hi, The following patches improve partitioning and bad block support for OneNAND / Flex-OneNAND devices. The idea is to be able to use U-Boot as a utility to write images to flash. Any comments are much appreciated. Thanks, Rohit ___ U-Boot mailing

Re: [U-Boot] bootm command: is there any load address limitation for fdt?

2008-12-11 Thread Richard Retanubun
Jerry Van Baren wrote: > Wolfgang Denk wrote: >> Dear Richard Retanubun, >> >> In message <[EMAIL PROTECTED]> you wrote: >>> I am trying to limit the amount of memory needed to load and boot a linux >>> kernel (2.6.26) >>> to do this I loaded my fdt at address 0x20_ and uImage at 0x_30_ >

[U-Boot] [PATCH v2 4/4] Flex-OneNAND boundary setting command

2008-12-11 Thread Rohit Hagargundgi
Add command for changing Flex-OneNAND SLC / MLC boundary. Signed-off-by: Rohit Hagargundgi <[EMAIL PROTECTED]> --- common/cmd_onenand.c | 65 +++--- 1 files changed, 56 insertions(+), 9 deletions(-) diff --git a/common/cmd_onenand.c b/common/cmd_onen

[U-Boot] [PATCH v2 3/4] JFFS2 commands support for Flex-OneNAND

2008-12-11 Thread Rohit Hagargundgi
Add sanity check for the partitions. Some special cases handled by the check are: - A partition can span across erase regions. - A region can have odd number of blocks. Signed-off-by: Rohit Hagargundgi <[EMAIL PROTECTED]> --- common/cmd_jffs2.c | 65 +

[U-Boot] [PATCH v2 2/4] Environment support for Flex-OneNAND

2008-12-11 Thread Rohit Hagargundgi
Define and use CONFIG_ENV_ADDR_FLEX and CONFIG_ENV_SIZE_FLEX for storing environment variables. Signed-off-by: Rohit Hagargundgi <[EMAIL PROTECTED]> --- common/env_onenand.c | 10 ++ include/configs/apollon.h |2 ++ 2 files changed, 12 insertions(+), 0 deletions(-) diff --git

[U-Boot] [PATCH v2 1/4] Flex-OneNAND driver

2008-12-11 Thread Rohit Hagargundgi
This patch adds support for MLC OneNAND and Flex-OneNAND devices. The differences are like this. OneNAND features: 1. 2KB page 2. 64 pages per block. 3. Upto 4 writes to a page allowed. 4. 1 ECC register 5. OOB read and OOB write commands present. MLC OneN

[U-Boot] [PATCH v2 0/4] Flex-OneNAND support

2008-12-11 Thread Rohit Hagargundgi
Hi, This is a repost of support for Flex-OneNAND devices. Changes since v1(last post): - Rebased to u-boot-nand-flash. - Updated review comments from MTD list. - Support eraseregions with odd number of blocks. - JFFS2 commands support for Flex-OneNAND. I have split the patches so that it is more

[U-Boot] problem doing rebase in fresh git.denx.de/u-boot.git clone

2008-12-11 Thread Peter Vollmer
Hi all, I just tried to do a git bisect in my clone of the u-boot git repo to trace some commits in the past, but I noticed there is a problem doing a rebase in an unchanged fresh clone of git.denx.de/u-boot.git. Thats what I did: ~$ git --version git version 1.5.6.5 ~$ git clone git://git.denx.

Re: [U-Boot] U-boot build faileswitharmv5tel-reghat-linux-gnueabi-gcc (4.1.2)

2008-12-11 Thread Prafulla Wadaskar
> > The earlier I was using u-boot ver 1.1.6 and my nand driver > was working fine. > > With migration to latest u-boot I am always getting bad > block errors > > (Skipping bad block 0x) > could you be a few more specific? > Hi J Just now it is working I set chip_delay=1000 in board specifi

Re: [U-Boot] U-boot build failes witharmv5tel-reghat-linux-gnueabi-gcc (4.1.2)

2008-12-11 Thread Jean-Christophe PLAGNIOL-VILLARD
On 02:07 Thu 11 Dec , Prafulla Wadaskar wrote: > Hi Jean, > First of all sorry for late feedback > Thanks for your help. > I tried to apply the above patch but it has lot of diff, > On the other thread I have migrated to latest u-boot version and the problem > got resolved :-) > I think your p

[U-Boot] [U-Boot-v2][PATCH] imx27: correct READ ID cmd with 2k pages

2008-12-11 Thread frederic Rodo
Signed-off-by:Frederic Rodo <[EMAIL PROTECTED]> --- drivers/nand/nand_imx.c |5 - 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/drivers/nand/nand_imx.c b/drivers/nand/nand_imx.c index 3bf67de..fbef9b7 100644 --- a/drivers/nand/nand_imx.c +++ b/drivers/nand/nand_imx.c @@ -3

[U-Boot] [U-Boot-v2][PATCH] imx27: nandboot with 2k pages

2008-12-11 Thread frederic Rodo
Signed-off-by:Frederic Rodo <[EMAIL PROTECTED]> --- drivers/nand/nand_imx.c | 94 +-- include/asm-arm/arch-imx/imx-nand.h |2 +- 2 files changed, 79 insertions(+), 17 deletions(-) diff --git a/drivers/nand/nand_imx.c b/drivers/nand/nand_imx.c inde

[U-Boot] [RFC USB PATCH] USB ehci I/O function fix

2008-12-11 Thread Michael Trimarchi
>From e2f57c5cee96b506d9580cf93d4bd2a0de1c3e3d Mon Sep 17 00:00:00 2001 From: michael <[EMAIL PROTECTED]> Date: Thu, 11 Dec 2008 13:43:55 +0100 Subject: [PATCH] This patch add varius fix to the ehci. - fix ehci_readl, ehci_writel - introduce new define in ehci.h - introduce the handshake functio

Re: [U-Boot] SATA/IDE/etc... init

2008-12-11 Thread Mike Frysinger
btw, does nand_init() fall into the same category ? should i convert that to a "nand init" step ? -mike signature.asc Description: This is a digitally signed message part. ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listi

Re: [U-Boot] flash erasing: len alignment

2008-12-11 Thread Wolfgang Denk
Dear Mike, In message <[EMAIL PROTECTED]> you wrote: > > On Thursday 11 December 2008 05:22:49 Wolfgang Denk wrote: > > erase 4000 +1 > > when was this notation added ? i'm not familiar with it ... but until > recently, i was living with u-boot-1.1.6 ... Then you have that code: ...

Re: [U-Boot] bootm command: is there any load address limitation for fdt?

2008-12-11 Thread Jerry Van Baren
Wolfgang Denk wrote: > Dear Richard Retanubun, > > In message <[EMAIL PROTECTED]> you wrote: >> I am trying to limit the amount of memory needed to load and boot a linux >> kernel (2.6.26) >> to do this I loaded my fdt at address 0x20_ and uImage at 0x_30_ FWIIW, your FDT blob should be

Re: [U-Boot] [PATCH] env_sf: support embedded environments

2008-12-11 Thread Haavard Skinnemoen
Mike Frysinger wrote: > If both CONFIG_ENV_SECT_SIZE and CONFIG_ENV_SIZE are defined, and the sect > size is larger than the env size, then it means the env is embedded in a > block. So we have to save/restore the part of the sector which is not the > environment. Previously, saving the environme

Re: [U-Boot] U-Boot hangs in start_armboot()

2008-12-11 Thread Jean-Christophe PLAGNIOL-VILLARD
On 20:37 Thu 11 Dec , Roman Mashak wrote: > Hello > > 2008/12/11 Roman Mashak <[EMAIL PROTECTED]>: > > Briefly about the memory map: before remap NOR flash is at 0x0 and > > SDRAM 0x1000, after remap -- SDRAM is mapped at 0x0. I've built > > a U-Boot image linked to 0x0, as I want to loa

Re: [U-Boot] U-Boot hangs in start_armboot()

2008-12-11 Thread Roman Mashak
Hello 2008/12/11 Roman Mashak <[EMAIL PROTECTED]>: > Briefly about the memory map: before remap NOR flash is at 0x0 and > SDRAM 0x1000, after remap -- SDRAM is mapped at 0x0. I've built > a U-Boot image linked to 0x0, as I want to load it in RAM, so I linked > it to 0x0. > > Loading this ima

[U-Boot] [PATCH] env_sf: support embedded environments

2008-12-11 Thread Mike Frysinger
If both CONFIG_ENV_SECT_SIZE and CONFIG_ENV_SIZE are defined, and the sect size is larger than the env size, then it means the env is embedded in a block. So we have to save/restore the part of the sector which is not the environment. Previously, saving the environment in SPI flash in this setup

[U-Boot] [PATCH v3] Add support for boards where the NOR FLASH is not memory-mapped

2008-12-11 Thread Stefan Roese
This patch adds the CONFIG_FLASH_NOT_MEM_MAPPED define which can be used on boards where the NOR FLASH is not memory-mapped and special accessor functions are needed to access the NOR FLASH. This affects the memory commands (cmd_mem.c) and the environment (env_flash.c). Boards using CONFIG_FLASH_N

Re: [U-Boot] FSL DDR @ 83xx

2008-12-11 Thread Andre Schwarz
Kumar Gala schrieb: > > On Dec 9, 2008, at 12:01 PM, Andre Schwarz wrote: > >> Jon Loeliger schrieb: >>> On Mon, 2008-12-08 at 18:02 +0100, Andre Schwarz wrote: >>> Kim, I'd like to change my DDR setup code since it looks like my computed values are not perfectly stable on our 8

Re: [U-Boot] [PATCH v2] Add support for boards where the NOR FLASH is not memory-mapped

2008-12-11 Thread Stefan Roese
On Wednesday 10 December 2008, Scott Wood wrote: > On Wed, Dec 10, 2008 at 11:41:11AM +0100, Stefan Roese wrote: > > +void *board_flash_read_memcpy(void *__to, __const__ void *__from, int > > n); + > > +#if defined(CONFIG_FLASH_NOT_MEM_MAPPED) > > +static inline int flash_read(void *__to, __const__

[U-Boot] U-Boot hangs in start_armboot()

2008-12-11 Thread Roman Mashak
Hello I've just come across a problem. I have ARM-based board with its originally shipped bootloader (not U-Boot, and having less functionality) placed in NOR flash. However it initializes CPU, memory controller, does remap. Briefly about the memory map: before remap NOR flash is at 0x0 and SDRAM

Re: [U-Boot] flash erasing: len alignment

2008-12-11 Thread Mike Frysinger
On Thursday 11 December 2008 05:22:49 Wolfgang Denk wrote: > erase 4000 +1 when was this notation added ? i'm not familiar with it ... but until recently, i was living with u-boot-1.1.6 ... and any tips on which flash systems are known to support this syntax ? i can look at fixing t

[U-Boot] [PATCH] SATA: do not auto-initialize during boot

2008-12-11 Thread Mike Frysinger
Rather than have the board code initialize SATA automatically during boot, make the user manually run "sata init". This brings the SATA subsystem in line with common U-Boot policy. Along these lines, the "is_sata_supported()" hook is no longer needed, so scrub it from the tree. Signed-off-by: Mi

Re: [U-Boot] flash erasing: len alignment

2008-12-11 Thread Wolfgang Denk
Dear Mike Frysinger, In message <[EMAIL PROTECTED]> you wrote: > > the different flash subsystems dont exactly all operate the same, > specifically > when it comes to erasing. some require you to specify lengths that are > aligned exactly to the erase sector size whereas others are much more

Re: [U-Boot] U-boot build failes witharmv5tel-reghat-linux-gnueabi-gcc (4.1.2)

2008-12-11 Thread Prafulla Wadaskar
Hi Jean, First of all sorry for late feedback Thanks for your help. I tried to apply the above patch but it has lot of diff, On the other thread I have migrated to latest u-boot version and the problem got resolved :-) I think your patch is mainlined. But I am facing now new problem... The earlie

Re: [U-Boot] SATA/IDE/etc... init

2008-12-11 Thread Wolfgang Denk
Dear Mike Frysinger, In message <[EMAIL PROTECTED]> you wrote: > > the SATA/IDE/etc... layers seem to go against the u-boot policy when it comes > to initialization. in other words, if support for them is enabled, then they > are unconditionally initialized in board code (see ide_init / sata_init

  1   2   >