Programming :: Could Someone Confirm My Understanding Of Linux Drivers?

Jun 20, 2011

2 Questions:

1) Is there a dedicated forum on the net for people writing Linux drivers?

2) I've been reading over how Linux drivers are put together and even made my own dummy driver. However, before I begin writing the "real" driver I set out to write, I would like someone with some driver writing experience to verify that my knowledge is correct.

The driver I intend to write is for a PCI card. The very first thing I need is to know is the vendor ID and device ID of the card. After having that information, I can then use the pci_register_driver command to open a connection to the card. At this point, I need to use the pci_*_config_* commands (an example of a pci_*_config_* command is pci_read_config_byte) to figure out where the device is mapped in memory and what I/O ports I need. Now, the pci_* breed of commands take a parameter integer (which is an address) as there second argument. The address(es) which I will use and what they accomplish is device dependent. At this point, after having otained the I/O ports I need, I can then begin writing to them via the inb, outb, etc commands. Writing to X port will have Y result but this is vendor specific.

View 2 Replies


ADVERTISEMENT

Programming :: New Comer To Understanding PCI Device Drivers?

Nov 20, 2010

I have been reading some books about device driver development etc.I made a char driver of bond (dummy) device. My book says that PCI devices contain three addressable regions,configuration space,IO ports,and device memory,the book talks about a file include/linux/pci_ids.h and PCI addressing etc.I read about following functions

1) pci_read_config_
2) pci_write_config_ some thing known as offset is defined to be passed on as an argument to above functions

3) IRQ number assigned to a card function pci_read_config_byte_,configuration register offsets

4) pci_request_region I want to write a pci driver for my own understanding and I am reading some books about it.

[Code]...

View 2 Replies View Related

Programming :: Get Script To Confirm The Directory It Is In?

Mar 22, 2011

I know this does'nt work but how in my script would I get the script to confirm it's directory is in.

if [ $pwd -eq $LOG_DIR ];
then
echo "work"

[code]...

View 4 Replies View Related

Programming :: C++: Understanding The Vtable?

Apr 19, 2011

For this code:

