package/amlogic-boot-fip: new package
PATCH 1/1 package/amlogic-boot-fip: new package
Firmware Image Package (FIP) sources to sign Amlogic SoC u-boot binaries in LibreELEC, Armbian and meta-meson, buildroot.
https://github.com/LibreELEC/amlogic-boot-fip
--- DEVELOPERS | 3 ++ package/Config.in | 1 + package/amlogic-boot-fip/Config.in | 17 +++++++++ .../amlogic-boot-fip/amlogic-boot-fip.hash | 2 + package/amlogic-boot-fip/amlogic-boot-fip.mk | 37 +++++++++++++++++++ 5 files changed, 60 insertions(+) create mode 100644 package/amlogic-boot-fip/Config.in create mode 100644 package/amlogic-boot-fip/amlogic-boot-fip.hash create mode 100644 package/amlogic-boot-fip/amlogic-boot-fip.mk
DEVELOPERS +3 -0
@@ -2894,6 +2894,9 @@ N: Volkov Viacheslav <[email protected]> F: package/v4l2grab/ F: package/zbar/ +N: Vyacheslav Bocharov <[email protected]> +F: package/amlogic-boot-fip/ + N: Wade Berrier <[email protected]> F: package/ngrep/
package/Config.in +1 -0
@@ -418,6 +418,7 @@ endmenu menu "Hardware handling" menu "Firmware" source "package/am33x-cm3/Config.in" + source "package/amlogic-boot-fip/Config.in" source "package/armbian-firmware/Config.in" source "package/b43-firmware/Config.in" source "package/linux-firmware/Config.in"
package/amlogic-boot-fip/Config.in new file +17 -0
@@ -0,0 +1,17 @@ +config BR2_PACKAGE_AMLOGIC_BOOT_FIP + bool "amlogic-boot-fip" + help + This package enables access to various u-boot + blobs from the LibreELEC amlogic-boot-fip repository. + + https://github.com/LibreELEC/amlogic-boot-fip + +if BR2_PACKAGE_AMLOGIC_BOOT_FIP + +config BR2_PACKAGE_AMLOGIC_BOOT_FIP_BOARD + string "Board uboot firmware config" + depends on BR2_PACKAGE_AMLOGIC_BOOT_FIP + help + Name of the board for which U-Boot firmware should be built + from amlogic-boot-fip +endif
package/amlogic-boot-fip/amlogic-boot-fip.hash new file +2 -0
@@ -0,0 +1,2 @@ +# Locally calculated +sha256 cdf9d3872457c33a2755cc504f6b0560a62a6ee04437ac28e66623a345ed4936 amlogic-boot-fip-7ff0004e0e4d261ba81334a2f46302bd06704aca-br1.tar.gz
package/amlogic-boot-fip/amlogic-boot-fip.mk new file +37 -0
@@ -0,0 +1,37 @@ + +################################################################################ +# +# amlogic-boot-fip +# +################################################################################ + +AMLOGIC_BOOT_FIP_VERSION = 7ff0004e0e4d261ba81334a2f46302bd06704aca +AMLOGIC_BOOT_FIP_SITE = https://github.com/LibreELEC/amlogic-boot-fip +AMLOGIC_BOOT_FIP_SITE_METHOD = git +AMLOGIC_BOOT_FIP_INSTALL_IMAGES = YES +AMLOGIC_BOOT_FIP_DEPENDENCIES = uboot + +AMLOGIC_BOOT_FIP_LICENSE = PROPRIETARY +AMLOGIC_BOOT_FIP_REDISTRIBUTE = NO + +AMLOGIC_BOOT_BINS += u-boot.bin.sd.bin + +define AMLOGIC_BOOT_FIP_BUILD_CMDS + mkdir -p $(@D)/fip + cp $(BINARIES_DIR)/u-boot.bin $(@D)/fip/bl33.bin + cd "$(@D)"; ./build-fip.sh $(call qstrip,$(BR2_PACKAGE_AMLOGIC_BOOT_FIP_BOARD)) $(@D)/fip/bl33.bin $(@D)/fip +endef + +ifeq ($(BR2_PACKAGE_AMLOGIC_BOOT_FIP),y) +ifeq ($(call qstrip,$(BR2_PACKAGE_AMLOGIC_BOOT_FIP_BOARD)),) +$(error No board u-boot firmware config name specified, check your BR2_PACKAGE_AMLOGIC_BOOT_FIP_BOARD setting) +endif # qstrip BR2_PACKAGE_AMLOGIC_BOOT_FIP_BOARD +endif + +define AMLOGIC_BOOT_FIP_INSTALL_IMAGES_CMDS + $(foreach f,$(AMLOGIC_BOOT_BINS), \ + cp -dpf "$(@D)/fip/$(f)" "$(BINARIES_DIR)/" + ) +endef + +$(eval $(generic-package))
Signature · 6 lines
2.30.2 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Hello Vyacheslav,
[Arnout, Yann, Peter: question for you below.]
Quoted 6 lines · On Tue, 18 Jan 2022 14:14:58 +0300 Vyacheslav Bocharov via buildroot…
Firmware Image Package (FIP) sources to sign Amlogic SoC u-boot binaries in LibreELEC, Armbian and meta-meson, buildroot.
https://github.com/LibreELEC/amlogic-boot-fip
Signed-off-by Vyacheslav Bocharov <[email protected]>
Thanks for this contribution. I have a few small details below. But apart from the small details: there is one very significant issue. The LICENSE file says:
// Redistribution and use in source and binary forms, with or without // modification is strictly prohibited without prior written permission // from Amlogic.
So how can the contents of this repository be useful? OK, then can be used locally for your own experiments. But for building an actual device that you can ship/provide to others, using the contents of that repository, because Amlogic does not even allow you to distribute the contents of this repository.
So I am wondering if it's really reasonable to package this in Buildroot.
Arnout, Yann, Peter: what do you think about this? See the license file at https://github.com/LibreELEC/amlogic-boot-fip/blob/master/LICENSE
for the full text.
package/amlogic-boot-fip/Config.in line 2
Quoted 8 lines
package/amlogic-boot-fip/Config.in new file +2
-0@@ -0,0 +1,17 @@ +config BR2_PACKAGE_AMLOGIC_BOOT_FIP + bool "amlogic-boot-fip"
Indentation is wrong here: it should be just one tab, but you have one tab + one space. Make sure to run "make check-package" and fix the coding style issues.
Also, you need:
depends on BR2_TARGET_UBOOT
because this package depends on U-Boot being enabled.
package/amlogic-boot-fip/amlogic-boot-fip.hash line 2
Quoted 8 lines
package/amlogic-boot-fip/amlogic-boot-fip.hash new file +2
-0@@ -0,0 +1,2 @@ +# Locally calculated +sha256 cdf9d3872457c33a2755cc504f6b0560a62a6ee04437ac28e66623a345ed4936 amlogic-boot-fip-7ff0004e0e4d261ba81334a2f46302bd06704aca-br1.tar.gz
Please add the hash of the license file.
Quoted 6 lines
package/amlogic-boot-fip/amlogic-boot-fip.mk new file +0
-0
package/amlogic-boot-fip/amlogic-boot-fip.mk line 10
Quoted 10 lines
package/amlogic-boot-fip/amlogic-boot-fip.mk new file +10
-0@@ -0,0 +1,37 @@ + +################################################################################ +# +# amlogic-boot-fip +# +################################################################################ + +AMLOGIC_BOOT_FIP_VERSION = 7ff0004e0e4d261ba81334a2f46302bd06704aca +AMLOGIC_BOOT_FIP_SITE = https://github.com/LibreELEC/amlogic-boot-fip +AMLOGIC_BOOT_FIP_SITE_METHOD = git
Please use the Github macro. Replace the _SITE variable by:
AMLOGIC_BOOT_FIP_SITE = $(call github,LibreELEC,amlogic-boot-fip,$(AMLOGIC_BOOT_FIP_VERSION))
and drop the AMLOGIC_BOOT_FIP_SITE_METHOD variable.
package/amlogic-boot-fip/amlogic-boot-fip.mk line 14
Quoted 4 lines
package/amlogic-boot-fip/amlogic-boot-fip.mk new file +4
-0+AMLOGIC_BOOT_FIP_INSTALL_IMAGES = YES +AMLOGIC_BOOT_FIP_DEPENDENCIES = uboot + +AMLOGIC_BOOT_FIP_LICENSE = PROPRIETARY
Please add AMLOGIC_BOOT_FIP_LICENSE_FILES as there is a license file in the repository (which contains the problematic clause)
package/amlogic-boot-fip/amlogic-boot-fip.mk line 17
Quoted 3 lines
package/amlogic-boot-fip/amlogic-boot-fip.mk new file +3
-0+AMLOGIC_BOOT_FIP_REDISTRIBUTE = NO + +AMLOGIC_BOOT_BINS += u-boot.bin.sd.bin
Just = instead of +=. But is this variable really needed? See below.
package/amlogic-boot-fip/amlogic-boot-fip.mk line 22
Quoted 5 lines
package/amlogic-boot-fip/amlogic-boot-fip.mk new file +5
-0+ +define AMLOGIC_BOOT_FIP_BUILD_CMDS + mkdir -p $(@D)/fip + cp $(BINARIES_DIR)/u-boot.bin $(@D)/fip/bl33.bin + cd "$(@D)"; ./build-fip.sh $(call qstrip,$(BR2_PACKAGE_AMLOGIC_BOOT_FIP_BOARD)) $(@D)/fip/bl33.bin $(@D)/fip
Please use tabs for indentation. Is copying $(BINARIES_DIR)/u-boot.bin to $(@D)/fip/bl33.bin if it gets passed as argument to build-fip.sh ?
Would something like:
cd $(@D) && \ ./build-fip.sh \ $(call qstrip,$(BR2_PACKAGE_AMLOGIC_BOOT_FIP_BOARD)) \ $(BINARIES_DIR)/u-boot.bin \ $(@D)/fip
work ?
package/amlogic-boot-fip/amlogic-boot-fip.mk line 25
Quoted 3 lines
package/amlogic-boot-fip/amlogic-boot-fip.mk new file +3
-0+endef + +ifeq ($(BR2_PACKAGE_AMLOGIC_BOOT_FIP),y)
Use:
ifeq ($(BR2_PACKAGE_AMLOGIC_BOOT_FIP)$(BR_BUILDING),yy)
so that this check is only done when building.
package/amlogic-boot-fip/amlogic-boot-fip.mk line 34
Quoted 9 lines
package/amlogic-boot-fip/amlogic-boot-fip.mk new file +9
-0+ifeq ($(call qstrip,$(BR2_PACKAGE_AMLOGIC_BOOT_FIP_BOARD)),) +$(error No board u-boot firmware config name specified, check your BR2_PACKAGE_AMLOGIC_BOOT_FIP_BOARD setting) +endif # qstrip BR2_PACKAGE_AMLOGIC_BOOT_FIP_BOARD +endif + +define AMLOGIC_BOOT_FIP_INSTALL_IMAGES_CMDS + $(foreach f,$(AMLOGIC_BOOT_BINS), \ + cp -dpf "$(@D)/fip/$(f)" "$(BINARIES_DIR)/" + )
Why have a loop with a $(AMLOGIC_BOOT_BINS) if there's only one file to copy?
Just:
$(INSTALL) -D -m 0644 $(@D)/fip/u-boot.bin.sd.bin $(BINARIES_DIR)/u-boot.bin.sd.bin
I would have fixed myself all those small details, but the licensing/redistribution restriction seems to be a major issue to me.
Best regards,
Thomas
Signature · 7 lines
Thomas Petazzoni, co-owner and CEO, Bootlin Embedded Linux and Kernel engineering and training https://bootlin.com _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Hi.
Quoted 22 lines · Thomas Petazzoni
Hello Vyacheslav,
[Arnout, Yann, Peter: question for you below.]
Quoted 6 lines · On Tue, 18 Jan 2022 14:14:58 +0300 Vyacheslav Bocharov via buildroot…
Firmware Image Package (FIP) sources to sign Amlogic SoC u-boot binaries in LibreELEC, Armbian and meta-meson, buildroot.
https://github.com/LibreELEC/amlogic-boot-fip
Signed-off-by Vyacheslav Bocharov <[email protected]>Thanks for this contribution. I have a few small details below. But apart from the small details: there is one very significant issue. The LICENSE file says:
// Redistribution and use in source and binary forms, with or without // modification is strictly prohibited without prior written permission // from Amlogic.
Quoted 9 lines
So how can the contents of this repository be useful? OK, then can be used locally for your own experiments. But for building an actual device that you can ship/provide to others, using the contents of that repository, because Amlogic does not even allow you to distribute the contents of this repository.
So I am wondering if it's really reasonable to package this in Buildroot.
You already have package/odroidc2-firmware with same license.
amlogic-boot-fip just put all similar binaries together and Neil Armstrong made a build system for aml uboot binaries.
Quoted 5 lines
Arnout, Yann, Peter: what do you think about this? See the license file at https://github.com/LibreELEC/amlogic-boot-fip/blob/master/LICENSE
for the full text.
Quoted 12 lines
package/amlogic-boot-fip/Config.in line 2
Quoted 8 lines
package/amlogic-boot-fip/Config.in new file +2
-0@@ -0,0 +1,17 @@ +config BR2_PACKAGE_AMLOGIC_BOOT_FIP + bool "amlogic-boot-fip"Indentation is wrong here: it should be just one tab, but you have one tab + one space. Make sure to run "make check-package" and fix the coding style issues.
Thanks, i missed this.
Quoted 66 lines
Also, you need:
depends on
BR2_TARGET_UBOOTbecause this package depends on U-Boot being enabled.
package/amlogic-boot-fip/amlogic-boot-fip.hash line 2
Quoted 8 lines
package/amlogic-boot-fip/amlogic-boot-fip.hash new file +2
-0@@ -0,0 +1,2 @@ +# Locally calculated +sha256 cdf9d3872457c33a2755cc504f6b0560a62a6ee04437ac28e66623a345ed4936 amlogic-boot-fip-7ff0004e0e4d261ba81334a2f46302bd06704aca-br1.tar.gzPlease add the hash of the license file.
Quoted 6 lines
package/amlogic-boot-fip/amlogic-boot-fip.mk new file +0
-0package/amlogic-boot-fip/amlogic-boot-fip.mk line 10
Quoted 10 lines
package/amlogic-boot-fip/amlogic-boot-fip.mk new file +10
-0@@ -0,0 +1,37 @@ + +################################################################################ +# +# amlogic-boot-fip +# +################################################################################ + +AMLOGIC_BOOT_FIP_VERSION = 7ff0004e0e4d261ba81334a2f46302bd06704aca +AMLOGIC_BOOT_FIP_SITE = https://github.com/LibreELEC/amlogic-boot-fip +AMLOGIC_BOOT_FIP_SITE_METHOD = gitPlease use the Github macro. Replace the
_SITEvariable by:
AMLOGIC_BOOT_FIP_SITE= $(call github,LibreELEC,amlogic-boot-fip,$(AMLOGIC_BOOT_FIP_VERSION))and drop the
AMLOGIC_BOOT_FIP_SITE_METHODvariable.package/amlogic-boot-fip/amlogic-boot-fip.mk line 14
Quoted 4 lines
package/amlogic-boot-fip/amlogic-boot-fip.mk new file +4
-0+AMLOGIC_BOOT_FIP_INSTALL_IMAGES = YES +AMLOGIC_BOOT_FIP_DEPENDENCIES = uboot + +AMLOGIC_BOOT_FIP_LICENSE = PROPRIETARYPlease add
AMLOGIC_BOOT_FIP_LICENSE_FILESas there is a license file in the repository (which contains the problematic clause)package/amlogic-boot-fip/amlogic-boot-fip.mk line 17
Quoted 3 lines
package/amlogic-boot-fip/amlogic-boot-fip.mk new file +3
-0+AMLOGIC_BOOT_FIP_REDISTRIBUTE = NO + +AMLOGIC_BOOT_BINS += u-boot.bin.sd.binJust = instead of +=. But is this variable really needed? See below.
package/amlogic-boot-fip/amlogic-boot-fip.mk line 22
Quoted 5 lines
package/amlogic-boot-fip/amlogic-boot-fip.mk new file +5
-0+ +define AMLOGIC_BOOT_FIP_BUILD_CMDS + mkdir -p $(@D)/fip + cp $(BINARIES_DIR)/u-boot.bin $(@D)/fip/bl33.bin + cd "$(@D)"; ./build-fip.sh $(call qstrip,$(BR2_PACKAGE_AMLOGIC_BOOT_FIP_BOARD)) $(@D)/fip/bl33.bin $(@D)/fipPlease use tabs for indentation. Is copying $(BINARIES_DIR)/u-boot.bin to $(@D)/fip/bl33.bin if it gets passed as argument to
build-fip.sh?Would something like:
Quoted 7 lines
cd $(@D) && \ ./build-fip.sh \ $(call qstrip,$(BR2_PACKAGE_AMLOGIC_BOOT_FIP_BOARD)) \ $(BINARIES_DIR)/u-boot.bin \ $(@D)/fipwork ?
Seems to yes. It really can be improved. Thanks.
Quoted 11 lines
package/amlogic-boot-fip/amlogic-boot-fip.mk line 25
Quoted 4 lines
package/amlogic-boot-fip/amlogic-boot-fip.mk new file +3
-0+endef + +ifeq ($(BR2_PACKAGE_AMLOGIC_BOOT_FIP),y)Use:
ifeq ($(BR2_PACKAGE_AMLOGIC_BOOT_FIP)$(BR_BUILDING),yy)
so that this check is only done when building.
Quoted 12 lines
package/amlogic-boot-fip/amlogic-boot-fip.mk line 34
Quoted 9 lines
package/amlogic-boot-fip/amlogic-boot-fip.mk new file +9
-0+ifeq ($(call qstrip,$(BR2_PACKAGE_AMLOGIC_BOOT_FIP_BOARD)),) +$(error No board u-boot firmware config name specified, check your BR2_PACKAGE_AMLOGIC_BOOT_FIP_BOARD setting) +endif # qstrip BR2_PACKAGE_AMLOGIC_BOOT_FIP_BOARD +endif + +define AMLOGIC_BOOT_FIP_INSTALL_IMAGES_CMDS + $(foreach f,$(AMLOGIC_BOOT_BINS), \ + cp -dpf "$(@D)/fip/$(f)" "$(BINARIES_DIR)/" + )Why have a loop with a $(AMLOGIC_BOOT_BINS) if there's only one file to copy?
In some cases you may need more than one file. But you're right it's better this way.
Quoted 7 lines
Just:
$(INSTALL) -D -m 0644 $(@D)/fip/u-boot.bin.sd.bin $(BINARIES_DIR)/u-boot.bin.sd.binI would have fixed myself all those small details, but the licensing/redistribution restriction seems to be a major issue to me.
Thank you for sorting out the bugs. I'll fix them in the next version of the patch, if we come to a consensus on the possibility of using the license.
Quoted 4 lines
Best regards,
Thomas
Signature · 5 lines
Vyacheslav Bocharov _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Hello,
Quoted 6 lines · On Sat, 22 Jan 2022 18:05:06 +0300 Vyacheslav <[email protected]> wrote:
Quoted 6 lines
So how can the contents of this repository be useful? OK, then can be used locally for your own experiments. But for building an actual device that you can ship/provide to others, using the contents of that repository, because Amlogic does not even allow you to distribute the contents of this repository.
Quoted 6 lines
Quoted 3 lines
So I am wondering if it's really reasonable to package this in Buildroot.
You already have package/odroidc2-firmware with same license. amlogic-boot-fip just put all similar binaries together and Neil Armstrong made a build system for aml uboot binaries.
Well, I wasn't aware package/odroidc2-firmware was under the same restrictive license. Are the license terms for package/odroidc2-firmware available somewhere? This package is downloaded from https://github.com/hardkernel/u-boot, but I don't see the license terms from Amlogic preventing redistribution. Of course, I understand that they simply may be missing (which would be really bad!).
But how can anyone use those blobs? You can't redistribute them. According to their license, just putting them on Github is not even allowed.
Thomas
Signature · 7 lines
Thomas Petazzoni, co-owner and CEO, Bootlin Embedded Linux and Kernel engineering and training https://bootlin.com _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Hi, Neil!
Can you help us with understanding license for Amlogic binaries in
https://github.com/LibreELEC/amlogic-boot-fip?
Quoted 25 lines · Thomas Petazzoni
Hello,
Quoted 6 lines · On Sat, 22 Jan 2022 18:05:06 +0300 Vyacheslav <[email protected]> wrote:
Quoted 6 lines
So how can the contents of this repository be useful? OK, then can be used locally for your own experiments. But for building an actual device that you can ship/provide to others, using the contents of that repository, because Amlogic does not even allow you to distribute the contents of this repository.
Quoted 6 lines
Quoted 3 lines
So I am wondering if it's really reasonable to package this in Buildroot.
You already have package/odroidc2-firmware with same license. amlogic-boot-fip just put all similar binaries together and Neil Armstrong made a build system for aml uboot binaries.
Well, I wasn't aware package/odroidc2-firmware was under the same restrictive license. Are the license terms for package/odroidc2-firmware available somewhere? This package is downloaded from https://github.com/hardkernel/u-boot, but I don't see the license terms from Amlogic preventing redistribution. Of course, I understand that they simply may be missing (which would be really bad!).
Quoted 5 lines
But how can anyone use those blobs? You can't redistribute them. According to their license, just putting them on Github is not even allowed.
Thomas
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Hi Thomas,
Quoted 5 lines · Vyacheslav
Hi, Neil!
Can you help us with understanding license for Amlogic binaries in
https://github.com/LibreELEC/amlogic-boot-fip?
Quoted 25 lines
Quoted 24 lines · Thomas Petazzoni
Hello,
Quoted 6 lines · On Sat, 22 Jan 2022 18:05:06 +0300 Vyacheslav <[email protected]> wrote:
Quoted 6 lines
So how can the contents of this repository be useful? OK, then can be used locally for your own experiments. But for building an actual device that you can ship/provide to others, using the contents of that repository, because Amlogic does not even allow you to distribute the contents of this repository.
Quoted 6 lines
Quoted 3 lines
So I am wondering if it's really reasonable to package this in Buildroot.
You already have package/odroidc2-firmware with same license. amlogic-boot-fip just put all similar binaries together and Neil Armstrong made a build system for aml uboot binaries.
Well, I wasn't aware package/odroidc2-firmware was under the same restrictive license. Are the license terms for package/odroidc2-firmware available somewhere? This package is downloaded from https://github.com/hardkernel/u-boot, but I don't see the license terms from Amlogic preventing redistribution. Of course, I understand that they simply may be missing (which would be really bad!).
The binaries must be split into 2 categories:
- Pre-built: bl2, bl31, bl21, bl32, fip_create, aml_encrypt_*, ddr*.fw, acs_tool.py
- Built in the Vendor U-Boot source: acs.bin bl301.bin
In 2019, Amlogic finally added a LICENSE for the pre-built binaries, before nobody knew what was the term of the distribution.
commit 6abaf9a869a6584b3cfca8b96d0946ed49bc9b64
Author: Lawrence Mok <[email protected]> Date: Mon May 6 12:34:56 2019 -0700
add LICENSE file and text referring to it [1/1]
Change-Id: Id291f42bec3ddb0c2162e6540ce1f35d1cb1d079
The LICENSE can be found at [1] in Khadas github.
Concerning the acs.bin & bl301.bin, they use the U-Boot build system and config header files and all these were also updated with the following SPDX:
/* SPDX-License-Identifier: (GPL-2.0+ OR MIT) */
commit 94de43d3d940cf75b4a9e4fd2a2715be8eff6138
Author: Jiucheng Xu <[email protected]> Date: Wed Dec 16 10:11:00 2020 +0800
license: Fix the license of amlogic related codes [1/1]
PD#SWPL-39001
Problem:
A customer want to add amlogic driver in uboot to their private bootloader. Since the driver codes are licensed under GPL-2.0, and customer have to open their code, so we need fix the license issue.
Solution:
Fix the license of our related code in uboot by adding MIT license
Verify:
Franklin
Note, none of the vendor who publicly published the Amlogic U-Boot source has this change, so we can consider acs.bin & bl301.bin generated from GPL-2.0 as the commit explains.
Quoted 4 lines
Quoted 4 lines
But how can anyone use those blobs? You can't redistribute them. According to their license, just putting them on Github is not even allowed.
The pre-built binaries stored on the LibreELEC repository only comes from public Vendor sources (Khadas, HardKernel, Libre Computer, FriendlyARM, Radxa) and checked against vendor repositories we have access to.
We assume they got permission from Amlogic to publicly redistribute these binaries as we (BayLibre) were allowed to redistribute the VDEC firmware in [2] & [3].
Note the situation is still unclear, this is why I haven't continued my initial patchset for libretech-cc at [4] following your concerns over licensing.
Neil
Quoted 2 lines
Quoted 2 lines
Thomas
[1] https://github.com/khadas/u-boot/blob/khadas-vims-pie/fip/LICENSE
[2] https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/LICENSE.amlogic_vdec
[3] https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/commit/meson/vdec?id=e04cc56d0e6b6ff05924ff88fdba1a438ee7d3c8
[4] https://patchwork.ozlabs.org/project/buildroot/cover/[email protected]/
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Hello Neil,
Thanks for the additional feedback.
Quoted 3 lines · On Mon, 24 Jan 2022 14:41:49 +0100 Neil Armstrong <[email protected]>…
The binaries must be split into 2 categories:
- Pre-built: bl2, bl31, bl21, bl32,fip_create, aml_encrypt_*, ddr*.fw,acs_tool.py
- Built in the Vendor U-Boot source: acs.bin bl301.bin
Right.
Quoted 4 lines
In 2019, Amlogic finally added a LICENSE for the pre-built binaries, before nobody knew what was the term of the distribution.
commit
6abaf9a869a6584b3cfca8b96d0946ed49bc9b64
Quoted 8 lines
Author: Lawrence Mok <[email protected]> Date: Mon May 6 12:34:56 2019 -0700add LICENSE file and text referring to it [1/1]
Change-Id: Id291f42bec3ddb0c2162e6540ce1f35d1cb1d079
The LICENSE can be found at [1] in Khadas github.
And this license is the one used at
https://github.com/LibreELEC/amlogic-boot-fip which Vyacheslav wants to package in Buildroot, and this license is extremely restrictive. Basically, it says that excepts private use of the content of this repository, you can't do anything with it.
Quoted 3 lines
Concerning the acs.bin & bl301.bin, they use the U-Boot build system and config header files and all these were also updated with the following SPDX:
/* SPDX-License-Identifier: (GPL-2.0+ OR MIT) */
I don't really see what the license of the U-Boot build system and config headers has to do with the resulting license of the binaries.
Quoted 22 lines
commit
94de43d3d940cf75b4a9e4fd2a2715be8eff6138Author: Jiucheng Xu <[email protected]> Date: Wed Dec 16 10:11:00 2020 +0800license: Fix the license of amlogic related codes [1/1]
PD#SWPL-39001
Problem:
A customer want to add amlogic driver in uboot to their private bootloader. Since the driver codes are licensed under GPL-2.0, and customer have to open their code, so we need fix the license issue.Solution:
Fix the license of our related code in uboot by adding MIT licenseVerify:
Franklin
Quoted 6 lines
Change-Id I2f3571e8720d1f4db069f882353d6ae050702cbaSigned-off-by Jiucheng Xu <[email protected]>Note, none of the vendor who publicly published the Amlogic U-Boot source has this change, so we can consider acs.bin & bl301.bin generated from GPL-2.0 as the commit explains.
This is really a stretch. The question is which source files are compiled into acs.bin and bl301.bin ? If they use parts under the GPL-2.0, then indeed we can assume the whole is also under GPL-2.0, as it is the only license under which derivative works can be published.
But the repository at https://github.com/LibreELEC/amlogic-boot-fip/
contains a lot more things than acs.bin and bl301.bin.
Quoted 6 lines
The pre-built binaries stored on the LibreELEC repository only comes from public Vendor sources (Khadas, HardKernel, Libre Computer, FriendlyARM, Radxa) and checked against vendor repositories we have access to.
We assume they got permission from Amlogic to publicly redistribute these binaries as we (BayLibre) were allowed to redistribute the VDEC firmware in [2] & [3].
If that's the case, then why does
https://github.com/LibreELEC/amlogic-boot-fip has this LICENSE file with scary terms?
I am really surprised by how unclear the licensing terms are for those blobs. This should scare pretty much any company from doing products based on Amlogic SoCs.
Would it be possible to clarify this with Amlogic, and instead of their silly terms of "you can't do anything with it", have a license that at least allows distribution on Amlogic platforms?
Again, thanks for your support on this!
Thomas
Signature · 7 lines
Thomas Petazzoni, co-owner and CEO, Bootlin Embedded Linux and Kernel engineering and training https://bootlin.com _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Hi.
Thanks all for replies.
Quoted 64 lines · Thomas Petazzoni
Hello Neil,
Thanks for the additional feedback.
Quoted 3 lines · On Mon, 24 Jan 2022 14:41:49 +0100 Neil Armstrong <[email protected]>…
The binaries must be split into 2 categories:
- Pre-built: bl2, bl31, bl21, bl32,fip_create, aml_encrypt_*, ddr*.fw,acs_tool.py
- Built in the Vendor U-Boot source: acs.bin bl301.binRight.
Quoted 4 lines
In 2019, Amlogic finally added a LICENSE for the pre-built binaries, before nobody knew what was the term of the distribution.
commit
6abaf9a869a6584b3cfca8b96d0946ed49bc9b64Quoted 8 lines
Author: Lawrence Mok <[email protected]> Date: Mon May 6 12:34:56 2019 -0700add LICENSE file and text referring to it [1/1]
Change-Id: Id291f42bec3ddb0c2162e6540ce1f35d1cb1d079
The LICENSE can be found at [1] in Khadas github.
And this license is the one used at
https://github.com/LibreELEC/amlogic-boot-fip which Vyacheslav wants to package in Buildroot, and this license is extremely restrictive. Basically, it says that excepts private use of the content of this repository, you can't do anything with it.Quoted 3 lines
Concerning the acs.bin & bl301.bin, they use the U-Boot build system and config header files and all these were also updated with the following SPDX:
/* SPDX-License-Identifier: (GPL-2.0+ OR MIT) */I don't really see what the license of the U-Boot build system and config headers has to do with the resulting license of the binaries.
Quoted 25 lines
commit
94de43d3d940cf75b4a9e4fd2a2715be8eff6138Author: Jiucheng Xu <[email protected]> Date: Wed Dec 16 10:11:00 2020 +0800license: Fix the license of amlogic related codes [1/1]
PD#SWPL-39001
Problem:
A customer want to add amlogic driver in uboot to their private bootloader. Since the driver codes are licensed under GPL-2.0, and customer have to open their code, so we need fix the license issue.Solution:
Fix the license of our related code in uboot by adding MIT licenseVerify:
FranklinChange-Id I2f3571e8720d1f4db069f882353d6ae050702cbaSigned-off-by Jiucheng Xu <[email protected]>
Quoted 8 lines
Quoted 3 lines
Note, none of the vendor who publicly published the Amlogic U-Boot source has this change, so we can consider acs.bin & bl301.bin generated from GPL-2.0 as the commit explains.
This is really a stretch. The question is which source files are compiled into acs.bin and bl301.bin ? If they use parts under the GPL-2.0, then indeed we can assume the whole is also under GPL-2.0, as it is the only license under which derivative works can be published.
These sources usually published inside Amlogic U-Boot source
Quoted 15 lines
But the repository at https://github.com/LibreELEC/amlogic-boot-fip/
contains a lot more things than acs.bin and bl301.bin.Quoted 6 lines
The pre-built binaries stored on the LibreELEC repository only comes from public Vendor sources (Khadas, HardKernel, Libre Computer, FriendlyARM, Radxa) and checked against vendor repositories we have access to.
We assume they got permission from Amlogic to publicly redistribute these binaries as we (BayLibre) were allowed to redistribute the VDEC firmware in [2] & [3].
If that's the case, then why does
https://github.com/LibreELEC/amlogic-boot-fip has this LICENSE file with scary terms?
Quoted 7 lines
I am really surprised by how unclear the licensing terms are for those blobs. This should scare pretty much any company from doing products based on Amlogic SoCs.
Would it be possible to clarify this with Amlogic, and instead of their silly terms of "you can't do anything with it", have a license that at least allows distribution on Amlogic platforms?
I will try to contact Amlogic via JetHome, but most likely after the Chinese New Year.
Quoted 5 lines
Again, thanks for your support on this!
Thomas
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot