Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to install this repo for ubuntu kernel 4.0 or 3.x ? #1

Open
sevk opened this issue May 24, 2015 · 11 comments
Open

how to install this repo for ubuntu kernel 4.0 or 3.x ? #1

sevk opened this issue May 24, 2015 · 11 comments

Comments

@sevk
Copy link

sevk commented May 24, 2015

my modem :

  • lspci -vv :
03:00.0 Communication controller: Conexant Systems, Inc. HSF 56k HSFi Modem (rev 01)
    Subsystem: GVC Corporation Device 8d8b
    Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
    Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
    Latency: 32
    Interrupt: pin A routed to IRQ 5
    Region 0: Memory at fddf0000 (32-bit, non-prefetchable) [size=64K]
    Region 1: I/O ports at df00 [size=8]
    Capabilities: <access denied> 
  • lspci -n :
03:00.0 0780: 14f1:2f00 (rev 01)

my kernel is 3.x and 4.0 :

  • uname -a :

Linux ub5 4.0.1-040001-generic #201504290935 SMP Wed Apr 29 09:45:35 UTC 2015 i686 i686 i686 GNU/Linux

i A linux-image-3.13.0-52-generic      - Linux kernel image for version 3.13.0 on 32 b
i   linux-image-4.0.1-040001-generic   - Linux kernel image for version 4.0.1 on 32 bi

how to make it support 3.x or 4.x kernel ?
thank you

@sevk sevk changed the title how to install this repo for ubuntu kernel 4.0 or 3.0 ? how to install this repo for ubuntu kernel 4.0 or 3.x ? May 24, 2015
@funivan
Copy link

funivan commented Jul 8, 2015

I also have this trouble (
Kernel 3.13

@ahrasis
Copy link

ahrasis commented Jul 13, 2017

I know this resonse is to an old post in Jul 2015 but I want to note that this should be working on earlier 3* kernel. In my case I am still using Ubuntu 12.04.5 (3.2.0-126-generic), which is upgraded from 11.10, and the repo still works for my Conexant HSF (pci fax) modem. I followed the guide for 11.10 as specified in Ubuntu Guide. I have tried kernel 3.13* from Ubuntu 12.04 install disk but have no success as well. My wish is also the same, i.e. if anybody can help upgrade this to work for kernel 3.3 and above i.e. to current latest kernel OR at least provide the how to for it.

@zxcch
Copy link

zxcch commented Nov 11, 2017

I'm working on this also
I'm running Ubuntu 16.04 server
uname -r
4.4.0-98-generic
lsusb
Bus 002 Device 006: ID 0572:1300 Conexant Systems (Rockwell), Inc. SoftK56 Data Fax Voice CARP
install -m 700 rchsf /usr/lib/hsfmodem
make[1]: Leaving directory '/home/zxcch/git/hsfmodem/scripts'make[1]: Entering directory '/home/zxcch/git/hsfmodem/modules'
gcc: fatal error: no input files
compilation terminated.
cc1: fatal error: /usr/src/kernel-headers-4.4.0-98-generic/include/linux/config.h: No such file or directory
compilation terminated.
cc1: fatal error: /usr/src/kernel-headers-4.4.0-98-generic/include/linux/config.h: No such file or directory
compilation terminated.
cc1: fatal error: /usr/src/kernel-headers-4.4.0-98-generic/include/linux/config.h: No such file or directory
compilation terminated.
cc1: fatal error: /usr/src/kernel-headers-4.4.0-98-generic/include/linux/config.h: No such file or directory
compilation terminated.
cc1: fatal error: /usr/src/kernel-headers-4.4.0-98-generic/include/linux/config.h: No such file or directory
compilation terminated.
rm -rf "/usr/lib/hsfmodem/config.mak" "/usr/lib/hsfmodem/modules/imported" "/usr/lib/hsfmodem/modules"
mkdir -m 755 -p /usr/lib/hsfmodem/modules
(cd .. && find config.mak modules/imported -depth -print | cpio -pdmu /usr/lib/hsfmodem)
13784 blocks
find . ( -name COPYING -o -name '.sh' -o -name '.[ch]' -o -name '*.mak' -o -name '[Mm]akefile' ) -print | cpio -pdmu /usr/lib/hsfmodem/modules
3726 blocks
find binaries -depth -print | cpio -pdmu /usr/lib/hsfmodem/modules
find: ‘binaries’: No such file or directory
0 blocks
make[1]: Leaving directory '/home/zxcch/git/hsfmodem/modules'make[1]: Entering directory '/home/zxcch/git/hsfmodem/diag'
make[1]: Nothing to be done for 'install'.
make[1]: Leaving directory '/home/zxcch/git/hsfmodem/diag'
install -m 444 LICENSE /usr/lib/hsfmodem

To complete the installation and configuration of your modem,
please run "hsfconfig" (or "/usr/sbin/hsfconfig")

@zxcch
Copy link

zxcch commented Nov 15, 2017

I've gotten a little further towards installation on this. I searched for and replaced all occurrences of /usr/src/kernel with /usr/src/linux.
Now I am getting an error that says it's missing /lib/modules/4.4.0-98-generic/build/include/linux/version.h
I am looking for the current equivalent file...

@george-hopkins
Copy link
Owner

On some systems, include/linux/version.h is available as include/generated/uapi/linux/version.h. Just create a symlink to work around the issue.

You might want to take a look at the wip branch which contains some fixes for newer kernels. However, it's not complete yet so you will still have to do some porting (contributions are very welcome!).

@zxcch
Copy link

zxcch commented Nov 15, 2017 via email

@zxcch
Copy link

zxcch commented Nov 17, 2017

It seems that a call to rdtscl in modules/osservices.c has been removed from modern kernels, according to https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=436332
It suggested using gettimeofday

@ahrasis
Copy link

ahrasis commented Nov 17, 2017

I have no problem with usb fax modem as it simply works out of box. My problem is on pci fax modem only on ubuntu 12.04 using 3.1 and above. As with 3.0 it is working. I am gonna attempt with 16.04.3 soon and will try to see whether I can troubleshoot any installation problem.

Edited: zxcch, the bug you are referring is too old and may not be related.

@danwdart
Copy link

danwdart commented Aug 3, 2020

Issues with 5.7.11 too. Any patches required?

@george-hopkins
Copy link
Owner

@danwdart Since the kernel has moved along quite a bit, you will need some patches. I would recommend starting with the version in #2. I suspect that you will need to make further changes to make it work with 5.7.11. In case problems arise some of the developers of the aforementioned PR might be able to help. Unfortunately, I no longer own a system with a HSF modem.

@ftoledo
Copy link

ftoledo commented Oct 23, 2022

I get this usb device:
imagen

anyone get working code for linux 5.x ?

I just clone the wip branch.. but sems to have a lot kernel apis that was changed =(
I'm not kernel developer, so it is very complicated for me to update the code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants