[U-Boot] [PATCH 2/3] cmd_mtdparts: use 64 bits for flash size, partition size offset

2013-08-06 Thread Paul Burton
This matches the 64 bit size in struct mtd_info and allows the mtdparts command to function correctly with a flash = 4GiB. Format specifiers for size offset are given the ll length, matching its use in drivers/mtd in absence of something like inttypes.h/PRIx64. Signed-off-by: Paul Burton

[U-Boot] [PATCH 1/3] mtd: driver _read() returns max_bitflips; mtd_read() returns -EUCLEAN

2013-08-06 Thread Paul Burton
, but which I hope to be able to begin upstreaming soon. Signed-off-by: Paul Burton paul.bur...@imgtec.com --- drivers/mtd/mtdcore.c | 14 +- drivers/mtd/mtdpart.c | 12 ++-- drivers/mtd/nand/nand_base.c | 18 ++ drivers/mtd/onenand

[U-Boot] [PATCH 0/3] MTD UBI fixes

2013-08-06 Thread Paul Burton
This patchset corrects a few issues I've had whilst using UBI with U-boot. The first 2 are bug fixes, the 3rd is an addition I needed in order to write a large root filesystem into my NAND device. Paul Burton (3): mtd: driver _read() returns max_bitflips; mtd_read() returns -EUCLEAN

[U-Boot] [PATCH 3/3] cmd_ubi: add write.part command, to write a volume in multiple parts

2013-08-06 Thread Paul Burton
0x0800 ext4load mmc 0:1 0x8000 rootfs.ubifs.2 ubi write.part 0x8000 root 0x0800 This would write 384MiB of data to the UBI volume 'root' whilst only requiring 128MiB of said data to be held in memory at a time. Signed-off-by: Paul Burton paul.bur...@imgtec.com --- common

Re: [U-Boot] [PATCH 1/3] mtd: driver _read() returns max_bitflips; mtd_read() returns -EUCLEAN

2013-08-20 Thread Paul Burton
is fine there's no need to. I can switch to software ECC without my patch to rediscover the exact call chain if you require, but it'll probably be a while before I do - busy week! Thanks, Paul On 19/08/13 09:55, Stefan Roese wrote: On 06.08.2013 12:13, Paul Burton wrote: Linux modified

Re: [U-Boot] [PATCH 3/3] cmd_ubi: add write.part command, to write a volume in multiple parts

2013-08-20 Thread Paul Burton
Thanks, I'll fix the style issues and send v2 soon. Paul On 19/08/13 10:07, Stefan Roese wrote: Hi Paul, On 06.08.2013 12:13, Paul Burton wrote: This allows you to write data to an UBI volume when the amount of memory available to write that data from is less than the total size of the data

[U-Boot] [PATCH v2 0/4] MTD UBI fixes

2013-09-04 Thread Paul Burton
Roese's comments. - Expanded upon the condition patch 1 fixes in response to the queries from Stefan, see the commit message for further detail. - Added patch 3 cmd_ubi: use int64_t volume size for 'ubi create' which it seems appropriate to include in this series. Paul Burton (4): mtd

[U-Boot] [PATCH 2/4] cmd_mtdparts: use 64 bits for flash size, partition size offset

2013-09-04 Thread Paul Burton
This matches the 64 bit size in struct mtd_info and allows the mtdparts command to function correctly with a flash = 4GiB. Format specifiers for size offset are given the ll length, matching its use in drivers/mtd in absence of something like inttypes.h/PRIx64. Signed-off-by: Paul Burton

[U-Boot] [PATCH v2 1/4] mtd: driver _read() returns max_bitflips; mtd_read() returns -EUCLEAN

2013-09-04 Thread Paul Burton
, this should only affect those using software ECC. I have tested that it works on a board which is currently out of tree, but which I hope to be able to begin upstreaming soon. Signed-off-by: Paul Burton paul.bur...@imgtec.com --- Changes from v1: - Expanded upon the condition this fixes in the commit

[U-Boot] [PATCH 3/4] cmd_ubi: use int64_t volume size for 'ubi create'

2013-09-04 Thread Paul Burton
int64_t matches the bytes field in struct ubi_mkvol_req to which the size is assigned. With the prior signed 32 bit integer, volumes were restricted to being less than 2GiB in size. Signed-off-by: Paul Burton paul.bur...@imgtec.com --- common/cmd_ubi.c | 16 1 file changed, 8

[U-Boot] [PATCH v2 4/4] cmd_ubi: add write.part command, to write a volume in multiple parts

2013-09-04 Thread Paul Burton
0x0800 ext4load mmc 0:1 0x8000 rootfs.ubifs.2 ubi write.part 0x8000 root 0x0800 This would write 384MiB of data to the UBI volume 'root' whilst only requiring 128MiB of said data to be held in memory at a time. Signed-off-by: Paul Burton paul.bur...@imgtec.com --- Changes from

[U-Boot] [PATCH 2/5] spl_mmc: only call printf or puts with CONFIG_SPL_LIBCOMMON_SUPPORT

