- Flash. I used 4.4 command line version.
uname -a
givesLinux chip 4.4.13-ntc-mlc #1 SMP Tue Dec 6 21:38:00 UTC 2016 armv7l GNU/Linux
- Setup wifi etc
sudo ntmui
. - Show IP address with
ip addr show wlan0
. - Disable low power wifi because it's annoying
iw wlan0 set power_save off
. (add it to rc.local)
There's some automatic way of doing this with the EEPROM, but for now do it manually.
From https://bbs.nextthing.co/t/spi-serial-communication-on-chip/11937/7:
open startup script for editing
sudo nano /etc/rc.local
add the following before exit 0
mkdir -p /sys/kernel/config/device-tree/overlays/spi
cat /lib/firmware/nextthingco/chip/sample-spi.dtbo > /sys/kernel/config/device-tree/overlays/spi/dtbo
close nano and restart sudo shutdown -r now
.
once you've rebooted /dev/spidev32766.0
should now exist.
# get cffi
sudo apt-get install git python-pip python-dev libffi-dev
sudo pip install cffi enum34 backports.shutil_get_terminal_size
# check cffi version
python -c "import cffi; print(cffi.__version__)" # should be >= 1.1
# you may need to remove an old version of cffi
sudo apt-get remove python-cffi
# build ax for chip
python ax_build_chip.py
Need sudo
to run scripts and access hardware!