FreeBSD driver for newer Option HSDPA USB dongles.

The driver have been tested with the following devices

  * Option GlobeSurfer iCON 7.2 (2.4.6Hd firmware)
  * Option GlobeSurfer iCON 225
  * Option iCON 505

Older cards should work just fine with ubsa(4) or any similar
USB-over-serial driver.

Note that this driver should be considered beta and will
work with FreeBSD 8.0 (with USB2) or superior only.
Please use comms/hso-kmod for previous versions of FreeBSD.

WWW: http://www.shapeshifter.se/code/hso/

PR:		ports/142159
Submitted by:	Ganael Laplanche <ganael.laplanche@martymac.com>
This commit is contained in:
Pav Lucistnik 2010-02-07 15:20:54 +00:00
parent 5cf1719413
commit 166127522b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=249385
9 changed files with 154 additions and 0 deletions

View file

@ -143,6 +143,7 @@
SUBDIR += tlf
SUBDIR += trustedqsl
SUBDIR += twpsk
SUBDIR += uhso-kmod
SUBDIR += uird
SUBDIR += unixcw
SUBDIR += uticom

77
comms/uhso-kmod/Makefile Normal file
View file

@ -0,0 +1,77 @@
# New ports collection makefile for: uhso-kmod
# Date created: 28 December 2009
# Whom: Ganael Laplanche <ganael.laplanche@martymac.com>
#
# $FreeBSD$
#
PORTNAME= uhso
PORTVERSION= 20091122
CATEGORIES= comms kld
MASTER_SITES= http://www.shapeshifter.se/pub/hso/
PKGNAMESUFFIX= -kmod
DISTFILES= ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX}
MAINTAINER= ganael.laplanche@martymac.com
COMMENT= Driver for Option HSDPA modem (USB2 version)
CONFLICTS= hso-kmod-[0-9]*
NO_PACKAGE= should be recompiled for a particular FreeBSD kernel
OPTIONS= UHSOCTL "Build uhsoctl tool" on \
DEBUG "Build with debug symbols" off
SUB_FILES= pkg-message
KMODDIR?= /boot/modules
PLIST_SUB+= KMODDIR=${KMODDIR}
MAKE_ENV+= KMODDIR=${KMODDIR}
MAN4= uhso.4
.include <bsd.port.pre.mk>
.if !exists(/usr/src/sys/Makefile)
IGNORE= requires kernel source files
.elif ${OSVERSION} <= 800063
IGNORE= requires FreeBSD 8.0 (with USB2) or superior
.endif
.if !defined(WITHOUT_UHSOCTL)
UHSOCTL_VERSION= 20090820
DISTFILES+= uhsoctl-beta-${UHSOCTL_VERSION}${EXTRACT_SUFX}
WRKSRC_UHSOCTL= ${WRKDIR}/uhsoctl-beta-${UHSOCTL_VERSION}
PLIST_SUB+= PL_UHSOCTL=""
MAN1= uhsoctl.1
.else
PLIST_SUB+= PL_UHSOCTL="@comment "
.endif
.if defined(WITH_DEBUG)
EXTRA_PATCHES+= ${PATCHDIR}/UHSO-DEBUG-patch-Makefile
.endif
post-patch:
.if !defined(WITHOUT_UHSOCTL)
.if defined(WITH_DEBUG)
@${PATCH} -d ${WRKSRC_UHSOCTL} < ${PATCHDIR}/UHSOCTL-DEBUG-patch-Makefile
.else
@${PATCH} -d ${WRKSRC_UHSOCTL} < ${PATCHDIR}/UHSOCTL-NODEBUG-patch-Makefile
.endif
.endif
post-build:
.if !defined(WITHOUT_UHSOCTL)
@cd ${WRKSRC_UHSOCTL} && ${SETENV} NO_MANCOMPRESS= ${MAKE} all
.endif
post-install:
${INSTALL_MAN} ${MAN4:S|^|${WRKSRC}/|} ${PREFIX}/man/man4
.if !defined(WITHOUT_UHSOCTL)
@cd ${WRKSRC_UHSOCTL} && \
${SETENV} DESTDIR=${PREFIX}/ BINDIR=bin MANDIR=man/man NO_MANCOMPRESS= \
${MAKE} install
.endif
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>

