Hi Giedrius. You may have to bear with me here as I’m extremely unfamiliar with Linux! I think I’ve done what you suggested; I SSH’d into the pi, executed dmesg -w (which I’m guessing is supposed to provide a running log of errors?) and deliberately caused the crash again. I’ll paste the output below, but I’m not sure it’s helpful… Once the crash hits, the PuTTY client on my laptop becomes completely unresponsive.
Let me know if you want me to do anything else. Keen to help - I’m planning on adding another MIDI controller to my setup, and not knowing which MIDI devices will cause a crash makes that a bit of a gamble!
modep@modep:~ $ dmesg -w
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.14.59-rt37-v7+ (giedrius@giedrius-vb) (gcc version 4.8.3 20140303 (prerelease) (crosstool-NG linaro-1.13.1+bzr2650 - Linaro GCC 2014.03)) #1 SMP PREEMPT RT Fri Aug 17 14:53:46 EEST 2018
[ 0.000000] CPU: ARMv7 Processor [410fd034] revision 4 (ARMv7), cr=10c5383d
[ 0.000000] CPU: div instructions available: patching division code
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] OF: fdt: Machine model: Raspberry Pi 3 Model B Rev 1.2
[ 0.000000] Memory policy: Data cache writealloc
[ 0.000000] cma: Reserved 8 MiB at 0x3ac00000
[ 0.000000] On node 0 totalpages: 242688
[ 0.000000] free_area_init_node: node 0, pgdat 80c89940, node_mem_map ba39f000
[ 0.000000] Normal zone: 2133 pages used for memmap
[ 0.000000] Normal zone: 0 pages reserved
[ 0.000000] Normal zone: 242688 pages, LIFO batch:31
[ 0.000000] percpu: Embedded 17 pages/cpu @ba347000 s40960 r8192 d20480 u69632
[ 0.000000] pcpu-alloc: s40960 r8192 d20480 u69632 alloc=17*4096
[ 0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 240555
[ 0.000000] Kernel command line: 8250.nr_uarts=0 bcm2708_fb.fbwidth=656 bcm2708_fb.fbheight=416 bcm2708_fb.fbswap=1 vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000 dwc_otg.lpm_enable=0 console=ttyS0,115200 console=tty1 root=PARTUUID=b0580fa2-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait
[ 0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.000000] Dentry cache hash table entries: 131072 (order: 8, 1048576 bytes)
[ 0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[ 0.000000] Memory: 939680K/970752K available (7168K kernel code, 577K rwdata, 2092K rodata, 1024K init, 733K bss, 22880K reserved, 8192K cma-reserved)
[ 0.000000] Virtual kernel memory layout:
vector : 0xffff0000 - 0xffff1000 ( 4 kB)
fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
vmalloc : 0xbb800000 - 0xff800000 (1088 MB)
lowmem : 0x80000000 - 0xbb400000 ( 948 MB)
modules : 0x7f000000 - 0x80000000 ( 16 MB)
.text : 0x80008000 - 0x80800000 (8160 kB)
.init : 0x80b00000 - 0x80c00000 (1024 kB)
.data : 0x80c00000 - 0x80c90580 ( 578 kB)
.bss : 0x80c97ff4 - 0x80d4f76c ( 734 kB)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[ 0.000000] ftrace: allocating 25259 entries in 75 pages
[ 0.000000] Preemptible hierarchical RCU implementation.
[ 0.000000] No expedited grace period (rcu_normal_after_boot).
[ 0.000000] Tasks RCU enabled.
[ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[ 0.000000] arch_timer: cp15 timer(s) running at 19.20MHz (phys).
[ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x46d987e47, max_idle_ns: 440795202767 ns
[ 0.000007] sched_clock: 56 bits at 19MHz, resolution 52ns, wraps every 4398046511078ns
[ 0.000017] Switching to timer-based delay loop, resolution 52ns
[ 0.000272] Console: colour dummy device 80x30
[ 0.001278] console [tty1] enabled
[ 0.001298] Calibrating delay loop (skipped), value calculated using timer frequency… 38.40 BogoMIPS (lpj=192000)
[ 0.001310] pid_max: default: 32768 minimum: 301
[ 0.001623] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.001636] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.002529] Disabling memory control group subsystem
[ 0.002618] CPU: Testing write buffer coherency: ok
[ 0.003101] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[ 0.040107] Setting up static identity map for 0x100000 - 0x10003c
[ 0.080103] Hierarchical SRCU implementation.
[ 0.160262] smp: Bringing up secondary CPUs …
[ 0.260910] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[ 0.361051] CPU2: thread -1, cpu 2, socket 0, mpidr 80000002
[ 0.461239] CPU3: thread -1, cpu 3, socket 0, mpidr 80000003
[ 0.461412] smp: Brought up 1 node, 4 CPUs
[ 0.461526] SMP: Total of 4 processors activated (153.60 BogoMIPS).
[ 0.461559] CPU: All CPU(s) started in HYP mode.
[ 0.461587] CPU: Virtualization extensions available.
[ 0.462908] devtmpfs: initialized
[ 0.488297] random: get_random_u32 called from bucket_table_alloc+0x11c/0x29c with crng_init=0
[ 0.489036] VFP support v0.3: implementor 41 architecture 3 part 40 variant 3 rev 4
[ 0.489455] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.489519] futex hash table entries: 1024 (order: 4, 65536 bytes)
[ 0.490260] pinctrl core: initialized pinctrl subsystem
[ 0.491904] NET: Registered protocol family 16
[ 0.496601] DMA: preallocated 1024 KiB pool for atomic coherent allocations
[ 0.505609] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[ 0.505656] hw-breakpoint: maximum watchpoint size is 8 bytes.
[ 0.505909] Serial: AMBA PL011 UART driver
[ 0.508896] bcm2835-mbox 3f00b880.mailbox: mailbox enabled
[ 0.509643] uart-pl011 3f201000.serial: could not find pctldev for node /soc/gpio@7e200000/uart0_pins, deferring probe
[ 0.569024] bcm2835-dma 3f007000.dma: DMA legacy API manager at bb813000, dmachans=0x1
[ 0.571672] SCSI subsystem initialized
[ 0.572080] usbcore: registered new interface driver usbfs
[ 0.572214] usbcore: registered new interface driver hub
[ 0.572401] usbcore: registered new device driver usb
[ 0.581475] raspberrypi-firmware soc:firmware: Attached to firmware from 2018-09-10 17:26
[ 0.583641] clocksource: Switched to clocksource arch_sys_counter
[ 0.729443] VFS: Disk quotas dquot_6.6.0
[ 0.729599] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[ 0.730036] FS-Cache: Loaded
[ 0.730356] CacheFiles: Loaded
[ 0.746736] NET: Registered protocol family 2
[ 0.748054] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.748234] TCP bind hash table entries: 8192 (order: 5, 229376 bytes)
[ 0.748874] TCP: Hash tables configured (established 8192 bind 8192)
[ 0.749137] UDP hash table entries: 512 (order: 3, 32768 bytes)
[ 0.749271] UDP-Lite hash table entries: 512 (order: 3, 32768 bytes)
[ 0.749869] NET: Registered protocol family 1
[ 0.750706] RPC: Registered named UNIX socket transport module.
[ 0.750743] RPC: Registered udp transport module.
[ 0.750773] RPC: Registered tcp transport module.
[ 0.750802] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.752827] hw perfevents: enabled with armv7_cortex_a7 PMU driver, 7 counters available
[ 0.759886] workingset: timestamp_bits=14 max_order=18 bucket_order=4
[ 0.775610] FS-Cache: Netfs ‘nfs’ registered for caching
[ 0.776979] NFS: Registering the id_resolver key type
[ 0.777065] Key type id_resolver registered
[ 0.777096] Key type id_legacy registered
[ 0.777147] nfs4filelayout_init: NFSv4 File Layout Driver Registering…
[ 0.780653] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[ 0.780894] io scheduler noop registered
[ 0.780928] io scheduler deadline registered (default)
[ 0.781467] io scheduler cfq registered
[ 0.781500] io scheduler mq-deadline registered
[ 0.781532] io scheduler kyber registered
[ 0.786984] BCM2708FB: allocated DMA memory fad10000
[ 0.787197] BCM2708FB: allocated DMA channel 0 @ bb813000
[ 0.796226] Console: switching to colour frame buffer device 82x26
[ 0.806402] bcm2835-rng 3f104000.rng: hwrng registered
[ 0.808963] vc-mem: phys_addr:0x00000000 mem_base=0x3ec00000 mem_size:0x40000000(1024 MiB)
[ 0.814632] vc-sm: Videocore shared memory driver
[ 0.817496] gpiomem-bcm2835 3f200000.gpiomem: Initialised: Registers at 0x3f200000
[ 0.841667] brd: module loaded
[ 0.864406] loop: module loaded
[ 0.866715] Loading iSCSI transport class v2.0-870.
[ 0.870041] libphy: Fixed MDIO Bus: probed
[ 0.872505] usbcore: registered new interface driver lan78xx
[ 0.875030] usbcore: registered new interface driver smsc95xx
[ 0.877219] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
[ 0.907432] dwc_otg 3f980000.usb: base=0xf0980000
[ 1.109907] Core Release: 2.80a
[ 1.112102] Setting default values for core params
[ 1.114460] Finished setting default values for core params
[ 1.317295] Using Buffer DMA mode
[ 1.319592] Periodic Transfer Interrupt Enhancement - disabled
[ 1.322008] Multiprocessor Interrupt Enhancement - disabled
[ 1.324461] OTG VER PARAM: 0, OTG VER FLAG: 0
[ 1.326817] Dedicated Tx FIFOs mode
[ 1.329695] WARN::dwc_otg_hcd_init:1046: FIQ DMA bounce buffers: virt = 0xbad04000 dma = 0xfad04000 len=9024
[ 1.334381] FIQ FSM acceleration enabled for :
Non-periodic Split Transactions
Periodic Split Transactions
High-Speed Isochronous Endpoints
Interrupt/Control Split Transaction hack enabled
[ 1.345385] dwc_otg: Microframe scheduler enabled
[ 1.345457] WARN::hcd_init_fiq:459: FIQ on core 1 at 0x805ee6b4
[ 1.345465] WARN::hcd_init_fiq:460: FIQ ASM at 0x805eea08 length 36
[ 1.345474] WARN::hcd_init_fiq:486: MPHI regs_base at 0xf0006000
[ 1.345538] dwc_otg 3f980000.usb: DWC OTG Controller
[ 1.354650] dwc_otg 3f980000.usb: new USB bus registered, assigned bus number 1
[ 1.357142] dwc_otg 3f980000.usb: irq 62, io mem 0x00000000
[ 1.359467] Init: Port Power? op_state=1
[ 1.361721] Init: Power Port (0)
[ 1.364304] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[ 1.366619] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 1.368922] usb usb1: Product: DWC OTG Controller
[ 1.371168] usb usb1: Manufacturer: Linux 4.14.59-rt37-v7+ dwc_otg_hcd
[ 1.373465] usb usb1: SerialNumber: 3f980000.usb
[ 1.376876] hub 1-0:1.0: USB hub found
[ 1.379120] hub 1-0:1.0: 1 port detected
[ 1.382069] dwc_otg: FIQ enabled
[ 1.382076] dwc_otg: NAK holdoff enabled
[ 1.382083] dwc_otg: FIQ split-transaction FSM enabled
[ 1.382097] Module dwc_common_port init
[ 1.382420] usbcore: registered new interface driver usb-storage
[ 1.384987] mousedev: PS/2 mouse device common for all mice
[ 1.387469] IR NEC protocol handler initialized
[ 1.389656] IR RC5(x/sz) protocol handler initialized
[ 1.391875] IR RC6 protocol handler initialized
[ 1.394165] IR JVC protocol handler initialized
[ 1.396263] IR Sony protocol handler initialized
[ 1.398371] IR SANYO protocol handler initialized
[ 1.400483] IR Sharp protocol handler initialized
[ 1.402504] IR MCE Keyboard/mouse protocol handler initialized
[ 1.404626] IR XMP protocol handler initialized
[ 1.407974] bcm2835-wdt 3f100000.watchdog: Broadcom BCM2835 watchdog timer
[ 1.410547] bcm2835-cpufreq: min=600000 max=1200000
[ 1.413381] sdhci: Secure Digital Host Controller Interface driver
[ 1.415630] sdhci: Copyright© Pierre Ossman
[ 1.418403] mmc-bcm2835 3f300000.mmc: could not get clk, deferring probe
[ 1.421247] sdhost-bcm2835 3f202000.mmc: could not get clk, deferring probe
[ 1.423772] sdhci-pltfm: SDHCI platform and OF driver helper
[ 1.428008] hidraw: raw HID events driver © Jiri Kosina
[ 1.430503] usbcore: registered new interface driver usbhid
[ 1.432813] usbhid: USB HID core driver
[ 1.436050] vchiq: vchiq_init_state: slot_zero = bad80000, is_master = 0
[ 1.440128] [vc_sm_connected_init]: start
[ 1.449238] [vc_sm_connected_init]: end - returning 0
[ 1.452458] Initializing XFRM netlink socket
[ 1.454871] NET: Registered protocol family 17
[ 1.457418] Key type dns_resolver registered
[ 1.460155] Registering SWP/SWPB emulation handler
[ 1.463771] registered taskstats version 1
[ 1.481902] uart-pl011 3f201000.serial: cts_event_workaround enabled
[ 1.484613] 3f201000.serial: ttyAMA0 at MMIO 0x3f201000 (irq = 87, base_baud = 0) is a PL011 rev2
[ 1.492957] mmc-bcm2835 3f300000.mmc: mmc_debug:0 mmc_debug2:0
[ 1.495618] mmc-bcm2835 3f300000.mmc: DMA channel allocated
[ 1.554599] sdhost: log_buf @ bad07000 (fad07000)
[ 1.574400] mmc1: queuing unknown CIS tuple 0x80 (2 bytes)
[ 1.578509] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[ 1.582487] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[ 1.587755] mmc1: queuing unknown CIS tuple 0x80 (7 bytes)
[ 1.594026] Indeed it is in host mode hprt0 = 00021501
[ 1.643703] mmc0: sdhost-bcm2835 loaded - DMA enabled (>1)
[ 1.650235] of_cfs_init
[ 1.652419] of_cfs_init: OK
[ 1.655424] Waiting for root device PARTUUID=b0580fa2-02…
[ 1.718548] mmc1: new high speed SDIO card at address 0001
[ 1.793080] mmc0: host does not support reading read-only switch, assuming write-enable
[ 1.802378] mmc0: new high speed SDHC card at address e624
[ 1.803717] usb 1-1: new high-speed USB device number 2 using dwc_otg
[ 1.803932] Indeed it is in host mode hprt0 = 00001101
[ 1.833704] mmcblk0: mmc0:e624 SU04G 3.69 GiB
[ 1.840547] mmcblk0: p1 p2
[ 1.891834] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[ 1.897197] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
[ 1.901457] devtmpfs: mounted
[ 1.909467] Freeing unused kernel memory: 1024K
[ 2.054385] usb 1-1: New USB device found, idVendor=0424, idProduct=9514
[ 2.056980] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 2.060656] hub 1-1:1.0: USB hub found
[ 2.063516] hub 1-1:1.0: 5 ports detected
[ 2.383771] usb 1-1.1: new high-speed USB device number 3 using dwc_otg
[ 2.390915] systemd[1]: System time before build time, advancing clock.
[ 2.514166] usb 1-1.1: New USB device found, idVendor=0424, idProduct=ec00
[ 2.516971] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 2.523067] smsc95xx v1.0.6
[ 2.542935] NET: Registered protocol family 10
[ 2.547767] Segment Routing with IPv6
[ 2.563461] ip_tables: © 2000-2006 Netfilter Core Team
[ 2.599935] systemd[1]: systemd 232 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD +IDN)
[ 2.609426] systemd[1]: Detected architecture arm.
[ 2.621401] smsc95xx 1-1.1:1.0 eth0: register ‘smsc95xx’ at usb-3f980000.usb-1.1, smsc95xx USB 2.0 Ethernet, b8:27:eb:2c:42:25
[ 2.631117] systemd[1]: Set hostname to .
[ 3.281638] systemd[1]: Listening on Journal Socket (/dev/log).
[ 3.288479] systemd[1]: Listening on fsck to fsckd communication Socket.
[ 3.295161] systemd[1]: Listening on udev Control Socket.
[ 3.301467] systemd[1]: Listening on udev Kernel Socket.
[ 3.307997] systemd[1]: Listening on /dev/initctl Compatibility Named Pipe.
[ 3.314969] systemd[1]: Listening on Journal Socket.
[ 3.321860] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[ 4.031505] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[ 4.216322] systemd-journald[124]: Received request to flush runtime journal from PID 1
[ 5.607947] snd_bcm2835: module is from the staging directory, the quality is unknown, you have been warned.
[ 5.740349] bcm2835_alsa bcm2835_alsa: card created with 8 channels
[ 5.862502] pisound: Searching for spi device…
[ 5.862520] pisound: Found!
[ 5.948932] pisound: Detected Pisound card:
[ 5.949029] pisound: Serial: PS-1BWMSE8
[ 5.949036] pisound: Version: 1.01
[ 5.949043] pisound: Id: 1e93153555313630360a1029
[ 6.010713] snd-rpi-pisound soc:sound: snd-soc-dummy-dai <-> 3f203000.i2s mapping ok
[ 6.463568] brcmfmac: F1 signature read @0x18000000=0x1541a9a6
[ 6.475005] brcmfmac: brcmf_fw_map_chip_to_name: using brcm/brcmfmac43430-sdio.bin for chip 0x00a9a6(43430) rev 0x000001
[ 6.500695] usbcore: registered new interface driver brcmfmac
[ 6.755131] brcmfmac: brcmf_c_preinit_dcmds: Firmware version = wl0: Oct 23 2017 03:55:53 version 7.45.98.38 (r674442 CY) FWID 01-e58d219f
[ 6.756249] brcmfmac: brcmf_c_preinit_dcmds: CLM version = API: 12.2 Data: 7.11.15 Compiler: 1.24.2 ClmImport: 1.24.1 Creation: 2014-05-26 10:53:55 Inc Data: 9.10.39 Inc Compiler: 1.29.4 Inc ClmImport: 1.36.3 Creation: 2017-10-23 03:47:14
[ 8.766355] uart-pl011 3f201000.serial: no DMA platform data
[ 9.306193] Adding 102396k swap on /var/swap. Priority:-2 extents:1 across:102396k SSFS
[ 9.608411] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 9.608430] brcmfmac: power management disabled
[ 10.529876] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 10.529893] brcmfmac: power management disabled
[ 10.646420] smsc95xx 1-1.1:1.0 eth0: hardware isn’t capable of remote wakeup
[ 10.646728] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 10.849097] nf_conntrack version 0.5.0 (15360 buckets, 61440 max)
[ 12.508029] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[ 14.022437] Bluetooth: Core ver 2.22
[ 14.022560] NET: Registered protocol family 31
[ 14.022567] Bluetooth: HCI device and connection manager initialized
[ 14.022608] Bluetooth: HCI socket layer initialized
[ 14.022629] Bluetooth: L2CAP socket layer initialized
[ 14.022693] Bluetooth: SCO socket layer initialized
[ 14.049938] Bluetooth: HCI UART driver ver 2.3
[ 14.049961] Bluetooth: HCI UART protocol H4 registered
[ 14.049999] Bluetooth: HCI UART protocol Three-wire (H5) registered
[ 14.050572] Bluetooth: HCI UART protocol Broadcom registered
[ 14.272913] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 14.272923] Bluetooth: BNEP filters: protocol multicast
[ 14.272949] Bluetooth: BNEP socket layer initialized
[ 15.317787] Bluetooth: RFCOMM TTY layer initialized
[ 15.317827] Bluetooth: RFCOMM socket layer initialized
[ 15.317919] Bluetooth: RFCOMM ver 1.11