On Wed, Aug 21, 2013 at 12:31 AM, Fabio Estevam <festevam@xxxxxxxxx> wrote: > On Tue, Aug 20, 2013 at 10:32 PM, Peter Chen <peter.chen@xxxxxxxxxxxxx> wrote: >> On Wed, Aug 21, 2013 at 12:26:33AM -0300, Fabio Estevam wrote: > >> Have you enabled CONFIG_USB_CHIPIDEA_UDC? >> It is not enabled by default. > > Yes, I did. > > I managed to test g_ether on mx28, but not on mx6. > > Will try tomorrow on mx6q-sabresd. Ok, just tried it now on my mx6qsabresd: Booting Linux on physical CPU 0x0 Linux version 3.11.0-rc6-next-20130820+ (fabio@fabio-Latitude-E6410) (gcc version 4.7.3 (Ubuntu/Linaro 4.7.3-1ubuntu1) ) #1040 SMP Wed Aug 21 00:47:11 BRT 2013 CPU: ARMv7 Processor [412fc09a] revision 10 (ARMv7), cr=10c53c7d CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache Machine: Freescale i.MX6 Quad/DualLite (Device Tree), model: Freescale i.MX6 Quad SABRE Smart Device Board Memory policy: ECC disabled, Data cache writealloc On node 0 totalpages: 262144 free_area_init_node: node 0, pgdat 8082bb40, node_mem_map 81009000 Normal zone: 2048 pages used for memmap Normal zone: 0 pages reserved Normal zone: 262144 pages, LIFO batch:31 PERCPU: Embedded 7 pages/cpu @8181b000 s7488 r8192 d12992 u32768 pcpu-alloc: s7488 r8192 d12992 u32768 alloc=8*4096 pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 Built 1 zonelists in Zone order, mobility grouping on. Total pages: 260096 Kernel command line: console=ttymxc0,115200 root=/dev/nfs ip=dhcp nfsroot=192.168.0.2:/tftpboot/rfs,v3,tcp debug PID hash table entries: 4096 (order: 2, 16384 bytes) Dentry cache hash table entries: 131072 (order: 7, 524288 bytes) Inode-cache hash table entries: 65536 (order: 6, 262144 bytes) Memory: 1030608K/1048576K available (5911K kernel code, 289K rwdata, 1804K rodata, 327K init, 374K bss, 17968K reserved) Virtual kernel memory layout: vector : 0xffff0000 - 0xffff1000 ( 4 kB) fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB) vmalloc : 0xc0800000 - 0xff000000 (1000 MB) lowmem : 0x80000000 - 0xc0000000 (1024 MB) modules : 0x7f000000 - 0x80000000 ( 16 MB) .text : 0x80008000 - 0x80790f0c (7716 kB) .init : 0x80791000 - 0x807e2d40 ( 328 kB) .data : 0x807e4000 - 0x8082c460 ( 290 kB) .bss : 0x8082c468 - 0x8088a018 ( 375 kB) SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1 Hierarchical RCU implementation. NR_IRQS:16 nr_irqs:16 16 L310 cache controller enabled l2x0: 16 ways, CACHE_ID 0x410000c7, AUX_CTRL 0x32070000, Cache size: 1024 kB sched_clock: 32 bits at 66MHz, resolution 15ns, wraps every 65075ms CPU identified as i.MX6Q, silicon rev 1.1 Console: colour dummy device 80x30 Calibrating delay loop... 1581.05 BogoMIPS (lpj=7905280) pid_max: default: 32768 minimum: 301 Mount-cache hash table entries: 512 CPU: Testing write buffer coherency: ok CPU0: thread -1, cpu 0, socket 0, mpidr 80000000 Setting up static identity map for 0x805cbf40 - 0x805cbfb0 CPU1: Booted secondary processor CPU1: thread -1, cpu 1, socket 0, mpidr 80000001 CPU2: Booted secondary processor CPU2: thread -1, cpu 2, socket 0, mpidr 80000002 CPU3: Booted secondary processor CPU3: thread -1, cpu 3, socket 0, mpidr 80000003 Brought up 4 CPUs SMP: Total of 4 processors activated (6324.22 BogoMIPS). CPU: All CPU(s) started in SVC mode. devtmpfs: initialized VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4 pinctrl core: initialized pinctrl subsystem regulator-dummy: no parameters NET: Registered protocol family 16 DMA: preallocated 256 KiB pool for atomic coherent allocations syscon 20c8000.anatop: regmap [mem 0x020c8000-0x020c8fff] registered vdd1p1: 800 <--> 1375 mV at 1100 mV vdd3p0: 2800 <--> 3150 mV at 3000 mV vdd2p5: 2000 <--> 2750 mV at 2400 mV cpu: 725 <--> 1450 mV at 1100 mV vddpu: 725 <--> 1450 mV at 1100 mV vddsoc: 725 <--> 1450 mV at 1200 mV syscon 20e0000.iomuxc-gpr: regmap [mem 0x020e0000-0x020e0037] registered syscon 21bc000.ocotp: regmap [mem 0x021bc000-0x021bffff] registered hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers. hw-breakpoint: maximum watchpoint size is 4 bytes. imx6q-pinctrl 20e0000.iomuxc: initialized IMX pinctrl driver bio: create slab <bio-0> at 0 mxs-dma 110000.dma-apbh: initialized usb_otg_vbus: 5000 mV usb_h1_vbus: 5000 mV wm8962-supply: no parameters SCSI subsystem initialized libata version 3.00 loaded. usbcore: registered new interface driver usbfs usbcore: registered new interface driver hub usbcore: registered new device driver usb i2c i2c-0: IMX I2C adapter registered i2c i2c-2: IMX I2C adapter registered Linux video capture interface: v2.00 pps_core: LinuxPPS API ver. 1 registered pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@xxxxxxxx> PTP clock support registered Advanced Linux Sound Architecture Driver Initialized. cfg80211: Calling CRDA to update world regulatory domain Switched to clocksource mxc_timer1 NET: Registered protocol family 2 TCP established hash table entries: 8192 (order: 4, 65536 bytes) TCP bind hash table entries: 8192 (order: 4, 65536 bytes) TCP: Hash tables configured (established 8192 bind 8192) TCP: reno registered UDP hash table entries: 512 (order: 2, 16384 bytes) UDP-Lite hash table entries: 512 (order: 2, 16384 bytes) NET: Registered protocol family 1 RPC: Registered named UNIX socket transport module. RPC: Registered udp transport module. RPC: Registered tcp transport module. RPC: Registered tcp NFSv4.1 backchannel transport module. hw perfevents: enabled with ARMv7 Cortex-A9 PMU driver, 7 counters available VFS: Disk quotas dquot_6.5.2 Dquot-cache hash table entries: 1024 (order 0, 4096 bytes) NFS: Registering the id_resolver key type Key type id_resolver registered Key type id_legacy registered jffs2: version 2.2. (NAND) �© 2001-2006 Red Hat, Inc. fuse init (API version 7.22) msgmni has been set to 2012 io scheduler noop registered io scheduler deadline registered io scheduler cfq registered (default) imx-weim 21b8000.weim: Driver registered. imx-sdma 20ec000.sdma: initialized Serial: IMX driver 2020000.serial: ttymxc0 at MMIO 0x2020000 (irq = 58, base_baud = 5000000) is a IMX console [ttymxc0] enabled serial: Freescale lpuart driver [drm] Initialized drm 1.1.0 20060810 brd: module loaded loop: module loaded ahci: SSS flag set, parallel bus scan disabled ahci ahci: AHCI 0001.0300 32 slots 1 ports 3 Gbps 0x1 impl platform mode ahci ahci: flags: ncq sntf stag pm led clo only pmp pio slum part ccc apst scsi0 : ahci_platform ata1: SATA max UDMA/133 mmio [mem 0x02200000-0x02203fff] port 0x100 irq 71 m25p80 spi0.0: m25p32 (4096 Kbytes) spi_imx 2008000.ecspi: probed libphy: fec_enet_mii_bus: probed fec 2188000.ethernet eth0: registered PHC device 0 ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver ehci-mxc: Freescale On-Chip EHCI Host driver usbcore: registered new interface driver usb-storage imx_usb 2184000.usb: usbmisc init failed, ret=-517 platform 2184000.usb: Driver imx_usb requests probe deferral imx_usb 2184200.usb: usbmisc init failed, ret=-517 platform 2184200.usb: Driver imx_usb requests probe deferral mousedev: PS/2 mouse device common for all mice ata1: SATA link down (SStatus 0 SControl 300) egalax_ts 2-0004: Failed to read firmware version egalax_ts: probe of 2-0004 failed with error -110 snvs_rtc 20cc034.snvs-rtc-lp: rtc core: registered 20cc034.snvs-rtc-lp as rtc0 i2c /dev entries driver imx2-wdt 20bc000.wdog: IMX2+ Watchdog Timer enabled. timeout=60s (nowayout=0) sdhci: Secure Digital Host Controller Interface driver sdhci: Copyright(c) Pierre Ossman sdhci-pltfm: SDHCI platform and OF driver helper mmc0: no vqmmc regulator found mmc0: no vmmc regulator found mmc0: SDHCI controller on 2194000.usdhc [2194000.usdhc] using ADMA mmc1: no vqmmc regulator found mmc1: no vmmc regulator found mmc1: SDHCI controller on 2198000.usdhc [2198000.usdhc] using ADMA usbcore: registered new interface driver usbhid usbhid: USB HID core driver [drm] Supports vblank timestamp caching Rev 1 (10.10.2010). [drm] No driver support for vblank timestamp query. [drm] Initialized imx-drm 1.0.0 20120507 on minor 0 imx-ldb ldb.10: adding encoder failed with -16 imx-ldb: probe of ldb.10 failed with error -16 imx-ipuv3 2400000.ipu: IPUv3H probed imx-ipuv3 2800000.ipu: IPUv3H probed imx-ipuv3-crtc imx-ipuv3-crtc.0: adding crtc failed with -16. imx-ipuv3-crtc: probe of imx-ipuv3-crtc.0 failed with error -16 imx-ipuv3-crtc imx-ipuv3-crtc.1: adding crtc failed with -16. imx-ipuv3-crtc: probe of imx-ipuv3-crtc.1 failed with error -16 imx-ipuv3-crtc imx-ipuv3-crtc.2: adding crtc failed with -16. imx-ipuv3-crtc: probe of imx-ipuv3-crtc.2 failed with error -16 imx-ipuv3-crtc imx-ipuv3-crtc.3: adding crtc failed with -16. mmc1: new SDHC card at address e7ac mmcblk0: mmc1:e7ac SD04G 3.69 GiB imx-ipuv3-crtc: probe of imx-ipuv3-crtc.3 failed with error -16 mmcblk0: p1 p2 p3 wm8962 0-001a: customer id 0 revision D input: WM8962 Beep Generator as /devices/soc.0/2100000.aips-bus/21a0000.i2c/i2c-0/0-001a/input/input0 imx-wm8962 sound.16: wm8962 <-> 202c000.ssi mapping ok TCP: cubic registered NET: Registered protocol family 10 sit: IPv6 over IPv4 tunneling driver NET: Registered protocol family 17 Key type dns_resolver registered ci_hdrc ci_hdrc.1: doesn't support gadget ci_hdrc ci_hdrc.1: EHCI Host Controller ci_hdrc ci_hdrc.1: new USB bus registered, assigned bus number 1 ci_hdrc ci_hdrc.1: USB 2.0 started, EHCI 1.00 hub 1-0:1.0: USB hub found hub 1-0:1.0: 1 port detected input: gpio-keys.15 as /devices/gpio-keys.15/input/input1 snvs_rtc 20cc034.snvs-rtc-lp: setting system clock to 1970-01-01 00:05:45 UTC (345) imx-drm imx-drm: No connectors reported connected with modes [drm] Cannot find any crtc or sizes - going 1024x768 Console: switching to colour frame buffer device 128x48 imx-drm imx-drm: fb0: frame buffer device imx-drm imx-drm: registered panic notifier fec 2188000.ethernet eth0: Freescale FEC PHY driver [Generic PHY] (mii_bus:phy_addr=2188000.ethernet:01, irq=-1) IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready libphy: 2188000.ethernet:01 - Link is Up - 100/Full IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready Sending DHCP requests ., OK IP-Config: Got DHCP answer from 192.168.0.1, my address is 192.168.0.5 IP-Config: Complete: device=eth0, hwaddr=00:04:9f:02:19:ca, ipaddr=192.168.0.5, mask=255.255.255.0, gw=192.168.0.1 host=192.168.0.5, domain=, nis-domain=(none) bootserver=192.168.0.1, rootserver=192.168.0.2, rootpath= nameserver0=201.82.0.66, nameserver1=201.82.0.69, nameserver2=201.6.4.116 ALSA device list: #0: wm8962-audio VFS: Mounted root (nfs filesystem) readonly on device 0:12. devtmpfs: mounted Freeing unused kernel memory: 324K (80791000 - 807e2000) starting pid 71, tty '': '/etc/rc.d/rcS' Mounting /proc and /sys Starting the hotplug events dispatcher udevd udevd (81): /proc/81/oom_adj is deprecated, please use /proc/81/oom_score_adj instead. Synthesizing initial hotplug events imx-sdma 20ec000.sdma: firmware not found Setting the hostname to freescale Mounting filesystems ln: /etc/mtab: Permission denied mount: mounting usbfs on /proc/bus/usb failed: No such file or directory Running sysctl Setting up networking on loopback device: rm: can't remove '/etc/resolv.conf': Permission denied Setting up networking on eth0: You need to manually set your nameserver in /etc/resolv.conf chown: /home/user/.rhosts: Operation not permitted chown: /home/user: Operation not permitted chown: /home/user: Operation not permitted starting pid 696, tty '': '/etc/rc.d/rc_gpu.S' can't run '/etc/rc.d/rc_gpu.S': No such file or directory starting pid 697, tty '': '-/bin/sh' BusyBox v1.20.2 () built-in shell (ash) Enter 'help' for a list of built-in commands. -/bin/sh: can't access tty; job control turned off root@freescale /$ root@freescale /$ As you can see there is no g_ether being detected. Attached my config. Any ideas? Regards, Fabio Estevam
Attachment:
myconfig
Description: Binary data