Board crash and USB issues

Hardware related problems and workarounds

Board crash and USB issues

Postby e97 » Fri Jul 28, 2017 12:19 am

Hi.

I'm using a Parallella A101040.

Prior I was using a custom compiled kernel and other than my USB drives not being detected it was working.

I upgraded to Parabuntu-2016.11.1-headless hoping it would fix the USB issue - however it seems to have made things worse.

When running apt-get update, it gets to 100% then kicks me off ssh and locks up the board requiring a hard reset.

Code: Select all
100% [Sources 31.0 MB]                                                                                       120 kB/s 0s
Connection to 192.168.1.# closed by remote host.
Connection to 192.168.1.# closed.


When trying to use USB devices - on first boot trying lsusb gave me
Code: Select all
unable to initialize libusb: -99


I shut down the entire system and waited ~15s and booted and then lsusb executed successfully.

Previously I was at least detecting the hard drives (I also had the right modules for the web cam.)

Code: Select all
$ lsusb
Bus 001 Device 005: ID 8564:4000
Bus 001 Device 004: ID 1415:2000 Nam Tai E&E Products Ltd. or OmniVision Technologies, Inc. Sony Playstation Eye
Bus 001 Device 003: ID 0bc2:50a2 Seagate RSS LLC
Bus 001 Device 002: ID 1a40:0101 Terminus Technology Inc. 4-Port HUB
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub


Now I dont even see the hub..

Code: Select all
$ lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub



Any idea whats going on?

Here's dmesg output


Code: Select all
$ dmesg

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.6.0+ (esim@adapteva-dev) (gcc version 4.9.3 20141031 (prerelease) (Linaro GCC 2014.11) ) #1 SMP PREEMPT Wed Dec 7 13:27:40 CET 2016
[    0.000000] CPU: ARMv7 Processor [413fc090] revision 0 (ARMv7), cr=18c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] Machine model: Adapteva Parallella Board with headless bitstream
[    0.000000] cma: Reserved 128 MiB at 0x36000000
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] On node 0 totalpages: 253952
[    0.000000] free_area_init_node: node 0, pgdat c0829000, node_mem_map ef838000
[    0.000000]   Normal zone: 1536 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 196608 pages, LIFO batch:31
[    0.000000]   HighMem zone: 57344 pages, LIFO batch:15
[    0.000000] percpu: Embedded 12 pages/cpu @ef810000 s19392 r8192 d21568 u49152
[    0.000000] pcpu-alloc: s19392 r8192 d21568 u49152 alloc=12*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 252416
[    0.000000] Kernel command line: console=ttyPS0,115200 earlyprintk root=/dev/mmcblk0p2 rootfstype=ext4 rw rootwait
[    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: 867280K/1015808K available (5652K kernel code, 279K rwdata, 2132K rodata, 260K init, 159K bss, 17456K reserved, 131072K cma-reserved, 98304K highmem)
[    0.000000] Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
    vmalloc : 0xf0800000 - 0xff800000   ( 240 MB)
    lowmem  : 0xc0000000 - 0xf0000000   ( 768 MB)
    pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
    modules : 0xbf000000 - 0xbfe00000   (  14 MB)
      .text : 0xc0008000 - 0xc07a25f0   (7786 kB)
      .init : 0xc07a3000 - 0xc07e4000   ( 260 kB)
      .data : 0xc07e4000 - 0xc0829fa0   ( 280 kB)
       .bss : 0xc0829fa0 - 0xc0851c44   ( 160 kB)
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000]    Build-time adjustment of leaf fanout to 32.
[    0.000000]    RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=32, nr_cpu_ids=2
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] slcr mapped to f0800000
[    0.000000] L2C: platform modifies aux control register: 0x72360000 -> 0x72760000
[    0.000000] L2C: DT/platform modifies aux control register: 0x72360000 -> 0x72760000
[    0.000000] L2C-310 erratum 769419 enabled
[    0.000000] L2C-310 enabling early BRESP for Cortex-A9
[    0.000000] L2C-310 full line of zeros enabled for Cortex-A9
[    0.000000] L2C-310 ID prefetch enabled, offset 1 lines
[    0.000000] L2C-310 dynamic clock gating enabled, standby mode enabled
[    0.000000] L2C-310 cache controller enabled, 8 ways, 512 kB
[    0.000000] L2C-310: CACHE_ID 0x410000c8, AUX_CTRL 0x76760001
[    0.000000] zynq_clock_init: clkc starts at f0800100
[    0.000000] Zynq clock init
[    0.000000] clocksource: ttc_clocksource: mask: 0xffff max_cycles: 0xffff, max_idle_ns: 537538477 ns
[    0.000018] sched_clock: 16 bits at 54kHz, resolution 18432ns, wraps every 603975816ns
[    0.000055] timer #0 at f0808000, irq=16
[    0.000387] Console: colour dummy device 80x30
[    0.000405] Calibrating delay loop... 1332.01 BogoMIPS (lpj=6660096)
[    0.090188] pid_max: default: 32768 minimum: 301
[    0.090336] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.090354] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.090999] CPU: Testing write buffer coherency: ok
[    0.091239] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.091294] Setting up static identity map for 0x8280 - 0x82d8
[    0.280187] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.280297] Brought up 2 CPUs
[    0.280316] SMP: Total of 2 processors activated (2664.03 BogoMIPS).
[    0.280316] CPU: All CPU(s) started in SVC mode.
[    0.281385] devtmpfs: initialized
[    0.285366] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    0.285753] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.293698] pinctrl core: initialized pinctrl subsystem
[    0.295172] NET: Registered protocol family 16
[    0.297163] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.320664] cpuidle: using governor ladder
[    0.322102] zynq-gpio e000a000.gpio: could not find pctldev for node /amba/slcr@f8000000/pinctrl@700/gpio0-default, deferring probe
[    0.327557] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[    0.327557] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.327723] zynq-ocm f800c000.ocmc: ZYNQ OCM pool: 256 KiB @ 0xf0880000
[    0.328129] zynq-pinctrl 700.pinctrl: zynq pinctrl initialized
[    0.352017] SCSI subsystem initialized
[    0.352422] usbcore: registered new interface driver usbfs
[    0.352515] usbcore: registered new interface driver hub
[    0.352588] usbcore: registered new device driver usb
[    0.353068] media: Linux media interface: v0.10
[    0.353141] Linux video capture interface: v2.00
[    0.353233] pps_core: LinuxPPS API ver. 1 registered
[    0.353252] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.353289] PTP clock support registered
[    0.353399] EDAC MC: Ver: 3.0.0
[    0.360680] Advanced Linux Sound Architecture Driver Initialized.
[    0.361473] Bluetooth: Core ver 2.21
[    0.361546] NET: Registered protocol family 31
[    0.361546] Bluetooth: HCI device and connection manager initialized
[    0.361565] Bluetooth: HCI socket layer initialized
[    0.361583] Bluetooth: L2CAP socket layer initialized
[    0.361620] Bluetooth: SCO socket layer initialized
[    0.371610] clocksource: Switched to clocksource ttc_clocksource
[    0.384034] NET: Registered protocol family 2
[    0.384881] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.384992] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    0.385139] TCP: Hash tables configured (established 8192 bind 8192)
[    0.385232] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.385269] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.385545] NET: Registered protocol family 1
[    0.386190] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[    0.387591] futex hash table entries: 512 (order: 3, 32768 bytes)
[    0.388513] workingset: timestamp_bits=28 max_order=18 bucket_order=0
[    0.389324] fuse init (API version 7.24)
[    0.391019] bounce: pool size: 64 pages
[    0.391038] io scheduler noop registered
[    0.391056] io scheduler deadline registered
[    0.391093] io scheduler cfq registered (default)
[    0.391296] Error: Driver 'mwipcore' is already registered, aborting...
[    0.392752] dma-pl330 f8003000.dmac: Loaded driver for PL330 DMAC-241330
[    0.392770] dma-pl330 f8003000.dmac:    DBUFF-128x8bytes Num_Chans-8 Num_Peri-4 Num_Events-16
[    0.393674] e0001000.serial: ttyPS0 at MMIO 0xe0001000 (irq = 25, base_baud = 3125000) is a xuartps
[    0.886734] console [ttyPS0] enabled
[    0.889609] xdevcfg f8007000.devcfg: ioremap 0xf8007000 to f085e000
[    0.895065] [drm] Initialized drm 1.1.0 20060810
[    0.909866] brd: module loaded
[    0.918327] loop: module loaded
[    0.931026] zram: Added device: zram0
[    0.935339] zynq-qspi e000d000.spi: couldn't determine configuration info about dual memories. defaulting to single memory
[    0.946270] m25p80 spi32766.0: SPI-NOR-UniqueID ####################
[    0.953827] m25p80 spi32766.0: n25q128a13 (16384 Kbytes)
[    0.957790] 3 ofpart partitions found on MTD device spi32766.0
[    0.962287] Creating 3 MTD partitions on "spi32766.0":
[    0.966103] 0x000000000000-0x0000004e0000 : "boot"
[    0.970840] 0x0000004e0000-0x000000500000 : "bootenv"
[    0.975687] 0x000000ff0000-0x000001000000 : "version"
[    0.981899] gpiod_set_value: invalid GPIO
[    0.985678] libphy: MACB_mii_bus: probed
[    1.070834] macb e000b000.ethernet eth0: Cadence GEM rev 0x00020118 at 0xe000b000 irq 27 (ZZ:XX:ZZ:XX:XX:XX)
[    1.079276] Marvell 88E1318S e000b000.etherne:00: attached PHY driver [Marvell 88E1318S] (mii_bus:phy_addr=e000b000.etherne:00, irq=-1)
[    1.090630] usbcore: registered new interface driver asix
[    1.094741] usbcore: registered new interface driver ax88179_178a
[    1.099496] usbcore: registered new interface driver cdc_ether
[    1.104031] usbcore: registered new interface driver net1080
[    1.108381] usbcore: registered new interface driver cdc_subset
[    1.112989] usbcore: registered new interface driver zaurus
[    1.117283] usbcore: registered new interface driver cdc_ncm
[    1.122610] aoe: AoE v85 initialised.
[    1.124933] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.130204] usbcore: registered new interface driver usb-storage
[    1.135052] usbcore: registered new interface driver usbserial
[    1.139549] usbcore: registered new interface driver usbserial_generic
[    1.144784] usbserial: USB Serial support registered for generic
[    1.149466] usbcore: registered new interface driver ftdi_sio
[    1.153908] usbserial: USB Serial support registered for FTDI USB Serial Device
[    1.160359] e0002000.usb supply vbus not found, using dummy regulator
[    1.168304] ci_hdrc ci_hdrc.0: unable to init phy: -110
[    1.172230] ci_hdrc: probe of ci_hdrc.0 failed with error -110
[    1.177022] e0003000.usb supply vbus not found, using dummy regulator
[    1.184911] ci_hdrc ci_hdrc.1: unable to init phy: -110
[    1.188763] ci_hdrc: probe of ci_hdrc.1 failed with error -110
[    1.194514] mousedev: PS/2 mouse device common for all mice
[    1.209168] i2c /dev entries driver
[    1.215379] cdns-i2c e0004000.i2c: 100 kHz mmio e0004000 irq 22
[    1.222310] Xilinx Zynq CpuIdle Driver started
[    1.225738] sdhci: Secure Digital Host Controller Interface driver
[    1.230567] sdhci: Copyright(c) Pierre Ossman
[    1.233572] sdhci-pltfm: SDHCI platform and OF driver helper
[    1.238419] mmc0: Invalid maximum block size, assuming 512 bytes
[    1.280611] mmc0: SDHCI controller on e0101000.sdhci [e0101000.sdhci] using ADMA
[    1.294195] ledtrig-cpu: registered to indicate activity on CPUs
[    1.299006] hidraw: raw HID events driver (C) Jiri Kosina
[    1.319005] usbcore: registered new interface driver usbhid
[    1.323244] usbhid: USB HID core driver
[    1.334986] usbcore: registered new interface driver snd-usb-audio
[    1.340054] mmc0: new high speed SDHC card at address 0007
[    1.344460] NET: Registered protocol family 10
[    1.348589] sit: IPv6 over IPv4 tunneling driver
[    1.353344] NET: Registered protocol family 17
[    1.355224] mmcblk0: mmc0:0007 SD16G 14.5 GiB
[    1.356754]  mmcblk0: p1 p2
[    1.361344] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
[    1.372698] Bluetooth: RFCOMM TTY layer initialized
[    1.376200] Bluetooth: RFCOMM socket layer initialized
[    1.380015] Bluetooth: RFCOMM ver 1.11
[    1.382559] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[    1.386467] Bluetooth: BNEP filters: protocol multicast
[    1.390393] Bluetooth: BNEP socket layer initialized
[    1.394061] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
[    1.398632] Bluetooth: HIDP socket layer initialized
[    1.402613] Registering SWP/SWPB emulation handler
[    1.409433] hctosys: unable to open rtc device (rtc0)
[    1.417525] VDD_DSP: disabling
[    1.419681] ALSA device list:
[    1.421285]   No soundcards found.
[    2.119901] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    2.126665] VFS: Mounted root (ext4 filesystem) on device 179:2.
[    2.133633] random: nonblocking pool is initialized
[    2.143273] devtmpfs: mounted
[    2.145190] Freeing unused kernel memory: 260K (c07a3000 - c07e4000)
[    2.150148] This architecture does not have kernel memory protection.
[    4.097358] systemd-journald[1497]: Received request to flush runtime journal from PID 1
[    4.329235] epiphany elink0: elink: version field empty. Using default platform.
[    4.329253] epiphany elink0: Epiphany FPGA elink at address 0x81000000
[    4.329272] epiphany elink0: platform 01 revision 00
[    5.161502] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[    9.070834] macb e000b000.ethernet eth0: link up (1000/Full)
[    9.070871] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
e97
 
