Date: Sun, 13 Jun 2021 20:24:32 GMT From: Warner Losh <imp@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: eaaf120a0f21 - main - systuils/gobi_loader: Firmware Loader for Qualcomm Gobi USB Chipsets Message-ID: <202106132024.15DKOW4M041242@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/ports/commit/?id=eaaf120a0f219067b433684bd9415a5354f4b8c9 commit eaaf120a0f219067b433684bd9415a5354f4b8c9 Author: Marek Zarychta <zarychtam@plan-b.pwste.edu.pl> AuthorDate: 2021-06-13 20:05:04 +0000 Commit: Warner Losh <imp@FreeBSD.org> CommitDate: 2021-06-13 20:21:32 +0000 systuils/gobi_loader: Firmware Loader for Qualcomm Gobi USB Chipsets FreeBSD trimmed version / port of the gobi_oader, originally from http://www.codon.org.uk/~mjg59/gobi_loader which likely never worked on FreeBSD. This will load the firmware of the GOBI u3g parts on insertion. Reviewed by: imp (tweaked sample file from original) Reviewed by: daniel.engberg.lists@pyret.net Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D22938 --- sysutils/gobi_loader/Makefile | 26 ++++++++++++++++++++++++++ sysutils/gobi_loader/distinfo | 3 +++ sysutils/gobi_loader/files/gobi.conf.sample.in | 8 ++++++++ sysutils/gobi_loader/files/patch-Makefile | 9 +++++++++ sysutils/gobi_loader/files/pkg-message.in | 15 +++++++++++++++ sysutils/gobi_loader/pkg-descr | 8 ++++++++ 6 files changed, 69 insertions(+) diff --git a/sysutils/gobi_loader/Makefile b/sysutils/gobi_loader/Makefile new file mode 100644 index 000000000000..fd45f13b9b94 --- /dev/null +++ b/sysutils/gobi_loader/Makefile @@ -0,0 +1,26 @@ +PORTNAME= gobi_loader +DISTVERSION= g20191227 +CATEGORIES= sysutils net + +MAINTAINER= zarychtam@plan-b.pwste.edu.pl +COMMENT= Firmware Loader for Qualcomm Gobi USB Chipsets + +LICENSE= GPLv2 +LICENSE_FILE= ${WRKSRC}/LICENSE + +USE_GITHUB= yes +GH_ACCOUNT= mzary +GH_TAGNAME= fbecd85 + +SUB_LIST+= PREFIX=${PREFIX} +SUB_FILES= gobi.conf.sample pkg-message + +PLIST_FILES= ${PREFIX}/sbin/gobi_loader \ + "@sample ${PREFIX}/etc/devd/gobi.conf.sample" + +do-install: + ${INSTALL_DATA} ${WRKSRC}/../gobi.conf.sample \ + ${STAGEDIR}${PREFIX}/etc/devd/gobi.conf.sample + ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}/${PREFIX}/sbin + +.include <bsd.port.mk> diff --git a/sysutils/gobi_loader/distinfo b/sysutils/gobi_loader/distinfo new file mode 100644 index 000000000000..ffceaf046ec9 --- /dev/null +++ b/sysutils/gobi_loader/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1577476084 +SHA256 (mzary-gobi_loader-g20191227-fbecd85_GH0.tar.gz) = 9e0219dad9855c4d6be7004348aff0e1ee17936759fe80f63166d1b2005b1aa0 +SIZE (mzary-gobi_loader-g20191227-fbecd85_GH0.tar.gz) = 12241 diff --git a/sysutils/gobi_loader/files/gobi.conf.sample.in b/sysutils/gobi_loader/files/gobi.conf.sample.in new file mode 100644 index 000000000000..e25177115ec3 --- /dev/null +++ b/sysutils/gobi_loader/files/gobi.conf.sample.in @@ -0,0 +1,8 @@ +# Load GOBI U3G QDL modem firmware. +# Adjust VID, PID and port. Remove -2000 switch if not required. + +attach 100 { + match "vendor" "0x03f0"; + match "product" "0x241d"; + action "/usr/local/sbin/gobi_loader -2000 /dev/cua$ttyname /boot/firmware/gobi/"; +}; diff --git a/sysutils/gobi_loader/files/patch-Makefile b/sysutils/gobi_loader/files/patch-Makefile new file mode 100644 index 000000000000..3d868a50e380 --- /dev/null +++ b/sysutils/gobi_loader/files/patch-Makefile @@ -0,0 +1,9 @@ +--- Makefile.orig 2019-12-27 21:35:57.626444000 +0100 ++++ Makefile 2019-12-27 21:37:41.912754000 +0100 +@@ -2,5 +2,5 @@ + + gobi_loader: gobi_loader.c +- cc -Wall gobi_loader.c -o gobi_loader ++ $(CC) ${CFLAGS} gobi_loader.c -o gobi_loader + + all: gobi_loader diff --git a/sysutils/gobi_loader/files/pkg-message.in b/sysutils/gobi_loader/files/pkg-message.in new file mode 100644 index 000000000000..83e972be0822 --- /dev/null +++ b/sysutils/gobi_loader/files/pkg-message.in @@ -0,0 +1,15 @@ +[ +{ type: install + message: <<EOM +To automatically load firmware copy %%PREFIX%%/etc/devd/gobi.conf.sample to +%%PREFIX%%/etc/devd/gobi.conf and adjust port, VID and PID to match your +device. To find VID and PID of the device look through the output of the +command: usbconfig dump_device_desc + +The firmware for this device is not publicly downloadable. It should be +obtained separately and usually consists of 3 files: amss.mbn, apps.mbn and +uqcn.mbn which all should be placed in directory /boot/firmware/gobi. The +directory has to be created first if appropirate: mkdir -p /boot/firmware/gobi +EOM +} +] diff --git a/sysutils/gobi_loader/pkg-descr b/sysutils/gobi_loader/pkg-descr new file mode 100644 index 000000000000..3c92f531dd1b --- /dev/null +++ b/sysutils/gobi_loader/pkg-descr @@ -0,0 +1,8 @@ +Firmware Loader for Qualcomm Gobi USB Chipsets. + +- clone from http://www.codon.org.uk/~mjg59/gobi_loader/download/gobi_loader-0.7.tar.gz +- fix CDMA firmware download failed issue +- add openwrt big-endian platform support +- trimming and initial FreeBSD port support + +WWW: https://github.com/kicer/gobi_loader
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202106132024.15DKOW4M041242>