-
Help Compiling Modem or any other Drivers with a Live CD.
How can I compile & install SmartLink SmartPCI562 56K modem drivers, using a Knoppix 3.3 Live CD (BioKnoppix 0.2.1 beta) without a “full” Hdd or RAM installation?
I only have 256MB of RAM.
I ran ScanModem and got the latest drivers (have a bundled driver source CD too).
But “$ make” generates:
Code:
knoppix@ttyp0[slmodem-2.9.9e-pre1a]$ make KERNEL_DIR=/lib/modules/2.4.22-xfs/build
make -C modem all
make[1]: Entering directory `/mnt/sdb1/slmodem-2.9.9e-pre1a/modem'
rebuild profile...
gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -o modem_main.o -c modem_main.c
gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -o modem_cmdline.o -c modem_cmdline.c
gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -o modem.o -c modem.c
gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -o modem_datafile.o -c modem_datafile.c
gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -o modem_at.o -c modem_at.c
gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -o modem_timer.o -c modem_timer.c
gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -o modem_pack.o -c modem_pack.c
gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -o modem_ec.o -c modem_ec.c
gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -o modem_comp.o -c modem_comp.c
gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -o modem_param.o -c modem_param.c
gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -o modem_debug.o -c modem_debug.c
gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -o homolog_data.o -c homolog_data.c
gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -o dp_sinus.o -c dp_sinus.c
gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -o dp_dummy.o -c dp_dummy.c
gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -o sysdep_common.o -c sysdep_common.c
gcc -o slmodemd modem_main.o modem_cmdline.o modem.o modem_datafile.o modem_at.o modem_timer.o modem_pack.o modem_ec.o modem_comp.o modem_param.o modem_debug.o homolog_data.o dp_sinus.o dp_dummy.o dsplibs.o sysdep_common.o
gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -o modem_test.o -c modem_test.c
gcc -o modem_test modem_test.o modem_cmdline.o modem.o modem_datafile.o modem_at.o modem_timer.o modem_pack.o modem_ec.o modem_comp.o modem_param.o modem_debug.o homolog_data.o dp_sinus.o dp_dummy.o dsplibs.o sysdep_common.o
make[1]: Leaving directory `/mnt/sdb1/slmodem-2.9.9e-pre1a/modem'
make -C drivers KERNEL_DIR=/lib/modules/2.4.22-xfs/build
make[1]: Entering directory `/mnt/sdb1/slmodem-2.9.9e-pre1a/drivers'
cc -I/lib/modules/2.4.22-xfs/build/include -o kernel-ver kernel-ver.c
make all KERNEL_VER=2.4.22-xfs
make[2]: Entering directory `/mnt/sdb1/slmodem-2.9.9e-pre1a/drivers'
cc -Wall -pipe -O3 -fomit-frame-pointer -D__KERNEL__ -DMODULE -DEXPORT_SYMTAB -DMODVERSIONS --include /lib/modules/2.4.22-xfs/build/include/linux/modversions.h -I/lib/modules/2.4.22-xfs/build/include -I. -I./../modem -o amrmo_init.o -c amrmo_init.c
In file included from /lib/modules/2.4.22-xfs/build/include/linux/capability.h:17,
from /lib/modules/2.4.22-xfs/build/include/linux/binfmts.h:5,
from /lib/modules/2.4.22-xfs/build/include/linux/sched.h:9,
from /lib/modules/2.4.22-xfs/build/include/linux/mm.h:4,
from /lib/modules/2.4.22-xfs/build/include/linux/slab.h:14,
from /lib/modules/2.4.22-xfs/build/include/asm/pci.h:37,
from /lib/modules/2.4.22-xfs/build/include/linux/pci.h:654,
from amrmo_init.c:50:
/lib/modules/2.4.22-xfs/build/include/linux/fs.h:15:23: /lib/modules/2.4.22-xfs/build/include/linux/net.h: Input/output error
In file included from /lib/modules/2.4.22-xfs/build/include/asm/semaphore.h:39,
from /lib/modules/2.4.22-xfs/build/include/linux/fs.h:202,
from /lib/modules/2.4.22-xfs/build/include/linux/capability.h:17,
from /lib/modules/2.4.22-xfs/build/include/linux/binfmts.h:5,
from /lib/modules/2.4.22-xfs/build/include/linux/sched.h:9,
from /lib/modules/2.4.22-xfs/build/include/linux/mm.h:4,
from /lib/modules/2.4.22-xfs/build/include/linux/slab.h:14,
from /lib/modules/2.4.22-xfs/build/include/asm/pci.h:37,
from /lib/modules/2.4.22-xfs/build/include/linux/pci.h:654,
from amrmo_init.c:50:
/lib/modules/2.4.22-xfs/build/include/asm/system.h: In function `__set_64bit_var':
/lib/modules/2.4.22-xfs/build/include/asm/system.h:190: warning: dereferencing type-punned pointer will break strict-aliasing rules
/lib/modules/2.4.22-xfs/build/include/asm/system.h:190: warning: dereferencing type-punned pointer will break strict-aliasing rules
/lib/modules/2.4.22-xfs/build/include/linux/fs.h:324:28: /lib/modules/2.4.22-xfs/build/include/linux/ncp_fs_i.h: Input/output error
In file included from /lib/modules/2.4.22-xfs/build/include/linux/capability.h:17,
from /lib/modules/2.4.22-xfs/build/include/linux/binfmts.h:5,
from /lib/modules/2.4.22-xfs/build/include/linux/sched.h:9,
from /lib/modules/2.4.22-xfs/build/include/linux/mm.h:4,
from /lib/modules/2.4.22-xfs/build/include/linux/slab.h:14,
from /lib/modules/2.4.22-xfs/build/include/asm/pci.h:37,
from /lib/modules/2.4.22-xfs/build/include/linux/pci.h:654,
from amrmo_init.c:50:
/lib/modules/2.4.22-xfs/build/include/linux/fs.h: At top level:
/lib/modules/2.4.22-xfs/build/include/linux/fs.h:519: error: field `ncpfs_i' has incomplete type
/lib/modules/2.4.22-xfs/build/include/linux/fs.h:521: error: field `socket_i' has incomplete type
/lib/modules/2.4.22-xfs/build/include/linux/fs.h:734:29: /lib/modules/2.4.22-xfs/build/include/linux/ncp_fs_sb.h: Input/output error
In file included from /lib/modules/2.4.22-xfs/build/include/linux/capability.h:17,
from /lib/modules/2.4.22-xfs/build/include/linux/binfmts.h:5,
from /lib/modules/2.4.22-xfs/build/include/linux/sched.h:9,
from /lib/modules/2.4.22-xfs/build/include/linux/mm.h:4,
from /lib/modules/2.4.22-xfs/build/include/linux/slab.h:14,
from /lib/modules/2.4.22-xfs/build/include/asm/pci.h:37,
from /lib/modules/2.4.22-xfs/build/include/linux/pci.h:654,
from amrmo_init.c:50:
/lib/modules/2.4.22-xfs/build/include/linux/fs.h:793: error: field `ncpfs_sb' has incomplete type
/lib/modules/2.4.22-xfs/build/include/linux/fs.h:877: warning: `struct iovec' declared inside parameter list
/lib/modules/2.4.22-xfs/build/include/linux/fs.h:877: warning: its scope is only this definition or declaration, which is probably not what you want
/lib/modules/2.4.22-xfs/build/include/linux/fs.h:878: warning: `struct iovec' declared inside parameter list
make[2]: *** [amrmo_init.o] Error 1
make[2]: Leaving directory `/mnt/sdb1/slmodem-2.9.9e-pre1a/drivers'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/mnt/sdb1/slmodem-2.9.9e-pre1a/drivers'
make: *** [drivers] Error 2
$cat /lib/modules/…/net.h” generates an Input/Output error.
Since the kernel was compiled with gcc-2.95.4, but “/usr/bin/gcc -> gcc-3.3” I expected problems.
gcc-2.95.4 is available but I cannot change the link (it’s read-only).
If I somehow manage to change the /usr/bin/gcc link to gcc-2.95.4, should I also change the /usr/bin/cpp link to /usr/bin/cpp-2.95.4 too?
Is there away I can go around that? Like modifying the "Makefile" to point to gcc-2.95.4 or using a 512MB USB key?
Is this even the cause of the errors?
If I manage to compile the drivers how do I install them each time I boot with the Live CD?
Thanks in advance.
------------ -------------- System information ------------------------
Debian GNU/LINUX on System with processor: i686
currently under kernel: 2.4.22-xfs
The kernel was assembled with compiler: 2.95.4
with current System compiler GCC=3.3.2
/usr/bin/gcc -> gcc-3.3
RAM: 256MB
-
Senior Member
registered user
There's a couple of things that might help,
You can use a gcc= cheatcode at boot time to change the version of gcc that knoppix uses, as long as the version is available. You could also try copying the makefile to your usbdrive, hacking it and using make -f .
You might be able to find the the kernel module in binary from, and save it to the usb stick, then insmod it . I'm not sure if that will work or not. Take a look at linmodems.org, if you haven't already.
Generally, software modems are a pain and you will spend a lot of time getting this to work. If you plan on using that particular distro and need to get online alot, look into getting a controller based, usually external serial modem. On the other hand I think Kanotix has the slmodem drivers prebuilt, and you might want to explore using that for a live cd and getting the bioknoppix specific applications to run from your usbstick.
HTH
Similar Threads
-
By bucz in forum General Support
Replies: 0
Last Post: 03-14-2006, 02:57 PM
-
By dvdljns in forum General Support
Replies: 1
Last Post: 02-25-2006, 08:20 PM
-
By akblly in forum Hardware & Booting
Replies: 2
Last Post: 11-28-2004, 08:51 AM
-
By fdellamorte in forum General Support
Replies: 0
Last Post: 02-02-2004, 09:38 PM
-
By count_nikon in forum General Support
Replies: 1
Last Post: 12-23-2002, 01:58 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
![CORSAIR Vengeance RGB 32GB (2 x 16GB) 288-Pin PC RAM DDR5 6000 picture](/store/img/H14AAOSw2VpmoJgT/s-l225//CORSAIR-Vengeance-RGB-32GB-2-x-16GB-288-Pin-PC-RAM.jpg)
CORSAIR Vengeance RGB 32GB (2 x 16GB) 288-Pin PC RAM DDR5 6000
$74.99
![A-Tech 8GB DDR3 1600 PC3-12800 Laptop SODIMM 204-Pin Memory RAM PC3L DDR3L 1x 8G picture](/store/img/RCAAAOSweqdeWaui/s-l225//A-Tech-8GB-DDR3-1600-PC3-12800-Laptop-SODIMM-204-P.jpg)
A-Tech 8GB DDR3 1600 PC3-12800 Laptop SODIMM 204-Pin Memory RAM PC3L DDR3L 1x 8G
$13.99
![G.SKILL Trident Z 16GB DDR4-3600MHz RAM Memory picture](/store/img/XlgAAOSwi6RmlkbP/s-l225//G-SKILL-Trident-Z-16GB-DDR4-3600MHz-RAM-Memory-.jpg)
G.SKILL Trident Z 16GB DDR4-3600MHz RAM Memory
$30.00
![HyperX FURY DDR3 8GB 16GB 32GB 1600 MHz PC3-12800 Desktop RAM Memory DIMM 240pin picture](/store/img/XNYAAOSwg81kv6CG/s-l225//HyperX-FURY-DDR3-8GB-16GB-32GB-1600-MHz-PC3-12800-.jpg)
HyperX FURY DDR3 8GB 16GB 32GB 1600 MHz PC3-12800 Desktop RAM Memory DIMM 240pin
$15.90
![Team T-FORCE VULCAN Z 32GB (2 x 16GB) PC RAM DDR4 3200 (PC4 25600) Memory picture](/store/img/~u4AAOSwK-liKn7t/s-l225//Team-T-FORCE-VULCAN-Z-32GB-2-x-16GB-PC-RAM-DDR4-32.jpg)
Team T-FORCE VULCAN Z 32GB (2 x 16GB) PC RAM DDR4 3200 (PC4 25600) Memory
$50.99
![16GB Samsung (2x 8GB) PC3-12800R DDR3 1.5V ECC Reg RDIMM m393b1k70dh0-ck0 server picture](/store/img/1SEAAOSwtAlmjWpm/s-l225//16GB-Samsung-2x-8GB-PC3-12800R-DDR3-1-5V-ECC-Reg-R.jpg)
16GB Samsung (2x 8GB) PC3-12800R DDR3 1.5V ECC Reg RDIMM m393b1k70dh0-ck0 server
$7.75
![Crucial 16GB (2x 8GB) Kit DDR3L 1600MHz PC3-12800 UDIMM Desktop 240-Pin CL11 RAM picture](/store/img/kk4AAOSwKcplp0xR/s-l225//Crucial-16GB-2x-8GB-Kit-DDR3L-1600MHz-PC3-12800-UD.jpg)
Crucial 16GB (2x 8GB) Kit DDR3L 1600MHz PC3-12800 UDIMM Desktop 240-Pin CL11 RAM
$22.85
![HyperX FURY DDR4 4GB 8GB 16GB 32GB 3200 2400 2666 Desktop RAM Memory DIMM 288pin picture](/store/img/8XUAAOSwupJkv6B5/s-l225//HyperX-FURY-DDR4-4GB-8GB-16GB-32GB-3200-2400-2666-.jpg)
HyperX FURY DDR4 4GB 8GB 16GB 32GB 3200 2400 2666 Desktop RAM Memory DIMM 288pin
$8.99
![VULCAN Z 32GB (2 x 16GB) PC RAM DDR4 3200 (PC4 25600) picture](/store/img/WnwAAOSw3F9mnb1x/s-l225//VULCAN-Z-32GB-2-x-16GB-PC-RAM-DDR4-3200-PC4-25600-.jpg)
VULCAN Z 32GB (2 x 16GB) PC RAM DDR4 3200 (PC4 25600)
$50.99
![CORSAIR Vengeance RGB 32GB PC5-48000 (DDR5-6000) RAM Memory (CMH32GX5M2E6000C36) picture](/store/img/mnQAAOSwt7NmoJh9/s-l225//CORSAIR-Vengeance-RGB-32GB-PC5-48000-DDR5-6000-RAM.jpg)
CORSAIR Vengeance RGB 32GB PC5-48000 (DDR5-6000) RAM Memory (CMH32GX5M2E6000C36)
$74.99