Re: [U-Boot-Users] Possible memory leak in cpu/ppc4xx/4xx_enet.c

2008-03-14 Thread Stefan Roese
Dave, On Saturday 15 March 2008, Dave Littell wrote: > I've seen an issue with my 1.3.1-based port of U-Boot where a relatively > large number of pings issued from the command line will ultimately fail > with the message: > > Cannot allocate private hw data for eth_device... > > I looked around th

Re: [U-Boot-Users] PPC440Epx Sequoia Flash-based size limitation?

2008-03-14 Thread Dave Littell
Stefan Roese wrote: [deletia] > > Another idea comes to my mind here. It's on my todo list to implement a > workaround for the 440EPx errata CHIP 11: > >> CHIP_11: End of memory range area restricted access. [deletia] > > One simple idea is to add : > > #define CONFIG_PRAM 1 > > to your U-Bo

[U-Boot-Users] Possible memory leak in cpu/ppc4xx/4xx_enet.c

2008-03-14 Thread Dave Littell
Hi all, I've seen an issue with my 1.3.1-based port of U-Boot where a relatively large number of pings issued from the command line will ultimately fail with the message: Cannot allocate private hw data for eth_device... I looked around this message and it seems that ppc_4xx_eth_initialize() mal

Re: [U-Boot-Users] PPC440Epx Sequoia Flash-based size limitation?

2008-03-14 Thread Dave Littell
Stefan Roese wrote: > > On Friday 14 March 2008, Dave Littell wrote: >> >> I'm working on an AMCC PPC440EPx platform that is similar to the AMCC >> >> Sequoia under U-Boot 1.3.1. I've copied the Sequoia board and >> >> configuration as a starting point, but I've run into a problem with the >> >> s

[U-Boot-Users] [PATCH] Add support for setting the I2C bus speed in fsl_i2c.c

2008-03-14 Thread Timur Tabi
Add support to the Freescale I2C driver (fsl_i2c.c) for setting and querying the I2C bus speed. Current 8[356]xx boards define the CFG_I2C_SPEED macro, but fsl_i2c.c ignores it and uses conservative value when programming the I2C bus speed. Signed-off-by: Timur Tabi <[EMAIL PROTECTED]> --- This

Re: [U-Boot-Users] Problem with flash cfi legacy mode

2008-03-14 Thread Michael Schwingen
Tor Krill wrote: > Im working on adding support for our board to u-boot. > > I use legacy flash mode for our boot-flash. I however have some problems > with it. > > When using jedec probe to identify our flash. Im unable to do so with our > 16bit device-id. In my opinion it seems like this actually

[U-Boot-Users] [PATCH 7/7] tsec: fix link detection for the RTL8211B PHY

2008-03-14 Thread Anton Vorontsov
RTL8211B sets link state register after autonegotiation complete, so with bootdelay=0 RTL8211B will report lack of the link. To fix this, we should wait for aneg to complete, even if the link is currently down. Signed-off-by: Anton Vorontsov <[EMAIL PROTECTED]> --- drivers/net/tsec.c |5 +++-

[U-Boot-Users] [PATCH 6/7] 83xx/fdt_support: let user specifiy FSL USB Dual-Role controller role

2008-03-14 Thread Anton Vorontsov
Linux understands "host" (default), "peripheral" and "otg" (broken). Though, U-Boot doesn't restrict dr_mode variable to these values (think of renames in future). Signed-off-by: Anton Vorontsov <[EMAIL PROTECTED]> --- board/freescale/mpc837xerdb/mpc837xerdb.c |1 + common/fdt_support.c

[U-Boot-Users] [PATCH 5/7] 83xx: define CONFIG_OF_STDOUT_VIA_ALIAS for the MPC837XERDB boards

2008-03-14 Thread Anton Vorontsov
This is primarily for the early console support. Signed-off-by: Anton Vorontsov <[EMAIL PROTECTED]> --- include/configs/MPC837XERDB.h |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/include/configs/MPC837XERDB.h b/include/configs/MPC837XERDB.h index 1a3d05f..033a5fb 10064

[U-Boot-Users] [PATCH 4/7] 83xx: initialize serdes for MPC837XRDB boards

2008-03-14 Thread Anton Vorontsov
On the MPC8377ERDB: 2 SATA and 2 PCI-E. On the MPC8378ERDB: 2 PCI-E On the MPC8379ERDB: 4 SATA Signed-off-by: Anton Vorontsov <[EMAIL PROTECTED]> --- MAKEALL |3 +++ Makefile | 17 + board/freescale/mpc837xer

[U-Boot-Users] [PATCH 3/7] 83xx: serdes setup routines

2008-03-14 Thread Anton Vorontsov
This patch adds few routines to configure serdes on 837x targets. Signed-off-by: Anton Vorontsov <[EMAIL PROTECTED]> --- cpu/mpc83xx/Makefile |1 + cpu/mpc83xx/serdes.c | 156 ++ include/asm-ppc/fsl_serdes.h | 25 +++ 3 files chan

[U-Boot-Users] [PATCH 2/7] 83xx: split COBJS onto separate lines

2008-03-14 Thread Anton Vorontsov
..plus get rid of some #ifdefs in the .c files. Signed-off-by: Anton Vorontsov <[EMAIL PROTECTED]> --- cpu/mpc83xx/Makefile | 14 -- cpu/mpc83xx/fdt.c|4 cpu/mpc83xx/pci.c|2 -- cpu/mpc83xx/qe_io.c |3 --- 4 files changed, 12 insertions(+), 11 deletions(-)

[U-Boot-Users] [PATCH 1/7] 83xx: nand support for MPC837XRDB boards

2008-03-14 Thread Anton Vorontsov
Signed-off-by: Anton Vorontsov <[EMAIL PROTECTED]> --- include/configs/MPC837XERDB.h | 24 ++-- 1 files changed, 22 insertions(+), 2 deletions(-) diff --git a/include/configs/MPC837XERDB.h b/include/configs/MPC837XERDB.h index 2da4f29..7c19d1e 100644 --- a/include/configs/M

Re: [U-Boot-Users] [RFC] Host tool to perform semiautomatic updates

2008-03-14 Thread Hoi-Ho Chan
> I thought about expect/cygwin but in my opinion is too hard to use for > the average Windows operator who expects just to: > - install the application by running an .exe or unzipping a .zip > - launching the application > - press a couple of buttons on GUI and see the result. > I forgot to

Re: [U-Boot-Users] [RFC] Host tool to perform semiautomatic updates

2008-03-14 Thread Hoi-Ho Chan
> 1) for Windows platform, is possible to generate one single .exe file > taht includes all the required stuff (such as libraries and runtime > components)? If not, it is possible to group all of them in one single > .zip file? Look for py2exe, it can convert your .py script into an executable

Re: [U-Boot-Users] [RFC] Host tool to perform semiautomatic updates

2008-03-14 Thread Nicolas Colombain
>> I thought about expect/cygwin but in my opinion is too hard to use for >> the average Windows operator who expects just to: >> - install the application by running an .exe or unzipping a .zip >> - launching the application >> - press a couple of buttons on GUI and see the result. >> >> I think

Re: [U-Boot-Users] [PATCH 02/20] [new uImage] Add support for new uImage format to mkimage tool

2008-03-14 Thread Bartlomiej Sieka
Luigi 'Comio' Mantellini wrote: > Hi A, Hi Luigi, > > I'm trying to use the newimage patches but I cannot compile the mkimage > tool because the uint8_t uint16_t, ... types are not defined into the > fdt.h include file (that uses them). Hmm, I've not seen this. How are you trying to compile mki

Re: [U-Boot-Users] [RFC] Host tool to perform semiautomatic updates

2008-03-14 Thread llandre
> How about expect? This should get you started: > http://en.wikipedia.org/wiki/Expect > > If you want to use Windows I'd go with expect through cygwin rather than > the native Windows port of expect. > > You can of course do all of this in something more modern like Python, > but that might b

Re: [U-Boot-Users] [PATCH] Add support for hammerhead AVR32 board

2008-03-14 Thread Wolfgang Denk
In message <[EMAIL PROTECTED]> you wrote: > > This patch adds support for our new AVR32 based board. ... > diff -Nur old/u-boot-avr32/cpu/at32ap/at32ap700x/gpio.c > new/u-boot-avr32/cpu/at32ap/at32ap700x/gpio.c > --- old/u-boot-avr32/cpu/at32ap/at32ap700x/gpio.c 2008-03-14 > 14:40:30.

Re: [U-Boot-Users] [RFC] Host tool to perform semiautomatic updates

2008-03-14 Thread Wolfgang Denk
In message <[EMAIL PROTECTED]> you wrote: > > I need a tool running on host (Linux or Windows) that is able to > interact with u-boot command line emulating a human operator. Also it > must be able to retrieve from a text file a sequential list of commands > it must issue. "expect" is your fri

[U-Boot-Users] [PATCH 2/2] Add MD5 support to the new uImage format

2008-03-14 Thread Bartlomiej Sieka
Signed-off-by: Bartlomiej Sieka <[EMAIL PROTECTED]> --- Makefile |2 +- common/image.c |6 -- include/image.h |1 + tools/.gitignore |1 + tools/Makefile | 11 +-- 5 files changed, 16 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index

[U-Boot-Users] [PATCH 1/2] Add the MD5 algorithm

2008-03-14 Thread Bartlomiej Sieka
MD5 supoprt is turned on by defining CONFIG_MD5, the digest can be then calculated using the md5() function -- see include/md5.h for details. Signed-off-by: Bartlomiej Sieka <[EMAIL PROTECTED]> --- include/md5.h| 23 lib_generic/Makefile |1 lib_generic/md

[U-Boot-Users] [PATCH 0/2] [new uImage] MD5 support

2008-03-14 Thread Bartlomiej Sieka
Two patches: - add MD5 support to U-Boot in general - enable MD5 protection for new uImage format Comments are welcome. Regards, Bartlomiej Bartlomiej Sieka (2): Add MD5 support to the new uImage format Add the MD5 algorithm

Re: [U-Boot-Users] dd to generate image.

2008-03-14 Thread Wolfgang Denk
In message <[EMAIL PROTECTED]> you wrote: > > I'm using dd to generate the u-boot+kernel+rootfs image. > I executed command like.. > dd if=rootfs.jffs2 of=kernel.img bs=1 seek=ROOTFS_OFFSET > But dd is quite slow, generating a 64MB image spends about 5 minutes. Hm... you must be on a very slow mac

[U-Boot-Users] [PATCH] Add support for hammerhead AVR32 board

2008-03-14 Thread Alex
Hi This patch adds support for our new AVR32 based board. It is against the latest u-boot-avr32.git. As suggested I removed 'flash.c'. And as Ben Warren suggested I named my network initialization 'board_eth_initialize( ... )'. Like this I don't need to ifdef the call to this function, right?

[U-Boot-Users] [PATCH] tools/setlocalversion: use a git-describe-ish format

2008-03-14 Thread Wolfgang Denk
Change the automatic local version to have the form -n-gSHA1SUMID, where 'n' is the number of commits since the last tag (i.e., 1.3.2-rc3). This makes it much easier to recognize "newer" versions and to see how much has been changed since the referenced tag. Stolen from Linux kernel's scr

Re: [U-Boot-Users] [PATCH 02/20] [new uImage] Add support for new uImage format to mkimage tool

2008-03-14 Thread Luigi 'Comio' Mantellini
Hi A, I'm trying to use the newimage patches but I cannot compile the mkimage tool because the uint8_t uint16_t, ... types are not defined into the fdt.h include file (that uses them). I just patched the fdt.h source adding the following code in the head: #ifndef __KERNEL__ typedef unsig

Re: [U-Boot-Users] PowerPC 405EP - NAND Flash (MT29F2G08AAC)

2008-03-14 Thread Stefan Roese
On Friday 14 March 2008, Pawel Pastuszak wrote: > My implemention is using the adddress for ALE/CLE. I did get it working and > works great. Ahh, I see. Good. > I am providing the code that i have my nand flash working with. > > P.S. Stefan thanks for the help. No problem. Best regards, Stefan

Re: [U-Boot-Users] PowerPC 405EP - NAND Flash (MT29F2G08AAC)

2008-03-14 Thread Pawel Pastuszak
Stefan, My implemention is using the adddress for ALE/CLE. I did get it working and works great. I am providing the code that i have my nand flash working with. P.S. Stefan thanks for the help. Pawel On Fri, Mar 14, 2008 at 3:15 AM, Stefan Roese <[EMAIL PROTECTED]> wrote: > On Thursday 13 Mar

Re: [U-Boot-Users] [RFC] Host tool to perform semiautomatic updates