Code:
class B1
{

[code]....

View 11 Replies View Related

Programming :: Understanding This Construct In Javascript?

Dec 3, 2010

var param = function() { <whatever> } ;What exactly does the above MEAN, and why have they included this in the language this way?

View 6 Replies View Related

Programming :: Understanding Oracle Execution Plans?

Mar 30, 2010

As part of my job I often have to write queries in Oracle (10g) and I am experienced enough to see where I should be using an index where possible etc. Most of the time I just let the CBO come up with the best plan however sometimes it obviously doesn't!Now, I know in general that full scans of large tables aren't good however I don't fully understand an execution plan - ie, I could not look at a complex piece of code, look at it's plan and say "oh, the reason that is performing badly there is because the SBO has chosen to use nested loops rather than a hash join, so if I hint it then it will run quicker!" - this ultimately is where I'm trying to get to

View 2 Replies View Related

Programming :: X86 Syntax - Understanding Assembly Instruction

Jan 6, 2011

I'm reading "Understanding the Linux Kernel" and came upon this assembly instruction:
movl $(__KERNEL_CS << 16), %eax
I am curious as to what "<<" means/does. I tried to gooogle, but google doesn't search for "<<".

View 7 Replies View Related

Programming :: Understanding Pid() And Fork() Programming?

Mar 28, 2011

I have been doing programming since the last 5 years. however, i have used to cut and paste the template without knowing in depth since i am chasing the time to finish a certain project. The title above seems easy if we read the manual, its just that im kinda confuse just for a second. Hope you guys can help me to give a better understanding for me so that i can upgrade my knowledge.Well, during my normal practice cut and paste, i try to understand this code below :-

Code: pid_t pid;
pid=fork();
if (pid < 0) {perror("Erro spawning process : "); exit(EXIT_FAILURE);}

[code]....

View 4 Replies View Related

Hardware :: Cannot Find Linux Drivers

Jun 29, 2010

I have two Yuan tv cards and want to use them with MythTv. I can not find linux drivers. Can anyone help? The conexant chip is CX23885-15Z.

View 1 Replies View Related

General :: Cannot Find Drivers For Linux For My Compaq Notebook

Feb 14, 2010

I have compaq presario v6307TU notebook, i am going to learn ethical hacking and i have ubuntu 9.10 and backtrack linux OS.

Do i need different drivers for my ubuntu n backtrack linux OS or there will be only one drivers required for 'linux'.

Anyways i am not able to find any drivers for my notebook for LINUX, i have asked HP for that but nothing gud happened they told that they dont have drivers for 3rd party operating systems.

My notebook uses Conextant HD audio and has intel 945 express family 128mb graphics, i ran ubuntu from the disk i have (but had not installed it yet) and tryed palying my .mp3,mpeg,mp4,avi files and nothing worked..obviously because i had not installed the audio-video drivers...causse i didnt had them...where to find them?

Also i wanted to kno that i have installed nfs most wanted on my xp, so will i be able to play it in linux?

View 6 Replies View Related

General :: Cant Seem To Install Kodak Easyshare And Linux Drivers

Jun 21, 2011

i'm using kubuntu and am stumped on getting it to recognise a kodak camera, which uses a program called easyshare, which i cant seem to install and linux drivers for it dont seem to be available, so what do i do now?

View 8 Replies View Related

General :: Linux (Ubuntu 10.04) Drivers Needed For Acer Aspire T690?

Jan 2, 2011

I just installed Ubuntu 10.04 on my Acer Apsire T690 3.0Ghz compy. My graphics and sound is integrated and I'm looking for the right drivers. I would just run the driver search on ubuntu, however, that PC is not hooked up to the internet and cannot be easily. Is there a way for me to manually find and install the drivers I need on another computer, transfer and install them? I searched on [URL]... but I couldn't find any drivers that were for my T690 and compatible with Linux.

View 3 Replies View Related

Programming :: Mobile Phone Programming Using Linux

Sep 30, 2010

I am trying to work on mobile phone programming in Linux platform using C language. Can somebody guide with this? I tried to search the web but I didnt get appropriate site.Also guide me about the mobile phones compliant with linux platform for programming using C language.

View 5 Replies View Related

OpenSUSE Install :: Confirm 32 Vs 64 Bit CD / DVD?

Mar 27, 2010

1. I ordered an Opensuse 11.2 Live CD-Gnome 32-bit and an Install DVD 64-bit from a [URL].

2. My plan is to install Opensuse 11.2 from the Live CD on an old 32-bit Dell Inspiron 7500 laptop (512 mb Ram) and dual boot it w/ Windows XP.

3. And then to install the 64-bit Opensuse 11.2 on a newer 64-bit Acer Ax1200 desktop (4 gig ram).

4. Is there a way to confirm that I have the correct 32-bit Live CD and a 64-bit Install DVD?

5. I tried looking at the "properties" of the Opensuse Install DVD while in XP, w/out seeing any obvious signal identifying 32 vs 64 bit.

6. I have a hunch that if I accidentally try to install the 64-bit version on my old 32-bit laptop, it would be a disaster.

View 1 Replies View Related

Ubuntu :: How To Confirm 10.10 32 Or 64 Bit Version

May 16, 2011

I'm running 10.10 on a Pentium laptop that also has Win7 64bit installed. I did some googling on this and then ran uname -a in a terminal.
advait@advait-laptop:~$ uname -a
Linux advait-laptop 2.6.35-28-generic #50-Ubuntu SMP Fri Mar 18 19:00:26 UTC 2011 i686 GNU/Linux
Based on what I saw in my google search, it means I'm using Ubuntu 32 bit. I want to make sure I download the correct version of Google Earth.

View 7 Replies View Related

Server :: Backup Confirm Via Tar Possible?

Dec 22, 2010

Ran into an issue where there was a corrupt tar and nothing to do except revert to an even older one. Naturally I am then asked, can you confirm via crc or something that a tar was successful?I wish to tar / gzip some files and folders, will do them seperate, some are small, others can reach 5-7GB, but is there any way to rify aside from listing the contents that upon a tar completion that everything was fine?

View 2 Replies View Related

Programming :: 12F675 Programming From Linux

Dec 30, 2010

Back at uni I used to love programming in assembly, we used ARM processors and some pre-made boards. Anyway, I'd like to try and get back into it, so I have acquired some basic electronic components, some prototype board, a couple of 12F675 chips and a JDM serial programmer.Now, whilst I could run this from my works laptop on Windows, I'd far prefer to use my Linux desktop! (of course!) I'll be using my favourite editor to write the code so not bothered about an all singing and dancing IDE.I have a couple of questions...

1) What can I use to assembly/compile the source code? Does gcc have any support? If not, can someone recommend a free assembler, ideally command line?

2) Is there any good simulator software out there (I've found a few but not found people who have actually used them)? It would be useful to be able to run the code through a simulator before actually uploading to the chip - saves time and effort uploading something to find I've missed a command out!

3) Any useful links, tutorials, forums?

4) Any other resources? Like I said, I can (or at least used to be able to! ) write code for an ARM chip but the instruction set it different for this. I can easily pick up languages though so not too bothered about learning from scratch. I know people will say use c, but I'd far prefer to go down the ASM route, just for my own benefit and enjoyment!

This isn't for any particular project, it's just a hobby - once I've got a sound grounding then I'll start looking at a few more elaborate things!

View 1 Replies View Related

Ubuntu :: Package Called "Firmware For Linux Kernel Drivers" Could Not Be Installed?

Mar 1, 2011

During a recent update, a package called "Firmware for Linux kernel drivers" could not be installed, producing an error message that reads:

Code:
Preparing to replace linux-firmware 1.38.3 (using .../linux-firmware_1.38.4_all.deb) ...
Unpacking replacement linux-firmware ...

[code]....

View 2 Replies View Related

Ubuntu :: Confirm That Trim Is Working In MM?

Oct 13, 2010

For anyone who is not familiar with it, I am talking about the trim functionality in the 2.6.33 kernel for solid state drives.

View 6 Replies View Related

OpenSUSE :: Eclipse Confirm Buttons Not Working In 11.2?

Nov 23, 2009

yesterday installed a fresh OpenSuse 11.2. Since then the confirm buttons (OK / YES / ...) are not working, when clicking (mouse). An keyboard ENTER-press does work.

What is the problem? Is it an OpenSuse bug?

View 9 Replies View Related

OpenSUSE Install :: Would Like To Confirm That Problem Is -- In Fact -- A Bug?

Sep 4, 2010

So here's the deal: I'm "supporting" this older lady who's using an i386-type Compaq (Pentium III -- Coppermine) with 384MB of RAM. She says that the machine is being slow, and I decide that she needs a leaner OS than what she has (which is Ubuntu 09.10). OK, so I do some research and conclude that openSUSE is the best OS for both the machine and for the older lady. I use Bittorrent to download 11.3 and check the md5 checksum. In my own room I install on a machine that is identical to hers 11.3 and everything checks out (I ultimately conclude that GNOME is large for the machine and spend a number of days trying to swap it out with XFCE, but that's another story.). So I figure that everything's great and I use the same (GNOME) live disk to install 11.3 on her machine. As soon as GNOME fully boots up it crashes. I reinstall and it crashes again. I swap out hard drives (remember, these are identical machines that I'm "supporting", here) and as soon as GNOME is fully loaded 11.3 then promptly crashes. Finally, I swap out her entire MACHINE with the identical one that I've been working on in my room. The f---er crashes when GNOME is fully loaded! By now, I'm fully pissed (because by this time my regular machine has ALSO gone down (possibly because of openSUSE, but I cannot say definitively so at this time).

[Code]...

View 9 Replies View Related

General :: How To Confirm Source Was Correctly Installed

Jul 6, 2011

I've installed CFEngine from source (for those of you who aren't familiar with the product, check out the wiki page) on an AIX server. I had some issues setting it up but finally got it to gmake successfully.

Once I run gmake install I get a very short output (based on other source builds) and no errors. I figure something is fishy and I now I need to figure out a good way to find if it was correctly installed. I tried:

find / -name cfeng* 2> /dev/null

Is there something analogous to rpm -qa | grep cfengine?

Here is a copy of my output in case anyone needs: [url]

View 1 Replies View Related

Ubuntu Security :: SSL Without Users Having To Confirm Certification?

Jun 11, 2011

I am looking for the best method to implement SSL for my sites but without users having to accept the CERT and I'm small so I'd want to use the cheapest method like signing my own certs. Is there an automatic way of doing it or best practice?

View 8 Replies View Related

Programming :: Add Linux Users Online?

Jul 6, 2010

Im looking for a script that could help me create linux users on my server online using a website.Anybody know where i could find one?or how to make it? not the best with coding doh

View 3 Replies View Related

Programming :: Perl From USB Pen To Run On Both Linux And Windows

May 23, 2011

Im somewhat new at perl and was wondering if there was a way to run a perl script or tool made from perl, from a USB pen that would work both on Linux and on Windows?

View 1 Replies View Related

General :: Kernel Programming For BSD Or Linux?

Jul 20, 2010

I have recently been getting into kernel development and was wondering whether the Linux kernel or BSD kernel would be easiest for newbies (such as myself). Does anyone know? I am really considering BSD because it seems to me to have the best documentation.

View 2 Replies View Related

Programming :: Measuring Microseconds With Linux

Oct 27, 2010

I need to measure the time it takes for a program I'm writing to do Its job in microseconds resolution. I'm using Ubuntu 10.10. My Idea is, to write a device driver that directly reads the counter that produces the interrupt of RTC ticks. How do I do this, for a Linux kernel and a PC hardware?

View 4 Replies View Related

Ubuntu :: Apt-get Command Without Needing User To Type Y To Confirm?

Jan 7, 2010

I am writing an installation script that installs several packages using apt-get. Is there a way to run that command with some sort of option that makes it so the user doesn't have to type Y to confirm the installation? The user needs to be run the script as sudo

View 2 Replies View Related

Debian Programming :: Linux Headers For Armhf And Gcc

Jun 24, 2015

I'm running debian testing on my armhf machine. I need to install linux headers after searching with apt-cache. I ran the command

Code: Select allsudo apt-get install linux-headers-3.16.0-4-all-armhf

But it says it will also install gcc-4.8.. I checked my gcc version which is 4.9. and running. sudo apt-get install gcc . says gcc is already the new version.How do i install the headers without installing gcc-4.8

View 3 Replies View Related

Programming :: How To Compile Mysql For Arm9 Linux

Jan 3, 2011

I want to compile mysql for arm9 linux box, I did not find any good resource.

View 5 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved