From 9b30ad43cb488a925f69d74862917a1152da226d Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer Date: Wed, 7 Dec 2022 11:06:22 -0500 Subject: gnu: Add imx-usb-loader. * gnu/packages/embedded.scm (imx-usb-loader): New variable. --- gnu/packages/embedded.scm | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) (limited to 'gnu') 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") -- cgit v1.2.3