Update
Get the source code:
$ git clone https://github.com/betrusted-io/xous-core
$ cd xous-core
Create a python virtual environment:
$ sudo apt install python3
$ python3 -m venv .venv
Activate the venv:
$ source .venv/bin/activate
Install the requirements:
$ pip install pyusb progressbar2 requests pycryptodome
Add the udev
rules:
$ cat <<EOF | sudo tee /etc/udev/rules.d/99-precursor-usb.rules
SUBSYSTEM=="usb", ATTRS{idVendor}=="1209", ATTRS{idProduct}=="5bf0", GROUP="plugdev", TAG+="uaccess"
SUBSYSTEM=="usb", ATTRS{idVendor}=="1209", ATTRS{idProduct}=="3613", GROUP="plugdev", TAG+="uaccess"
EOF
$ sudo udevadm control --reload-rules
Plug in the precursor.
Run the updater:
$ python3 tools/updater/precursorupdater/precursorupdater.py --bleeding-edge
Reset the precursor inserting a paperclip in the reset hole in the right edge.
Sources: