aboutsummaryrefslogtreecommitdiff
path: root/usb-control/README.md
blob: 48e017228c0cadaad40bfa0bb72e06c736f8d318 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Haikou USB Control

This tool allows to control the **BIOS disable** signal and
**power** state via USB.

## Dependencies

[Python](http://www.python.org/)
[PyUSB](http://walac.github.io/pyusb/)
[libusb](http://libusb.info/)

```
apt install python-usb
```

# Usage

To manipulate **BIOS disable** via USB the slider has to be in the **normal
boot** position.

To list connected Haikou boards:

  haikou.py list

To power cycle the board:

  haikou.py cycle

To select a specific board with given serial number (can be fetched via 'list'):

  haikou.py --serial SERIALNUMBER

To enable the BIOS disable signal:

  haikou.py biosdisable

To switch back to normal boot:

  haikou.py normalboot

For more features use the built-in help:

  haikou.py --help