[U-Boot] [PATCH] Error : Not finding asm/arch/gpio.h

2011-08-25 Thread Faisal H
While building with omap3_beagle_config configuration, getting an error about not finding asm/arch/gpio.h (which does not exist). Found that header files are moved to arch/arm/include/asm/arch-. Fixed the includes to find the file.. Signed-off-by: Faisal Hassanfaa...@gmail.com Cc: Wolfgang

Re: [U-Boot] [PATCH] README: clean up and document the Freescale QE/FMAN firmware macros

2011-08-25 Thread Wolfgang Denk
Dear Timur Tabi, In message 4e558423.8020...@freescale.com you wrote: And why don't you add the documentation with the code? I haven't written the code yet. I want to make sure the idea is acceptable before I start implementing it. Plus, since our internal code is different than our

Re: [U-Boot] [PATCH] Error : Not finding asm/arch/gpio.h

2011-08-25 Thread Wolfgang Denk
Dear Faisal H, In message cadyx3a0pyfw9ee0kc0h6oqogtfad5cevijvuv9ufsparteo...@mail.gmail.com you wrote: While building with omap3_beagle_config configuration, getting an error about not finding asm/arch/gpio.h (which does not exist). Found that header files are moved to

Re: [U-Boot] [PATCH] Error : Not finding asm/arch/gpio.h

2011-08-25 Thread Stefano Babic
On 08/25/2011 08:29 AM, Faisal H wrote: While building with omap3_beagle_config configuration, getting an error about not finding asm/arch/gpio.h (which does not exist). Found that header files are moved to arch/arm/include/asm/arch-. make board_config sets a link for asm/arch to

[U-Boot] mii_phy.h

2011-08-25 Thread Michal Simek
Hi, Can someone clear me purpose of mii_phy.h? It looks like that it is really ancient file which hasn't been touched from 2003. It is use for two files [monstr@monstr u-boot]$ grep -rn mii_phy.h * board/ep8260/mii_phy.c:2:#include mii_phy.h board/rpxsuper/mii_phy.c:2:#include mii_phy.h +

[U-Boot] phylib + mii + phy_parse_status

2011-08-25 Thread Michal Simek
Hi, I have done some experiments with phylib and Xilinx ethernet drivers and I found that mii code show different values for speed and duplex. I think that the main problem is that there are called miiphy_speed and miiphy_duplex functions instead of phy parsing functions. I think that it will be

[U-Boot] [PATCH V3 0/8] SPL Linux boot

2011-08-25 Thread Simon Schwarz
Adds direct Linux boot to SPL. It implements a savebp command to save ATAGS or FDT to NAND flash. The kernel image has to be in place for this! checkpatch whines about not using strict_strtoull - since this is not available - I can't change this. V2 changes: FIX FDT creation ADD Readme

[U-Boot] [PATCH V3 1/8] arm: Add Prep subcommand support to bootm

2011-08-25 Thread Simon Schwarz
Adds prep subcommand to bootm implementation of ARM. When bootm is called with the subcommand prep the function stops right after ATAGS creation and before announce_and_cleanup. This is used in savebp command Signed-off-by: Simon Schwarz simonschwarz...@gmail.com V2 changes: nothing V3

[U-Boot] [PATCH V3 2/8] Add savebp command

2011-08-25 Thread Simon Schwarz
This adds a savebp command to the u-boot. Related config: CONFIG_CMD_SAVEBP activate/deactivate the command CONFIG_CMD_SAVEBP_NAND_OFS Offset in NAND to use CONFIG_SYS_NAND_SPL_KERNEL_OFFS Offset in NAND of direct boot kernel image to use in SPL CONFIG_SYS_SPL_ARGS_ADDR

[U-Boot] [PATCH V3 3/8] arm: Add savebp implementation for arm

2011-08-25 Thread Simon Schwarz
This adds the savebp implementation to the arm platform. Related CONFIGs: CONFIG_CMD_SAVEBP_WRITE_SIZE defines the size of the image to write Signed-off-by: Simon Schwarz simonschwarz...@gmail.com --- V2 changes: DEL _cosmetic_ old comment V3 changes: nothing --- arch/arm/include/asm/savebp.h

[U-Boot] [PATCH V3 4/8] omap-common/spl: Add linux boot to SPL

2011-08-25 Thread Simon Schwarz
This adds Linux booting to the SPL Related CONFIGs: CONFIG_SPL_OS_BOOT Activates/Deactivates the OS booting feature CONFIG_SPL_OS_BOOT_KEY defines the IO-pin number u-boot switch - if pressed u-boot is booted CONFIG_SYS_SPL_MACHID Machine ID of the used board

[U-Boot] [PATCH V3 5/8] devkit8000/spl: init GPMC for dm9000 in SPL

