This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Problem with am335x gadget usb driver (g_printer.ko)

Other Parts Discussed in Thread: TPS65910

Hi all

I've been trying to set up the USB gadget device driver (g_printer.ko) in AM335x evm board.

but, I am facing problem

 

1. Device driver Build-in

step 1. I run make command to load the "omap2plus_defconfig"

step 2. I  make with menuconfig (used SDK 08.00.00)
           follow this link below
           (processors.wiki.ti.com/.../Sitara_Linux_Add_USB_Ethernet_Gadget_to_Linux_Kernel)
 
step 3. kernel compile

   make -j 1 ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- zImage
   make -j 1 ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- modules

step 4. download kernel image into evm-board

result :   

   compile no problem but happen usb init() error "usb_gadget_probe_driver ffffffed"

   I can't find g_printer device driver in /dev/

 
Q1. I can't fined select list in menuconfig
  
     there is check list (<> Enable support for AM335x device) in SDK 7

     but  there is no check list (<> Enable support for AM335x device) in SDK 8

    follow this picture below

    1) SDK7

        

    2) SDK8

   

Q2. How to use? enable? g_prineter.ko in AM335x evm board ?

      I don't know how to enable g_printer....

 

* booting log
Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 3.14.26-g07d13c6-dirty (root@ubuntu) (gcc version 4.7.3 20130226 (prerelease) (crosstool-NG linaro-1.13.1-4.7-2013.03-20130313 - Linaro GCC 2013.03) ) #17 SMP Tue May 19 09:51:47 KST 2015
[    0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] Machine model: TI AM335x EVM
[    0.000000] cma: CMA: reserved 16 MiB at ae800000
[    0.000000] Memory policy: Data cache writeback
[    0.000000] CPU: All CPU(s) started in SVC mode.
[    0.000000] AM335X ES2.1 (sgx neon )
[    0.000000] PERCPU: Embedded 9 pages/cpu @edfc7000 s14720 r8192 d13952 u36864
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 260112
[    0.000000] Kernel command line: console=ttyO0,115200n8 root=/dev/nfs rw ip=192.168.100.225 nfsroot=192.168.100.123:/opt/work/trunk/BSP/AM335X/RootFileSystem/Rootfs,nolock rw rootfstype=nfs
[    0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Memory: 1006304K/1046528K available (5742K kernel code, 689K rwdata, 2224K rodata, 406K init, 5521K bss, 40224K reserved, 268288K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
[    0.000000]     vmalloc : 0xf0000000 - 0xff000000   ( 240 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xef800000   ( 760 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc07cfa88   (7967 kB)
[    0.000000]       .init : 0xc07d0000 - 0xc0835980   ( 407 kB)
[    0.000000]       .data : 0xc0836000 - 0xc08e27d8   ( 690 kB)
[    0.000000]        .bss : 0xc08e27d8 - 0xc0e46e38   (5522 kB)
[    0.000000] Hierarchical RCU implementation.
[    0.000000]  RCU restricting CPUs from NR_CPUS=2 to nr_cpu_ids=1.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 interrupts
[    0.000000] Total of 128 interrupts on 1 active controller
[    0.000000] OMAP clockevent source: timer2 at 24000000 Hz
[    0.000013] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 178956969942ns
[    0.000062] OMAP clocksource: timer1 at 24000000 Hz
[    0.000857] Console: colour dummy device 80x30
[    0.000908] Lock dependency validator: Copyright (c) 2006 Red Hat, Inc., Ingo Molnar
[    0.000917] ... MAX_LOCKDEP_SUBCLASSES:  8
[    0.000924] ... MAX_LOCK_DEPTH:          48
[    0.000931] ... MAX_LOCKDEP_KEYS:        8191
[    0.000939] ... CLASSHASH_SIZE:          4096
[    0.000946] ... MAX_LOCKDEP_ENTRIES:     16384
[    0.000953] ... MAX_LOCKDEP_CHAINS:      32768
[    0.000960] ... CHAINHASH_SIZE:          16384
[    0.000967]  memory used by lock dependency info: 3695 kB
[    0.000975]  per task-struct memory footprint: 1152 bytes
[    0.001026] Calibrating delay loop... 996.14 BogoMIPS (lpj=4980736)
[    0.079109] pid_max: default: 32768 minimum: 301
[    0.079466] Security Framework initialized
[    0.079585] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.079600] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.102599] CPU: Testing write buffer coherency: ok
[    0.103905] CPU0: thread -1, cpu 0, socket -1, mpidr 0
[    0.103976] Setting up static identity map for 0x80570610 - 0x80570680
[    0.107048] Brought up 1 CPUs
[    0.107065] SMP: Total of 1 processors activated.
[    0.107075] CPU: All CPU(s) started in SVC mode.
[    0.109955] devtmpfs: initialized
[    0.118575] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
[    0.154274] omap_hwmod: tptc0 using broken dt data from edma
[    0.154619] omap_hwmod: tptc1 using broken dt data from edma
[    0.154951] omap_hwmod: tptc2 using broken dt data from edma
[    0.162841] omap_hwmod: debugss: _wait_target_disable failed
[    0.222234] pinctrl core: initialized pinctrl subsystem
[    0.226698] regulator-dummy: no parameters
[    0.230246] NET: Registered protocol family 16
[    0.235374] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.241361] cpuidle: using governor ladder
[    0.241386] cpuidle: using governor menu
[    0.251281] syscon 44e10000.control_module: regmap [mem 0x44e10000-0x44e107fb] registered
[    0.255137] platform 49000000.edma: alias fck already exists
[    0.255173] platform 49000000.edma: alias fck already exists
[    0.255191] platform 49000000.edma: alias fck already exists
[    0.259520] OMAP GPIO hardware version 0.1
[    0.291674] omap-gpmc 50000000.gpmc: could not find pctldev for node /pinmux@44e10800/nandflash_pins_default, deferring probe
[    0.291729] platform 50000000.gpmc: Driver omap-gpmc requests probe deferral
[    0.302405] No ATAGs?
[    0.302431] hw-breakpoint: debug architecture 0x4 unsupported.
[    0.367355] bio: create slab <bio-0> at 0
[    0.407929] edma-dma-engine edma-dma-engine.0: TI EDMA DMA engine driver
[    0.410642] vbat: 5000 mV
[    0.411768] lis3_reg: no parameters
[    0.413043] wlan-en-regulator: 1800 mV
[    0.418973] i2c-core: driver [palmas] using legacy suspend method
[    0.418992] i2c-core: driver [palmas] using legacy resume method
[    0.421649] SCSI subsystem initialized
[    0.423917] usbcore: registered new interface driver usbfs
[    0.424343] usbcore: registered new interface driver hub
[    0.425102] usbcore: registered new device driver usb
[    0.427407] omap_i2c 44e0b000.i2c: could not find pctldev for node /pinmux@44e10800/pinmux_i2c0_pins, deferring probe
[    0.427451] platform 44e0b000.i2c: Driver omap_i2c requests probe deferral
[    0.427509] omap_i2c 4802a000.i2c: could not find pctldev for node /pinmux@44e10800/pinmux_i2c1_pins, deferring probe
[    0.427534] platform 4802a000.i2c: Driver omap_i2c requests probe deferral
[    0.433309] omap-mailbox 480c8000.mailbox: omap mailbox rev 0x400
[    0.438470] Switched to clocksource timer1
[    0.592697] NET: Registered protocol family 2
[    0.594652] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.594898] TCP bind hash table entries: 8192 (order: 6, 294912 bytes)
[    0.597604] TCP: Hash tables configured (established 8192 bind 8192)
[    0.597829] TCP: reno registered
[    0.597859] UDP hash table entries: 512 (order: 3, 40960 bytes)
[    0.598222] UDP-Lite hash table entries: 512 (order: 3, 40960 bytes)
[    0.599773] NET: Registered protocol family 1
[    0.601913] RPC: Registered named UNIX socket transport module.
[    0.601937] RPC: Registered udp transport module.
[    0.601947] RPC: Registered tcp transport module.
[    0.601956] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.603203] hw perfevents: enabled with ARMv7 Cortex-A8 PMU driver, 5 counters available
[    0.611440] futex hash table entries: 256 (order: 2, 16384 bytes)
[    0.755637] bounce pool size: 64 pages
[    0.756895] VFS: Disk quotas dquot_6.5.2
[    0.757088] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.759628] NFS: Registering the id_resolver key type
[    0.760044] Key type id_resolver registered
[    0.760064] Key type id_legacy registered
[    0.760178] jffs2: version 2.2. (NAND) (SUMMARY)  2001-2006 Red Hat, Inc.
[    0.760624] msgmni has been set to 1473
[    0.763675] io scheduler noop registered
[    0.763699] io scheduler deadline registered
[    0.763756] io scheduler cfq registered (default)
[    0.767611] pinctrl-single 44e10800.pinmux: 142 pins at pa f9e10800 size 568
[    0.774676] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[    0.782826] omap_uart 44e09000.serial: no wakeirq for uart0
[    0.783533] 44e09000.serial: ttyO0 at MMIO 0x44e09000 (irq = 88, base_baud = 3000000) is a OMAP UART0
[    1.540535] console [ttyO0] enabled
[    1.546708] omap_uart 48022000.serial: no wakeirq for uart0
[    1.552927] 48022000.serial: ttyO1 at MMIO 0x48022000 (irq = 89, base_baud = 3000000) is a OMAP UART1
[    1.567260] omap_rng 48310000.rng: OMAP Random Number Generator ver. 20
[    1.605134] brd: module loaded
[    1.627728] loop: module loaded
[    1.631887] (stk) :sysfs entries created
[    1.636135] (stk) : debugfs entries created
[    1.641575] (hci_tty): inside hci_tty_init
[    1.647506] (hci_tty): allocated 251, 0
[    1.658076] mtdoops: mtd device (mtddev=name/number) must be supplied
[    1.673774] usbcore: registered new interface driver asix
[    1.680508] usbcore: registered new interface driver ax88179_178a
[    1.687304] usbcore: registered new interface driver cdc_ether
[    1.693988] usbcore: registered new interface driver smsc95xx
[    1.700839] usbcore: registered new interface driver net1080
[    1.707139] usbcore: registered new interface driver cdc_subset
[    1.713842] usbcore: registered new interface driver zaurus
[    1.720300] usbcore: registered new interface driver cdc_ncm
[    1.728254] usbcore: registered new interface driver cdc_wdm
[    1.734987] usbcore: registered new interface driver usbtest
[    1.746331] 47401300.usb-phy supply vcc not found, using dummy regulator
[    1.759756] musb-hdrc musb-hdrc.0.auto: Failed to request rx1.
[    1.766344] musb-hdrc musb-hdrc.0.auto: musb_init_controller failed with status -517
[    1.774624] platform musb-hdrc.0.auto: Driver musb-hdrc requests probe deferral
[    1.784046] 47401b00.usb-phy supply vcc not found, using dummy regulator
[    1.795718] musb-hdrc musb-hdrc.1.auto: Failed to request rx1.
[    1.802108] musb-hdrc musb-hdrc.1.auto: musb_init_controller failed with status -517
[    1.810329] platform musb-hdrc.1.auto: Driver musb-hdrc requests probe deferral
[    1.857096] usb_gadget_probe_driver ffffffed
[    1.864789] mousedev: PS/2 mouse device common for all mice
[    1.876474] omap_rtc 44e3e000.rtc: rtc core: registered 44e3e000.rtc as rtc0
[    1.886137] i2c /dev entries driver
[    1.890380] Driver for 1-wire Dallas network protocol.
[    1.901351] omap_wdt: OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
[    1.922662] omap_hsmmc 48060000.mmc: unable to get vmmc regulator -517
[    1.930157] platform 48060000.mmc: Driver omap_hsmmc requests probe deferral
[    2.066024] usbcore: registered new interface driver usbhid
[    2.072015] usbhid: USB HID core driver
[    2.077275] platform 44d00000.wkup_m3: Driver wkup_m3 requests probe deferral
[    2.088280] oprofile: using arm/armv7
[    2.093020] TCP: cubic registered
[    2.096494] Initializing XFRM netlink socket
[    2.101163] NET: Registered protocol family 17
[    2.105887] NET: Registered protocol family 15
[    2.110898] Key type dns_resolver registered
[    2.119868] PM: bootloader does not support rtc-only!
[    2.125170] ThumbEE CPU extension supported.
[    2.129879] Registering SWP/SWPB emulation handler
[    2.134889] SmartReflex Class3 initialized
[    2.143528] wlan-en-regulator: disabling
[    2.147662] lis3_reg: disabling
[    2.151096] vbat: disabling
[    2.154020] regulator-dummy: disabling
[    2.159462] omap-gpmc 50000000.gpmc: GPMC revision 6.0
[    2.165011] gpmc_mem_init: disabling cs 0 mapped at 0x0-0x1000000
[    2.173888] nand: device found, Manufacturer ID: 0x2c, Chip ID: 0xda
[    2.180747] nand: Micron MT29F2G08ABAEAWP
[    2.184939] nand: 256MiB, SLC, page size: 2048, OOB size: 64
[    2.190922] nand: error: CONFIG_MTD_NAND_OMAP_BCH not enabled
[    2.196986] omap2-nand: probe of omap2-nand.0 failed with error -22
[    2.211227] tps65910 0-002d: No interrupt support, no core IRQ
[    2.226349] vrtc: 1800 mV
[    2.229982] vrtc: supplied by vbat
[    2.237044] vio: at 1500 mV
[    2.240408] vio: supplied by vbat
[    2.247207] vdd_mpu: 912 <--> 1375 mV at 1325 mV
[    2.252493] vdd_mpu: supplied by vbat
[    2.259754] vdd_core: 912 <--> 1150 mV at 1137 mV
[    2.264965] vdd_core: supplied by vbat
[    2.271797] vdd3: 5000 mV
[    2.277183] vdig1: at 1800 mV
[    2.280708] vdig1: supplied by vbat
[    2.287103] vdig2: at 1800 mV
[    2.290597] vdig2: supplied by vbat
[    2.296966] vpll: at 1800 mV
[    2.300400] vpll: supplied by vbat
[    2.306749] vdac: at 1800 mV
[    2.310185] vdac: supplied by vbat
[    2.316456] vaux1: at 1800 mV
[    2.319974] vaux1: supplied by vbat
[    2.326358] vaux2: at 3300 mV
[    2.329882] vaux2: supplied by vbat
[    2.336292] vaux33: at 3300 mV
[    2.339887] vaux33: supplied by vbat
[    2.346434] vmmc: 1800 <--> 3300 mV at 3300 mV
[    2.351483] vmmc: supplied by vbat
[    2.357180] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz
[    2.370979] omap_i2c 4802a000.i2c: bus 1 rev0.11 at 100 kHz
[    2.383051] musb-hdrc musb-hdrc.0.auto: MUSB HDRC host driver
[    2.392487] musb-hdrc musb-hdrc.0.auto: new USB bus registered, assigned bus number 1
[    2.402538] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    2.409734] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.417278] usb usb1: Product: MUSB HDRC host driver
[    2.422496] usb usb1: Manufacturer: Linux 3.14.26-g07d13c6-dirty musb-hcd
[    2.429612] usb usb1: SerialNumber: musb-hdrc.0.auto
[    2.440134] hub 1-0:1.0: USB hub found
[    2.444617] hub 1-0:1.0: 1 port detected
[    2.459725] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[    2.467412] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 2
[    2.476344] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[    2.483557] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.491147] usb usb2: Product: MUSB HDRC host driver
[    2.496333] usb usb2: Manufacturer: Linux 3.14.26-g07d13c6-dirty musb-hcd
[    2.503450] usb usb2: SerialNumber: musb-hdrc.1.auto
[    2.511417] hub 2-0:1.0: USB hub found
[    2.515468] hub 2-0:1.0: 1 port detected
[    2.559925]  remoteproc0: wkup_m3 is available
[    2.564588]  remoteproc0: Note: remoteproc is still under development and considered experimental.
[    2.574143]  remoteproc0: THE BINARY FORMAT IS NOT YET FINALIZED, and backward compatibility isn't yet guaranteed.
[    2.586295]  remoteproc0: Direct firmware load failed with error -2
[    2.592941]  remoteproc0: Falling back to user helper
[    2.648329] mmc1: new high speed SDHC card at address 1234
[    2.657347] mmcblk0: mmc1:1234 SA04G 3.63 GiB
[    2.668327]  mmcblk0: p1 p2
[    2.672193] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6
[    2.678648] davinci_mdio 4a101000.mdio: detected phy mask fffffffe
[    2.692492] libphy: 4a101000.mdio: probed
[    2.696711] davinci_mdio 4a101000.mdio: phy[0]: device 4a101000.mdio:00, driver Atheros 8031 ethernet
[    2.708532] cpsw 4a100000.ethernet: Detected MACID = c4:ed:ba:8b:37:b3
[    2.723017] input: volume_keys.8 as /devices/volume_keys.8/input/input0
[    2.733413] omap_rtc 44e3e000.rtc: setting system clock to 2000-01-01 00:00:01 UTC (946684801)
[    2.742621] sr_init: No PMIC hook to init smartreflex
[    2.749201] sr_init: platform driver register failed for SR
[    2.773552] net eth0: initializing cpsw version 1.12 (0)
[    2.859227] net eth0: phy found : id is : 0x4dd074
[    2.864426] libphy: PHY 4a101000.mdio:01 not found
[    2.869488] net eth0: phy 4a101000.mdio:01 not found on slave 1
[    5.859230] libphy: 4a101000.mdio:00 - Link is Up - 100/Full
[    5.878464] IP-Config: Guessing netmask 255.255.255.0
[    5.884108] IP-Config: Complete:
[    5.887489]      device=eth0, hwaddr=c4:ed:ba:8b:37:b3, ipaddr=192.168.100.225, mask=255.255.255.0, gw=255.255.255.255
[    5.898728]      host=192.168.100.225, domain=, nis-domain=(none)
[    5.905091]      bootserver=255.255.255.255, rootserver=192.168.100.123, rootpath=
[    5.962609] VFS: Mounted root (nfs filesystem) on device 0:14.
[    5.971761] devtmpfs: mounted
[    5.975596] Freeing unused kernel memory: 404K (c07d0000 - c0835000)

 

2. Device driver module

step 1. I run make command to load the "omap2plus_defconfig"

step 2. I  make with menuconfig (used SDK 08.00.00)

 

 and save .config

 

    
 
step 3. kernel compile

   make -j 1 ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- zImage
   make -j 1 ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- modules

 

step 4. device driver created  ok

       linux-3.14.26-g2489c02\drivers\usb\gadget\

       =>  g_printer.ko

 

step 5. download kernel image into evm-board

step 6. insmod g_printer.ko

result :   

root@192:/lib/modules# insmod g_printer.ko
g_printer: no symbol version for module_layout
insmod: ERROR: could not insert module g_printer.ko: Invalid module format

* another case result :

root@192:/lib/modules# insmod g_printer.ko

FATAL: Error inserting g_printer.ko: No such device

*booting logo

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 3.14.26-g07d13c6-dirty (root@ubuntu) (gcc ve                         rsion 4.7.3 20130226 (prerelease) (crosstool-NG linaro-1.13.1-4.7-2013.03                         -20130313 - Linaro GCC 2013.03) ) #17 SMP Tue May 19 09:51:47 KST 2015
[    0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c                         5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing ins                         truction cache
[    0.000000] Machine model: TI AM335x EVM
[    0.000000] cma: CMA: reserved 16 MiB at ae800000
[    0.000000] Memory policy: Data cache writeback
[    0.000000] CPU: All CPU(s) started in SVC mode.
[    0.000000] AM335X ES2.1 (sgx neon )
[    0.000000] PERCPU: Embedded 9 pages/cpu @edfc7000 s14720 r8192 d13952                          u36864
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  To                         tal pages: 260112
[    0.000000] Kernel command line: console=ttyO0,115200n8 root=/dev/nfs                          rw ip=192.168.100.225 nfsroot=192.168.100.123:/opt/work/trunk/BSP/AM335X/                         RootFileSystem/Rootfs,nolock rw rootfstype=nfs
[    0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288                          bytes)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 by                         tes)
[    0.000000] Memory: 1006304K/1046528K available (5742K kernel code, 68                         9K rwdata, 2224K rodata, 406K init, 5521K bss, 40224K reserved, 268288K h                         ighmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
[    0.000000]     vmalloc : 0xf0000000 - 0xff000000   ( 240 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xef800000   ( 760 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc07cfa88   (7967 kB)
[    0.000000]       .init : 0xc07d0000 - 0xc0835980   ( 407 kB)
[    0.000000]       .data : 0xc0836000 - 0xc08e27d8   ( 690 kB)
[    0.000000]        .bss : 0xc08e27d8 - 0xc0e46e38   (5522 kB)
[    0.000000] Hierarchical RCU implementation.
[    0.000000]  RCU restricting CPUs from NR_CPUS=2 to nr_cpu_ids=1.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids                         =1
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 i                         nterrupts
[    0.000000] Total of 128 interrupts on 1 active controller
[    0.000000] OMAP clockevent source: timer2 at 24000000 Hz
[    0.000013] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps ever                         y 178956969942ns
[    0.000058] OMAP clocksource: timer1 at 24000000 Hz
[    0.000842] Console: colour dummy device 80x30
[    0.000894] Lock dependency validator: Copyright (c) 2006 Red Hat, Inc                         ., Ingo Molnar
[    0.000903] ... MAX_LOCKDEP_SUBCLASSES:  8
[    0.000910] ... MAX_LOCK_DEPTH:          48
[    0.000917] ... MAX_LOCKDEP_KEYS:        8191
[    0.000925] ... CLASSHASH_SIZE:          4096
[    0.000932] ... MAX_LOCKDEP_ENTRIES:     16384
[    0.000939] ... MAX_LOCKDEP_CHAINS:      32768
[    0.000946] ... CHAINHASH_SIZE:          16384
[    0.000953]  memory used by lock dependency info: 3695 kB
[    0.000961]  per task-struct memory footprint: 1152 bytes
[    0.001013] Calibrating delay loop... 996.14 BogoMIPS (lpj=4980736)
[    0.079110] pid_max: default: 32768 minimum: 301
[    0.079470] Security Framework initialized
[    0.079590] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes                         )
[    0.079606] Mountpoint-cache hash table entries: 2048 (order: 1, 8192                          bytes)
[    0.102586] CPU: Testing write buffer coherency: ok
[    0.103897] CPU0: thread -1, cpu 0, socket -1, mpidr 0
[    0.103970] Setting up static identity map for 0x80570610 - 0x80570680
[    0.107060] Brought up 1 CPUs
[    0.107080] SMP: Total of 1 processors activated.
[    0.107090] CPU: All CPU(s) started in SVC mode.
[    0.109970] devtmpfs: initialized
[    0.118584] VFP support v0.3: implementor 41 architecture 3 part 30 va                         riant c rev 3
[    0.154261] omap_hwmod: tptc0 using broken dt data from edma
[    0.154607] omap_hwmod: tptc1 using broken dt data from edma
[    0.154937] omap_hwmod: tptc2 using broken dt data from edma
[    0.162824] omap_hwmod: debugss: _wait_target_disable failed
[    0.222214] pinctrl core: initialized pinctrl subsystem
[    0.226739] regulator-dummy: no parameters
[    0.230273] NET: Registered protocol family 16
[    0.235414] DMA: preallocated 256 KiB pool for atomic coherent allocat                         ions
[    0.241435] cpuidle: using governor ladder
[    0.241461] cpuidle: using governor menu
[    0.251368] syscon 44e10000.control_module: regmap [mem 0x44e10000-0x4                         4e107fb] registered
[    0.255221] platform 49000000.edma: alias fck already exists
[    0.255257] platform 49000000.edma: alias fck already exists
[    0.255277] platform 49000000.edma: alias fck already exists
[    0.259645] OMAP GPIO hardware version 0.1
[    0.292017] omap-gpmc 50000000.gpmc: could not find pctldev for node /                         pinmux@44e10800/nandflash_pins_default, deferring probe
[    0.292070] platform 50000000.gpmc: Driver omap-gpmc requests probe de                         ferral
[    0.302717] No ATAGs?
[    0.302742] hw-breakpoint: debug architecture 0x4 unsupported.
[    0.367628] bio: create slab <bio-0> at 0
[    0.408144] edma-dma-engine edma-dma-engine.0: TI EDMA DMA engine driv                         er
[    0.410860] vbat: 5000 mV
[    0.411972] lis3_reg: no parameters
[    0.413244] wlan-en-regulator: 1800 mV
[    0.420335] i2c-core: driver [palmas] using legacy suspend method
[    0.420356] i2c-core: driver [palmas] using legacy resume method
[    0.421961] SCSI subsystem initialized
[    0.424216] usbcore: registered new interface driver usbfs
[    0.424644] usbcore: registered new interface driver hub
[    0.425402] usbcore: registered new device driver usb
[    0.427729] omap_i2c 44e0b000.i2c: could not find pctldev for node /pi                         nmux@44e10800/pinmux_i2c0_pins, deferring probe
[    0.427774] platform 44e0b000.i2c: Driver omap_i2c requests probe defe                         rral
[    0.427832] omap_i2c 4802a000.i2c: could not find pctldev for node /pi                         nmux@44e10800/pinmux_i2c1_pins, deferring probe
[    0.427856] platform 4802a000.i2c: Driver omap_i2c requests probe defe                         rral
[    0.433659] omap-mailbox 480c8000.mailbox: omap mailbox rev 0x400
[    0.438826] Switched to clocksource timer1
[    0.593168] NET: Registered protocol family 2
[    0.595113] TCP established hash table entries: 8192 (order: 3, 32768                          bytes)
[    0.595357] TCP bind hash table entries: 8192 (order: 6, 294912 bytes)
[    0.598062] TCP: Hash tables configured (established 8192 bind 8192)
[    0.598287] TCP: reno registered
[    0.598320] UDP hash table entries: 512 (order: 3, 40960 bytes)
[    0.598684] UDP-Lite hash table entries: 512 (order: 3, 40960 bytes)
[    0.600234] NET: Registered protocol family 1
[    0.602387] RPC: Registered named UNIX socket transport module.
[    0.602411] RPC: Registered udp transport module.
[    0.602420] RPC: Registered tcp transport module.
[    0.602429] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.603674] hw perfevents: enabled with ARMv7 Cortex-A8 PMU driver, 5                          counters available
[    0.611909] futex hash table entries: 256 (order: 2, 16384 bytes)
[    0.756124] bounce pool size: 64 pages
[    0.757400] VFS: Disk quotas dquot_6.5.2
[    0.757594] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.760145] NFS: Registering the id_resolver key type
[    0.760531] Key type id_resolver registered
[    0.760549] Key type id_legacy registered
[    0.760661] jffs2: version 2.2. (NAND) (SUMMARY)  짤 2001-2006 Red Hat                         , Inc.
[    0.761100] msgmni has been set to 1473
[    0.764165] io scheduler noop registered
[    0.764188] io scheduler deadline registered
[    0.764248] io scheduler cfq registered (default)
[    0.768110] pinctrl-single 44e10800.pinmux: 142 pins at pa f9e10800 si                         ze 568
[    0.775176] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[    0.783347] omap_uart 44e09000.serial: no wakeirq for uart0
[    0.784040] 44e09000.serial: ttyO0 at MMIO 0x44e09000 (irq = 88, base_                         baud = 3000000) is a OMAP UART0
[    1.541028] console [ttyO0] enabled
[    1.547186] omap_uart 48022000.serial: no wakeirq for uart0
[    1.553398] 48022000.serial: ttyO1 at MMIO 0x48022000 (irq = 89, base_                         baud = 3000000) is a OMAP UART1
[    1.567740] omap_rng 48310000.rng: OMAP Random Number Generator ver. 2                         0
[    1.605665] brd: module loaded
[    1.628348] loop: module loaded
[    1.632508] (stk) :sysfs entries created
[    1.636751] (stk) : debugfs entries created
[    1.642184] (hci_tty): inside hci_tty_init
[    1.648108] (hci_tty): allocated 251, 0
[    1.658683] mtdoops: mtd device (mtddev=name/number) must be supplied
[    1.674436] usbcore: registered new interface driver asix
[    1.681133] usbcore: registered new interface driver ax88179_178a
[    1.687916] usbcore: registered new interface driver cdc_ether
[    1.694595] usbcore: registered new interface driver smsc95xx
[    1.701457] usbcore: registered new interface driver net1080
[    1.707775] usbcore: registered new interface driver cdc_subset
[    1.714467] usbcore: registered new interface driver zaurus
[    1.720923] usbcore: registered new interface driver cdc_ncm
[    1.729195] usbcore: registered new interface driver cdc_wdm
[    1.735629] usbcore: registered new interface driver usbtest
[    1.746983] 47401300.usb-phy supply vcc not found, using dummy regulat                         or
[    1.760397] musb-hdrc musb-hdrc.0.auto: Failed to request rx1.
[    1.766978] musb-hdrc musb-hdrc.0.auto: musb_init_controller failed wi                         th status -517
[    1.775263] platform musb-hdrc.0.auto: Driver musb-hdrc requests probe                          deferral
[    1.784716] 47401b00.usb-phy supply vcc not found, using dummy regulat                         or
[    1.796397] musb-hdrc musb-hdrc.1.auto: Failed to request rx1.
[    1.802777] musb-hdrc musb-hdrc.1.auto: musb_init_controller failed wi                         th status -517
[    1.810999] platform musb-hdrc.1.auto: Driver musb-hdrc requests probe                          deferral
[    1.857865] usb_gadget_probe_driver ffffffed
[    1.865581] mousedev: PS/2 mouse device common for all mice
[    1.877222] omap_rtc 44e3e000.rtc: rtc core: registered 44e3e000.rtc a                         s rtc0
[    1.886896] i2c /dev entries driver
[    1.891128] Driver for 1-wire Dallas network protocol.
[    1.902047] omap_wdt: OMAP Watchdog Timer Rev 0x01: initial timeout 60                          sec
[    1.923348] omap_hsmmc 48060000.mmc: unable to get vmmc regulator -517
[    1.930839] platform 48060000.mmc: Driver omap_hsmmc requests probe de                         ferral
[    2.066414] usbcore: registered new interface driver usbhid
[    2.072356] usbhid: USB HID core driver
[    2.077717] platform 44d00000.wkup_m3: Driver wkup_m3 requests probe d                         eferral
[    2.090046] oprofile: using arm/armv7
[    2.094641] TCP: cubic registered
[    2.098112] Initializing XFRM netlink socket
[    2.102964] NET: Registered protocol family 17
[    2.107692] NET: Registered protocol family 15
[    2.112809] Key type dns_resolver registered
[    2.120429] PM: bootloader does not support rtc-only!
[    2.125737] ThumbEE CPU extension supported.
[    2.130354] Registering SWP/SWPB emulation handler
[    2.135361] SmartReflex Class3 initialized
[    2.143871] wlan-en-regulator: disabling
[    2.148007] lis3_reg: disabling
[    2.151521] vbat: disabling
[    2.154447] regulator-dummy: disabling
[    2.159915] omap-gpmc 50000000.gpmc: GPMC revision 6.0
[    2.165465] gpmc_mem_init: disabling cs 0 mapped at 0x0-0x1000000
[    2.174341] nand: device found, Manufacturer ID: 0x2c, Chip ID: 0xda
[    2.181198] nand: Micron MT29F2G08ABAEAWP
[    2.185391] nand: 256MiB, SLC, page size: 2048, OOB size: 64
[    2.191575] nand: error: CONFIG_MTD_NAND_OMAP_BCH not enabled
[    2.197646] omap2-nand: probe of omap2-nand.0 failed with error -22
[    2.211709] tps65910 0-002d: No interrupt support, no core IRQ
[    2.226620] vrtc: 1800 mV
[    2.230147] vrtc: supplied by vbat
[    2.237176] vio: at 1500 mV
[    2.240562] vio: supplied by vbat
[    2.247525] vdd_mpu: 912 <--> 1375 mV at 1325 mV
[    2.252818] vdd_mpu: supplied by vbat
[    2.260115] vdd_core: 912 <--> 1150 mV at 1137 mV
[    2.265328] vdd_core: supplied by vbat
[    2.272156] vdd3: 5000 mV
[    2.277539] vdig1: at 1800 mV
[    2.281074] vdig1: supplied by vbat
[    2.287472] vdig2: at 1800 mV
[    2.290971] vdig2: supplied by vbat
[    2.297358] vpll: at 1800 mV
[    2.300801] vpll: supplied by vbat
[    2.307183] vdac: at 1800 mV
[    2.310616] vdac: supplied by vbat
[    2.316901] vaux1: at 1800 mV
[    2.320415] vaux1: supplied by vbat
[    2.326786] vaux2: at 3300 mV
[    2.330310] vaux2: supplied by vbat
[    2.336710] vaux33: at 3300 mV
[    2.340309] vaux33: supplied by vbat
[    2.346871] vmmc: 1800 <--> 3300 mV at 3300 mV
[    2.351916] vmmc: supplied by vbat
[    2.357617] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz
[    2.371480] omap_i2c 4802a000.i2c: bus 1 rev0.11 at 100 kHz
[    2.383534] musb-hdrc musb-hdrc.0.auto: MUSB HDRC host driver
[    2.392989] musb-hdrc musb-hdrc.0.auto: new USB bus registered, assign                         ed bus number 1
[    2.403051] usb usb1: New USB device found, idVendor=1d6b, idProduct=0                         002
[    2.410248] usb usb1: New USB device strings: Mfr=3, Product=2, Serial                         Number=1
[    2.417791] usb usb1: Product: MUSB HDRC host driver
[    2.423010] usb usb1: Manufacturer: Linux 3.14.26-g07d13c6-dirty musb-                         hcd
[    2.430126] usb usb1: SerialNumber: musb-hdrc.0.auto
[    2.440425] hub 1-0:1.0: USB hub found
[    2.444900] hub 1-0:1.0: 1 port detected
[    2.460034] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[    2.467720] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assign                         ed bus number 2
[    2.476647] usb usb2: New USB device found, idVendor=1d6b, idProduct=0                         002
[    2.483857] usb usb2: New USB device strings: Mfr=3, Product=2, Serial                         Number=1
[    2.491451] usb usb2: Product: MUSB HDRC host driver
[    2.496636] usb usb2: Manufacturer: Linux 3.14.26-g07d13c6-dirty musb-                         hcd
[    2.503754] usb usb2: SerialNumber: musb-hdrc.1.auto
[    2.512063] hub 2-0:1.0: USB hub found
[    2.516127] hub 2-0:1.0: 1 port detected
[    2.560289]  remoteproc0: wkup_m3 is available
[    2.564953]  remoteproc0: Note: remoteproc is still under development                          and considered experimental.
[    2.574548]  remoteproc0: THE BINARY FORMAT IS NOT YET FINALIZED, and                          backward compatibility isn't yet guaranteed.
[    2.586709]  remoteproc0: Direct firmware load failed with error -2
[    2.593356]  remoteproc0: Falling back to user helper
[    2.648688] mmc1: new high speed SDHC card at address 1234
[    2.657711] mmcblk0: mmc1:1234 SA04G 3.63 GiB
[    2.668683]  mmcblk0: p1 p2
[    2.672549] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6
[    2.679003] davinci_mdio 4a101000.mdio: detected phy mask fffffffe
[    2.692827] libphy: 4a101000.mdio: probed
[    2.697048] davinci_mdio 4a101000.mdio: phy[0]: device 4a101000.mdio:0                         0, driver Atheros 8031 ethernet
[    2.708705] cpsw 4a100000.ethernet: Detected MACID = c4:ed:ba:8b:37:b3
[    2.723347] input: volume_keys.8 as /devices/volume_keys.8/input/input                         0
[    2.733727] omap_rtc 44e3e000.rtc: setting system clock to 2000-01-01                          00:00:01 UTC (946684801)
[    2.742933] sr_init: No PMIC hook to init smartreflex
[    2.749499] sr_init: platform driver register failed for SR
[    2.773826] net eth0: initializing cpsw version 1.12 (0)
[    2.859602] net eth0: phy found : id is : 0x4dd074
[    2.864802] libphy: PHY 4a101000.mdio:01 not found
[    2.869860] net eth0: phy 4a101000.mdio:01 not found on slave 1
[    5.859602] libphy: 4a101000.mdio:00 - Link is Up - 100/Full
[    5.878818] IP-Config: Guessing netmask 255.255.255.0
[    5.884471] IP-Config: Complete:
[    5.887852]      device=eth0, hwaddr=c4:ed:ba:8b:37:b3, ipaddr=192.168                         .100.225, mask=255.255.255.0, gw=255.255.255.255
[    5.899090]      host=192.168.100.225, domain=, nis-domain=(none)
[    5.905455]      bootserver=255.255.255.255, rootserver=192.168.100.12                         3, rootpath=
[    5.949735] VFS: Mounted root (nfs filesystem) on device 0:14.
[    5.960132] devtmpfs: mounted
[    5.963967] Freeing unused kernel memory: 404K (c07d0000 - c0835000)

I'm really stucked into something that it seems some people has had success so i might be missing something.
Any suggestions are welcome.

Thanks in advance. 

  • Also please use singlecore-omap2plus_defconfig for building the kernel, as given in the wiki:

    processors.wiki.ti.com/.../Linux_Kernel_Users_Guide

    For gadgets you should select Device drivers ->USB support->USB Gadget Support -> Printer Gadget in the menuconfig. What I have seen is if you use the singlecore-omap2plus_defconfig printer gadget is enabled by default.

    Best Regards,
    Shiv
  • Thank you quick reply

    you've already tried usbgeneralpage

    result is same

    processors.wiki.ti.com/.../Usbgeneralpage

    there is no configure method for AM335X-evm

    which is use defconfig file in arch/arm/configs/ ?
    omap2plus_defconfig? singlecore-omap2plus_defconfig?
    there is no tisdk_am335x-evm_defconfig in arch/arm/configs/

    =========================================================================
    Device Drivers --->
    USB support --->
    <*> Support for Host-side USB
    *** Miscellaneous USB options ***
    [*] USB device filesystem
    [*] USB device class-devices (DEPRECATED)
    *** USB Host Controller Drivers ***
    <*> Inventra Highspeed Dual Role Controller (TI, ADI, ...)
    *** Platform Glue Layer ***
    < > TUSB6010
    < > OMAP2430 and onwards
    < > AM35x
    <*> TI81XX
    TI816X usb connector's ID pin control (from software setting) --->
    Driver Mode (USB Host) --->
    [ ] Disable DMA (always use PIO)
    [*] Enable debugging messages
    ==========================================================================
    Also can not understand the contents of the above-mentioned

    where is Platform Glue Layer of AM335x?


    I tried Mass Storage Gadget method

    The same results came out...

    Thanks in advance. 

  • Thank you quick reply

    I tried to build kernel

    I used to singlecore-omap2plus_defconfig but I get the same result....

    ===============================================================================
    root@192:/lib/modules# insmod configfs.ko
    root@192:/lib/modules# [ 60.358689] [HOTPLUG ] unknown SUBSYSTEM: module, , add

    root@192:/lib/modules# insmod libcomposite.ko
    root@192:/lib/modules# [ 70.153968] [HOTPLUG ] unknown SUBSYSTEM: module, , add

    root@192:/lib/modules# insmod g_printer.ko
    [ 75.753968] usb_gadget_probe_driver ffffffed
    insmod: ERROR: could not insert module g_printer.ko: No such device
    root@192:/lib/modules# [ 75.952452] [HOTPLUG ] unknown SUBSYSTEM: module, , add
    [ 75.969877] [HOTPLUG ] unknown SUBSYSTEM: class, , add
    [ 75.980614] [HOTPLUG ] unknown SUBSYSTEM: class, , remove
    [ 76.002764] [HOTPLUG ] unknown SUBSYSTEM: module, , remove
    ===============================================================================

    This is menuconfig setting in kernel
    1) USB support
    ===============================================================================
    <M> Inventra Highspeed Dual Role Controller (TI, ADI, ...) │ │
    │ │ MUSB Mode Selection (Dual Role mode) ---> │ │
    │ │ Platform Glue Layer
    │ │ < > TUSB6010 │ │
    │ │ <M> OMAP2430 and onwards │ │
    │ │ < > AM35x │ │
    │ │ <M> TI DSPS platforms │ │
    │ │ < > Ux500 platforms │ │
    │ │ MUSB DMA mode (TI CPPI 4.1 (AM335x)) --->
    ===============================================================================

    2) USB Gadget Support
    ===============================================================================
    <M> Mass Storage Gadget │ │
    │ │ <M> Serial Gadget (with CDC ACM and CDC OBEX support) │ │
    │ │ <M> MIDI Gadget │ │
    │ │ <M> Printer Gadget │ │
    │ │ <M> CDC Composite Device (Ethernet and ACM) │ │
    │ │ <M> CDC Composite Device (ACM and mass storage) │ │
    │ │ <M> Multifunction Composite Gadget │ │
    │ │
    ================================================================================

    How can I solve this problem?

    I used to SDK 08.00.00, arago-base-tisdk-image-am335x-evm.tar.gz rootfs

    Any suggestions are welcome.
    Thanks in advance.
  • Hi after booting could you please try the command 'lsmod' that will list the modules. Also did you build the modules and inserted to the file system as with the following commands:
    1. make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- modules

    2. sudo make ARCH=arm INSTALL_MOD_PATH=<path to root of file system> modules_install

    For example if you are installing the modules on the rootfs partition of the SD card you would do:

    sudo make ARCH=arm INSTALL_MOD_PATH=/media/rootfs modules_install

    BR/
    Shiv
  • ass fff said:

    step 3. kernel compile

       make -j 1 ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- zImage
       make -j 1 ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- modules

     step 4. device driver created  ok

           linux-3.14.26-g2489c02\drivers\usb\gadget\

           =>  g_printer.ko

     step 5. download kernel image into evm-board

    step 6. insmod g_printer.ko

    result :   

    root@192:/lib/modules# insmod g_printer.ko
    g_printer: no symbol version for module_layout
    insmod: ERROR: could not insert module g_printer.ko: Invalid module format

    What you did up to Step 3 are correct. Then

    - Ensure in Step 5 you do 'make module_install' as Shiv pointed in the post above.

    - In Step 6, please use 'modprobe g_printer' instead. Insmod will fail because USB gadget drivers depend on USB libcomposite driver.

  • thank you for your reply

    this is my kernel compile prat in makefile

    ===============================================================
    cd /opt/work/trunk/BSP/AM335X/Linux/linux-3.14.26-g2489c02;
    make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- singlecore-omap2plus_defconfig
    make -j 1 ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- zImage
    make -j 1 ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- modules

    install -d /opt/work/trunk/BSP/AM335X/Linux/linux-3.14.26-g2489c02/arch/arm/boot
    install arch/arm/boot/zImage /opt/work/trunk/BSP/AM335X/Linux/linux-3.14.26-g2489c02/arch/arm/boot

    install vmlinux /opt/work/trunk/BSP/AM335X/Linux/linux-3.14.26-g2489c02/arch/arm/boot
    install System.map /opt/work/trunk/BSP/AM335X/Linux/linux-3.14.26-g2489c02/arch/arm/boot
    make ARCH=arm CROSS_COMPILE=/opt/ti-sdk-am335x-evm-08.00.00.00/linux-devkit/sysroots/i686-arago-linux/usr/bin/arm-linux-gnueabihf- INSTALL_MOD_PATH=/opt/work/trunk/BSP/AM335X/Linux/linux-3.14.26-g2489c02/arch/arm/boot modules_install
    ===============================================================

    and

    I tried to use "modprobe" commnad instead of "ismod".

    ===============================================================
    root@192:/lib/modules# ls
    3.14.26-g2489c02 bxl_zpl_printhead.ko
    bxl_adc_linux.ko configfs.ko
    root@192:/lib/modules# insmod configfs.ko
    root@192:/lib/modules# [ 344.127744] [HOTPLUG ] unknown SUBSYSTEM: module, , add

    root@192:/lib/modules# insmod libcomposite.ko
    root@192:/lib/modules# [ 370.813016] [HOTPLUG ] unknown SUBSYSTEM: module, , add

    root@192:/lib/modules# modprobe g_printer.ko
    root@192:/lib/modules#

    root@192:/# lsmod
    Module Size Used by
    libcomposite 44920 0
    configfs 22302 2 libcomposite
    bxl_zpl_printhead 1415 0
    =================================================================

    Error did not occur but I can't find g_printer driver in /dev/?

    where is g_printer driver?

    /opt/work/trunk/BSP/AM335X/RootFileSystem/Rootfs <= this path is NFS link folder

    where do you have to change in makefile or anywhere?

    Thanks in advance.
  • thank you for your reply

    this is my kernel compile prat in makefile

    ===============================================================
    cd /opt/work/trunk/BSP/AM335X/Linux/linux-3.14.26-g2489c02;
    make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- singlecore-omap2plus_defconfig
    make -j 1 ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- zImage
    make -j 1 ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- modules

    install -d /opt/work/trunk/BSP/AM335X/Linux/linux-3.14.26-g2489c02/arch/arm/boot
    install arch/arm/boot/zImage /opt/work/trunk/BSP/AM335X/Linux/linux-3.14.26-g2489c02/arch/arm/boot

    install vmlinux /opt/work/trunk/BSP/AM335X/Linux/linux-3.14.26-g2489c02/arch/arm/boot
    install System.map /opt/work/trunk/BSP/AM335X/Linux/linux-3.14.26-g2489c02/arch/arm/boot
    make ARCH=arm CROSS_COMPILE=/opt/ti-sdk-am335x-evm-08.00.00.00/linux-devkit/sysroots/i686-arago-linux/usr/bin/arm-linux-gnueabihf- INSTALL_MOD_PATH=/opt/work/trunk/BSP/AM335X/Linux/linux-3.14.26-g2489c02/arch/arm/boot modules_install
    ===============================================================

    I try to insert a debugging message on printer.c file
    I think this is not expected behaviour?

    root@192:/lib/modules# modprobe g_printer.ko
    root@192:/lib/modules# (Not print debugging message, No response)

    root@192:/lib/modules# modprobe -r g_printer.ko
    root@192:/lib/modules# (Not print debugging message, No response)

    root@192:/lib/modules# insmod g_printer.ko
    [ 3898.281716] g_printer:enable to create usb_gadget class (<= print debugging message)
    [ 3898.287248] g_printer:alloc_chrdev_region (<= print debugging message)
    [ 3898.319122] usb_gadget_probe_driver ffffffed
    insmod: ERROR: could not insert module g_printer.ko: No such device
    root@192:/lib/modules# [ 3898.494316] [HOTPLUG ] unknown SUBSYSTEM: module, , add
    [ 3898.513754] [HOTPLUG ] unknown SUBSYSTEM: class, , add
    [ 3898.522855] [HOTPLUG ] unknown SUBSYSTEM: class, , remove
    [ 3898.535342] [HOTPLUG ] unknown SUBSYSTEM: module, , remove

    Any suggestions?
  • ass fff said:
    ===============================================================
    cd /opt/work/trunk/BSP/AM335X/Linux/linux-3.14.26-g2489c02;
    ......


    install -d /opt/work/trunk/BSP/AM335X/Linux/linux-3.14.26-g2489c02/arch/arm/boot
    install arch/arm/boot/zImage /opt/work/trunk/BSP/AM335X/Linux/linux-3.14.26-g2489c02/arch/arm/boot

    install vmlinux /opt/work/trunk/BSP/AM335X/Linux/linux-3.14.26-g2489c02/arch/arm/boot
    install System.map /opt/work/trunk/BSP/AM335X/Linux/linux-3.14.26-g2489c02/arch/arm/boot
    make ARCH=arm CROSS_COMPILE=/opt/ti-sdk-am335x-evm-08.00.00.00/linux-devkit/sysroots/i686-arago-linux/usr/bin/arm-linux-gnueabihf- INSTALL_MOD_PATH=/opt/work/trunk/BSP/AM335X/Linux/linux-3.14.26-g2489c02/arch/arm/boot modules_install
    ===============================================================

    These are non-sense. Those kernel binaries did not install to anywhere, they did not go to your NFS rootfs.