A simple program on linux device driver

include<linux/kernel.h> #include&lt;linux/module.h&gt; #include&lt;linux/init.h&gt; int my_init(void){ printk(&quot;&lt;1&gt; Angus : Module Insertion is successful!&quot;); ...

How to get rid of warning when copy_to_user(struct *file, const char __user *buf, size_t len, loff_t *off_t )

This is my myread and mywrite function of the null driver. #define SIZE 6 static char c[SIZE]; static ssize_t myread(struct file *file,char __user *buf,size_t len, loff_t *fops) { ...

Device Driver Development in Linux

I plan to learn embedded linux and writing linux device drivers. After reading about device drivers and walking through some tutorials, I'm a little confused about the kernel-source that to be...

Installing another version of linux on my system

I need to build locally a driver for "precise" Ubuntu edition (uname -r for that system returns 3.2.0-33-generic-pae). My local host is Ubuntu 13.10 'sausy'. But I fail to install the linux...

Cross compile FTDI VCP Driver for embedded linux arm

I'm trying to cross compile the FTDI VCP Driver for my embedded arch linux arm machine. I downloaded the source files from http://www.ftdichip.com/Drivers/VCP.htm onto my host machine which is...

ioport.h errors when compiling v4l2 program

I wanted to follow this article about v4l2's driver writing. But my first basic try failed when I include media/v4l2-dev.h (because I want to access some macro like...

Building mysql++ libraries for powerpc

I have an embedded application written in C++ (running on a PowerPC in linux environment) which accesses an external database. So my application needs mysql++ libraries which needs to be built...

Debugging QT project in Eclipse is very slow (Ubuntu)

I'm trying to debug a sample QT project in eclipse in Ubuntu. Launching debugger hangs at 93% for several minutes. Then every step of debugging is very slow. I tried to debug a simple...

Compiling a kernel module, header problems, makefile problems

ok I'm trying to compile a simple kernel module, when I point to any of the below that contain includes, it complains about all kinds of stuff. linux-headers-2.6.31-21 ...

trouble compiling a kernel module in linux

I wrote a simple hello world kernel module. A make file was written by me as below: obj -m += hello.o KDIR: /usr/src/linux-headers-3.2.0-21-generic-pae all: $(MAKE) -C $(KDIR)...

Compiling a kernel module using makefile in linux

I am new to kernel programming. I ahve written a hello world program but I am not able to complie it. I have serached and so made a make file under /usr/src and then doing sudo make command to run...

crosscompile a linuxmodule for arm(raspberryPi)

Im trying to crosscompile a (example)linuxmodule for the raspberryPi(arm), with crosstool-ng 1.15.3. I got the following output: [email protected]:~/Desktop/speakerarm$ make ARCH=arm...

how gcc automatically know to include glib library

I make simple program in C which uses glib.h, but when I compile it I get an error like: $ gcc test.c -o test test.c:3:18: fatal error: glib.h: No such file or directory compilation...

Why in Linux, JButton, JLabel mouse clicked is missing or ignored? its not doing how the program supposed to do

I have this SSCCE where Jbutton is getting pressed by it does not do anything, also if i click in JLabel it also fails, its not reliable, many click is getting missed. But some other distro i...

makefile not working

I am learning Linux module programming. I work on Ubuntu 12.04. I made a module, namely start.c, and saved it in home/documents/module_prog. Then I made the following makefile (I am not acquainted...

"Unknown symbol in module" error while inserting kernel module

I created the following error-prone kernel module for educational purposes. #include &lt;linux/module.h&gt; #include &lt;linux/kernel.h&gt; #include &lt;linux/init.h&gt; #include...

The same Makefile succeeded in Ubuntu 10.04 LTS but failed in Angstrom on Beagle Board

I tried to compile chardev.c from this tutorial using the following Makefile: obj-m := chardev.o KDIR := /lib/modules/$(shell uname -r)/build PWD := $(shell pwd) default : $(MAKE) -C...

Why does arm-linux-gnueabi-g++-4.4 always build a "7-A" binary?

I'm running Ubuntu 12:04LTS and installed arm-linux-gnueabi C and C++ compiler. The compiled binary won't run on my target board. It looks like even if I specify the cpu and arch, the compiler...

Could not find the X.Org or XFree86 Window System, skipping

I made a new folder to install virtualbox, vagrant is 1.7.4, the virtualbox is 5.0.2. And have installed vagrant-vbguest sucessfully. I saw the errors below,it mainly said 'stdin is not a tty',...

Error when compiling lirc-redrat3-0.8.7

When configuring lirc-redrat3-0.8.7, I've got this issues : http://www.redrat.co.uk/downloads/lirc-redrat3-0.8.7.tar.gz ./configure ...... checking whether -lc should be explicitly...

Python modules not found in virtualenv

I can't get modules to run in my virtual environment. Using pandas as an example: With the virtual env on I run yolk -l and get back (shortened...

Unable to upgrade PEAR from 1.9.2 to 1.9.4

I am on a Ubuntu 11.10 and trying to upgrade from 1.9.2 to 1.9.4, but it simply don't work. Here are the commands I am following in sequence $ sudo apt-get install php-pear Reading package...

Npm - 404 Not Found: 'ErrorHandler' after moving node project to new machine

I have moved my nodeJS project from a macbook to a vagrant virtualbox ubuntu hashicorp/precise32 machine. After I did this, npm install does not seem to work for me. Here is the output log. I...

Building cross-gcc 4.7.2 under Ubuntu 12.04.1

I tried to build the gcc. With this arguments: AR=ar LDFLAGS=&quot;-Wl,-rpath,${CLFS}/cross-tools/lib&quot; \ ../gcc-4.7.2/configure --prefix=${CLFS}/cross-tools \ --build=${CLFS_HOST}...

Fail to compile dev86 package on gentoo

When i try to install virtualbox I have following error during compile dev86 package: 00159 mov spbbp ***** comma...