Re: [U-Boot-Users] How to specify the size of bin?

2008-05-16 Thread Stefan Roese
On Friday 16 May 2008, 甜瓜 wrote: All Walnut boards have 512k of NOR FLASH. Do you really have an original IBM/AMCC Walnut or a different custom 405GP board? Yes, my board is a custom board DHT-Walut with 32MB SDRAM and 512k of boot flash AMD 29LV040B. Details are listed in:

Re: [U-Boot-Users] How to specify the size of bin?

2008-05-16 Thread 甜瓜
2008/5/16 Wolfgang Denk [EMAIL PROTECTED]: In message [EMAIL PROTECTED] you wrote: 1. Both default config of u-boot and a DHT-Walut-patched config generate 256KB bin, but the flash on board is 512KB. So I think I should get a 512KB bin for flash writing. Why? Do you think on devices with

[U-Boot-Users] PXA255 code in start.S

2008-05-16 Thread Amit Kumar
Hello, Kindly refer code at path UBOOT / u-boot / cpu / pxa / start.S Code: .macro irq_save_user_regs sub sp, sp, #S_FRAME_SIZE stmia sp, {r0 - r12}/* Calling r0-r12 */ add r8, sp, #S_PC stmdb r8, {sp, lr}^

[U-Boot-Users] Boot from NAND FLASH

2008-05-16 Thread jiale.Yin
Our board is reference with the mpc8313erdb,and its design is to link CS0 to the NAND FLASH, so I have to boot from NAND other than NOR.In /board/mpc8313erdb I can find some files, such as nand_boot.c, nand.c and nand_ecc.c, which I think are related with booting from NAND.What I want to know

[U-Boot-Users] [RFC/PATCH 5/6] SPI Flash: Add sf command

2008-05-16 Thread Haavard Skinnemoen
This adds a new command, sf which can be used to manipulate SPI flash. Currently, initialization, reading, writing and erasing is supported. Signed-off-by: Haavard Skinnemoen [EMAIL PROTECTED] --- common/Makefile |1 + common/cmd_sf.c | 191

[U-Boot-Users] [RFC/PATCH 6/6] Add support for environment in SPI flash

2008-05-16 Thread Haavard Skinnemoen
This is pretty incomplete...it doesn't handle reading the environment before relocation, it doesn't support redundant environment, and it doesn't support embedded environment. But apart from that, it does seem to work. Signed-off-by: Haavard Skinnemoen [EMAIL PROTECTED] --- common/Makefile |

[U-Boot-Users] [RFC/PATCH 4/6] SPI Flash subsystem

2008-05-16 Thread Haavard Skinnemoen
This adds a new SPI flash subsystem. Currently, only AT45 DataFlash in non-power-of-two mode is supported, but some preliminary support for other flash types is in place as well. Signed-off-by: Haavard Skinnemoen [EMAIL PROTECTED] --- Makefile |2 +

[U-Boot-Users] [PATCH] DTT: Issue one-shot command on AD7414 (LM75 code) to read temp

2008-05-16 Thread Stefan Roese
On AD7414 the first value upon bootup is not read correctly. This is most likely because of the 800ms update time of the temp register in normal update mode. To get current values each time we issue the dtt command including upon powerup we switch into one-short mode. This patch fixes the problem

[U-Boot-Users] MPC8360E - 10BaseT Ethernet - NA??

2008-05-16 Thread Russell McGuire
All, This is not specific to U-boot, but can definitely be addressed within U-boot drivers network drivers, in the Freescale 83xx crowd. If anyone has suggestions as to a better list to post this in, let me know. I have a working driver for 100BaseT with a National DP83763 GigE Phyter V

Re: [U-Boot-Users] PXA255 code in start.S

2008-05-16 Thread Jean-Christophe PLAGNIOL-VILLARD
On 12:14 Fri 16 May , Amit Kumar wrote: Hello, Kindly refer code at path UBOOT / u-boot / cpu / pxa / start.S Code: .macro irq_save_user_regs sub sp, sp, #S_FRAME_SIZE stmia sp, {r0 - r12}

[U-Boot-Users] [RFC/PATCH 1/6] Move definition of container_of() to common.h

2008-05-16 Thread Haavard Skinnemoen
AVR32 and AT91SAM9 both have their own identical definitions of container_of() taken from the Linux kernel. Move it to common.h so that all architectures can use it. container_of() is already used by some drivers, and will be used extensively by the new and improved SPI API. Signed-off-by:

[U-Boot-Users] [PATCH] soft_i2c: Pull SDA high before reading

2008-05-16 Thread Haavard Skinnemoen
Spotted by Dean Capindale. Systems that support open-drain GPIO properly are allowed provide an empty I2C_TRISTATE define. However, this means that we need to be careful not to drive SDA low when the slave is expected to respond. This patch adds a missing I2C_SDA(1) to read_byte() required to

[U-Boot-Users] [RFC/PATCH 3/6] atmel_spi: Driver for the Atmel SPI controller

2008-05-16 Thread Haavard Skinnemoen
From: Hans-Christian Egtvedt [EMAIL PROTECTED] This adds a driver for the SPI controller found on most AT91 and AVR32 chips, implementing the new SPI API. Changed in v4: - Update to new API - Handle zero-length transfers appropriately. The user may send a zero-length SPI transfer with

Re: [U-Boot-Users] [RFC/PATCH 1/6] Move definition of container_of() to common.h

2008-05-16 Thread Jean-Christophe PLAGNIOL-VILLARD
On 11:10 Fri 16 May , Haavard Skinnemoen wrote: AVR32 and AT91SAM9 both have their own identical definitions of container_of() taken from the Linux kernel. Move it to common.h so that all architectures can use it. container_of() is already used by some drivers, and will be used

Re: [U-Boot-Users] [RFC/PATCH 2/6] SPI API improvements

2008-05-16 Thread Guennadi Liakhovetski
On Fri, 16 May 2008, Haavard Skinnemoen wrote: From: Haavard Skinnemoen [EMAIL PROTECTED] This patch gets rid of the spi_chipsel table and adds a handful of new functions that makes the SPI layer cleaner and more flexible. Ok, this looks good to me now. And it works too. Just one question:

[U-Boot-Users] Information regarding SSH access to DENX Servers (Debian SSL vulnerability)

2008-05-16 Thread Frank Lichtenheld
Hi. As you might have noticed, there was a big problem discovered in the Debian OpenSSL packages that caused generated SSL keys to be very weak. Among others this affects keys generated for SSH authentication. For more information see the security advisories for Debian OpenSSL:

[U-Boot-Users] [PATCH] Fix NAND erase progress error

2008-05-16 Thread Hugo Villeneuve
This patch fixes an error when reporting the NAND erase progress as in this example: U-Boot nand erase 800 NAND erase: device 0 offset 0x0, size 0x800 Erasing at 0x0 -- 6400% complete. Signed-off-by: Hugo Villeneuve [EMAIL PROTECTED] --- drivers/mtd/nand/nand_util.c | 11

[U-Boot-Users] smc911x: cannot pass the MAC address from U-Boot to the Linux driver via chip registers

2008-05-16 Thread Jens Gehrlein
Hi, in the smc911x U-Boot driver the call of eth_halt() causes a reset of the ethernet controller. This also resets the MAC address in the according chip registers. This makes it impossible to pass the MAC address to an ARM kernel because the smc911x linux driver reads the MAC address from

Re: [U-Boot-Users] U-Boot help request for OHCI driver with CPU cache on

2008-05-16 Thread Markus Klotzbücher
Hi Matthias, Matthias Fuchs [EMAIL PROTECTED] writes: On Thursday 15 May 2008 10:37:04 Markus Klotzbücher wrote: Could you suggest me how to solve the problem? Is there any specific part of USB driver that requires cache handling? None that I'm aware of, but I could imagine that enabling

Re: [U-Boot-Users] [PATCH] mips: Call 'nand_init()' in generic board initialization when CONFIG_CMD_NAND is set

2008-05-16 Thread Shinya Kuribayashi
Hi Jason, Jason McMullan wrote: diff --git a/lib_mips/board.c b/lib_mips/board.c index 1645f2c..e33070d 100644 --- a/lib_mips/board.c +++ b/lib_mips/board.c @@ -28,6 +28,7 @@ #include version.h #include net.h #include environment.h +#include nand.h This will break build. According to

Re: [U-Boot-Users] smc911x: cannot pass the MAC address from U-Boot to the Linux driver via chip registers

2008-05-16 Thread Wolfgang Denk
In message [EMAIL PROTECTED] you wrote: in the smc911x U-Boot driver the call of eth_halt() causes a reset of the ethernet controller. This also resets the MAC address in the according chip registers. This makes it impossible to pass the MAC address to an ARM kernel because the smc911x

Re: [U-Boot-Users] [PATCH] NAND read/write.jffs2 fix

2008-05-16 Thread Scott Wood
Morten Ebbell Hestnes wrote: + nand read[.jffs2, .i] addr off|partition size\n + nand write[.jffs2, .i] addr off|partition size\n What about .e? Is it just for backwards compatibility that we have three commands that mean the same thing? Do we want to document all three?

[U-Boot-Users] [PATCH V2] ppc4xx: Canyonlands: Disable PCIe0/SATA in dev-tree depending on selection

2008-05-16 Thread Stefan Roese
When SATA is selected (via jumper J6) we need to disable the first PCIe node in the device tree, so that Linux doesn't initialize it. Otherwise the Linux SATA driver will fail to detect the devices. The same goes the other way around too. So if PCIe is selected we need to disable the SATA node in

Re: [U-Boot-Users] [PATCH] mips: Call 'nand_init()' in genericboard initialization when CONFIG_CMD_NAND is set

2008-05-16 Thread McMullan, Jason
On Sat, 2008-05-17 at 01:26 +0900, Shinya Kuribayashi wrote: Jason McMullan wrote: +#include nand.h This will break build. According to the blackfin, we can't even include nand.h if it's not configured. That is, of course, why I originally just had 'extern int nand_init(void)' instead of

