~craftyguy/jankboot

a janky implementation of the fastboot protocol in Go
cmd/jankboot: add getvar command
pkg/getVar: add method for fetching variables from client device
pkg/openIOEndpoint: add method for opening endpoints

refs

master
browse  log 

clone

read-only
https://git.sr.ht/~craftyguy/jankboot
read/write
git@git.sr.ht:~craftyguy/jankboot

You can also use your local clone with git send-email.

#jankboot

jankboot is a janky fastboot protocol implementation in Go. It's meant to support only USB (and not TCP or UDP).

jankboot currently supports only a very limited set of the fastboot protocol, it isn't meant to include all functionality in other fastboot implementations.

usage: jankboot COMMAND...
 devices                                List all devices in fastboot mode
 reboot[-bootloader]                    Reboot device
 flash <partition> <filename>           Flash the given file to the designated partition

#Cross compiling for Windows

In addition to the dependencies in go.mod, the following additional things are required to cross compile on a Linux host:

  • mingw-w64-gcc
  • mingw-w64-libusb

The included Makefile takes care of setting up the rest:

$ make windows