Building and Installing Zedmon.

Firmware

Prereqs

Make sure that you have an arm-eabi-none gcc toolchain and dfu-util installed.

Building

> git clone https://fuchsia.googlesource.com/zedmon --recurse-submodules
> cd zedmon/firmware
> make

The builds output will end up in ./build-zedmon.

Uploading

To upload the firmware to zedmon, the device needs to be in DFU mode. To enter DFU mode:

  1. Hold down the boot0 button.
  2. Press and release the reset button.
  3. Release the boot0 button.

Once the device is in DFU mode, you can upload the firmware with dfu-util:

> dfu-util -a 0 -s 0x08000000:leave -D  build-zedmon/lk.bin -d 0483:df11

zedmon Command Line Utility

Installing Dependencies

On Debian-based systems, the following command will install packages required to build the command line utility:

> sudo apt-get install golang libusb-1.0-0-dev

Fetching Source

The zedmon utility is written in Go. Because it is hosted on fuchsia.googlesource.com, it can not simply be fetched with go get. Instead you'll need to check it out manually:

> mkdir -p zedmonutil/src/fuchsia.googlesource.com
> cd zedmonutil
> export GOPATH=`pwd`
> cd src/fuchsia.googlesource.com
> git clone https://fuchsia.googlesource.com/zedmon
> cd $GOPATH
> go get fuchsia.googlesource.com/zedmon
> go install fuchsia.googlesource.com/zedmon/cmd/zedmon

The output executable will be in ./bin/zedmon.

Running

Currently the zedmon utility simply gets the time delta between the local machine and the zedmon device then starts recording samples and saving them to zedmon.csv in the current directory.