Skip to content

Commit

Permalink
rpi doc update
Browse files Browse the repository at this point in the history
  • Loading branch information
hatchcliff authored and mikrosk committed Oct 15, 2018
1 parent e6c51a6 commit a0069c8
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 36 deletions.
72 changes: 39 additions & 33 deletions DOC/BUILD.RPI
Original file line number Diff line number Diff line change
@@ -1,36 +1,37 @@
RASPBERRY PI SYSTEM REQUIREMENTS
================================

See README.RPI for system requirements.

PRELIMINARY
===========
Open a terminal on the src directory.
Open a terminal on the directory containing your atari800 files.

CHECK THE CONFIGURE FILE
------------------------
Check whether the "configure" file is present. If it is not, generate it by typing:
CREATE THE CONFIGURE FILE
-------------------------
Ensure that you have autoconf installed:

./autogen.sh
sudo apt-get install autoconf

See INSTALL for further details.
Create the configure file:

CLEANUP
-------
If you have been using your machine to native compile atari800 and now wish to
cross compile or vice versa, clear out the object files by typing:
./autogen.sh

make clean
See INSTALL for further details.


NATIVE COMPILE ON THE RASPBERRY PI
==================================
Ensure the SDL development files are installed, then configure and make:
Ensure the SDL development files are installed:

sudo apt-get install libsdl1.2-dev

Configure and make:

./configure --target=rpi
make

Make generates the executable file src/atari800.


CROSS COMPILE FOR THE RASPBERRY PI
==================================
Expand Down Expand Up @@ -81,7 +82,7 @@ See COPY SDL FILES below for details.
CONFIGURE AND COMPILE
---------------------
Place the following commands in a bash script called compile_rpi or
something similar. Place this in the src directory . You can then execute
something similar, and place it in your atari800 directory . You can then execute
the script with ./compile_rpi. Note you will have to substitute your own
version of PATH (that is your normal PATH with the toolchain’s bin directory
tagged on the end), also your own version of RPI_SDK. The exported symbols
Expand All @@ -98,15 +99,17 @@ normal setup of your machine.
./configure --target=rpi --host=arm-linux -with-sdl-prefix=$RPI_SDK
make

Your system might not have all the required files in place at this stage, so
may fail. Configure or make will report any files that are missing. Copy the
Make generates the executable file src/atari800.

Your system might not have all the required files in place at this stage, in which
case configure or make will fail and report any files that are missing. Copy the
missing files from the Raspberry Pi into the toolchain (see MISSING FILES below
for guidance). Rerun the script until it completes without error.

RUN
---
Copy the generated atari800 file to the Raspberry Pi, relax its permissions to
allow anybody to run it as an excutable, and run it.
Copy the generated atari800 file to the Raspberry Pi, adjust its properties
to give execution permission to anyone and run it.


COMPILE WITH THE LINARO TOOLCHAIN FROM LINUX SOURCE
Expand Down Expand Up @@ -138,7 +141,7 @@ See COPY SDL FILES below for details.

CONFIGURE AND COMPILE
---------------------
Place the following commands in a bash script in the src directory called
Place the following commands in a bash script in your atari800 directory called
compile_rpi or something similar. You can then execute the script with
./compile_rpi. The exported symbol RPI_SDK applies only to the process
executing the script and will not be retained on your machine.
Expand All @@ -147,30 +150,33 @@ executing the script and will not be retained on your machine.
./configure --target=rpi --host=arm-linux –with-sdl-prefix=$RPI_SDK
make

Your system might not have all the required files in place at this stage, so
may fail. Configure or make will report any files that are missing. Copy the
Make generates the executable file src/atari800.

Your system might not have all the required files in place at this stage, in which
case configure or make will fail and report any files that are missing. Copy the
missing files from the Raspberry Pi into the toolchain (see MISSING FILES
below for guidance). Rerun the script until it completes without error.

RUN
---
Copy the generated atari800 file to the Raspberry Pi, relax its permissions to
allow anybody to execute it, and run it.
Copy the generated atari800 file to the Raspberry Pi, adjust its properties
to give execution permission to anyone and run it.


COPY SDL FILES
==============
Copy the following from the rpi into the toolchain’s lib directory:
file /usr/lib/arm-linux-gnueabihf/libSDL-1.2.so.0.11.4 (or later version)
Create a symbolic link called libSDL.so to the copied file in the lib
directory.
file /usr/lib/arm-linux-gnueabihf/libSDL-1.2.so.0.11.4 (or later version).

Create a symbolic link called libSDL.so to the copied file in the lib directory.

Copy the the following from the rpi into the toolchain’s include directory:
directory /usr/include/SDL

Copy the following from the rpi into the toolchain’s bin directory:
file /usr/bin/sdl-config
Ensure permissions are relaxed on this file to allow it to be executed.

Ensure permissions are relaxed on sdl-config to allow it to be executed.


MISSING FILES
Expand All @@ -186,11 +192,11 @@ Copy the following from the rpi into the toolchain’s lib directory:
file /opt/vc/lib/libbrcmGLESv2.so

Copy the following from the rpi into the toolchain’s include directory:
file /opt/vc/include/bcm_host.h
directory /opt/vc/include/EGL
directory /opt/vc/include/GLES2
directory /opt/vc/include/interface
directory /opt/vc/include/KHR
directory /opt/vc/include/vcinclude
file /opt/vc/include/bcm_host.h
directory /opt/vc/include/EGL
directory /opt/vc/include/GLES2
directory /opt/vc/include/interface
directory /opt/vc/include/KHR
directory /opt/vc/include/vcinclude


21 changes: 18 additions & 3 deletions DOC/README.RPI
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
SYSTEM SPECIFICATION
====================

Atari800 version 4 requires a Pi2 or faster machine running Raspbian Stretch
or later.


VIDEO MODE
==========

Note: you need to setup correct video mode for PAL/NTSC machines (proper
video/audio sync and vsync).edit /boot/config.txt

Expand All @@ -33,3 +30,21 @@ These modes always improve synchronisation but the effect may not be
immediately obvious depending on what you are using the emulator for.
The benefit is most clearly seen on scrolling games like Boulderdash
where the whole background moves with no hint of flicker.

Best results are obtained with widescreen monitors. A narrow monitor
such as 1280x1024 will distort the aspect ratio and there are no emulator
settings that can be adjusted to bring it back.

VIDEO GROUP
===========
If you are not logged on as the default user (pi), atari800 may crash
on startup and report: * failed to open vchiq instance.

To fix this, add yourself to the video group:

sudo usermod -a -G video $(whoami)

and reboot.



0 comments on commit a0069c8

Please sign in to comment.