Re: [U-Boot-Users] Boot from NAND FLASH

2008-05-16 Thread Scott Wood
On Fri, May 16, 2008 at 02:54:34PM +0800, jiale.Yin wrote: Our board is reference with the mpc8313erdb,and its design is to link CS0 to the NAND FLASH, so I have to boot from NAND other than NOR.In /board/mpc8313erdb I can find some files, such as nand_boot.c, nand.c and nand_ecc.c, I assume

Re: [U-Boot-Users] [PATCH] Fix NAND erase progress error

2008-05-16 Thread Scott Wood
On Fri, May 16, 2008 at 02:39:17PM -0400, Hugo Villeneuve wrote: This patch fixes an error when reporting the NAND erase progress as in this example: U-Boot nand erase 800 NAND erase: device 0 offset 0x0, size 0x800 Erasing at 0x0 -- 6400% complete. So the problem is when trying

Re: [U-Boot-Users] [PATCH] Fix NAND erase progress error

2008-05-16 Thread Hugo Villeneuve
Scott Wood wrote: On Fri, May 16, 2008 at 02:39:17PM -0400, Hugo Villeneuve wrote: This patch fixes an error when reporting the NAND erase progress as in this example: U-Boot nand erase 800 NAND erase: device 0 offset 0x0, size 0x800 Erasing at 0x0 -- 6400% complete. So the

Re: [U-Boot-Users] [PATCH] Fix NAND erase progress error

2008-05-16 Thread Scott Wood
Hugo Villeneuve wrote: Scott Wood wrote: That should be an error. What should be an error, the fact that 6400% is displayed, or the fact that the user is trying to erase less than a block? :) The latter. It should tell the user what the erase block size is, and abort. -Scott

Re: [U-Boot-Users] [PATCH] Fix NAND erase progress error

2008-05-16 Thread Hugo Villeneuve
Scott Wood wrote: Hugo Villeneuve wrote: Scott Wood wrote: That should be an error. What should be an error, the fact that 6400% is displayed, or the fact that the user is trying to erase less than a block? :) The latter. It should tell the user what the erase block size is, and abort.

Re: [U-Boot-Users] [PATCH] Fix NAND erase progress error

2008-05-16 Thread Scott Wood
Hugo Villeneuve wrote: I would be perfectly happy if the mtd driver reported a warning when the requested erase size is not an exact multiple of the block size, and allow the whole block erase to proceed. Then my patch would make sense. That's what the mtd-2.6.22.1 branch in the NAND

Re: [U-Boot-Users] [PATCH] Fix NAND erase progress error

2008-05-16 Thread Hugo Villeneuve
Scott Wood wrote: Hugo Villeneuve wrote: I would be perfectly happy if the mtd driver reported a warning when the requested erase size is not an exact multiple of the block size, and allow the whole block erase to proceed. Then my patch would make sense. That's what the mtd-2.6.22.1

Re: [U-Boot-Users] [PATCH] Fix NAND erase progress error

2008-05-16 Thread Scott Wood
Hugo Villeneuve wrote: Scott Wood wrote: Hugo Villeneuve wrote: I would be perfectly happy if the mtd driver reported a warning when the requested erase size is not an exact multiple of the block size, and allow the whole block erase to proceed. Then my patch would make sense. That's what

Re: [U-Boot-Users] [PATCH] Fix NAND erase progress error

2008-05-16 Thread Hugo Villeneuve
Scott Wood wrote: Hugo Villeneuve wrote: Scott Wood wrote: Hugo Villeneuve wrote: I would be perfectly happy if the mtd driver reported a warning when the requested erase size is not an exact multiple of the block size, and allow the whole block erase to proceed. Then my patch would make

[U-Boot-Users] [PATCH] PPC40x: Rework CFG_INIT_DCACHE_CS Block to Avoid Machine Checks

2008-05-16 Thread Grant Erickson
This patch lays the ground work for moving out-of-assembly and unifying the SDRAM initialization code for PowerPC 405EX[r]-based boards. include/ppc405.h: Wrapped casts in EBC mnemonics with a macro such that the mnemonics can be used from assembly as well as from C. cpu/ppc4xx/start.S:

[U-Boot-Users] [PATCH]

2008-05-16 Thread Grant Erickson
This patch continues laying the ground work for moving out-of-assembly and unifying the SDRAM initialization code for PowerPC 405EX[r]-based boards. To do so, this deduces by one the number of nearly-identical DRAM ECC initialization implementations for PowerPC 4xx processors utilizing a DDR/DDR2

Re: [U-Boot-Users] [PATCH] Fix NAND erase progress error

2008-05-16 Thread Scott Wood
Hugo Villeneuve wrote: Either way, I think my patch, or a variation of it, should need to be applied to get rid of that ugly 6400%. Agreed -- the patch in mtd-2.6.22.1 takes care of the percentage issue at the same time as issuing the warning. -Scott