Beaglebone white: Kernel doesn't start with barebox-2014.03.0

2014-04-15 Thread Rolf Evers-Fischer
Dear all, after update to barebox-2014.03.0, the kernel on my beaglebone-white doesn't start anymore. The last line, which appears, is "booting kernel with devicetree". I discovered that the problem is caused by the commit [1]. When I revert this commit, everything works fine. Here is some more in

[PATCH] commands: loady: fix Y-Modem/G option name in help message

2014-04-15 Thread Antony Pavlov
Actually loady command uses '-g' option for Y-Modem/G mode selection; see loady() function: while ((opt = getopt(argc, argv, "b:t:g")) > 0) { switch (opt) { ... case 'g': is_ymodemg = 1; break; By mistake help message show '-y' option for Y-Modem/G

[RFC 10/10] MIPS: mach-malta: add kexec-capable reboot()

2014-04-15 Thread Antony Pavlov
This patch is based on qemu.git/hw/mips/mips_malta.c code. Signed-off-by: Antony Pavlov --- arch/mips/Kconfig | 1 + arch/mips/mach-malta/Makefile | 1 + arch/mips/mach-malta/reboot.c | 104 ++ 3 files changed, 106 insertions(+) create mod

[RFC 05/10] resource: add create_resource() helper function

2014-04-15 Thread Antony Pavlov
Signed-off-by: Antony Pavlov --- common/resource.c | 15 +++ include/linux/ioport.h | 2 ++ 2 files changed, 17 insertions(+) diff --git a/common/resource.c b/common/resource.c index fe4680e..b6c7c87 100644 --- a/common/resource.c +++ b/common/resource.c @@ -143,3 +143,18 @@ st

[RFC 07/10] filetype: add ELF type

2014-04-15 Thread Antony Pavlov
Signed-off-by: Antony Pavlov --- common/filetype.c | 5 + include/filetype.h | 1 + 2 files changed, 6 insertions(+) diff --git a/common/filetype.c b/common/filetype.c index 0b5da30..dacfa38 100644 --- a/common/filetype.c +++ b/common/filetype.c @@ -24,6 +24,7 @@ #include #include #inc

[RFC 08/10] bootm: add kexec ELF support

2014-04-15 Thread Antony Pavlov
Also introduce reboot() for starting already loaded via kexec ELF segments. Signed-off-by: Antony Pavlov --- include/linux/reboot.h | 14 ++ lib/kexec/Makefile | 1 + lib/kexec/kexec-bootm-elf.c | 36 3 files changed, 51 insertions(

[RFC 06/10] import initial kexec stuff

2014-04-15 Thread Antony Pavlov
Signed-off-by: Antony Pavlov --- commands/Kconfig | 7 + common/Kconfig | 3 + lib/Makefile | 1 + lib/kexec/Makefile | 3 + lib/kexec/kexec-elf-exec.c | 82 ++ lib/kexec/kexec-elf.c | 639 +

[RFC 03/10] MIPS: use arch_shutdown() for flushing caches

2014-04-15 Thread Antony Pavlov
Signed-off-by: Antony Pavlov --- arch/mips/lib/shutdown.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/mips/lib/shutdown.c b/arch/mips/lib/shutdown.c index 6feec9b..09651a7 100644 --- a/arch/mips/lib/shutdown.c +++ b/arch/mips/lib/shutdown.c @@ -3,8 +3,10 @@ * memory/cache state.

[RFC 02/10] MIPS: introduce arch_shutdown()

2014-04-15 Thread Antony Pavlov
Signed-off-by: Antony Pavlov --- arch/mips/include/asm/common.h | 2 +- arch/mips/lib/Makefile | 1 + arch/mips/lib/shutdown.c | 10 ++ 3 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 arch/mips/lib/shutdown.c diff --git a/arch/mips/include/asm/common.

[RFC 00/10] MIPS: use kexec to load ELF linux images

2014-04-15 Thread Antony Pavlov
://github.com/frantony/barebox/tree/next.mips-malta-elf-linux.20140415 Linux kernel ELF images use KSEG1 ("cached") addresses, so this series adds elementary code for MIPS cache support. The code for actual ELF loading and relocation is imported from kexec-tools (git://git.kernel.org/pub/scm/ut

[RFC 09/10] MIPS: add ELF support

2014-04-15 Thread Antony Pavlov
Signed-off-by: Antony Pavlov --- arch/mips/include/asm/elf.h | 8 +- arch/mips/lib/Makefile | 3 + arch/mips/lib/kexec-mips.c | 170 arch/mips/lib/relocate_kernel.S | 80 +++ 4 files changed, 260 insertions(+), 1 dele

[RFC 04/10] MIPS: add virt_to_phys() and phys_to_virt()

2014-04-15 Thread Antony Pavlov
Signed-off-by: Antony Pavlov --- arch/mips/include/asm/io.h | 35 +++ 1 file changed, 35 insertions(+) diff --git a/arch/mips/include/asm/io.h b/arch/mips/include/asm/io.h index ff66ea5..dcda857 100644 --- a/arch/mips/include/asm/io.h +++ b/arch/mips/include/asm/i

[RFC 01/10] MIPS: add initial cache support for R4000-class CPUs

2014-04-15 Thread Antony Pavlov
This commit adds very elementary U-Boot style flush/clean cache generic routines for R4000-class CPUs. This patch lacks of initial cache initialization code as it's may be CPU-dependent. Here is Linux-Barebox cache routines correspondance: Linux Barebox _dma_cache_w