Re: beaglebone g_printer module and windows host

288 views
Skip to first unread message

spot...@gmail.com

unread,
Oct 23, 2013, 7:57:58 PM10/23/13
to beagl...@googlegroups.com, blut...@gmail.com
How did you load g_printer on the beaglebone board?   Did you have to unload something first?  I'm trying to get windows to see it as a printer, also.

root@beaglebone:~# modprobe g_printer
ERROR: could not insert 'g_printer': No such device
root@beaglebone:~# modinfo g_printer
filename:       /lib/modules/3.8.13/kernel/drivers/usb/gadget/g_printer.ko
license:        GPL
author:         Craig Nadler
description:    Printer Gadget
srcversion:     DDF852A83CCE4691D9F9B96
depends:        libcomposite
intree:         Y
vermagic:       3.8.13 SMP mod_unload modversions ARMv7 thumb2 p2v8
parm:           idVendor:USB Vendor ID (ushort)
parm:           idProduct:USB Product ID (ushort)
parm:           bcdDevice:USB Device version (BCD) (ushort)
parm:           iSerialNumber:SerialNumber string (charp)
parm:           iManufacturer:USB Manufacturer string (charp)
parm:           iProduct:USB Product string (charp)
parm:           iSerialNum:1 (charp)
parm:           iPNPstring:MFG:linux;MDL:g_printer;CLS:PRINTER;SN:1; (charp)
parm:           qlen:uint

root@beaglebone:~# modprobe g_printer idVendor=0x3f0 idProduct=0x3404 bcdDevice=0x2 iSerialNumber=0x3 iManufacturer=HP iPNPstring:MFG:hp:MDL:deskjet 6122:CLS:PRINTER:SN:MY53A3B04P66
ERROR: could not insert 'g_printer': Invalid argument
root@beaglebone:~# modprobe g_printer idVendor=0x3f0 idProduct=0x3404 bcdDevice=0x2 iSerialNumber=0x3 iManufacturer=HP
ERROR: could not insert 'g_printer': No such device
root@beaglebone:~# modprobe g_printer idVendor=0x3f0 idProduct=0x3404
ERROR: could not insert 'g_printer': No such device

On Saturday, January 12, 2013 6:16:04 AM UTC-8, pisolg wrote:
 hi, i have loaded the g_printer module in my beaglebone board,
if i plug in windows host, it's correctly viewed as a printer, now:
  1)windows ask me a driver for the device found -> what kind of driver i must insert and where find it ?
  2) in a iPNPstring i have specified a string when load the module iPNPstring ="something", windows ask me a driver for generic device, not for something why?

thank's

dead...@gmail.com

unread,
Aug 14, 2018, 10:25:34 AM8/14/18
to BeagleBoard
I come across the problem, too.

root@beaglebone:/home/debian# modprobe g_printer iProduct="Test" idVendor=0x1d6b idProduct=0x0002 iManufacturer="Canon" iPNPstring="something" iSerialNum="1234" bcdDevice=261
modprobe: ERROR: could not insert 'g_printer': No such device

How did you solve this?

在 2013年10月24日星期四 UTC+8上午7:57:58,spot...@gmail.com写道:

Robert Nelson

unread,
Aug 14, 2018, 10:29:49 AM8/14/18
to Beagle Board, dead...@gmail.com
On Tue, Aug 14, 2018 at 9:25 AM <dead...@gmail.com> wrote:
>
> I come across the problem, too.
>
> root@beaglebone:/home/debian# modprobe g_printer iProduct="Test" idVendor=0x1d6b idProduct=0x0002 iManufacturer="Canon" iPNPstring="something" iSerialNum="1234" bcdDevice=261
> modprobe: ERROR: could not insert 'g_printer': No such device

Did you enable the g_printer driver?

Regards,

--
Robert Nelson
https://rcn-ee.com/

李林钰

unread,
Aug 14, 2018, 12:12:36 PM8/14/18
to BeagleBoard
Did you mean the g_printer.ko? 
root@beaglebone:/lib/modules/4.4.30-ti-r64/kernel/drivers/usb/gadget/legacy# file g_printer.ko
g_printer.ko: ELF 32-bit LSB relocatable, ARM, EABI5 version 1 (SYSV), BuildID[sha1]=146c9f734be9bcf8b24a26b3368a7443bfbab22e, not stripped

I flashed firmware image bone-debian-8.6-iot-armhf-2016-11-06-4gb.img from 
https://beagleboard.org/latest-images

在 2018年8月14日星期二 UTC+8下午10:29:49,RobertCNelson写道:

李林钰

unread,
Aug 14, 2018, 12:12:36 PM8/14/18
to BeagleBoard
Did you mean mknod g_printer nod?

root@beaglebone:/lib/modules/4.4.30-ti-r64/kernel/drivers/usb/gadget/legacy# file g_printer.ko
g_printer.ko: ELF 32-bit LSB relocatable, ARM, EABI5 version 1 (SYSV), BuildID[sha1]=146c9f734be9bcf8b24a26b3368a7443bfbab22e, not stripped

I flashed bone-debian-8.6-iot-armhf-2016-11-06-4gb.img from https://beagleboard.org/latest-images.

在 2018年8月14日星期二 UTC+8下午10:29:49,RobertCNelson写道:
On Tue, Aug 14, 2018 at 9:25 AM <dead...@gmail.com> wrote:

Robert Nelson

unread,
Aug 14, 2018, 12:17:08 PM8/14/18
to Beagle Board
On Tue, Aug 14, 2018 at 11:12 AM 李林钰 <dead...@gmail.com> wrote:
>
> Did you mean mknod g_printer nod?
>
> root@beaglebone:/lib/modules/4.4.30-ti-r64/kernel/drivers/usb/gadget/legacy# file g_printer.ko
> g_printer.ko: ELF 32-bit LSB relocatable, ARM, EABI5 version 1 (SYSV), BuildID[sha1]=146c9f734be9bcf8b24a26b3368a7443bfbab22e, not stripped

Okay, it's built/installed

>
> I flashed bone-debian-8.6-iot-armhf-2016-11-06-4gb.img from https://beagleboard.org/latest-images.

did you disable the currently loaded configfs gadget? by default
that's loaded thru the systemd service script: "generic-board-startup"

李林钰

unread,
Aug 15, 2018, 2:46:12 AM8/15/18
to beagl...@googlegroups.com
Thanks, I will try it later.

Robert Nelson <robert...@gmail.com> 于 2018年8月15日周三 00:17写道:
--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/CAOCHtYjbGnVSndSbwS1Zda0%3DF9HfJOQE%3DtLjNa1G-6YJa5g%2BCA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages