Re: [U-Boot] [PATCH] MIPS: use CONFIG_SYS_TEXT_BASE in relocation calculations

2013-11-12 Thread Gabor Juhos
2013.11.11. 23:36 keltezéssel, Daniel Schwierzeck írta: ... to be consistent with all other architectures, we should keep CONFIG_SYS_MONITOR_BASE. I think it is neither valid nor intentional to use a value different from CONFIG_SYS_TEXT_BASE. If it is neither valid nor intentional, the

Re: [U-Boot] [PATCH] MIPS: use CONFIG_SYS_TEXT_BASE in relocation calculations

2013-11-12 Thread Gabor Juhos
2013.11.12. 16:40 keltezéssel, Daniel Schwierzeck írta: 2013/11/12 Gabor Juhos juh...@openwrt.org: 2013.11.11. 23:36 keltezéssel, Daniel Schwierzeck írta: ... Any idea how can we resolve this properly? -Gabor following seems to work (in both variants with -bios and -pflash) #define

[U-Boot] [PATCH v2] malta: use unmapped flash base address

2013-11-12 Thread Gabor Juhos
, 1.5.3). Signed-off-by: Gabor Juhos juh...@openwrt.org Signed-off-by: Daniel Schwierzeck daniel.schwierz...@gmail.com Cc: Paul Burton paul.bur...@imgtec.com --- Changes since v1: - update CONFIG_SYS_{TEXT,MONITOR}_BASE constants - update commit message --- arch/mips/include/asm/malta.h |2

Re: [U-Boot] [mips] malta configuration works in qemu-1.5 does not in qemu-1.6

2013-11-11 Thread Gabor Juhos
2013.11.11. 10:52 keltezéssel, Daniel Schwierzeck írta: 2013/11/10 Alon Bar-Lev alon.bar...@gmail.com: Hello, master is: 15c5cdf from Fri Nov 8 15:25:29 2013 -0500 u-boot-2013.10 Working in qemu-1.5.3. Does not work in qemu-1.6.1. The command prompt is not displayed, 100% cpu

Re: [U-Boot] [mips] malta configuration works in qemu-1.5 does not in qemu-1.6

2013-11-11 Thread Gabor Juhos
2013.11.11. 12:14 keltezéssel, Paul Burton írta: ... Aha, thanks for tracking that down. I guess if flash commands need to work at 0x1fc0 I assume that it is working on a real Malta board, so it should be emulated correctly if possible. then my QEMU patch fixed one bug but causes

[U-Boot] [PATCH] malta: use unmapped flash base address

2013-11-11 Thread Gabor Juhos
constant to avoid the problem. The change makes it possible to start U-Boot on a Malta board emulated with Qemu 1.6.1 and 1.7.0-rc0. It also works on older versions (tested with 1.1.1, 1.2.2, 1.4.2, 1.5.3). The change is not tested on a real Malta board. Signed-off-by: Gabor Juhos juh

Re: [U-Boot] [PATCH] malta: use unmapped flash base address

2013-11-11 Thread Gabor Juhos
2013.11.11. 15:22 keltezéssel, Paul Burton írta: ... diff --git a/arch/mips/include/asm/malta.h b/arch/mips/include/asm/malta.h index 9b1100b..bd9043d 100644 --- a/arch/mips/include/asm/malta.h +++ b/arch/mips/include/asm/malta.h @@ -44,7 +44,7 @@ #define MALTA_RESET_BASE

[U-Boot] [PATCH] MIPS: use CONFIG_SYS_TEXT_BASE in relocation calculations

2013-11-11 Thread Gabor Juhos
-off-by: Gabor Juhos juh...@openwrt.org Cc: Daniel Schwierzeck daniel.schwierz...@gmail.com Cc: Paul Burton paul.bur...@imgtec.com --- Daniel, This should be merged before my 'malta: use unmapped flash base address' patch. Thanks, Gabor --- arch/mips/cpu/mips32/start.S |2 +- arch/mips/cpu

Re: [U-Boot] [PATCH] MIPS: use CONFIG_SYS_TEXT_BASE in relocation calculations

2013-11-11 Thread Gabor Juhos
2013.11.11. 20:36 keltezéssel, Daniel Schwierzeck írta: 2013/11/11 Gabor Juhos juh...@openwrt.org: The relocation code uses the CONFIG_SYS_MONITOR_BASE constant for calculating the reserved memory size and relocation offset values. Along with these predefined values the code also uses several

Re: [U-Boot] [PATCH v2 07/15] qemu-malta: rename to just malta

