How to test linux device driver
· This very useful tool to check Debian GNU/Linux device driver check www.doorway.ru is based on Debian GNU/Linux so let us try this and see the results. Boot your machine with a GNU/Linux OS (such as Debian, Knoppix, Redhat, and so on), run ‘lspci -n' and paste the output into the box below, then press ‘Check' button. This database uses the PCI map of Debian kernel Set up USB test device, running Linux or Load Gadget Zero ("modprobe g_zero"), or some other driver you want to verify. If you're using gadget zero, load it with "autoresume=5" to make sure the tests address suspend and remote wakeup. Run USBCV chapter 9, and maybe OTG, tests. All should pass. Linux USBTEST (Linux USB Host). · There are few open source tools to test Linux Ethernet driver. For packet point of few, I can name few: 1) ping. 2) colasoft (playback packet of different kind and bombard) 3) create a program to send raw packet to interface. 4) iperf. You may try LTP (Linux Test Project).Reviews: 2.
static int device_file_major_number = 0; static const char device_name[] = "Simple-driver"; int register_device(void) { int result = 0; printk(KERN_NOTICE "Simple-driver: register_device() is called. "); result = register_chrdev(0, device_name, simple_driver_fops); if(result "Simple-driver: can\'t register character device with error code = %i ", result); return result; } device_file_major_number = result; printk(KERN_NOTICE "Simple-driver: registered. Linux (and Ubuntu as well) doesn't have separate entity as "device drivers", Linux has kernel modules which could be called "drivers" for real or virtual hardware depending on their functionality. Use lsmod or cat /proc/modules to see list of loaded kernel modules. Create a file called makefile and write on it: obj-m += myDriver.o all: make -C /lib/modules/$ (shell uname -r)/build M=$ (PWD) modules clean: make -C /lib/modules/$ (shell uname -r)/build M=$.
Jul Among other things, Autotest is worth looking at. I used the tests it provides to check the drivers related to wireless networking some time. LTP-DDT is a test application used by Texas Instruments to validate Linux releases. It is based on LTP. LTP-DDT focuses on embedded device driver tests. If the driver is not part of your Linux kernel source tree, it is present as a kernel object library file and you can check on the board.
0コメント