This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| docker pull ubuntu:18.04 | |
| docker run -it -d --network host -v ~/Stuff/lv2:/lv2 --name "mod-sdk" ubuntu:18.04 bash | |
| docker exec -it mod-sdk bash | |
| apt-get update | |
| apt-get install -y build-essential liblilv-dev phantomjs python3-pil python3-pystache python3-setuptools python3-pyinotify git | |
| cd /home | |
| git clone https://github.com/tornadoweb/tornado.git | |
| cd tornado | |
| git checkout v4.3.0 | |
| python3 setup.py build |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| obj=$1 | |
| echo "Checking dependencies for $obj" | |
| deplist=$(objdump -p $obj 2>/dev/null | grep NEEDED | tr -d " NEEDED ") | |
| for dep in $deplist; do | |
| res=$(find /usr/lib -name "$dep" 2>/dev/null) | |
| if [ "$res" == "" ]; then | |
| res=$(find /lib -name "$dep" 2>/dev/null) | |
| if [ "$res" == "" ]; then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Select the i2c bus | |
| i2c dev <bus> | |
| i2c dev 0 | |
| # Probe the device | |
| i2c probe <chip> | |
| i2c probe 0x60 | |
| # Read from the device | |
| i2c read <chip> <chip address> <length> <memory address> |