How to make a .pet of g_serial.ko for the 3.2.9 kernel?

Requests go here. If you fill a request, give it a new thread in the appropriate category and then link to it in the request thread.
Post Reply
Message
Author
thudhead
Posts: 1
Joined: Tue 30 Jul 2013, 21:46

How to make a .pet of g_serial.ko for the 3.2.9 kernel?

#1 Post by thudhead »

I want to make my puppy into a usb device, so I need g_serial.ko

I have made g_serial.ko from the 3.2.9 kernel, but don't know how to make a pet file.

User avatar
Flash
Official Dog Handler
Posts: 13071
Joined: Wed 04 May 2005, 16:04
Location: Arizona USA

#2 Post by Flash »

What's a USB device? Just curious. Sorry, I don't know the answer to your question. :)

User avatar
Karl Godt
Posts: 4199
Joined: Sun 20 Jun 2010, 13:52
Location: Kiel,Germany

#3 Post by Karl Godt »

if kernel/drivers/usb/gadget/g_serial.ko :
then do something like this :

Code: Select all

mkdir -p k3.2.9-g_serial-module/lib/modules/3.2.9kernel/drivers/usb/gadget/
cp kernel/drivers/usb/gadget/g_serial.ko k3.2.9-g_serial-module/lib/modules/3.2.9kernel/drivers/usb/gadget
dir2pet  k3.2.9-g_serial-module
Btw is it really missing ?
Am running k2.6.37.4 atm , the driver/module path might be different

And don't forget to run depmod to introduce the driver into the files modules.dep and others .
.

{
~ # modinfo g_serial
filename: /lib/modules/2.6.37.4-KRG-iatom-1/kernel/drivers/usb/gadget/g_serial.ko
license: GPL
author: David Brownell
author: Al Borchers
description: Gadget Serial v2.4
license: GPL
author: Felipe Balbi
depends: m66592-udc
vermagic: 2.6.37.4-KRG-iatom-1 SMP preempt mod_unload ATOM
parm: idVendor:USB Vendor ID (ushort)
parm: idProduct:USB Product ID (ushort)
parm: bcdDevice:USB Device version (BCD) (ushort)
parm: iManufacturer:USB Manufacturer string (charp)
parm: iProduct:USB Product string (charp)
parm: iSerialNumber:SerialNumber string (charp)
parm: use_acm:Use CDC ACM, default=yes (bool)
parm: use_obex:Use CDC OBEX, default=no (bool)
parm: n_ports:number of ports to create, default=1 (uint)
}

Post Reply