Re: [U-Boot] [PATCH v3 2/9] i2c: common changes for multibus/multiadapter support

2013-05-06 Thread Daniel Schwierzeck
2013/5/4 Heiko Schocher h...@denx.de Signed-off-by: Heiko Schocher h...@denx.de Signed-off-by: Simon Glass s...@chromium.org Cc: Henrik Nordström hen...@henriknordstrom.net --- - changes for v2: add comment from Henrik Nordström hen...@henriknordstrom.net remove wrong line in README

Re: [U-Boot] [PATCH v3 06/10] MIPS: qemu-malta: add PCI support

2013-05-22 Thread Daniel Schwierzeck
2013/5/22 Gabor Juhos juh...@openwrt.org: Qemu emulates the Galileo GT64120 System Controller which provides a CPU bus to PCI bus bridge. The patch adds driver for this bridge and enables PCI support for the emulated Malta board. Signed-off-by: Gabor Juhos juh...@openwrt.org Cc: Daniel

Re: [U-Boot] [PATCH v3 06/10] MIPS: qemu-malta: add PCI support

2013-05-23 Thread Daniel Schwierzeck
a CPU bus to PCI bus bridge. The patch adds driver for this bridge and enables PCI support for the emulated Malta board. Signed-off-by: Gabor Juhos juh...@openwrt.org Cc: Daniel Schwierzeck daniel.schwierz...@googlemail.com ELDK-5.3 shows some warnings: pci_indirect.c: In function

Re: [U-Boot] [PATCH] pci: introduce CONFIG_PCI_INDIRECT_BRIDGE option

2013-05-30 Thread Daniel Schwierzeck
-- nds32: - SUMMARY Boards compiled: 3 -- Cc: Tom Rini tr...@ti.com Cc: Daniel Schwierzeck daniel.schwierz...@googlemail.com Signed-off-by: Gabor Juhos juh...@openwrt.org

[U-Boot] [PATCH] mtd: nand: fix initialization of BBT options

2013-06-08 Thread Daniel Schwierzeck
. Signed-off-by: Daniel Schwierzeck daniel.schwierz...@gmail.com --- Patch is compile tested on boards smdk2410 and qi_lb60 --- drivers/mtd/nand/jz4740_nand.c | 2 +- drivers/mtd/nand/s3c2410_nand.c | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/mtd/nand/jz4740_nand.c

[U-Boot] [PATCH] MIPS: asm/errno.h: switch to asm-generic/errno.h

2013-06-08 Thread Daniel Schwierzeck
This fixes several warnings like In file included from ./u-boot/include/linux/mtd/mtd.h:13:0, from env_onenand.c:37: ./u-boot/build/vct_platinumavc_onenand_small/include2/asm/errno.h:52:0: warning: ENOMSG redefined [enabled by default] Signed-off-by: Daniel Schwierzeck

[U-Boot] [GIT PULL] u-boot-mips/fixes

2013-06-08 Thread Daniel Schwierzeck
) Daniel Schwierzeck (1): MIPS: asm/errno.h: switch to asm-generic/errno.h Gabor Juhos (1): MIPS: fix __raw_* IO accessors arch/mips/include/asm/errno.h | 144

[U-Boot] [PATCH 04/11] MIPS: bootm: refactor initialisation of kernel cmdline

2013-06-08 Thread Daniel Schwierzeck
Move initialisation of Linux command line to separate functions. Also add support for bootm subcommand 'cmdline'. Signed-off-by: Daniel Schwierzeck daniel.schwierz...@gmail.com --- arch/mips/lib/bootm.c | 130 -- 1 file changed, 84 insertions

[U-Boot] [PATCH 03/11] MIPS: bootm: add support for LMB

2013-06-08 Thread Daniel Schwierzeck
This is required for init ramdisk relocation and device tree support. Signed-off-by: Gabor Juhos juh...@openwrt.org Signed-off-by: Daniel Schwierzeck daniel.schwierz...@gmail.com --- arch/mips/include/asm/config.h | 2 ++ arch/mips/lib/bootm.c | 21 + 2 files

[U-Boot] [PATCH 08/11] MIPS: bootm: automatically initialise kernel cmdline variable 'mem'

2013-06-08 Thread Daniel Schwierzeck
This replaces the passing of memory size via the traditional Linux environment. This is required for recent Linux kernels. Signed-off-by: Daniel Schwierzeck daniel.schwierz...@gmail.com --- arch/mips/lib/bootm.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/mips/lib/bootm.c b

[U-Boot] [PATCH 01/11] MIPS: bootm: fix checkpatch.pl warnings

2013-06-08 Thread Daniel Schwierzeck
Signed-off-by: Daniel Schwierzeck daniel.schwierz...@gmail.com --- arch/mips/lib/bootm.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/arch/mips/lib/bootm.c b/arch/mips/lib/bootm.c index a36154a..6b38955 100644 --- a/arch/mips/lib/bootm.c +++ b/arch/mips/lib

[U-Boot] [PATCH 0/11] MIPS: bootm updates

2013-06-08 Thread Daniel Schwierzeck
Qemu - drop obsolete bootm support of MIPS Qemu Daniel Schwierzeck (11): MIPS: bootm: fix checkpatch.pl warnings MIPS: bootm: optimise kernel entry call MIPS: bootm: add support for LMB MIPS: bootm: refactor initialisation of kernel cmdline MIPS: bootm: refactor initialisation of kernel

[U-Boot] [PATCH 07/11] MIPS: bootm: add support for generic relocation of init ramdisks

2013-06-08 Thread Daniel Schwierzeck
All linux kernels after v2.6 require a page-aligned location of an external init ramdisk. Enable CONFIG_SYS_BOOT_RAMDISK_HIGH to support this with the generic U-Boot relocation code. Signed-off-by: Daniel Schwierzeck daniel.schwierz...@gmail.com --- arch/mips/include/asm/config.h | 1 + arch

