Skip to contentSkip to conversation

configs/arcturus_ucls1012a: new defconfig

PATCH Superseded Oleksandr Zhadan 2 participants 5 messages Jun 8, 2017 – Jun 20, 2017

v3 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 configs/arcturus_ucls1012a: new defconfig

The uCLS1012A-SOM product family (ucls1012a) is an Arcturus Networks Inc. 64bit ARM Cortex-A53 class System on Module powered by a NXP QorIQ LS1012A Low Power Communication Processor. This 314 pin MXM3.0/SMARC module card contains DDR3, QSPI NOR Flash, eMMC NAND Flash, optional Audio CODEC and is available with 1 or 2 Gig-Ethernet PHYs.

---

Changes v2 -> v3:
- commit title is changed (from "Arcturus uCLS1012A-SOM support")
- new updates in readme.txt
- ls1012a network firmware moved into kernel
- do not remove any intermediate files
- fix relative patches inside ucls1012a.its

Changes v1 -> v2:
- updated readme.txt
- fixed post-image.sh (Do not have to remove Image and *.dtb files)
---

 board/arcturus/aarch64-ucls1012a/post-build.sh     |  5 ++
 board/arcturus/aarch64-ucls1012a/post-image.sh     |  9 +++
 board/arcturus/aarch64-ucls1012a/readme.txt        | 74 ++++++++++++++++++++++
 .../rootfs_overlay/etc/init.d/S09modload           | 14 ++++
 board/arcturus/aarch64-ucls1012a/ucls1012a.its     | 52 +++++++++++++++
 configs/arcturus_ucls1012a_defconfig               | 23 +++++++
 6 files changed, 177 insertions(+)
 create mode 100755 board/arcturus/aarch64-ucls1012a/post-build.sh
 create mode 100755 board/arcturus/aarch64-ucls1012a/post-image.sh
 create mode 100644 board/arcturus/aarch64-ucls1012a/readme.txt
 create mode 100755 board/arcturus/aarch64-ucls1012a/rootfs_overlay/etc/init.d/S09modload
 create mode 100644 board/arcturus/aarch64-ucls1012a/ucls1012a.its
 create mode 100644 configs/arcturus_ucls1012a_defconfig
