Coder Social home page Coder Social logo

capiman / mfgtools Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nxp-imx/mfgtools

0.0 0.0 0.0 1.14 MB

Freescale/NXP I.MX Chip image deploy tools.

License: BSD 3-Clause "New" or "Revised" License

Shell 0.84% JavaScript 8.21% C++ 87.26% C 1.30% CSS 0.53% HTML 0.47% CMake 1.30% Batchfile 0.10%

mfgtools's Introduction

uuu (Universal Update Utility), mfgtools 3.0

macOS Build Build with VS Studio Build for x64 ubuntu-lastest

GitHub

universal-update-utility

Freescale/NXP I.MX Chip image deploy tools. original linux version uses "linux" branch, windows version uses "windows" branch

uuu (universal update utility) for nxp imx chips -- libuuu-1.0.1-gffd9837

Succeded:0       Failed:3               Wait for Known USB Devices to Appear...

1:11     5/5 [                                        ] SDP: jump -f u-boot-dtb.imx -ivtinitramf....
2:1      1/5 [===>                                    ] SDP: boot -f u-boot-imx7dsabresd_sd.imx ....

Key features

  • The real cross platform. Linux, Windows, MacOS(not test yet)
  • Multi devices program support
  • Daemon mode support
  • Few dependencies (only libusb, zlibc, libbz2)
  • Firmware (uboot/kernel) uses WCID to auto load the winusb driver on the Windows side. Windows7 users need to install the winusb driver from https://zadig.akeo.ie/ Windows10 will install the driver automatically.

Examples:

  uuu u-boot.imx            Download u-boot.imx via HID device

  uuu list.uu               Run all the commands in list.uu

  uuu -s                    Enter shell mode. Input command.

  uuu -v u-boot.imx         verbose mode

  uuu -d u-boot.imx         Once it detects the attachment of a known device, download boot.imx.

                            u-boot.imx can be replaced, new file will be download once board reset.

                            Do not unplug the SD card, write to the SD card, nor plug in a SD card when debugging uboot.

  uuu -b emmc u-boot.imx    write u-boot.imx to emmc boot partition. u-boot.imx need enable fastboot

  uuu -b emmc_all wic.zst   decompress wic.zst file and download the whole image into emmc

Prebuilt Image and pdf document

The prebuilt image and document are here:

How to Build:

Windows

  • git clone --recurse-submodules https://github.com/nxp-imx/mfgtools.git
  • cd mfgtools
  • open msvs/uuu.sln with Visual Studio 2017

Visual Studio

Note that, since uuu is an OSI compliant Open Source project, you are entitled to download and use the freely available Visual Studio Community Edition to build, run or develop for uuu. As per the Visual Studio Community Edition license this applies regardless of whether you are an individual or a corporate user.

Linux

  • git clone https://github.com/nxp-imx/mfgtools.git
  • cd mfgtools
  • sudo apt-get install libusb-1.0-0-dev libbz2-dev libzstd-dev pkg-config cmake libssl-dev g++ zlib1g-dev libtinyxml2-dev
  • cmake . && make

The above commands build mfgtools in source. To build it out of source (requires cmake 3.13 or newer):

  • cmake -S . -B build
  • cmake --build build --target all

For cmake prior 3.13:

  • mkdir build && cd build
  • cmake .. && make

macOS

  • git clone https://github.com/nxp-imx/mfgtools.git
  • cd mfgtools
  • brew install cmake libusb openssl pkg-config tinyxml2
  • cmake -DOPENSSL_ROOT_DIR=$(brew --prefix)/opt/openssl . && make

Note that we assume brew is installed and can be used to resolve dependencies as shown above. The remaining dependency libbz2 can be resolved via the XCode supplied libraries.

Note if you meet "can't detach kernel driver" try to check libusb version.

brew info libusb
==> libusb: stable 1.0.26 (bottled), HEAD

Run environment

  • Windows 10 64 bit
  • Linux (Ubuntu) 64 bit
  • macOS (Catalina)
  • 32 bit systems will have problems with big files.

License

uuu is licensed under the BSD license. See LICENSE. The BSD licensed prebuilt Windows binary version of uuu is statically linked with the LGPL libusb library, which remains LGPL.

mfgtools's People

Contributors

nxpfrankli avatar markuspg avatar zyga avatar brlin-tw avatar dnbazhenov avatar osterlad avatar raphexion avatar agx avatar lenormandfranck avatar yestyle avatar nxpweilincao avatar hanxu-nxp avatar panicking avatar gibsson avatar ldts avatar jmlemetayer avatar henry-nicolas2021 avatar benjaminjrood avatar alexmitter avatar cengiz-io avatar capiman avatar schiffermtq avatar kraj avatar lichengxiao2017 avatar mstaack avatar okeanos avatar mrvan avatar philm06 avatar deinok avatar sshen-okta avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.