Skip to contentSkip to conversation

ARM: initial support for RC Module UEMD SoCs and MB 77.07 board

PATCH Superseded Antony Pavlov 2 participants 9 messages Apr 16, 2014 – May 9, 2014

Subsystems (3)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

cover ARM: initial support for RC Module UEMD SoCs and MB 77.07 board

Research Centre "Module" (RC Module) is
a Russian development company designing
mixed-signal ASICs and real-time video-image
processing systems.

К1879ХБ1Я (AKA K1879HB1YA) is a UEMD family SoC that combines a DSP core based on the NeuroMatrix(r) family
with an ARM architecture CPU ARM1176JZF-S core.

The MB 77.07 is a small (80x80 mm) single-board computer developed in Russia by the RC Module.
It was developed as an educational board for К1879ХБ1Я SoC capabilities demonstration.

See http://www.module.ru/en/catalog/micro/micro_pc/ for details.

MB 77.07 barebox HOWTO
======================

0. Download barebox sources and build barebox.bin image

    $ git clone -b next.mb7707.20140416 https://github.com/frantony/barebox barebox.mb7707
    $ cd barebox.mb7707
    $ export ARCH=arm
    $ export CROSS_COMPILE=<your_ARM_toolchain_prefix>
         e.g. export CROSS_COMPILE=/opt/arm-2013.11/bin/arm-none-linux-gnueabi-
    $ make module-mb7707_defconfig
    $ make

You will get the 'barebox.bin' file.

1. burn MBOOT bootloader to the board's ROM;

2. Barebox can be started from MBOOT using tftp. You have to setup tftp-server on host 192.168.0.1. Put your barebox.bin to tftp-server directory (usual /tftpboot or /srv/tftp).

Connect your MB 77.07 board to your tftp-server network via Ethernet RJ45 connector on the board.

Connect to К1879ХБ1Я's UART (use "SERIAL" connector on the booard) using your favorite terminal program.

3. turn on the board, press any key in you terminal program to stop autoboot and load barebox.bin image to the board's RAM:

MBOOT # set bootfile barebox.bin
MBOOT # tftpboot
greth: greth_halt
TFTP Using GRETH_10/100 device
TFTP params: server 192.168.0.1 our_ip 192.168.0.7 TFTP params: filename 'barebox.bin' load_address 0x40100000 TFTP Loading: ##########################
TFTP done
greth: greth_halt
MBOOT #

4. run barebox

    MBOOT # go 0x40100000

Antony Pavlov (5):
ARM: initial support for RC Module UEMD SoCs
ARM: uemd: add DEBUG_LL support
ARM: dts: add minimal К1879ХБ1Я devicetree file
ARM: uemd: add mb7707 board support
ARM: uemd: add module-mb7707_defconfig

 arch/arm/Kconfig                           |  6 +++++
 arch/arm/Makefile                          |  1 +
 arch/arm/boards/Makefile                   |  1 +
 arch/arm/boards/module-mb7707/Makefile     |  1 +
 arch/arm/boards/module-mb7707/board.c      | 27 +++++++++++++++++++
 arch/arm/boards/module-mb7707/lowlevel.c   | 34 +++++++++++++++++++++++
 arch/arm/configs/module-mb7707_defconfig   | 43 ++++++++++++++++++++++++++++++
 arch/arm/dts/k1879hb1ya.dtsi               | 19 +++++++++++++
 arch/arm/dts/module-mb7707.dts             | 16 +++++++++++
 arch/arm/mach-uemd/Kconfig                 | 16 +++++++++++
 arch/arm/mach-uemd/Makefile                |  1 +
 arch/arm/mach-uemd/include/mach/debug_ll.h | 41 ++++++++++++++++++++++++++++
 arch/arm/mach-uemd/reset.c                 | 24 +++++++++++++++++
 13 files changed, 230 insertions(+)
 create mode 100644 arch/arm/boards/module-mb7707/Makefile
 create mode 100644 arch/arm/boards/module-mb7707/board.c
 create mode 100644 arch/arm/boards/module-mb7707/lowlevel.c
 create mode 100644 arch/arm/configs/module-mb7707_defconfig
 create mode 100644 arch/arm/dts/k1879hb1ya.dtsi
 create mode 100644 arch/arm/dts/module-mb7707.dts
 create mode 100644 arch/arm/mach-uemd/Kconfig
 create mode 100644 arch/arm/mach-uemd/Makefile
 create mode 100644 arch/arm/mach-uemd/include/mach/debug_ll.h
 create mode 100644 arch/arm/mach-uemd/reset.c
