Re: [U-Boot] [ARM] Environment variables not available during console initialisation?

2009-02-03 Thread Guennadi Liakhovetski
Morning Wolfgang On Tue, 3 Feb 2009, Wolfgang Denk wrote: Why not? The only thing env_nand.c needs to know is the address of the environment in memory - it does not care if it's embedded or elsewhere. I think we should not artifically split this into two cases when it's really one. There

Re: [U-Boot] [PATCH 01/27 v2] Blackfin: bfin_mac: force board_get_enetaddr() usage

2009-02-03 Thread Wolfgang Denk
Dear Mike Frysinger, In message 200902021937.26246.vap...@gentoo.org you wrote: Please change: If the hardware design mandates that the MAC address is stored in some special place, like EEPROM etc., then the board specific init code (like the board-specific misc_init_r()

Re: [U-Boot] [ARM] Environment variables not available during console initialisation?

2009-02-03 Thread Wolfgang Denk
Dear Guennadi Liakhovetski, In message pine.lnx.4.64.0902030842390.4...@axis700.grange you wrote: I think we should not artifically split this into two cases when it's really one. There is two things that need to be done: (1) nand_spl must locate a valid copy of the environment and load

Re: [U-Boot] [PATCH 1/2] flash/cfi_flash: Use virtual sector start address, not phys

2009-02-03 Thread Pieter
Becky Bruce wrote: include/flash.h was commented to say that the address in flash_info-start was a physical address. However, from u-boot's point of view, and looking at most flash code, it makes more sense for this to be a virtual address. So I corrected the comment to indicate that this

[U-Boot] Solved: need help with flash in U-boot 2009

2009-02-03 Thread Pieter
Pieter wrote: Hi all We recently ported a MPC8548 board from U-Boot 1.2 to U-Boot 2009.01. U-Boot seems to work fine except for Flash operations, and we can boot Linux 2.6.27 kernel using nfs. We are using CFI ( AMD nor flash). The problem presented it self as the inability to erase a

[U-Boot] [PATCH] usbtty: Added additional usbtty_configured() checks to get around hang when usb is not connected but multi-io is set up.

2009-02-03 Thread Atin Malaviya
This adds additional checks in usbtty_puts() and usbtty_putc() to get around a hang when usb is not connected but multi-io (setenv stdout serial,usbtty etc) is set up by the user. We hang because the buffers get full because usb isn't connected. --- drivers/serial/usbtty.c |9 - 1

Re: [U-Boot] [PATCH 1/1] arm: fix some arch_number definition

2009-02-03 Thread Guennadi Liakhovetski
Sorry for a late reply, but it seems not to be upstream yet, so On Thu, 22 Jan 2009, Jean-Christophe PLAGNIOL-VILLARD wrote: On 07:51 Thu 22 Jan , Jens Gehrlein wrote: Jean-Christophe PLAGNIOL-VILLARD schrieb: diff --git a/board/imx31_phycore/imx31_phycore.c

Re: [U-Boot] u-boot environment variable storage

2009-02-03 Thread twebb
Does u-boot have support for storage of environment variables in file form? For example, in a file on a FAT32 file system residing on a MMC card? The only reason I can think you'd want to do that is to be able to set environment variables in linux user land. But then I have a small

[U-Boot] [PATCH] ppc4xx: Make PCIE support selectable

2009-02-03 Thread Dirk Eibach
On some platforms PCIE support is not required, but would be included because the cpu supports it. To reduce fooprint it is now configurable via CONFIG_PCI_DISABLE_PCIE. Signed-off-by: Dirk Eibach eib...@gdsys.de --- cpu/ppc4xx/4xx_pci.c |5 +++-- cpu/ppc4xx/4xx_pcie.c |2 +- 2 files

Re: [U-Boot] [PATCH 1/2] flash/cfi_flash: Use virtual sector start address, not phys

2009-02-03 Thread Kumar Gala
On Feb 3, 2009, at 2:53 AM, Pieter wrote: static inline void flash_unmap(flash_info_t *info, flash_sect_t sect, unsigned int offset, void *addr) { -unsigned int byte_offset = offset * info-portwidth; - -unmap_physmem(addr, flash_sector_size(info, sect) - byte_offset);

[U-Boot] [PATCH] Add support for setting environment variable from RAM.

2009-02-03 Thread Eric Nelson (Boundary Devices)
This is useful for allowing scripts to read environment variables from file, among other things. This is a slightly modified version of what Alessandro submitted to the mailing list last July: http://www.mail-archive.com/u-boot-us...@lists.sourceforge.net/msg07932.html I changed the

Re: [U-Boot] [PATCH] Add support for setting environment variable from RAM.

2009-02-03 Thread Peter Tyser
Hi Eric, On Tue, 2009-02-03 at 08:28 -0700, Eric Nelson (Boundary Devices) wrote: / + * Set a new environment variable from RAM. + * Requires three arguments: the variable name, a memory address and a length. + * + *

Re: [U-Boot] [ARM] Environment variables not available during console initialisation?

2009-02-03 Thread Scott Wood
Guennadi Liakhovetski wrote: On Tue, 3 Feb 2009, Wolfgang Denk wrote: I don't see what nand(_spl) maintainers should comment here - their code is so far completley unaffected. We just agreed on needing another call to the load routine. We still have the other possibility - properly

Re: [U-Boot] U-Boot Hanging

2009-02-03 Thread Feng Kan
Hi Afzal: Sounds like an issue where the fixed DRAM init did not work as it should. Try to pull the latest version of U-Boot, see if that helps. You may want to pull The latest from Stefan's tree as well. Feng Kan AMCC Software -Original Message- From: u-boot-boun...@lists.denx.de

Re: [U-Boot] [PATCH] Add support for the digsy MTC board.

2009-02-03 Thread Grzegorz Bernacki
Wolfgang Denk wrote: Dear Grzegorz, In message 12331552753467-git-send-email-...@semihalf.com you wrote: This is the InterControl custom device based on the MPC5200B chip. ... General comment: there is a lot of code which could use a few comments so the reader has a chance to understand

[U-Boot] [PATCH v2] Add support for the digsy MTC board.

2009-02-03 Thread Grzegorz Bernacki
This is the InterControl custom device based on the MPC5200B chip. Signed-off-by: Grzegorz Bernacki g...@semihalf.com --- Version 2: - use I/O accessor functions instead of volatile pointer - set ethernet address only if not set in environment - add some comments and some style cleanup

[U-Boot] U-Boot Hanging

2009-02-03 Thread Afzal Nadirshah
Hi, I have compiled u-boot (for nand flash, using canyonlands_nand_config) for the canyonlands board having a PPC460Ex. I have flashed the u-boot-nand.bin to the NAND flash. When I boot from the NAND flash the u-boot starts giving outputs onto minicom, but it hangs after just a few

[U-Boot] lcd_putc bug?

2009-02-03 Thread Derek Ou
In the lcd_putc() of common/lcd.c, line 189 handles tab '\t'. And the following lines: console_col |= 8; console_col = ~7; seems to have problems. If console_col is 9, it will become 8 after the above two lines, which means instead of tab of 8 spaces, it goes back 1.

Re: [U-Boot] [PATCH 01/27 v2] Blackfin: bfin_mac: force board_get_enetaddr() usage

2009-02-03 Thread Mike Frysinger
On Tuesday 03 February 2009 03:16:27 Wolfgang Denk wrote: Dear Mike Frysinger, In message 200902021937.26246.vap...@gentoo.org you wrote: Please change: If the hardware design mandates that the MAC address is stored in some special place, like EEPROM etc., then the board

[U-Boot] [GIT PULL] Please pull mpc5xxx tree

2009-02-03 Thread John Rigby
The following changes since commit 92c20fbd3a7788c1a154f50a3f44f28a7763f99a: John Rigby (1): ADS5121 DIU Make inclusion of FSL logo optional are available in the git repository at: http://git.denx.de/u-boot-mpc5xxx.git master John Rigby (2): ADS5121 DIU Add diu_bmp_addr

[U-Boot] using more that 2gig of Memory.

2009-02-03 Thread hamoshame Lamoteku
I have search through the archives, and didn't find anything. Has anyone setup u-boot to configure more than 2gig of main memory? Where does u-boot go in the 36 bit world.   is it possible to configure 2gig on each DDR controller of the MPC8572 and have u-boot run right out of the box? I

Re: [U-Boot] [GIT PULL] Please pull mpc5xxx tree

2009-02-03 Thread Wolfgang Denk
Dear John, In message 498876f3.2070...@freescale.com you wrote: Wolfgang, The following changes since commit 92c20fbd3a7788c1a154f50a3f44f28a7763f99a: John Rigby (1): ADS5121 DIU Make inclusion of FSL logo optional are available in the git repository at:

[U-Boot] [PATCH 6/7] Blackfin: dynamically update UART speed when initializing

2009-02-03 Thread Mike Frysinger
Previously, booting over the UART required the baud rate to be known ahead of time. Using a bit of tricky simple math, we can calculate the new board rate based on the old divisors. Signed-off-by: Mike Frysinger vap...@gentoo.org Signed-off-by: Robin Getz rg...@blackfin.uclinux.org ---

[U-Boot] [PATCH 5/7] Blackfin: add support for fast SPI reads with Boot ROM

2009-02-03 Thread Mike Frysinger
Newer Blackfin boot roms support using the fast SPI read command rather than just the slow one. If the functionality is available, then use it. Signed-off-by: Mike Frysinger vap...@gentoo.org --- cpu/blackfin/initcode.c | 25 + 1 files changed, 17 insertions(+), 8

[U-Boot] [PATCH 7/8] drivers/block/ahci: Fix pci mapping bug

2009-02-03 Thread Becky Bruce
The code assumes that the pci bus address and the virtual address used to access a region are the same, but they might not be. Fix this assumption. Signed-off-by: Becky Bruce bec...@kernel.crashing.org --- drivers/block/ahci.c |7 ++- 1 files changed, 2 insertions(+), 5 deletions(-)

[U-Boot] [PATCH 4/8] mpc86xx: Add support to populate addr map based on BATs

2009-02-03 Thread Becky Bruce
If CONFIG_ADDR_MAP is enabled, update the address map whenever we write a bat. Signed-off-by: Becky Bruce bec...@kernel.crashing.org --- cpu/mpc86xx/cpu_init.c | 27 +++ include/asm-ppc/mmu.h | 16 +--- lib_ppc/bat_rw.c | 28

[U-Boot] [PATCH 5/8] mpc8641hpcn: Clean up PCI mapping concepts

2009-02-03 Thread Becky Bruce
Clean up PCI mapping concepts in the 8641 config - rename _BASE to _BUS, as it's actually a PCI bus address, separate virtual and physical addresses into _VIRT and _PHYS, and use each appopriately. Signed-off-by: Becky Bruce bec...@kernel.crashing.org ---

[U-Boot] [PATCH 1/8] mpc8641hpcn: Set up outbound pci windows before inbound

2009-02-03 Thread Becky Bruce
Because the inbound pci windows are mapped generously, set up the more specific outbound windows first. This way, when we search the pci regions for something, we will hit on the more specific region. This can actually be a problem on systems with large amounts of RAM. Signed-off-by: Becky

[U-Boot] [PATCH 3/8] powerpc: Move duplicated BAT defines to mmu.h

2009-02-03 Thread Becky Bruce
The BAT fields are architected; there's no need for these to be in cpu-specific files. Drop the duplication and move these to include/asm-ppc/mmu.h. Also, remove the BL_xxx defines that were only used by the alaska board, and switch to using the BATU_BL_xxx defines used by all the other boards.

[U-Boot] Pull request: u-boot-usb

2009-02-03 Thread Remy Bohmer
The following changes since commit 6c6e042ab3bbfb5428e4cdeb38fa27728c63afdd: Wolfgang Denk (1): Merge branch 'master' of git://git.denx.de/u-boot-arm are available in the git repository at: git://git.denx.de/u-boot-usb.git master Remy Bohmer (1): Compile warning fix in

Re: [U-Boot] [PATCH] Add support for setting environment variable from RAM.

2009-02-03 Thread Eric Nelson
Hello Peter, Peter Tyser wrote: Hi Eric, On Tue, 2009-02-03 at 08:28 -0700, Eric Nelson (Boundary Devices) wrote: / + * Set a new environment variable from RAM. + * Requires three arguments: the variable name, a

Re: [U-Boot] [GIT PULL] Please pull mpc5xxx tree

2009-02-03 Thread John Rigby
Wolfgang, You are right, in some rebasing I neglected to include the --author. I will fix this and send a new pull req. John Wolfgang Denk wrote: Dear John, In message 498876f3.2070...@freescale.com you wrote: Wolfgang, The following changes since commit

[U-Boot] [PATCH 3/7] Blackfin: set default voltage levels for BF538/BF539 parts

2009-02-03 Thread Mike Frysinger
Signed-off-by: Mike Frysinger vap...@gentoo.org --- cpu/blackfin/initcode.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/cpu/blackfin/initcode.c b/cpu/blackfin/initcode.c index b2c8238..ffa5f61 100644 --- a/cpu/blackfin/initcode.c +++ b/cpu/blackfin/initcode.c @@

[U-Boot] [PATCH 4/7] Blackfin: check for reserved settings in DDR MMRs

2009-02-03 Thread Mike Frysinger
Some bits of the DDR MMRs should not be set. If they do, bad things may happen (like random failures or hardware destruction). Signed-off-by: Mike Frysinger vap...@gentoo.org --- cpu/blackfin/initcode.c |7 +++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git

[U-Boot] [PATCH 2/7] Blackfin: use on-chip syscontrol() rom function when available

2009-02-03 Thread Mike Frysinger
Newer Blackfin's have an on-chip rom with a syscontrol() function that needs to be used to properly program the memory and voltage settings as it will include (possibly critical) factory tested bias values. Signed-off-by: Mike Frysinger vap...@gentoo.org --- cpu/blackfin/initcode.c | 58

Re: [U-Boot] [PATCH] Add support for setting environment variable from RAM.

2009-02-03 Thread Wolfgang Denk
Dear Eric, In message 4988936e.3070...@boundarydevices.com you wrote: In the email thread you mentioned above, Detlev mentions 2 alternatives to the ramenv command - loading a uImage script and running it via autoscr, or modifying autoscr to be able to raw files (non-uImages). Both of

[U-Boot] [PATCH 1/7] Blackfin: update anomaly lists

2009-02-03 Thread Mike Frysinger
Update the anomaly lists to match latest anomaly sheets. Signed-off-by: Mike Frysinger vap...@gentoo.org --- include/asm-blackfin/mach-bf527/anomaly.h | 166 + include/asm-blackfin/mach-bf533/anomaly.h | 55 ++ include/asm-blackfin/mach-bf537/anomaly.h |

Re: [U-Boot] using more that 2gig of Memory.

2009-02-03 Thread Kumar Gala
On Feb 3, 2009, at 5:33 PM, hamoshame Lamoteku wrote: I have search through the archives, and didn't find anything. Has anyone setup u-boot to configure more than 2gig of main memory? Where does u-boot go in the 36 bit world. is it possible to configure 2gig on each DDR controller of the