2008-03-14 Thread Ben Warren
llandre wrote: > Hi all, > > I need a tool running on host (Linux or Windows) that is able to > interact with u-boot command line emulating a human operator. Also it > must be able to retrieve from a text file a sequential list of commands > it must issue. > One of the purpose is to have a simpl

Re: [U-Boot-Users] [RFC] Host tool to perform semiautomatic updates

2008-03-14 Thread Øyvind Repvik
llandre wrote: > Hi all, > > I need a tool running on host (Linux or Windows) that is able to > interact with u-boot command line emulating a human operator. Also it > must be able to retrieve from a text file a sequential list of commands > it must issue. > One of the purpose is to have a simp

[U-Boot-Users] [RFC] Host tool to perform semiautomatic updates

2008-03-14 Thread llandre
Hi all, I need a tool running on host (Linux or Windows) that is able to interact with u-boot command line emulating a human operator. Also it must be able to retrieve from a text file a sequential list of commands it must issue. One of the purpose is to have a simple procedure to perform on-th

[U-Boot-Users] Identify an U-boot compilation

2008-03-14 Thread Luigi 'Comio' Mantellini
Hi All, Is there a symbol (like __U_BOO_T__) that is defined during U-Boot compilation and that I can test into my .c/.h source files? I have a self-made library that is shared between the bootloader and the linux kernel. Obviously the source paths and includes are different in the two environmen

Re: [U-Boot-Users] Hi, friends, the question about the u-boot and device tree?

2008-03-14 Thread Jerry Van Baren
郭劲 wrote: > Hi,friends, > > I¡¡made follow define on my MPC8360EMDS.h file. Is it enough? The uboot still > did > not fill the zero frequency on dtb. I think the ft_cpu_setup and > ft_board_setup > function have been run. > > > /* pass open firmware flat tree */ > #define CONFIG_OF_FLAT_TREE

[U-Boot-Users] console kernel parameter problem

2008-03-14 Thread Fabio Ubaldi
Hi all, I'm working with a board with a MPC8548 processor. I built the uboot (version 1.3.0), the DTS file (myboard.dtb) and a kernel 2.6.21 . When I try to boot the kernel via NFS I have some exception mode when parsing the kernel parameters. Specifically I obtained an error during the parsing of

[U-Boot-Users] [PATCH] mgcoge: update defaultkonfiguration

2008-03-14 Thread Heiko Schocher
Hello, following patch fixes the Defaultkonfiguration for the mgcoge board from keymile. Signed-off-by: Heiko Schocher <[EMAIL PROTECTED]> --- include/configs/mgcoge.h |5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/include/configs/mgcoge.h b/include/configs/mgcoge.h

Re: [U-Boot-Users] dd to generate image.

2008-03-14 Thread Richard Genoud
2008/3/14, Tim Chen <[EMAIL PROTECTED]>: > Hi, > I'm using dd to generate the u-boot+kernel+rootfs image. > I executed command like.. > dd if=rootfs.jffs2 of=kernel.img bs=1 seek=ROOTFS_OFFSET > But dd is quite slow, generating a 64MB image spends about 5 minutes. > I have changed bs=1 to bs=1

[U-Boot-Users] dd to generate image.

2008-03-14 Thread Tim Chen
Hi, I'm using dd to generate the u-boot+kernel+rootfs image. I executed command like.. dd if=rootfs.jffs2 of=kernel.img bs=1 seek=ROOTFS_OFFSET But dd is quite slow, generating a 64MB image spends about 5 minutes. I have changed bs=1 to bs=1024 or bigger, but the outputted image size is wrong, too

Re: [U-Boot-Users] PowerPC 405EP - NAND Flash (MT29F2G08AAC)

2008-03-14 Thread Stefan Roese
On Thursday 13 March 2008, Pawel Pastuszak wrote: > Yes i am where that there is no NAND controller so did that already and i > see stuff happing on my scope. I thought that i was missing something for > this flash chip. > > I am attaching my nand controllor code could any body tell me if i am > mi

Re: [U-Boot-Users] PPC440Epx Sequoia Flash-based size limitation?

2008-03-14 Thread Niklaus Giger
Hi Dave Dave Littell wrote: > Hi all, > > I'm working on an AMCC PPC440EPx platform that is similar to the AMCC We have also a PPC440EPx based board (HCU5, in the u-boot tree). > Sequoia under U-Boot 1.3.1. I've copied the Sequoia board and > configuration as a starting point, but I've run into