Signature · 7 lines
1.9.0


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
#1 lore raw

PATCH 1/5 ARM: initial support for RC Module UEMD SoCs

This commit adds minimal support for the UEMD SoCs from RC Module (http://www.module.ru).

---
 arch/arm/Kconfig            |  5 +++++
 arch/arm/Makefile           |  1 +
 arch/arm/mach-uemd/Kconfig  |  7 +++++++
 arch/arm/mach-uemd/Makefile |  1 +
 arch/arm/mach-uemd/reset.c  | 24 ++++++++++++++++++++++++
 5 files changed, 38 insertions(+)
arch/arm/Kconfig +5 -0
index 3754646..040df54 100644
@@ -184,6 +184,10 @@ config ARCH_TEGRA
 	select OFTREE
 	select RELOCATABLE
 
+config ARCH_UEMD
+	bool "RC Module UEMD Platform"
+	select CPU_ARM1176
+
 config ARCH_ZYNQ
 	bool "Xilinx Zynq-based boards"
 	select HAS_DEBUG_LL
@@ -209,6 +213,7 @@ source arch/arm/mach-socfpga/Kconfig
 source arch/arm/mach-versatile/Kconfig
 source arch/arm/mach-vexpress/Kconfig
 source arch/arm/mach-tegra/Kconfig
+source arch/arm/mach-uemd/Kconfig
 source arch/arm/mach-zynq/Kconfig
 
 config ARM_ASM_UNIFIED
arch/arm/Makefile +1 -0
index c1bd836..c2ef824 100644
@@ -69,6 +69,7 @@ machine-$(CONFIG_ARCH_SOCFPGA)		:= socfpga
 machine-$(CONFIG_ARCH_VERSATILE)	:= versatile
 machine-$(CONFIG_ARCH_VEXPRESS)		:= vexpress
 machine-$(CONFIG_ARCH_TEGRA)		:= tegra
+machine-$(CONFIG_ARCH_UEMD)		:= uemd
 machine-$(CONFIG_ARCH_ZYNQ)		:= zynq
 
 
arch/arm/mach-uemd/Kconfig new file +7 -0
new file mode 100644
index 0000000..f9cf859
@@ -0,0 +1,7 @@
+if ARCH_UEMD
+
+config ARCH_TEXT_BASE
+	hex
+	default 0x40800000
+
+endif
arch/arm/mach-uemd/Makefile new file +1 -0
new file mode 100644
index 0000000..f3cc668
@@ -0,0 +1 @@
+obj-y += reset.o
arch/arm/mach-uemd/reset.c new file +24 -0
new file mode 100644
index 0000000..df23e47
@@ -0,0 +1,24 @@
+/*
+ * Copyright (C) 2014 Antony Pavlov <[email protected]>
+ *
+ * This file is part of barebox.
+ * See file CREDITS for list of people who contributed to this project.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2
+ * as published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ */
+
+#include <common.h>
+
+void __noreturn reset_cpu(ulong addr)
+{
+	unreachable();
+}
+EXPORT_SYMBOL(reset_cpu);
Signature · 7 lines
1.9.0


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
#3 lore raw

PATCH 2/5 ARM: uemd: add DEBUG_LL support

In reply to Antony Pavlov
---
 arch/arm/Kconfig                           |  1 +
 arch/arm/mach-uemd/include/mach/debug_ll.h | 41 ++++++++++++++++++++++++++++++
 2 files changed, 42 insertions(+)
arch/arm/Kconfig +1 -0
index 040df54..5dc9c64 100644
@@ -187,6 +187,7 @@ config ARCH_TEGRA
 config ARCH_UEMD
 	bool "RC Module UEMD Platform"
 	select CPU_ARM1176
+	select HAS_DEBUG_LL
 
 config ARCH_ZYNQ
 	bool "Xilinx Zynq-based boards"
arch/arm/mach-uemd/include/mach/debug_ll.h new file +41 -0

41 lines not on this page · raw message

Signature · 7 lines
1.9.0


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
#4 lore raw

PATCH 3/5 ARM: dts: add minimal К1879ХБ1Я devicetree file

In reply to Antony Pavlov

К1879ХБ1Я (AKA K1879HB1YA) is a SoC that combines
a DSP core based on the NeuroMatrix(r) family
with an ARM architecture CPU ARM1176JZF-S core.

See http://www.module.ru/en/catalog/micro/mikroshema_dekodera_cifrovogo_televizionnogo_signala_sbis_k1879hb1ya/ for details.

---
 arch/arm/dts/k1879hb1ya.dtsi | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
arch/arm/dts/k1879hb1ya.dtsi new file +19 -0
new file mode 100644
index 0000000..7299cc1
@@ -0,0 +1,19 @@
+#include "skeleton.dtsi"
+
+/ {
+	soc {
+		compatible = "simple-bus";
+		model = "RC Module K1879HB1YA";
+		#address-cells = <1>;
+		#size-cells = <1>;
+		ranges;
+
+		serial0: serial@2002b000 {
+			compatible = "ns16550a";
+			reg = <0x2002b000 0x1000>;
+			reg-shift = <2>;
+			clock-frequency = <54000000>;
+			status = "disabled";
+		};
+	};
+};
Signature · 7 lines
1.9.0


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
#5 lore raw

PATCH 4/5 ARM: uemd: add mb7707 board support

In reply to Antony Pavlov

The MB 77.07 is a small (80x80 mm) single-board computer developed in Russia by the RC Module.
It was developed as an educational board for К1879ХБ1Я SoC capabilities demonstration.

See http://www.module.ru/en/catalog/micro/micro_pc/ for details.

---
 arch/arm/boards/Makefile                 |  1 +
 arch/arm/boards/module-mb7707/Makefile   |  1 +
 arch/arm/boards/module-mb7707/board.c    | 27 +++++++++++++++++++++++++
 arch/arm/boards/module-mb7707/lowlevel.c | 34 ++++++++++++++++++++++++++++++++
 arch/arm/dts/module-mb7707.dts           | 16 +++++++++++++++
 arch/arm/mach-uemd/Kconfig               |  9 +++++++++
 6 files changed, 88 insertions(+)
arch/arm/boards/Makefile +1 -0
index 16742d9..806ab3e 100644
@@ -47,6 +47,7 @@ obj-$(CONFIG_MACH_HIGHBANK)			+= highbank/
 obj-$(CONFIG_MACH_IMX21ADS)			+= freescale-mx21-ads/
 obj-$(CONFIG_MACH_IMX233_OLINUXINO)		+= imx233-olinuxino/
 obj-$(CONFIG_MACH_IMX27ADS)			+= freescale-mx27-ads/
+obj-$(CONFIG_MACH_MB7707)			+= module-mb7707/
 obj-$(CONFIG_MACH_MIOA701)			+= mioa701/
 obj-$(CONFIG_MACH_MMCCPU)			+= mmccpu/
 obj-$(CONFIG_MACH_MX23EVK)			+= freescale-mx23-evk/
arch/arm/boards/module-mb7707/Makefile new file +1 -0
new file mode 100644
index 0000000..b2f44bb
@@ -0,0 +1 @@
+obj-y += lowlevel.o board.o
arch/arm/boards/module-mb7707/board.c new file +27 -0
new file mode 100644
index 0000000..9e544b5
@@ -0,0 +1,27 @@
+/*
+ * Copyright (C) 2014 Antony Pavlov <[email protected]>
+ *
+ * This file is part of barebox.
+ * See file CREDITS for list of people who contributed to this project.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2
+ * as published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ */
+
+#include <common.h>
+#include <init.h>
+
+static int hostname_init(void)
+{
+	barebox_set_hostname("mb7707");
+
+	return 0;
+}
+core_initcall(hostname_init);
arch/arm/boards/module-mb7707/lowlevel.c new file +34 -0
new file mode 100644
index 0000000..5f5e1d7
@@ -0,0 +1,34 @@
+/*
+ * Copyright (C) 2014 Antony Pavlov <[email protected]>
+ *
+ * This file is part of barebox.
+ * See file CREDITS for list of people who contributed to this project.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2
+ * as published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ */
+
+#define __LOWLEVEL_INIT__
+
+#include <common.h>
+#include <asm/barebox-arm.h>
+#include <asm/barebox-arm-head.h>
+#include <init.h>
+#include <sizes.h>
+
+#define MB7707_SRAM_BASE 0x40000000
+#define MB7707_SRAM_SIZE SZ_128M
+
+void __naked __bare_init barebox_arm_reset_vector(void)
+{
+	arm_cpu_lowlevel_init();
+
+	barebox_arm_entry(MB7707_SRAM_BASE, MB7707_SRAM_SIZE, 0);
+}
arch/arm/dts/module-mb7707.dts new file +16 -0
new file mode 100644
index 0000000..21bdeb2
@@ -0,0 +1,16 @@
+/dts-v1/;
+
+#include "k1879hb1ya.dtsi"
+
+/ {
+	model = "Module MB 77.07";
+	compatible = "module,mb7707";
+
+	memory {
+		reg = <0x40000000 0x8000000>;
+	};
+};
+
+&serial0 {
+	status = "okay";
+};
arch/arm/mach-uemd/Kconfig +9 -0
index f9cf859..aedd757 100644
@@ -4,4 +4,13 @@ config ARCH_TEXT_BASE
 	hex
 	default 0x40800000
 
+choice
+	prompt "UEMD Board type"
+
+config MACH_MB7707
+	bool "MB7707"
+	select HAVE_DEFAULT_ENVIRONMENT_NEW
+
+endchoice
+
 endif
Signature · 7 lines
1.9.0


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
#6 lore raw

PATCH 5/5 ARM: uemd: add module-mb7707_defconfig

In reply to Antony Pavlov
---
 arch/arm/configs/module-mb7707_defconfig | 43 ++++++++++++++++++++++++++++++++
 1 file changed, 43 insertions(+)
arch/arm/configs/module-mb7707_defconfig new file +43 -0
new file mode 100644
index 0000000..772c5dd
@@ -0,0 +1,43 @@
+CONFIG_BUILTIN_DTB=y
+CONFIG_BUILTIN_DTB_NAME="module-mb7707"
+CONFIG_ARCH_UEMD=y
+CONFIG_AEABI=y
+CONFIG_ARM_OPTIMZED_STRING_FUNCTIONS=y
+CONFIG_MALLOC_TLSF=y
+CONFIG_PROMPT="MB 77.07: "
+CONFIG_BAUDRATE=38400
+CONFIG_LONGHELP=y
+CONFIG_GLOB=y
+CONFIG_HUSH_FANCY_PROMPT=y
+CONFIG_CMDLINE_EDITING=y
+CONFIG_AUTO_COMPLETE=y
+CONFIG_MENU=y
+CONFIG_PASSWORD=y
+CONFIG_CMD_EDIT=y
+CONFIG_CMD_SLEEP=y
+CONFIG_CMD_EXPORT=y
+CONFIG_CMD_PRINTENV=y
+CONFIG_CMD_READLINE=y
+# CONFIG_CMD_MOUNT is not set
+# CONFIG_CMD_UMOUNT is not set
+CONFIG_CMD_ECHO_E=y
+CONFIG_CMD_LOADB=y
+CONFIG_CMD_LOADY=y
+CONFIG_CMD_MEMINFO=y
+CONFIG_CMD_IOMEM=y
+CONFIG_CMD_MM=y
+# CONFIG_CMD_BOOTM is not set
+# CONFIG_CMD_BOOTU is not set
+CONFIG_CMD_RESET=y
+CONFIG_CMD_GO=y
+CONFIG_CMD_OFTREE=y
+CONFIG_CMD_OF_PROPERTY=y
+CONFIG_CMD_OF_NODE=y
+CONFIG_CMD_UNCOMPRESS=y
+CONFIG_OFDEVICE=y
+CONFIG_OF_BAREBOX_DRIVERS=y
+CONFIG_DRIVER_SERIAL_NS16550=y
+# CONFIG_SPI is not set
+CONFIG_CLOCKSOURCE_DUMMY=y
+CONFIG_SHA1=y
+CONFIG_SHA256=y
Signature · 7 lines
1.9.0


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
#2 lore raw

Re: [PATCH 1/5] ARM: initial support for RC Module UEMD SoCs

In reply to Antony Pavlov
Quoted 22 lines · Antony Pavlov

This commit adds minimal support for the UEMD SoCs from RC Module (http://www.module.ru).

arch/arm/mach-uemd/reset.c new file +12 -0
new file mode 100644
index 0000000..df23e47
@@ -0,0 +1,24 @@
+/*
+ * Copyright (C) 2014 Antony Pavlov <[email protected]>
+ *
+ * This file is part of barebox.
+ * See file CREDITS for list of people who contributed to this project.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2
+ * as published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of

arch/arm/mach-uemd/reset.c line 22

Quoted 10 lines
arch/arm/mach-uemd/reset.c new file +10 -0
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ */
+
+#include <common.h>
+
+void __noreturn reset_cpu(ulong addr)
+{
+	unreachable();

unreachable is for marking positions in the code which are unreachable but the compiler does not know it. reset_cpu() *is* reachable, so unreachable is wrong here. How about just calling hang() here?

Sascha

Signature · 9 lines
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
#7 lore raw
In reply to Antony Pavlov

Antony,

This series is still in my inbox with only one small issue. Will you update the series?

Sascha

Quoted 107 lines · Antony Pavlov

Research Centre "Module" (RC Module) is
a Russian development company designing
mixed-signal ASICs and real-time video-image
processing systems.

К1879ХБ1Я (AKA K1879HB1YA) is a UEMD family SoC that combines a DSP core based on the NeuroMatrix(r) family
with an ARM architecture CPU ARM1176JZF-S core.

The MB 77.07 is a small (80x80 mm) single-board computer developed in Russia by the RC Module.
It was developed as an educational board for К1879ХБ1Я SoC capabilities demonstration.

See http://www.module.ru/en/catalog/micro/micro_pc/ for details.

MB 77.07 barebox HOWTO
======================

0. Download barebox sources and build barebox.bin image

    $ git clone -b next.mb7707.20140416 https://github.com/frantony/barebox barebox.mb7707
    $ cd barebox.mb7707
    $ export ARCH=arm
    $ export CROSS_COMPILE=<your_ARM_toolchain_prefix>
         e.g. export CROSS_COMPILE=/opt/arm-2013.11/bin/arm-none-linux-gnueabi-
    $ make module-mb7707_defconfig
    $ make

You will get the 'barebox.bin' file.

1. burn MBOOT bootloader to the board's ROM;

2. Barebox can be started from MBOOT using tftp. You have to setup tftp-server on host 192.168.0.1. Put your barebox.bin to tftp-server directory (usual /tftpboot or /srv/tftp).

Connect your MB 77.07 board to your tftp-server network via Ethernet RJ45 connector on the board.

Connect to К1879ХБ1Я's UART (use "SERIAL" connector on the booard) using your favorite terminal program.

3. turn on the board, press any key in you terminal program to stop autoboot and load barebox.bin image to the board's RAM:

MBOOT # set bootfile barebox.bin
MBOOT # tftpboot
greth: greth_halt
TFTP Using GRETH_10/100 device
TFTP params: server 192.168.0.1 our_ip 192.168.0.7 TFTP params: filename 'barebox.bin' load_address 0x40100000 TFTP Loading: ##########################
TFTP done
greth: greth_halt
MBOOT #

4. run barebox

    MBOOT # go 0x40100000

Antony Pavlov (5):
ARM: initial support for RC Module UEMD SoCs
ARM: uemd: add DEBUG_LL support
ARM: dts: add minimal К1879ХБ1Я devicetree file
ARM: uemd: add mb7707 board support
ARM: uemd: add module-mb7707_defconfig

 arch/arm/Kconfig                           |  6 +++++
 arch/arm/Makefile                          |  1 +
 arch/arm/boards/Makefile                   |  1 +
 arch/arm/boards/module-mb7707/Makefile     |  1 +
 arch/arm/boards/module-mb7707/board.c      | 27 +++++++++++++++++++
 arch/arm/boards/module-mb7707/lowlevel.c   | 34 +++++++++++++++++++++++
 arch/arm/configs/module-mb7707_defconfig   | 43 ++++++++++++++++++++++++++++++
 arch/arm/dts/k1879hb1ya.dtsi               | 19 +++++++++++++
 arch/arm/dts/module-mb7707.dts             | 16 +++++++++++
 arch/arm/mach-uemd/Kconfig                 | 16 +++++++++++
 arch/arm/mach-uemd/Makefile                |  1 +
 arch/arm/mach-uemd/include/mach/debug_ll.h | 41 ++++++++++++++++++++++++++++
 arch/arm/mach-uemd/reset.c                 | 24 +++++++++++++++++
 13 files changed, 230 insertions(+)
 create mode 100644 arch/arm/boards/module-mb7707/Makefile
 create mode 100644 arch/arm/boards/module-mb7707/board.c
 create mode 100644 arch/arm/boards/module-mb7707/lowlevel.c
 create mode 100644 arch/arm/configs/module-mb7707_defconfig
 create mode 100644 arch/arm/dts/k1879hb1ya.dtsi
 create mode 100644 arch/arm/dts/module-mb7707.dts
 create mode 100644 arch/arm/mach-uemd/Kconfig
 create mode 100644 arch/arm/mach-uemd/Makefile
 create mode 100644 arch/arm/mach-uemd/include/mach/debug_ll.h
 create mode 100644 arch/arm/mach-uemd/reset.c
Signature · 7 lines
1.9.0


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Signature · 9 lines
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
#8 lore raw
Quoted 4 lines · On Fri, 9 May 2014 08:20:09 +0200 Sascha Hauer <[email protected]> wrote:

Antony,

This series is still in my inbox with only one small issue. Will you update the series?

I'll resend the series next week. I'll try to add usb support this weekend.

I have some other almost ready series in my queue:

* digic series (digic support is in qemu-2.0 now);
* switch dir-320 to device tree;
* mips cache + ELF-kexec;
* pci.

Quoted 115 lines · Antony Pavlov
Quoted 107 lines

Research Centre "Module" (RC Module) is
a Russian development company designing
mixed-signal ASICs and real-time video-image
processing systems.

К1879ХБ1Я (AKA K1879HB1YA) is a UEMD family SoC that combines a DSP core based on the NeuroMatrix(r) family
with an ARM architecture CPU ARM1176JZF-S core.

The MB 77.07 is a small (80x80 mm) single-board computer developed in Russia by the RC Module.
It was developed as an educational board for К1879ХБ1Я SoC capabilities demonstration.

See http://www.module.ru/en/catalog/micro/micro_pc/ for details.

MB 77.07 barebox HOWTO
======================

0. Download barebox sources and build barebox.bin image

    $ git clone -b next.mb7707.20140416 https://github.com/frantony/barebox barebox.mb7707
    $ cd barebox.mb7707
    $ export ARCH=arm
    $ export CROSS_COMPILE=<your_ARM_toolchain_prefix>
         e.g. export CROSS_COMPILE=/opt/arm-2013.11/bin/arm-none-linux-gnueabi-
    $ make module-mb7707_defconfig
    $ make

You will get the 'barebox.bin' file.

1. burn MBOOT bootloader to the board's ROM;

2. Barebox can be started from MBOOT using tftp. You have to setup tftp-server on host 192.168.0.1. Put your barebox.bin to tftp-server directory (usual /tftpboot or /srv/tftp).

Connect your MB 77.07 board to your tftp-server network via Ethernet RJ45 connector on the board.

Connect to К1879ХБ1Я's UART (use "SERIAL" connector on the booard) using your favorite terminal program.

3. turn on the board, press any key in you terminal program to stop autoboot and load barebox.bin image to the board's RAM:

MBOOT # set bootfile barebox.bin
MBOOT # tftpboot
greth: greth_halt
TFTP Using GRETH_10/100 device
TFTP params: server 192.168.0.1 our_ip 192.168.0.7 TFTP params: filename 'barebox.bin' load_address 0x40100000 TFTP Loading: ##########################
TFTP done
greth: greth_halt
MBOOT #

4. run barebox

    MBOOT # go 0x40100000

Antony Pavlov (5):
ARM: initial support for RC Module UEMD SoCs
ARM: uemd: add DEBUG_LL support
ARM: dts: add minimal К1879ХБ1Я devicetree file
ARM: uemd: add mb7707 board support
ARM: uemd: add module-mb7707_defconfig

 arch/arm/Kconfig                           |  6 +++++
 arch/arm/Makefile                          |  1 +
 arch/arm/boards/Makefile                   |  1 +
 arch/arm/boards/module-mb7707/Makefile     |  1 +
 arch/arm/boards/module-mb7707/board.c      | 27 +++++++++++++++++++
 arch/arm/boards/module-mb7707/lowlevel.c   | 34 +++++++++++++++++++++++
 arch/arm/configs/module-mb7707_defconfig   | 43 ++++++++++++++++++++++++++++++
 arch/arm/dts/k1879hb1ya.dtsi               | 19 +++++++++++++
 arch/arm/dts/module-mb7707.dts             | 16 +++++++++++
 arch/arm/mach-uemd/Kconfig                 | 16 +++++++++++
 arch/arm/mach-uemd/Makefile                |  1 +
 arch/arm/mach-uemd/include/mach/debug_ll.h | 41 ++++++++++++++++++++++++++++
 arch/arm/mach-uemd/reset.c                 | 24 +++++++++++++++++
 13 files changed, 230 insertions(+)
 create mode 100644 arch/arm/boards/module-mb7707/Makefile
 create mode 100644 arch/arm/boards/module-mb7707/board.c
 create mode 100644 arch/arm/boards/module-mb7707/lowlevel.c
 create mode 100644 arch/arm/configs/module-mb7707_defconfig
 create mode 100644 arch/arm/dts/k1879hb1ya.dtsi
 create mode 100644 arch/arm/dts/module-mb7707.dts
 create mode 100644 arch/arm/mach-uemd/Kconfig
 create mode 100644 arch/arm/mach-uemd/Makefile
 create mode 100644 arch/arm/mach-uemd/include/mach/debug_ll.h
 create mode 100644 arch/arm/mach-uemd/reset.c
Signature · 7 lines
1.9.0


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Signature · 4 lines
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |
Signature · 8 lines
-- 
Best regards,
  Antony Pavlov

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox