Re: [U-Boot] [PATCH v2] powerpc/85xx: Add basic support for P1023RDS board

2011-06-24 Thread Zang Roy-R61911
any feedback for this patch? Thanks. Roy > -Original Message- > From: Zang Roy-R61911 > Sent: Thursday, June 09, 2011 11:31 AM > To: u-boot@lists.denx.de > Cc: Zang Roy-R61911; Wang Haiying-R54964; Lan Chunhe-B25806; Xu Lei-B33228; > sun york-R58495; Kumar Gala > Subject: [PATCH v2] powerp

[U-Boot] [PATCH/RFC] unify version_string

2011-06-24 Thread Andreas Bießmann
This patch deletes the arch specific definitions of version_string in favour of a single one in cmd_version module (which is always compiled in). Signed-off-by: Andreas Bießmann CC: Mike Frysinger CC: Peter Pan --- This is an RFC as discussed in http://mid.gmane.org/201106162022.09802.vap...@ge

Re: [U-Boot] Not able access External peripherals in PPC440EP

2011-06-24 Thread suresh kumar
Dear Denk, Thanks for your suggestion. Now i have migrated to uboot v2011.06-rc2 and the booting sequece is working fine. But the problem still i am facing is not able access the external periherals like NVRAM and ADC, DAC etc. What minimum initializations to be done for that. Thanks in advance

[U-Boot] NAND_SPL Endianess problem?

2011-06-24 Thread Simon Schwarz
Hi list, still working on NAND for my SPL... The system is working - I can read from the device. But the endianess seems to be big endian and not little as I would expect. If I program e.g. 13 00 00 EA I read EA 00 00 13 from NAND. Sure I could write a conversion function but IMHO there has to

Re: [U-Boot] [PATCH/RFC] unify version_string

2011-06-24 Thread Wolfgang Denk
Dear =?UTF-8?q?Andreas=20Bie=C3=9Fmann?=, In message <1308905261-3780-1-git-send-email-andreas.de...@googlemail.com> you wrote: > This patch deletes the arch specific definitions of version_string in > favour of a single one in cmd_version module (which is always compiled > in). > > Signed-off-b

[U-Boot] [PATCH/RFC v2] unify version_string

2011-06-24 Thread Andreas Bießmann
This patch deletes the arch specific definitions of version_string in favour of a single one in cmd_version module (which is always compiled in). Signed-off-by: Andreas Bießmann CC: Mike Frysinger CC: Peter Pan --- This is an RFC as discussed in http://article.gmane.org/gmane.comp.boot-loaders.

[U-Boot] [PATCH] ARM: versatile: fix board support

2011-06-24 Thread Stefano Babic
Versatile board is used as example to run u-boot under qemu. The patch fixes relocation for all versatile boards and adds a versatileqemu target to be used under qemu. Patch tested only under qemu, not on real boards. Tested with QEMU emulator version 0.14.50. Signed-off-by: Stefano Babic CC: A

Re: [U-Boot] [PATCH/RFC v2] unify version_string

2011-06-24 Thread Wolfgang Denk
Dear =?UTF-8?q?Andreas=20Bie=C3=9Fmann?=, In message <1308918857-7402-1-git-send-email-andreas.de...@googlemail.com> you wrote: > This patch deletes the arch specific definitions of version_string in > favour of a single one in cmd_version module (which is always compiled > in). ... > changes sin

[U-Boot] Run U-boot from Flash!

2011-06-24 Thread manojatl
Hi, We are in the process of porting linux to our custom board. We are using u-boot-1.1.6 as bootloader. We are able to successfully port u-boot in RAM to our custom board. But we want to run the u-boot from flash. We understand that u-boot is capable of relocating the code from flash to ram. But

Re: [U-Boot] Reg. CFI flash_init and hardware write protected devices

2011-06-24 Thread Frank Svendsbøe
>> Ok. So you recommend I stop "hacking" the CFI probing and instead >> write a custom flash map driver? > > No.  Never write new drivers when you can use existing ones :-) > > Describe the flash memory as "mtd-ram" (instead of "cfi-flash") in > the device tree and select the physmap driver in your

