Linux Kernel Module Programming - USB Device Driver 02

preview_player
Показать описание
Usb Device Driver : This video continues from the previous and presents how to write a usb device driver under linux. Specifically, I over the very important usb_device structure and its associated methods( probe and disconnect). Additionally, I talk about use vendor ids and product ids, which are used for matching a device against a device driver.

What is important to talk away from this video (and really what gave me a hard time) was that if your probe function does not get called, it means that some other driver has "ownership"/"management" of the the device that your driver is trying to manage. Solution: remove that driver!

*Note: after removing default system kernel driver like "usb_storage", use modprobe to reinsert it into the kernel.

i.e: "sudo modprobe usb_storage"
Рекомендации по теме
Комментарии
Автор

Very informative series. You should continue with these for sure. I couldn't find any other better tutorial for device driver than this.

sgurjeet
Автор

Yeah where is the next part, you should continue the videos are very good!

MiguelRodriguez
Автор

Very informative to teach people how to develop usb driver, please add in more especially on how to program the communication which is part 3.

arion
Автор

id_table, that's the answer I was looking for when trying to figure out how a driver mapped to the actual device. Thanks a lot!

DodySuratman
Автор

Good stuff! I have a USB device that I built that toggles some of the GPIO's and relays the status of those GPIO's back to the host using a PIC18F4550. I have been using libusb to communicate with the usb device and it works, but I have always wanted to write a kernel module in its place. With the help of your tutorials, I should be able to finally create a kernel module that communicates with the usb device that I created.

Looking forward to the next video. Keep up the good work!!!

evdawg
Автор

Now, I am big fan of yours :) … I am eagerly waiting for your next videos. What a simplicity and clarity!

MrPradeepchannagiri
Автор

I wish I could give multiple Likes 👍👍👍.. Brilliant

entropy
Автор

Thank you so much! I was looking for some materials about linux usb drivers and this video is a good starting point for me to write driver and application for my custom USB device created from STM32 evaluation board using interrupt transfer.

djmarianes
Автор

this channel was great its sad that we are not getting more videos

techihandle
Автор

no, using this you can write any type of usb driver, simply change vendor id and product id. also depending on what type of driver you write you may need to remove the default driver for it so that your probe function gets called

soliduscode
Автор

looking for the next video where you read and write to usb device. hoping to hear more about endpoint and interface

philgerow
Автор

No more vids coming? Was such a great start!

StiegeNZ
Автор

Hey, years later, and I'm also interested in the read/write of data!!! :) Did you ever add that part 3?

kubave
Автор

Hello, i want to ask what if my device is vendor class, and doesnt have a device driver for it? If i follow the procedure to write device driver for pen drive, for the vendor class, would it work?

leslieleslie
Автор

Hi @SolidusCode

very well explained. thanks a lot.

Can you please post part 3 of this series ?

geekguY
Автор

Sir please tell me how to block all pen drive but should be work those pen drive which serial number added into Ubuntu os

gangeshkumar
Автор

Hi man your videos are great! Can you make video about linux components with draws, like you did in this series, I wish to learn more about linux and how it works.Somthing about udev, dbus and others

BatBatov
Автор

bro if i follow steps like in your tuto steps can i make a bluetooth driver cuz i have a barrot 5.4 bluetooth adapter but unfortunately not supported on linux

anis
Автор

Great tutorial.... Sir.. please next video.. please please please please.... :-)

hardiplimbasiya
Автор

very useful videos....really solid videos....sir plz make next videos...

praveensomesh