NETBOOT65 FOR THE C64

There are 2 major 'flavours' of the NB65 client, the major difference being whether the cart supports UDP only (but allows access to BASIC), or UDP + TCP (but loses access to BASIC). The reason for this is the UDP only version of the client fits into an 8KB cartridge, whereas the TCP code pushes the cartridge size up to 16KB, and the upper half of a 16KB cartridge sits in the same memory location as BASIC.

Within the major flavours, there are also variations in media - the majority of code is identical between the different media but there are different headers etc. The supported media are:

filenameflavourmediacommand to use in VICE
nb65_c64_ram.prgUDP only (+ BASIC)RAM x64.exe nb65_c64_ram.prg
nb65_std_cart.binUDP only (+ BASIC)standard 8KB cartx64.exe -cart8 nb65_std_cart.bin
nb65_tcp_cart.binUDP/TCP (no BASIC)standard 16KB cartx64.exe -cart16 nb65_tcp_cart.bin
nb65_tcp_cart_rr.binUDP/TCP (no BASIC)Retro Replay cart imagex64.exe -cartrr nb65_tcp_cart_rr.bin

USING THE CARTRIDGE

When the cartridge starts, it will attempt to configure the IP stack via DHCP. If the DHCP config fails (either by timing out, or the user press RUN/STOP) then the IP stack will fall back to using the IP configuration built into the cartridge. See the section "IP CONFIGURATION" for info on how to modify the cartridge defaults prior to burning an image.

Once the IP stack is initialised, the "main menu" screen will be displayed. There are slight variations between the menus shown on the 2 "flavours".

Main Menu - UDP only carts

Main Menu - UDP/TCP carts

Net Apps - UDP/TCP carts

Gopher Client - UDP/TCP carts

Once a gopher resource is loaded, the following keys are active: If the page currently being displayed has links to further resources in it, each link will be displayed starting with a highlighted letter (e.g. the first link on a page will have an inverse "A" next to it, the 2nd link on a page will have an inverse "B" next to it etc). Press the letter assigned to the link to load up that resource.

IP CONFIGURATION

There is a script in the "bin" folder called "set_ip_config.rb" that can be used to modify the MAC address and IP config details in the cart image before it is burned. For example, to set the MAC address and DNS servers, use this command:
set_ip_config.rb nb65_std_cart.bin mac ab:cd:ef:12:34:56 dns 10.5.1.1
run "set_ip_config.rb" with no parameters to see all the options for what can be configured.

STARTING THE SERVER

  1. unzip the archive somewhere on your local hard drive
  2. start the bin/tftp_server.rb script (e.g. by double-clicking on it)

ADDING MORE FILES

Only single-load files can be used. The files need to be in "PRG" format, i.e.the first 2 bytes of the file must be the load address (little-endian, i.e. low/high). The files also need to have a file extension of ".PRG" (in upper case, if your operating system of choice is case sensitive).

Files need to be placed in the 'boot/' folder.

Due to a limitation in the menu selection code, only the first 128 PRG files in the boot/ folder can be selected.

ERROR CODES

Most network functions will return an 8 bit error code if things go wrong.
ERROR CODEDESCRIPTION
$80PORT IN USE
$81TIMEOUT ON RECEIVE
$82TRANSMIT FAILED
$83TRANSMISSION REJECTED BY PEER
$84INPUT TOO LARGE
$85DEVICE FAILURE
$86ABORTED BY USER
$87LISTENER NOT AVAILABLE
$88NO SUCH LISTENER
$89CONNECTION RESET BY PEER
$8ACONNECTION CLOSED
$90FILE ACCESS FAILURE
$A0MALFORMED URL
$A1DNS LOOKUP FAILED
$FEOPTION NOT SUPPORTED
$FFFUNCTION NOT SUPPORTED

REQUIREMENTS

  1. RR-NET or compatible adaptor (to use under VICE, you will need pcap or winpcap installed)
  2. (RECOMMENDED) a DHCP server on your network
  3. a working ruby installation

LICENSE

NETBOOT65 is licensed under the same terms as IP65, the Mozilla Public License Version 1.1.

SOURCE CODE

Browse online at http://netboot65.svn.sourceforge.net/viewvc/netboot65/ or else download the whole tree through SVN with the following instruction set:
svn co https://netboot65.svn.sourceforge.net/svnroot/netboot65 netboot65 

AUTHOR

Jonno Downes - jonno@jamtronix.com