summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorMaxim Cournoyer <maxim.cournoyer@gmail.com>2022-12-07 11:06:22 -0500
committerMaxim Cournoyer <maxim.cournoyer@gmail.com>2022-12-07 20:12:44 -0500
commit9b30ad43cb488a925f69d74862917a1152da226d (patch)
tree1b8eaef676783a70112960a6bcca34cb4a74790b /gnu
parent1aae4e72379a8348bf1390e44173c7b4b6edd342 (diff)
gnu: Add imx-usb-loader.
* gnu/packages/embedded.scm (imx-usb-loader): New variable.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/embedded.scm36
1 files changed, 36 insertions, 0 deletions
diff --git a/gnu/packages/embedded.scm b/gnu/packages/embedded.scm
index 6f8758aeeb..87c572ba0f 100644
--- a/gnu/packages/embedded.scm
+++ b/gnu/packages/embedded.scm
@@ -32,6 +32,7 @@
#:use-module (guix utils)
#:use-module (guix packages)
#:use-module (guix download)
+ #:use-module (guix gexp)
#:use-module (guix svn-download)
#:use-module (guix git-download)
#:use-module ((guix licenses) #:prefix license:)
@@ -1092,6 +1093,41 @@ the Raspberry Pi chip.")
(description "This package provides @code{gcc} for VideoCore IV,
the Raspberry Pi chip."))))
+(define-public imx-usb-loader
+ ;; There are no proper releases.
+ (let ((commit "30b43d69770cd69e84c045dc9dcabb1f3e9d975a")
+ (revision "0"))
+ (package
+ (name "imx-usb-loader")
+ ;; For the version string, see IMX_LOADER_VERSION in imx_loader.h.
+ (version (git-version "0.2pre" revision commit))
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/boundarydevices/imx_usb_loader")
+ (commit commit)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "1jdxbg63qascyl8x32njs9k9gzy86g209q7hc0jp74qyh0i6fwwc"))))
+ (build-system gnu-build-system)
+ (arguments
+ (list #:test-target "tests"
+ #:make-flags #~(list (string-append "CC=" #$(cc-for-target))
+ (string-append "prefix=" #$output))
+ #:phases #~(modify-phases %standard-phases
+ (delete 'configure))))
+ (native-inputs (list pkg-config))
+ (inputs (list libusb))
+ (home-page "https://github.com/boundarydevices/imx_usb_loader")
+ (synopsis "USB and UART loader for i.MX5/6/7/8 series")
+ (description "This utility downloads and executes code on Freescale
+i.MX5/i.MX6/i.MX7 and Vybrid SoCs through the Serial Download Protocol (SDP).
+Depending on the board, there is usually some kind of recovery button to bring
+the SoC into serial download boot mode; check the documentation of your
+hardware. The utility support USB and UART as serial link.")
+ (license license:lgpl2.1+))))
+
(define-public python-libmpsse
(package
(name "python-libmpsse")