Contiki OS for 6502 based computers
Go to file
Oliver Schmidt c2a71ee62b Updated several aspects regarding Ethernet drivers.
I. Build Ethernet drivers individually for each target.

After all the Ethernet cards/carts are different enough to ask for customized drivers. Building the drivers individually opens the option to use .ifdef's to customize them.

II. Removed Ethernet driver I/O base.

So far the base address of the Ethernet chip was a general property of all Ethernet drivers. It served two purposes:
1. Allowing to use a single Ethernet driver for a certain Ethernet chip, no matter what machine was connected to the chip.
2. Allowing use an Ethernet card in all Apple II slots.

However, we now use customized Ethernet drivers for the individual machines so 1.) isn't relevant anymore. In fact one wants to omit the overhead of a runtime-adjustable base address where it isn't needed.

So only the Apple II slots are left. But this should rather be a driver-internal approach then. We should just hand the driver the slot number the user wants to use and have the driver do its thing.

III. With per-target Ethernet drivers we can have per-target MAC addresses.

IV. Added support for RR-Net MK3 unique MAC addresses.

The RR-Net MK3 can be operated in two modes:

- In cartrigde mode it has a startup-ROM that sets the CS8900A MAC address to the unique MAC address.
- In clockport mode the driver has to read the two lowest MAC address bytes from the EEPROM and combine them with 28:CD:4C:FF.

See http://wiki.icomp.de/wiki/RR-Net#Detecting_MK3 for details.

The driver first checks if the current CS8900A MAC address starts with 28:CD:4C:FF. If it does, it overwrites its built in default MAC address with the CS8900A MAC address.

If the CS8900A MAC address didn't start with 28:CD:4C:FF, it checks if there are two valid MAC address bytes in the EEPROM. If they are there, it overwrites its built in default MAC address with a combination of 28:CD:4C:FF and those two bytes.

V. Added support for the upcoming 'Dracarys' Ethernet PBI for the ATARI.

See http://atariage.com/forums/topic/287376-preannouncement-dragon-cart-ii/ for details on Dracarys.

So far there was only one Ethernet solution for the ATARI. Therefore the relevant driver was loaded statically. With now having two solutions we have to load the corresponding driver dynamically (like on the other machines). Fortunately this doesn't mean significant additional overhead as there are several mouse drivers for the ATARI asking for dynamic mouse driver loading. Therefore the dynamic driver loading infrastructure was linked already.

Another aspect of more than one Ethernet solution is that the Ethernet config program becomes necessary on the ATARI to select the correct driver. Although that program is pretty simple and therefore rather small it means that now only one "major" program fits on a 130kB disk. So we need now 5(!) 130kB disk images instead 3 so far.
2019-05-08 16:46:47 +02:00
apps Added boundary checks when parsing CoAP packets. 2017-06-14 17:00:53 +02:00
core Merge pull request #2228 from alexandruioanp/ws-null-term 2017-09-25 14:28:44 +02:00
cpu Updated several aspects regarding Ethernet drivers. 2019-05-08 16:46:47 +02:00
dev Make duty-cycling runtime configurable with timers for sample period and warmup time 2017-10-10 10:34:10 +02:00
doc Update code-style.c 2016-12-03 12:21:04 +01:00
examples Merge pull request #2203 from herjulf/AES128HW 2017-06-22 14:14:17 +02:00
lib Add support for the FAT file system 2016-11-27 22:50:44 +01:00
platform Updated several aspects regarding Ethernet drivers. 2019-05-08 16:46:47 +02:00
regression-tests Merge pull request #1932 from g-oikonomou/contrib/cc1350/lp-and-st 2017-04-24 15:34:22 +01:00
tools Updated several aspects regarding Ethernet drivers. 2019-05-08 16:46:47 +02:00
.gitattributes Add binary files file extension 2015-10-22 16:19:39 +02:00
.gitignore Merge pull request #1469 from wbober/nrf52dk-pr 2016-06-01 23:11:39 +02:00
.gitmodules Add sensniff as a submodule 2016-12-04 18:43:17 +00:00
.travis.yml Due to a travis update on September 1, 2017, sudo: and dist: are required 2017-09-02 19:37:59 +02:00
CONTRIBUTING.md Updated CONTRIBUTING.md to reflect Contiki's new merging policy 2015-08-18 22:06:56 +02:00
LICENSE
Makefile.include Extended SOURCEDIRS variable with EXTRALDIRS variable in Makefile.include 2016-02-15 09:37:38 +01:00
README-BUILDING.md Rename to md 2013-03-26 23:15:37 +01:00
README-EXAMPLES.md Several minor consistency improvements. 2013-07-31 00:55:31 +02:00
README.md Duplicate https://github.com/oliverschmidt/contiki/wiki 2018-11-03 16:43:34 +01:00

Contiki OS for 6502 based computers is available for four target systems. Select one of the following links for more information on download and usage (or learn more on the history of Contiki OS):

Contiki requires Ethernet hardware. There's no support for TCP/IP over serial connections whatsoever in the standard build. There's experimental support for SLIP instead of Ethernet when building with the environment variable SLIP defined.

On the C64 and the C128 there are two supported Ethernet carts:

On the Apple //e there are three supported Ethernet cards:

On the ATARI XL there is one supported Ethernet cart: