EM100pro

From coreboot
Revision as of 03:02, 17 November 2017 by Dhendrix (talk | contribs)
Jump to: navigation, search

The wiki is being retired!

Documentation is now handled by the same processes we use for code: Add something to the Documentation/ directory in the coreboot repo, and it will be rendered to https://doc.coreboot.org/. Contributions welcome!

Linux Utility

We are working on a Linux utility to drive the EM100Pro. Get the sources with

$ git clone http://review.coreboot.org/em100

Browse the source code here: http://review.coreboot.org/gitweb?p=em100.git;a=summary

Here's how to use the utility:

em100: EM100pro command line utility

Example:
  ./em100 --stop --set M25P80 -d file.bin -v --start

Usage:
  -c|--set CHIP:      select chip emulation
  -d|--download FILE: upload FILE into EM100pro
  -r|--start:         em100 shall run
  -s|--stop:          em100 shall stop
  -v|--verify:        verify EM100 content matches the file
  -t|--trace:         trace mode
  -F|--firmware-update FILE: update firmware in EM100pro (dangerous)
  -f|--firmware-dump FILE:   export firmware in EM100pro to file
  -S|--set-serialno NUM:     set serial number to NUM
  -p|--holdpin [LOW|FLOAT|INPUT]: set the hold pin state
  -x|--device BUS:DEV use EM100pro on USB bus/device
  -l|--list-devices   list all connected EM100pro devices
  -D|--debug:         print debug information.
  -h|--help:          this help text

Chip Voltage

EM100 uses different firmware for 1.8V and 3.3V chips. Furthermore, the firmware update function only accepts combined MCU and FPGA images.

TODO: Update tool to automatically select appropriate firmware.

USB Tracing

When using VMware player to run the Windows utilities, the EM100pro will get confused by Windows trying to set the device up after Linux already did. To avoid that, add the following line to your .vmx file:

usb.quirks.device0 = "0x04b4:0x1235 skip-reset, skip-refresh, skip-setconfig"