mirror of
https://github.com/dschmenk/apple2pi.git
synced 2024-11-18 21:05:57 +00:00
Update README.md
This commit is contained in:
parent
0549fd3684
commit
c82057e2d1
19
README.md
19
README.md
@ -12,9 +12,8 @@ Installing and configuring the Raspberry Pi: Download the apple2pi project to y
|
||||
|
||||
The following is no longer neessary as the install script carefully makes all the following adjustments automatically. I left this here so you know what the script is doing.
|
||||
|
||||
<comment>
|
||||
|
||||
You will need to disable the Raspbain serial login by editing /etc/inittab and commenting out the line (probably at the very bottom) to look like:<br>
|
||||
>You will need to disable the Raspbain serial login by editing /etc/inittab and commenting out the line (probably at the very bottom) to look like:<br>
|
||||
<code>
|
||||
\#T0:23:respawn:/sbin/getty -L ttyAMA0 115200 vt100
|
||||
</code>
|
||||
@ -24,29 +23,27 @@ You will also want to disable the console messages that go out to the serial por
|
||||
dwc_otg.lpm_enable=0 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait
|
||||
</code>
|
||||
|
||||
If you are using an HDMI port to display video, skip the overscan settings. This was for my monitor and your values may vary (a lot). I adjust the NTSC output so it fits nicely on my //c monitor, I edited the setting in /boot/config.txt such that:
|
||||
>If you are using an HDMI port to display video, skip the overscan settings. This was for my monitor and your values may vary (a lot). I adjust the NTSC output so it fits nicely on my //c monitor, I edited the setting in /boot/config.txt such that:
|
||||
|
||||
<code>
|
||||
><code>
|
||||
overscan_left=26<br>
|
||||
overscan_right=-8<br>
|
||||
overscan_top=-8<br>
|
||||
\#overscan_bottom=16<br>
|
||||
</code>
|
||||
|
||||
To run the a2pid daemon automatically at boot time, edit /etc/rc.local and add:
|
||||
>To run the a2pid daemon automatically at boot time, edit /etc/rc.local and add:
|
||||
|
||||
<code>
|
||||
><code>
|
||||
/usr/local/bin/a2pid --daemon
|
||||
</code>
|
||||
|
||||
right before the line:
|
||||
>right before the line:
|
||||
|
||||
<code>
|
||||
><code>
|
||||
exit 0
|
||||
</code>
|
||||
|
||||
</comment>
|
||||
|
||||
followed by rebooting the Raspberry Pi.
|
||||
|
||||
NOTE - For USB serial port users and non-Raspberry Pi owners: This isn't actually tied to the Raspberry Pi in any way, except for the default serial port used to connect the Pi to the Apple II. On most up-to-date Linux distributions, you should be able to build all the files. To run the daemon on a specific serial port, just add it as a command line option i.e. a2pid --daemon /dev/ttyUSB0
|
||||
@ -55,7 +52,7 @@ Reboot the Apple II with the newly created floppy in the start-up drive. If eve
|
||||
|
||||
Using a2pi: The Apple //c and //e keyboards are pretty minimal compared to modern keyboards, and the Apple II Mouse only has one button. In order to provide most of the funcitonality required of modern OSes, the Open-Apple and Closed-Apple keys are used as modifiers to enhance the keyboard and mouse. On the keyboard, Open-Apple acts just like the Alt key. The Closed-Apple key acts like a Fn key, changing the actual key codes. Currently, the Closed-Apple key will modify the number keys 1-0 as funciton keys F1-F10 and the arrow keys as Left-Arrow=Home, Right-Arrow=End, Up-Arrow=PgUp, Down-Arrow=PgDn. For the mouse, when you click the mouse button by itself, that is the left(default)-click. Open-Apple along with the mouse button will return the right-click, and Closed-Apple along with the mouse button will return the middle-click. If you should ever need to exit a2pi, press Closed-Apple ESC on the Apple II keyboard. This will exit both the code on the Apple II and the Raspberry Pi. This is useful when developing and debugging the drivers/daemons. a2pid can be run directly (not as a daemon) by leaving off the '--daemon' option. Enabling printf's in the code allows one to watch the packets arrive and get processed when run from a network ssh session.
|
||||
|
||||
Theory of operation: Apple II Pi works by running code on the Apple II and the Raspberry Pi, talking to each other with a simple protocol. The Apple II basically appears to the Raspberry Pi as an external peripheral, not unlike a USB keyboard and mouse. The Apple II floppy boots into ProDOS and runs a simple machine language program that scans the keyboard, and mouse if present, sending the events out the serial port to the Raspberry Pi. It is a very simple protocol and the serial port is running at 115.2K baud, so it is fast and low overhead. On the Raspberry Pi, a little daemon runs, waiting for packets on the serial port, converts the Apple II events into Linux compatible events, and inserts them into the input subsystem. This daemon also has a socket interface (port 6502) that can be used to access the Apple II memory and execute arbitrary code. Look at a2lib.c for implementation.
|
||||
Theory of operation: Apple II Pi works by running code on the Apple II and the Raspberry Pi, talking to each other with a simple protocol. The Apple II basically appears to the Raspberry Pi as an external peripheral, not unlike a USB keyboard and mouse. The Apple II floppy boots into ProDOS and runs a simple machine language program that scans the keyboard, and mouse if present, sending the events out the serial port to the Raspberry Pi. It is a very simple protocol and the serial port is running at 115.2K baud, so it is fast and low overhead. On the Raspberry Pi, a little daemon runs, waiting for packets on the serial port, converts the Apple II events into Linux compatible events, and inserts them into the input subsystem. This daemon also has a socket interface (port 6551) that can be used to access the Apple II memory and execute arbitrary code. Look at a2lib.c for implementation.
|
||||
|
||||
Enjoy,
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user