Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Install local drivers

  • 23-01-2012 9:41pm
    #1
    Registered Users, Registered Users 2 Posts: 861 ✭✭✭


    Evening all.
    I'm new to linux so be patient.
    I have Ubuntu Studio installed.
    I have a usb to RS232 convertor for controlling a telescope.
    This convert came with linux drivers.
    The driver package consists of a .c file and a .h file.
    There is also a readme which contains:


    # This Makefile has been simplified as much as possible, by putting all
    # generic material, independent of this specific directory, into
    # ../Rules.make. Read that file for details

    # The usb serial headers
    INCLUDEUSBSER := $(shell echo "/usr/src/linux-`uname -r`/drivers/usb/serial/")

    TOPDIR := $(shell pwd)
    #TOPDIR = .
    include $(TOPDIR)/Rules.make

    CFLAGS += -I$(INCLUDEUSBSER) -O

    OBJS = ftdi.o

    all: $(OBJS)

    ftdi.o: ftdi_sio.o


    install:
    install -d $(INSTALLDIR)
    install -c $(OBJS) $(INSTALLDIR)

    clean:
    rm -f *.o *~ core


    I'm guessing these are steps to be performed in the terminal window but I am struggling.
    Can anyone help?
    Thanks,

    Wavey


Comments

  • Registered Users, Registered Users 2 Posts: 3,739 ✭✭✭Stuxnet


    presuming the files are extracted to somewhere, if you right click each file, go to properties, and go to permissions tab, and tick the box to make them executable, then double click them, & run in terminal, they should install, :)


  • Registered Users, Registered Users 2 Posts: 17,727 ✭✭✭✭Sherifu


    Have you tried the following 3 commands: ?

    ./configure
    make
    make install


  • Registered Users, Registered Users 2 Posts: 1,333 ✭✭✭Saganist


    Can you list the files in the directory you untarred the files ?

    As a pervious poster said. Normally you run the configure script ( ./configure )

    And then run make, make test and make install.

    Make sure your C complier and make command are in your PATH

    echo $PATH to verify, or run which make.


  • Registered Users, Registered Users 2 Posts: 861 ✭✭✭Wavey


    Thanks for the replies lads.
    I am a complete linux novice so speak slowly.

    The files that I untarred are:

    ftdi_sio.c
    ftdi_sio.h
    Makefile (no extension)
    Rules.make


    How to I run the commands "./configure, make, make install "?
    I have typed them into the terminal but that dosent work.

    Thanks,

    Wavey


  • Registered Users, Registered Users 2 Posts: 2,370 ✭✭✭Knasher


    You don't have a ./configure script so skip that command.

    Make sure you are in the right directory before calling make. After calling make you should have a file called ftdi.o, if you don't, post the terminal output from make.

    After that you will probably need to call "sudo make install"


  • Advertisement
  • Moderators, Education Moderators, Home & Garden Moderators Posts: 8,260 Mod ✭✭✭✭Jonathan


    FTDI based RS232 chips are ubiquitous and should be detected automatically in any recent distribution.

    Plug it in and type dmesg to see if it is detected.


  • Registered Users, Registered Users 2 Posts: 861 ✭✭✭Wavey


    Jonathan wrote: »
    FTDI based RS232 chips are ubiquitous and should be detected automatically in any recent distribution.

    Plug it in and type dmesg to see if it is detected.
    The device is listed when I type dmesg.
    Is it safe to assume the device is working correctly if it listed there?


  • Moderators, Education Moderators, Home & Garden Moderators Posts: 8,260 Mod ✭✭✭✭Jonathan


    Wavey wrote: »
    The device is listed when I type dmesg.
    Is it safe to assume the device is working correctly if it listed there?
    Yup. The FTDI driver has been included in the mainline kernel since 2.6.12 at least (that was when kernel development moved to git).


Advertisement