board/arcturus/aarch64-ucls1012a/post-build.sh new file +5 -0
new file mode 100755
index 000000000..e1bfd046c
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+# Network Driver Firmware
+mkdir -p ${TARGET_DIR}/lib/firmware
+cp -f ${BUILD_DIR}/linux-custom/firmware/ppfe/* ${TARGET_DIR}/lib/firmware/
board/arcturus/aarch64-ucls1012a/post-image.sh new file +9 -0
new file mode 100755
index 000000000..d506724a3
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+echo ---------Making ITB partition image---------
+
+cp -f board/arcturus/aarch64-ucls1012a/ucls1012a.its ${BINARIES_DIR}/
+MKIMAGE=${HOST_DIR}/usr/bin/mkimage
+MKIMAGE_IN=${BINARIES_DIR}/ucls1012a.its
+MKIMAGE_OUT=${BINARIES_DIR}/part0-000000.itb
+${MKIMAGE} -f $MKIMAGE_IN $MKIMAGE_OUT
board/arcturus/aarch64-ucls1012a/readme.txt new file +74 -0

74 lines not on this page · raw message

board/arcturus/aarch64-ucls1012a/rootfs_overlay/etc/init.d/S09modload new file +14 -0
new file mode 100755
index 000000000..07d1d855a
@@ -0,0 +1,14 @@
+#!/bin/sh
+#
+case "$1" in
+	start)
+		modprobe pfe
+		;;
+	stop)
+		;;
+	restart|reload)
+		;;
+	*)
+		echo "Usage: $0 {start|stop|restart}"
+		exit 1
+esac
board/arcturus/aarch64-ucls1012a/ucls1012a.its new file +52 -0

52 lines not on this page · raw message

configs/arcturus_ucls1012a_defconfig new file +23 -0
new file mode 100644
index 000000000..64557fde7
@@ -0,0 +1,23 @@
+BR2_aarch64=y
+BR2_TOOLCHAIN_EXTERNAL=y
+BR2_TARGET_GENERIC_HOSTNAME="ucls1012a"
+BR2_TARGET_GENERIC_ISSUE="Welcome to uCLS1012A-SOM"
+BR2_SYSTEM_DHCP="eth0"
+BR2_ROOTFS_OVERLAY="board/arcturus/aarch64-ucls1012a/rootfs_overlay"
+BR2_ROOTFS_POST_BUILD_SCRIPT="board/arcturus/aarch64-ucls1012a/post-build.sh"
+BR2_ROOTFS_POST_IMAGE_SCRIPT="board/arcturus/aarch64-ucls1012a/post-image.sh"
+BR2_LINUX_KERNEL=y
+BR2_LINUX_KERNEL_CUSTOM_TARBALL=y
+BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="https://www.arcturusnetworks.com/OSS/kernel-ucls1012a.tar.gz"
+BR2_LINUX_KERNEL_DEFCONFIG="ucls1012a"
+BR2_LINUX_KERNEL_DTS_SUPPORT=y
+BR2_LINUX_KERNEL_INTREE_DTS_NAME="arcturus/arc-ucls1012a"
+BR2_TARGET_ROOTFS_CPIO=y
+BR2_TARGET_ROOTFS_CPIO_GZIP=y
+BR2_TARGET_UBOOT=y
+BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y
+BR2_TARGET_UBOOT_CUSTOM_TARBALL=y
+BR2_TARGET_UBOOT_CUSTOM_TARBALL_LOCATION="https://www.arcturusnetworks.com/OSS/u-boot-ucls1012a.tar.gz"
+BR2_TARGET_UBOOT_BOARD_DEFCONFIG="UCLS1012A_QSPI"
+BR2_PACKAGE_HOST_UBOOT_TOOLS=y
+BR2_PACKAGE_HOST_UBOOT_TOOLS_FIT_SUPPORT=y
Signature · 1 line
2.11.0
#1 lore raw

PATCH v3 1/1 configs/arcturus_ucls1012a: new defconfig

Hello,

Thanks for this new version!

Quoted 4 lines · Oleksandr Zhadan

Changes v2 -> v3:
- commit title is changed (from "Arcturus uCLS1012A-SOM support")
- new updates in readme.txt
- ls1012a network firmware moved into kernel

What does this means?

board/arcturus/aarch64-ucls1012a/post-build.sh line 5

Quoted 11 lines
board/arcturus/aarch64-ucls1012a/post-build.sh new file +5 -0
new file mode 100755
index 000000000..e1bfd046c
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+# Network Driver Firmware
+mkdir -p ${TARGET_DIR}/lib/firmware
+cp -f ${BUILD_DIR}/linux-custom/firmware/ppfe/* ${TARGET_DIR}/lib/firmware/

OK, you moved the firmware inside the kernel sources. Not really nice, because it means those files in the target filesystem are not associated with any license.

Why aren't those firmware files contributed to the linux-firmware project instead?

board/arcturus/aarch64-ucls1012a/post-image.sh line 3

Quoted 9 lines
board/arcturus/aarch64-ucls1012a/post-image.sh new file +3 -0
new file mode 100755
index 000000000..d506724a3
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+echo ---------Making ITB partition image---------

We normally don't have such debug messages in post-image scripts.

board/arcturus/aarch64-ucls1012a/post-image.sh line 9

Quoted 5 lines
board/arcturus/aarch64-ucls1012a/post-image.sh new file +5 -0
+cp -f board/arcturus/aarch64-ucls1012a/ucls1012a.its ${BINARIES_DIR}/
+MKIMAGE=${HOST_DIR}/usr/bin/mkimage
+MKIMAGE_IN=${BINARIES_DIR}/ucls1012a.its
+MKIMAGE_OUT=${BINARIES_DIR}/part0-000000.itb
+${MKIMAGE} -f $MKIMAGE_IN $MKIMAGE_OUT

Why not use ${...} everywhere ?

configs/arcturus_ucls1012a_defconfig line 2

Quoted 8 lines
configs/arcturus_ucls1012a_defconfig new file +2 -0
new file mode 100644
index 000000000..64557fde7
@@ -0,0 +1,23 @@
+BR2_aarch64=y
+BR2_TOOLCHAIN_EXTERNAL=y

Still need to change this to the internal toolchain, as per our previous discussion.

configs/arcturus_ucls1012a_defconfig line 11

Quoted 9 lines
configs/arcturus_ucls1012a_defconfig new file +9 -0
+BR2_TARGET_GENERIC_HOSTNAME="ucls1012a"
+BR2_TARGET_GENERIC_ISSUE="Welcome to uCLS1012A-SOM"
+BR2_SYSTEM_DHCP="eth0"
+BR2_ROOTFS_OVERLAY="board/arcturus/aarch64-ucls1012a/rootfs_overlay"
+BR2_ROOTFS_POST_BUILD_SCRIPT="board/arcturus/aarch64-ucls1012a/post-build.sh"
+BR2_ROOTFS_POST_IMAGE_SCRIPT="board/arcturus/aarch64-ucls1012a/post-image.sh"
+BR2_LINUX_KERNEL=y
+BR2_LINUX_KERNEL_CUSTOM_TARBALL=y
+BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="https://www.arcturusnetworks.com/OSS/kernel-ucls1012a.tar.gz"

I didn't see this before: there is no version in the name of this tarball, and its name hasn't changed since you added the firmware files. Which means that you apparently intend to change this tarball later on. This is *really* bad, as it means the build is not reproducible: what people will build one day may be different the next day or week, because you changed this tarball.

Could you add tarballs with a version in their name, and not change existing tarballs, but instead upload new ones with a different version?

Or better, use a Git repository, like everyone else :)

configs/arcturus_ucls1012a_defconfig line 20

Quoted 9 lines
configs/arcturus_ucls1012a_defconfig new file +9 -0
+BR2_LINUX_KERNEL_DEFCONFIG="ucls1012a"
+BR2_LINUX_KERNEL_DTS_SUPPORT=y
+BR2_LINUX_KERNEL_INTREE_DTS_NAME="arcturus/arc-ucls1012a"
+BR2_TARGET_ROOTFS_CPIO=y
+BR2_TARGET_ROOTFS_CPIO_GZIP=y
+BR2_TARGET_UBOOT=y
+BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y
+BR2_TARGET_UBOOT_CUSTOM_TARBALL=y
+BR2_TARGET_UBOOT_CUSTOM_TARBALL_LOCATION="https://www.arcturusnetworks.com/OSS/u-boot-ucls1012a.tar.gz"

Same comment here.

Thanks,

Thomas

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

PATCH v3 1/1 configs/arcturus_ucls1012a: new defconfig

Quoted 12 lines · Thomas Petazzoni

Hello,

Thanks for this new version!

Quoted 4 lines · Oleksandr Zhadan

Changes v2 -> v3:
- commit title is changed (from "Arcturus uCLS1012A-SOM support")
- new updates in readme.txt
- ls1012a network firmware moved into kernel

What does this means?

Quoted 14 lines

board/arcturus/aarch64-ucls1012a/post-build.sh line 5

Quoted 11 lines
board/arcturus/aarch64-ucls1012a/post-build.sh new file +5 -0
new file mode 100755
index 000000000..e1bfd046c
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+# Network Driver Firmware
+mkdir -p ${TARGET_DIR}/lib/firmware
+cp -f ${BUILD_DIR}/linux-custom/firmware/ppfe/* ${TARGET_DIR}/lib/firmware/

OK, you moved the firmware inside the kernel sources. Not really nice, because it means those files in the target filesystem are not associated with any license.

The firmware is associated with Freescale-Binary-EULA licence and that license is included.
I agree it's not really nice to move it inside kernel, but you asked to remove it from rootfs-overlay and I could not found any better place for now. Any suggestions welcome.

Quoted 2 lines

Why aren't those firmware files contributed to the linux-firmware project instead?

This firmware is came from Linux? SDK for QorIQ? Processors. SDKLINUX publicly available on NXP website.
I really don't know when they going to publish it to any other places, but my personal preferences to use buildroot instead Yocto as build system on all our modules.
BTW the NXP's SDK is using Linaro toolchain, even older version.

Quoted 11 lines

board/arcturus/aarch64-ucls1012a/post-image.sh line 3

Quoted 10 lines
board/arcturus/aarch64-ucls1012a/post-image.sh new file +3 -0
new file mode 100755
index 000000000..d506724a3
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+echo ---------Making ITB partition image---------

We normally don't have such debug messages in post-image scripts.

OK - removed.

Quoted 7 lines

board/arcturus/aarch64-ucls1012a/post-image.sh line 9

Quoted 6 lines
board/arcturus/aarch64-ucls1012a/post-image.sh new file +5 -0
+cp -f board/arcturus/aarch64-ucls1012a/ucls1012a.its ${BINARIES_DIR}/
+MKIMAGE=${HOST_DIR}/usr/bin/mkimage
+MKIMAGE_IN=${BINARIES_DIR}/ucls1012a.its
+MKIMAGE_OUT=${BINARIES_DIR}/part0-000000.itb
+${MKIMAGE} -f $MKIMAGE_IN $MKIMAGE_OUT

Why not use ${...} everywhere ?

OK - Changed.

Quoted 11 lines

configs/arcturus_ucls1012a_defconfig line 2

Quoted 9 lines
configs/arcturus_ucls1012a_defconfig new file +2 -0
new file mode 100644
index 000000000..64557fde7
@@ -0,0 +1,23 @@
+BR2_aarch64=y
+BR2_TOOLCHAIN_EXTERNAL=y

Still need to change this to the internal toolchain, as per our previous discussion.

Still requesting to keep external toolchain in this patch as "tested"&"trusted" on our module, plus suggested by NXP.
Or please explain the reason why you try to avoid some options, like BR2_TOOLCHAIN_EXTERNAL, if it allowed choice, and even after my explanations that we did have an issue with internal one. I believe you should know the difference between QEMU and real CPU.

Quoted 17 lines

configs/arcturus_ucls1012a_defconfig line 11

Quoted 10 lines
configs/arcturus_ucls1012a_defconfig new file +9 -0
+BR2_TARGET_GENERIC_HOSTNAME="ucls1012a"
+BR2_TARGET_GENERIC_ISSUE="Welcome to uCLS1012A-SOM"
+BR2_SYSTEM_DHCP="eth0"
+BR2_ROOTFS_OVERLAY="board/arcturus/aarch64-ucls1012a/rootfs_overlay"
+BR2_ROOTFS_POST_BUILD_SCRIPT="board/arcturus/aarch64-ucls1012a/post-build.sh"
+BR2_ROOTFS_POST_IMAGE_SCRIPT="board/arcturus/aarch64-ucls1012a/post-image.sh"
+BR2_LINUX_KERNEL=y
+BR2_LINUX_KERNEL_CUSTOM_TARBALL=y
+BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="https://www.arcturusnetworks.com/OSS/kernel-ucls1012a.tar.gz"

I didn't see this before: there is no version in the name of this tarball, and its name hasn't changed since you added the firmware files. Which means that you apparently intend to change this tarball later on. This is *really* bad, as it means the build is not reproducible: what people will build one day may be different the next day or week, because you changed this tarball.

Quoted 4 lines

Could you add tarballs with a version in their name, and not change existing tarballs, but instead upload new ones with a different version?

Or better, use a Git repository, like everyone else :)

Thanks, good point - will add version in the name.

Quoted 11 lines

configs/arcturus_ucls1012a_defconfig line 20

Quoted 10 lines
configs/arcturus_ucls1012a_defconfig new file +9 -0
+BR2_LINUX_KERNEL_DEFCONFIG="ucls1012a"
+BR2_LINUX_KERNEL_DTS_SUPPORT=y
+BR2_LINUX_KERNEL_INTREE_DTS_NAME="arcturus/arc-ucls1012a"
+BR2_TARGET_ROOTFS_CPIO=y
+BR2_TARGET_ROOTFS_CPIO_GZIP=y
+BR2_TARGET_UBOOT=y
+BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y
+BR2_TARGET_UBOOT_CUSTOM_TARBALL=y
+BR2_TARGET_UBOOT_CUSTOM_TARBALL_LOCATION="https://www.arcturusnetworks.com/OSS/u-boot-ucls1012a.tar.gz"

Same comment here.

Got it.

Quoted 4 lines

Thanks,

Thomas

Signature · 5 lines
Oleksandr Zhadan
Sr. Software Engineer
Arcturus Networks
T 416 621-0125 x235
F 416 621-0190
#3 lore raw

PATCH v3 1/1 configs/arcturus_ucls1012a: new defconfig

Hello,

Quoted 8 lines · Oleksandr G Zhadan
Quoted 3 lines

OK, you moved the firmware inside the kernel sources. Not really nice, because it means those files in the target filesystem are not associated with any license.

The firmware is associated with Freescale-Binary-EULA licence and that license is included.
I agree it's not really nice to move it inside kernel, but you asked to remove it from rootfs-overlay and I could not found any better place for now. Any suggestions welcome.

Best option:

Contribute the firmware to the linux-firmware project.

Not as good, but still acceptable option:

Separate Git repository with this firmware and its license file + a Buildroot package that downloads and installs this firmware.

Quoted 8 lines
Quoted 2 lines

Why aren't those firmware files contributed to the linux-firmware project instead?

This firmware is came from Linux? SDK for QorIQ? Processors. SDKLINUX publicly available on NXP website.
I really don't know when they going to publish it to any other places, but my personal preferences to use buildroot instead Yocto as build system on all our modules.
BTW the NXP's SDK is using Linaro toolchain, even older version.

Can you point me to the Yocto recipe that installs this firmware ? Is their firmware bundled in their Yocto layer, or are they downloading it from some location ?

Quoted 10 lines
Quoted 10 lines

configs/arcturus_ucls1012a_defconfig line 2

Quoted 8 lines
configs/arcturus_ucls1012a_defconfig new file +2 -0
new file mode 100644
index 000000000..64557fde7
@@ -0,0 +1,23 @@
+BR2_aarch64=y
+BR2_TOOLCHAIN_EXTERNAL=y  

Still need to change this to the internal toolchain, as per our previous discussion.

Quoted 6 lines

Still requesting to keep external toolchain in this patch as "tested"&"trusted" on our module, plus suggested by NXP.
Or please explain the reason why you try to avoid some options, like BR2_TOOLCHAIN_EXTERNAL, if it allowed choice, and even after my explanations that we did have an issue with internal one. I believe you should know the difference between QEMU and real CPU.

The reasons are pretty simple:

- Consistency between all defconfigs. None of them are using external toolchains, except csky_gx6605s_defconfig, because there is no support for building a CSKY toolchain in Buildroot yet.

- The Buildroot toolchain should work. If it doesn't, we want to know and fix the problem.

And yes, I know the difference between a real CPU and QEMU, but Buildroot toolchains should also work on real CPUs, not only in Qemu :-)

Thanks,

Thomas

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

PATCH v3 1/1 configs/arcturus_ucls1012a: new defconfig

Quoted 26 lines · Thomas Petazzoni
Quoted 9 lines
Quoted 4 lines

OK, you moved the firmware inside the kernel sources. Not really nice, because it means those files in the target filesystem are not associated with any license.

The firmware is associated with Freescale-Binary-EULA licence and that license is included.
I agree it's not really nice to move it inside kernel, but you asked to remove it from rootfs-overlay and I could not found any better place for now. Any suggestions welcome.

Best option:

Contribute the firmware to the linux-firmware project.

Not as good, but still acceptable option:

Separate Git repository with this firmware and its license file + a Buildroot package that downloads and installs this firmware.

Quoted 8 lines
Quoted 2 lines

Why aren't those firmware files contributed to the linux-firmware project instead?

This firmware is came from Linux? SDK for QorIQ? Processors. SDKLINUX publicly available on NXP website.
I really don't know when they going to publish it to any other places, but my personal preferences to use buildroot instead Yocto as build system on all our modules.
BTW the NXP's SDK is using Linaro toolchain, even older version.

Quoted 3 lines

Can you point me to the Yocto recipe that installs this firmware ? Is their firmware bundled in their Yocto layer, or are they downloading it from some location ?

https://github.com/Freescale/meta-freescale/blob/master/recipes-bsp/ppfe-firmware/ppfe-firmware_git.bb

Git repository of the package:
git://git.freescale.com/ppc/sdk/engine-pfe-bin.git

If you think that it is OK, I can add this (ls1012a only related) firmware as a Buildroot package. Please confirm.

Quoted 11 lines
Quoted 3 lines

Or please explain the reason why you try to avoid some options, like BR2_TOOLCHAIN_EXTERNA

The reasons are pretty simple:

- Consistency between all defconfigs. None of them are using external toolchains, except csky_gx6605s_defconfig, because there is no support for building a CSKY toolchain in Buildroot yet.

- The Buildroot toolchain should work. If it doesn't, we want to know and fix the problem.

OK, as we are not building any special projects, only BusyBox and I tested that it runs, I will change toolchain option to internal.

Will prepare new revision of patches after your confirmation/suggestion where to put ls1012a ppfe-firmware.

Signature · 5 lines
Oleksandr Zhadan
Sr. Software Engineer
Arcturus Networks
T 416 621-0125 x235
F 416 621-0190