Configurating My Modem

I found the following LINK and I follow all the steps, until I get to step 4, and I get the following command:

[root@mmr-linux sbin]# sm56setup

   Motorola SM56 SoftModem Setup for Linux

Building driver...

/usr/sbin/sm56setup: line 22: gcc: command not found

/usr/sbin/sm56setup: line 23: ld: command not found

cp: no se puede efectuar `stat' sobre `/usr/local/sm56/sm56.o': No such file or directory

Creating device /dev/sm56...

Pointing /dev/modem to /dev/sm56...

Adding SM56 to /etc/modules.conf...

SM56 setup complete.

[root@mmr-linux sbin]#

I hope you can help me, you know this is a big deal to me, and I need to solve this.

Thanks in advance

#3954

the configuration is trying to compile something, and it can't find the compiler (gcc) and the linker (ld) make sure you have gcc installed, (vital if you want to get something from source code to run). If you don't I am sure you can find an rpm, install it and you are ready to go.

#3965

the problem is that the rpm's provided by the manufacturer, motorola, dont work, there are a lot of issues with it, how and where can I get the things it want?

#3967

you need the GCC rpm for the distribution that you are using. The driver is failing to compile because you don't have the compiler (GCC) Check your distribution CD's I am 100% that there the rpm is there somewhere.

I am talking abou the gcc rpm not the rpm for the driver.

searching on the net I found this... Mandrake's gcc rpm That is what you need installed before being able to compile the driver for the modem.

#3976

Yes mmr.. you need to install the compile... as before you tried installing an rpm and it asked for GCC... i'll tell you again how to install the software off of the mandrake cd.

click on the K button go to "What do to?" then go to Administer your system and then Add/remove programs

Once it has loaded.. in the search box.. type in GCC.. once its found click on GCC to mark it and click install packages.. make sure you Mandrake cd is in... then once its done installing you are free to install the other drivers you are trying to install

-bolero

#3978

i searched the ld on the install new components windows, and it made me install the missing, so there was no problem, but I cant make this command

[root@localhost /root]# mknod /dev/ppp c 108 0

it says the file already existes, plus it is a little comfusing the next steps, do you understand them?

this is the Link

Do you think it is puzzling? it seems that i need to connect from console, right? oir how? it mentions some names like minicom, kppp; Yawmppp but I dont know for what are those.

Please let me know how easy you find those steps and if you udnerstand.

#3992

well im sorry mmr cant help you any further.. i never really installed a modem on linux.. lol, dont need to.. but i bet it is a pain. All i know is that Kpp is the app to connect to your ISP on kde...

hope you get it working!

-bolero

#4067

well... configuring a modem in linux is pretty easy... you can use the default driver and everything works fine.

Your problem is winmodem those modems are specially designed to just work with windows, and it is a royal pain to get them working on linux

in the case of the mknod /dev/ppp c 108 0 the device already exists so just chmod 666 /dev/ppp

as for the mentionated software there are thousends of ppp software related for linux KDE and GNOME both include a one, for KDE check kppp look for it in the KDE menu it shoudn't be very dificult to find.

#4070

ok, I installed the dcc and the ld. Now i'm gonna follow the steps from the manufacturer driver for linux instruction, HERE

I follow the commands and this is the result:

[root@mmr-linux root]# rpm -Uvh SM56_5.1_I386.rpm

Preparing...                ########################################### [100%]

  1:sm56                   ########################################### [100%]

Please run sm56setup to complete installation.

[root@mmr-linux root]# sm56setup 052

   Motorola SM56 SoftModem Setup for Linux

Building driver...

`/usr/local/sm56/sm56.o' -> `/lib/modules/2.4.19-16mdk/kernel/drivers/char/sm56.o'

Creating device /dev/sm56...

Pointing /dev/modem to /dev/sm56...

Adding SM56 to /etc/modules.conf...

SM56 setup complete.

What should I do next? it seems to be working up to here, should I go to linuxconf? my modem is supposed ot be attached on the com 3, that says windows. Do you know if this is the common process on installing a modem? I think it is getting clearer.

Please dont let me with this thing down, atleast lets try.

#4079

umm well it says that setup is completed.. so maybe now the connections wizard will detect and use those drivers... just go to the mandrake control center.. go to network/connection.. click on connections and click on Wizard.. then tell it that your using a dial up connection and hopefully it wil detect it now

just an idea

-bolero

#4086

ok, so the previews message means that it is installed correctly, but It will detect that the modem is the com3? shouldnt I tel where it is? I'm gonna try. Thanks for all.

#4153

COM3 is a DOS/Windows name.. it translate to linux as /dev/cua* (the * means any number i.e.: /dev/cua3 )

the message indeed says it has been configured, let us know how it goes!!

GOOD LUCK!

#4158

I'm gonna try that when I return. I am using this guide now, HERE, I'm doing what it says, but there is a prob, it ask me to make some changes in the kernel, which I already did, and then recompile it,, but I dont understand the documentation and the process of recompiling it, cna anyone help me?

This is the step

SOLUTION

It is assumed that you have installed the kernel source codes.  It is available from your Mandrake Linux 8.2 installation CDs.

Type the following command to locate the kernel source code slab.c:

[root@localhost darwin]# locate slab.c

/usr/src/linux-2.4.18-6mdk/drivers/media/radio/radio-aimslab.c

/usr/src/linux-2.4.18-6mdk/mm/slab.c

[root@localhost darwin]#

We are interested in the file /usr/src/linux-2.4.18-6mdk/mm/slab.c. View the file using any text editor and go to line 1099.  You can see the following C codes:

static int kmem_cache_grow (kmem_cache_t * cachep, int flags)

{

slab_t *slabp;

struct page *page;

void *objp;

size_t offset;

unsigned int i, local_flags;

unsigned long ctor_flags;

unsigned long save_flags;

/* Be lazy and only check for valid flags here,

* keeping it out of the critical path in kmem_cache_alloc().

*/

if (flags & ~(SLAB_DMA|SLAB_LEVEL_MASK|SLAB_NO_GROW))

BUG();

if (flags & SLAB_NO_GROW)

return 0;

Note the lines in bold and red color, it is located in lines 1098 and 1099.  If we removed these lines, we can avoid the error message that is preventing our sm56 driver from being installed.  Comment out the lines in bold and red color

above:

/*

if (flags & ~(SLAB_DMA|SLAB_LEVEL_MASK|SLAB_NO_GROW))

BUG();

*/

Now recompile your kernel source code.  You can view the instructions located on the README.TXT in your kernel source code root directory.  Install your newly compiled kernel.  Reinstall the sm56 driver again if it is erased when installing the new kernel.  Then load the sm56 driver by typing insmod sm56.  Your driver should now install itself without the segmentation fault message.  Happy browsing using your sm56 and Linux!!!

I already modified the kernel source, but I dont know how to compile it as it says there, the current documentation is not easy to follow, I need help on that step.

Thanks in advance

#4165

You life would be much easier if you buy a real modem.... recompiling the kernel it is not for the faint of heart...

#4176

I'm sorry, but I cant afford one in this momemt, I dont plan to invest money on mandrake, and there are no linux modems on my area, the few modems are windows and the dont proveide linux drivers. btw, i dont have htis port listed, /dev/cua3, i have other, with SStyl or something like that, but they dont work

#4177

there was no luck on the compiling, plus it seems complx for a new linux user, atleast for me, I'm gonna search for a new modem, and evaluate if i would really use linux.

#4192