OLPC round 1[edit source]

This information is on setting up the OLPC, first time. The instructions on the main page are succinct and correct, this is merely reference.

GCdump on OLPC[edit source]

  1. Version 767 of the OLPC firmware is required to run Java. Additional functionality such as powersave is also provided by this update. Follow directions here:How to update. (how to upgrade and wipe everything off to clear up space)
  2. Click the centre of the Queen's Applied Sustainability Lab icon in the neighbourhood view to connect to the internet.
  3. In the local view, click Check Now for updates.
  4. I turned off (saved 110MB) but then it came back and wanted to update them again; removed them by:
# rm -rf /usr/share/activities/TamTam*.activity/ <- this didnt actually do much, files were in the home dir
# cd /home/olpd/Activities
# rm -rf TamTam*.act*
Biology - Biol* -> not in home
Distance - Dis*
Gmail - Gma*
Implode - Implod* 
JamendoMusic - Jamendo* -> not in home
Maze - Maz*
Memorize - Mem*
Moon - Moo*
NatureImages - Nature* -> not in home
Scratch - Scr*
Speak - Spe*
TamTamEdit - TamTam*
TamTamJam
TamTamMini
TamTamSynthLab
TranslationDictionary - Translation* -> not in home
TurtleArt - Tur*
WikiBooks - Wiki*
WikiPedia
WikisliceChemistry
WorldDigitalLibrary - World*
WorldFactbookMaps
Xaos - Xao*

Note: Measure can act as an oscilloscope.

OLPC Internet Settings[edit source]

Use these settings:

Key Type: Hex (40/128-bit)
Key: xxxxxxxxxx
Authentication  Type: Open System

Typical OLPC Tasks[edit source]

List of linux commands

Some terminal commands

list of linux command line tasks

configure.ac files

Shutdown

sudo shutdown -h now

or

su
reboot

How much of my disk is full?

# df

Where am I?

pwd

Whats here?

file *

I want to edit a text file...

nano filenamehere

What are the environment variables? (ok, not typical task but..)

env

To Install Python[edit source]

Python 2.5.14 was already installed.. but...

yum install python python-tk python-psyco

python is installed in

/usr/lib/python2.5

how to get tkinter installed (need tcl, tk) How to install Tkinter

yum install tcl tk
yum install tkinter
python
import _tkinter
import Tkinter
Tkinter._test()  (window opened after a few seconds)

Old Way (didnt work) To Install Psyco[edit source]

download the files to the directory you were in when running wget/codespeak/svn/psycho/dist

cd ~/olpc/
su
wget -r http://codespeak.net/svn/psycho/dist -I /svn/psycho/dist/

If gcc is required:

su
yum install gcc

To install psyco?

su olpc
cd ~/codespeak.net/svn/psyco/dist
python setup.py install

This didn't work; perhaps python-dev wasn't installed? Errors:

/usr/include/python2.5/pyconfig.h:1:27 error: bits/wordsize.h: No such file or directory
/usr/lib/gcc/i386-redhat-linux/4.1.2/include/limits.h:122:61 error: limits.h: No such file or directory
/usr/include
yum install gcc-dev

Java[edit source]

su
yum -y install java-1.6.0-openjdk

yum install openjdk-6-jdk doesnt work

had to clear out some activities to make room for java; failed due to space first few times.

C[edit source]

yum install glibc-headers
yum install gcc
yum install tcl tk cmake make 
yum install gcc-c++

gcdump[edit source]

gcdump and gcgen instructions.

su
cd /home/olpc
wget http://github.com/Ralith/reprap-utils/tarball/master
cd download.github.com
tar -xvf Ralith-reprap-utils-xxxxx.tar.gz
cd Ralith-reprap-utils-xxxxx
cmake . && make && make install

GLUT not found; gcview will not be built

exit
cd /usr/bin
./gcdump
echo M105 (returns T:21 B:-15 ok)
echo M104 S100 (hotend is now heating up; stabilized around 100)
echo M104 S0 (hotend cooling)
CTRL+D (to exit)
  • seems to be working on the OLPC, but may need some gcode replacement for the extruder

GCODE listing, 5D gcode

ReplicatorG on OLPC[edit source]

cd /home/olpc
wget http://web.archive.org/web/20160607032318/http://replicatorg.googlecode.com/files/replicatorg-0018-linux-r0.tgz
tar -xzf replicatorg-0018-linux-r0.tgz
cd replicatorg-0018
./replicatorg (opens)

Errors (cant connect to firmware):

no rxtxSerial in java.library.path (as starts)
java.lang.NoClassDefFoundError: Could not initialize class gnu.io.CommPortIdentifier

Need these libraries:

yum install autoconf automake libtool gnu 

adding environment variables environment variables and more

which java (/usr/bin/java) (though java open jdk is at /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/jre) [1]
JAVA_HOME=/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/jre
export JAVA_HOME

RXTX.org, get the zip from here

