Forum Home
Press F1
 
Thread ID: 59695 2005-07-10 02:34:00 Installing PCI Modem under Linux B.M. (505) Press F1
Post ID Timestamp Content User
370976 2005-07-17 08:50:00 I downloaded the "standard" latest tar . gz file from DSE .

I unpacked it this morning . I did cd Intel* I looked at the readme . txt file . I typed
make clean
make 536
make install

It wrote lots of things to the screen, including my pet hate: warning messages about "deprecated" things which don't do any damage . (I think it's not a proper compile unless there are no messages -- it shows lazy programming techniques) .

But it compiled and installed a driver .

It fails modprobe (loading of the driver) because I haven't got an Intel 536 modem installed . That's fine . I have the funny idea that if I had such a modem card, it would work . ;)

Now what did I do differently?

The box I used has a mature distribution on it: Mandrake 10 . It's got a 2 . 6 . 3 kernel . (It's a bit shambolic because I'm trying to rebuild it from a loader crash) . But it works . Even though the recovery gave me KDE instaead of Gnome . :(

Ubuntu and all the other "new better user-fiendly intuitive just like Windows" distributions aren't a good idea until they have been though a few versions . Unless you've got the same hardware as their developers you can have problems .

Debian based distributions are different from others . Some say that's better . But its different . Someone changed one of the scripts so the Intel supplied package would work for him . For the version of Debian he had . Ubuntu is "Debian based" . It might have "improvements" on the way CDebian does things .

Graham, why don't you send him the modified kernel you built?
vinref (6194)
370977 2005-07-17 10:07:00 Ok, I’ve searched the Ubuntu CD from Windows Explorer, which doesn’t seem to have any problem seeing and opening the folders .

The only time the word kernel appears, is a sub-folder, the path to which is: CDROM/pool/restricted/l/linux-kernel-restricted-di-2 . 6

There is another folder called linux-meta (path: CDROM/pool/restricted/l/linnux-meta which contains three files carrying the kernel number, all . deb and all 20 . 7k . Just thought I’d mention it in case it had some significance??

So, that’s the update on the ubuntu CD .

Murray, from where I sit, it hasn’t got to replacing Win95 yet . :D
B.M. (505)
370978 2005-07-17 10:40:00 Well it appears Ubuntu likes to be special :D

Rumour has it the kernel packages are called linux-image, linux-headers and linux-source. Try looking for that.
Jen (38)
370979 2005-07-17 12:35:00 Just been cruising the Ubuntu forum, and found this thread on installing the kernel headers - see here (ubuntuforums.org). You should be able to do the same with your installation CD. You need to change the /etc/apt/sources.list file so that it looks at your CD instead of the internet for the files. :) Jen (38)
370980 2005-07-17 18:38:00 Good link Jen, thanks very much . I’m glad I’m not alone in suffering this problem . (Although, the sleep deprivation may be local?) :D

Now Graham has already had to help me deal with a GRUB but what is this HOARY HEDGEHOG referred to? Seems there’s more than one of them and I’m not sure I want any running around my office . :confused:

I’ll finish my cuppa, have some more sleep, and later on I’ll reinstall the HDD and reinstall ubuntu . Then I’ll follow the instructions on that site and if that doesn’t work I’ll install my Serial Modem, (or at least try to) and use the “get-install” instruction and see if that works .

Will update later .

Zzzzzzzzz - Zzzzzzzzzzz - Zzzzzzzzz
B.M. (505)
370981 2005-07-17 18:48:00 PS . No folders by the name of linux-headers, linux source, or linux image to be found on CD .

It's has just occurred to me that that link you referred me to referred to a DVD installation disk .

I wonder if I've been short changed?
B.M. (505)
370982 2005-07-18 05:04:00 A number of things .

The module I built was for Mandrake 10 . 0, using the kernel headers of the kernel installed on that box .

A single CD installer doesn't have sources . Not shortchanging . Just reality . The kernel source is a few hundred MB . A "full" installation kit is usually 3 or 4 CDs . That's not all . The sources provided are usually for just the kernel . Sources for the whole catastrophe are big . I'm not sure just how big the "kernel headers" are . . . I've always installed the whole kernel source . I see that as well as the 207MB of the /ur/src/linux I've got on that I'm not supposed (in 2 . 6) to mess with that . I've got to have another set of the sources in "user space' to roll my own kernel .

I've got some of the 2 CD Ubuntu sets (one of which is a Live CD) . . . I decided it was a bit limited for me .

Fedora might have problems, too
The installation script has been designed for the following distributions
release versions

mandrake-release
SuSE-release
redhat-release
debian_version (including Corel)
slackware-version
conectiva-version
bluepoint-release
redflag-release
Unknown distributions install modules and utilities but
will not install boot scripts! .

Sitting Duck made a very positive contribution, which got lost in the noise .

With a Ubuntu installation, (obviously with the kernel headers available ;)) the compile worked . Just "make install" produced:

installing Intel536 driver
unknown distribution . no boot scripts installed
make: *** [install] Error 1Exactly correct . As the instructions say, they didn't install the boot scripts . ;) My "make install" did install the boot scripts, which give me an error message (I haven't got the modem) each time I boot . ;)

Sitting Duck, where are you? Have you installed the full development kernel sources, or just the kernel headers?
Graham L (2)
370983 2005-07-18 06:16:00 It’s a long haul but I think I may have got the headers installed. (40megs in all.)

Briefly, sudo apt-get install linux-headers-2.6.10???? (I just forget the exact version) set things going. I have kept a copy of the whole performance if anybody wants me to post it. No error messages were recorded at this point but when I went to make or install the driver I got the following.


root@ubuntu:/home/mine # cd intel-536EP-2.56.76.0-mdk10-UP
root@ubuntu:/home/mine/intel-536EP-2.56.76.0-mdk10-UP # make clean
cd coredrv; make clean
make[1]: Entering directory `/home/mine/intel-536EP-2.56.76.0-mdk10-UP/coredrv'
rm -f *.ko *.o *~ core
make[1]: Leaving directory `/home/mine/intel-536EP-2.56.76.0-mdk10-UP/coredrv'
rm -f *.o *.ko
root@ubuntu:/home/mine/intel-536EP-2.56.76.0-mdk10-UP # make 536
Module precompile check
Current running kernel is: 2.6.8.1-3-386
/lib/modules... autoconf.h exists
diff: /boot/vmlinuz.autoconf.h: No such file or directory
autoconf.h matches running kernel
diff: /boot/vmlinuz.version.h: No such file or directory
version.h matches running kernel
uname -r|grep "2.6" && \
cd coredrv && make 536core_26 && \
cp Intel536.ko .. && cd .. && \
strip --strip-debug Intel536.ko && \
exit; \
ls Intel536.ko >/dev/null 2>&1 || uname -r | grep "2.6" && echo "Failed to buil d driver" && exit; \
if [ ]; then \
cd coredrv; make TARGET=TARGET_SELAH KERNEL_SOURCE_PATH= "PSTN_DEF=-DTARGET_SELA H -DTARGET_LINUX -DLINUX" 536core; \
else \
cd coredrv; make TARGET=TARGET_SELAH KERNEL_INCLUDES=/lib/modules/`uname -r`/bui ld/include \
"PSTN_DEF=-DTARGET_SELAH -DTARGET_LINUX -DLINUX" 536core; \
fi ; \
cp Intel536.o .. ; \
if [ -a /boot/vmlinuz.version.h ]; then \
cp /boot/vmlinuz.version.h /lib/modules/`uname -r`/build/include/linux/v ersion.h;\
fi
2.6.8.1-3-386
make[1]: Entering directory `/home/mine/intel-536EP-2.56.76.0-mdk10-UP/coredrv'
make -C /lib/modules/2.6.8.1-3-386/build SUBDIRS=/home/mine/intel-536EP-2.56.76. 0-mdk10-UP/coredrv modules
/usr/src/linux-headers-2.6.8.1-3-386/scripts/gcc-version.sh: line 1: gcc: comman d not found
/usr/src/linux-headers-2.6.8.1-3-386/scripts/gcc-version.sh: line 1: gcc: comman d not found
make[2]: Entering directory `/usr/src/linux-headers-2.6.8.1-3-386'
CC [M] /home/mine/intel-536EP-2.56.76.0-mdk10-UP/coredrv/coredrv.o
/bin/sh: line 1: gcc: command not found
make[3]: *** [/home/mine/intel-536EP-2.56.76.0-mdk10-UP/coredrv/coredrv.o] Error 127
make[2]: *** [_module_/home/mine/intel-536EP-2.56.76.0-mdk10-UP/coredrv] Error 2
make[2]: Leaving directory `/usr/src/linux-headers-2.6.8.1-3-386'
make[1]: *** [536core_26] Error 2
make[1]: Leaving directory `/home/mine/intel-536EP-2.56.76.0-mdk10-UP/coredrv'
2.6.8.1-3-386
Failed to build driver

B….., no driver but a long way further down the path.

Anyone out there able to decipher the message? :confused:
B.M. (505)
370984 2005-07-18 06:27:00 I don't like the "gcc: command not found". Otherwise, it all looks OK. ;)

Try entering gcc -v. It looks as if you haven't got the compiler, or it's not in your path. (It ought to be).
Graham L (2)
370985 2005-07-18 06:41:00 Just in case anyone is interested in the header installation here's how it went.

root@ubuntu:/home/mine # cd intel-536EP-2.56.76.0-mdk10-UP
root@ubuntu:/home/mine/intel-536EP-2.56.76.0-mdk10-UP # sudo apt-get install linux-headers-2.6.8.1-3-386
Reading Package Lists... Done
Building Dependency Tree... Done
The following extra packages will be installed:
linux-headers-2.6.8.1-3
The following NEW packages will be installed:
linux-headers-2.6.8.1-3 linux-headers-2.6.8.1-3-386
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/3492kB of archives.
After unpacking 43.4MB of additional disk space will be used.
Do you want to continue? [Y/n] y

Preconfiguring packages ...
Selecting previously deselected package linux-headers-2.6.8.1-3.
(Reading database ... 61305 files and directories currently installed.)
Unpacking linux-headers-2.6.8.1-3 (from .../linux-headers-2.6.8.1-3_2.6.8.1-16_i 386.deb) ...
Selecting previously deselected package linux-headers-2.6.8.1-3-386.
Unpacking linux-headers-2.6.8.1-3-386 (from .../linux-headers-2.6.8.1-3-386_2.6. 8.1-16_i386.deb) ...
Setting up linux-headers-2.6.8.1-3 (2.6.8.1-16) ...

Setting up linux-headers-2.6.8.1-3-386 (2.6.8.1-16) ...
root@ubuntu:/home/mine/intel-536EP-2.56.76.0-mdk10-UP #

The BOLD is all I typed. The rest is courtesy of the programme.
B.M. (505)
1 2 3 4 5 6 7 8