2013-10-24 Thread Gabor Juhos
2013.10.24. 11:31 keltezéssel, Paul Burton írta: This is in preparation for adapting this board to function correctly on a physical MIPS Malta board. The board is moved into an imgtec vendor directory at the same time in order to ready us for any other boards supported by Imagination in the

Re: [U-Boot] [PATCH v2 07/15] qemu-malta: rename to just malta

2013-10-24 Thread Gabor Juhos
2013.10.24. 12:10 keltezéssel, Paul Burton írta: On 24/10/13 11:04, Gabor Juhos wrote: 2013.10.24. 11:31 keltezéssel, Paul Burton írta: This is in preparation for adapting this board to function correctly on a physical MIPS Malta board. The board is moved into an imgtec vendor directory

Re: [U-Boot] [PATCH v2 07/15] qemu-malta: rename to just malta

2013-10-24 Thread Gabor Juhos
2013.10.24. 12:54 keltezéssel, Paul Burton írta: ... I agree that it is related to the rename. However renaming the mips_boot_qemu_malta constant is a simple cleanup which can be done in a preceding patch. The same is true for the CONFIG_QEMU_MALTA-CONFIG_MALTA conversion. In general,

Re: [U-Boot] [PATCH v2 09/15] malta: support for coreFPGA6 boards

2013-10-24 Thread Gabor Juhos
2013.10.24. 11:33 keltezéssel, Paul Burton írta: This patch adds support for running on Malta boards using coreFPGA6 core cards, including support for the msc01 system controller used with them. The system controller is detected at runtime allowing one U-boot binary to run on a Malta with

[U-Boot] [PATCH] malta: define CONFIG_MEMSIZE_IN_BYTES

2013-10-24 Thread Gabor Juhos
The memsize environment variable must contain the memory size in bytes on the Malta board. Otherwise Linux will use wrong memory size which causes a kernel panic. Define CONFIG_MEMSIZE_IN_BYTES in malta.h to avoid that. Signed-off-by: Gabor Juhos juh...@openwrt.org Cc: Daniel Schwierzeck

Re: [U-Boot] [PATCH v3 1/8] MIPS: bootm: fix checkpatch.pl warnings

2013-08-14 Thread Gabor Juhos
2013.08.11. 21:39 keltezéssel, Daniel Schwierzeck írta: Signed-off-by: Daniel Schwierzeck daniel.schwierz...@gmail.com Looks good, but the subject line is misleading a bit. I would expect that the patch fixes all warnings, however there are some CamelCase warnings even after the patch. -Gabor

[U-Boot] [PATCH v2 07/10] MIPS: xburst/start.S: rework relocation info check

2013-06-14 Thread Gabor Juhos
Make it similar to the code in mips{32,64}/start.S, in order to allow further unifications. Signed-off-by: Gabor Juhos juh...@openwrt.org Cc: Daniel Schwierzeck daniel.schwierz...@googlemail.com --- v2: also change register name in the comment --- arch/mips/cpu/xburst/start.S |6 +++--- 1

[U-Boot] [PATCH 02/10] MIPS: mips32/start.S: rework relocation info check

2013-06-13 Thread Gabor Juhos
Make it similar to the code in mips64/start.S, in order to allow further unifications. Signed-off-by: Gabor Juhos juh...@openwrt.org Cc: Daniel Schwierzeck daniel.schwierz...@googlemail.com --- arch/mips/cpu/mips32/start.S |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff

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

2013-06-13 Thread Gabor Juhos
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/start.S: save relocation offset in s1 register MIPS

[U-Boot] [PATCH 10/10] MIPS: mips32/cache.S: use v1 register for indirect function calls

2013-06-13 Thread Gabor Juhos
Synchronize the code with mips64/cache.S, in order to allow further unifications. Signed-off-by: Gabor Juhos juh...@openwrt.org Cc: Daniel Schwierzeck daniel.schwierz...@googlemail.com --- arch/mips/cpu/mips32/cache.S |8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git

[U-Boot] [PATCH 03/10] MIPS: xburst/start.S: save relocation address in s2 register

2013-06-13 Thread Gabor Juhos
Synchronize the code with mips{32,64}/start.S, in order to allow further unifications. Signed-off-by: Gabor Juhos juh...@openwrt.org Cc: Daniel Schwierzeck daniel.schwierz...@googlemail.com --- arch/mips/cpu/xburst/start.S |8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff

[U-Boot] [PATCH 01/10] MIPS: mips32/start.S: use t8 register for dynamic relocation

2013-06-13 Thread Gabor Juhos
Synchronize the code with mips64/start.S, in order to allow further unifications. Signed-off-by: Gabor Juhos juh...@openwrt.org Cc: Daniel Schwierzeck daniel.schwierz...@googlemail.com --- arch/mips/cpu/mips32/start.S | 18 +- 1 file changed, 9 insertions(+), 9 deletions

[U-Boot] [PATCH 04/10] MIPS: xburst/start.S: save relocation offset in s1 register

2013-06-13 Thread Gabor Juhos
Synchronize the code with mips{32,64}/start.S, in order to allow further unifications. Signed-off-by: Gabor Juhos juh...@openwrt.org Cc: Daniel Schwierzeck daniel.schwierz...@googlemail.com --- arch/mips/cpu/xburst/start.S | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions

[U-Boot] [PATCH 08/10] MIPS: mips32/cache.S: save return address in t9 register

2013-06-13 Thread Gabor Juhos
Synchronize the code with mips64/cache.S, in order to allow further unifications. Signed-off-by: Gabor Juhos juh...@openwrt.org Cc: Daniel Schwierzeck daniel.schwierz...@googlemail.com --- arch/mips/cpu/mips32/cache.S |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch

[U-Boot] [PATCH 05/10] MIPS: xburst/start.S: save gd in s0 register

2013-06-13 Thread Gabor Juhos
Synchronize the code with mips{32,64}/start.S, in order to allow further unifications. Signed-off-by: Gabor Juhos juh...@openwrt.org Cc: Daniel Schwierzeck daniel.schwierz...@googlemail.com --- arch/mips/cpu/xburst/start.S |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git

[U-Boot] [PATCH 07/10] MIPS: xburst/start.S: rework relocation info check

2013-06-13 Thread Gabor Juhos
Make it similar to the code in mips{32,64}/start.S, in order to allow further unifications. Signed-off-by: Gabor Juhos juh...@openwrt.org Cc: Daniel Schwierzeck daniel.schwierz...@googlemail.com --- arch/mips/cpu/xburst/start.S |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff

[U-Boot] [PATCH 06/10] MIPS: xburst/start.S: use t8 register for dynamic relocation

2013-06-13 Thread Gabor Juhos
Synchronize the code with mips{32,64}/start.S, in order to allow further unifications. Signed-off-by: Gabor Juhos juh...@openwrt.org Cc: Daniel Schwierzeck daniel.schwierz...@googlemail.com --- arch/mips/cpu/xburst/start.S | 18 +- 1 file changed, 9 insertions(+), 9 deletions

[U-Boot] [PATCH 09/10] MIPS: mips32/cache.S: store cache line size in t8 register

2013-06-13 Thread Gabor Juhos
Synchronize the code with mips64/cache.S, in order to allow further unifications. Signed-off-by: Gabor Juhos juh...@openwrt.org Cc: Daniel Schwierzeck daniel.schwierz...@googlemail.com --- arch/mips/cpu/mips32/cache.S |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git

[U-Boot] [PATCH 2/4] MIPS: mips64/interrupt.c: remove superfluous include

2013-06-12 Thread Gabor Juhos
Nothing is used from asm/mipsregs.h. Signed-off-by: Gabor Juhos juh...@openwrt.org Cc: Daniel Schwierzeck daniel.schwierz...@googlemail.com --- arch/mips/cpu/mips64/interrupts.c |1 - 1 file changed, 1 deletion(-) diff --git a/arch/mips/cpu/mips64/interrupts.c b/arch/mips/cpu/mips64

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

2013-06-12 Thread Gabor Juhos
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 arch/mips/cpu/mips32/cache.S |3 +-- arch/mips/cpu/mips32

[U-Boot] [PATCH 4/4] MIPS: mips32/cache.S: remove superfluous register assignment

2013-06-12 Thread Gabor Juhos
The t4 register already holds the cache line size, and the value of the register is not changed in mips_init_icache. Get the cache line size value from t4 for mips_init_dcache as well and remove the superfluous assignment of t5 register. Signed-off-by: Gabor Juhos juh...@openwrt.org --- arch

[U-Boot] [PATCH 1/4] MIPS: mips32/time.c: fix checkpatch errors/warnings

2013-06-12 Thread Gabor Juhos
checkpatch.pl happy. Signed-off-by: Gabor Juhos juh...@openwrt.org Cc: Daniel Schwierzeck daniel.schwierz...@googlemail.com --- arch/mips/cpu/mips32/time.c |5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/mips/cpu/mips32/time.c b/arch/mips/cpu/mips32/time.c index

[U-Boot] [PATCH 3/4] MIPS: remove obsolete TODO items

2013-06-12 Thread Gabor Juhos
The MIPS code uses centralized u-boot.lds script already, and dynamic relocation is supported as well. Signed-off-by: Gabor Juhos juh...@openwrt.org Cc: Daniel Schwierzeck daniel.schwierz...@googlemail.com --- doc/README.mips |4 1 file changed, 4 deletions(-) diff --git a/doc

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

2013-06-11 Thread Gabor Juhos
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/cpu/mips64/start.S index dc7ce07..1ece6c2 100644

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

2013-06-10 Thread Gabor Juhos
variables 'rd_start' and 'rd_size' MIPS: bootm: add YAMON style Linux preparation/jump code for Qemu Malta MIPS: bootm: drop obsolete Qemu specific bootm implementation The series looks good. Acked-by: Gabor Juhos juh...@openwrt.org -Gabor

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

2013-05-30 Thread Gabor Juhos
2013.05.30. 18:36 keltezéssel, Daniel Schwierzeck írta: 2013/5/29 Gabor Juhos juh...@openwrt.org: The pci_indirect.c file is always compiled when CONFIG_PCI is defined although the indirect PCI bridge support is not needed by every board. Introduce a new CONFIG_PCI_INDIRECT_BRIDGE config

[U-Boot] [PATCH 2/6] mmc: ftsdc010_mci: fix build error if CONFIG_FTSDC010_SDIO is not defined

2013-05-26 Thread Gabor Juhos
ftsdc010_mci.c:178: error: for each function it appears in.) The patch ensures that the FTSDC010_DCR_FIFO_RST symbol gets used only if CONFIG_FTSDC010_SDIO is defined. Compile tested only. Cc: Kuo-Jung Su dant...@faraday-tech.com Cc: Macpaul Lin macp...@andestech.com Signed-off-by: Gabor Juhos

[U-Boot] [PATCH 5/6] pci: move pci_ftpci100.h to include/faraday/ftpci100.h

2013-05-26 Thread Gabor Juhos
Even though the header files is used only by the pci_ftpci100 driver, it contains declaration for a function which is used by external code. Move the header file to a common location which lets external code use it. Compile tested only. Cc: Macpaul Lin macp...@andestech.com Signed-off-by: Gabor

[U-Boot] [PATCH 4/6] pci: add prototype for pci_ftpci_init() function

2013-05-26 Thread Gabor Juhos
The pci_ftpci_init() function is implemented in 'drivers/pci/pci_ftpci100.c' however it is always called by external code. Add function declaration into ftpci100.h to make it visible for external code. Compile tested only. Cc: Macpaul Lin macp...@andestech.com Signed-off-by: Gabor Juhos juh

[U-Boot] [PATCH 3/6] block: constify sect_buf argument of ide_write_data

2013-05-26 Thread Gabor Juhos
: expected 'ulong *' but argument is of type 'const ulong *' Also modify the driver-model documentation to match with the new prototype. Compile tested only. Cc: Macpaul Lin macp...@andestech.com Signed-off-by: Gabor Juhos juh...@openwrt.org --- doc/driver-model/UDM-block.txt |2 +- drivers

[U-Boot] [PATCH 6/6] nds32: adp-ag102: use 'faraday/ftpci100.h' for pci_ftpci_init

2013-05-26 Thread Gabor Juhos
and remove the local declaration to get rid of the warning. Compile tested only. Cc: Macpaul Lin macp...@andestech.com Signed-off-by: Gabor Juhos juh...@openwrt.org --- board/AndesTech/adp-ag102/adp-ag102.c |3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/board/AndesTech

[U-Boot] [PATCH 1/6] nds32: introduce macros for bit manipulation

2013-05-26 Thread Gabor Juhos
. Compile tested only. Cc: Kuo-Jung Su dant...@faraday-tech.com Cc: Macpaul Lin macp...@andestech.com Signed-off-by: Gabor Juhos juh...@openwrt.org --- Notes: I'm unsure that the macros are correct or not because I know virtually nothing about the nds32 architecture. However the nds32 specific

[U-Boot] [PATCH 0/6] nds32: fix build errors/warnings

2013-05-26 Thread Gabor Juhos
- SUMMARY Boards compiled: 3 -- $ Cc: Macpaul Lin macp...@andestech.com Gabor Juhos (6): nds32: introduce macros for bit manipulation mmc: ftsdc010_mci: fix build error if CONFIG_FTSDC010_SDIO is not defined

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

2013-05-24 Thread Gabor Juhos
2013.05.23. 17:49 keltezéssel, Tom Rini írta: ... The pci_indirect.c file is always compiled when CONFIG_PCI is defined although it is not needed at all for Malta PCI support. The issue can be resolved on a few different ways: 1. Extend the '#if !defined(__I386__)' directive in

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

2013-05-23 Thread Gabor Juhos
Hi Daniel, Thank you for the review! 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

[U-Boot] [PATCH v3 09/10] MIPS: bootm.c: add YAMON style Linux preparation/jump code

2013-05-22 Thread Gabor Juhos
Signed-off-by: Gabor Juhos juh...@openwrt.org Cc: Daniel Schwierzeck daniel.schwierz...@googlemail.com --- Changes since v2: - rebased against the master branch of git.denx.de/u-boot.git Changes since v1: - rebased against mips/testing Changes since RFC: --- --- arch/mips/lib/bootm.c | 60

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

2013-05-22 Thread Gabor Juhos
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...@googlemail.com --- Changes since v2: - don't use

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

2013-05-22 Thread Gabor Juhos
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 v2: - rebased against the master branch of git.denx.de/u-boot.git Changes since v1: - rebased against mips/testing

[U-Boot] [PATCH v3 03/10] MIPS: qemu-malta: enable flash support

2013-05-22 Thread Gabor Juhos
Signed-off-by: Gabor Juhos juh...@openwrt.org Cc: Daniel Schwierzeck daniel.schwierz...@googlemail.com --- Changes since v2: - remove CONFIG_SYS_WRITE_SWAPPED_DATA option, it is not needed since the __raw_* IO accessors has been fixed. - rebased against the master branch of git.denx.de/u

[U-Boot] [PATCH v3 08/10] MIPS: qemu-malta: bring up ethernet

2013-05-22 Thread Gabor Juhos
Qemu emulates a PCNET PCI card for the Malta CoreLV board. Enable the pcnet driver and add board specific ethernet initialization function to bring it up. Also enable the CONFIG_CMD_NET and CONFIG_CMD_PING options. Signed-off-by: Gabor Juhos juh...@openwrt.org Cc: Daniel Schwierzeck

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

2013-05-22 Thread Gabor Juhos
Add minimal support for the MIPS Malta CoreLV board emulated by Qemu. The only supported peripherial is the UART. This is enough to boot U-Boot to the command prompt both in little and big endian mode. Signed-off-by: Gabor Juhos juh...@openwrt.org Cc: Daniel Schwierzeck daniel.schwierz

[U-Boot] [PATCH v3 04/10] MIPS: import gt64120.h header from Linux

2013-05-22 Thread Gabor Juhos
The Linux specific register access macros, the extern function declarations and the UL suffixes has been removed. The header file will be used for the qemu-malta board. Signed-off-by: Gabor Juhos juh...@openwrt.org Cc: Daniel Schwierzeck daniel.schwierz...@googlemail.com --- Changes since v2

[U-Boot] [PATCH v3 10/10] MIPS: start.S: emulate REVISION register for qemu-malta

2013-05-22 Thread Gabor Juhos
is not emulated properly by Qemu, so put a hardcoded value into the flash to make Linux work. Signed-off-by: Gabor Juhos juh...@openwrt.org Cc: Daniel Schwierzeck daniel.schwierz...@googlemail.com --- Changes since v2: - rebased against the master branch of git.denx.de/u-boot.git Changes since

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

2013-05-22 Thread Gabor Juhos
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...@googlemail.com --- Changes since v2: - rebased

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

2013-05-22 Thread Gabor Juhos
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 Schwierzeck daniel.schwierz...@googlemail.com

[U-Boot] [PATCH v3 00/10] MIPS: initial support for emulated Malta board

2013-05-22 Thread Gabor Juhos
: 'MIPS: fix __raw_* IO accessors' http://patchwork.ozlabs.org/patch/222195/ Gabor Juhos (10): MIPS: qemu-malta: add support for emulated MIPS Malta board MIPS: qemu-malta: add reset support MIPS: qemu-malta: enable flash support MIPS: import gt64120.h header from Linux MIPS: qemu-malta

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

2013-02-21 Thread Gabor Juhos
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 are using CONFIG_SWAP_IO_SPACE. Compiling all MIPS targets

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

2013-02-11 Thread Gabor Juhos
2013.02.09. 21:33 keltezéssel, daniel.schwierz...@gmail.com írta: From: Gabor Juhos juh...@openwrt.org This section contain the table needed for dynamic relocation. Also provide symbols for the relocation code to access the table. Discard all sections which are not needed in the final

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

2013-02-11 Thread Gabor Juhos
), and this ensures that it will contain the full .rel.dyn section. $ ls -l u-boot.bin -rw-r--r-- 1 juhosg root 204664 Feb 11 14:46 u-boot.bin This is with the attached patch applied on top of the mips/reloc branch. -Gabor From 07bbc17f35a78bbace7d91477643497f8b51cc0c Mon Sep 17 00:00:00 2001 From: Gabor Juhos

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

2013-02-11 Thread Gabor Juhos
2013.02.11. 15:32 keltezéssel, Daniel Schwierzeck írta: From: Gabor Juhos juh...@openwrt.org This section contain the table needed for dynamic relocation. Also provide symbols for the relocation code to access the table. Discard all sections which are not needed in the final ELF binary

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

2013-02-03 Thread Gabor Juhos
2013.02.02. 20:35 keltezéssel, Daniel Schwierzeck írta: diff --git a/board/qemu-malta/qemu-malta.c b/board/qemu-malta/qemu-malta.c index 9ba711d..9333242 100644 --- a/board/qemu-malta/qemu-malta.c +++ b/board/qemu-malta/qemu-malta.c @@ -8,6 +8,9 @@ #include common.h +#include asm/io.h

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

2013-02-03 Thread Gabor Juhos
2013.02.02. 20:39 keltezéssel, Daniel Schwierzeck írta: 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

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

2013-02-03 Thread Gabor Juhos
2013.02.02. 20:37 keltezéssel, Daniel Schwierzeck írta: I think this should be implemented as separate driver in drivers/pci/ Ok, i will move it. -Gabor ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

[U-Boot] [RFC 1/3] MIPS: add .dyn.rel section to u-boot.lds

2013-02-03 Thread Gabor Juhos
This section contain the table needed for dynamic relocation. Also provide symbols for the relocation code to access the table. Signed-off-by: Gabor Juhos juh...@openwrt.org Cc: Daniel Schwierzeck daniel.schwierz...@googlemail.com --- arch/mips/cpu/u-boot.lds | 27

[U-Boot] [RFC 2/3] MIPS: add -pie flag to LDFLAGS_FINAL

2013-02-03 Thread Gabor Juhos
This ensures that the linker generates the .rel.dyn fixup table, which will be applied to the relocated image before transferring control to it. Signed-off-by: Gabor Juhos juh...@openwrt.org Cc: Daniel Schwierzeck daniel.schwierz...@googlemail.com --- arch/mips/config.mk |2 +- 1 file

[U-Boot] [RFC 3/3] MIPS: add dynamic relocation support

2013-02-03 Thread Gabor Juhos
toolchains uses these types only. The CONFIG_NEEDS_MANUAL_RELOC is not needed after the patch, so remove that as well. Signed-off-by: Gabor Juhos juh...@openwrt.org Cc: Daniel Schwierzeck daniel.schwierz...@googlemail.com --- arch/mips/cpu/mips32/start.S | 31 +-- arch

[U-Boot] [RFC 0/3] MIPS: add automatic relocation support

2013-02-03 Thread Gabor Juhos
/217651/ (MIPS: compute num_got_entries from .got section's size) Gabor Juhos (3): MIPS: add .dyn.rel section to u-boot.lds MIPS: add -pie flag to LDFLAGS_FINAL MIPS: add dynamic relocation support arch/mips/config.mk|2 +- arch/mips/cpu/mips32/start.S | 31

[U-Boot] [PATCH] MIPS: compute num_got_entries from .got section's size

2013-02-02 Thread Gabor Juhos
The '__got_start' and '__got_end' symbols are used only in the linker script to compute the value of the 'num_got_entries' symbol. Remove the symbols and use the SIZEOF(.got) command to get the size of the .got section. Signed-off-by: Gabor Juhos juh...@openwrt.org Cc: Daniel Schwierzeck

[U-Boot] [PATCH v2 00/10] MIPS: initial support for emulated Malta board

2013-02-02 Thread Gabor Juhos
This patch set adds initial support for the MIPS Malta CoreLV board emulated under Qemu. The patches are against the testing branch of the MIPS custodian tree. The changes since the previous version of the series are described in the individual patches. Gabor Juhos (10): MIPS: qemu-malta: add

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

2013-02-02 Thread Gabor Juhos
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...@googlemail.com --- Changes since v1: - rebased

[U-Boot] [PATCH v2 03/10] MIPS: qemu-malta: enable flash support

2013-02-02 Thread Gabor Juhos
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: --- --- arch/mips/include/asm/malta.h |2 ++ include/configs/qemu-malta.h | 13 +++-- 2 files changed, 13

[U-Boot] [PATCH v2 04/10] MIPS: import gt64120.h header from Linux 3.8-rc3

2013-02-02 Thread Gabor Juhos
The Linux specific register access macros, the extern function declarations and the UL suffixes has been removed. The header file will be used for the qemu-malta board. Signed-off-by: Gabor Juhos juh...@openwrt.org Cc: Daniel Schwierzeck daniel.schwierz...@googlemail.com --- Changes since v1

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

2013-02-02 Thread Gabor Juhos
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 Schwierzeck daniel.schwierz...@googlemail.com

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

2013-02-02 Thread Gabor Juhos
Add minimal support for the MIPS Malta CoreLV board emulated by Qemu. The only supported peripherial is the UART. This is enough to boot U-Boot to the command prompt both in little and big endian mode. Signed-off-by: Gabor Juhos juh...@openwrt.org Cc: Daniel Schwierzeck daniel.schwierz

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

2013-02-02 Thread Gabor Juhos
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...@googlemail.com --- Changes since v1: - rebased

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

2013-02-02 Thread Gabor Juhos
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: --- --- Note: This is only tested with the qemu-malta target

[U-Boot] [PATCH v2 08/10] MIPS: qemu-malta: bring up ethernet

2013-02-02 Thread Gabor Juhos
Qemu emulates a PCNET PCI card for the Malta CoreLV board. Enable the pcnet driver and add board specific ethernet initialization function to bring it up. Also enable the CONFIG_CMD_NET and CONFIG_CMD_PING options. Signed-off-by: Gabor Juhos juh...@openwrt.org Cc: Daniel Schwierzeck

[U-Boot] [PATCH v2 09/10] MIPS: bootm.c: add YAMON style Linux preparation/jump code

2013-02-02 Thread Gabor Juhos
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: --- --- arch/mips/lib/bootm.c | 60 +++-- 1 file changed, 58 insertions

[U-Boot] [PATCH v2 10/10] MIPS: start.S: emulate REVISION register for qemu-malta

2013-02-02 Thread Gabor Juhos
is not emulated properly by Qemu, so put a hardcoded value into the flash to make Linux work. 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: --- --- arch/mips/cpu

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

2013-02-02 Thread Gabor Juhos
Hi Daniel, ... diff --git a/board/qemu-malta/lowlevel_init.S b/board/qemu-malta/lowlevel_init.S new file mode 100644 index 000..c5c5bd9 --- /dev/null +++ b/board/qemu-malta/lowlevel_init.S @@ -0,0 +1,19 @@ +/* + * Copyright (C) 2013 Gabor Juhos juh...@openwrt.org

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

2013-02-01 Thread Gabor Juhos
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: - optimized U-Boot entry point on MIPS32 - fix

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

2013-02-01 Thread Gabor Juhos
2013.02.01. 23:48 keltezéssel, Daniel Schwierzeck írta: + /* U-boot entry point */ + b reset + nop + + .org 0x10 #ifdef CONFIG_SYS_XWAY_EBU_BOOTCFG The .org should be within the ifdef. Although it does not change the generated binary code, but logically it would

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

2013-01-31 Thread Gabor Juhos
Hi Daniel, From: Daniel Schwierzeck daniel.schwierz...@gmail.com Signed-off-by: Daniel Schwierzeck daniel.schwierz...@gmail.com Looks good. -Gabor ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

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

2013-01-31 Thread Gabor Juhos
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 +-- arch/mips/cpu/mips64/start.S |

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

2013-01-30 Thread Gabor Juhos
The OUTPUT_FORMAT command in linker scripts was always misused due to some endianess and toolchain problems. Use GCC flags to ensure proper output format, and get rid of the OUTPUT_FORMAT commands in the board specific u-boot.lds files. Signed-off-by: Gabor Juhos juh...@openwrt.org Cc: Daniel

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

2013-01-30 Thread Gabor Juhos
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 http://patchwork.ozlabs.org/patch/216892/ Gabor Juhos (7): MIPS: add

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

2013-01-30 Thread Gabor Juhos
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 http://patchwork.ozlabs.org/patch/216892/ Gabor Juhos (7): MIPS: add

[U-Boot] [PATCH v2 5/7] MIPS: incaip: remove custom u-boot.lds script

2013-01-30 Thread Gabor Juhos
Remove the board specific linker script. It is not needed anymore, the unified MIPS linker script can be used instead. All incaip targets are producing identical binary images after the change than before. Signed-off-by: Gabor Juhos juh...@openwrt.org Cc: Daniel Schwierzeck daniel.schwierz

[U-Boot] [PATCH v2 4/7] MIPS: vct: remove custom u-boot.lds script

2013-01-30 Thread Gabor Juhos
Remove the board specific linker script. It is not needed anymore, the unified MIPS linker script can be used instead. All vct targets are producing identical binary images after the change than before. Signed-off-by: Gabor Juhos juh...@openwrt.org Acked-by: Stefan Roese s...@denx.de Cc: Daniel

[U-Boot] [PATCH v2 3/7] MIPS: pb1x00: remove custom u-boot.lds script

2013-01-30 Thread Gabor Juhos
Remove the board specific linker script. It is not needed anymore, the unified MIPS linker script can be used instead. All pb1x00 targets are producing identical binary images after the change than before. Signed-off-by: Gabor Juhos juh...@openwrt.org Cc: Daniel Schwierzeck daniel.schwierz

[U-Boot] [PATCH v2 2/7] MIPS: qemu-mips: use the unified u-boot.lds script

2013-01-30 Thread Gabor Juhos
Remove the board specific linker script. It is not needed anymore, the unified MIPS linker script can be used instead. All qemu_mips targets are producing identical binary images after the change than before. Signed-off-by: Gabor Juhos juh...@openwrt.org Cc: Daniel Schwierzeck daniel.schwierz

[U-Boot] [PATCH v2 1/7] MIPS: add unified u-boot.lds file

2013-01-30 Thread Gabor Juhos
The patch adds an unified linker script file which can be used for all currently supported MIPS targets. Signed-off-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

[U-Boot] [PATCH v2 6/7] MIPS: dbau1x00: remove custom u-boot.lds script

2013-01-30 Thread Gabor Juhos
Remove the board specific linker script. It is not needed anymore, the unified MIPS linker script can be used instead. All dbau1x00 targets are producing identical binary images after the change than before. Signed-off-by: Gabor Juhos juh...@openwrt.org Cc: Daniel Schwierzeck daniel.schwierz

[U-Boot] [PATCH v2 7/7] MIPS: qi_lb60: remove custom u-boot.lds script

2013-01-30 Thread Gabor Juhos
script: .got : { __got_start = .; *(.got) __got_end = .; } Despite this difference, the resulting images are functionally identical. Signed-off-by: Gabor Juhos juh...@openwrt.org Cc: Daniel Schwierzeck daniel.schwierz...@googlemail.com Cc

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

2013-01-30 Thread Gabor Juhos
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...@openmobilefree.net --- arch/mips/cpu/xburst/start.S | 12

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

2013-01-30 Thread Gabor Juhos
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 on the: 'MIPS: xburst: simplify relocation offset

Re: [U-Boot] [PATCH v2 1/7] MIPS: add unified u-boot.lds file

2013-01-30 Thread Gabor Juhos
2013.01.30. 15:34 keltezéssel, Stefan Roese írta: On 01/30/2013 03:31 PM, Gabor Juhos wrote: The patch adds an unified linker script file which can be used for all currently supported MIPS targets. Signed-off-by: Gabor Juhos juh...@openwrt.org Cc: Daniel Schwierzeck daniel.schwierz

[U-Boot] [PATCH 1/7] MIPS: add unified u-boot.lds file

2013-01-29 Thread Gabor Juhos
The patch adds an unified linker script file which can be used for all currently supported MIPS targets. Signed-off-by: Gabor Juhos juh...@openwrt.org Cc: Daniel Schwierzeck daniel.schwierz...@googlemail.com Cc: Vlad Lungu v...@comsys.ro Cc: Thomas Sailer sai...@scs.ch Cc: Stefan Roese s

[U-Boot] [PATCH 7/7] MIPS: qi_lb60: remove custom u-boot.lds script

2013-01-29 Thread Gabor Juhos
script: .got : { __got_start = .; *(.got) __got_end = .; } Despite this difference, the resulting images are functionally identical. Signed-off-by: Gabor Juhos juh...@openwrt.org Cc: Daniel Schwierzeck daniel.schwierz...@googlemail.com Cc

[U-Boot] [PATCH 3/7] MIPS: pb1x00: remove custom u-boot.lds script

2013-01-29 Thread Gabor Juhos
Remove the board specific linker script. It is not needed anymore, the unified MIPS linker script can be used instead. All pb1x00 targets are producing identical binary images after the change than before. Signed-off-by: Gabor Juhos juh...@openwrt.org Cc: Daniel Schwierzeck daniel.schwierz

[U-Boot] [PATCH 6/7] MIPS: dbau1x00: remove custom u-boot.lds script

2013-01-29 Thread Gabor Juhos
Remove the board specific linker script. It is not needed anymore, the unified MIPS linker script can be used instead. All dbau1x00 targets are producing identical binary images after the change than before. Signed-off-by: Gabor Juhos juh...@openwrt.org Cc: Daniel Schwierzeck daniel.schwierz

  1   2   >