Skip to contentSkip to conversation

board: resurrect support for RIoTboard

PATCH New Nikolay Dimitrov 2 participants 2 messages Sep 8, 2018 – Sep 10, 2018

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 board: resurrect support for RIoTboard

Resurrect support for RIoTboard after 2018.02.x deprecation.

---
Changes v1 -> v2:
- Add board's manufacturer website for more info
- Switch to genimage sdcard image generation, update install steps in readme.txt
- Switch from uImage to zImage
- Switch rootfs to BR2_TARGET_ROOTFS_EXT2_4
- Update u-boot to v2018.07
- Update kernel to v4.18
- Add myself in DEVELOPERS for riotboard

---
 DEVELOPERS                                         |  4 +++
 board/embest/riotboard/genimage.cfg                | 17 +++++++++
 board/embest/riotboard/readme.txt                  | 34 ++++++++++++++++++
 .../rootfs_overlay/boot/extlinux/extlinux.conf     |  6 ++++
 configs/riotboard_defconfig                        | 41 ++++++++++++++++++++++
 5 files changed, 102 insertions(+)
 create mode 100644 board/embest/riotboard/genimage.cfg
 create mode 100644 board/embest/riotboard/readme.txt
 create mode 100644 board/embest/riotboard/rootfs_overlay/boot/extlinux/extlinux.conf
 create mode 100644 configs/riotboard_defconfig
DEVELOPERS +4 -0
index 826831c5e7..53463ae2f4 100644
@@ -1500,6 +1500,10 @@ F:	package/exiv2/
 F:	package/nvidia-tegra23/nvidia-tegra23-binaries/
 F:	package/nvidia-tegra23/nvidia-tegra23-codecs/
 
+N:	Nikolay Dimitrov <[email protected]>
+F:	board/embest/riotboard/
+F:	configs/riotboard_defconfig
+
 N:	Nimai Mahajan <[email protected]>
 F:	package/libucl/
 
board/embest/riotboard/genimage.cfg new file +17 -0
new file mode 100644
index 0000000000..1221c83b9a
@@ -0,0 +1,17 @@
+image sdcard.img {
+    hdimage {
+    }
+
+    partition u-boot {
+        in-partition-table = "no"
+        image = "u-boot.imx"
+        offset = 1024
+    }
+
+    partition rootfs {
+        partition-type = 0x83
+        image = "rootfs.ext2"
+        offset = 1M
+        size = 60M
+    }
+}
board/embest/riotboard/readme.txt new file +34 -0
new file mode 100644
index 0000000000..04360a3c63
@@ -0,0 +1,34 @@
+Buildroot for Embest RIoTboard
+==============================
+This is a small development board, based on Freescale IMX6 Solo SoC (single
+core ARM Cortex-A9).
+
+More details about the board can be found here:
+- http://www.embest-tech.com/riotboard
+
+1. Compiling buildroot
+----------------------
+
+make riotboard_defconfig
+make
+
+2. Installing buildroot
+-----------------------
+
+Prepare an SD-card and plug it into your card reader. Always double check the
+block device before writing to it, as writing to the wrong block device can
+cause irrecoverable data loss. Now you can write the image to your SD-card:
+
+sudo dd if=output/images/sdcard.img of=/dev/<sdcard-block-device> bs=1M
+
+3. Running buildroot
+--------------------
+
+Position the board so you can read the label "RIoTboard" on the right side of
+SW1 DIP switches. Configure the SW1 swiches like this:
+
+1   0  1   0   0  1   0  1
+ON OFF ON OFF OFF ON OFF ON
+
+Now plug your prepared SD-card in slot J6. Connect a serial console (115200, 8,
+N, 1) to header J18. Connect a 5V/1A power supply to the board and enjoy.
board/embest/riotboard/rootfs_overlay/boot/extlinux/extlinux.conf new file +6 -0
new file mode 100644
index 0000000000..23e48a0da7
@@ -0,0 +1,6 @@
+default buildroot
+
+label buildroot
+kernel /boot/zImage
+devicetree /boot/imx6dl-riotboard.dtb
+append console=ttymxc1,115200 root=/dev/mmcblk1p1 rw
configs/riotboard_defconfig new file +41 -0

41 lines not on this page · raw message

Signature · 1 line
2.11.0
#1 lore raw

PATCH v2 1/1 board: resurrect support for RIoTboard

Hello,

Quoted 13 lines · Nikolay Dimitrov

Resurrect support for RIoTboard after 2018.02.x deprecation.

---
Changes v1 -> v2:
- Add board's manufacturer website for more info
- Switch to genimage sdcard image generation, update install steps in readme.txt
- Switch from uImage to zImage
- Switch rootfs to BR2_TARGET_ROOTFS_EXT2_4
- Update u-boot to v2018.07
- Update kernel to v4.18
- Add myself in DEVELOPERS for riotboard

Quoted 11 lines
---
 DEVELOPERS                                         |  4 +++
 board/embest/riotboard/genimage.cfg                | 17 +++++++++
 board/embest/riotboard/readme.txt                  | 34 ++++++++++++++++++
 .../rootfs_overlay/boot/extlinux/extlinux.conf     |  6 ++++
 configs/riotboard_defconfig                        | 41 ++++++++++++++++++++++
 5 files changed, 102 insertions(+)
 create mode 100644 board/embest/riotboard/genimage.cfg
 create mode 100644 board/embest/riotboard/readme.txt
 create mode 100644 board/embest/riotboard/rootfs_overlay/boot/extlinux/extlinux.conf
 create mode 100644 configs/riotboard_defconfig

Applied to master, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.com