Re: [U-Boot] Run U-boot from Flash!

2011-06-24 Thread Stefano Babic
On 06/24/2011 03:53 PM, manojatl wrote: > > Hi, > Hi, > We are in the process of porting linux to our custom board. We are using > u-boot-1.1.6 as bootloader. Before you waste your time: make a pleasure to yourself and update to the last U-Boot code, better from GIT repository (git.denx.de). Y

Re: [U-Boot] Run U-boot from Flash!

2011-06-24 Thread Wolfgang Denk
Dear manojatl, In message <31920053.p...@talk.nabble.com> you wrote: > > We are in the process of porting linux to our custom board. We are using > u-boot-1.1.6 as bootloader. We are able to successfully port u-boot in RAM First, U-Boot 1.1.6 is more than 5 years old and only of interest to pale

Re: [U-Boot] Reg. CFI flash_init and hardware write protected devices

2011-06-24 Thread Wolfgang Denk
Dear =?ISO-8859-1?Q?Frank_Svendsb=F8e?=, In message you wrote: > > Hi Wolfgang, I did as you recommended and replaced cfi-flash with > mtd-ram in the device tree. I also defined CONFIG_MTD_PHYSMAP_OF, > CONFIG_MTD_MTDRAM, CONFIG_MTDRAM_TOTAL_SIZE according to our > specifications. The default era

Re: [U-Boot] NAND_SPL Endianess problem?

2011-06-24 Thread Simon Schwarz
Hi list, answer to myself: no endianness problem... I hunted a phantom. Actualley it was openOCD which somehow prevented the jump to SDRAM Works fine now. Regards Simon 2011/6/24 Simon Schwarz : > Hi list, > > still working on NAND for my SPL... > > The system is working - I can read fro

Re: [U-Boot] [PATCH] ARM: versatile: fix board support

2011-06-24 Thread Loïc Minier
On Fri, Jun 24, 2011, Stefano Babic wrote: > Versatile board is used as example to run u-boot under qemu. > The patch fixes relocation for all versatile boards and adds > a versatileqemu target to be used under qemu. Thanks a lot! > Patch tested only under qemu, not on real boards. > Tested with

Re: [U-Boot] [PATCH] ARM: versatile: fix board support

2011-06-24 Thread stefano babic
Am 24/06/2011 17:37, schrieb Loïc Minier: > On Fri, Jun 24, 2011, Stefano Babic wrote: >> Versatile board is used as example to run u-boot under qemu. >> The patch fixes relocation for all versatile boards and adds >> a versatileqemu target to be used under qemu. > > Thanks a lot! You're welcome

Re: [U-Boot] [PATCH/RFC] unify version_string

2011-06-24 Thread Mike Frysinger
On Fri, Jun 24, 2011 at 08:18, Wolfgang Denk wrote: >> --- a/arch/powerpc/cpu/74xx_7xx/start.S >> +++ b/arch/powerpc/cpu/74xx_7xx/start.S > ... >>       .text >>       .long   0x27051956              /* U-Boot Magic Number          */ >> -     .globl  version_string >> -version_string: >> -     .as

Re: [U-Boot] [PATCH] ARM: versatile: fix board support

2011-06-24 Thread Jason Hobbs
Hi Stefano, On Fri, Jun 24, 2011 at 06:53:31PM +0200, stefano babic wrote: > Probably we need some feedback from ML to know if we have to save the > vexpress board or we have simply to drop it, because nobody seems to > have interest on it. The versatile is the well known example to run > the boot

Re: [U-Boot] [PATCH V5 1/2] GPIO: Tegra2: add GPIO driver for Tegra2

2011-06-24 Thread Tom Warren
On Fri, Jun 17, 2011 at 9:27 AM, Tom Warren wrote: > Signed-off-by: Tom Warren > --- > Changes in V2: >        - use 'gpio_pin' enum in gpio.h (Simon Glass review request) >        - change 'GPIO_PORT8' to 'GPIO_FULLPORT' (Simon Glass request) >        - change 'offset' to 'pin' globally > Change

Re: [U-Boot] [PATCH v2] Add assert() for debug assertions

2011-06-24 Thread Simon Glass
Hi Wolfgang, On Thu, Jun 23, 2011 at 10:33 PM, Wolfgang Denk wrote: > Dear Simon Glass, ... >> +#define assert(x)    \ >> +     ({ if (!(x) && _DEBUG) \ >> +             printf("Assertion failure '%s' %s line %d\n", \ >> +                     #x, __FILE__, __LINE__); }) > > Can we please use the

Re: [U-Boot] [PATCH v2] Add assert() for debug assertions

2011-06-24 Thread Mike Frysinger
On Fri, Jun 24, 2011 at 14:13, Simon Glass wrote: > On Thu, Jun 23, 2011 at 10:33 PM, Wolfgang Denk wrote: >> Finally, should the assert() not result in some termination or hang of >> U-Boot, like assert(3) is doing? > > I'm happy either way so long as it prints a message. A hang is better > than a

[U-Boot] [PATCH] arm: omap2: apollon: fix broken build

2011-06-24 Thread Igor Grinberg
Define CONFIG_SYS_SDRAM_BASE to physical SDRAM address and CONFIG_SYS_INIT_SP_ADDR to physical SRAM address Signed-off-by: Igor Grinberg Cc: Kyungmin Park --- include/configs/apollon.h |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/include/configs/apollon.h b/includ

Re: [U-Boot] [PATCH/RFC] unify version_string

