Index: head/comms/Makefile =================================================================== --- head/comms/Makefile (revision 538093) +++ head/comms/Makefile (revision 538094) @@ -1,223 +1,224 @@ # $FreeBSD$ # COMMENT = Communication utilities SUBDIR += acfax SUBDIR += airspy SUBDIR += aldo SUBDIR += amtterm SUBDIR += anyremote SUBDIR += apitran SUBDIR += aprsd SUBDIR += atslog SUBDIR += bfhist SUBDIR += bforce-kst SUBDIR += birda SUBDIR += bladerf SUBDIR += bluegps SUBDIR += bluez-firmware SUBDIR += bpl+ SUBDIR += chirp SUBDIR += chu SUBDIR += comserv SUBDIR += concordance SUBDIR += congruity SUBDIR += conserver-com SUBDIR += cqrlog SUBDIR += cubicsdr SUBDIR += cutecom SUBDIR += cwdaemon SUBDIR += cwstudio SUBDIR += dcf77pi SUBDIR += deforaos-phone SUBDIR += dfu-programmer SUBDIR += dfu-util SUBDIR += digiham SUBDIR += direwolf SUBDIR += dsd SUBDIR += dump1090 SUBDIR += ebook2cw SUBDIR += ebook2cwgui SUBDIR += ebusd SUBDIR += echolinux SUBDIR += efax SUBDIR += ems-flasher SUBDIR += fl_moxgen SUBDIR += flamp SUBDIR += flcluster SUBDIR += fldigi SUBDIR += fllog SUBDIR += flmsg SUBDIR += flrig SUBDIR += flwrap SUBDIR += freedv SUBDIR += gammu SUBDIR += gkermit SUBDIR += gnocky SUBDIR += gnokii SUBDIR += gnuradio SUBDIR += gpredict SUBDIR += gqrx SUBDIR += gr-osmosdr SUBDIR += grig SUBDIR += gstreamer1-plugins-spandsp SUBDIR += gtkmmorse SUBDIR += hackrf SUBDIR += hamlib SUBDIR += hcidump SUBDIR += hidapi SUBDIR += hylafax SUBDIR += ibp SUBDIR += inspectrum SUBDIR += iwmbt-firmware SUBDIR += java-simple-serial-connector SUBDIR += kb SUBDIR += kermit SUBDIR += klog SUBDIR += libbtbb SUBDIR += libconcord SUBDIR += libfap SUBDIR += libfec SUBDIR += libimobiledevice SUBDIR += libirman SUBDIR += libmodbus SUBDIR += librs232 SUBDIR += libsdr SUBDIR += libsdr-gui SUBDIR += libticables2 SUBDIR += libticalcs2 SUBDIR += libusbmuxd SUBDIR += linrad SUBDIR += liquid-dsp SUBDIR += lirc SUBDIR += locator SUBDIR += lrzsz SUBDIR += lysdr SUBDIR += mbelib SUBDIR += mgetty+sendfax SUBDIR += minicom SUBDIR += mlan3 SUBDIR += morse SUBDIR += multimon-ng SUBDIR += nanovna-saver SUBDIR += nasawash SUBDIR += ncid SUBDIR += nec2c SUBDIR += nmealib SUBDIR += o2sms SUBDIR += obexapp SUBDIR += opencbm + SUBDIR += opencbm-kmod SUBDIR += openobex SUBDIR += openzwave SUBDIR += openzwave-devel SUBDIR += owfs SUBDIR += p5-Cisco-UCS SUBDIR += p5-Device-Gsm SUBDIR += p5-Device-Modem SUBDIR += p5-Device-SerialPort SUBDIR += p5-Fax-Hylafax-Client SUBDIR += p5-Nexmo-SMS SUBDIR += p5-SMS-SMS77 SUBDIR += p5-SMS-Send SUBDIR += p5-SMS-Send-DeviceGsm SUBDIR += p5-SMS-Send-NexmoUnicode SUBDIR += p5-SMS-Send-TW-HiAir SUBDIR += p5-SMS-Send-TW-PChome SUBDIR += p5-SMS-Send-TW-Qma SUBDIR += p5-SMS-Send-TW-ShareSMS SUBDIR += p5-SMS-Send-TW-Socket2Air SUBDIR += p5-SMS-Send-TW-chtsns SUBDIR += p5-SMS-Send-TW-emome SUBDIR += pear-Horde_ActiveSync SUBDIR += pear-Horde_SyncMl SUBDIR += picocom SUBDIR += pr SUBDIR += predict SUBDIR += py-adafruit-ampy SUBDIR += py-bulksms SUBDIR += py-esptool SUBDIR += py-gammu SUBDIR += py-hidapi SUBDIR += py-libconcord SUBDIR += py-lirc SUBDIR += py-qt5-serialport SUBDIR += py-serial SUBDIR += py-xmodem SUBDIR += pyla SUBDIR += qico SUBDIR += qpage SUBDIR += qrq SUBDIR += qsstv SUBDIR += qt5-connectivity SUBDIR += qt5-sensors SUBDIR += qt5-serialbus SUBDIR += qt5-serialport SUBDIR += qtel SUBDIR += quisk SUBDIR += redsea SUBDIR += remserial SUBDIR += rtl-sdr SUBDIR += rubygem-callsign SUBDIR += rubygem-ruby-termios SUBDIR += rubygem-serialport SUBDIR += rxtx SUBDIR += scmxx SUBDIR += scrcpy SUBDIR += sdr-wspr SUBDIR += ser2net SUBDIR += serialoverip SUBDIR += seyon SUBDIR += sms_client SUBDIR += smstools3 SUBDIR += snap7 SUBDIR += soapyairspy SUBDIR += soapybladerf SUBDIR += soapyplutosdr SUBDIR += soapyredpitaya SUBDIR += soapyremote SUBDIR += soapysdrhackrf SUBDIR += soapyuhd SUBDIR += spandsp SUBDIR += splat SUBDIR += sredird SUBDIR += sunxi-tools SUBDIR += svxlink SUBDIR += syncterm SUBDIR += tcpser SUBDIR += telldus-core SUBDIR += thebridge SUBDIR += tilp2 SUBDIR += tio SUBDIR += tits SUBDIR += tkhylafax SUBDIR += tkscanfax SUBDIR += tlf SUBDIR += trustedqsl SUBDIR += twpsk SUBDIR += uarduno SUBDIR += uartlirc SUBDIR += uhd SUBDIR += uird SUBDIR += ujprog SUBDIR += unixcw SUBDIR += usbmuxd SUBDIR += viewfax SUBDIR += vrflash SUBDIR += wsjtx SUBDIR += wwl SUBDIR += wy60 SUBDIR += xastir SUBDIR += xcwcp SUBDIR += xdemorse SUBDIR += xdx SUBDIR += xlog SUBDIR += xmorse SUBDIR += xnec2c SUBDIR += xnecview SUBDIR += yagiuda SUBDIR += yaps SUBDIR += yfklog SUBDIR += zssh .include Index: head/comms/opencbm-kmod/Makefile =================================================================== --- head/comms/opencbm-kmod/Makefile (nonexistent) +++ head/comms/opencbm-kmod/Makefile (revision 538094) @@ -0,0 +1,26 @@ +# Created by: Felix Palmen +# $FreeBSD$ + +PORTNAME= opencbm-kmod +PORTVERSION= ${OCBM_VERSION} +CATEGORIES= comms archivers + +PATCHFILES= ca4c06e7430caf3b2296d4e1e00051fff015fc53.diff \ + 073b833772e4325c7f680d6aeb81bc11844f03ca.diff \ + 3e967551e200d0c03aa4898e482626a7510acd21.diff + +MAINTAINER= felix@palmen-it.de +COMMENT= OpenCBM driver module for parallel-port X[MA]-1541 cables + +LICENSE= GPLv2+ + +USES= kmod uidfix + +WRKSRC_SUBDIR= opencbm/sys/freebsd + +post-install: + ${INSTALL_MAN} ${FILESDIR}/opencbm.4 ${STAGEDIR}${PREFIX}/man/man4 + +.include "../opencbm/Makefile.inc" + +.include Property changes on: head/comms/opencbm-kmod/Makefile ___________________________________________________________________ Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +FreeBSD=%H \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/comms/opencbm-kmod/files/opencbm.4 =================================================================== --- head/comms/opencbm-kmod/files/opencbm.4 (nonexistent) +++ head/comms/opencbm-kmod/files/opencbm.4 (revision 538094) @@ -0,0 +1,86 @@ +.Dd May 27, 2020 +.Dt OPENCBM 4 +.Os +.Sh NAME +.Nm opencbm +.Nd OpenCBM driver for parallel-port X[MA]-1541 cables +.Sh SYNOPSIS +.Nm +.Sh DESCRIPTION +The +.Nm +driver supports Commodore disk drives connected to the parallel port using +an XM(P)-1541 or XA(P)-1541 cable. +.Ss Loader Tunables +The following loader tunables are used to set driver configuration at the +.Xr loader 8 +prompt before booting the kernel, or they can be stored in +.Pa /boot/loader.conf +in order to automatically set them before booting the kernel. +It is also possible to use +.Xr kenv 1 +to change these tunables before loading the +.Nm +driver. +.Bl -tag -width indent +.It Va cbm.cable +Set to 0 or 1 to explicitly select an XM-1541 (0) or XA-1541 (1) type cable. +The default value of -1 will attempt to auto-detect the cable type, which +only works reliably when +.Va cbm.reset +is active and the drive is connected and powered on while loading the +.Nm +driver. +.It Va cbm.hold_clk +Set to 0 explicitly to release the CLK line of the bus when idle. +The default (1) is to strictly follow C64 behavior, always holding the CLK +line. +.It Va cbm.reset +When set to 1 (default), execute a bus reset and wait for response from the +drive while loading the +.Nm +driver. +Set to 0 explicitly to load the driver without having to wait for the bus. +In this case, you should also select a cable type explicity. +.El +.Sh FILES +The +.Nm +driver creates the following device node: +.Bl -tag -width indent +.It Pa /dev/cbm +Device for communicating with a Commodore disk drive over a parallel-port +cable. +.El +.Sh EXAMPLES +To load the driver with a drive connected and powered on, auto-detecting +the cable type: +.Pp +.Dl kldload opencbm +.Pp +To load the driver without issuing a bus reset and selecting an active +(XA-1541) cable: +.Pp +.Dl kenv cbm.cable=1 +.Dl kenv cbm.reset=0 +.Dl kldload opencbm +.Pp +If you want to load the driver at system startup, adding it to +.Va kld_list +in +.Pa /etc/rc.conf +.Ns , +it is recommended to disable +.Va cbm.reset +and explicitly select a cable type in +.Pa /boot/loader.conf +.Ns , +e.g. add the following lines for a passive (XM-1541) cable: +.Pp +.Dl cbm.cable=0 +.Dl cbm.reset=0 +.Sh SEE ALSO +The cables supported by the +.Nm +driver (XM-1541, XA-1541 and their variations) are described on +.Lk https://sta.c64.org/xcables.html Property changes on: head/comms/opencbm-kmod/files/opencbm.4 ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +on \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/comms/opencbm-kmod/pkg-descr =================================================================== --- head/comms/opencbm-kmod/pkg-descr (nonexistent) +++ head/comms/opencbm-kmod/pkg-descr (revision 538094) @@ -0,0 +1,9 @@ +OpenCBM driver module for parallel-port X[MA]-1541 cables + +The OpenCBM package contains user space support programs and development +libraries to control and use CBM serial IEC/IEEE-488 bus devices as used by +most Commodore (CBM) 8-bit machines. + +This port contains the FreeBSD driver for parallel-port cables for OpenCBM. + +WWW: http://opencbm.sourceforge.net/ Property changes on: head/comms/opencbm-kmod/pkg-descr ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +on \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/comms/opencbm-kmod/pkg-plist =================================================================== --- head/comms/opencbm-kmod/pkg-plist (nonexistent) +++ head/comms/opencbm-kmod/pkg-plist (revision 538094) @@ -0,0 +1,2 @@ +/%%KMODDIR%%/opencbm.ko +man/man4/opencbm.4.gz Property changes on: head/comms/opencbm-kmod/pkg-plist ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +on \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property