Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Tue 16 Sep 2014, 09:41
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » REQUESTS
How to make a .pet of g_serial.ko for the 3.2.9 kernel?
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [3 Posts]  
Author Message
thudhead

Joined: 30 Jul 2013
Posts: 1

PostPosted: Tue 30 Jul 2013, 18:25    Post subject:  How to make a .pet of g_serial.ko for the 3.2.9 kernel?  

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.
Back to top
View user's profile Send private message 
Flash
Official Dog Handler


Joined: 04 May 2005
Posts: 11062
Location: Arizona USA

PostPosted: Tue 30 Jul 2013, 21:11    Post subject:  

What's a USB device? Just curious. Sorry, I don't know the answer to your question. Smile
Back to top
View user's profile Send private message 
Karl Godt


Joined: 20 Jun 2010
Posts: 3972
Location: Kiel,Germany

PostPosted: Thu 01 Aug 2013, 05:46    Post subject:  

if kernel/drivers/usb/gadget/g_serial.ko :
then do something like this :
Code:
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)
}
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 1 of 1 [3 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » REQUESTS
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0588s ][ Queries: 12 (0.0192s) ][ GZIP on ]