Skip to contentSkip to conversation

solidrun/macchiatobin: add new board

PATCH Superseded Sergey Matyukevich 3 participants 4 messages Dec 9, 2017 – Dec 15, 2017

lore
Share & tools
lore
#0 lore raw

PATCH v4 1/1 solidrun/macchiatobin: add new board

Add MacchiatoBin board by SolidRun. This board is based on Marvell Armada 8040 SoC. Board support package includes the following two options: mainline and vendor BSPs.

Mainline BSP:
- Marvell ATF v1.3-armada-17.10
- mainline U-Boot v2017.11
- mainline Linux kernel v4.14.4

Marvell BSP with more hardware support enabled:
- Marvell ATF v1.3-armada-17.10
- Marvell U-Boot based on v2017.03
- Marvell Linux kernel based v4.4.52

More details about this board are available on wiki:
- http://wiki.macchiatobin.net

---

Changes v3->v4
Resend MacchiatoBin board support patch after all the unifying ATF/U-Boot pieces have been integrated.

- update configs according to the latest ATF changes
- remove redundant host tools (Thomas)
- remove redundant comments in configs (Thomas)
- generate kernel patches using -N option (Thomas)
- bump u-boot and kernel versions
- rebase on top of master

Changes v2->v3
Resend due to patchwork issues
- rebase on top of master

Changes v1->v2
- update mv-ddr-marvell package: rename/cleanup
- update binary-marvell package: rename/cleanup
- update changes for atf package: cleanup
- update board readme.txt
- add example U-Boot environment
- bump Linux kernel version to 4.14
- add dts patches to enable networking on mainline U-Boot/kernel

---
 DEVELOPERS                                         |   3 +
 board/solidrun/macchiatobin/genimage.cfg           |  16 +++
 board/solidrun/macchiatobin/linux-extras.config    |   3 +
 ...arvell-extend-the-cp110-syscon-register-a.patch |  45 ++++++++
 ...arvell-add-comphy-nodes-on-cp110-master-a.patch | 118 +++++++++++++++++++++
 ...arvell-mcbin-add-comphy-references-to-Eth.patch |  58 ++++++++++
 board/solidrun/macchiatobin/post-build.sh          |   5 +
 board/solidrun/macchiatobin/readme.txt             |  82 ++++++++++++++
 board/solidrun/macchiatobin/uEnv-example.txt       |   7 ++
 configs/solidrun_macchiatobin_mainline_defconfig   |  43 ++++++++
 configs/solidrun_macchiatobin_marvell_defconfig    |  43 ++++++++
 11 files changed, 423 insertions(+)
 create mode 100644 board/solidrun/macchiatobin/genimage.cfg
 create mode 100644 board/solidrun/macchiatobin/linux-extras.config
 create mode 100644 board/solidrun/macchiatobin/patches/linux/0001-arm64-dts-marvell-extend-the-cp110-syscon-register-a.patch
 create mode 100644 board/solidrun/macchiatobin/patches/linux/0002-arm64-dts-marvell-add-comphy-nodes-on-cp110-master-a.patch
 create mode 100644 board/solidrun/macchiatobin/patches/linux/0003-arm64-dts-marvell-mcbin-add-comphy-references-to-Eth.patch
 create mode 100755 board/solidrun/macchiatobin/post-build.sh
 create mode 100644 board/solidrun/macchiatobin/readme.txt
 create mode 100644 board/solidrun/macchiatobin/uEnv-example.txt
 create mode 100644 configs/solidrun_macchiatobin_mainline_defconfig
 create mode 100644 configs/solidrun_macchiatobin_marvell_defconfig
DEVELOPERS +3 -0
index 77e3344fa4..dd96f13d78 100644
@@ -1527,10 +1527,13 @@ F:	board/linksprite/pcduino
 F:	board/orangepi/orangepi-zero
 F:	board/orangepi/orangepi-one
 F:	board/orangepi/orangepi-pc-plus/
+F:	board/solidrun/macchiatobin
 F:	configs/linksprite_pcduino_defconfig
 F:	configs/orangepi_one_defconfig
 F:	configs/orangepi_pc_plus_defconfig
 F:	configs/orangepi_zero_defconfig
+F:	configs/solidrun_macchiatobin_mainline_defconfig
+F:	configs/solidrun_macchiatobin_marvell_defconfig
 F:	package/armbian-firmware/
 F:	package/rtl8189fs/
 F:	package/xr819-xradio/
board/solidrun/macchiatobin/genimage.cfg new file +16 -0
new file mode 100644
index 0000000000..fdcda368a2
@@ -0,0 +1,16 @@
+image sdcard.img {
+	hdimage {
+	}
+
+	partition uboot {
+		in-partition-table = "no"
+		image = "flash-image.bin"
+		offset = 0x200000
+	}
+
+	partition rootfs {
+		partition-type = 0x83
+		offset = 0x2200000
+		image = "rootfs.ext4"
+	}
+}
board/solidrun/macchiatobin/linux-extras.config new file +3 -0
new file mode 100644
index 0000000000..11267d2f80
@@ -0,0 +1,3 @@
+CONFIG_MARVELL_PHY=y
+CONFIG_MARVELL_10G_PHY=y
+CONFIG_PHY_MVEBU_CP110_COMPHY=y
board/solidrun/macchiatobin/patches/linux/0001-arm64-dts-marvell-extend-the-cp110-syscon-register-a.patch new file +45 -0

45 lines not on this page · raw message

board/solidrun/macchiatobin/patches/linux/0002-arm64-dts-marvell-add-comphy-nodes-on-cp110-master-a.patch new file +118 -0

118 lines not on this page · raw message

