Results 1 to 9 of 9

Thread: driver cannot be compiled.it´s trying to write to ramdisk

  1. #1
    Junior Member
    Join Date
    Aug 2003
    Posts
    5

    driver cannot be compiled.it´s trying to write to ramdisk

    i am new to knoppix.
    I too am trying to get a driver (modem) to work with knoppix, but it needs to be compiled first. Following the instructions isn't a problem, the problem lies in the drivers try to compile to the ramdisk (i guess), obviously it is not allowed to do so and i cannot use my modem.
    i am trying to work on a toshiba satellite 1900-305 with 512mb of ram.
    is there any chance to change the default directory from de cd to hdd so that i can install other drivers??
    thanks.
    jose simas

  2. #2
    Member registered user
    Join Date
    Apr 2003
    Location
    Normandie (France)
    Posts
    31
    Hi,

    You surely have some Makefile in your archive of your driver.

    You have to modify ithis in order to place the work in a folder where you can write (ex:/home/knoppix)

    The aim is to obtain the .o file wich is a module

    Nb: You can(t write for example in /usr/bin /usr/sbin ...

  3. #3
    Junior Member
    Join Date
    Aug 2003
    Posts
    5
    for starters, thanks!
    i have done what you said but the d*mn thing doesn´t compile totally.
    i get 5 .o compiled files but near the end it keeps on giving me some errors i some other files..
    do you know if someone has slmdm-2.7.10 compiled? i think that would overcome my problems..

  4. #4
    Member registered user
    Join Date
    Apr 2003
    Location
    Normandie (France)
    Posts
    31
    It sometimes happen at the end of the script that a command depmod which write in some file give an error...

    You've to look at this error and find why it happen... in order to modify the command in the script or to comment it

    for ex: if you only look for compiling module you don't need to "automate" their loading at boot time ...

    But it's hard helping you in sense that i don't know what are the result of your errors...

    May you post the error message or tell us which "modem" or driver you want to compil ?

  5. #5
    Junior Member
    Join Date
    Aug 2003
    Posts
    5
    i am trying to compile slmdm-2.7.10 into a knoppix live cd with a home directory in the hard drive but is not fully instaled to the drive.
    sorry i am a noobie...
    the main thing for what i understand is that when i try to compile the makefile it tries to write to the read only part of the system
    the modem is the one that comes with the toshiba satellite 1900-305. for what i can see it is a hsf modem running on com3 or ttyS2

  6. #6
    Member registered user
    Join Date
    Apr 2003
    Location
    Normandie (France)
    Posts
    31
    Re !

    You've to forget winchose !

    Com3 is not available ... this is different ... So you can't "able" to see that your winmodem is com3...

    Could you tell me wich driver you want to compile ? did you try the script scanmodem ?

    did you identify your "modem" ?

  7. #7
    Junior Member
    Join Date
    Aug 2003
    Posts
    5
    i am trying to compile smartlink driver slmdm-2.7.10. i have scanned and discovered that the modem is a hsf one and for what i have read in other pages it uses the slmdm-2.7.10 driver. even tough there are new drivers from the same maker they are not intended to this modem.
    the problem in compiling the files is that it writes to a part of the system that is read only.
    from what i can understand the problem in the makefile starts in:

    install: kernel-ver all
    $(INSTALL) -D -m 644 slmdm.o $(prefix_dir)/$(MODULES_DIR)/slmdm.o
    $(INSTALL) -D -m 644 slfax.o $(prefix_dir)/$(MODULES_DIR)/slfax.o
    $(INSTALL) -D -m 644 slamrmo.o $(prefix_dir)/$(MODULES_DIR)/slamrmo.o
    $(INSTALL) -D -m 644 slusb.o $(prefix_dir)/$(MODULES_DIR)/slusb.o
    $(INSTALL) -D -m 755 country.dat $(prefix_dir)/etc/country.dat
    $(INSTALL) -d $(prefix_dir)/dev
    $(RM) -f $(prefix_dir)/dev/$(MODEM_DEV)
    $(MKNOD) -m 666 $(prefix_dir)/dev/$(MODEM_DEV) c 212 0
    $(LN) -sf ./$(MODEM_DEV) $(prefix_dir)/dev/$(MODEM_LINK)

    from the first statement on it keeps on giving me errors about the read only dirs

  8. #8
    Member registered user
    Join Date
    Apr 2003
    Location
    Normandie (France)
    Posts
    31
    I believe you have a path variable prefix_dir at the start of the makefile

    and another module_dir you have to change the first one and maybe the other to /home/knoppix/driver

    which driver is a folder you have already create

  9. #9
    Member registered user
    Join Date
    Apr 2003
    Location
    Normandie (France)
    Posts
    31
    Hi,

    You can see in the file Makefile:

    MODULES_DIR = /lib/modules/$(shell ./kernel-ver)/misc

    You can try to create a directory in your path (which is writable) like:
    mkdir /home/knoppix/modem

    Then you can change the line like:
    MODULES_DIR = /home/knoppix/modem/lib/modules/$(shell ./kernel-ver)/misc

    You will have a module .o in your /home/knoppix/modem/lib/modules/2.4.20-xfs/misc/

    But you'll have many other error, like modprobe error...

    Once you've your module, you'll have to do:
    insmod /home/knoppix/modem/lib/modules/2.4.20-xfs/misc/name_of_your_module.o

    Then you've to verify but you'll have to do:
    mknod -m 666 /dev/ttySL0 c 212 0
    ln -s /dev/ttySL0 /dev/modem

    I hope this could help you

Similar Threads

  1. C compiled files with Knoppix
    By kepler in forum MS Windows & New to Linux
    Replies: 2
    Last Post: 11-10-2004, 04:32 PM
  2. Running compiled files
    By kepler in forum General Support
    Replies: 2
    Last Post: 11-08-2004, 01:30 PM
  3. Knoppix for PS2, compiled for MIPS
    By stelman in forum Ideas
    Replies: 1
    Last Post: 10-05-2003, 03:54 PM
  4. Request for MPPE compiled in...
    By Vermyndax in forum Ideas
    Replies: 1
    Last Post: 03-28-2003, 10:05 PM
  5. Can't run vortex-diag which I compiled for my NIC
    By Sport in forum General Support
    Replies: 2
    Last Post: 02-05-2003, 03:11 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Dell PowerEdge M630 Blade Server 2x Xeon E5-2680 v4, 2F3MP , 4GDP5 ,R10KJ ,JVFVR picture

Dell PowerEdge M630 Blade Server 2x Xeon E5-2680 v4, 2F3MP , 4GDP5 ,R10KJ ,JVFVR

$95.20



Dell PowerEdge M640 Blade Barebone Server Dell P/N: HHB006 Tested Working picture

Dell PowerEdge M640 Blade Barebone Server Dell P/N: HHB006 Tested Working

$149.99



Dell PowerEdge M620 Blade Server 2x Xeon E5-2680v2 2.8ghz 20-Cores | 128GB picture

Dell PowerEdge M620 Blade Server 2x Xeon E5-2680v2 2.8ghz 20-Cores | 128GB

$149.99



Cisco UCS 5108 Blade Server Chassis Enclosure N20-C6508 4x PSU 8x Fans 2x Fabric picture

Cisco UCS 5108 Blade Server Chassis Enclosure N20-C6508 4x PSU 8x Fans 2x Fabric

$174.99



Dell Poweredge C6400 24x 2.5’’ 2x 2400W 4x C6420 Nodes H330 | 2x SFP | 8x Trays picture

Dell Poweredge C6400 24x 2.5’’ 2x 2400W 4x C6420 Nodes H330 | 2x SFP | 8x Trays

$799.99



HPE PROLIANT BL460C GEN 9 813198-B21 2.5

HPE PROLIANT BL460C GEN 9 813198-B21 2.5"x2 Server Blade SEE NOTES

$21.08



Datto S4P10 1U Blade Rack Server Intel Xeon D-2143IT 2.20GHz 48GB DDR4 4-Bay PSU picture

Datto S4P10 1U Blade Rack Server Intel Xeon D-2143IT 2.20GHz 48GB DDR4 4-Bay PSU

$197.76



Dell PowerEdge FX2 FX2s Server 10GbE CMC Blade Enclosure Chassis picture

Dell PowerEdge FX2 FX2s Server 10GbE CMC Blade Enclosure Chassis

$274.99



AS IS READ DESCRIP. Supermicro SuperServer 6026TT-HIBQRF 12-Bay 4x X8DTT-HIBQF picture

AS IS READ DESCRIP. Supermicro SuperServer 6026TT-HIBQRF 12-Bay 4x X8DTT-HIBQF

$215.00



Dell Poweredge VRTX 25Bay 2.5

Dell Poweredge VRTX 25Bay 2.5" 2x PERC 8, 2xCMC, I/O 1GB Pass Through, 4x PS

$578.08