Stream Device Driver Development

Hai,
I am doing "Stream Device Driver" in "SunOs 5.8" Using "Forte C++ " Compiler. This Driver Type is Multiplexer.
My Coding is Over but i can compile my code. But I am not able Link the object file.
Compiler giving error is
# make
cc -r -o /wacom /wacom.o
ld: fatal: symbol `_fini' is multiply-defined:
(file /opt/SUNWspro/WS6U2/lib/crti.o and file /wacom.o);
ld: fatal: symbol `_init' is multiply-defined:
(file /opt/SUNWspro/WS6U2/lib/crti.o and file /wacom.o);
ld: fatal: File processing errors. No output written to /wacom
make: *** [wacom] Error 1
Compiler giving "Multiply-defined" for "_file", "_init" functions.
pls send the solution for me.

Try
cc -c -Xa -D_KERNEL /wacom.c
ld -r -o wacom wacom.o

Similar Messages

  • Stread Device Driver Development

    Hai,
    I am doing "Stream Device Driver" in "SunOs 5.8" Using "Forte C++ " Compiler. This Driver Type is Multiplexer.
    My Coding is Over but i can compile my code. But I am not able Link the object file.
    Compiler giving error is
    # make
    cc -r -o /wacom /wacom.o
    ld: fatal: symbol `_fini' is multiply-defined:
    (file /opt/SUNWspro/WS6U2/lib/crti.o and file /wacom.o);
    ld: fatal: symbol `_init' is multiply-defined:
    (file /opt/SUNWspro/WS6U2/lib/crti.o and file /wacom.o);
    ld: fatal: File processing errors. No output written to /wacom
    make: *** [wacom] Error 1
    Compiler giving "Multiply-defined" for "_file", "_init" functions.
    pls send the solution for me.

    Try
    cc -c -Xa -D_KERNEL /wacom.c
    ld -r -o wacom wacom.o

  • Entry in /dev for streams device driver

    I am building a streams device driver. I have added it to the system using add_drv. I have loaded the module using modload. How do I get an entry into /dev so I can test the driver?

    Hi There,
    Do you have an entry in /devices?
    If so, I had a similar problem and got some help a few weeks ago.
    If you look back about 4 pages of messages you'll see mine there.
    One suggestion was to make an addition to the devlinks.tab file. I didn't find this worked, but I could well have missed something.
    I did find creating a link manually using ln did work and I could access my driver.
    Cheers,
    Bruce.

  • USB driver development using DDK

    I heard that Sun Blade 1000 supports USB.
    To connect our product with Sun machine through USB, we are trying to develop USB device driver using DDK for Solaris.
    Please let me know that present DDK supports USB device driver development.
    Thank you in advance.

    You may want to look at
    http://soldc.sun.com/developer/support/driver/docs/whitepapers.html
    There are a couple of whitepapers on the subject
    Regards,
         Cyril
    I heard that Sun Blade 1000 supports USB.
    To connect our product with Sun machine through USB,
    we are trying to develop USB device driver using DDK
    for Solaris.
    Please let me know that present DDK supports USB
    device driver development.
    Thank you in advance.

  • How to develop 64-bit Windows device driver for NI-6602?

    Due to the fact that NI-VISA doesn’t support 64 bit Windows, how can I do to develop a 64 bit Windows device driver for NI 6602 (Counter/timer) PCI card. The possible jobs include:
    Develop a Windows Kernel Mode Driver (“Device Driver”);
    Make it to comply with VISA in order to utilize “osiBus Generic IO Interface” and MH DDK.
    Could anyone please give me some advices as soon as possible?
    William Liao
    Message Edited by Wiliao on 07-22-2005 04:12 PM

    Hi All,
    I am currently working on getting the health parameters
    from the motherboard like voltage fan and temperature. I have already
    already done this using 32 bit winio driver but i am not able to work
    on 64 bit version. is there any driver availbale in 64 bit for
    obtaining this parametes or some one help me to get a 64 bit winio
    driver.
    Regards,
    Senthil prabu R

  • Searching hardware to develop a device driver (kernel module)

    Hello!
    This semester I hear "device driver programming" (based on the linux kernel) at university. During the semester we develop a "exercise driver". It's a character device which shares (kernel) memory between different applications. Besides of that I want to develop a second driver based on real hardware.
    Because of that I'm searching a hardware with free available technical documentation. I want to buy a usb device or a pc card device, because I only have a notebook for developing issues.
    Has anybody a good idea?
    Best regards,
    Flasher?

    I don't know that there is a proprietary driver. In fact, I'm sure there isn't because I never installed one. I figured there was some code file somewhere that dealt with keyboards. Yes, I have dealt with the developer, they say to tell Apple there is a problem. I have been putting it off and waiting to update since 10.6.3, so the problem is getting a little old. Do I even know there is a problem? I'm not sure what this means. I do know that when I update my operating system past 10.6.2 my keyboard no longer works, and I have to use a stock Apple keyboard to run a time machine reinstall. Why else would I be going through this?

  • Driver development for TI device

    Hello Microsoft support team,
    I am currently developing WDK driver for PCI device. I am beginner in driver development and I found a KMDF WDK driver project for generic PCI device (PLX9x5x PCI Driver) from your website. However, in my attempt to adapt this driver for my PCI device, which
    is a TI TMS320c6657 DSP evaluation board, I get stuck into some problems. My objective is to send data from PC (Root complex) via DMA transfer on PCIe interface to the the DSP evaluation board (End Point) for signal processing. And I am not able to match the
    sample PCI driver with my device. I am seeking a starting guide on how I modify the the generic driver to suit my specific PCI device.
    Thanks.
    With regards,
    Alemayehu

    I know of no guide to do this.  What I recommend is you walk the driver, starting with DriverEntry.  By walk the driver, I mean for each function, review its purpose in the WDK documentation, and look at what the sample does.  Cleanup the
    function to reflect the needs of your device, then go on to the functions that call references.
    Besides the PCI driver sample, take a look at the minimum Toaster function driver, this is a good sample with most functions empty that you can use to get going.  As you cleanup run the compiler with /W4 and Code Analysis on the code to catch mistakes. 
    For the code analysis change the options to enable all the rules.
    Don Burn Windows Filesystem and Driver Consulting Website: http://www.windrvr.com

  • PCI-6534 Device Driver Availabili​ty

    I am thinking of using a PCI-6534 for continious streaming 32 bit digital pattern generation from a host PC and clocked via an external clock at 1 - 10 MHz. From the benchmarks it seems that the PCI-6534 will meet these needs. My question involves device drivers. Windows is not an option for the system I am constructing as we have stability requirements that border on the need for a hard real time system. Is there enough information available about the card to allow a device driver to be written for an operating system such as Linux or RTLinux? Alternatively are such drivers available or alternatively for a RTOS such as QNX or VxWorks?

    National Instruments does not provide drivers for the Operating Systems you listed.
    However, there is a lot of information available on the PCI-DIO-32HS and register level programming available on the National Instruments website at:
    www.ni.com/support/daqsupp.htm
    view the Register Level programming link.
    under that link there is some information about programming the card through the registers. Also view the DAQ Register Programming link in the register programming site for examples and header files.
    In addition you may want to visit http://www.ni.com/linux/daq_comedi.htm
    where National Instruments provides information and a link to the Comedi group which has developed a Driver for Linux that has had success with the PCI-DIO-32HS.
    Hope this help you get starte
    d.

  • How / from where to start on Solaris Driver developement?

    Hi,
    'm a User domain developer, want to also learn about driver developement.
    Please give me pointers so that I can start with
    Thanks,
    -Vikrant

    First of all you should download the following two documents:
    - Writing Device Drivers
    - STREAMS Programming Guide
    If you want to develop USB drivers you must have USBA 1.0 installed (Solaris 8/9 has 0.8 as default) and additionally download the "USB DDK" from Sun.
    A device driver is an object file (created by "ld -r ..."). You cannot decide if you use 32 or 64 bit. On a 64 bit OS you MUST use 64 bit code.
    If you use GCC: On Sparc machines 64 bit code is generated using "-m64", not using "-xarch=v9".
    The driver must provide three functions: "_init", "_info" and "_fini" (see first document).
    There are two types of drivers:
    1) Streams drivers (described in the second document) are drivers for stream devices. These are all devices that implement a character stream and can be used with "streamio" ioctls. Examples are: All terminals and serial ports, printer ports, mice, keyboards, ...
    These devices communicate with the system calls (e.g. read, write, ioctl) using special data packets. Therefore programming Streams drivers is very different from writing other drivers.
    All streams devices are character devices.
    You can also write streams modules (see man streamio, I_PUSH). Such modules are "filters" that can modify the data between the device driver and the application.
    2) Other drivers. They may be character or block devices. These drivers have different functions for different function calls. Example: The "ioctl" function call will call the function "MyDriver_Ioctl" of your driver.
    I think writing a non-streams driver is way more simple than writing a streams driver. I had some system crashes when running instable self-written streams drivers. However some drivers must be streams drivers e.g. if you want to use the device as a terminal device or if you want to push modules using I_PUSH.
    Unlike Linux the OS detects the presence of hardware and decides when to load a driver. You create the file /kernel/drv/NameOfYourDriver.conf with driver settings. This file also contains the information that your driver does not require hardware (e.g. ram disks). You must add your driver to the system by typing "add_drv NameOfYourDriver". Use the "-i" option to tell the system which hardware is handled by your driver.
    Martin

  • IPhone not showing up in iTunes- device driver issue?

    I'm having a problem getting iTunes to recognize my iPhone. I'm running XP Pro 64-bit. I know iTunes isn't supposed to work with x64 XP, but I've had it working for months now (by doing a quick edit to the .msi installer it will install on XP). I'm using the newest iTunes 8.1 and the new 3.0 iPhone OS (yes, im on the developer program). When i plug it in windows beeps and gives me the camera wizard, but iTunes does nothing. I've tried updating the driver in device manager and choosing "i will pick the driver to install" and then picking the apple mobile device driver. i clicked "continue anyway" when it told me my face was going to melt off if i use this driver. I went to help in iTunes and ran diagnostics; everything passes on the connectivity tests, but then it tells me "one or more sync tests failed". I had it working 2 days ago with the 3.0 and iTunes 8.1. it just all the sudden stopped working. any help is greatly appreciated. i thank you in advance for your time.

    If you are a registered developer - the iPhone SDK runs on an Intel Mac running OS X Leopard only, then you can visit the Developer Forum for the SDK (which isn't supported with Windows) and for the 3.0 BETA, which is for IPhone and iPod Touch app development, which requires an Intel Mac running Leopard.

  • Apple iPod USB Device driver issue on Win XP - syncing shuffle 2nd gen.

    Hello fellow iPod shuffle users. Any of you run into this problem using the following configurations? Any advise/recommendations/workarounds much appreciated as I've burned 3 days on this issue and I'm still stonewalled.
    I personally think it's a device driver issue/bug and am searching for a way to update my Apple iPod USB device driver for Win XP. Two brand new ipod shuffles (received for Christmas 2008) are both behaving this way, so the problem most likely points to a global software issue more-so than to shuffle hardware issue.
    PROBLEM STATEMENT: Driver data i/o streaming issue does not allow shuffle to sync data with iTunes after initial sync (i.e. reading the content of the shuffle is good, but writing modified content fails). Posted error message "The ipod ... cannot be synced. Required disk cannot be found". After cracking the hood on my device driver, the problem seems to point to the Apple iPod USB device driver for Win XP. Driver will recognize the shuffle and read to it, but subsequent write attempts will result in device driver balks that "this device cannot start (code 10)".
    ATTEMPTED WORKAROUNDS:
    *Read All "How to Get Started Manuals" to make sure I was using the right technique for syncing my two shuffles from within iTunes... tried and failed
    *Ensure only one shuffle was plugged in at a time (saw notice that two shuffles plugged in at the same time is not yet a supported config)... tried and failed
    *The 5 R's as recommended by Apple Support... tried and failed.
    *I've tried all 3 built in USB ports on my Lenovo T60. no love... tried and failed.
    *Per discussion board: From Window's Device Manager-> Scaned for new hardware while shuffle was syncing...tried and failed.
    * Per Discussion board: From Window's Disk Management -> Ensured shuffle came up as a FAT32 filesystem... connection tore down as quickly as windows recognized it.... tried and failed.
    *From Windows Software config utility: Ran repair to re-install itunes 8... same results.
    *From Windows software management utility: Uninstalled and reinstalled itunes 8... same results.
    Hardware: IBM Thinkpad/Lenovo T60. Using build in k/b & no external mouse. Has 3 USB built in ports.
    Software: Windows XP Pro SP2/iTunes 8.0.2/shuffle (2nd gen) driver 1.0.4 (same behavior using the original driver 1.0.3).
    Apple iPod USB Device properties:
    Driver Provider - Microsoft
    Driver Date - 7/1/2001
    Driver Version - 5.1.2535.0
    Digital Signer - Microsoft Windows Publisher

    Hi. Ive got pretty much the same problem.... Got a new shuffle for christmas..having real problems syncing with itunes. Funnily enough I managed to get 25 tracks on it but then it just stopped. error message says " The ipod shuffle cannot be synced. The required disk cannot be found." Ive done restore, and downloaded a reset utility thingy to try but still no joy.

  • How do I get my Hifi streaming device to find my music on my Mac Pro?

    I have just bought a Cyrus Stream XP for my hifi system.
    All my music, both ripped and purchased as downloads, is stored in iTunes on my Mac Pro.
    This is linked via an ethernet cable to a Sky broadband which provides my home network.
    Cyrus recommend using the XP with a seperate NAS drive and network switching box for best results but it should also work with a wireless home network.
    At this stage I don't really want to trail ethernet cabling over the gouse and Homeplug ethernet over mains will not work over surge protection which I have for both Mac and hifi at present.
    I was told that as soon as I'd set up the streamer it would be able to find the wireless network and play all the music content that is stored on it.
    Although the Cyrus unit is finding the wifi network and can get internet radio and play music from my iPhone, it hasn't been able to find my Mac Pro on the network.
    I have checked file sharing in sharing preferences and within iTunes and both are set to share files on computers and devices on my local network.
    I tried backing up my iTunes library to a portable HDD and plugging it into the usb port on the Stream XP but it was unable to read any content.
    This is a bit weird as it should be reading the content without any problem.
    I've even tried taking the individual music files out of the iTunes folder structure and just putting them onto the HDD but this couldn't be read either.
    I'm at a loss and having tried the dealer I purchased it from, Apple support and Cyrus Tech support, nobody has come up with a solution.
    Anyone else had any experience of using streaming devices on Hifi systems (ideally via wifi) that could help?

    Sorted.
    Basically (in case anyone cares!)
    Cyrus XP won't read the files on the HDD as they are 64 bit.
    Bought Netgear Powerline ethernet over mains & WD My Book Live.
    Created a ethernet drive with the WD MBL and have copied all my music over to that.
    Converted Apple Lossless & AIFF files to AAC.
    Now plays all the music I've ripped & downloaded.
    Next step is to identify a decent FLAC ripping program for Mac.

  • How to add and configure a usb device driver in SRSS for Sunray?

    Dear Sir,
    If I want to use a usb device on Sunray 2 (the usb device is plugged into Sunray's usb port), and I have been developed a usb driver on Solaris 10. Can I install the same driver in SRSS host to active the usb device in Sunray? If it can, how do I configure SRSS and where is the location of SRSS drivers? Can I use add_drv similar command to add my driver to SRSS?
    The second question is when I plug-in a usb device to Sunray, can I see device information (VID, PID, and so on) in any log file or by any command as "prtconf -v" on Solaris?
    Thank you very much.
    Best Regards,
    Steven

    What sort of USB device do you want to use ?
    The peripherals chapter in the SRSS admin guide tells you how to use supported USB devices.
    http://docs.sun.com/source/819-2384/dev.html
    Drivers written for Solaris devices will not work with Sun Ray devices. If you want to write a device driver for Sun Ray, it is recommended you use libusb for a userland driver. See libusb notes on same chapter mentioned above.
    There is currently no SRSS utility to list Sun Ray device parameters like prtconf does.
    You could write a libusb application to do this, or use the test program described here:
    http://libusb.sourceforge.net/doc/examples.html

  • Driver development for custom PCI card

    Hi friends,
    I've a PCI card developed in-house. How to prepare a driver for the same in LabVIEW? Can I develop drivers in VISA? I don't have a manufacture id. Is there any other method to develop a driver for PCI card? Once developed, can I use them for other platforms like VC++? My OS is Windows 9X/NT & 2000. I need a driver to use for all these. Lot of querries! hope I made it clear.

    THE ANSWER IS THAT YES YOU CAN DO THIS IN NI-VISA!
    Some have said that you need a kernel driver. This is partially true in that a PXI or PCI card (they are the same as viewed by the OS) must have a kernel driver. NI-VISA provides one for you.
    You said that you do not have a manufacturer ID. This is a requirement of all PCI cards and no kind of driver will work until the card has one. Once you have this ID, run the VISA PXI Driver Development Wizard and it will generate an INF for you for all supported NI-VISA environments that support PXI/PCI. Read the instructions in the appropriate INF file for how to install it into the system so that the OS will attach NI-VISA to your device. It's really simple. NI-VISA supports PXI/PCI on Windows 95, 98, ME, NT
    4, 2000, XP, and LabVIEW RT.
    Some have said that MAX will just show you all PXI/PCI devices in your system. Your device will not show up until NI-VISA can see it, and that won't happen until you generate an INF as described above.
    Since the INF file associates NI-VISA itself to your card, the ADE you use does not matter. NI-VISA supports PXI/PCI in LabVIEW, CVI, MSVC, Visual Basic, or any other ADE that normally works with VISA.
    NI-VISA works well even with more advanced devices because we support all types of register accesses (config, I/O, memory) as well as interrupt handling. Just look at the visa.h that NI ships in the VXIpnp directory. If you are using C/C++, make sure you define NIVISA_PXI before including visa.h. If you use LabVIEW, you need to use the address space numbers as defined in visa.h.
    Good luck.
    Dan Mondrik
    Senior Software Engineer, NI-VISA
    National Instruments

  • Writing USB-Serial Converter Device Driver for Windows CE 6.0

    Dear Developers,
          I have a Silicon Labs chip Cp2108. Its a Quad USB to Serial converter. It supports all the operating systems except Win CE. So I have the source code of the driver for Linux 2.6 / Linux 3.0. I have experience in Device drivers development
    in Linux.
      Question is How will I start coding driver for Windows CE 6.0. Can anyone point me to a best starting point on this topic. All I need to do is make this chip work with WIN CE 6.0. Can anyone point me to a Sample driver source code It will be great.
     Regards,
         Winston

    Dear Vinoth, 
            Thanks for the valuable reply. 
      I am confused a bit here. I need to make the external USB -UART bridge (CP2108) work on win CE 7.
       the driver in Path \WINCE600\PUBLIC\COMMON\OAK\DRIVERS\USB\CLASS\USBSER is using the built in USB controller
    hardware and making it as a Serial port right ? 
       How do you go about making the external USB -UART bridge work as a COM port ? 
     I have a document from SIlicon Labs which gives info about Device descriptors and interface commands . 
      Regards,
        Winston 

Maybe you are looking for

  • 'Sqlite' what is it and why is AVG warning me about it

    Over the last few days, wheni open 'Firefox' AVG kicks in and tells me of a 'cookie' named 'Sqlite' in one of the firefox folders on my P.C this happens all the time, what is this 'sqlite' for, i searched the net for some info' and was alarmed to rea

  • Authorization Object Related To Movement Type

    Hi, I meet one problem, one user want to check which user can use MB1A t-code with movement type 201 and 202, but I know there are some authorization object related to movement type and I want to use suim with mb1a t-code and authorization object to

  • Doubt regarding summation

    Hello, how can i sum the result of all columns & display in a fourth one .. do v have any function for that...? Suppose .. Col_1 | Col_2 | Col_3 | Col_4 | Total ROW - 1 120 130 100 200 550 ROW - 2 10 30 10 20 70 Here i dont want to do like (col_1 + c

  • Delta-L seems to be killing BIOS chips.

    Long post, but please read. I had (stiil have) a Delta-L, and it ran fine about a year or so. After this time, ramdom/massive lockups begun. After some time it died (in truth the bios chip got corrupted,and SURELY it was corrput, tried everything, ev

  • The Store

    PLEASE HELP IF SOMEONE KNOWS HOW. PLEASE. The store on my phone is having trouble with the connection. It started 2 weeks before. Wi-fi is working great. I don't know what to do. PLEASE REPLY AS SOON AS YOU CAN. Model: Nokia Lumia 735. Windows 8.1