board/solidrun/macchiatobin/patches/linux/0003-arm64-dts-marvell-mcbin-add-comphy-references-to-Eth.patch new file +58 -0

58 lines not on this page · raw message

board/solidrun/macchiatobin/post-build.sh new file +5 -0
new file mode 100755
index 0000000000..9c1b5b883c
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+BOARD_DIR="$(dirname $0)"
+
+install -m 0644 -D ${BOARD_DIR}/uEnv-example.txt ${TARGET_DIR}/boot/uEnv-example.txt
board/solidrun/macchiatobin/readme.txt new file +82 -0

82 lines not on this page · raw message

board/solidrun/macchiatobin/uEnv-example.txt new file +7 -0
new file mode 100644
index 0000000000..1967e2badd
@@ -0,0 +1,7 @@
+bootargs=console=ttyS0,115200 root=/dev/mmcblk1p1 rw rootwait
+fdt_addr=0x1000000
+fdt_high=0xffffffffffffffff
+fdt_name=boot/armada-8040-mcbin.dtb
+kernel_addr=0x2000000
+image_name=boot/Image
+bootcmd=mmc dev 1; ext4load mmc 1:1 $kernel_addr $image_name; ext4load mmc 1:1 $fdt_addr $fdt_name; booti $kernel_addr - $fdt_addr
configs/solidrun_macchiatobin_mainline_defconfig new file +43 -0

43 lines not on this page · raw message

configs/solidrun_macchiatobin_marvell_defconfig new file +43 -0

43 lines not on this page · raw message

Signature · 1 line
2.11.0
#1 lore raw

PATCH v4 1/1 solidrun/macchiatobin: add new board

Hi Sergey,

Quoted 19 lines · Sergey Matyukevich

Add MacchiatoBin board by SolidRun. This board is based on Marvell Armada 8040 SoC. Board support package includes the following two options: mainline and vendor BSPs.

Mainline BSP:
- Marvell ATF v1.3-armada-17.10
- mainline U-Boot v2017.11
- mainline Linux kernel v4.14.4

Marvell BSP with more hardware support enabled:
- Marvell ATF v1.3-armada-17.10
- Marvell U-Boot based on v2017.03
- Marvell Linux kernel based v4.4.52

More details about this board are available on wiki:
- http://wiki.macchiatobin.net

---

[...]

board/solidrun/macchiatobin/readme.txt line 61

Quoted 9 lines
board/solidrun/macchiatobin/readme.txt new file +9 -0
+How to boot the board
+=====================
+
+MacchiatoBin board can be setup to load bootloader from different
+sources including eMMC, SPI flash, and SD-card. In order to select
+boot from SD-card DIP switches SW1 and SW2 should be configured
+as follows:
+SW2: 01110
+SW1: 1xxxx

The upcoming revision 1.3 of the Macchiatobin will have a single pins header (J1) instead of the SW1/2 DIP switches. The setting of J1 jumpers matches the DIP switches of earlier revisions from left to right:

011101xxxx

This is also marked on the PCB.

baruch

Signature · 3 lines
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -
#2 lore raw

PATCH v4 1/1 solidrun/macchiatobin: add new board

Hello Baruch,

Quoted 39 lines

Hi Sergey,

Quoted 19 lines · Sergey Matyukevich

Add MacchiatoBin board by SolidRun. This board is based on Marvell Armada 8040 SoC. Board support package includes the following two options: mainline and vendor BSPs.

Mainline BSP:
- Marvell ATF v1.3-armada-17.10
- mainline U-Boot v2017.11
- mainline Linux kernel v4.14.4

Marvell BSP with more hardware support enabled:
- Marvell ATF v1.3-armada-17.10
- Marvell U-Boot based on v2017.03
- Marvell Linux kernel based v4.4.52

More details about this board are available on wiki:
- http://wiki.macchiatobin.net

---

[...]

board/solidrun/macchiatobin/readme.txt line 61

Quoted 9 lines
board/solidrun/macchiatobin/readme.txt new file +9 -0
+How to boot the board
+=====================
+
+MacchiatoBin board can be setup to load bootloader from different
+sources including eMMC, SPI flash, and SD-card. In order to select
+boot from SD-card DIP switches SW1 and SW2 should be configured
+as follows:
+SW2: 01110
+SW1: 1xxxx

The upcoming revision 1.3 of the Macchiatobin will have a single pins header (J1) instead of the SW1/2 DIP switches. The setting of J1 jumpers matches the DIP switches of earlier revisions from left to right:

Quoted 3 lines

011101xxxx

This is also marked on the PCB.

Thanks, noted. I plan to update mcbin board files after kernel v4.15 is out. So I will queue this board info update into that change as well.

Regards,
Sergey

#3 lore raw

PATCH v4 1/1 solidrun/macchiatobin: add new board

In reply to Sergey Matyukevich

Hello,

Quoted 14 lines · Sergey Matyukevich

Add MacchiatoBin board by SolidRun. This board is based on Marvell Armada 8040 SoC. Board support package includes the following two options: mainline and vendor BSPs.

Mainline BSP:
- Marvell ATF v1.3-armada-17.10
- mainline U-Boot v2017.11
- mainline Linux kernel v4.14.4

Marvell BSP with more hardware support enabled:
- Marvell ATF v1.3-armada-17.10
- Marvell U-Boot based on v2017.03
- Marvell Linux kernel based v4.4.52

Quoted 6 lines

More details about this board are available on wiki:
- http://wiki.macchiatobin.net

---

I've applied after doing a number of tweaks to the readme.txt file, and updating the .gitlab-ci.yml file.

Thanks a lot for this contribution!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com