File: README.Debian

package info (click to toggle)
brickos 0.9.0.dfsg-12.2
  • links: PTS
  • area: main
  • in suites: bullseye, sid
  • size: 1,848 kB
  • sloc: ansic: 9,144; cpp: 860; asm: 693; makefile: 656; sh: 124; perl: 61
file content (52 lines) | stat: -rw-r--r-- 2,250 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
brickOS for Debian
------------------

To start with brickOS on Debian:

- Utilities, libraries, brickOS kernel and demos have all been installed
  by this package.
- Copy the /usr/share/doc/brickos/examples/demo/ directory contents to
  a directory of your choosing. (If you wish to use c++ copy the files 
  from the demo/c++ subdirectory, instead.)
  NOTE: you may have to uncompress some of the example files.  Simply do 
  a one-time:  gzip -d *.gz  
- Type 'make' in this new directory to compile the demos.
- The utilities are already in your PATH. Set RCXTTY if you use a non-
  standard port for the IR tower.  [example: 'export RCXTTY=/dev/ttyS1']
- Use firmdl3 to download /usr/lib/brickos/brickOS.srec to your RCX.
- Type "dll demo/helloworld.lx" (where demo is the directory in which you
  just made the demos). If all is well, it should be automatically
  relocated and  transmitted to program slot 0. Press the RUN key to 
  run. The program stops automatically.
- Type "dll -p1 demo/rover.lx" to transmit another demo to program slot 1.
  Use the PRGM key to select the desired program. Try RUN.
- NOTE: A 'make realclean' will remove all built files.

- Stop your program with the RUN or ON/OFF key. Programs are preserved over
  ON/OFF now.  Press ON/OFF and PRGM simultaneously to erase brickOS.
  

If things don't quite work, work at it.


For your own projects,

- Make a directory in a location of your choosing (you may wish to make
  a ~/brickOS directory and place your projects below there).
- Copy 'Makefile' from the /usr/share/doc/brickos/examples directory to this
  new directory.
- Put your main routine into myproject.c. (or myproject.C if using C++)
- If you need more source files, add them in the Makefile.
- type "make myproject.lx && dll myproject.lx" to build and then download 
  your new code.

In case anyone is wondering, dll is short for dynamic linker and loader.

For more documentation, look in /usr/share/doc/brickos/ and on the web at 
http://brickos.sourceforge.net/

You can also pose questions, and get good help 
at: http://lugnet.com/robotics/rcx/legos/

------------------------------------------------------------------------
brickOS Copyright (C) 1998-2002 by Markus L. Noga <markus@noga.de>