wget -r http://rxtx.qbang.org/pub/rxtx/rxtx-2.1-7r2.zip
cd rxtx.qbang.org/pub/rxtx
unzip rxtx-2.1-7r2.zip
cd rxtx-2.1-7r2
sh ./configure (this has errors; not sure rxtx is compatible with openjdk)

info

[

RS232 OLPC Connection[edit source]

su
yum install minicom
minicom -s

To create the config file, set the following information

Download directory: /home/olpc/minicomdata/
Upload directory: /home/olpc/
Prompt for download directory: Yes
Serial device (default /dev/modem): /dev/ttyUSB0
Serial port setup->Bps/.. :19200 8N1
Save setup as dfl

Test with reprap:

  1. plug in and power up reprap on ttyUSB0 (the USB port on the left side below the mic and speaker jacks)
  2. Run minicom
minicom
M105 (ok)
M104S100 (ok)
M105 (T:71 B:12 ok)
M104S0 (ok)

Prolific USB:Serial Driver[edit source]

cd /sys/module/usbserial/
cd /sys/bus/usb-serial/drivers/generic
modprobe usbserial
sudo dmesg|grep –i ttyUSB (finds the reprap boards; this should work to find the PL-2303)

Driver download from prolific

mailing list post about testing prolific drivesr on olpc

XO serial adapters

installing PL2303 drivers on UnSlung, OpenSlug

Patch for SuSe

driver info

PL2032 works out of the box

how to setup a USB modem

ModBus Support[edit source]

cutecom can send hex: (but this didn't work with sending modbus hex commands)

sudo yum install cutecom

math library

sudo yum install bc
echo 'obase=16; ibase=10; 108' | bc    (dec to hex)

upgrade libtools to 2.2:

yum remove libtool (note on our system we manually installed libtool-1.5.24; therefore we can yum remove and have two versions installed)
wget http://ftp.gnu.org/gnu/libtool/libtool-2.2.10.tar.gz
tar -zxvf libtool-2.2.10.tar.gz
cd libtool-2.2.10.tar.gz
./configure --prefix=/usr/
make
make install

install libmodbus

cd ~
(rm -r stephane-c.. if have already installed before)
wget "http://github.com/stephane/libmodbus/tarball/master"
tar -xvf stephane-....tar.gz
cd stephane...
nano configure.ac
AC_PROG_LIBTOOL (add this under # check for programs)
^X 
Y
<enter>
./autogen.sh
./configure
make
sudo make install

Now: - test /tests/ functions - test with tristar

[2] modbus specs (1996)

com0com null modem emulator

modbus emulator

Didnt Work[edit source]

wget "http://downloads.sourceforge.net/project/qmodbus/qmodbus/0.1.0/qmodbus-0.1.0.tar.bz2" -O qmodbus-0.1.0.tar.bz2
tar -xvf qmodbus-0.1.0.tar.bz2
sudo yum install qmake
qmake (doesnt work)
cmake . && make && make install (error, cant find Qt qmake)


wine to run tristar program

sudo yum install wine
wget -r http://www.morningstarcorp.com/en/support/library/MSview.1.3.14.zip
cd www.morningstarcorp.com/en/support/library/
cp MSView.1.3.14 /home/olpc/MSView1.3.14.zip
cd ~
unzip MSView.1.3.14.zip
wine setup.exe
cd .wine/drive_c/Program\ Files/MSView
wine MSView.exe (cant find the MSView/devices.xml; the file is there... maybe corrupted, power was lost as it installed;
cd ~
wine setup.exe -> repair


libmodbus using libtool 1.5.24

wget "http://github.com/stephane/libmodbus/tarball/master"
tar -xvf stephane-....tar.gz
cd stephane...
./autogen.sh
 error: libtool library used but LIBTOOL is undefined.  

Soln: http://lists.freebsd.org/pipermail/freebsd-questions/2007-June/152653.html

sudo ln -s /usr/share/aclocal /usr/local/share/aclocal  didnt work

http://labs.buyscripts.in/projects/1/wiki/Libtool_library_used_but_LIBTOOL_is_undefined

sudo yum remove libtool
sudo yum install libtool
./autogen.sh : same error

adding to configure.ac:

nano configure.ac

add

AC_PROG_LIBTOOL under # check for programs
^X Y
./autogen.sh 
 error: ./configure: line 20847 syntax error near unexpected token 'disable-static'  'LT_INIT(disable-static)'
./configure
 error: ./configure: line 20847 syntax error near unexpected token 'disable-static'  'LT_INIT(disable-static)'

possibly libtool version problem: http://bugs.mysql.com/bug.php?id=51009

libtool --version
 1.5.24
sudo yum remove libtool
wget http://ftp.gnu.org/gnu/libtool/libtool-1.5.24.tar.gz
tar -zxvf libtool-1.5.24.tar.gz
cd libtool-1.5.24
./configure --prefix=/usr/
make
sudo make install
./autogen.sh same errors
Cookies help us deliver our services. By using our services, you agree to our use of cookies.