2011-08-25 Thread Simon Schwarz
Linux crashes if the GPMC isn't configured for the dm9000. Signed-off-by: Simon Schwarz simonschwarz...@gmail.com --- V2 changes: nothing V3 changes: nothing --- arch/arm/cpu/armv7/omap-common/spl.c |1 + arch/arm/include/asm/omap_common.h |2 ++ board/timll/devkit8000/devkit8000.c

[U-Boot] [PATCH V3 6/8] omap-common: Add NAND SPL linux booting

2011-08-25 Thread Simon Schwarz
This implements booting of Linux from NAND in SPL Signed-off-by: Simon Schwarz simonschwarz...@gmail.com --- V2 changes: nothing V3 changes: nothing --- arch/arm/cpu/armv7/omap-common/spl_nand.c | 48 +++- 1 files changed, 32 insertions(+), 16 deletions(-) diff --git

[U-Boot] [PATCH V3 8/8] savebp: added Readme

2011-08-25 Thread Simon Schwarz
Adds a Readme for the savebp command Signed-off-by: Simon Schwarz simonschwarz...@gmail.com --- V2 changes: ADDED in V2 V3 changes: nothing --- doc/README.commands.savebp | 28 1 files changed, 28 insertions(+), 0 deletions(-) create mode 100644

[U-Boot] [PATCH V3 7/8] omap-common: fixes BSS overwriting problem

2011-08-25 Thread Simon Schwarz
spl_nand overwrote BSS section because it reads a whole block everytime. Now loads the block to spare area and just copy the needed junk to destination. Whole block read is necessary for ecc check! Signed-off-by: Simon Schwarz simonschwarz...@gmail.com --- V2 changes: nothing V3 changes:

[U-Boot] [PATCH] dcache: Dcache line size aligned stack buffer allocation

2011-08-25 Thread Lukasz Majewski
This commit is defining new include/cache.h file, which defines macro needed for cache aligned buffers. ALLOC_CACHE_ALIGN_BUFFER shall be used in functions, which are using stack allocated buffers for DMA transfers. Signed-off-by: Lukasz Majewski l.majew...@samsung.com Signed-off-by: Kyungmin

[U-Boot] [PATCH V4 7/9] DM9000:Add a byte swap macro for dm9000 io operation.

2011-08-25 Thread Jason Jin
commit a45dde2293c816138e53c26eca6fd0322583f9a6 changed the dm9000 direct register access to standard IO. This should work on the ColdFire platform as there are corresponding macros for the LE devices. But the hardware settings on some ColdFire boards had swapped the byte order which make the

[U-Boot] [PATCH V2 8/9] ColdFire:Define the DM9000 byteswap for M5253 board.

2011-08-25 Thread Jason Jin
The M5253DEMO board swapped the io pins which make the standard IO function did not work for dm9000. Define the byte swap to use raw io for dm9000. Signed-off-by: Jason Jin jason@freescale.com --- Changes for V2: rename the DM9000_BYTE_SWAPPED to CONFIG_DM9000_BYTE_SWAPPED

Re: [U-Boot] [PATCH] dcache: Dcache line size aligned stack buffer allocation

2011-08-25 Thread Wolfgang Denk
Dear Lukasz Majewski, In message 1314261435-29789-1-git-send-email-l.majew...@samsung.com you wrote: This commit is defining new include/cache.h file, which defines macro needed for cache aligned buffers. ALLOC_CACHE_ALIGN_BUFFER shall be used in functions, which are using stack allocated

Re: [U-Boot] [PATCH V3 1/8] arm: Add Prep subcommand support to bootm

2011-08-25 Thread Andreas Bießmann
Dear Simon, Am 25.08.2011 10:33, schrieb Simon Schwarz: Adds prep subcommand to bootm implementation of ARM. When bootm is called with the subcommand prep the function stops right after ATAGS creation and before announce_and_cleanup. This is used in savebp command Signed-off-by: Simon

Re: [U-Boot] [PATCH] xilinx_emaclite.c ping-pong macro names

2011-08-25 Thread Michal Simek
Wolfgang Denk wrote: Dear alain.pet...@space.unibe.ch, In message 20110415144908.16476jnz1wxcp...@mail.unibe.ch you wrote: Please find attached the checked patch. Sorry for the inconvenience. Please send patches inline. No attachments! And please stick to the rules with updated versions

Re: [U-Boot] [PATCH] xilinx_emaclite.c ping-pong macro names

2011-08-25 Thread Wolfgang Denk
Dear Michal Simek, In message 4e561eb2.1010...@monstr.eu you wrote: 1. Wolfgang if you see any patches for xilinx fpga and microblaze and I don't reply that posts for a while, please ping me. I am more focus on other things and not checking u-boot malling list so often - it will be better

Re: [U-Boot] [PATCH V3 0/8] SPL Linux boot

2011-08-25 Thread Wolfgang Denk
Dear Simon Schwarz, In message 1314261196-23197-1-git-send-email-simonschwarz...@gmail.com you wrote: Adds direct Linux boot to SPL. It implements a savebp command to save ATAGS or FDT to NAND flash. The kernel image has to be in place for this! Thanks for this work. It is highly

Re: [U-Boot] [PATCH V3 2/8] Add savebp command

2011-08-25 Thread Andreas Bießmann
Dear Simon, Am 25.08.2011 10:33, schrieb Simon Schwarz: This adds a savebp command to the u-boot. Related config: CONFIG_CMD_SAVEBP activate/deactivate the command CONFIG_CMD_SAVEBP_NAND_OFS Offset in NAND to use CONFIG_SYS_NAND_SPL_KERNEL_OFFS Offset in NAND of direct

[U-Boot] [RFC] himport_r() with the first call malloc() (with bin relocation) problem in NDS32 architecture

2011-08-25 Thread 馬克泡
Hi all, I'm doing the relocation work for NDS32 architecture. Currently I've encountered bin relocation problem on malloc(). I've called malloc_bin_reloc() in my lib/board.c however the malloc for env_relocate still get problem. Hope someone whom has experience could help me and give me some

Re: [U-Boot] [PATCH V3 3/8] arm: Add savebp implementation for arm

2011-08-25 Thread Andreas Bießmann
Dear Simon, Am 25.08.2011 10:33, schrieb Simon Schwarz: This adds the savebp implementation to the arm platform. please reorder your series and let this come before 'Add savebp command' cause that patch uses functionality from this one. Related CONFIGs: CONFIG_CMD_SAVEBP_WRITE_SIZE defines

Re: [U-Boot] [PATCH V3 8/8] savebp: added Readme

2011-08-25 Thread Andreas Bießmann
Dear Simon, Am 25.08.2011 10:33, schrieb Simon Schwarz: Adds a Readme for the savebp command This patch should be merged with 'Add savebp command' Signed-off-by: Simon Schwarz simonschwarz...@gmail.com --- V2 changes: ADDED in V2 V3 changes: nothing --- doc/README.commands.savebp

Re: [U-Boot] [PATCH v2 1/3] net: Adds Fast Ethernet Controller driver for Armada100

