mirage / xen-arm-builder

Archived - the Xen and ARM support in MirageOS has been superseeded by our PVH support - Build an SDcard image for Xen/ARM, for a Cubieboard
ISC License
57 stars 36 forks source link

USB not working on cubieboard2? #16

Closed MagnusS closed 9 years ago

MagnusS commented 9 years ago

I downloaded and booted the prebuilt binary image for cubieboard2 today. Everything seems to work (incl ethernet), but not USB:

root@cubieboard2:~# lsusb
unable to initialize libusb: -99
root@cubieboard2:~# dmesg
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 3.16.0-rc7-00003-g6c95cb1 (root@56179f23121f) (gcc version 4.8.2 (Ubuntu/Linaro 4.8.2-16ubuntu4) ) #1 SMP Mon Aug 4 08:37:33 UTC 2014
[    0.000000] CPU: ARMv7 Processor [410fc074] revision 4 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] Machine model: Cubietech Cubieboard2
[    0.000000] cma: CMA: reserved 64 MiB at 5c000000
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] On node 0 totalpages: 131072
[    0.000000] free_area_init_node: node 0, pgdat c0c33480, node_mem_map dbbd9000
[    0.000000]   DMA zone: 1024 pages used for memmap
[    0.000000]   DMA zone: 0 pages reserved
[    0.000000]   DMA zone: 131072 pages, LIFO batch:31
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: Using PSCI v0.1 Function IDs from DT
[    0.000000] PERCPU: Embedded 8 pages/cpu @dbbb7000 s8576 r8192 d16000 u32768
[    0.000000] pcpu-alloc: s8576 r8192 d16000 u32768 alloc=8*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 130048
[    0.000000] Kernel command line: console=hvc0 ro root=/dev/mmcblk0p2 rootwait clk_ignore_unused
[    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Memory: 443220K/524288K available (6481K kernel code, 820K rwdata, 2532K rodata, 580K init, 302K bss, 81068K reserved, 0K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xffe00000   (2048 kB)
[    0.000000]     vmalloc : 0xe0800000 - 0xff000000   ( 488 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0208000 - 0xc0ad587c   (9015 kB)
[    0.000000]       .init : 0xc0ad6000 - 0xc0b67180   ( 581 kB)
[    0.000000]       .data : 0xc0b68000 - 0xc0c35160   ( 821 kB)
[    0.000000]        .bss : 0xc0c35168 - 0xc0c80c00   ( 303 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000]  RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] Architected cp15 timer(s) running at 24.00MHz (virt).
[    0.000008] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 2863311519744ns
[    0.000016] Switching to timer-based delay loop
[    0.000909] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 178956969942ns
[    0.001156] sched_clock: 32 bits at 160MHz, resolution 6ns, wraps every 26843545593ns
[    0.001416] Console: colour dummy device 80x30
[    0.001444] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.001458] pid_max: default: 32768 minimum: 301
[    0.001590] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.001601] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.002216] CPU: Testing write buffer coherency: ok
[    0.002510] /cpus/cpu@0 missing clock-frequency property
[    0.002532] /cpus/cpu@1 missing clock-frequency property
[    0.002545] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.002679] Xen 4.4 support found, events_irq=31 gnttab_frame=0x01d00000
[    0.002785] xen:grant_table: Grant tables using version 1 layout
[    0.002818] Grant table initialized
[    0.002916] xen:events: Using FIFO-based ABI
[    0.002938] Xen: initializing cpu0
[    0.003083] Setting up static identity map for 0x40824310 - 0x408243a8
[    0.005089] CPU1: Booted secondary processor
[    0.005158] Xen: initializing cpu1
[    0.005232] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.005374] Brought up 2 CPUs
[    0.005398] SMP: Total of 2 processors activated.
[    0.005405] CPU: All CPU(s) started in SVC mode.
[    0.006338] devtmpfs: initialized
[    0.010155] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 4
[    0.010626] pinctrl core: initialized pinctrl subsystem
[    0.011087] regulator-dummy: no parameters
[    0.017665] NET: Registered protocol family 16
[    0.019435] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.022043] xen:swiotlb_xen: Warning: only able to allocate 8 MB for software IO TLB
[    0.025297] software IO TLB [mem 0x5a000000-0x5a800000] (8MB) mapped at [da000000-da7fffff]
[    0.030218] No ATAGs?
[    0.031791] Serial: AMBA PL011 UART driver
[    0.073493] edma-dma-engine edma-dma-engine.0: Can't allocate PaRAM dummy slot
[    0.073526] edma-dma-engine: probe of edma-dma-engine.0 failed with error -5
[    0.073760] xen:balloon: Initialising balloon driver
[    0.074185] xen_balloon: Initialising balloon driver
[    0.074521] reg-fixed-voltage ahci-5v: could not find pctldev for node /soc@01c00000/pinctrl@01c20800/ahci_pwr_pin@0, deferring probe
[    0.074542] platform ahci-5v: Driver reg-fixed-voltage requests probe deferral
[    0.074566] reg-fixed-voltage usb1-vbus: could not find pctldev for node /soc@01c00000/pinctrl@01c20800/usb1_vbus_pin@0, deferring probe
[    0.074579] platform usb1-vbus: Driver reg-fixed-voltage requests probe deferral
[    0.074600] reg-fixed-voltage usb2-vbus: could not find pctldev for node /soc@01c00000/pinctrl@01c20800/usb2_vbus_pin@0, deferring probe
[    0.074613] platform usb2-vbus: Driver reg-fixed-voltage requests probe deferral
[    0.074793] vcc3v0: 3000 mV 
[    0.075017] vcc3v3: 3300 mV 
[    0.076654] vgaarb: loaded
[    0.077256] SCSI subsystem initialized
[    0.077616] libata version 3.00 loaded.
[    0.077980] usbcore: registered new interface driver usbfs
[    0.078046] usbcore: registered new interface driver hub
[    0.078271] usbcore: registered new device driver usb
[    0.078948] Linux video capture interface: v2.00
[    0.079002] pps_core: LinuxPPS API ver. 1 registered
[    0.079011] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.079042] PTP clock support registered
[    0.079132] EDAC MC: Ver: 3.0.0
[    0.080044] Advanced Linux Sound Architecture Driver Initialized.
[    0.081369] Switched to clocksource arch_sys_counter
[    0.091489] NET: Registered protocol family 2
[    0.092129] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    0.092184] TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
[    0.092250] TCP: Hash tables configured (established 4096 bind 4096)
[    0.092304] TCP: reno registered
[    0.092318] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.092349] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.092552] NET: Registered protocol family 1
[    0.093047] RPC: Registered named UNIX socket transport module.
[    0.093063] RPC: Registered udp transport module.
[    0.093070] RPC: Registered tcp transport module.
[    0.093076] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.093103] PCI: CLS 0 bytes, default 64
[    0.094860] futex hash table entries: 512 (order: 3, 32768 bytes)
[    0.106790] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.107728] NFS: Registering the id_resolver key type
[    0.107801] Key type id_resolver registered
[    0.107809] Key type id_legacy registered
[    0.107872] msgmni has been set to 993
[    0.108842] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    0.108864] io scheduler noop registered
[    0.108875] io scheduler deadline registered
[    0.109089] io scheduler cfq registered (default)
[    0.112781] sun7i-a20-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.115003] xen:xen_evtchn: Event-channel device installed
[    0.176781] console [hvc0] enabled
[    0.176878] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    0.178592] Serial: IMX driver
[    0.178868] msm_serial: driver initialized
[    0.179196] STMicroelectronics ASC driver initialized
[    0.179746] serial: Freescale lpuart driver
[    0.179938] [drm] Initialized drm 1.1.0 20060810
[    0.184831] loop: module loaded
[    0.185989] platform 1c18000.sata: Driver ahci-sunxi requests probe deferral
[    0.189308] stmmaceth 1c50000.ethernet: no regulator found
[    0.189406] stmmaceth 1c50000.ethernet: no reset control found
[    0.189437]  Ring mode enabled
[    0.189454]  No HW DMA feature register supported
[    0.189474]  Normal descriptors
[    0.189493]  TX Checksum insertion supported
[    0.193813] libphy: stmmac: probed
[    0.193863] eth0: PHY ID 00008201 at 1 IRQ POLL (stmmac-0:01) active
[    0.194327] xen_netfront: Initialising Xen virtual ethernet driver
[    0.194416] pegasus: v0.9.3 (2013/04/25), Pegasus/Pegasus II USB Ethernet driver
[    0.194536] usbcore: registered new interface driver pegasus
[    0.194642] usbcore: registered new interface driver asix
[    0.194721] usbcore: registered new interface driver ax88179_178a
[    0.194798] usbcore: registered new interface driver cdc_ether
[    0.194893] usbcore: registered new interface driver smsc75xx
[    0.194989] usbcore: registered new interface driver smsc95xx
[    0.195065] usbcore: registered new interface driver net1080
[    0.195151] usbcore: registered new interface driver cdc_subset
[    0.195236] usbcore: registered new interface driver zaurus
[    0.195383] usbcore: registered new interface driver cdc_ncm
[    0.195446] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.195479] ehci-pci: EHCI PCI platform driver
[    0.195565] ehci-platform: EHCI generic platform driver
[    0.195764] platform 1c14000.usb: Driver ehci-platform requests probe deferral
[    0.195870] platform 1c1c000.usb: Driver ehci-platform requests probe deferral
[    0.195992] ehci-omap: OMAP-EHCI Host Controller driver
[    0.196120] ehci-orion: EHCI orion driver
[    0.196233] SPEAr-ehci: EHCI SPEAr driver
[    0.196340] tegra-ehci: Tegra EHCI driver
[    0.196928] usbcore: registered new interface driver usb-storage
[    0.198435] mousedev: PS/2 mouse device common for all mice
[    0.200376] i2c /dev entries driver
[    0.202793] usbcore: registered new interface driver uvcvideo
[    0.202845] USB Video Class driver (1.1.1)
[    0.202873] gspca_main: v2.14.0 registered
[    0.206995] device-mapper: uevent: version 1.0.3
[    0.207572] device-mapper: ioctl: 4.27.0-ioctl (2013-10-30) initialised: dm-devel@redhat.com
[    0.208863] sdhci: Secure Digital Host Controller Interface driver
[    0.208910] sdhci: Copyright(c) Pierre Ossman
[    0.209824] sunxi-mmc 1c0f000.mmc: No vqmmc regulator found
[    0.210797] sunxi-mmc 1c0f000.mmc: Got CD GPIO #225.
[    0.241440] sunxi-mmc 1c0f000.mmc: base:0xe0876000 irq:64
[    0.241635] sdhci-pltfm: SDHCI platform and OF driver helper
[    0.242454] usbcore: registered new interface driver usbhid
[    0.242490] usbhid: USB HID core driver
[    0.246440] TCP: cubic registered
[    0.246500] NET: Registered protocol family 17
[    0.246768] Key type dns_resolver registered
[    0.246958] ThumbEE CPU extension supported.
[    0.247005] Registering SWP/SWPB emulation handler
[    0.248849] ahci-5v: 5000 mV 
[    0.249410] usb1-vbus: 5000 mV 
[    0.249851] usb2-vbus: 5000 mV 
[    0.278742] mmc0: host does not support reading read-only switch. assuming write-enable.
[    0.281258] mmc0: new high speed SDHC card at address 59b4
[    0.281917] mmcblk0: mmc0:59b4 USD   29.1 GiB 
[    0.283185]  mmcblk0: p1 p2
[    0.311460] ahci-sunxi 1c18000.sata: controller can't do PMP, turning off CAP_PMP
[    0.311514] ahci-sunxi 1c18000.sata: forcing PORTS_IMPL to 0x1
[    0.311594] ahci-sunxi 1c18000.sata: AHCI 0001.0100 32 slots 1 ports 3 Gbps 0x1 impl platform mode
[    0.311638] ahci-sunxi 1c18000.sata: flags: ncq sntf pm led clo only pio slum part ccc 
[    0.312909] scsi0 : ahci_platform
[    0.313337] ata1: SATA max UDMA/133 mmio [mem 0x01c18000-0x01c18fff] port 0x100 irq 88
[    0.314087] platform 1c14000.usb: Driver ehci-platform requests probe deferral
[    0.314844] platform 1c1c000.usb: Driver ehci-platform requests probe deferral
[    0.315512] drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
[    0.318984] usb2-vbus: disabling
[    0.319042] usb1-vbus: disabling
[    0.319065] vcc3v0: disabling
[    0.319101] clk: Not disabling unused clocks
[    0.319131] ALSA device list:
[    0.319148]   No soundcards found.
[    0.661424] ata1: SATA link down (SStatus 0 SControl 300)
[    0.662934] EXT4-fs (mmcblk0p2): couldn't mount as ext3 due to feature incompatibilities
[    0.663856] EXT4-fs (mmcblk0p2): couldn't mount as ext2 due to feature incompatibilities
[    0.674278] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    0.674380] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
[    0.681669] devtmpfs: mounted
[    0.682357] Freeing unused kernel memory: 580K (c0ad6000 - c0b67000)
[    0.964848] random: init urandom read with 11 bits of entropy available
[    1.105412] init: plymouth-upstart-bridge main process (56) terminated with status 1
[    1.105573] init: plymouth-upstart-bridge main process ended, respawning
[    1.154211] init: plymouth-upstart-bridge main process (67) terminated with status 1
[    1.154383] init: plymouth-upstart-bridge main process ended, respawning
[    1.190524] init: plymouth-upstart-bridge main process (70) terminated with status 1
[    1.190673] init: plymouth-upstart-bridge main process ended, respawning
[    1.194071] init: ureadahead main process (59) terminated with status 5
[    2.086875] systemd-udevd[163]: starting version 204
[    2.876873] EXT4-fs (mmcblk0p2): re-mounted. Opts: data=ordered
[    3.334348] platform 1c14000.usb: Driver ehci-platform requests probe deferral
[    3.335216] platform 1c1c000.usb: Driver ehci-platform requests probe deferral
[    3.422614]  No MAC Management Counters available
[    3.937861] random: nonblocking pool is initialized
[    4.457130] NET: Registered protocol family 10
[    4.973564] init: gator-daemon main process (392) terminated with status 1
[    4.976796] init: udev-fallback-graphics main process (394) terminated with status 1
[    5.326894] device eth0 entered promiscuous mode
[    5.346687] br0: port 1(eth0) entered forwarding state
[    5.346741] br0: port 1(eth0) entered forwarding state
[    5.411923] stmmaceth 1c50000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
[    6.350283] init: avahi-cups-reload main process (514) terminated with status 1
[   17.664869] init: failsafe main process (373) killed by TERM signal
[   20.391413] br0: port 1(eth0) entered forwarding state
[   49.426741] EXT4-fs (mmcblk0p2): resizing filesystem from 229120 to 786431 blocks
[   49.562642] EXT4-fs (mmcblk0p2): resized filesystem to 786431
[   53.308712] init: auto-serial-console main process ended, respawning
[   53.328295] init: plymouth-upstart-bridge main process ended, respawning
[   53.551780] init: auto-serial-console main process ended, respawning
[   53.674839] init: auto-serial-console main process ended, respawning
[   53.729088] init: auto-serial-console main process ended, respawning
[   53.782333] init: auto-serial-console main process ended, respawning
[   53.834769] init: auto-serial-console main process ended, respawning
[   53.871736] init: auto-serial-console main process ended, respawning
[   53.914328] init: auto-serial-console main process ended, respawning
[   53.965574] init: auto-serial-console main process ended, respawning
[   54.016198] init: auto-serial-console main process ended, respawning
[   54.067287] init: auto-serial-console respawning too fast, stopped
talex5 commented 9 years ago

http://www.cubieez.com/ says it supports USB on the CubieTruck, so you could try comparing their kernel config with ours and see what else needs to be enabled.