2011-06-24 Thread Andreas Bießmann
Dear Mike Freysinger, Am 24.06.2011 um 19:43 schrieb Mike Frysinger: > On Fri, Jun 24, 2011 at 08:18, Wolfgang Denk wrote: >>> --- a/arch/powerpc/cpu/74xx_7xx/start.S >>> +++ b/arch/powerpc/cpu/74xx_7xx/start.S >> ... >>> .text >>> .long 0x27051956 /* U-Boot Magic Numbe

Re: [U-Boot] Reg. CFI flash_init and hardware write protected devices

2011-06-24 Thread Frank Svendsbøe
On Fri, Jun 24, 2011 at 4:26 PM, Wolfgang Denk wrote: > Dear =?ISO-8859-1?Q?Frank_Svendsb=F8e?=, > > In message you wrote: >> >> Hi Wolfgang, I did as you recommended and replaced cfi-flash with >> mtd-ram in the device tree. I also defined CONFIG_MTD_PHYSMAP_OF, >> CONFIG_MTD_MTDRAM, CONFIG_MTDR

[U-Boot] [PATCH/RFC v3] unify version_string

2011-06-24 Thread Andreas Bießmann
This patch deletes the arch specific definitions of version_string in favour of a single one in cmd_version module (which is always compiled in). Signed-off-by: Andreas Bießmann CC: Mike Frysinger CC: Peter Pan --- This is an RFC as discussed in http://article.gmane.org/gmane.comp.boot-loaders.

Re: [U-Boot] [PATCH/RFC] unify version_string

2011-06-24 Thread Wolfgang Denk
Dear Mike Frysinger, In message you wrote: > > > On PowerPC systems, the core is carefully consructed such that the s/core/code/, s/consructed/constructed/ > > U-Boot image starts with the magic number, followed immediately by > > the version string. That means, you can trivially identify any b

Re: [U-Boot] [PATCH/RFC] unify version_string

2011-06-24 Thread Wolfgang Denk
Dear =?iso-8859-1?Q?Andreas_Bie=DFmann?=, In message <7a8565de-76b0-43a8-9bcd-167b2d117...@googlemail.com> you wrote: > > We need a blob containing just the version_string, another blob > containing the ppc magic number and some linker tweaks to get them both > placed before the start.S stuff. >

Re: [U-Boot] [PATCH v2 4/6] Add generic, reusable menu code

2011-06-24 Thread Jason Hobbs
On Thu, Jun 23, 2011 at 10:03:12PM +0200, Wolfgang Denk wrote: > Dear "Jason Hobbs", > Is this all new code, or was it copied from some other project? If > so, reference would be needed. All new code. > Then, we need documentation how this is going to be used. Please add a > README with document

Re: [U-Boot] Reg. CFI flash_init and hardware write protected devices

2011-06-24 Thread Wolfgang Denk
Dear Frank, In message you wrote: > > > Difficult to speculate - I don't know your hardware (eventually you > > have two 16 bit flash chips in parallel to build a 32 bit bus, and > > have to double the chip's erase block size?), and I don;t know how you > > created the JFFS2 file system. ... > fa

Re: [U-Boot] [PATCH v2 3/6] common: make abortboot available for menu use

2011-06-24 Thread Jason Hobbs
Mike, On Thu, Jun 23, 2011 at 06:59:40PM -0400, Mike Frysinger wrote: > more ifdef trickery here than necessary: > #ifndef CONFIG_MENU > static inline > #endif > int abortboot(int bootdelay) > { Thanks - I'll change this in the next version of the patch. Jason _

Re: [U-Boot] [PATCH v2 3/6] common: make abortboot available for menu use

2011-06-24 Thread Jason Hobbs
Dear Wolfgang, On Fri, Jun 24, 2011 at 07:18:55AM +0200, Wolfgang Denk wrote: > > +#ifdef CONFIG_MENU > > This being a new CONFIG_ variable, it must be documented in the > README. But as is this makes little sense, so I suggest you change > the order of your patches and add the abortboot support

Re: [U-Boot] [PATCH v2 4/6] Add generic, reusable menu code

2011-06-24 Thread Wolfgang Denk
Dear "Jason Hobbs", In message <20110624202511.GA18667@jhobbs-laptop> you wrote: > On Thu, Jun 23, 2011 at 10:03:12PM +0200, Wolfgang Denk wrote: > > Dear "Jason Hobbs", > > Is this all new code, or was it copied from some other project? If > > so, reference would be needed. > > All new code. >

Re: [U-Boot] [PATCH/RFC] unify version_string

2011-06-24 Thread Mike Frysinger
On Fri, Jun 24, 2011 at 16:07, Wolfgang Denk wrote: > Mike Frysinger wrote: >> > U-Boot image starts with the magic number, followed immediately by >> > the version string. That means, you can trivially identify any binary >> > image, be it as file on the host or on the target, or programmed into >

Re: [U-Boot] Reg. CFI flash_init and hardware write protected devices

2011-06-24 Thread Frank Svendsbøe
On Fri, Jun 24, 2011 at 10:26 PM, Wolfgang Denk wrote: > Dear Frank, > > In message you wrote: >> >> > Difficult to speculate - I don't know your hardware (eventually you >> > have two 16 bit flash chips in parallel to build a 32 bit bus, and >> > have to double the chip's erase block size?), and

[U-Boot] [PATCH] nios2: move generic config to boards.cfg

2011-06-24 Thread Mike Frysinger
I can't build test this, but just looking at the config files written and it seems OK ... Signed-off-by: Mike Frysinger --- MAKEALL|4 +--- Makefile | 14 -- boards.cfg |1 + 3 files changed, 2 insertions(+), 17 deletions(-) diff --git a/MAKEALL b/MAKEALL index 13cd0

[U-Boot] [PATCH] usb: convert to partial linking

2011-06-24 Thread Mike Frysinger
Looks like this was missed during the conversion to partial linking. Signed-off-by: Mike Frysinger --- Makefile |2 +- drivers/usb/eth/Makefile |4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index bb1958a..a368f56 100644 --- a/

[U-Boot] [PATCH] simplify clobber behavior with out-of-tree builds

2011-06-24 Thread Mike Frysinger
The targets/prerequisites are the same here; the rules only differ in the recipes. So move the if logic protection to the recipe part so we can keep the rest the same. Signed-off-by: Mike Frysinger --- Makefile |5 + 1 files changed, 1 insertions(+), 4 deletions(-) diff --git a/Makefil

[U-Boot] [PATCH] [PoC] basic kbuild output support

2011-06-24 Thread Mike Frysinger
I know at first blush this isn't going to be supported, but it's just a PoC that things are (mostly) possible without much effort. Signed-off-by: Mike Frysinger --- Makefile | 54 ++--- common/kgdb.c| 52