Posts: 10
Joined: Sun Jul 19, 2015 1:56 am

Re: Board crash and USB issues

Postby e97 » Fri Jul 28, 2017 1:16 am

I think the board crash is a thermal related issue -- after leaving the board off for a period of time, ~15min. It booted and successfully completely apt-get update.

After leaving it alone for some time, the same thing happened and I checked the temp and it seemed pretty warm. I have the heatsink on but no fan running over it. It seems the new image uses more power for perhaps more performance and more thermal output?

At least that solves one problem.



I'm still unsure why no USB devices are detected -- has to be related to software/drivers in the Parabuntu image.. any ideas?
e97
 
Posts: 10
Joined: Sun Jul 19, 2015 1:56 am

Re: Board crash and USB issues

Postby CocoaGeek » Fri Jul 28, 2017 4:35 pm

I recently had the same thermal "issue" experience during a hackathon. After having the board powered (with all cores running infrequently) for over 7 hours the board just quit and I had to let it cool off 15 minutes.
CocoaGeek
 
Posts: 29
Joined: Thu Apr 13, 2017 3:56 am

Re: Board crash and USB issues

Postby jar » Fri Jul 28, 2017 6:28 pm

As has been documented a number of times, you should have a fan blowing across the heatsink. A small fan will work. You can also void your warranty and disable the thermal daemon, if you want.
User avatar
jar
 
Posts: 294
Joined: Mon Dec 17, 2012 3:27 am


Return to Troubleshooting

Who is online

Users browsing this forum: No registered users and 5 guests

cron