Re: [BUG] hsfmodem-7.47.00.01: hangup, deadlock?

"Linuxant support (Jonathan)" <[email protected]>
Newsgroups gmane.linux.drivers.modem.hsf
Message-ID <[email protected]>
Hi,

we are aware of this issue as well. I have attached a patch to this post
to fix the problem.

Regards,


Jonathan
Technical specialist / Linuxant
www.linuxant.com
[email protected]



Paul Drynoff wrote:
> On Mon, 24 Jul 2006 17:24:51 -0400
> "Linuxant support (Jonathan)" <[email protected]> wrote:
> 
>> I have attached to this post an experimental patch for the devfs problem 
>> you have mentioned. This patch is needed to be able to use the driver on 
>> 2.6.18-rc1 or later kernels. It can be installed with the 'hsfconfig 
>> --patch <file.patch>' command in a root shell.
>>
> 
> Thanks, one more minor thing, you `hsfconfig' script lookup line like this 
> #define UTS_RELEASE "2.6.16-gentoo-r13"
> in include/linux/version.h, but now it situated in 
> include/linux/utsrelease.h see
> http://kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=63104eec234bdecb55fd9c15467ae00d0a3f42ac
> 
> and `hsfconfig' is alawys failed.
> _______________________________________________
> hsflinux mailing list
> [email protected]
> https://www.linuxant.com/mailman/listinfo/hsflinux

_______________________________________________
hsflinux mailing list
[email protected]
https://www.linuxant.com/mailman/listinfo/hsflinux
hsf-7.47.00.01-utsrelease.patch (text/x-patch, 2.3 KB)
diff -urN hsfmodem-7.47.00.01x86_64full/modules/Makefile hsfmodem-7.47.00.01x86_64full-utsrelease/modules/Makefile
--- hsfmodem-7.47.00.01x86_64full/modules/Makefile	2006-04-10 17:19:49.000000000 -0400
+++ hsfmodem-7.47.00.01x86_64full-utsrelease/modules/Makefile	2006-07-11 17:41:19.000000000 -0400
@@ -47,7 +47,9 @@
 KERNELSRC_EXISTS := $(shell test -r ${CNXT_KERNELSRC}/include/linux/version.h && echo yes || echo no)
 endif
 
-KERNELVER := $(shell echo UTS_RELEASE | gcc -E ${DISTRO_CFLAGS} -I${CNXT_KERNELSRC}/include -include ${CNXT_KERNELSRC}/include/linux/version.h - | grep '^"' | tr -d '" 	')
+UTS_FILE := $(shell if [ -e "${CNXT_KERNELSRC}/include/linux/utsrelease.h" ]; then echo "${CNXT_KERNELSRC}/include/linux/utsrelease.h"; else echo "${CNXT_KERNELSRC}/include/linux/version.h"; fi)
+
+KERNELVER := $(shell echo UTS_RELEASE | gcc -E ${DISTRO_CFLAGS} -I${CNXT_KERNELSRC}/include -include $(UTS_FILE) - | grep '^"' | tr -d '" 	')
 
 KMODS_DIR := /lib/modules/$(KERNELVER)
 CNXT_MODS_DIR := $(KMODS_DIR)/extra
diff -urN hsfmodem-7.47.00.01x86_64full/scripts/cnxtconfig.in hsfmodem-7.47.00.01x86_64full-utsrelease/scripts/cnxtconfig.in
--- hsfmodem-7.47.00.01x86_64full/scripts/cnxtconfig.in	2006-04-19 15:08:13.000000000 -0400
+++ hsfmodem-7.47.00.01x86_64full-utsrelease/scripts/cnxtconfig.in	2006-07-11 17:21:36.000000000 -0400
@@ -780,6 +780,17 @@
 	[ "${OSKERNVERS}" = "${FILEKERNELVER}" ]
 }
 
+right_version_kernel_tree()
+{
+	if [ -e "${KERNELSRC}/include/linux/utsrelease.h" ]; then
+		right_version_file "${KERNELSRC}/include/linux/utsrelease.h"
+	else
+		right_version_file "${KERNELSRC}/include/linux/version.h"
+	fi
+
+	return $?
+}
+
 update_module_dependencies()
 {
 	depmod -a -e -u >/var/run/cnxtconf.depmod.$$ 2>&1
@@ -1035,7 +1046,7 @@
 		echo ""
 		echo "WARNING: missing file ${missing_file}"
 		suspect_tree=true
-	elif ! right_version_file "${KERNELSRC}/include/linux/version.h"; then
+	elif ! right_version_kernel_tree; then
 		echo ""
 		echo "WARNING: the kernel version (${FILEKERNELVER}) defined in"
 		echo "${KERNELSRC}/include/linux/version.h"
@@ -1121,7 +1132,7 @@
 	buildlogf=/tmp/@[email protected]
 
 	# set FILEKERNELVER if it isn't already
-	[ -n "${FILEKERNELVER}" ] || right_version_file "${KERNELSRC}/include/linux/version.h"
+	[ -n "${FILEKERNELVER}" ] || right_version_kernel_tree
 
 	check_kernel_config || return $?
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.