[U-Boot] [PATCH 09/11] MIPS: bootm: automatically initialise kernel cmdline variables 'rd_start' and 'rd_size'

2013-06-08 Thread Daniel Schwierzeck
This replaces the passing of the location and size of an external init ramdisk via the traditional Linux environment. This is required to supporta again external init ramdisks with recent Linux kernels. Signed-off-by: Daniel Schwierzeck daniel.schwierz...@gmail.com --- arch/mips/lib/bootm.c | 12

[U-Boot] [PATCH 11/11] MIPS: bootm: drop obsolete Qemu specific bootm implementation

2013-06-08 Thread Daniel Schwierzeck
Signed-off-by: Daniel Schwierzeck daniel.schwierz...@gmail.com --- arch/mips/lib/Makefile | 4 --- arch/mips/lib/bootm_qemu_mips.c | 78 - 2 files changed, 82 deletions(-) delete mode 100644 arch/mips/lib/bootm_qemu_mips.c diff --git a/arch/mips

[U-Boot] [PATCH 06/11] MIPS: bootm: make initialisation of Linux environment optional

2013-06-08 Thread Daniel Schwierzeck
Recent linux kernels do not use that special environment variables anymore. Add an option to disable compilation of that code but keep it for compatibilty with older kernels. Signed-off-by: Daniel Schwierzeck daniel.schwierz...@gmail.com --- README| 6 ++ arch/mips/lib

[U-Boot] [PATCH 10/11] MIPS: bootm: add YAMON style Linux preparation/jump code for Qemu Malta

2013-06-08 Thread Daniel Schwierzeck
Signed-off-by: Gabor Juhos juh...@openwrt.org Signed-off-by: Daniel Schwierzeck daniel.schwierz...@gmail.com --- arch/mips/lib/bootm.c | 22 -- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/arch/mips/lib/bootm.c b/arch/mips/lib/bootm.c index 68b57d7..1dc4e73

[U-Boot] [PATCH 02/11] MIPS: bootm: optimise kernel entry call

2013-06-08 Thread Daniel Schwierzeck
Fix signature of kernel entry function. Mark the kernel entry with __noreturn for better code optimisation. Signed-off-by: Daniel Schwierzeck daniel.schwierz...@gmail.com --- arch/mips/lib/bootm.c | 11 --- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/arch/mips/lib

[U-Boot] [PATCH 05/11] MIPS: bootm: refactor initialisation of kernel environment

2013-06-08 Thread Daniel Schwierzeck
Move initialisation of Linux environment to separate functions. Signed-off-by: Daniel Schwierzeck daniel.schwierz...@gmail.com --- arch/mips/lib/bootm.c | 69 ++- 1 file changed, 35 insertions(+), 34 deletions(-) diff --git a/arch/mips/lib/bootm.c

Re: [U-Boot] [PATCH 04/11] MIPS: bootm: refactor initialisation of kernel cmdline

2013-06-09 Thread Daniel Schwierzeck
2013/6/9 Wolfgang Denk w...@denx.de: Dear Daniel Schwierzeck, In message 1370731370-32767-5-git-send-email-daniel.schwierz...@gmail.com you wrote: Move initialisation of Linux command line to separate functions. Also add support for bootm subcommand 'cmdline'. +static void

[U-Boot] [PATCH v2 01/11] MIPS: bootm: fix checkpatch.pl warnings

2013-06-09 Thread Daniel Schwierzeck
Signed-off-by: Daniel Schwierzeck daniel.schwierz...@gmail.com --- Changes in v2: - fix multi-line comment arch/mips/lib/bootm.c | 13 +++-- 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/arch/mips/lib/bootm.c b/arch/mips/lib/bootm.c index a36154a..148c18b 100644

[U-Boot] [PATCH v2 04/11] MIPS: bootm: refactor initialisation of kernel cmdline

2013-06-09 Thread Daniel Schwierzeck
Move initialisation of Linux command line to separate functions. Also add support for bootm subcommand 'cmdline'. Signed-off-by: Daniel Schwierzeck daniel.schwierz...@gmail.com --- Changes in v2: - use debug() macro arch/mips/lib/bootm.c | 130

Re: [U-Boot] [PATCH] MIPS: mips64: fix typos in copyright text of start.S

2013-06-11 Thread Daniel Schwierzeck
2013/6/11 Gabor Juhos juh...@openwrt.org: Signed-off-by: Gabor Juhos juh...@openwrt.org Cc: Daniel Schwierzeck daniel.schwierz...@gmail.com --- arch/mips/cpu/mips64/start.S |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/mips/cpu/mips64/start.S b/arch/mips

Re: [U-Boot] [PATCH 0/4] MIPS: minor cleanups

2013-06-12 Thread Daniel Schwierzeck
2013/6/12 Gabor Juhos juh...@openwrt.org: Gabor Juhos (4): MIPS: mips32/time.c: fix checkpatch errors/warnings MIPS: mips64/interrupt.c: remove superfluous include MIPS: remove obsolete TODO items MIPS: mips32/cache.S: remove superfluous register assignment

Re: [U-Boot] Porting U-boot-2013-04 to sdk for mips board

2013-06-13 Thread Daniel Schwierzeck
2013/6/13 krishna dwivedi krishna.dwived...@gmail.com: Hi, I am trying to port the u-boot2013:04 to sdk.During compilation,I am running into error:*Undefined reference to _GLOBAL_OFFSET_TABLE*.I checked in u-boot.lds file thr is no definition of _GLOBAL_OFFSET_TABLE.I have added this piece

Re: [U-Boot] [PATCH 00/10] MIPS: unify low-level assembly code

2013-06-16 Thread Daniel Schwierzeck
of the MIPS custodian tree. Cc: Daniel Schwierzeck daniel.schwierz...@googlemail.com Gabor Juhos (10): MIPS: mips32/start.S: use t8 register for dynamic relocation MIPS: mips32/start.S: rework relocation info check MIPS: xburst/start.S: save relocation address in s2 register MIPS: xburst

Re: [U-Boot] [PATCH v2] MIPS: simplify relocated _G_O_T_ address calculation

2013-01-30 Thread Daniel Schwierzeck
the relocated _G_O_T_ address, instead of calculating the offset again from the _gp value. Signed-off-by: Gabor Juhos juh...@openwrt.org Cc: Daniel Schwierzeck daniel.schwierz...@googlemail.com Cc: Xiangfu Liu xian...@openmobilefree.net --- Changes since v1: modify Xburst code as well This depends

Re: [U-Boot] [PATCH] MIPS: xburst: simplify relocation offset calculation

2013-01-30 Thread Daniel Schwierzeck
address. The resulting offset can be used to adjust the gp pointer. This approach makes the code a bit simpler because it needs two instructions only. Signed-off-by: Gabor Juhos juh...@openwrt.org Cc: Daniel Schwierzeck daniel.schwierz...@googlemail.com Cc: Xiangfu Liu xian

Re: [U-Boot] [PATCH] MIPS: remove OUTPUT_FORMAT from linker scripts

2013-01-30 Thread Daniel Schwierzeck
-by: Gabor Juhos juh...@openwrt.org Cc: Daniel Schwierzeck daniel.schwierz...@googlemail.com Cc: Stefan Roese s...@denx.de Cc: Wolfgang Denk w...@denx.de Cc: Xiangfu Liu xian...@openmobilefree.net --- arch/mips/cpu/mips32/config.mk |6 ++ arch/mips/cpu/xburst/config.mk |6

Re: [U-Boot] [PATCH v2 0/7] MIPS: use an unified u-boot.lds script

2013-01-30 Thread Daniel Schwierzeck
2013/1/30 Gabor Juhos juh...@openwrt.org: This patch-set adds an unfied u-boot.lds file for the MIPS architecture, and removes the linker scripts of the individual boards. The series depends on the following patch: MIPS: remove OUTPUT_FORMAT from linker scripts

[U-Boot] [PATCH] MIPS: start.S: unify and simplify reset vector handling

2013-01-30 Thread daniel . schwierzeck
From: Daniel Schwierzeck daniel.schwierz...@gmail.com Adopt reset vector handling from Yamon. Signed-off-by: Daniel Schwierzeck daniel.schwierz...@gmail.com --- arch/mips/cpu/mips32/start.S | 185 +-- arch/mips/cpu/mips64/start.S | 55 +++-- 2

[U-Boot] [PATCH] MIPS: start.S: remove obsolete 64 bit handling in setup_c0_status

2013-01-30 Thread daniel . schwierzeck
From: Daniel Schwierzeck daniel.schwierz...@gmail.com Signed-off-by: Daniel Schwierzeck daniel.schwierz...@gmail.com --- arch/mips/cpu/mips32/start.S | 10 +- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/arch/mips/cpu/mips32/start.S b/arch/mips/cpu/mips32/start.S index

Re: [U-Boot] [PATCH] MIPS: start.S: unify and simplify reset vector handling

2013-02-01 Thread Daniel Schwierzeck
2013/1/31 Gabor Juhos juh...@openwrt.org: Hi Daniel, From: Daniel Schwierzeck daniel.schwierz...@gmail.com Adopt reset vector handling from Yamon. Signed-off-by: Daniel Schwierzeck daniel.schwierz...@gmail.com --- arch/mips/cpu/mips32/start.S | 185

[U-Boot] [PATCH v2] MIPS: start.S: unify and simplify reset vector handling

2013-02-01 Thread daniel . schwierzeck
From: Daniel Schwierzeck daniel.schwierz...@gmail.com Adopt reset vector handling from Yamon. Signed-off-by: Daniel Schwierzeck daniel.schwierz...@gmail.com --- Changes for v2: - optimized U-Boot entry point on MIPS32 - fix indentation of .org --- arch/mips/cpu/mips32/start.S | 186

Re: [U-Boot] [PATCH v2] MIPS: start.S: unify and simplify reset vector handling

2013-02-01 Thread Daniel Schwierzeck
2013/2/1 Gabor Juhos juh...@openwrt.org: Hi Daniel, From: Daniel Schwierzeck daniel.schwierz...@gmail.com Adopt reset vector handling from Yamon. Signed-off-by: Daniel Schwierzeck daniel.schwierz...@gmail.com Looks good, I have only one minor comment below. --- Changes for v2

Re: [U-Boot] [PATCH v1] Refactor linker-generated arrays

2013-02-02 Thread Daniel Schwierzeck
able to run before relocation as well as after. Note: this affects more than ARM targets, as linker- lists span possibly all target architectures, notably PowerPC. Signed-off-by: Albert ARIBAUD albert.u.b...@aribaud.net --- for the MIPS part: Tested-by: Daniel Schwierzeck daniel.schwierz

Re: [U-Boot] [PATCH v2 01/10] MIPS: qemu-malta: add support for emulated MIPS Malta board

2013-02-02 Thread Daniel Schwierzeck
Cc: Daniel Schwierzeck daniel.schwierz...@googlemail.com --- Changes since v1: - remove custom u-boot.lds file - rebased against mips/testing Changes since RFC: --- --- Screenshot: U-Boot 2013.01-00075-g80fa5c7 (Feb 02 2013 - 16:59:19) Board: MIPS Malta CoreLV (Qemu) DRAM: 256 MiB

Re: [U-Boot] [PATCH v2 02/10] MIPS: qemu-malta: add reset support

2013-02-02 Thread Daniel Schwierzeck
2013/2/2 Gabor Juhos juh...@openwrt.org: The MIPS Malta board has a SOFTRES register. Writing a magic value into that register initiates a board reset. Use this feature to implement reset support. Signed-off-by: Gabor Juhos juh...@openwrt.org Cc: Daniel Schwierzeck daniel.schwierz

