Linux Device Driver Article 4: Driver debugging methods, linux Article 4
In the previous article, we probably talked about how to write a simple character device driver. We are not a god, but there will certainly be a problem when writing code. We need to continuously debug it during the code writing process. In common c applications, we often use printf to outpu
Continue to drive learning based on the progress of the previous article .......
Main references: http://blog.csdn.net/dg1683wen/article/details/6861044
First, build the kernel source code tree. I am using the friendly arm comes with Linux source code: linux-2.6.35.7-20120912.tgz
First copy the kernel source code linux-2.6.35.7-20120912.tgz to the Ubuntu system directory/home/liuhui8989/linuxshare
Unzip: Tar zxvf linux-2.6.35.7-20120912.tgz to get the linux-2.6.35.7 folder.
Start to build the so
If the system needs to be re-installed in case of a computer failure, if the random drive disk is lost, such as the motherboard driver, NIC driver, and graphics card driver.
In particular, some old machines, motherboard integrated Nic, graphics card. Even if Win2000/WINXP is installed, some devices cannot be automatically driven.
In this case, we can consider u
The ADCTSC registers are shared between the ADC Driver and the touch-screen driver. How can one register be used when processing them? -- Linux general technology-Linux programming and kernel information. The following is a detailed description. You guys give me directions
I wrote an ADC digital-to-analog conversion driver for the embedded linux test chamber, bu
Non-professional study notes. Thank you!
Driver support routines (driverProgramDevelopment support routine)
Driver support routines are routines that the Windows operating system provides for kernel-mode drivers to use.Drivers do not use Microsoft Win32 routines; instead, they use the driver support routines that this section describes.The
This morning, I am going to play a game similar to running a kart under fedora, but the driver does not support 3D. So I started the Driver Installation trip early in the morning. There are a lot of online materials, but they are not practical, after finding a solution, I will share my experience with you. My uname-R is 2.6.35.6-45. fc14.i686. PAE
Error message:
Error: You appear to be running an
Setting up a real-world development environment requires the following steps:1. Declare the application to be debug in the application's manifest file;2. Open the application debugging support;For apps created through Eclipse, you can omit step 2, because debugging support for your app automatically opens when the Eclipse IDE launches the app.Note: In the application development process, to manually enable debugging support in the manifest file, it is best to turn off debugging support before th
The Driver is also known as the Device Driver.
In the modern computer architecture, the operating system does not directly deal with hardware, but communicates with hardware through drivers.
On the same computer, although the devices are the same, the drivers vary greatly due to different operating systems. However, no matter what is similar, it can be summarized into the following three points:
T
After the examination has passed, Android-driven learning has been broken for more than half a year, and now pick up learning, review the general framework of Android Drive.The core of the Android system is Java, which has a David virtual machine. Android-app operating hardware is also equivalent to Java operating hardware.Operating hardware on a Linux system is implemented via open read Write, which is the operation of C libraries. If Java can directly invoke the function in C library, it will
The general Ubuntu default contains the driver of the Intel graphics card, if not, then determine whether the graphics card is too high, such as the I7 7th generation CPU is not in Ubuntu 16.04, resulting in the screen will be very card, because the Linux 4.4 kernel does not contain Intel HD Graphics 630 driver, the workaround is only to upgrade the Linux kernel to 4.7 in Ubuntu 16.04.The following are two
This digest from my my book fixing "embedded Linux driver template explaining and project practice"Initially it seems that Linux device driver development involves a lot of content, and the need to achieve a wide range of drivers, in fact, after a period of time to drive back looks like the main points are:(1) Classification of the drive, first summed up as which type of drive, the collation of the correct
How to detach a win7 video card driver _ How to detach a video card driverSome users often encounter video card problems caused by incompatibility problems when using the win7 system. If you encounter this problem, you can update or uninstall the video card driver. So how can I unmount the graphics card driver in Win7? It is difficult for general users. The follo
This concept emerged when the new sysfs management device driver was adopted in linux2.6 and can be intuitively understood under the/sys directory.
Bus indicates the bus type, such as I2C, IDE, USB... many bus types such as platform, including MTD devices;
Device records device resources, specific to the NAND driver, is added in the board-osk.c struct platform_device osk5912_nand_device;
IPhone 4S is connected to a computer and cannot recognize iPhone devices: Apple mobile device USB driver Driver Installation failure shows yellow exclamation mark Solution
Apple mobile device USB driver Driver Installation failure shows a yellow exclamation point, cannot charge, let alone iTunes.
The correct soluti
ADB self-made universal driver method, exclusive secret
This article from: http://kraft.iteye.com/blog/1275276
Android often encounters a mobile phone that cannot find the ADB driver, or to adapt to multiple drivers, there is actually a very simple solution.Use the Official Google Android driver as the blueprint to add your own devices.
Prepare notepad to open ex
The audio driver is implemented in the wavedev2 mode. This is a single-layer driver mode, and all platform-related functions are implemented in hwctxt. H and hwctxt. in CPP, it also includes MIDI support, software mixer support, S/pdif interface, gain class interface, forcespeaker interface, and so on.
(1) software implementation of the audio system
Audio Device Drivers transmit audio data streams through
Wait Queue:
In Linux driver programming, waiting queues can be used to implement blocking of processes.
The wait queue can be thought of as a container for the save process, and the process is placed in a wait queue when the process is blocked;
When the process is awakened, the process is fetched from the wait queue.
waiting for the definition and initialization of the queue wait_queue_head_t Declare_wait_queue_head:
The Linux 2.6 kernel provides the
1. Overviewin general, the 2.6 kernel has been initialized and mounted with a platform bus in the Sysfs file system. So when we write the platform model driver, we need to do two jobs:1: Implement platform Drive 2: Implement PLATForm Device, however There are many other small tasks that need to be implemented in the process of implementing these two tasks, as described later. The core architecture of the platform model-driven implementation process
After discussing the initialization and deletion of drivers for I2C devices and I2C adapters, we will focus on several function operations in file_operations, paste the file_operations struct code first. Let's see which functions are included.
Static const struct file_operations i2cdev_fops ={
The structure must be quite clear. Therefore, the I2C Driver provides the following operation functions for the user space:
1. no_llseek
2. i2cdev_read
3. i2c
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.