2011-08-25 Thread Ajay Bhargav
- Marek Vasut marek.va...@gmail.com wrote: [...] +static void abortdma(struct eth_device *dev) +{ + struct armdfec_device *darmdfec = to_darmdfec(dev); + struct armdfec_reg *regs = darmdfec-regs; + int delay; + int maxretries = 40; + + do { +

Re: [U-Boot] [PATCH V3 0/8] SPL Linux boot

2011-08-25 Thread Simon Schwarz
Dear Wolfgang Denk, On 08/25/2011 12:17 PM, Wolfgang Denk wrote: Dear Simon Schwarz, In message1314261196-23197-1-git-send-email-simonschwarz...@gmail.com you wrote: Adds direct Linux boot to SPL. It implements a savebp command to save ATAGS or FDT to NAND flash. The kernel image has to

Re: [U-Boot] [PATCH V3 4/8] omap-common/spl: Add linux boot to SPL

2011-08-25 Thread Andreas Bießmann
Dear Simon, Am 25.08.2011 10:33, schrieb Simon Schwarz: This adds Linux booting to the SPL Related CONFIGs: CONFIG_SPL_OS_BOOT Activates/Deactivates the OS booting feature CONFIG_SPL_OS_BOOT_KEY defines the IO-pin number u-boot switch - if pressed u-boot is booted

Re: [U-Boot] [PATCH v2 2/3] Armada100: Enable Ethernet support for GplugD

2011-08-25 Thread Marek Vasut
On Thursday, August 25, 2011 07:15:17 AM Ajay Bhargav wrote: - Marek Vasut marek.va...@gmail.com wrote: [...] +/* Disable DCACHE */ +#define CONFIG_SYS_DCACHE_OFF ARMADA100 is still ARMv5? Then maybe you can try Hong Xu's patches for dcache on armv5. You'll have to modify

Re: [U-Boot] [PATCH v2 1/3] net: Adds Fast Ethernet Controller driver for Armada100

2011-08-25 Thread Marek Vasut
On Thursday, August 25, 2011 07:24:22 AM Ajay Bhargav wrote: - Marek Vasut marek.va...@gmail.com wrote: On Wednesday, August 24, 2011 05:42:06 PM Mike Frysinger wrote: On Wednesday, August 24, 2011 09:07:18 Ajay Bhargav wrote: + darmdfec-p_rxdesc = (struct rx_desc *)

Re: [U-Boot] [PATCH v2 1/3] net: Adds Fast Ethernet Controller driver for Armada100

2011-08-25 Thread Marek Vasut
On Thursday, August 25, 2011 07:21:25 AM Ajay Bhargav wrote: - Marek Vasut marek.va...@gmail.com wrote: On Wednesday, August 24, 2011 03:07:18 PM Ajay Bhargav wrote: This patch adds support for Fast Ethernet Controller driver for Armada100 series. Signed-off-by: Ajay Bhargav

Re: [U-Boot] [PATCH v2 1/3] net: Adds Fast Ethernet Controller driver for Armada100

2011-08-25 Thread Marek Vasut
On Thursday, August 25, 2011 01:07:32 PM Ajay Bhargav wrote: - Marek Vasut marek.va...@gmail.com wrote: [...] +static void abortdma(struct eth_device *dev) +{ + struct armdfec_device *darmdfec = to_darmdfec(dev); + struct armdfec_reg *regs = darmdfec-regs; + int delay;

Re: [U-Boot] [PATCH v2 2/3] Armada100: Enable Ethernet support for GplugD

2011-08-25 Thread Ajay Bhargav
- Marek Vasut marek.va...@gmail.com wrote: On Thursday, August 25, 2011 07:15:17 AM Ajay Bhargav wrote: - Marek Vasut marek.va...@gmail.com wrote: [...] +/* Disable DCACHE */ +#define CONFIG_SYS_DCACHE_OFF ARMADA100 is still ARMv5? Then maybe you can try Hong Xu's

Re: [U-Boot] [PATCH v2 1/3] net: Adds Fast Ethernet Controller driver for Armada100

2011-08-25 Thread Ajay Bhargav
- Marek Vasut marek.va...@gmail.com wrote: On Thursday, August 25, 2011 01:07:32 PM Ajay Bhargav wrote: - Marek Vasut marek.va...@gmail.com wrote: [...] +static void abortdma(struct eth_device *dev) +{ + struct armdfec_device *darmdfec = to_darmdfec(dev);

[U-Boot] RFC: Testing U-Boot Part 1

2011-08-25 Thread Simon Glass
Hi, Summary: I am quite keen on improving the test infrastructure in U-Boot. I would like to have a test suite that can run in a minute or two on a Linux PC and test all non-platform code. Detail == We can break the U-Boot code base into two parts: 1. Platform code, which is SOC-specifc. At

Re: [U-Boot] [PATCH v2 2/3] Armada100: Enable Ethernet support for GplugD

2011-08-25 Thread Marek Vasut
On Thursday, August 25, 2011 02:09:46 PM Ajay Bhargav wrote: - Marek Vasut marek.va...@gmail.com wrote: On Thursday, August 25, 2011 07:15:17 AM Ajay Bhargav wrote: - Marek Vasut marek.va...@gmail.com wrote: [...] +/* Disable DCACHE */ +#define CONFIG_SYS_DCACHE_OFF

Re: [U-Boot] [STATUS] ARM: board removal

2011-08-25 Thread Albert ARIBAUD
Hi Wolfgang, Le 24/08/2011 20:11, Wolfgang Denk a écrit : Dear Albert ARIBAUD, In message4e553288.9000...@aribaud.net you wrote: Wolfgang, did you by any chance use some kind of script to produce your patchset, and if so, could you regenerate the set of patches for the remaining boards,

Re: [U-Boot] RFC: Testing U-Boot Part 1

2011-08-25 Thread Andreas Bießmann
Dear Simon, Am 25.08.2011 14:58, schrieb Simon Glass: Hi, Summary: I am quite keen on improving the test infrastructure in U-Boot. I would like to have a test suite that can run in a minute or two on a Linux PC and test all non-platform code. snip To get around this I propose that we

Re: [U-Boot] [PATCH] Error : Not finding asm/arch/gpio.h

2011-08-25 Thread Mike Frysinger
On Thursday, August 25, 2011 02:29:12 Faisal H wrote: While building with omap3_beagle_config configuration, getting an error about not finding asm/arch/gpio.h (which does not exist). Found that header files are moved to arch/arm/include/asm/arch-. Fixed the includes to find the file.. NAK on

Re: [U-Boot] [PATCH v2 1/3] net: Adds Fast Ethernet Controller driver for Armada100

2011-08-25 Thread Mike Frysinger
On Thursday, August 25, 2011 01:10:30 Ajay Bhargav wrote: - Mike Frysinger vap...@gentoo.org wrote: On Wednesday, August 24, 2011 09:07:18 Ajay Bhargav wrote: + /* Read mac from env if available */ + eth_getenv_enetaddr(ethaddr, dev-enetaddr); you shouldnt need to do this. the

Re: [U-Boot] phylib + mii + phy_parse_status

2011-08-25 Thread Mike Frysinger
On Thursday, August 25, 2011 03:56:50 Michal Simek wrote: Then will be good to synchronize FULL/HALF and DUPLEX_FULL/DUPLEX_HALF. miiphy.h #define HALF22 #define FULL44 include/linux/ethtool.h #define DUPLEX_HALF 0x00 #define

Re: [U-Boot] mii_phy.h

2011-08-25 Thread Mike Frysinger
On Thursday, August 25, 2011 03:25:32 Michal Simek wrote: Can someone clear me purpose of mii_phy.h? It looks like that it is really ancient file which hasn't been touched from 2003. It is use for two files [monstr@monstr u-boot]$ grep -rn mii_phy.h * board/ep8260/mii_phy.c:2:#include

Re: [U-Boot] gcc-4.6 warnings

2011-08-25 Thread Kumar Gala
On Aug 25, 2011, at 12:52 AM, Wolfgang Denk wrote: Dear Kumar Gala, In message 348935c0-0c2d-4a7a-8abe-9d09e2904...@kernel.crashing.org you wrote: If the variable is not used, why don't we remove it, then? In the vast number of cases it because of some #ifdef case not be defined in

Re: [U-Boot] RFC: Testing U-Boot Part 1

2011-08-25 Thread Marek Vasut
On Thursday, August 25, 2011 02:58:00 PM Simon Glass wrote: Hi, Summary: I am quite keen on improving the test infrastructure in U-Boot. I would like to have a test suite that can run in a minute or two on a Linux PC and test all non-platform code. Detail == We can break the U-Boot

[U-Boot] [PATCH 1/1] mmc: omap: enable high capacity

2011-08-25 Thread Balaji T K
Enable high capacity to host capability. Fixes eMMC detection on boot from MMC/SD card. Signed-off-by: Balaji T K balaj...@ti.com Signed-off-by: Aneesh V ane...@ti.com --- drivers/mmc/omap_hsmmc.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/drivers/mmc/omap_hsmmc.c

[U-Boot] [PATCH 1/1] mmc: omap: config VMMC, MMC1_PBIAS

2011-08-25 Thread Balaji T K
Config VMMC voltage to 3V for MMC/SD card slot and PBIAS settings needed for OMAP4 Fixes MMC/SD detection on boot from eMMC. Signed-off-by: Balaji T K balaj...@ti.com Signed-off-by: Aneesh V ane...@ti.com --- arch/arm/include/asm/arch-omap4/omap4.h |1 + drivers/mmc/omap_hsmmc.c

Re: [U-Boot] gcc-4.6 warnings

2011-08-25 Thread Mike Frysinger
On Thursday, August 25, 2011 10:27:42 Kumar Gala wrote: On Aug 25, 2011, at 12:52 AM, Wolfgang Denk wrote: Kumar Gala wrote: If the variable is not used, why don't we remove it, then? In the vast number of cases it because of some #ifdef case not be defined in the given build.

Re: [U-Boot] [PATCH 1/1] mmc: omap: config VMMC, MMC1_PBIAS

2011-08-25 Thread Marek Vasut
On Thursday, August 25, 2011 04:48:25 PM Balaji T K wrote: Config VMMC voltage to 3V for MMC/SD card slot and PBIAS settings needed for OMAP4 Fixes MMC/SD detection on boot from eMMC. Signed-off-by: Balaji T K balaj...@ti.com Signed-off-by: Aneesh V ane...@ti.com ---

Re: [U-Boot] RFC: Testing U-Boot Part 1

2011-08-25 Thread Mike Frysinger
On Thursday, August 25, 2011 09:56:02 Andreas Bießmann wrote: Am 25.08.2011 14:58, schrieb Simon Glass: Summary: I am quite keen on improving the test infrastructure in U-Boot. I would like to have a test suite that can run in a minute or two on a Linux PC and test all non-platform code.

Re: [U-Boot] RFC: Testing U-Boot Part 1

2011-08-25 Thread Mike Frysinger
On Thursday, August 25, 2011 08:58:00 Simon Glass wrote: Proposal for people who might be familiar with the barebox boot loader, Simon is basically proposing the same thing as barebox's sandbox target. to avoid confusion/fragmentation in this area, and since the name is a large part

[U-Boot] [PATCH] OMAP3: DIG297: Use generic MMC driver

2011-08-25 Thread Tom Rini
Switch from the legacy omap3 mmc driver to the new generic omap hsmmc driver. This patch is based on the work done for Beagle, etc. Tested-by: Luca Ceresoli luca.ceres...@comelit.it Signed-off-by: Tom Rini tr...@ti.com --- V2 changes: Follow board config format, just use #define

[U-Boot] [PATCH v2] ns16550: change to allow 32 bit access to registers

2011-08-25 Thread Dave Aldridge
If CONFIG_SYS_NS16550_MEM32 is defined then 32 bit memory mapped access will be used to read/write the uart registers. This is especially useful for SoC devices that implement 16550 compatible uarts but that have peripheral access width constraints. Signed-off-by: Dave Aldridge fovs...@gmail.com

Re: [U-Boot] [PATCH 1/1] mmc: omap: config VMMC, MMC1_PBIAS

2011-08-25 Thread T Krishnamoorthy, Balaji
On Thu, Aug 25, 2011 at 8:25 PM, Marek Vasut marek.va...@gmail.com wrote: On Thursday, August 25, 2011 04:48:25 PM Balaji T K wrote: Config VMMC voltage to 3V for MMC/SD card slot and PBIAS settings needed for OMAP4 Fixes MMC/SD detection on boot from eMMC. Signed-off-by: Balaji T K

Re: [U-Boot] [PATCH] ppc460: read get_sys_info from CPR registers instead of STRP registers

2011-08-25 Thread Tirumala Marri
Hi Wolfgang, Stefan asked before, but you did not reply yet, so here I ask again: What exactly are your plans? You did not respond to the Eiger patches for the last 9 months, so I somewhat doubt you are going to submit usable patches within the next couple of days, or are you? [marri] I will

Re: [U-Boot] [PATCH] ppc460: read get_sys_info from CPR registers instead of STRP registers

2011-08-25 Thread Tirumala Marri
Mike and Stefan, Thanks. Unfortunately this patch introduces compile errors for 460SX boards (e.g. redwood): [stefan@kubuntu u-boot-ppc4xx (master)]$ ./MAKEALL redwood Configuring for redwood board... speed.c: In function 'get_sys_info': speed.c:339: error: 'PLLD_FWDVA_MASK' undeclared (first

Re: [U-Boot] RFC: Testing U-Boot Part 1

2011-08-25 Thread Anton Staaf
On Thu, Aug 25, 2011 at 8:01 AM, Mike Frysinger vap...@gentoo.org wrote: On Thursday, August 25, 2011 08:58:00 Simon Glass wrote: Proposal for people who might be familiar with the barebox boot loader, Simon is basically proposing the same thing as barebox's sandbox target. to

[U-Boot] fw_env bug for multi-sector environments on NOR flash

2011-08-25 Thread Fei, Yiyang
Hi, I am storing u-boot environment variables on a NOR flash using two sectors. I encountered an error when writing changes using fw_setenv. /etc # cat fw_env.config # Configuration file for fw_(printenv/saveenv) utility. # Up to two entries are valid, in this case the redundand # environment

[U-Boot] Get a Legitimate Business offer

2011-08-25 Thread Mr. Ma Guang Lu
Business Mail I am Mr. Ma Guang Lu; with a business deal worth $17.3Million, for us to transact from my bank. please reply for details. ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] gcc-4.6 warnings

2011-08-25 Thread Tabi Timur-B04825
On Thu, Aug 25, 2011 at 9:51 AM, Mike Frysinger vap...@gentoo.org wrote: i feel like some (many?) #ifdef's in the tree could be done without ifdefs (by relying on gcc's DCE) thus improving overall code quality What's DCE? -- Timur Tabi Linux kernel developer at Freescale

Re: [U-Boot] RFC: Testing U-Boot Part 1

2011-08-25 Thread Wolfgang Denk
Dear Simon Glass, In message capnjgz3zqfhzgtcausrngu3qb5ajxo9fthkmyuwurawykev...@mail.gmail.com you wrote: Summary: I am quite keen on improving the test infrastructure in U-Boot. I would like to have a test suite that can run in a minute or two on a Linux PC and test all non-platform code.

Re: [U-Boot] gcc-4.6 warnings

2011-08-25 Thread Mike Frysinger
On Thursday, August 25, 2011 15:50:57 Tabi Timur-B04825 wrote: On Thu, Aug 25, 2011 at 9:51 AM, Mike Frysinger vap...@gentoo.org wrote: i feel like some (many?) #ifdef's in the tree could be done without ifdefs (by relying on gcc's DCE) thus improving overall code quality What's DCE? dead

Re: [U-Boot] [STATUS] ARM: board removal

2011-08-25 Thread Wolfgang Denk
Dear Albert ARIBAUD, In message 4e564825.8080...@aribaud.net you wrote: Well, to the first question the answer is all boards in the patch set for which an action is still required in patchwork and to the second That would be: [U-Boot,46/52] ARM: remove broken at91rm9200dk board

Re: [U-Boot] gcc-4.6 warnings

2011-08-25 Thread Wolfgang Denk
Dear Kumar Gala, In message 7056f5b1-ad6c-459e-80f1-8ee436cc7...@kernel.crashing.org you wrote: well, that's the reason for the warnings showing up, it isn't the reason why we cannot fix these? :), Thus my query if we really wanted to try and fix them by adding more #ifdef's or live with

Re: [U-Boot] [PATCH v2] ns16550: change to allow 32 bit access to registers

2011-08-25 Thread Wolfgang Denk
Dear Dave Aldridge, In message 1314286215-29470-1-git-send-email-fovs...@gmail.com you wrote: @@ -19,6 +19,12 @@ #ifdef CONFIG_SYS_NS16550_PORT_MAPPED #define serial_out(x,y) outb(x,(ulong)y) #define serial_in(y) inb((ulong)y) +#elif defined(CONFIG_SYS_NS16550_MEM32)

Re: [U-Boot] fw_env bug for multi-sector environments on NOR flash

2011-08-25 Thread Wolfgang Denk
Dear Fei, Yiyang, In message c2a5d1386c6db94198f2a5c8368eae6c14659...@dulmex02.barco.com you wrote: # MTD device name Device offset Env. size Flash sector size Number of sectors /dev/mtd12 0x 0x2 0x1 2 Stupid question: why do

Re: [U-Boot] [PATCH 5/7] powerpc/mpc83xx: Migrate from spd_sdram to unified DDR driver

2011-08-25 Thread York Sun
Wolfgang, On Thu, 2011-08-25 at 00:36 +0200, Wolfgang Denk wrote: Dear York Sun, In message 1312923045-2612-5-git-send-email-york...@freescale.com you wrote: Unified DDR driver is maintained for better performance, robustness and bug fixes. Upgrading to use unified DDR driver for MPC83xx

Re: [U-Boot] RFC: Testing U-Boot Part 1

2011-08-25 Thread Mike Frysinger
On Thursday, August 25, 2011 16:21:51 Wolfgang Denk wrote: Simon Glass wrote: For speed, debugging and convenience, it would be nice to run U-Boot under a generic Linux environment on a workstation, and test all the generic non-platform code. The basic problem with this is that the

Re: [U-Boot] [PATCH 5/7] powerpc/mpc83xx: Migrate from spd_sdram to unified DDR driver

2011-08-25 Thread Wolfgang Denk
Dear York Sun, In message 1314305821.29220.21.camel@oslab-l1 you wrote: WARNING: do not add new typedefs #408: FILE: arch/powerpc/include/asm/immap_83xx.h:289: +typedef struct ccsr_ddr { Please fix. I can fix the new tyepdef. But this one isn't. It has been used for a long time

Re: [U-Boot] [PATCH 5/7] powerpc/mpc83xx: Migrate from spd_sdram to unified DDR driver

2011-08-25 Thread York Sun
On Thu, 2011-08-25 at 23:20 +0200, Wolfgang Denk wrote: Dear York Sun, In message 1314305821.29220.21.camel@oslab-l1 you wrote: WARNING: do not add new typedefs #408: FILE: arch/powerpc/include/asm/immap_83xx.h:289: +typedef struct ccsr_ddr { Please fix. I can fix the

Re: [U-Boot] [PATCH 5/7] powerpc/mpc83xx: Migrate from spd_sdram to unified DDR driver

2011-08-25 Thread Wolfgang Denk
Dear York Sun, In message 1314307500.29220.24.camel@oslab-l1 you wrote: Fixing all existing reference to ccs_ddr is a lot of work, comparing with defining it for 83xx. There are many other typedefs in the very same files. Would we fix all of them? I don't think so. The bottom of well, if you

Re: [U-Boot] [PATCH 5/7] powerpc/mpc83xx: Migrate from spd_sdram to unified DDR driver

2011-08-25 Thread York Sun
Wolfgang, On Thu, 2011-08-25 at 23:30 +0200, Wolfgang Denk wrote: Dear York Sun, In message 1314307500.29220.24.camel@oslab-l1 you wrote: Fixing all existing reference to ccs_ddr is a lot of work, comparing with defining it for 83xx. There are many other typedefs in the very same

[U-Boot] standalone application export eth_receive: undefined index

2011-08-25 Thread Robin Theunis
Hi all I have a little problem. I need to access the eth_receive function in my standalone application. The U-boot version is 1.3.3 (I know it is old but it is a requirement). Also I have seen that I need to enable #define CONFIG_API but building with this option fails. Current platfom is a

Re: [U-Boot] gcc-4.6 warnings

2011-08-25 Thread Timur Tabi
Mike Frysinger wrote: if we let the optimizer do it instead of the preprocessor, we get better code coverage in the face of different config settings. Oh, I thought this was some new feature of U-Boot. Can you give me an example of where DCE could be used to eliminate an #ifdef? -- Timur

Re: [U-Boot] gcc-4.6 warnings

2011-08-25 Thread Timur Tabi
Timur Tabi wrote: Oh, I thought this was some new feature of U-Boot. I meant a new feature of gcc. Ugh. -- Timur Tabi Linux kernel developer at Freescale ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] gcc-4.6 warnings

2011-08-25 Thread Mike Frysinger
On Thursday, August 25, 2011 17:44:58 Timur Tabi wrote: Mike Frysinger wrote: if we let the optimizer do it instead of the preprocessor, we get better code coverage in the face of different config settings. Oh, I thought this was some new feature of U-Boot. Can you give me an example of

[U-Boot] [PATCH] NAND: Add nand read.raw and write.raw commands

2011-08-25 Thread Marek Vasut
These commands should work around various hardware ECC and BCH methods. This is important for example in case where the user needs to write precisely what's in a buffer to a NAND page, with no interference of hardware ECC engine or such. Signed-off-by: Marek Vasut marek.va...@gmail.com ---

Re: [U-Boot] fw_env bug for multi-sector environments on NOR flash

2011-08-25 Thread Fei, Yiyang
Dear Mr. Denk, Stupid question: why do you define an environment size of 128 kB? I bet you use less than 10% of this, right? Correct Are you aware that this has a lof of disadvantages, lile significantly slowing down your boot process? I am now, but the first product is already released

Re: [U-Boot] RFC: Testing U-Boot Part 1

2011-08-25 Thread Marek Vasut
On Thursday, August 25, 2011 04:56:39 PM Mike Frysinger wrote: On Thursday, August 25, 2011 09:56:02 Andreas Bießmann wrote: Am 25.08.2011 14:58, schrieb Simon Glass: Summary: I am quite keen on improving the test infrastructure in U-Boot. I would like to have a test suite that can run in

Re: [U-Boot] [PATCH 5/7] powerpc/mpc83xx: Migrate from spd_sdram to unified DDR driver

2011-08-25 Thread Wolfgang Denk
Dear York Sun, In message 1314308192.29220.29.camel@oslab-l1 you wrote: I am introducing it to this file as it is already being used somewhere else. If you are trying to enforce this new policy, please start with brand new files/typedefs, as you pointed out in my another patch. I will be

Re: [U-Boot] standalone application export eth_receive: undefined index

2011-08-25 Thread Wolfgang Denk
Dear Robin Theunis, In message cameaxtydvu2yd3bxr7ny0v+ulmkp0dzhapxzdt7t1fy7pkk...@mail.gmail.com you wrote: I have a little problem. I need to access the eth_receive function in my standalone application. The U-boot version is 1.3.3 (I know it is old but it is a requirement). eth_receive

[U-Boot] Why are have_console and env_valid not in gd-flags?

2011-08-25 Thread Graeme Russ
Does anyone know why have_console and env_valid are not part of gd-flags? I know env_valid is tri-state, but it could still be put in flags as a double-bit Regards, Graeme ___ U-Boot mailing list U-Boot@lists.denx.de

Re: [U-Boot] RFC: Testing U-Boot Part 1

2011-08-25 Thread Graeme Russ
Hi Simon, Mike On Fri, Aug 26, 2011 at 1:01 AM, Mike Frysinger vap...@gentoo.org wrote: On Thursday, August 25, 2011 08:58:00 Simon Glass wrote: Proposal for people who might be familiar with the barebox boot loader, Simon is basically proposing the same thing as barebox's sandbox

[U-Boot] (no subject)

2011-08-25 Thread Ronny D
a href=http://www.locksplususa.com/images/vfst.htm;http://www.locksplususa.com/images/vfst.htm/a___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] RFC: Testing U-Boot Part 1

2011-08-25 Thread Simon Glass
Hi, Thanks all for comments. It sounds like people are keen on the idea so far as it goes. I will work on a patch set complete enough to bring up a U-Boot prompt, allowing typing of 'help' and with a special segfault feature for anything else. Before I do this, and to avoid me redoing work

Re: [U-Boot] RFC: Testing U-Boot Part 1

2011-08-25 Thread Graeme Russ
Hi Simon, On Fri, Aug 26, 2011 at 1:32 PM, Simon Glass s...@chromium.org wrote: Hi, Thanks all for comments. It sounds like people are keen on the idea so far as it goes. I will work on a patch set complete enough to bring up a U-Boot prompt, allowing typing of 'help' and with a special

Re: [U-Boot] [PATCH v2 1/3] net: Adds Fast Ethernet Controller driver for Armada100

2011-08-25 Thread Ajay Bhargav
- Mike Frysinger vap...@gentoo.org wrote: On Thursday, August 25, 2011 01:10:30 Ajay Bhargav wrote: - Mike Frysinger vap...@gentoo.org wrote: On Wednesday, August 24, 2011 09:07:18 Ajay Bhargav wrote: + /* Read mac from env if available */ +