Difference between revisions of "CHIP"

From GIMX
Jump to: navigation, search
(GIMX on CHIP (tags: Next Thing Co. C.H.I.P.))
(Modifying C.H.I.P. Power Limitations)
 

(6 intermediate revisions by 2 users not shown)

Line 9: Line 9:
  
  
== Modify C.H.I.P. Power Limitations ==
+
== Modifying C.H.I.P. Power Limitations ==
  
 
The following steps and script is Copyrighted by Steven Ford http://geeky-boy.com/ and licensed "public domain style under [http://creativecommons.org/publicdomain/zero/1.0/ CC0].
 
The following steps and script is Copyrighted by Steven Ford http://geeky-boy.com/ and licensed "public domain style under [http://creativecommons.org/publicdomain/zero/1.0/ CC0].
Line 17: Line 17:
 
'''Step 1.''' Get the shell script file onto CHIP:
 
'''Step 1.''' Get the shell script file onto CHIP:
  
sudo wget -O /etc/init.d/axp209-nolim <nowiki>http://fordsfords.github.io/axp209-nolim/axp209-nolim</nowiki>
+
<pre>sudo wget -O /etc/init.d/axp209-nolim <nowiki>http://fordsfords.github.io/axp209-nolim/axp209-nolim</nowiki>
<br>sudo chmod +x /etc/init.d/axp209-nolim
+
sudo chmod +x /etc/init.d/axp209-nolim
<br>sudo update-rc.d axp209-nolim defaults
+
sudo update-rc.d axp209-nolim defaults</pre>
  
 
'''Step 2.''' Now, do a graceful restart:
 
'''Step 2.''' Now, do a graceful restart:
  
sudo shutdown -r now
+
<pre>sudo shutdown -r now</pre>
 
 
  
 
For more information refer to: https://github.com/fordsfords/axp209-nolim
 
For more information refer to: https://github.com/fordsfords/axp209-nolim
Line 32: Line 31:
 
This guide will assume you've already configured your CHIP's WiFi connection (by using the command: nmtui) and know it's IP address to be able to connect to it.
 
This guide will assume you've already configured your CHIP's WiFi connection (by using the command: nmtui) and know it's IP address to be able to connect to it.
  
'''Step 1.''' Download and Istall GIMX
+
'''Step 1.''' Download and Install GIMX
 +
 
 +
<pre>wget <nowiki>https://gimx.fr/download/gimx-raspbian</nowiki> -O gimx.deb
 +
sudo dpkg -i gimx.deb
 +
sudo apt-get -f install</pre>
  
wget <nowiki>https://gimx.fr/download/gimx-raspbian</nowiki> -O gimx.deb
+
'''Step 2.''' Stop & Disable Console TTY (make sure u are connected through SSH)
<br>sudo dpkg -i gimx.deb
+
<pre>sudo systemctl mask serial-getty@ttyS0.service
<br>sudo apt-get -f install
+
sudo systemctl stop serial-getty@ttyS0.service</pre>
  
'''Step 2.''' Stop & Disable Console TTY (make sure u are connected through SSH)<br>
+
'''Step 3.''' Create GIMX directories
sudo systemctl mask serial-getty@ttyS0.service<br>
+
<pre>mkdir -p ~/.gimx/{macros,config}</pre>
sudo systemctl stop serial-getty@ttyS0.service
 
  
'''Step 3.''' Create GIMX directories<br>
+
'''Step 4.''' Download and move the Configurations
mkdir .gimx; mkdir .gimx/macros; mkdir .gimx/config
+
<pre>wget https://github.com/matlo/GIMX-configurations/archive/master.zip
 +
unzip master.zip
 +
mv GIMX-configurations-master/Linux/* ~/.gimx/config</pre>
  
'''Step 4.''' Download and move the Configurations<br>
+
'''Step 5.''' Delete the file master.zip and the directory GIMX-configurations-master
wget https://github.com/matlo/GIMX-configurations/archive/master.zip
+
<pre>rm master.zip
 +
rm -rf GIMX-configurations-master</pre>
  
unzip master.zip<br>
+
You are now ready to start using GIMX.
cd GIMX-configurations-master<br>
 
cd Linux<br>
 
mv * ~/.gimx/config<br>
 
cd ~
 
  
'''Step 5.''' Delete the file master.zip and the directory GIMX-configurations-master<br>
+
'''NOTE''': Keep in mind that the serial interface is '''/dev/ttyS0'''
rm master.zip<br>
 
rm -rf GIMX-configurations-master
 

Latest revision as of 14:24, 21 December 2016

Power Limitations

C.H.I.P. is limited to 900mA by default thus connecting an USB HUB or any other Periphal that requires more than that will make the device to abruptly turn off.

At the time of this writing, version 4.4 No-limit won't be enough. You'll have to make changes in the system to remove this limitation.

Please refer to: Abrupt Shutdowns for more information.


Modifying C.H.I.P. Power Limitations

The following steps and script is Copyrighted by Steven Ford http://geeky-boy.com/ and licensed "public domain style under CC0.

If you are having power problems, you should first log into CHIP with all peripherals disconnected. These instructions assume you are in a shell prompt on CHIP.

Step 1. Get the shell script file onto CHIP:

sudo wget -O /etc/init.d/axp209-nolim http://fordsfords.github.io/axp209-nolim/axp209-nolim
sudo chmod +x /etc/init.d/axp209-nolim
sudo update-rc.d axp209-nolim defaults

Step 2. Now, do a graceful restart:

sudo shutdown -r now

For more information refer to: https://github.com/fordsfords/axp209-nolim

GIMX on CHIP (tags: Next Thing Co. C.H.I.P.)

This guide will assume you've already configured your CHIP's WiFi connection (by using the command: nmtui) and know it's IP address to be able to connect to it.

Step 1. Download and Install GIMX

wget https://gimx.fr/download/gimx-raspbian -O gimx.deb
sudo dpkg -i gimx.deb
sudo apt-get -f install

Step 2. Stop & Disable Console TTY (make sure u are connected through SSH)

sudo systemctl mask serial-getty@ttyS0.service
sudo systemctl stop serial-getty@ttyS0.service

Step 3. Create GIMX directories

mkdir -p ~/.gimx/{macros,config}

Step 4. Download and move the Configurations

wget https://github.com/matlo/GIMX-configurations/archive/master.zip
unzip master.zip
mv GIMX-configurations-master/Linux/* ~/.gimx/config

Step 5. Delete the file master.zip and the directory GIMX-configurations-master

rm master.zip
rm -rf GIMX-configurations-master

You are now ready to start using GIMX.

NOTE: Keep in mind that the serial interface is /dev/ttyS0