6
comms/uhso-kmod/distinfo Normal file
View file

@ -0,0 +1,6 @@
MD5 (uhso-20091122.tar.gz) = 68e96e3d6fab93ba9eab148c1ef79ca7
SHA256 (uhso-20091122.tar.gz) = a861411fecbc1d1f1fb8910026eeafb6331a1a87ec6562f2b46797e92f1db043
SIZE (uhso-20091122.tar.gz) = 14430
MD5 (uhsoctl-beta-20090820.tar.gz) = cb430d12217511554a3d7f13385432db
SHA256 (uhsoctl-beta-20090820.tar.gz) = c512b821c632cd3a5295bae764d30654e2538f42357bca365a7cc9a9edae57b8
SIZE (uhsoctl-beta-20090820.tar.gz) = 10626

View file

@ -0,0 +1,11 @@
--- Makefile.orig 2009-12-28 18:29:47.732668607 +0000
+++ Makefile 2009-12-28 18:29:56.747883459 +0000
@@ -2,7 +2,7 @@
S= ${.CURDIR}/../..
.PATH: $S/dev/usb
-#CFLAGS+= -DUSB_DEBUG=1 -DUHSO_DEBUG=2 -DUHSO_DEBUG_HEXDUMP=1 -g
+CFLAGS+= -DUSB_DEBUG=1 -DUHSO_DEBUG=2 -DUHSO_DEBUG_HEXDUMP=1 -g
KMOD= uhso
SRCS= opt_bus.h opt_usb.h device_if.h bus_if.h usbdevs.h uhso.c

View file

@ -0,0 +1,11 @@
--- Makefile.orig 2009-08-19 14:41:30.923433005 +0000
+++ Makefile 2009-08-19 14:42:03.472847525 +0000
@@ -1,7 +1,7 @@
SRCS= uhsoctl.c
PROG= uhsoctl
CFLAGS+= -g
-#CFLAGS+= -DDEBUG=1
+CFLAGS+= -DDEBUG=1
LDFLAGS+= -lutil
DESTDIR?= /usr/local

View file

@ -0,0 +1,10 @@
--- Makefile.orig 2009-08-19 14:41:30.923433005 +0000
+++ Makefile 2009-08-19 14:42:32.492341064 +0000
@@ -1,6 +1,6 @@
SRCS= uhsoctl.c
PROG= uhsoctl
-CFLAGS+= -g
+#CFLAGS+= -g
#CFLAGS+= -DDEBUG=1
LDFLAGS+= -lutil
DESTDIR?= /usr/local

View file

@ -0,0 +1,17 @@
===============================================================================
This port has installed the uhso kernel module.
1) To load the kernel module at boot time,
add the following line to /boot/loader.conf:
uhso_load="YES"
2) If you have built the uhsoctl utility, use it to connect :
e.g. : uhsoctl -a bredband.tre.se -p 1234 uhso0
3) Enjoy !
===============================================================================

16
comms/uhso-kmod/pkg-descr Normal file
View file

@ -0,0 +1,16 @@
FreeBSD driver for newer Option HSDPA USB dongles.
The driver have been tested with the following devices
* Option GlobeSurfer iCON 7.2 (2.4.6Hd firmware)
* Option GlobeSurfer iCON 225
* Option iCON 505
Older cards should work just fine with ubsa(4) or any similar
USB-over-serial driver.
Note that this driver should be considered beta and will
work with FreeBSD 8.0 (with USB2) or superior only.
Please use comms/hso-kmod for previous versions of FreeBSD.
WWW: http://www.shapeshifter.se/code/hso/

View file

@ -0,0 +1,5 @@
%%PL_UHSOCTL%%bin/uhsoctl
@cwd /boot/modules
uhso.ko
@exec kldxref %D
@unexec kldxref %D