Commit: d613776
Ubuntu 16.04
Metro M0
With this build, CIRCUITPY appears and the REPL works. However, the second disk that does not exist stills seems to be causing problems. After a time, CPU consumption of /lib/systemd/systemd-udevd and /usr/lib/udisks2/udisksd rises dramatically, and the errors below are repeated in syslog many times. E
Interestingly, if the board is unplugged, the cpu consumption of the processes above rises even higher. Eventually the system-udevd and udisksd processes disappear from the high CPU listing, but they are still messed up (or perhaps have crashed): disks may fail to appear in /media even after replugging.
Doing sudo systemctl restart systemd-udevd makes things better.
Oct 25 23:04:34 salmonx systemd[988]: dev-disk-by\x2did-usb\x2dAdafruit_Industries_Metro_M0.device: Dev dev-disk-by\x2did-usb\x2dAdafruit_Industries_Metro_M0.device appeared twice with different sysfs paths /sys/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.4/1-1.4:1.2/host7/target7:0:0/7:0:0:1/block/sde and /sys/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.4/1-1.4:1.2/host6/target6:0:0/6:0:0:1/block/sdd
Oct 25 23:04:34 salmonx systemd[1]: dev-disk-by\x2did-usb\x2dAdafruit_Industries_Metro_M0.device: Dev dev-disk-by\x2did-usb\x2dAdafruit_Industries_Metro_M0.device appeared twice with different sysfs paths /sys/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.4/1-1.4:1.2/host7/target7:0:0/7:0:0:1/block/sde and /sys/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.4/1-1.4:1.2/host6/target6:0:0/6:0:0:1/block/sdd
Oct 25 23:04:34 salmonx systemd[988]: dev-disk-by\x2dpath-pci\x2d0000:00:1a.0\x2dusb\x2d0:1.4:1.2.device: Dev dev-disk-by\x2dpath-pci\x2d0000:00:1a.0\x2dusb\x2d0:1.4:1.2.device appeared twice with different sysfs paths /sys/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.4/1-1.4:1.2/host7/target7:0:0/7:0:0:1/block/sde and /sys/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.4/1-1.4:1.2/host6/target6:0:0/6:0:0:1/block/sdd
Oct 25 23:04:34 salmonx systemd[1]: dev-disk-by\x2dpath-pci\x2d0000:00:1a.0\x2dusb\x2d0:1.4:1.2.device: Dev dev-disk-by\x2dpath-pci\x2d0000:00:1a.0\x2dusb\x2d0:1.4:1.2.device appeared twice with different sysfs paths /sys/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.4/1-1.4:1.2/host7/target7:0:0/7:0:0:1/block/sde and /sys/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.4/1-1.4:1.2/host6/target6:0:0/6:0:0:1/block/sdd
Oct 25 23:04:34 salmonx systemd-udevd[21461]: inotify_add_watch(9, /dev/sdd, 10) failed: No such file or directory
I changed mscdf_init(1); to mscdf_init(0); to eliminate the second disk, and tried again, and the errors did not reappear.
My guess is that the disks may appear to be the same disk appearing two places because the SCSI inquiry reponse doesn't fill in any ID info (it's all zeros). So a name is manufactured, based on some other ID's, but it's not unique across the two disks. The fix may be to put some ID info that differs into the query response.
There are some other weird issues, like sometimes the disk not appearing or the REPL not responding. But this may be due to lingering effects of the original duplicate disks.
Commit: d613776
Ubuntu 16.04
Metro M0
With this build, CIRCUITPY appears and the REPL works. However, the second disk that does not exist stills seems to be causing problems. After a time, CPU consumption of
/lib/systemd/systemd-udevdand/usr/lib/udisks2/udisksdrises dramatically, and the errors below are repeated insyslogmany times. EInterestingly, if the board is unplugged, the cpu consumption of the processes above rises even higher. Eventually the
system-udevdandudisksdprocesses disappear from the high CPU listing, but they are still messed up (or perhaps have crashed): disks may fail to appear in/mediaeven after replugging.Doing
sudo systemctl restart systemd-udevdmakes things better.I changed
mscdf_init(1);tomscdf_init(0);to eliminate the second disk, and tried again, and the errors did not reappear.My guess is that the disks may appear to be the same disk appearing two places because the SCSI inquiry reponse doesn't fill in any ID info (it's all zeros). So a name is manufactured, based on some other ID's, but it's not unique across the two disks. The fix may be to put some ID info that differs into the query response.
There are some other weird issues, like sometimes the disk not appearing or the REPL not responding. But this may be due to lingering effects of the original duplicate disks.