imx-m4fwloader: new package
PATCH 1/1 imx-m4fwloader: new package
This package provides a tool to load a firmware to the Cortex-M4 core available in some i.MX processors such as i.MX6SX or i.MX7.
This package was tested on a i.MX7D Nitrogen7 platform:
# imx-m4fwloader hello_world.bin 0x007F8000
Upstream repository:
https://github.com/codeauroraforum/imx-m4fwloader
--- package/freescale-imx/Config.in | 1 + package/freescale-imx/imx-m4fwloader/Config.in | 9 +++++++++ .../imx-m4fwloader/imx-m4fwloader.hash | 2 ++ .../freescale-imx/imx-m4fwloader/imx-m4fwloader.mk | 22 ++++++++++++++++++++++ 4 files changed, 34 insertions(+) create mode 100644 package/freescale-imx/imx-m4fwloader/Config.in create mode 100644 package/freescale-imx/imx-m4fwloader/imx-m4fwloader.hash create mode 100644 package/freescale-imx/imx-m4fwloader/imx-m4fwloader.mk
package/freescale-imx/Config.in +1 -0
@@ -72,6 +72,7 @@ config BR2_PACKAGE_FREESCALE_IMX_HAS_VIV_GPU source "package/freescale-imx/imx-codec/Config.in" source "package/freescale-imx/imx-kobs/Config.in" source "package/freescale-imx/imx-lib/Config.in" +source "package/freescale-imx/imx-m4fwloader/Config.in" source "package/freescale-imx/imx-parser/Config.in" source "package/freescale-imx/imx-uuc/Config.in" source "package/freescale-imx/imx-vpu/Config.in"
package/freescale-imx/imx-m4fwloader/Config.in new file +9 -0
@@ -0,0 +1,9 @@ +config BR2_PACKAGE_IMX_M4FWLOADER + bool "imx-m4fwloader" + depends on BR2_arm # Only relevant for i.MX + help + This package provides a tool to load a firmware to the + Cortex-M4 core available in some i.MX processors. + + Upstream repository: + https://github.com/codeauroraforum/imx-m4fwloader
package/freescale-imx/imx-m4fwloader/imx-m4fwloader.hash new file +2 -0
@@ -0,0 +1,2 @@ +# Locally computed +sha256 fb6334900972fe389e808845417dd9045fb0f7eb47952fc22a00f4cdaf94af1a imx-m4fwloader-8cf4d17a09ba23250d43381b49ba00d92406fad9.tar.gz
package/freescale-imx/imx-m4fwloader/imx-m4fwloader.mk new file +22 -0
@@ -0,0 +1,22 @@ +################################################################################ +# +# imx-m4fwloader +# +################################################################################ + +IMX_M4FWLOADER_VERSION = 8cf4d17a09ba23250d43381b49ba00d92406fad9 +IMX_M4FWLOADER_SITE = $(call github,codeauroraforum,imx-m4fwloader,$(IMX_M4FWLOADER_VERSION)) +IMX_M4FWLOADER_LICENSE = GPL-2.0+ +IMX_M4FWLOADER_LICENSE_FILES = LICENSE + +define IMX_M4FWLOADER_BUILD_CMDS + $(TARGET_CC) $(TARGET_CFLAGS) $(TARGET_LDFLAGS) -o $(@D)/imx-m4fwloader \ + $(@D)/m4fwloader.c +endef + +define IMX_M4FWLOADER_INSTALL_TARGET_CMDS + $(INSTALL) -D -m 755 $(@D)/imx-m4fwloader \ + $(TARGET_DIR)/usr/bin/imx-m4fwloader +endef + +$(eval $(generic-package))
Signature · 1 line
2.15.1
PATCH 1/1 imx-m4fwloader: new package
Quoted 40 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Gary" == Gary Bisson <[email protected]> writes:
This package provides a tool to load a firmware to the Cortex-M4 core available in some i.MX processors such as i.MX6SX or i.MX7.
This package was tested on a i.MX7D Nitrogen7 platform:
# imx-m4fwloader hello_world.bin 0x007F8000Upstream repository:
https://github.com/codeauroraforum/imx-m4fwloaderSigned-off-by Gary Bisson <[email protected]>--- package/freescale-imx/Config.in | 1 + package/freescale-imx/imx-m4fwloader/Config.in | 9 +++++++++ .../imx-m4fwloader/imx-m4fwloader.hash | 2 ++ .../freescale-imx/imx-m4fwloader/imx-m4fwloader.mk | 22 ++++++++++++++++++++++ 4 files changed, 34 insertions(+) create mode 100644 package/freescale-imx/imx-m4fwloader/Config.in create mode 100644 package/freescale-imx/imx-m4fwloader/imx-m4fwloader.hash create mode 100644 package/freescale-imx/imx-m4fwloader/imx-m4fwloader.mkpackage/freescale-imx/Config.in +1
-0@@ -72,6 +72,7 @@ config BR2_PACKAGE_FREESCALE_IMX_HAS_VIV_GPU source "package/freescale-imx/imx-codec/Config.in" source "package/freescale-imx/imx-kobs/Config.in" source "package/freescale-imx/imx-lib/Config.in" +source "package/freescale-imx/imx-m4fwloader/Config.in" source "package/freescale-imx/imx-parser/Config.in" source "package/freescale-imx/imx-uuc/Config.in" source "package/freescale-imx/imx-vpu/Config.in"package/freescale-imx/imx-m4fwloader/Config.in new file +0
-0
package/freescale-imx/imx-m4fwloader/Config.in line 3
Quoted 3 lines
package/freescale-imx/imx-m4fwloader/Config.in new file +3
-0@@ -0,0 +1,9 @@ +config BR2_PACKAGE_IMX_M4FWLOADER + bool "imx-m4fwloader" + depends on BR2_arm # Only relevant for i.MX
What about the the m4's on mx8? It doesn't look supported yet though.
package/freescale-imx/imx-m4fwloader/Config.in line 9
Quoted 6 lines
package/freescale-imx/imx-m4fwloader/Config.in new file +6
-0+ help + This package provides a tool to load a firmware to the + Cortex-M4 core available in some i.MX processors. + + Upstream repository: + https://github.com/codeauroraforum/imx-m4fwloader
We normally don't mention 'Upstream repository' before the URL, so I've dropped this.
Quoted 11 lines
package/freescale-imx/imx-m4fwloader/imx-m4fwloader.hash new file +2
-0@@ -0,0 +1,2 @@ +# Locally computed +sha256
fb6334900972fe389e808845417dd9045fb0f7eb47952fc22a00f4cdaf94af1aimx-m4fwloader-8cf4d17a09ba23250d43381b49ba00d92406fad9.tar.gz
It would be nice to add the hash of the license file as well, so I've done that.
package/freescale-imx/imx-m4fwloader/imx-m4fwloader.hash
Quoted 3 lines
package/freescale-imx/imx-m4fwloader/imx-m4fwloader.hash new file +3
-0+define IMX_M4FWLOADER_INSTALL_TARGET_CMDS + $(INSTALL) -D -m 755 $(@D)/imx-m4fwloader \ + $(TARGET_DIR)/usr/bin/imx-m4fwloader
The code accesses /dev/mem and a number of hardware registers, so it looks like you need to be root to use it - So I have moved it to /usr/sbin.
Committed with these fixes, thanks.
Signature · 1 line
Bye, Peter Korsgaard
PATCH 1/1 imx-m4fwloader: new package
Hi Peter,
Quoted 37 lines · Peter Korsgaard
Quoted 37 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Gary" == Gary Bisson <[email protected]> writes:
This package provides a tool to load a firmware to the Cortex-M4 core available in some i.MX processors such as i.MX6SX or i.MX7.
This package was tested on a i.MX7D Nitrogen7 platform:
# imx-m4fwloader hello_world.bin 0x007F8000Upstream repository:
https://github.com/codeauroraforum/imx-m4fwloaderSigned-off-by Gary Bisson <[email protected]>--- package/freescale-imx/Config.in | 1 + package/freescale-imx/imx-m4fwloader/Config.in | 9 +++++++++ .../imx-m4fwloader/imx-m4fwloader.hash | 2 ++ .../freescale-imx/imx-m4fwloader/imx-m4fwloader.mk | 22 ++++++++++++++++++++++ 4 files changed, 34 insertions(+) create mode 100644 package/freescale-imx/imx-m4fwloader/Config.in create mode 100644 package/freescale-imx/imx-m4fwloader/imx-m4fwloader.hash create mode 100644 package/freescale-imx/imx-m4fwloader/imx-m4fwloader.mkpackage/freescale-imx/Config.in +1
-0@@ -72,6 +72,7 @@ config BR2_PACKAGE_FREESCALE_IMX_HAS_VIV_GPU source "package/freescale-imx/imx-codec/Config.in" source "package/freescale-imx/imx-kobs/Config.in" source "package/freescale-imx/imx-lib/Config.in" +source "package/freescale-imx/imx-m4fwloader/Config.in" source "package/freescale-imx/imx-parser/Config.in" source "package/freescale-imx/imx-uuc/Config.in" source "package/freescale-imx/imx-vpu/Config.in"package/freescale-imx/imx-m4fwloader/Config.in new file +0
-0
Quoted 8 lines
package/freescale-imx/imx-m4fwloader/Config.in line 3
Quoted 6 lines
package/freescale-imx/imx-m4fwloader/Config.in new file +3
-0@@ -0,0 +1,9 @@ +config BR2_PACKAGE_IMX_M4FWLOADER + bool "imx-m4fwloader" + depends on BR2_arm # Only relevant for i.MXWhat about the the m4's on mx8? It doesn't look supported yet though.
Exactly, the version will be bumped once i.MX8 will be supported. At that point the dependency will be updated too.
Anyway the whole freescale-imx folder will need an upgrade to support i.MX8 properly.
Maybe we should create a BR2_PACKAGE_FREESCALE_IMX_HAS_M4 macro so that the package only appears when a supported platform is selected.
Quoted 9 lines
package/freescale-imx/imx-m4fwloader/Config.in line 9
Quoted 6 lines
package/freescale-imx/imx-m4fwloader/Config.in new file +6
-0+ help + This package provides a tool to load a firmware to the + Cortex-M4 core available in some i.MX processors. + + Upstream repository: + https://github.com/codeauroraforum/imx-m4fwloaderWe normally don't mention 'Upstream repository' before the URL, so I've dropped this.
Ok, thanks.
Quoted 6 lines
Quoted 6 lines
package/freescale-imx/imx-m4fwloader/imx-m4fwloader.hash new file +0
-0
Quoted 8 lines
Quoted 5 lines
package/freescale-imx/imx-m4fwloader/imx-m4fwloader.hash new file +2
-0@@ -0,0 +1,2 @@ +# Locally computed +sha256
fb6334900972fe389e808845417dd9045fb0f7eb47952fc22a00f4cdaf94af1aimx-m4fwloader-8cf4d17a09ba23250d43381b49ba00d92406fad9.tar.gzIt would be nice to add the hash of the license file as well, so I've done that.
Ok, thanks, I'll do that next time.
Quoted 7 lines
package/freescale-imx/imx-m4fwloader/imx-m4fwloader.hash
Quoted 3 lines
package/freescale-imx/imx-m4fwloader/imx-m4fwloader.hash new file +3
-0+define IMX_M4FWLOADER_INSTALL_TARGET_CMDS + $(INSTALL) -D -m 755 $(@D)/imx-m4fwloader \ + $(TARGET_DIR)/usr/bin/imx-m4fwloaderThe code accesses
/dev/memand a number of hardware registers, so it looks like you need to be root to use it - So I have moved it to/usr/sbin.
Makes sense.
Quoted 1 line
Committed with these fixes, thanks.
Thank you!
Gary
PATCH 1/1 imx-m4fwloader: new package
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Gary" == Gary Bisson <[email protected]> writes:
Hi,
Quoted 4 lines
Quoted 1 line
What about the the m4's on mx8? It doesn't look supported yet though.
Exactly, the version will be bumped once i.MX8 will be supported. At that point the dependency will be updated too.
Ok.
Quoted 5 lines
Anyway the whole freescale-imx folder will need an upgrade to support i.MX8 properly.
Maybe we should create a
BR2_PACKAGE_FREESCALE_IMX_HAS_M4macro so that the package only appears when a supported platform is selected.
Makes sense if the list of variants gets too big / needs to be repeated several times.
Quoted 3 lines
Quoted 1 line
Committed with these fixes, thanks.
Thank you!
You're welcome!
Signature · 1 line
Bye, Peter Korsgaard