2013-09-04 Thread Paul Burton
If we don't have CONFIG_SPL_LIBCOMMON_SUPPORT defined then stdio functions are unavailable calling them will cause a link failure. Signed-off-by: Paul Burton paul.bur...@imgtec.com --- common/spl/spl_mmc.c | 16 1 file changed, 16 insertions(+) diff --git a/common/spl

[U-Boot] [PATCH 1/5] spl: remove unnecessary ( ARM specific) include of asm/utils.h

2013-09-04 Thread Paul Burton
ARM is the only architecture which includes this header and nothing in spl_mmc.c makes use of it. Remove the include. Signed-off-by: Paul Burton paul.bur...@imgtec.com --- common/spl/spl_mmc.c | 1 - 1 file changed, 1 deletion(-) diff --git a/common/spl/spl_mmc.c b/common/spl/spl_mmc.c index

[U-Boot] [PATCH 5/5] mmc: don't support write erase for SPL builds

2013-09-04 Thread Paul Burton
For SPL builds this is just dead code since we'll only need to read. Eliminating it results in a significant size reduction for the SPL binary. Signed-off-by: Paul Burton paul.bur...@imgtec.com --- drivers/mmc/mmc.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/mmc/mmc.c b

[U-Boot] [PATCH 3/5] mmc: don't call *printf or puts when SPL !CONFIG_SPL_LIBCOMMON_SUPPORT

2013-09-04 Thread Paul Burton
If we don't have CONFIG_SPL_LIBCOMMON_SUPPORT defined then stdio *printf functions are unavailable calling them will cause a link failure. Signed-off-by: Paul Burton paul.bur...@imgtec.com --- drivers/mmc/mmc.c | 36 1 file changed, 36 insertions(+) diff

Re: [U-Boot] [PATCH 0/5] SPL/MMC size fixes

2013-09-04 Thread Paul Burton
Bah, the subject should have read size optimisations and fixes but you get the idea... Thanks, Paul On 04/09/13 16:12, Paul Burton wrote: This series reduces the size of the SPL when compiled with MMC support, and fixes build issues if the target does not include libcommon in SPL

[U-Boot] [PATCH 4/5] mmc: size optimization when !CONFIG_MMC_SPI

2013-09-04 Thread Paul Burton
) then the compiler can optimize away the SPI-specific code paths in mmc.c. Signed-off-by: Paul Burton paul.bur...@imgtec.com --- include/mmc.h | 4 1 file changed, 4 insertions(+) diff --git a/include/mmc.h b/include/mmc.h index 228d771..214b9ed 100644 --- a/include/mmc.h +++ b/include/mmc.h

[U-Boot] [PATCH 0/5] SPL/MMC size fixes

2013-09-04 Thread Paul Burton
. In the meantime I figured the size optimisations may be of use to others. Paul Burton (5): spl: remove unnecessary ( ARM specific) include of asm/utils.h spl_mmc: only call printf or puts with CONFIG_SPL_LIBCOMMON_SUPPORT mmc: don't call *printf or puts when SPL !CONFIG_SPL_LIBCOMMON_SUPPORT

[U-Boot] [PATCH] bootm: use BOOTM_STATE_OS_CMDLINE flag for plain bootm

2013-09-06 Thread Paul Burton
or a call with no flags. The end result is that a combination of those 2 commits leads to MIPS boards booting kernels with no command line arguments. An extra invocation of the architecture specific boot function with BOOTM_STATE_OS_CMDLINE fixes this. Signed-off-by: Paul Burton paul.bur

Re: [U-Boot] [PATCH 3/5] mmc: don't call *printf or puts when SPL !CONFIG_SPL_LIBCOMMON_SUPPORT

2013-09-06 Thread Paul Burton
On 06/09/13 13:48, Pantelis Antoniou wrote: Hi Paul On Sep 4, 2013, at 6:12 PM, Paul Burton wrote: If we don't have CONFIG_SPL_LIBCOMMON_SUPPORT defined then stdio *printf functions are unavailable calling them will cause a link failure. Signed-off-by: Paul Burton paul.bur...@imgtec.com

[U-Boot] [PATCH v2] mmc: don't support write erase for SPL builds

2013-09-06 Thread Paul Burton
For SPL builds this is just dead code since we'll only need to read. Eliminating it results in a significant size reduction for the SPL binary, which may be critical for certain platforms where the binary size is highly constrained. Signed-off-by: Paul Burton paul.bur...@imgtec.com --- Changes

Re: [U-Boot] [PATCH v2] mmc: don't support write erase for SPL builds

2013-09-09 Thread Paul Burton
On Sun 08 Sep 2013 09:48:20 BST, Andreas Bießmann wrote: Dear Paul Burton, On 06.09.13 15:43, Paul Burton wrote: For SPL builds this is just dead code since we'll only need to read. Eliminating it results in a significant size reduction for the SPL binary, which may be critical for certain

[U-Boot] [PATCH v3] mmc: don't support write erase for SPL builds

2013-09-09 Thread Paul Burton
For SPL builds this is just dead code since we'll only need to read. Eliminating it results in a significant size reduction for the SPL binary, which may be critical for certain platforms where the binary size is highly constrained. Signed-off-by: Paul Burton paul.bur...@imgtec.com Acked

Re: [U-Boot] [PATCH] bootm: use BOOTM_STATE_OS_CMDLINE flag for plain bootm

2013-09-17 Thread Paul Burton
*ping* (Also CCing MIPS custodian) Paul On 06/09/13 11:23, Paul Burton wrote: A plain bootm used to call the architecture specific boot function with no flags, but was modified by commit 35fc84fa Refactor the bootm command to reduce code duplication to call the architecture specific boot

Re: [U-Boot] [PATCH] malta: correct tcl script path in README.malta

2014-03-04 Thread Paul Burton
...@googlemail.com Cc: Paul Burton paul.bur...@imgtec.com --- doc/README.malta | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/README.malta b/doc/README.malta index a495d02..c8db8a0 100644 --- a/doc/README.malta +++ b/doc/README.malta @@ -9,7 +9,7 @@ How to flash using

[U-Boot] [PATCH 0/4] MIPS Malta fixes

2013-11-26 Thread Paul Burton
in due course but enabling it in U-boot is required in order for current Linux kernels to function correctly. The final patch isn't a fix but allows larger kernel images to be booted which improves the experience of using U-boot on a Malta. Paul Burton (4): mips: don't hardcode Malta env baudrate

[U-Boot] [PATCH 1/4] mips: don't hardcode Malta env baudrate

2013-11-26 Thread Paul Burton
The baudrate passed to Linux in the environment was hardcoded at 38400. Instead pass the correct baudrate from global data, allowing Linux to correctly inherit the baudrate used by U-boot when console setup is not explicitly specified. Signed-off-by: Paul Burton paul.bur...@imgtec.com --- arch

[U-Boot] [PATCH 3/4] malta: enable PIIX4 SERIRQ

2013-11-26 Thread Paul Burton
this current kernels will never receive serial port interrupts and the end result is typically that userland appears to hang. Signed-off-by: Paul Burton paul.bur...@imgtec.com --- arch/mips/include/asm/malta.h | 7 +++ board/imgtec/malta/malta.c| 12 2 files changed, 19 insertions

[U-Boot] [PATCH 4/4] malta: set CONFIG_SYS_BOOTM_LEN to 64MB

2013-11-26 Thread Paul Burton
Allow a larger kernel binary to be decompressed - the default 8MB can become limiting on a Malta. Signed-off-by: Paul Burton paul.bur...@imgtec.com --- include/configs/malta.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/configs/malta.h b/include/configs/malta.h index 666cca9

[U-Boot] [PATCH 2/4] malta: correct UART baudrate

2013-11-26 Thread Paul Burton
of CONFIG_BAUDRATE or the baudrate environment variable. Signed-off-by: Paul Burton paul.bur...@imgtec.com --- include/configs/malta.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/configs/malta.h b/include/configs/malta.h index 458c33a..666cca9 100644 --- a/include/configs

Re: [U-Boot] [PATCH] mtd: fix warnings due to 64-bit partition support

2013-10-16 Thread Paul Burton
. This patch fixes the warnings pointed out here: http://lists.denx.de/pipermail/u-boot/2013-October/164981.html Signed-off-by: Scott Wood scottw...@freescale.com Cc: York Sun york...@freescale.com Cc: Stefan Roese s...@denx.de Cc: Paul Burton paul.bur...@imgtec.com Cc: Tom Rini tr...@ti.com Acked

[U-Boot] [PATCH 03/15] pcnet: s/le16_to_cpu/cpu_to_le16/ in pcnet_send

2013-10-23 Thread Paul Burton
This should cause no change to the generated code, but is semantically correct. Signed-off-by: Paul Burton paul.bur...@imgtec.com --- drivers/net/pcnet.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/pcnet.c b/drivers/net/pcnet.c index a30a0bc..843a6fc

[U-Boot] [PATCH 02/15] pcnet: code style cleanup

2013-10-23 Thread Paul Burton
Fix up the code to match Documentation/CodingStyle. This is mostly removing extraneous spaces. No functional change is intended. Signed-off-by: Paul Burton paul.bur...@imgtec.com --- drivers/net/pcnet.c | 248 ++-- 1 file changed, 123 insertions

[U-Boot] [PATCH 00/15] MIPS Malta board support

2013-10-23 Thread Paul Burton
to support :), the malta(el) board(s). Paul Burton (15): mips32: detect L1 cache sizes if they're not defined pcnet: code style cleanup pcnet: s/le16_to_cpu/cpu_to_le16/ in pcnet_send pcnet: add cache flushing invalidation pcnet: enable the NOUFLO feature pci.h: allow inclusion

[U-Boot] [PATCH 04/15] pcnet: add cache flushing invalidation

2013-10-23 Thread Paul Burton
in reality it has but the old values are being read from cache. Signed-off-by: Paul Burton paul.bur...@imgtec.com --- drivers/net/pcnet.c | 16 1 file changed, 16 insertions(+) diff --git a/drivers/net/pcnet.c b/drivers/net/pcnet.c index 843a6fc..7b87660 100644 --- a/drivers/net

[U-Boot] [PATCH 01/15] mips32: detect L1 cache sizes if they're not defined

2013-10-23 Thread Paul Burton
will not add overhead to such boards. Signed-off-by: Paul Burton paul.bur...@imgtec.com --- arch/mips/cpu/mips32/cache.S | 90 ++-- arch/mips/cpu/mips32/cpu.c | 73 +--- arch/mips/include/asm/mipsregs.h | 6 +++ 3 files changed

[U-Boot] [PATCH 06/15] pci.h: allow inclusion in assembly source

2013-10-23 Thread Paul Burton
This patch simply #ifdef's out the C-specific parts of pci.h when it is included by an assembly file. This will allow the macros it contains to be used from assembly source as will be done in a followup commit adding support for more modern MIPS Malta boards. Signed-off-by: Paul Burton paul.bur

[U-Boot] [PATCH 08/15] malta: setup super I/O UARTs

2013-10-23 Thread Paul Burton
On a real Malta the Super I/O needs to be configured before we are able to access the UARTs. This patch performs that configuration, setting up the UARTs in the same way that YAMON would. Signed-off-by: Paul Burton paul.bur...@imgtec.com --- board/malta/Makefile | 2 +- board/malta/malta.c

[U-Boot] [PATCH 05/15] pcnet: enable the NOUFLO feature

2013-10-23 Thread Paul Burton
a transmit start point is reached. Setting that transmit start point to the full packet will cause the controller to only transmit the packet once it has buffered it entirely thus preventing any transmit underflows from occuring and allowing the controller to function on slower boards. Signed-off-by: Paul

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

2013-10-23 Thread Paul Burton
-by: Paul Burton paul.bur...@imgtec.com --- arch/mips/include/asm/malta.h | 35 +++-- board/malta/lowlevel_init.S | 164 +- board/malta/malta.c | 124 ++-- drivers/pci/Makefile | 1 + drivers/pci/pci_msc01.c

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

2013-10-23 Thread Paul Burton
This is in preparation for adapting this board to function correctly on a physical MIPS Malta board. Signed-off-by: Paul Burton paul.bur...@imgtec.com --- arch/mips/lib/bootm.c| 12 ++--- board/malta/Makefile | 29 ++ board/malta/lowlevel_init.S | 69

[U-Boot] [PATCH 11/15] malta: enable CONFIG_PCNET_79C973, PCNET_HAS_PROM, CONFIG_CMD_DHCP

2013-10-23 Thread Paul Burton
for many networks, enable support for it also. Signed-off-by: Paul Burton paul.bur...@imgtec.com --- include/configs/malta.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/configs/malta.h b/include/configs/malta.h index e347b38..23a781e 100644 --- a/include/configs/malta.h +++ b

[U-Boot] [PATCH 10/15] malta: display U-boot on the LCD screen

2013-10-23 Thread Paul Burton
Displaying a message on the LCD screen is a simple yet effective way to show the user that the board has booted successfully. Signed-off-by: Paul Burton paul.bur...@imgtec.com --- arch/mips/include/asm/malta.h | 10 ++ board/malta/malta.c | 19 +++ 2 files

[U-Boot] [PATCH 12/15] malta: remove cache size definitions

2013-10-23 Thread Paul Burton
bitstream. Signed-off-by: Paul Burton paul.bur...@imgtec.com --- include/configs/malta.h | 4 1 file changed, 4 deletions(-) diff --git a/include/configs/malta.h b/include/configs/malta.h index 23a781e..19acf3a 100644 --- a/include/configs/malta.h +++ b/include/configs/malta.h @@ -30,10 +30,6

[U-Boot] [PATCH 14/15] malta: add script instructions to flash U-boot

2013-10-23 Thread Paul Burton
This patch adds a script which may be used with MIPS Navigator Console and a MIPS Nagivator Probe in order to flash U-boot to a MIPS Malta development board. Please see the newly added board/malta/README for usage instructions. Signed-off-by: Paul Burton paul.bur...@imgtec.com --- board/malta

[U-Boot] [PATCH 13/15] malta: disable L2 caches

2013-10-23 Thread Paul Burton
than generically. Signed-off-by: Paul Burton paul.bur...@imgtec.com --- board/malta/lowlevel_init.S | 7 +++ 1 file changed, 7 insertions(+) diff --git a/board/malta/lowlevel_init.S b/board/malta/lowlevel_init.S index 1af34f1..ae09c27 100644 --- a/board/malta/lowlevel_init.S +++ b/board/malta

[U-Boot] [PATCH 15/15] malta: add myself to maintainers

2013-10-23 Thread Paul Burton
This patch adds me as a maintainer of the malta(el) board(s). I have access to physical Malta boards and the desire for U-boot to run well on them. Signed-off-by: Paul Burton paul.bur...@imgtec.com --- boards.cfg | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/boards.cfg

[U-Boot] [PATCH] boards.cfg: remove trailing whitespace

2013-10-23 Thread Paul Burton
Commit 93e14596 Coding Style cleanup: replace leading SPACEs by TABs added trailing whitespace to a single line of boards.cfg. I presume this was unintentional, and it causes the file to change after running it through the reformat.py script. Remove the offending character. Signed-off-by: Paul

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

2013-10-24 Thread Paul Burton
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 future. Signed-off-by: Paul Burton paul.bur

[U-Boot] [PATCH v2 08/15] malta: setup super I/O UARTs

2013-10-24 Thread Paul Burton
On a real Malta the Super I/O needs to be configured before we are able to access the UARTs. This patch performs that configuration, setting up the UARTs in the same way that YAMON would. Signed-off-by: Paul Burton paul.bur...@imgtec.com --- Changes in v2: - rebased after malta moved to board

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

2013-10-24 Thread Paul Burton
-by: Paul Burton paul.bur...@imgtec.com --- Changes in v2: - rebased after malta moved to board/imgtec/malta - removed unused status variable from msc01_config_access --- arch/mips/include/asm/malta.h | 35 ++-- board/imgtec/malta/lowlevel_init.S | 164

[U-Boot] [PATCH v2 14/15] malta: add script instructions to flash U-boot

2013-10-24 Thread Paul Burton
This patch adds a script which may be used with MIPS Navigator Console and a MIPS Nagivator Probe in order to flash U-boot to a MIPS Malta development board. Please see the newly added doc/README.malta for usage instructions. Signed-off-by: Paul Burton paul.bur...@imgtec.com --- Changes in v2

[U-Boot] [PATCH v2 13/15] malta: disable L2 caches

2013-10-24 Thread Paul Burton
than generically. Signed-off-by: Paul Burton paul.bur...@imgtec.com --- Changes in v2: - rebased after malta moved to board/imgtec/malta --- board/imgtec/malta/lowlevel_init.S | 7 +++ 1 file changed, 7 insertions(+) diff --git a/board/imgtec/malta/lowlevel_init.S b/board/imgtec/malta

[U-Boot] [PATCH v2 15/15] malta: add myself to maintainers

2013-10-24 Thread Paul Burton
This patch adds me as a maintainer of the malta(el) board(s). I have access to physical Malta boards and the desire for U-boot to run well on them. Signed-off-by: Paul Burton paul.bur...@imgtec.com --- Changes in v2: - rebased after malta moved to board/imgtec/malta --- boards.cfg | 4 ++-- 1

[U-Boot] [PATCH v2 10/15] malta: display U-boot on the LCD screen

2013-10-24 Thread Paul Burton
Displaying a message on the LCD screen is a simple yet effective way to show the user that the board has booted successfully. Signed-off-by: Paul Burton paul.bur...@imgtec.com --- Changes in v2: - rebased after malta moved to board/imgtec/malta --- arch/mips/include/asm/malta.h | 10

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

2013-10-24 Thread Paul Burton
diff --git a/drivers/pci/pci_msc01.c b/drivers/pci/pci_msc01.c new file mode 100644 index 000..7904378 --- /dev/null +++ b/drivers/pci/pci_msc01.c @@ -0,0 +1,126 @@ +/* + * Copyright (C) 2013 Imagination Technologies + * Author: Paul Burton paul.bur...@imgtec.com + * + * SPDX-License

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

2013-10-24 Thread Paul Burton
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 at the same time in order to ready us for any other

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

2013-10-24 Thread Paul Burton
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 future. Signed-off-by: Paul Burton paul.bur

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

2013-10-24 Thread Paul Burton
On 24/10/13 11:43, Gabor Juhos wrote: 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

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

2013-10-24 Thread Paul Burton
...@openwrt.org Cc: Daniel Schwierzeck daniel.schwierz...@googlemail.com Cc: Paul Burton paul.bur...@imgtec.com --- Note: The patch depends on Paul's 'MIPS Malta board support' series. If we want to fix the problem before his patches will be merged, I will send a different patch. -Gabor For the record

[U-Boot] [PATCH] malta: enable RTC support

2013-10-24 Thread Paul Burton
This is actually required in order for a Linux kernel to boot successfully on a physical Malta board. Without enabling the RTC, a Malta Linux kernel will get stuck in its estimate_frequencies function on boot. Signed-off-by: Paul Burton paul.bur...@imgtec.com --- This is dependant upon my MIPS

[U-Boot] [PATCH v2 01/18] mips32: detect L1 cache sizes if they're not defined

2013-11-08 Thread Paul Burton
will not add overhead to such boards. Signed-off-by: Paul Burton paul.bur...@imgtec.com --- Changes in v2: - rebase atop master --- arch/mips/cpu/mips32/cache.S | 90 ++-- arch/mips/cpu/mips32/cpu.c | 73 +--- arch/mips

[U-Boot] [PATCH v1+ 00/18] MIPS Malta board support

2013-11-08 Thread Paul Burton
environment support. After this series Gabor Juhos' malta: define CONFIG_MEMSIZE_IN_BYTES patch is also required in order for a booted Linux kernel to function correctly. Paul Burton (18): mips32: detect L1 cache sizes if they're not defined pcnet: code style cleanup pcnet: s/le16_to_cpu/cpu_to_le16

[U-Boot] [PATCH v2 03/18] pcnet: s/le16_to_cpu/cpu_to_le16/ in pcnet_send

2013-11-08 Thread Paul Burton
This should cause no change to the generated code, but is semantically correct. Signed-off-by: Paul Burton paul.bur...@imgtec.com --- Changes in v2: - rebase atop master --- drivers/net/pcnet.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/pcnet.c b

[U-Boot] [PATCH v2 02/18] pcnet: code style cleanup

2013-11-08 Thread Paul Burton
Fix up the code to match Documentation/CodingStyle. This is mostly removing extraneous spaces. No functional change is intended. Signed-off-by: Paul Burton paul.bur...@imgtec.com --- Changes in v2: - rebase atop master --- drivers/net/pcnet.c | 248

[U-Boot] [PATCH v2 04/18] pcnet: add cache flushing invalidation

2013-11-08 Thread Paul Burton
in reality it has but the old values are being read from cache. Signed-off-by: Paul Burton paul.bur...@imgtec.com --- Changes in v2: - rebase atop master --- drivers/net/pcnet.c | 16 1 file changed, 16 insertions(+) diff --git a/drivers/net/pcnet.c b/drivers/net/pcnet.c index

[U-Boot] [PATCH v2 05/18] pcnet: enable the NOUFLO feature

2013-11-08 Thread Paul Burton
a transmit start point is reached. Setting that transmit start point to the full packet will cause the controller to only transmit the packet once it has buffered it entirely thus preventing any transmit underflows from occuring and allowing the controller to function on slower boards. Signed-off-by: Paul

[U-Boot] [PATCH v4 07/18] qemu-malta: rename to just malta

2013-11-08 Thread Paul Burton
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 future. Signed-off-by: Paul Burton paul.bur

[U-Boot] [PATCH v2 06/18] pci.h: allow inclusion in assembly source

2013-11-08 Thread Paul Burton
This patch simply #ifdef's out the C-specific parts of pci.h when it is included by an assembly file. This will allow the macros it contains to be used from assembly source as will be done in a followup commit adding support for more modern MIPS Malta boards. Signed-off-by: Paul Burton paul.bur

[U-Boot] [PATCH v3 08/18] malta: setup super I/O UARTs

2013-11-08 Thread Paul Burton
On a real Malta the Super I/O needs to be configured before we are able to access the UARTs. This patch performs that configuration, setting up the UARTs in the same way that YAMON would. Signed-off-by: Paul Burton paul.bur...@imgtec.com --- Changes in v3: - rebase atop master Changes in v2

[U-Boot] [PATCH v3 10/18] malta: display U-boot on the LCD screen

2013-11-08 Thread Paul Burton
Displaying a message on the LCD screen is a simple yet effective way to show the user that the board has booted successfully. Signed-off-by: Paul Burton paul.bur...@imgtec.com --- Changes in v3: - rebase atop master Changes in v2: - rebased after malta moved to board/imgtec/malta --- arch

[U-Boot] [PATCH v3 09/18] malta: support for coreFPGA6 boards

2013-11-08 Thread Paul Burton
. The incorrect UART will simply not function. Tested on: - A coreFPGA6 Malta running interAptiv and proAptiv bitstreams, both with and without an L2 cache. - QEMU. Signed-off-by: Paul Burton paul.bur...@imgtec.com --- Changes in v3: - rebase atop master - remove commit message note about

[U-Boot] [PATCH v2 12/18] malta: remove cache size definitions

2013-11-08 Thread Paul Burton
bitstream. Signed-off-by: Paul Burton paul.bur...@imgtec.com --- Changes in v2: - rebase atop master --- include/configs/malta.h | 4 1 file changed, 4 deletions(-) diff --git a/include/configs/malta.h b/include/configs/malta.h index a0c5b79..5368308 100644 --- a/include/configs/malta.h +++ b

[U-Boot] [PATCH v2 11/18] malta: enable CONFIG_PCNET_79C973, PCNET_HAS_PROM, CONFIG_CMD_DHCP

2013-11-08 Thread Paul Burton
for many networks, enable support for it also. Signed-off-by: Paul Burton paul.bur...@imgtec.com --- Changes in v2: - rebase atop master --- include/configs/malta.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/configs/malta.h b/include/configs/malta.h index 737dd39..a0c5b79

[U-Boot] [PATCH v2 14/18] malta: enable RTC support

2013-11-08 Thread Paul Burton
This is actually required in order for a Linux kernel to boot successfully on a physical Malta board. Without enabling the RTC, a Malta Linux kernel will get stuck in its estimate_frequencies function on boot. Signed-off-by: Paul Burton paul.bur...@imgtec.com --- Changes in v2: - rebase atop

[U-Boot] [PATCH 16/18] malta: setup PIIX4 interrupt route

2013-11-08 Thread Paul Burton
, and PIRQC PIRQD to IRQ 11. This matches the setup used by YAMON. Signed-off-by: Paul Burton paul.bur...@imgtec.com --- arch/mips/include/asm/malta.h | 5 + board/imgtec/malta/malta.c| 14 ++ 2 files changed, 19 insertions(+) diff --git a/arch/mips/include/asm/malta.h b

[U-Boot] [PATCH v3 13/18] malta: disable L2 caches

2013-11-08 Thread Paul Burton
than generically. Signed-off-by: Paul Burton paul.bur...@imgtec.com --- Changes in v3: - rebase atop master Changes in v2: - rebased after malta moved to board/imgtec/malta --- board/imgtec/malta/lowlevel_init.S | 7 +++ 1 file changed, 7 insertions(+) diff --git a/board/imgtec/malta

[U-Boot] [PATCH 15/18] malta: store environment in flash

2013-11-08 Thread Paul Burton
Allow the environment to be stored in the monitor flash of a Malta board. The environment is stored in the final 128KB of the flash, which both leaves the majority of the flash available for U-boot code and also matches the location which YAMON uses. Signed-off-by: Paul Burton paul.bur

[U-Boot] [PATCH v3 18/18] malta: add myself to maintainers

2013-11-08 Thread Paul Burton
This patch adds me as a maintainer of the malta(el) board(s). I have access to physical Malta boards and the desire for U-boot to run well on them. Signed-off-by: Paul Burton paul.bur...@imgtec.com --- Changes in v3: - rebase atop master Changes in v2: - rebased after malta moved to board

[U-Boot] [PATCH v3 17/18] malta: add script instructions to flash U-boot

2013-11-08 Thread Paul Burton
This patch adds a script which may be used with MIPS Navigator Console and a MIPS Nagivator Probe in order to flash U-boot to a MIPS Malta development board. Please see the newly added doc/README.malta for usage instructions. Signed-off-by: Paul Burton paul.bur...@imgtec.com --- Changes in v3

[U-Boot] [PATCH v5 07/18] qemu-malta: rename to just malta

2013-11-09 Thread Paul Burton
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 future. Signed-off-by: Paul Burton paul.bur

Re: [U-Boot] [PATCH v2 05/18] pcnet: enable the NOUFLO feature

2013-11-11 Thread Paul Burton
On 10/11/13 20:02, Marek Vasut wrote: Dear Paul Burton, On relatively slow boards (such as the MIPS Malta with an FPGA core card) it can be extremely common for transmits to underflow - to the point where it appears they simply do not work at all. Setting the NOUFLO bit causes the ethernet

Re: [U-Boot] [PATCH v5 07/18] qemu-malta: rename to just malta

2013-11-11 Thread Paul Burton
On 10/11/13 20:05, Marek Vasut wrote: Dear Paul Burton, 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

Re: [U-Boot] [PATCH v3 08/18] malta: setup super I/O UARTs

2013-11-11 Thread Paul Burton
wrote: Dear Paul Burton, On a real Malta the Super I/O needs to be configured before we are able to access the UARTs. This patch performs that configuration, setting up the UARTs in the same way that YAMON would. [...] --- /dev/null +++ b/board/imgtec/malta/superio.c Do we not already have

Re: [U-Boot] [PATCH v3 09/18] malta: support for coreFPGA6 boards

2013-11-11 Thread Paul Burton
On 10/11/13 20:07, Marek Vasut wrote: Dear Paul Burton, 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

Re: [U-Boot] [PATCH v3 10/18] malta: display U-boot on the LCD screen

2013-11-11 Thread Paul Burton
On 10/11/13 20:08, Marek Vasut wrote: Dear Paul Burton, Displaying a message on the LCD screen is a simple yet effective way to show the user that the board has booted successfully. Signed-off-by: Paul Burton paul.bur...@imgtec.com --- Changes in v3: - rebase atop master Changes in v2

Re: [U-Boot] [PATCH 16/18] malta: setup PIIX4 interrupt route

2013-11-11 Thread Paul Burton
On 10/11/13 20:09, Marek Vasut wrote: Dear Paul Burton, Without setting up the PIRQ[A:D] interrupt routes, PCI interrupts will be left disabled. Linux does not set up this routing but relies upon it having been set up by the bootloader, reading back the IRQ lines which the PIRQ[A:D] signals

[U-Boot] [PATCH] malta: arch/mips/include/asm/malta.h SPDX license tag

2013-11-11 Thread Paul Burton
This patch replaces the GPL-2.0 text with a GPL-2.0 SPDX-License-Identifier tag, and adds Imagination Technologies copyright following my recent changes. Signed-off-by: Paul Burton paul.bur...@imgtec.com --- arch/mips/include/asm/malta.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions

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

2013-11-11 Thread Paul Burton
? it is obviously am upstream change in qemu, which requires a fix in u-boot. Paul or Gabor, do you have an idea? It is broken since the following change in qemu: commit a427338b222b43197c2776cbc996936df0302f51 Author: Paul Burton paul.bur...@imgtec.com Date: Fri Jun 14 08:30:44 2013 +0100

Re: [U-Boot] [PATCH 16/18] malta: setup PIIX4 interrupt route

2013-11-11 Thread Paul Burton
On 11/11/13 13:33, Marek Vasut wrote: Dear Paul Burton, On 10/11/13 20:09, Marek Vasut wrote: Dear Paul Burton, Without setting up the PIRQ[A:D] interrupt routes, PCI interrupts will be left disabled. Linux does not set up this routing but relies upon it having been set up by the bootloader

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

2013-11-11 Thread Paul Burton
. Signed-off-by: Gabor Juhos juh...@openwrt.org Cc: Daniel Schwierzeck daniel.schwierz...@gmail.com Cc: Paul Burton paul.bur...@imgtec.com --- arch/mips/include/asm/malta.h |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/mips/include/asm/malta.h b/arch/mips/include/asm

[U-Boot] [PATCH 0/5] MIPS Malta generic board conversion

2014-04-04 Thread Paul Burton
This series adds generic board support for the MIPS architecture, and then converts the MIPS Malta development board to use it. Paul Burton (5): MIPS: stub interrupt_init function MIPS: move mips_io_port_base out of board.c MIPS: define __init_end in u-boot.lds MIPS: allow use of generic

[U-Boot] [PATCH 2/5] MIPS: move mips_io_port_base out of board.c

2014-04-04 Thread Paul Burton
Move the definition of this variable out of arch/mips/lib/board.c in preparation for allowing use of generic board on MIPS, which will lead to this file not being compiled. Signed-off-by: Paul Burton paul.bur...@imgtec.com --- arch/mips/lib/Makefile | 2 ++ arch/mips/lib/board.c | 6

[U-Boot] [PATCH 1/5] MIPS: stub interrupt_init function

2014-04-04 Thread Paul Burton
interrupt_init is called unconditionally by the generic board code. Define a stub for it on MIPS like the enable disable functions. Signed-off-by: Paul Burton paul.bur...@imgtec.com --- arch/mips/cpu/mips32/interrupts.c | 5 + arch/mips/cpu/mips64/interrupts.c | 5 + 2 files changed, 10

[U-Boot] [PATCH 3/5] MIPS: define __init_end in u-boot.lds

2014-04-04 Thread Paul Burton
The generic board code uses the __init_end symbol to calculate monitor_flash_len. Define said symbol for MIPS, equivalent to __image_copy_end which is used for the same purpose in arch/mips/lib/board.c. Signed-off-by: Paul Burton paul.bur...@imgtec.com --- arch/mips/cpu/u-boot.lds | 1 + 1 file

[U-Boot] [PATCH 5/5] MIPS: Malta: convert to generic board

2014-04-04 Thread Paul Burton
This patch converts the MIPS Malta development board to make use of the generic board code now that it is supported on MIPS. Signed-off-by: Paul Burton paul.bur...@imgtec.com --- board/imgtec/malta/malta.c | 9 - include/configs/malta.h| 3 +++ 2 files changed, 7 insertions(+), 5

[U-Boot] [PATCH 4/5] MIPS: allow use of generic board

2014-04-04 Thread Paul Burton
This patch allows MIPS boards to make use of generic board, replacing arch/mips/lib/board.c with common/board_{f,r}.c and struct bd_info with the asm-generic version. Signed-off-by: Paul Burton paul.bur...@imgtec.com --- arch/mips/config.mk| 2 ++ arch/mips/include/asm/u-boot.h | 9

[U-Boot] [PATCH] board_r: return 0 from show_model_r

2014-04-04 Thread Paul Burton
: Simon Glass s...@chromium.org Signed-off-by: Paul Burton paul.bur...@imgtec.com --- common/board_r.c | 1 + 1 file changed, 1 insertion(+) diff --git a/common/board_r.c b/common/board_r.c index 8629a65..d1f0aa9 100644 --- a/common/board_r.c +++ b/common/board_r.c @@ -528,6 +528,7 @@ static int

[U-Boot] [PATCH v2 3/7] MIPS: define __init_end in u-boot.lds

2014-04-07 Thread Paul Burton
The generic board code uses the __init_end symbol to calculate monitor_flash_len. Define said symbol for MIPS, equivalent to __image_copy_end which is used for the same purpose in arch/mips/lib/board.c. Signed-off-by: Paul Burton paul.bur...@imgtec.com --- Changes since v1: - None --- arch

[U-Boot] [PATCH v2 0/7] MIPS: Malta generic board conversion

2014-04-07 Thread Paul Burton
as pointed out by Daniel. Note that I've only submitted the whole series again because patch numbers changed; the content of patches 1-3,6 is unchanged from v1. Paul Burton (7): MIPS: stub interrupt_init function MIPS: move mips_io_port_base out of board.c MIPS: define __init_end in u-boot.lds

  1   2   3   4   5   6   >