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

2009-01-14 Thread Guennadi Liakhovetski
Hi, a user is reporting, that setting "silent" and "baudrate" environment variables on ARM have no effect on the console bahaviour. I didn't test this but looking at the code it looks logical - the console is initialised before environment variables are read. Question - is this a bug that has

[U-Boot] scanf in u-boot.1.2.0

2009-01-14 Thread Ajeesh Kumar
Hi All, I'm using a u-boot.1.2.0 code base, do we have a "scanf()" type of function call where i can use. Please help me in this regard. Thanks, Ajeesh Kumar The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the ad

Re: [U-Boot] Watchdog and u-boot command prompt

2009-01-14 Thread Mike Frysinger
On Wednesday 14 January 2009 17:40:34 Wolfgang Denk wrote: > In message <200901141137.37144.vap...@gentoo.org> you wrote: > > too bad watchdog documentation is non-existent to useless. ive asked on > > the list in the past for more info on how it works with no response. > > CONFIG_HW_WATCHDOG is d

Re: [U-Boot] dtc/u-boot tool naming, "ftdump", "mkimage"

2009-01-14 Thread David Gibson
On Wed, Jan 14, 2009 at 06:34:34PM -0600, Matt Sealey wrote: > Josh Boyer wrote: > >> David has said before that ftdump is sort of a pointless debugging tool. >> Or at least that is what the Debian bug report referrenced as the reason >> from removing it from the Debian dtc package. > > As long as

Re: [U-Boot] dtc/u-boot tool naming, "ftdump", "mkimage"

2009-01-14 Thread Matt Sealey
Josh Boyer wrote: > David has said before that ftdump is sort of a pointless debugging tool. > Or at least that is what the Debian bug report referrenced as the reason > from removing it from the Debian dtc package. As long as you have the original device tree source code to hand. I tend to find

Re: [U-Boot] dtc/u-boot tool naming, "ftdump", "mkimage"

2009-01-14 Thread David Gibson
On Wed, Jan 14, 2009 at 02:19:05PM -0500, Josh Boyer wrote: > On Wed, Jan 14, 2009 at 02:11:22PM -0500, Jerry Van Baren wrote: > > Hi Matt, > > > > Matt Sealey wrote: > >> Josh Boyer wrote: > >>> On Wed, Jan 14, 2009 at 11:57:42AM -0600, Matt Sealey wrote: > I just noticed (was told by an affi

Re: [U-Boot] [PATCH 1/1 v2] ppc4xx: Autocalibration can set RDCC to over aggressive value.

2009-01-14 Thread Wolfgang Denk
Dear Adam Graham, In message <1231887261-30490-1-git-send-email-agra...@amcc.com> you wrote: > > --- a/cpu/ppc4xx/4xx_ibm_ddr2_autocalib.c > +++ b/cpu/ppc4xx/4xx_ibm_ddr2_autocalib.c > @@ -61,6 +61,12 @@ > #define NUMLOOPS 1 /* configure as you deem approporiate */ > #define NU

Re: [U-Boot] Watchdog and u-boot command prompt

2009-01-14 Thread Wolfgang Denk
Dear Mike Frysinger, In message <200901141137.37144.vap...@gentoo.org> you wrote: > > too bad watchdog documentation is non-existent to useless. ive asked on the > list in the past for more info on how it works with no response. > CONFIG_HW_WATCHDOG is documented nowhere and doesnt jive with

Re: [U-Boot] PATCH for support W90P710 ARM SoC for U-Boot-1.3.3

2009-01-14 Thread Wolfgang Denk
Dear "Vovk Konstantin", In message <003801c97663$9c341a70$0201a...@main> you wrote: > > You can download patch that will add W90P710 ARM SoC from Nuvoton to = > U-Boot-1.3.3 source tree. U-Boot 1.3.3 is just too old. Please rebase your patch against current code (top of tree in git repository),

[U-Boot] IMX27 NAND Probe Problem

2009-01-14 Thread Alessandro Chies
Hello again, I would like to add more infos on my problem: When I try to register the device nand0, the call stack arrives to the function in the file nand-imx.c in uboot v2. static int __init imxnd_probe(struct device_d *dev) { struct nand_chip *this; struct

[U-Boot] [PATCH] cpu/mpc824x/Makefile: fix warning with parallel builds

2009-01-14 Thread Wolfgang Denk
Parallel builds would occasionally issue this build warning: ln: creating symbolic link `cpu/mpc824x/bedbug_603e.c': File exists Use "ln -sf" as quick work around for the issue. Signed-off-by: Wolfgang Denk --- cpu/mpc824x/Makefile |2 +- 1 files changed, 1 insertions(+), 1 deletions(-

Re: [U-Boot] Problems with USB mass storage on at91sam9263

2009-01-14 Thread Jean-Christophe PLAGNIOL-VILLARD
On 22:30 Wed 14 Jan , Paal Bakken wrote: > I have testet a lot more and have found the following: > > 1. I tried an old USB 1.0 stick, but got the same bad result... > > 2. Then I took that USB 1.0 stick and deleted multiple partitions with linux > fdisk and created a single bootable FAT32 p

Re: [U-Boot] Problems with USB mass storage on at91sam9263

2009-01-14 Thread Paal Bakken
I have testet a lot more and have found the following: 1. I tried an old USB 1.0 stick, but got the same bad result... 2. Then I took that USB 1.0 stick and deleted multiple partitions with linux fdisk and created a single bootable FAT32 partition. This variant worked without any problems in u-

Re: [U-Boot] u-boot newbie - question about the 'debug( )' function ...

2009-01-14 Thread Jon Loeliger
On Wed, 2009-01-14 at 15:45 -0500, Jonathan Barrow wrote: > In many of the sources, such as "board.c", I notice calls to > 'debug()'. The syntax looks similar to printf(), e.g.: debug > ("Stack Pointer at: %08lx\n", addr_sp); > > Is this output sent to the BDM, such as bdi2000? or Ethernet?

Re: [U-Boot] u-boot newbie - question about the 'debug( )' function ...

2009-01-14 Thread Andy Fleming
On Wed, Jan 14, 2009 at 2:45 PM, Jonathan Barrow wrote: > In many of the sources, such as "board.c", I notice calls to > 'debug()'. The syntax looks similar to printf(), e.g.: debug > ("Stack Pointer at: %08lx\n", addr_sp); > > Is this output sent to the BDM, such as bdi2000? or Ethernet? p

[U-Boot] u-boot newbie - question about the 'debug( )' function ...

2009-01-14 Thread Jonathan Barrow
In many of the sources, such as "board.c", I notice calls to 'debug()'. The syntax looks similar to printf(), e.g.: debug ("Stack Pointer at: %08lx\n", addr_sp); Is this output sent to the BDM, such as bdi2000? or Ethernet? posted to memory? Also, is debug() related to the setting in 'conf

[U-Boot] [RFC] Added simple hack to ignore the environment variables in flash.

2009-01-14 Thread Jason Kridner
I'm looking for a way to get u-boot to ignore the environment variables in flash if there is an autoscript on the SD card. The easiest way I can find is to simply ignore the environment variables completely and boot u-boot itself off of the SD card. I see there are some other CONFIG's that d

Re: [U-Boot] PATCH for support W90P710 ARM SoC for U-Boot-1.3.3

2009-01-14 Thread Jean-Christophe PLAGNIOL-VILLARD
On 18:17 Wed 14 Jan , Vovk Konstantin wrote: > You can download patch that will add W90P710 ARM SoC from Nuvoton to > U-Boot-1.3.3 source tree. please rebase your patch against current dev tree, and also please we will have a release soon (17 Jan) and post the patch as describe here http://ww

Re: [U-Boot] dtc/u-boot tool naming, "ftdump", "mkimage"

2009-01-14 Thread Josh Boyer
On Wed, Jan 14, 2009 at 02:11:22PM -0500, Jerry Van Baren wrote: > Hi Matt, > > Matt Sealey wrote: >> Josh Boyer wrote: >>> On Wed, Jan 14, 2009 at 11:57:42AM -0600, Matt Sealey wrote: I just noticed (was told by an affiliate) that the DTC compiler tools shares a tool name "ftdump" with

Re: [U-Boot] dtc/u-boot tool naming, "ftdump", "mkimage"

2009-01-14 Thread Jerry Van Baren
Hi Matt, Matt Sealey wrote: > Josh Boyer wrote: >> On Wed, Jan 14, 2009 at 11:57:42AM -0600, Matt Sealey wrote: >>> I just noticed (was told by an affiliate) that the DTC compiler tools >>> shares a tool name "ftdump" with the Freetype project. I was doing a >>> lazy packaging effort to get a

Re: [U-Boot] 460GT PCIe configuration

2009-01-14 Thread Stefan Roese
On Wednesday 14 January 2009, Stefan Roese wrote: > On Wednesday 14 January 2009, vb wrote: > > thank you for confirming my suspicions and for your suggestion, I will > > compare notes with the Linux version (should have thought about this > > earlier). But I also was under impression that Linux do

Re: [U-Boot] dtc/u-boot tool naming, "ftdump", "mkimage"

2009-01-14 Thread Matt Sealey
Josh Boyer wrote: > On Wed, Jan 14, 2009 at 11:57:42AM -0600, Matt Sealey wrote: >> I just noticed (was told by an affiliate) that the DTC compiler tools >> shares a tool name "ftdump" with the Freetype project. I was doing a >> lazy packaging effort to get a few tools around so we can all be r

Re: [U-Boot] Problems with USB mass storage on at91sam9263

2009-01-14 Thread Remy Bohmer
Hello, 2009/1/14 Paal Bakken : > I have problems with usb mass storage in u-boot. > We have our own at91sam9263 board, but I experience exactly the same problems > on the standard at91sam9263ek. And the usb-port AND memory stick works fine > in linux. I have tried both FAT and FAT32. Below follo

Re: [U-Boot] dtc/u-boot tool naming, "ftdump", "mkimage"

2009-01-14 Thread Josh Boyer
On Wed, Jan 14, 2009 at 11:57:42AM -0600, Matt Sealey wrote: > I just noticed (was told by an affiliate) that the DTC compiler tools > shares a tool name "ftdump" with the Freetype project. I was doing a > lazy packaging effort to get a few tools around so we can all be running > the same ver

[U-Boot] dtc/u-boot tool naming, "ftdump", "mkimage"

2009-01-14 Thread Matt Sealey
I just noticed (was told by an affiliate) that the DTC compiler tools shares a tool name "ftdump" with the Freetype project. I was doing a lazy packaging effort to get a few tools around so we can all be running the same version and build some custom kernel RPMs, and this came up. Wouldn't a be

Re: [U-Boot] 460GT PCIe configuration

2009-01-14 Thread Stefan Roese
On Wednesday 14 January 2009, vb wrote: > thank you for confirming my suspicions and for your suggestion, I will > compare notes with the Linux version (should have thought about this > earlier). But I also was under impression that Linux does not touch > some parts of PCI configuration, as the mem

Re: [U-Boot] 460GT PCIe configuration

2009-01-14 Thread vb
On Wed, Jan 14, 2009 at 7:03 AM, Stefan Roese wrote: > On Tuesday 13 January 2009, vb wrote: > >> The CONFIG_SYS_PCIE0_XCFGBASE constant (and its counterparts for other >> PCIe ports) is defined and used in the code, and gets a TLB entry >> assigned, but I can't find a place where it is programmed

Re: [U-Boot] Watchdog and u-boot command prompt

2009-01-14 Thread Mike Frysinger
On Wednesday 14 January 2009 11:01:43 Wolfgang Denk wrote: > In message <200901140639.44315.vap...@gentoo.org> you wrote: > > > It means I can't enable flags CONFIG_HW_WATCHDOG & CONFIG_WATCHDOG > > > together. > > > > CONFIG_WATCHDOG -> software watchdog > > CONFIG_HW_WATCHDOG -> hardware watchdog

[U-Boot] PATCH for support W90P710 ARM SoC for U-Boot-1.3.3

2009-01-14 Thread Vovk Konstantin
You can download patch that will add W90P710 ARM SoC from Nuvoton to U-Boot-1.3.3 source tree. This patch add W90P1 board. What included: 1.W90P710 ARM7 2.UART0 as standard input/output. 3.W90P710 MAC with KSZ8001 PHY initialization. 4.NOR Flash (tested with M29W320ET) 5.NAND Flash (memory mapped

Re: [U-Boot] Watchdog and u-boot command prompt

2009-01-14 Thread Wolfgang Denk
Dear Mike Frysinger, In message <200901140639.44315.vap...@gentoo.org> you wrote: > > > It means I can't enable flags CONFIG_HW_WATCHDOG & CONFIG_WATCHDOG > > together. > > CONFIG_WATCHDOG -> software watchdog > CONFIG_HW_WATCHDOG -> hardware watchdog Wrong. There is no such thing as a "software

Re: [U-Boot] Watchdog and u-boot command prompt

2009-01-14 Thread Wolfgang Denk
Dear Sachin, In message <73fa539107892c4c8c7a5aca10c161c85be...@mx2.alphioncorp.local> you wrote: > > In the file 'include/watchdog.h', it has been mentioned that: > 8<-- > #if defined(CONFIG_HW_WATCHDOG) && defined(CONFIG_WATCHDOG) > #erro

[U-Boot] u-boot port for Embest SBC2440-II Board

2009-01-14 Thread kevin.morfitt
Hi I've created a patch to port u-boot for the Embest SBC2440-II Board and I wondered if anyone could advise me how to submit it for inclusion in the next release, the one after the forthcoming v2009.01. I'm assuming there isn't already a port for this board as it's not in the mainline u-boot

Re: [U-Boot] Write to JFFS2 filesystem

2009-01-14 Thread mike xu
On 12/19/08, Jayakrishnan M wrote: > Hi all, > > I am using u-boot 1.3.3 on a TQM885D board. > Is u-boot able to write to JFFS2 file system? U-boot isn't able to write jffs2 filesystem as I know. Are there any plan for u-boot to add the support of jffs2 fs write? > I was able to read a file fr

Re: [U-Boot] 460GT PCIe configuration

2009-01-14 Thread Stefan Roese
On Tuesday 13 January 2009, vb wrote: > I am trying to troubleshoot a weird PCIe problem on a PPC460GT based > target, and it is getting curiouser and curiouser. > > There is a tlb overlap I mentioned in an earlier email; on top of that > there are some things happening in cpu/ppc4xx/4xx_pcie.c whi

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

2009-01-14 Thread Kumar Gala
On Jan 14, 2009, at 5:34 AM, Haavard Skinnemoen wrote: > Kumar Gala wrote: >> >> On Dec 3, 2008, at 11:04 PM, 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

Re: [U-Boot] How to create a JFFS2 image to use with U-Boot

2009-01-14 Thread David . Kondrad
Giuseppe, > I think to use: > dd if=/dev/mtd4 of=/rootfs_jffs2.img Yes, I think that should do it, but you'll end up with an image the size of your partition. If it's a small partition (say 16M) then I guess it's not an issue. If you have access to an NFS rootfs, then you can boot using that an

[U-Boot] [PATCH V2] CFI: Add geometry reversal for STMicro M29W320ET

2009-01-14 Thread Richard Retanubun
Added flash_fixup_stm to fix geometry reversal on STMicro M29W320ET flash chip. Modeled after flash_fixup_amd, this patch handles the geometry reversal or erase sectors that exist for ST Micro (now Numonyx) M29W320ET flash. Since I cannot test all STM's chips, the detection is implemented as na

[U-Boot] [PATCH] fdt_resize(): fix actualsize calculations with unaligned blobs

2009-01-14 Thread Peter Korsgaard
The code in fdt_resize() to extend the fdt size to end on a page boundary is wrong for fdt's not located at an address aligned on a page boundary. What's even worse, the code would make actualsize shrink rather than grow if (blob & 0xfff) was bigger than the amount of padding added by ALIGN(), caus

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

2009-01-14 Thread Stefan Roese
On Wednesday 14 January 2009, Kumar Gala wrote: > On Dec 3, 2008, at 11:04 PM, 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 > > s

Re: [U-Boot] [PATCH] CFI: Add geometry reversal for STMicro M29W320ET

2009-01-14 Thread Stefan Roese
On Tuesday 13 January 2009, Mike Frysinger wrote: > On Tuesday 13 January 2009 12:31:46 Richard Retanubun wrote: > > Added flash_fixup_stm to fix geometry reversal on > > STMicro M29W320ET flash chip. > > > > Signed-off-by: Richard Retanubun > > --- > > > > Added flash_fixup_stm to fix geometry re

Re: [U-Boot] PPC460GT Canyonlands tlb table overlap?

2009-01-14 Thread Stefan Roese
On Sunday 11 January 2009, vb wrote: > The Canyonland board's init.s file (board/amcc/canyonlands/init.S) > defines the contents of the TLB table for that target, it has these > two records in the table among others: > > > > tlbentry(CFG_PCI_BASE, SZ_256

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

2009-01-14 Thread Haavard Skinnemoen
Kumar Gala wrote: > As I look at this we really need to understand what Haavard was trying > to get with: > > commit 12d30aa79779c2aa7a998bbae4c075f822a53004 > Author: Haavard Skinnemoen > Date: Thu Dec 13 12:56:34 2007 +0100 > > cfi_flash: Use map_physmem() and unmap_physmem() > >

Re: [U-Boot] Watchdog and u-boot command prompt

2009-01-14 Thread Mike Frysinger
On Wednesday 14 January 2009 01:40:29 Sachin Rane wrote: > In the file 'include/watchdog.h', it has been mentioned that: > 8<-- > #if defined(CONFIG_HW_WATCHDOG) && defined(CONFIG_WATCHDOG) > #error "Configuration error: CONFIG_HW_WATCHDOG and

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

2009-01-14 Thread Haavard Skinnemoen
Kumar Gala wrote: > > On Dec 3, 2008, at 11:04 PM, 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 vi

[U-Boot] How to create a JFFS2 image to use with U-Boot

2009-01-14 Thread Giuseppe Modugno
Dear all, I have a board running U-Boot and Linux. The root filesystem for Linux is in a NOR Flash memory and it is seen as /dev/mtd4 device by MTD driver. I want to create an image file of the root filesystem so I'll be able to copy it into another board. I think to use: dd if=/dev/mtd4 of

[U-Boot] Problems with USB mass storage on at91sam9263

2009-01-14 Thread Paal Bakken
I have problems with usb mass storage in u-boot. We have our own at91sam9263 board, but I experience exactly the same problems on the standard at91sam9263ek. And the usb-port AND memory stick works fine in linux. I have tried both FAT and FAT32. Below follows an edited screendump of some usb co

[U-Boot] [ppc4xx] Please pull git://www.denx.de/git/u-boot-ppc4xx.git

2009-01-14 Thread Stefan Roese
The following changes since commit 5f01ea63a6c263767f548b4f61880b08f7850ffc: Wolfgang Denk (1): Merge branch 'master' of /home/wd/git/u-boot/custodians are available in the git repository at: git://www.denx.de/git/u-boot-ppc4xx.git master Matthias Fuchs (4): ppc4xx: Enable auto

Re: [U-Boot] [PATCH] ppc4xx: Disable pci node in device tree on CPCI405 pci adapters

2009-01-14 Thread Stefan Roese
On Friday 02 January 2009, Matthias Fuchs wrote: > Signed-off-by: Matthias Fuchs Added to u-boot/master. Thanks. Best regards, Stefan = DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, O

Re: [U-Boot] [PATCH] ppc4xx: Add loadpci command to esd's CPCI4052 and CPCI405AB boards

2009-01-14 Thread Stefan Roese
On Friday 02 January 2009, Matthias Fuchs wrote: > This patch adds esd's loadpci BSP command to CPCI4052 and > CPCI405AB board. This requires CONFIG_CMD_BSP and CONFIG_PRAM. > > Signed-off-by: Matthias Fuchs Added to u-boot/master. Thanks. Best regards, Stefan =

Re: [U-Boot] [PATCH] ppc4xx: Cleanup CPCI405 board code

2009-01-14 Thread Stefan Roese
On Friday 02 January 2009, Matthias Fuchs wrote: > This patch cleans up CPCI405 board support: > - wrap long lines > - unification of spaces in function calls > - remove dead code > > Use correct io accessors on peripherals. > > Signed-off-by: Matthias Fuchs Added to u-boot/master. Thanks. Best

Re: [U-Boot] [PATCH V2] ppc4xx: Enable auto RS485 mode on PLU405 boards

2009-01-14 Thread Stefan Roese
On Friday 02 January 2009, Matthias Fuchs wrote: > 2nd version of this patch eliminates a whitespace issue :-( Please put such statements below the "---" next time. They don't really should be included in the commit text. And it's always helpful to have a patch revision description (changes in v

[U-Boot] OMAP3 patch series

2009-01-14 Thread Grazvydas Ignotas
Hello, a month has passed since v6 OMAP3 patches were submitted to this ML [1]. So far they have not been reviewed nor accepted. Are there any estimates when that is going to happen? I.e. "when we have time", "never" or "we don't like OMAP3" would be good answers. Thanks, Grazvydas [1] http://li

[U-Boot] [RFC] CDC Ethernet support + USB Gadget in U-boot

2009-01-14 Thread Remy Bohmer
Hello All, We (Thomas Smits and I) have been working on CDC Ethernet support in U-boot. We ported the Linux Gadget and CDC Ethernet driver to U-boot and added support for the Atmel AT91SAM9261-EK kit. Support for other cores can be added easily. Although it is still work in progress, it is alread

Re: [U-Boot] usb console in u-boot

2009-01-14 Thread pgssgp
On Wed, Jan 14, 2009 at 12:11 AM, Remy Bohmer wrote: > Hello, > >> Did anybdy is having idea abt usb console in u-boot i.e development of usb >> serial emulation(CDC_ACM).I am using smdk2440 development board. > > There is a driver 'drivers/serial/usbtty.c' in the u-boot tree, in > case you mean s

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

2009-01-14 Thread Kumar Gala
On Jan 14, 2009, at 2:38 AM, Kumar Gala wrote: > Stefan, > > Have you reviewed this. I'm not sure if remvoing the map_physmem() is > the right answer because I'm assuming Haavard added them for a reason > (AVR32?). Should we instead change info->start to be a phys_addr_t? > > - k As I look at t

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

2009-01-14 Thread Kumar Gala
On Dec 3, 2008, at 11:04 PM, 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 t

Re: [U-Boot] usb console in u-boot

2009-01-14 Thread Remy Bohmer
Hello, > Did anybdy is having idea abt usb console in u-boot i.e development of usb > serial emulation(CDC_ACM).I am using smdk2440 development board. There is a driver 'drivers/serial/usbtty.c' in the u-boot tree, in case you mean something like that. And in case someone wants to port the linux