Re: [U-Boot] [PATCH v2 06/10] MIPS: qemu-malta: add PCI support

2013-02-02 Thread Daniel Schwierzeck
2013/2/2 Gabor Juhos juh...@openwrt.org: Qemu emulates the Galileo GT64120 System Controller which provides a CPU bus to PCI bus bridge. The patch adds driver for this bridge and enables PCI support for the emulated Malta board. Signed-off-by: Gabor Juhos juh...@openwrt.org Cc: Daniel

Re: [U-Boot] [PATCH v2 05/10] MIPS: qemu-malta: setup GT64120 registers as done by YAMON

2013-02-02 Thread Daniel Schwierzeck
2013/2/2 Gabor Juhos juh...@openwrt.org: Move the GT64120 register base to 0x1be0 and setup PCI BAR registers as done by the original YAMON bootloader. This is needed for running Linux kernel. Signed-off-by: Gabor Juhos juh...@openwrt.org Cc: Daniel Schwierzeck daniel.schwierz

Re: [U-Boot] [PATCH v2 07/10] net: pcnet: use pci_virt_to_mem to obtain buffer addresses

2013-02-02 Thread Daniel Schwierzeck
a mapped memory region, and the pci_phys_to_mem macro can't be used to obtain the memory address of the buffers. Signed-off-by: Gabor Juhos juh...@openwrt.org Cc: Daniel Schwierzeck daniel.schwierz...@googlemail.com --- Changes since v1: - rebased against mips/testing Changes since RFC

[U-Boot] [PATCH] MIPS: xburst: fix broken access to global_data

2013-02-09 Thread daniel . schwierzeck
From: Daniel Schwierzeck daniel.schwierz...@gmail.com Fix access to global_data which is broken since commits: commit 035cbe99cd2fd4adf9d7fd95aeebb5f814e37eb9 Author: Simon Glass s...@chromium.org Date: Thu Dec 13 20:49:08 2012 + mips: Move per_clk and dev_clk to arch_global_data

[U-Boot] [PATCH v1 0/7] MIPS: add dynamic relocation support

2013-02-09 Thread daniel . schwierzeck
From: Daniel Schwierzeck daniel.schwierz...@gmail.com This series adds dynamic relocation support for MIPS. Furthermore the symbols in u-boot.lds are cleaned up and synchronized with ARM to prepare for future patches like generic board and initcall support. Special thanks to Gabor Juhos

[U-Boot] [PATCH v1 1/7] MIPS: u-boot.lds: merge all BSS sections and introduce symbols __bss_[start|end]

2013-02-09 Thread daniel . schwierzeck
From: Daniel Schwierzeck daniel.schwierz...@gmail.com These symbols are used in later patches for as addresses for clearing the BSS area in the relocated U-Boot image. Signed-off-by: Daniel Schwierzeck daniel.schwierz...@gmail.com --- arch/mips/cpu/u-boot.lds| 11 ++- arch

[U-Boot] [PATCH v1 2/7] MIPS: u-boot.lds: introduce symbol __image_copy_end

2013-02-09 Thread daniel . schwierzeck
From: Daniel Schwierzeck daniel.schwierz...@gmail.com This symbol is used in later patches as end address for relocation of the U-Boot image into RAM. Signed-off-by: Daniel Schwierzeck daniel.schwierz...@gmail.com --- arch/mips/cpu/u-boot.lds| 2 ++ arch/mips/include/asm/u-boot

[U-Boot] [PATCH v1 3/7] MIPS: board.c: switch to new symbols __bss_end and __image_copy_end

2013-02-09 Thread daniel . schwierzeck
From: Daniel Schwierzeck daniel.schwierz...@gmail.com Use the newly introduced symbols __image_copy_end and __bss_end for setting up the memory area for the relocated U-Boot. Signed-off-by: Daniel Schwierzeck daniel.schwierz...@gmail.com --- arch/mips/lib/board.c | 5 +++-- 1 file changed, 3

[U-Boot] [PATCH v1 4/7] MIPS: start.S: optimize BSS initialization

2013-02-09 Thread daniel . schwierzeck
From: Daniel Schwierzeck daniel.schwierz...@gmail.com Get the start and end address for clearing BSS from the newly introduced symbols __bss_start and __bss_end. After GOT is relocated, those symbols are already pointing to the correct addresses. Also optimize the loop by moving the address

[U-Boot] [PATCH v1 5/7] MIPS: start.S: use symbol __image_copy_end for U-Boot image relocation

2013-02-09 Thread daniel . schwierzeck
From: Daniel Schwierzeck daniel.schwierz...@gmail.com Use the newly introduced symbol __image_copy_end as end address for relocation of U-Boot image. This is needed for dynamic relocation added in later patches. This patch obsoletes the symbols uboot_end and uboot_end_data which are removed

[U-Boot] [PATCH v1 6/7] MIPS: u-boot.lds: add relocation specific sections

2013-02-09 Thread daniel . schwierzeck
crashes otherwise. This section will be stripped by GNU objcpy in a later patch. Signed-off-by: Gabor Juhos juh...@openwrt.org Signed-off-by: Daniel Schwierzeck daniel.schwierz...@gmail.com --- arch/mips/cpu/u-boot.lds | 24 +++- 1 file changed, 23 insertions(+), 1 deletion

Re: [U-Boot] [PATCH v1 6/7] MIPS: u-boot.lds: add relocation specific sections

2013-02-11 Thread Daniel Schwierzeck
sections which are not needed in the final ELF binary and U-Boot image. Section .dynsym cannot be discarded or GNU ld crashes otherwise. This section will be stripped by GNU objcpy in a later patch. Signed-off-by: Gabor Juhos juh...@openwrt.org Signed-off-by: Daniel Schwierzeck daniel.schwierz

Re: [U-Boot] [PATCH v1 6/7] MIPS: u-boot.lds: add relocation specific sections

2013-02-11 Thread Daniel Schwierzeck
2013/2/11 Gabor Juhos juh...@openwrt.org: that's weird. Actually I checked after each patch if the *_end symbols match the U-Boot binary size. Now I checked again with different toolchains (gcc-4.[5,6,7], binutils-2.[21.53,22] and I have again that binutils issue. But all toolchains have one

[U-Boot] [PATCH v2 6/7] MIPS: u-boot.lds: add relocation specific sections

2013-02-11 Thread Daniel Schwierzeck
crashes otherwise. This section will be stripped by GNU objcpy in a later patch. Signed-off-by: Gabor Juhos juh...@openwrt.org Signed-off-by: Daniel Schwierzeck daniel.schwierz...@gmail.com --- Changes since v1: - add back the .deadcode section (see code comment for explanation) arch/mips/cpu/u

Re: [U-Boot] [GIT PULL] u-boot-mips/next

2013-02-12 Thread Daniel Schwierzeck
2013/2/12 Tom Rini tr...@ti.com: To be clear, is this for master or next? The merge window closed, but I haven't tagged -rc1 or anything yet (and won't for a bit longer, to give folks time to pick up patches). Thanks! it is for master. I needed a few days longer for review and test. Also I

[U-Boot] [PATCH] MIPS: board.c: remove manual relocation of env_name_spec

2013-02-15 Thread Daniel Schwierzeck
Remove the manual relocation of env_name_spec. This has been missed in the previous patch series for introducing dynamic relocation on MIPS. Signed-off-by: Daniel Schwierzeck daniel.schwierz...@gmail.com --- arch/mips/lib/board.c | 8 1 file changed, 8 deletions(-) diff --git a/arch

[U-Boot] [GIT PULL] u-boot-mips/fixes for master

2013-02-15 Thread Daniel Schwierzeck
) Daniel Schwierzeck (1): MIPS: board.c: remove manual relocation of env_name_spec arch/mips/lib/board.c | 8 1 file changed, 8 deletions(-) ___ U-Boot mailing list U-Boot@lists.denx.de http

Re: [U-Boot] [PATCH] MIPS: fix __raw_* IO accessors

2013-02-23 Thread Daniel Schwierzeck
if the CONFIG_SWAP_IO_SPACE option is enabled. The patch changes the IO accessor macros to fix this broken behaviour. Signed-off-by: Gabor Juhos juh...@openwrt.org Cc: Daniel Schwierzeck daniel.schwierz...@googlemail.com --- Note: The change does not affect the existing MIPS targets because none of those

Re: [U-Boot] [PATCH v2 0/4] Get rid of R_ARM_ABS32 relocation records

2013-02-25 Thread Daniel Schwierzeck
scripts arm: make __bss_start and __bss_end__ compiler-generated Refactor linker-generated arrays Reviewed-by: Tom Rini tr...@ti.com Aside from ARM and I assume Sandbox, has this been runtime tested on other arches yet? I've runtime tested the refactored LGA on MIPS, so Tested-by: Daniel

Re: [U-Boot] [u-boot-mips] gp init and -pie option

2013-02-26 Thread Daniel Schwierzeck
2013/2/25 Juhyun (Justin) Oh juhyun...@sigmadesigns.com: Hi, I got a problem while I was trying out v2013.01.01 on the u-boot-mips fork repo. It looks like my u-boot binary built with -pie linker option doesn't work due to wrong gp initialization. In the start.S file, the gp is supposed

[U-Boot] [PATCH] bootm: fix conditional compilation for bootm ramdisk subcommand

2013-02-26 Thread Daniel Schwierzeck
All code related to the bootm ramdisk subcommand is conditionally enabled by CONFIG_SYS_BOOT_RAMDISK_HIGH except for the help message. Replace the CONFIG_ARCH defines by CONFIG_SYS_BOOT_RAMDISK_HIGH to fix this. Signed-off-by: Daniel Schwierzeck daniel.schwierz...@gmail.com --- common

Re: [U-Boot] [u-boot-mips] gp init and -pie option

2013-02-26 Thread Daniel Schwierzeck
Hi, 2013/2/26 Juhyun (Justin) Oh juhyun...@sigmadesigns.com: HI Daniel, I'm using CodeSourcery 4.5.2. I've configured and have built the code for incaip board and dbau1000. The results are the same. (i.e. gp has been set with wrong value) Could you tell me the CodeSourcery toolchain

[U-Boot] [PATCH v2] Makefile: fix HAVE_VENDOR_COMMON_LIB

2012-08-14 Thread Daniel Schwierzeck
...@freescale.com Signed-off-by: Daniel Schwierzeck daniel.schwierz...@gmail.com --- Changes vor v2: - fix the wrong spaces also in spl/Makefile Tested with: MAKEALL spear600 MAKEALL -s omap3 MAKEALL -s omap4 --- Makefile | 2 +- spl/Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff

Re: [U-Boot] Commit 8b5a02640adf77301f943e8754992c50df004e8a breaks about 20 ARM builds

2012-08-14 Thread Daniel Schwierzeck
Hi Albert, 2012/8/14 Albert ARIBAUD albert.u.b...@aribaud.net: Hi all, I have encountered an issue when rebasing the ARM tree above u-boot/master, with this commit : 8b5a02640adf77301f943e8754992c50df004e8a It seems to break about 20 ARM builds, for instance spear600, on my stock Ubuntu

Re: [U-Boot] [PATCH] COMMON: Fix HAVE_VENDOR_COMMON_LIB mistake

2012-08-14 Thread Daniel Schwierzeck
w...@denx.de Cc: Daniel Schwierzeck daniel.schwierz...@gmail.com --- Makefile |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 5ce5cc3..947f3ff 100644 --- a/Makefile +++ b/Makefile @@ -225,7 +225,7 @@ endif OBJS := $(addprefix $(obj

Re: [U-Boot] [Patch 0/17] New 'qemu-mips64' test architecture for U-Boot

2012-08-15 Thread Daniel Schwierzeck
Hi, 2012/8/15 Zhi-zhou Zhang etou...@gmail.com: On Tue, Aug 14, 2012 at 11:51 PM, Mike Frysinger vap...@gentoo.org wrote: On Tuesday 14 August 2012 11:49:49 Mike Frysinger wrote: On Tuesday 14 August 2012 11:06:51 Zhi-zhou Zhang wrote: As so far, U-Boot has already supports mips32. But

Re: [U-Boot] [Patch 1/17] add mips64 build configuration in mips/config.mk

2012-08-15 Thread Daniel Schwierzeck
2012/8/14 Zhi-zhou Zhang etou...@gmail.com: diff --git a/arch/mips/config.mk b/arch/mips/config.mk index 6ab8acd..12df150 100644 --- a/arch/mips/config.mk +++ b/arch/mips/config.mk @@ -23,9 +23,13 @@ CROSS_COMPILE ?= mips_4KC- +ifeq $(CPU) mips64 +CONFIG_STANDALONE_LOAD_ADDR ?=

Re: [U-Boot] [Patch 4/16] add mips64/config.mk

2012-08-15 Thread Daniel Schwierzeck
2012/8/14 Zhi-zhou Zhang etou...@gmail.com: diff --git a/arch/mips/cpu/mips64/config.mk b/arch/mips/cpu/mips64/config.mk new file mode 100644 index 000..cec250a --- /dev/null +++ b/arch/mips/cpu/mips64/config.mk @@ -0,0 +1,36 @@ +# +# (C) Copyright 2003 +# Wolfgang Denk, DENX Software

Re: [U-Boot] [Patch 5/16] add mips64/cpu.h

2012-08-15 Thread Daniel Schwierzeck
wrong email subject add mips64/cpu.h. You are adding cpu.c. 2012/8/14 Zhi-zhou Zhang etou...@gmail.com: diff --git a/arch/mips/cpu/mips64/cpu.c b/arch/mips/cpu/mips64/cpu.c new file mode 100644 index 000..1ead349 --- /dev/null +++ b/arch/mips/cpu/mips64/cpu.c @@ -0,0 +1,116 @@ +/* + *

Re: [U-Boot] [Patch 12/16] add config about mips64

2012-08-15 Thread Daniel Schwierzeck
2012/8/14 Zhi-zhou Zhang etou...@gmail.com: diff --git a/board/qemu-mips/config.mk b/board/qemu-mips/config.mk index 27cd34a..6a3d7a7 100644 --- a/board/qemu-mips/config.mk +++ b/board/qemu-mips/config.mk @@ -2,9 +2,16 @@ # Qemu -M mips system emulator # See

Re: [U-Boot] [Patch 11/16] make size_t equal to unsigned int

2012-08-15 Thread Daniel Schwierzeck
2012/8/14 Zhi-zhou Zhang etou...@gmail.com: err.. maybe a bug of gcc? In my memory, size_t is equaled to unsigned int. diff --git a/arch/mips/include/asm/posix_types.h b/arch/mips/include/asm/posix_types.h index 879aae2..86a866a 100644 --- a/arch/mips/include/asm/posix_types.h +++

Re: [U-Boot] [Patch 15/16] add standalone link script

2012-08-15 Thread Daniel Schwierzeck
why don't you use CONFIG_64BIT like you did in board/qemu_mips/u-boot.lds? 2012/8/14 Zhi-zhou Zhang etou...@gmail.com: diff --git a/examples/standalone/mips64.lds b/examples/standalone/mips64.lds new file mode 100644 index 000..00b96da --- /dev/null +++ b/examples/standalone/mips64.lds

Re: [U-Boot] [[Patch V2] mips: 00/16] add mips64 support to U-Boot

2012-08-19 Thread Daniel Schwierzeck
Hi, 2012/8/17 Zhizhou Zhang etou...@gmail.com: This patch add mips64 support. --- Change log for V2: - move mips64 build flags to cpu/mips64.mk - add cache size probe - remove cache.S please add changelogs to the patches which you have changed since the previous submission

Re: [U-Boot] [[Patch V2] mips: 14/16] add mips64 standalone link script

2012-08-19 Thread Daniel Schwierzeck
2012/8/17 Zhizhou Zhang etou...@gmail.com: Signed-off-by: Zhizhou Zhang etou...@gmail.com --- examples/standalone/mips64.lds | 59 1 file changed, 59 insertions(+) create mode 100644 examples/standalone/mips64.lds diff --git

Re: [U-Boot] [[Patch V2] mips: 14/16] add mips64 standalone link script

2012-08-19 Thread Daniel Schwierzeck
2012/8/18 Zhi-zhou Zhang etou...@gmail.com: On Sat, Aug 18, 2012 at 1:08 AM, Andrew Dyer amd...@gmail.com wrote: I think the OUTPUT_FORMAT line if wrong. This will produce little endian output even if explicitly told by command line switch -EB to make big endian. Yes, But if I want make

Re: [U-Boot] [[Patch V2] mips: 16/16] modify qemu-mips/config.mk

2012-08-19 Thread Daniel Schwierzeck
2012/8/17 Zhizhou Zhang etou...@gmail.com: Though I defined CONFIG_SYS_TEXT_BASE in configs/qemu-mips64.h, but the value is still affected by this file. you should delete all CONFIG_SYS_TEXT_BASE definitions from this file. The board specific config header file is the only right place.

Re: [U-Boot] [[Patch V2] mips: 15/16] add configs/qemu-mips64.h

2012-08-19 Thread Daniel Schwierzeck
2012/8/17 Zhizhou Zhang etou...@gmail.com: Signed-off-by: Zhizhou Zhang etou...@gmail.com --- include/configs/qemu-mips64.h | 171 + 1 file changed, 171 insertions(+) create mode 100644 include/configs/qemu-mips64.h you should merge this patch

Re: [U-Boot] [PATCH 1/3] dm: mips: Fix lb60 WDT control

2012-08-19 Thread Daniel Schwierzeck
2012/7/27 Marek Vasut ma...@denx.de: Write the TSCR register via 32bit write instead of 16bit one. The register is 32bit wide and bit 16 is being set, triggering gcc overflow error and making the code broken. Signed-off-by: Marek Vasut ma...@denx.de Cc: Daniel z...@ingenic.cn Cc: Shinya

Re: [U-Boot] [U-Boot-DM] [PATCH 2/3] dm: mips: Fix lb60 timer code

2012-08-19 Thread Daniel Schwierzeck
2012/7/27 Marek Vasut ma...@denx.de: The timer code contains more halfword writes which trigger gcc errors. The registers are again 32bit, yet written by 16bit writes, fix this: timer.c: In function ‘reset_timer_masked’: timer.c:37:2: warning: dereferencing type-punned pointer will break

Re: [U-Boot] [U-Boot-DM] [PATCH 3/3] dm: mips: Fix warnings in lb60 board

2012-08-19 Thread Daniel Schwierzeck
2012/7/27 Marek Vasut ma...@denx.de: The lb60 board accesses the clkgr register, which is 32bit via 16bit IO ops. This causes malfunction. Fix this. qi_lb60.c: In function ‘cpm_init’: qi_lb60.c:72:2: warning: dereferencing type-punned pointer will break strict-aliasing rules

Re: [U-Boot] [PATCH V2] dm: mips: Import libgcc components from Linux

2012-08-19 Thread Daniel Schwierzeck
-by: Marek Vasut ma...@denx.de Cc: Daniel Schwierzeck daniel.schwierz...@googlemail.com --- arch/mips/config.mk |2 ++ arch/mips/lib/Makefile | 20 arch/mips/lib/ashldi3.c | 25 + arch/mips/lib/ashrdi3.c | 27

[U-Boot] [PATCH 0/3] MIPS: refactoring for extended Qemu support

2012-08-23 Thread daniel . schwierzeck
From: Daniel Schwierzeck daniel.schwierz...@gmail.com Refactor handling of endianess flag and CONFIG_STANDALONE_LOAD_ADDR. Introduce qemu_mipsel support. Daniel Schwierzeck (3): MIPS: factor out endianess flag handling to arch config.mk MIPS: move CONFIG_STANDALONE_LOAD_ADDR to CPU config

[U-Boot] [PATCH 1/3] MIPS: factor out endianess flag handling to arch config.mk

2012-08-23 Thread daniel . schwierzeck
From: Daniel Schwierzeck daniel.schwierz...@gmail.com This is CPU independent and should be configured architecture-wide. Signed-off-by: Daniel Schwierzeck daniel.schwierz...@gmail.com --- arch/mips/config.mk| 20 ++-- arch/mips/cpu/mips32/config.mk | 19

[U-Boot] [PATCH 2/3] MIPS: move CONFIG_STANDALONE_LOAD_ADDR to CPU config makefiles

2012-08-23 Thread daniel . schwierzeck
From: Daniel Schwierzeck daniel.schwierz...@gmail.com Prepare for upcoming MIPS64 CPU support. Signed-off-by: Daniel Schwierzeck daniel.schwierz...@gmail.com --- arch/mips/config.mk| 2 -- arch/mips/cpu/mips32/config.mk | 2 ++ arch/mips/cpu/xburst/config.mk | 2 ++ 3 files changed

[U-Boot] [PATCH 3/3] MIPS: add support for qemu for little endian MIPS32 CPUs

2012-08-23 Thread daniel . schwierzeck
From: Daniel Schwierzeck daniel.schwierz...@gmail.com Tested with 'qemu-system-mipsel -machine mips -bios u-boot.bin -nographic' Signed-off-by: Daniel Schwierzeck daniel.schwierz...@gmail.com --- boards.cfg | 3 ++- include/configs/qemu-mips.h | 7 ++- 2 files changed, 8

Re: [U-Boot] [Patch V3 0/4] add mips64 cpu support

2012-08-23 Thread Daniel Schwierzeck
2012/8/20 Zhizhou Zhang etou...@gmail.com: This patch add mips64 cpu support. Changes in V3: - merge related files into one patch, no longer one file one patch. - add detailed commit message. - remove standalone example. it's too complicate. Zhizhou Zhang (4): [MIPS] Add support

Re: [U-Boot] [Patch V3 1/4] [MIPS] Add support for MIPS64 cpus

2012-08-23 Thread Daniel Schwierzeck
2012/8/20 Zhizhou Zhang etou...@gmail.com: These files are derived from arch/mips/cpu/mips32/*. Howerver some Changes are made: *.S: changes ABI o32 to n64 config.mk: add mips64 building cflags cpu.c: add cache size probe interrupts.c: implement enable_interrupts and

Re: [U-Boot] [Patch V3 2/4] [MIPS] add mips64 support in mips head files

2012-08-23 Thread Daniel Schwierzeck
2012/8/20 Zhizhou Zhang etou...@gmail.com: The most important difference between mips32 and mips64 is the address space. changes in addrspace.h and io.h are for this sake. And this patch add cache discribe struct in cache.h, and make compatible to mips64 of some types in posix_types.h.

Re: [U-Boot] [Patch V3 3/4] [MIPS] Add qemu-mips building configs

2012-08-23 Thread Daniel Schwierzeck
2012/8/20 Zhizhou Zhang etou...@gmail.com: This patch add qemu-mips64 config. And here uses qemu-mips board rather then a new board qemu-mips64 for the sake of reduce code copying. Below are the changes: config.mk: We must define CONFIG_SYS_TEXT_BASE in configs/*.h, not here, so remove

Re: [U-Boot] [Patch V3 4/4] [MIPS] Disable standalone while building MIPS64

2012-08-23 Thread Daniel Schwierzeck
2012/8/20 Zhizhou Zhang etou...@gmail.com: I think copy mips.lds to mips64.lds with only one line changed is not good. So I disable it in top Makefile. Signed-off-by: Zhizhou Zhang etou...@gmail.com --- Makefile |2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile b/Makefile

Re: [U-Boot] [PATCH 3/6] SPL: Port SPL framework to powerpc

2012-08-24 Thread Daniel Schwierzeck
Hi Stefan, 2012/8/24 Stefan Roese s...@denx.de: On 08/24/2012 12:56 PM, Stefan Roese wrote: I still would like to move to my suggestion to not copy the header and use the mkimage header values ih_load and ih_ep directly. Right now I don't see any showstopper for doing it this way. I'll send a

Re: [U-Boot] [PATCH 3/6] SPL: Port SPL framework to powerpc

2012-08-24 Thread Daniel Schwierzeck
Hi Stefan, 2012/8/24 Stefan Roese s...@denx.de: Hi Daniel, On 08/24/2012 01:49 PM, Daniel Schwierzeck wrote: I still would like to move to my suggestion to not copy the header and use the mkimage header values ih_load and ih_ep directly. Right now I don't see any showstopper for doing

Re: [U-Boot] [PATCH 3/6] SPL: Port SPL framework to powerpc

2012-08-24 Thread Daniel Schwierzeck
Hi Stefan, 2012/8/24 Stefan Roese stefan.ro...@gmail.com: Hi Daniel, On 08/24/2012 04:11 PM, Stefan Roese wrote: The u-boot image is merged with SPL image without any padding or fixed flash offsets to achieve a maximum reduction of flash footprint. Interesting. I'm still padding to the

Re: [U-Boot] [PATCH 3/6] SPL: Port SPL framework to powerpc

2012-08-24 Thread Daniel Schwierzeck
2012/8/24 Stefan Roese stefan.ro...@gmail.com: On 08/24/2012 06:42 PM, Daniel Schwierzeck wrote: The u-boot image is merged with SPL image without any padding or fixed flash offsets to achieve a maximum reduction of flash footprint. Interesting. I'm still padding to the fixed offset. Let me

Re: [U-Boot] [Patch V3 4/4] [MIPS] Disable standalone while building MIPS64

2012-08-26 Thread Daniel Schwierzeck
2012/8/26 Zhi-zhou Zhang etou...@gmail.com: On Fri, Aug 24, 2012 at 8:23 AM, Daniel Schwierzeck daniel.schwierz...@gmail.com wrote: 2012/8/20 Zhizhou Zhang etou...@gmail.com: I think copy mips.lds to mips64.lds with only one line changed is not good. So I disable it in top Makefile

Re: [U-Boot] [Patch V3 1/4] [MIPS] Add support for MIPS64 cpus

2012-08-26 Thread Daniel Schwierzeck
2012/8/26 Zhi-zhou Zhang etou...@gmail.com: with current master branch in git://git.denx.de/u-boot-mips.git you can drop the endianess flags which are now handled in arch/mips/config.mk Ok, I have done what you ask for. But I didn't find where does CONFIG_SYS_LITTLE_ENDIAN or

Re: [U-Boot] [Patch V4 0/4] MIPS: add mips64 cpu support

2012-08-27 Thread Daniel Schwierzeck
Hi Zhizhou, 2012/8/27 Zhizhou Zhang etou...@gmail.com: This patch add mips64 cpu support. Changes in V4: - Add both big-endian and little-endian support - Remove cache probe - Add standalone support for mips64 Changes in V3: - merge related files into one patch, no longer one file

Re: [U-Boot] [PATCH v2 04/12] SPL: Add NOR flash booting support

2012-08-27 Thread Daniel Schwierzeck
Hi Stefan, 2012/8/27 Stefan Roese s...@denx.de: SPL NOR flash booting support is quite simple. Only copying of the images is needed. On MPC5xxx we need to make sure to only use the standard memcpy() implementation and not the MPC5xxx specific one. As the MPC5xxx version has some complexity

Re: [U-Boot] [Patch V4 1/4] MIPS: Add support for MIPS64 cpus

2012-09-04 Thread Daniel Schwierzeck
Dear Wolfgang, 2012/9/1 Wolfgang Denk w...@denx.de: Dear Zhizhou Zhang, In message 1346071750-6634-7-git-send-email-etou...@gmail.com you wrote: [...] + while (1) { + cache_op(Hit_Writeback_Inv_D, addr); + cache_op(Hit_Invalidate_I, addr); We don't allow

Re: [U-Boot] [Patch V5 2/4] MIPS: change address related header files

2012-09-04 Thread Daniel Schwierzeck
2012/9/4 Zhizhou Zhang etou...@gmail.com: Prepare for upcoming mips64 support. This patch add mips64 address space support. Signed-off-by: Zhizhou Zhang etou...@gmail.com --- arch/mips/include/asm/addrspace.h |2 +- arch/mips/include/asm/asm.h |2 +-

Re: [U-Boot] [Patch V5 4/4] MIPS: add board qemu-mips64 support

2012-09-04 Thread Daniel Schwierzeck
2012/9/4 Zhizhou Zhang etou...@gmail.com: Both big-endian and little-endian are tested with below commands: Rom version: (Default, Now we config it as rom version) qemu-system-mips64el -M mips -bios u-boot.bin -cpu MIPS64R2-generic -nographic qemu-system-mips64 -M mips -bios u-boot.bin -cpu

Re: [U-Boot] [Patch V5 4/4] MIPS: add board qemu-mips64 support

2012-09-04 Thread Daniel Schwierzeck
2012/9/4 Zhizhou Zhang etou...@gmail.com: Both big-endian and little-endian are tested with below commands: Rom version: (Default, Now we config it as rom version) qemu-system-mips64el -M mips -bios u-boot.bin -cpu MIPS64R2-generic -nographic qemu-system-mips64 -M mips -bios u-boot.bin -cpu

  1   2   3   4   5   6   7   8   9   10   >