LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   problem installing prolink H9601 adsl modem (https://www.linuxquestions.org/questions/linux-newbie-8/problem-installing-prolink-h9601-adsl-modem-715654/)

bushcat 03-30-2009 10:50 PM

problem installing prolink H9601 adsl modem
 
i have got this prolink H9601 adsl modem and vector linux 6 std installed in my IBM thinkpad laptop.
i downloaded the drivers for linux,and there were no precompiled binaries for vector included in it,so I unziped it.the directory structure is like this
directory Structure
====================
The directory Structure is as follows.
monaco_linux
|
|---ModemDrv
|
|---gpatm
|
|---Gti
|
|---cpl

inside the ModemDrv directory there were two directories (src & inc) and there was a "makefile" too.the instructions in the manual said that i have to run make from that src directory.it further said this

Quote:

The installed system should already have the kernel sources
installed in the /usr/src/linux or /lib/modules directory. If they are not there,
try to get them off the installation disks for your distribution,
or download the latest Linux-2.6 kernel, and configure and
build that. One common problem while compiling modules on a new
kernel is not to create link /usr/src/linux which should point to
the relevent kernel source directory. On a freshly installed system
this link might not be present and needs to be created before the
kernel or any driver module can be compiled. There are lots of books
and documents available describing how to extract, configure and
build the kernel from it's sources...
I have got kernel sources installed in my system,but havent got a folder or link named linux,but there is this folder "//usr/src/linux-2.6.27.12" ,

what i want to know is that,do i have to compile the kernel to install this driver?and how should i link the kernel and the drivers,well i couldn't just keep my hands,so i ran make just to see what happens and i got the following error message

make -C /lib/modules/2.6.27.12/build SUBDIRS=/home/modem/H9601_Linux_Driver/Note for Kernel 2.6/monaco_linux/ModemDrv/src modules
make[1]: Entering directory `/usr/src/linux-2.6.27.12'
make[1]: *** No rule to make target `for'. Stop.
make[1]: Leaving directory `/usr/src/linux-2.6.27.12'
make: *** [modules] Error 2

hurry_hui 03-31-2009 12:18 AM

You might need to create symbolic link, e.g.
Code:

#ln -s /usr/src/linux-2.6.27.12 /usr/src/linux
then script will try to find .configure, make sure you have it in /usr/src/linux. If not you need to configure this
Code:

make oldconfig
.

bushcat 03-31-2009 10:36 AM

thanx hurry,i'll try this and let u know,

bushcat 03-31-2009 11:01 PM

well i made the symbolic link,but there is a prob,where do i have to run make oldconfig? i ran it in the monaco_linux/Modemdrv/src directory.then got this error

bushcat:$ make oldconfig
make: *** No rule to make target `oldconfig'. Stop.

then I got back into the ModemDrv diretory and ran it and got the same error,then I ran make both in the /src directory and ModemDrv directory (there is makefile in it too,as i mentioned earlier).in the src directory i got the same error i got earlier,but in the ModemDrv i get an error which prints a big message into the console,so that i cant copy the beginning of the message.

hurry_hui 04-01-2009 04:49 AM

You can run make oldconfig within /usr/src/linux. You don't have to be a root to run this. There will be a new file name .config under /usr/src/linux which is needed as configuration file to create modules based on running kernel.

bushcat 04-01-2009 12:08 PM

well I tried to do make oldconfig as normal user,but didnt work got the following error


bushcat:$ make oldconfig
HOSTCC scripts/kconfig/conf.o
scripts/kconfig/conf.c:602: fatal error: opening dependency file scripts/kconfig/.conf.o.d: Permission denied
compilation terminated.
make[1]: *** [scripts/kconfig/conf.o] Error 1
make: *** [oldconfig] Error 2

then I did it as root,then it worked.but still i get those errors when I try to build the drivers.

hurry_hui 04-01-2009 12:30 PM

What is the exact error when you try to build the driver?

Btw, I tried to find this on google but nothing can be found. Several forum and threads are left unanswered. However, I'll try to answer this.

Just like my lovely Axesstel Modem, nobody seems find the solution. I have made the blog about its driver.

bushcat 04-01-2009 09:27 PM

thanx Hurry,and 1st of all I should apologies for a mistake I have made.well though I mentioned that kernel source packages are installed in my system I found out that the kernel headers are not installed,i guess kernel headers are essential for building drivers,isnt it? I'm sorry I couldnt let you know about this,I only got to know how to find it recently.

first i did yum,but got a command not found message.then I did rpm like this

Code:

bushcat:$ rpm -q kernel-devel
error: cannot open Name index using db3 - No such file or directory (2)
package kernel-devel is not installed

well i guess I should try to get the headers installed and try it,Il post the results.

well about the two errors i get,this is the 1st 1,when i try to build it from inside the src directory


Code:

bushcat:$ make
make -C /lib/modules/2.6.27.12/build SUBDIRS=/home/modem/H9601_Linux_Driver/Note for Kernel 2.6/monaco_linux/ModemDrv/src modules
make[1]: Entering directory `/usr/src/linux-2.6.27.12'
make[1]: *** No rule to make target `for'.  Stop.
make[1]: Leaving directory `/usr/src/linux-2.6.27.12'
make: *** [modules] Error 2



the second error is a large message and I managed to get a part of it from the beginning by interrupting with ctrl+c, this is the message.

Code:

vector://home/modem/H9601_Linux_Driver/Note for Kernel 2.6/monaco_linux/ModemDrv
bushcat:$ make
gcc -c  -Wall -Wstrict-prototypes -fomit-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce -mcpu=i486 -falign-loops=2 -falign-jumps=2 -falign-functions=2  -I/usr/src/linux/include -I./inc -I../Gti -D__KERNEL__ -DMODULE  -DGSI_LAN -DGSI_WAN -DNMPX -DQUASAR -DANNEXA -DGTI_USE_INTERNAL_TARGET -DGTI_LITTLE_ENDIAN -DINTERR_OD_LOW_ACT -DGSI_USB -DGTI_USB -DGTI_USE_CUSTOMER_DEFINED_IO -DFAST_SNR_STATUS -DATM_LOOPBACK -DEEPROM -DEEPROMv2 -DCRYSTAL -DGTI_MONACO_USB -DGTI_DSPMONACO -DMONACO -DDBG=0 -DATMSTATISTICS -DGTI_DMT -DDMT -DSOFTSAR -DGSI_USB -O2  -o src/usbbulk.o src/usbbulk.c
`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
Assembler messages:
Fatal error: can't create src/usbbulk.o: Permission denied
In file included from /usr/src/linux/include/linux/kernel.h:18,
                from ./inc/GpSnull.h:9,
                from ./inc/Gp.h:16,
                from src/usbbulk.c:22:
/usr/src/linux/include/linux/ratelimit.h: In function 'ratelimit':
/usr/src/linux/include/linux/ratelimit.h:23: error: 'CONFIG_HZ' undeclared (first use in this function)
/usr/src/linux/include/linux/ratelimit.h:23: error: (Each undeclared identifier is reported only once
/usr/src/linux/include/linux/ratelimit.h:23: error: for each function it appears in.)
In file included from ./inc/Gp.h:16,
                from src/usbbulk.c:22:
./inc/GpSnull.h:10:26: error: linux/config.h: No such file or directory
In file included from /usr/src/linux/include/asm/page.h:44,
                from /usr/src/linux/include/asm/thread_info.h:11,
                from /usr/src/linux/include/linux/thread_info.h:47,
                from /usr/src/linux/include/linux/preempt.h:9,
                from /usr/src/linux/include/linux/spinlock.h:50,
                from /usr/src/linux/include/linux/mmzone.h:7,
                from /usr/src/linux/include/linux/gfp.h:4,
                from /usr/src/linux/include/linux/slab.h:12,
                from ./inc/GpSnull.h:11,
                from ./inc/Gp.h:16,
                from src/usbbulk.c:22:
/usr/src/linux/include/asm/page_32.h: At top level:
/usr/src/linux/include/asm/page_32.h:57: error: redefinition of typedef 'phys_addr_t'
./inc/common.h:60: error: previous declaration of 'phys_addr_t' was here
In file included from /usr/src/linux/include/asm/thread_info.h:22,
                from /usr/src/linux/include/linux/thread_info.h:47,
                from /usr/src/linux/include/linux/preempt.h:9,
                from /usr/src/linux/include/linux/spinlock.h:50,
                from /usr/src/linux/include/linux/mmzone.h:7,
                from /usr/src/linux/include/linux/gfp.h:4,
                from /usr/src/linux/include/linux/slab.h:12,
                from ./inc/GpSnull.h:11,
                from ./inc/Gp.h:16,
                from src/usbbulk.c:22:
/usr/src/linux/include/asm/processor.h:112: error: 'CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
/usr/src/linux/include/asm/processor.h:112: error: requested alignment is not a constant
In file included from /usr/src/linux/include/asm/thread_info.h:22,
                from /usr/src/linux/include/linux/thread_info.h:47,
                from /usr/src/linux/include/linux/preempt.h:9,
                from /usr/src/linux/include/linux/spinlock.h:50,
                from /usr/src/linux/include/linux/mmzone.h:7,
                from /usr/src/linux/include/linux/gfp.h:4,
                from /usr/src/linux/include/linux/slab.h:12,
                from ./inc/GpSnull.h:11,
                from ./inc/Gp.h:16,
                from src/usbbulk.c:22:
/usr/src/linux/include/asm/processor.h:152:1: warning: "cache_line_size" redefined
In file included from /usr/src/linux/include/asm/pda.h:7,
                from /usr/src/linux/include/asm/current.h:19,
                from /usr/src/linux/include/asm/processor.h:15,
                from /usr/src/linux/include/asm/thread_info.h:22,
                from /usr/src/linux/include/linux/thread_info.h:47,
                from /usr/src/linux/include/linux/preempt.h:9,
                from /usr/src/linux/include/linux/spinlock.h:50,
                from /usr/src/linux/include/linux/mmzone.h:7,
                from /usr/src/linux/include/linux/gfp.h:4,
                from /usr/src/linux/include/linux/slab.h:12,
                from ./inc/GpSnull.h:11,
                from ./inc/Gp.h:16,
                from src/usbbulk.c:22:
/usr/src/linux/include/linux/cache.h:64:1: warning: this is the location of the previous definition
/usr/src/linux/include/asm/processor.h: In function 'load_cr3':
/usr/src/linux/include/asm/processor.h:184: error: 'CONFIG_PAGE_OFFSETUL' undeclared (first use in this function)
/usr/src/linux/include/asm/processor.h: At top level:
/usr/src/linux/include/asm/processor.h:233: error: requested alignment is not a constant
/usr/src/linux/include/asm/processor.h:270: error: requested alignment is not a constant
/usr/src/linux/include/asm/processor.h: In function 'wbinvd_halt':
/usr/src/linux/include/asm/processor.h:751: warning: implicit declaration of function 'halt'
In file included from /usr/src/linux/include/linux/mmzone.h:16,
                from /usr/src/linux/include/linux/gfp.h:4,
                from /usr/src/linux/include/linux/slab.h:12,
                from ./inc/GpSnull.h:11,
                from ./inc/Gp.h:16,
                from src/usbbulk.c:22:
/usr/src/linux/include/linux/nodemask.h: In function '__first_node':
/usr/src/linux/include/linux/nodemask.h:233: warning: implicit declaration of function 'find_first_bit'
/usr/src/linux/include/linux/nodemask.h: In function '__next_node':
/usr/src/linux/include/linux/nodemask.h:239: warning: implicit declaration of function 'find_next_bit'
/usr/src/linux/include/linux/nodemask.h: In function '__first_unset_node':
/usr/src/linux/include/linux/nodemask.h:257: warning: implicit declaration of function 'find_first_zero_bit'
In file included from /usr/src/linux/include/linux/sched.h:55,
                from /usr/src/linux/include/linux/interrupt.h:12,
                from /usr/src/linux/include/linux/usb.h:15,
                from ./inc/GpSnull.h:15,
                from ./inc/Gp.h:16,
                from src/usbbulk.c:22:
/usr/src/linux/include/linux/jiffies.h:39:3: error: #error Invalid value of HZ.
/usr/src/linux/include/linux/jiffies.h:247:31: error: division by zero in #if
/usr/src/linux/include/linux/jiffies.h:247:31: error: division by zero in #if
/usr/src/linux/include/linux/jiffies.h:247:31: error: division by zero in #if
/usr/src/linux/include/linux/jiffies.h:247:31: error: division by zero in #if
/usr/src/linux/include/linux/jiffies.h:247:31: error: division by zero in #if
/usr/src/linux/include/linux/jiffies.h:247:31: error: division by zero in #if
/usr/src/linux/include/linux/jiffies.h:247:31: error: division by zero in #if
/usr/src/linux/include/linux/jiffies.h:247:31: error: division by zero in #if
/usr/src/linux/include/linux/jiffies.h:247:31: error: division by zero in #if
/usr/src/linux/include/linux/jiffies.h:247:31: error: division by zero in #if
/usr/src/linux/include/linux/jiffies.h:247:31: error: division by zero in #if
/usr/src/linux/include/linux/jiffies.h:247:31: error: division by zero in #if
/usr/src/linux/include/linux/jiffies.h:247:31: error: division by zero in #if
/usr/src/linux/include/linux/jiffies.h:247:31: error: division by zero in #if
/usr/src/linux/include/linux/jiffies.h:247:31: error: division by zero in #if
/usr/src/linux/include/linux/jiffies.h:247:31: error: division by zero in #if
In file included from /usr/src/linux/include/linux/sched.h:77,
                from /usr/src/linux/include/linux/interrupt.h:12,
                from /usr/src/linux/include/linux/usb.h:15,
                from ./inc/GpSnull.h:15,
                from ./inc/Gp.h:16,
                from src/usbbulk.c:22:
/usr/src/linux/include/linux/proportions.h: In function 'prop_inc_percpu':
/usr/src/linux/include/linux/proportions.h:75: warning: implicit declaration of function 'local_irq_save'
/usr/src/linux/include/linux/proportions.h:77: warning: implicit declaration of function 'local_irq_restore'
In file included from /usr/src/linux/include/linux/timer.h:5,
                from /usr/src/linux/include/linux/sched.h:85,
                from /usr/src/linux/include/linux/interrupt.h:12,
                from /usr/src/linux/include/linux/usb.h:15,
                from ./inc/GpSnull.h:15,
                from ./inc/Gp.h:16,
                from src/usbbulk.c:22:
/usr/src/linux/include/linux/ktime.h: In function 'ktime_set':
/usr/src/linux/include/linux/ktime.h:84: warning: comparison is always false due to limited range of data type
In file included from /usr/src/linux/include/linux/elf.h:7,
                from /usr/src/linux/include/linux/module.h:14,
                from /usr/src/linux/include/linux/device.h:22,
                from /usr/src/linux/include/linux/usb.h:18,
                from ./inc/GpSnull.h:15,
                from ./inc/Gp.h:16,
                from src/usbbulk.c:22:
/usr/src/linux/include/asm/elf.h: In function 'start_ia32_thread':
/usr/src/linux/include/asm/elf.h:153: warning: implicit declaration of function 'load_gs_index'
/usr/src/linux/include/asm/elf.h: In function 'elf_common_init':
/usr/src/linux/include/asm/elf.h:166: error: 'struct pt_regs' has no member named 'r8'
/usr/src/linux/include/asm/elf.h:166: error: 'struct pt_regs' has no member named 'r9'
/usr/src/linux/include/asm/elf.h:166: error: 'struct pt_regs' has no member named 'r10'
/usr/src/linux/include/asm/elf.h:166: error: 'struct pt_regs' has no member named 'r11'
/usr/src/linux/include/asm/elf.h:167: error: 'struct pt_regs' has no member named 'r12'
/usr/src/linux/include/asm/elf.h:167: error: 'struct pt_regs' has no member named 'r13'
/usr/src/linux/include/asm/elf.h:167: error: 'struct pt_regs' has no member named 'r14'
/usr/src/linux/include/asm/elf.h:167: error: 'struct pt_regs' has no member named 'r15'
In file included from /usr/src/linux/include/linux/module.h:21,
                from /usr/src/linux/include/linux/device.h:22,
                from /usr/src/linux/include/linux/usb.h:18,
                from ./inc/GpSnull.h:15,
                from ./inc/Gp.h:16,
                from src/usbbulk.c:22:
/usr/src/linux/include/asm/module.h:70:2: error: #error unknown processor family
In file included from ./inc/GpSnull.h:15,
                from ./inc/Gp.h:16,
                from src/usbbulk.c:22:
/usr/src/linux/include/linux/usb.h: In function 'usb_register':
/usr/src/linux/include/linux/usb.h:1086: error: 'KBUILD_MODNAME' undeclared (first use in this function)
^C
                from /usr/src/linux/include/net/net_namespace.h:12,
                from /usr/src/linux/include/linux/netdevice.h:44,
                from ./inc/GpSnull.h:19,
                from ./inc/Gp.h:16,
                from src/usbbulk.c:22:
/usr/src/linux/include/net/snmp.h: At top level:make: *** [src/usbbulk.o] Interrupt


I greatly apreciate your concern and help

bushcat 04-01-2009 09:35 PM

hmmm....looking at the above error, makes me wonder if installing the headers alone would solve the prob,

Quote:

Just like my lovely Axesstel Modem, nobody seems find the solution. I have made the blog about its driver.
I read your blog,Ill see if dmesg would give any usefull info.

hurry_hui 04-02-2009 10:10 AM

I think kernel sources is more than enough, you do not need any kernel header. You need to run make as root and perhaps you should do this
Code:

./configure
or similar prior to running make.

pathum 04-07-2009 12:27 AM

Machan Bushcat, any luck with the H9601?.... I have a similar sort of problem. How exactly do you find out whether the kernel headers are installed?

http://www.linuxquestions.org/questi...=prolink+h9601

GREATLY APPRECIATE SOME HELP ON THIS

hurry_hui 04-07-2009 11:46 AM

@Pathum: what is the content of the archive? Is there any README, INSTALL, MAKEFILE or similar file?

Finding out if kernel header is installed. Check whether you have installed kenel-devel or kernel-header or you have /usr/src/linux or /usr/src/your-kernel-version.

BTW, you better open a thread to get any help

pathum 04-07-2009 11:20 PM

i DO have this `/usr/src/linux-headers-2.6.27-7-generic' ..... btw i DO have a thread....that's where the link leads to.

i went into Synaptic and it showed that linux headers was installed but an upgrade was also available.

Huryy, which archive are you referring to? If u take a look into my thread you can get an idea about my probz...Nyways thanks

bushcat 04-10-2009 05:51 PM

Quote:

Machan Bushcat, any luck with the H9601?....
yeah pathum I read your thread too,I suppose you are using the modem from SLT,same here.well still no luck,but going to give it another try.

Quote:

@Pathum: what is the content of the archive? Is there any README, INSTALL, MAKEFILE or similar file?
hurry the i suppose pathum is talking about the same drivers as i am,the archive contains some precompiled binaries for Fedora core 3,Mandrake 10.1,Suse Linux 9.2.

since im using vector linux 6 i thought of compiling from the source.thats whe i ran into trouble.

and there is a another thing, i found this speedtouch 330 modem,while trying to run it i ran into trouble.

if you have got time please take a look at that thread too,

and thank you very much for the help you have given so far.:D

pathum 04-11-2009 08:28 AM

Yep HURRY.... Bushcat i had the same drivers you were talking about...


All times are GMT -5. The time now is 01:24 AM.