From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from enterprise01.smtp.diehl.com ([193.201.238.219]) by metis.ext.pengutronix.de with esmtps (TLS1.2:DHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jGkvl-0003A1-Ah for ptxdist@pengutronix.de; Tue, 24 Mar 2020 15:53:26 +0100 From: Denis Osterland-Heim Date: Tue, 24 Mar 2020 14:53:22 +0000 Message-ID: <20200324145205.32370-1-Denis.Osterland@diehl.com> Content-Language: en-US MIME-Version: 1.0 Subject: [ptxdist] [RFC PATCH 0/3] Freescale/NXP i.MX mfgtools 3.0 List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Errors-To: ptxdist-bounces@pengutronix.de Sender: "ptxdist" To: "ptxdist@pengutronix.de" Hi, this patch series adds support for the Freescale/NXP mfgtools 3.0. You can use them with vanilla kernel and barebox. There are two known issues: - the git downloads =3D> no stable md5 sum - the linuxrc provided by imx-uuc uses array syntax I have a version of the linuxrc script where I replaced the array stuff with blank separation, but not sure if this should be put as projectroot/linuxrc in ptxdist. Here are some examples how to use it. I have tested it with a i.MX6ull EVK barebox-2020.02.0 and linux-5.4.25. The command `uuu barebox-image` is equivalent to `imx-usb-loader barebox-im= age`. The example https://www.barebox.org/doc/latest/user/usb.html#android-fastboot-support can be done with a `uuu boot.uu` command. boot.uu: ``` uuu_version 1.0.1 CFG: FB: -chip imx -pid 0x0104 -vid 0x1d6b FB: flash kernel linuximage FB: flash devicetree imx.dtb FB: flash initrd root.cpio.gz FB: oem exec global linux.bootargs.fa=3Drdinit=3D/sbin/init FB: oem exec bootm FB: done ``` To run a shell command a kernel with USB gadgets/functionfs enabled and imx-uuc install on target is needed. This is an example of whole USB boot sequence and a command executed in linux user space. To see the output of the echo, the command is `uuu -v hello.uu` hello.uu: ``` uuu_version 1.0.1 SDP: dcd -f barebox-image SDP: write -f barebox-image -ivt 0 SDP: jump -f barebox-image CFG: FB: -chip imx -pid 0x0104 -vid 0x1d6b FB: flash kernel linuximage FB: flash devicetree imx.dtb FB: flash initrd root.cpio.gz FB: oem exec global linux.bootargs.fa=3Drdinit=3D/linuxrc FB: oem exec bootm FBK: ucmd echo "Hello World" FBK: done ``` rules/host-libzip.in | 8 +++++++ rules/host-libzip.make | 11 +++++++++ rules/host-mfgtools.in | 13 ++++++++++ rules/host-mfgtools.make | 43 +++++++++++++++++++++++++++++++++ rules/imx-uuc.in | 7 ++++++ rules/imx-uuc.make | 62 ++++++++++++++++++++++++++++++++++++++++++++= ++++ 6 files changed, 144 insertions(+) Diehl Connectivity Solutions GmbH Gesch=E4ftsf=FChrung: Horst Leonberger Sitz der Gesellschaft: N=FCrnberg - Registergericht: Amtsgericht N=FCrnberg: HRB 32315 ___________________________________________________________________________= ________________________ Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mai= l enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen. Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalte= n haben. Bitte loeschen Sie in diesem Fall die Nachricht. Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung u= nd/oder Publikation dieser E-Mail ist strengstens untersagt. - Informationen zum Datenschutz, insbesondere zu Ihren Rechten, erhalten Si= e unter https://www.diehl.com/group/de/transparenz-und-informationspflichte= n/ The contents of the above mentioned e-mail is not legally binding. This e-m= ail contains confidential and/or legally protected information. Please info= rm us if you have received this e-mail by mistake and delete it in such a case. Each unauthorized reproduction, discl= osure, alteration, distribution and/or publication of this e-mail is strict= ly prohibited. = - For general information on data protection and your respective rights ple= ase visit https://www.diehl.com/group/en/transparency-and-information-oblig= ations/ _______________________________________________ ptxdist mailing list ptxdist@pengutronix.de