USB connected to DI CORE Board - Problem

USB connected to DI CORE Board - Problem

I connected a USB Tile - to my working CORE Board.
I then plugged in my UsbFlashDisk.
But, I am seeing No response on the Linux, but expecting to see like I do on the PI with USB Plugin.
Why not ?

@Creator : Is there anything needed to Enable for USB on the CORE Board ?
How do I enable USB Master on CORE Board ?

Example, here is PI Board, after plugging in a USB FlashDisk:


[ 1575.540000] usb 1-1: new full-speed USB device number 4 using ehci-platform

[ 1575.980000] usb 1-1: new high-speed USB device number 5 using ehci-platform
[ 1576.140000] usb-storage 1-1:1.0: USB Mass Storage device detected
[ 1576.140000] scsi1 : usb-storage 1-1:1.0
[ 1577.150000] scsi 1:0:0:0: Direct-Access     Mass     Storage Device   1.00 PQ: 0 ANSI: 0 CCS
[ 1577.470000] sd 1:0:0:0: [sda] 3911680 512-byte logical blocks: (2.00 GB/1.86 GiB)
[ 1577.470000] sd 1:0:0:0: [sda] Write Protect is off
[ 1577.480000] sd 1:0:0:0: [sda] No Caching mode page found
[ 1577.480000] sd 1:0:0:0: [sda] Assuming drive cache: write through
[ 1577.490000] sd 1:0:0:0: [sda] No Caching mode page found
[ 1577.500000] sd 1:0:0:0: [sda] Assuming drive cache: write through
[ 1577.510000]  sda: sda1 sda2
[ 1577.520000] sd 1:0:0:0: [sda] No Caching mode page found
[ 1577.520000] sd 1:0:0:0: [sda] Assuming drive cache: write through
[ 1577.530000] sd 1:0:0:0: [sda] Attached SCSI removable disk
[ 1583.120000] FAT-fs (sda1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
[ 1594.090000] EXT4-fs (sda2): warning: mounting unchecked fs, running e2fsck is recommended
[ 1594.100000] EXT4-fs (sda2): mounted filesystem without journal. Opts: errors=remount-ro

root@domino:/etc# ls /mnt

 DOMINOFAT  sda1       sda2       sdb2

root@domino:/etc# ls /dev

 bus                 mtd0ro              mtdblock5           ttyS1
 console             mtd1                mtdblock6           ttyS10
 cpu_dma_latency     mtd1ro              network_latency     ttyS11
 full                mtd2                network_throughput  ttyS12
 fuse                mtd2ro              null                ttyS13
 kmsg                mtd3                port                ttyS14
 log                 mtd3ro              ppp                 ttyS15
 loop-control        mtd4                ptmx                ttyS2
 loop0               mtd4ro              pts                 ttyS3
 loop1               mtd5                random              ttyS4
 loop2               mtd5ro              sda                 ttyS5
 loop3               mtd6                sda1                ttyS6
 loop4               mtd6ro              sda2                ttyS7
 loop5               mtdblock0           shm                 ttyS8
 loop6               mtdblock1           snd                 ttyS9
 loop7               mtdblock2           tty                 urandom
 mem                 mtdblock3           ttyATH0             watchdog
 mtd0                mtdblock4           ttyS0               zero

.
While, here is what happens on DI CORE Board, after USB FlashDisk plugin:


[ 1730.080000] usb 1-1: new full-speed USB device number 2 using ehci-platform

ls /mnt

root@domino:/etc# ls /dev

bus                 mtd0ro              mtdblock5           ttyS12
console             mtd1                mtdblock6           ttyS13
cpu_dma_latency     mtd1ro              network_latency     ttyS14
full                mtd2                network_throughput  ttyS15
fuse                mtd2ro              null                ttyS2
kmsg                mtd3                port                ttyS3
log                 mtd3ro              ppp                 ttyS4
loop-control        mtd4                ptmx                ttyS5
loop0               mtd4ro              pts                 ttyS6
loop1               mtd5                random              ttyS7
loop2               mtd5ro              shm                 ttyS8
loop3               mtd6                snd                 ttyS9
loop4               mtd6ro              tty                 urandom
loop5               mtdblock0           ttyATH0             watchdog
loop6               mtdblock1           ttyS0               zero
loop7               mtdblock2           ttyS1
mem                 mtdblock3           ttyS10
mtd0                mtdblock4           ttyS11

.

  • Notice USB message, but No Mounts in /DEV/sda/b1/2 nor /MNT …

WHY ???

At first,please make sure VCC 5V for the USB is avaliable.
If still can discovery the Udisk,please check the welding between the Core Module and the Connector.
At last if all above is not working can you connect four wires(5V,D-,D+,GND) from the CORE module to the USB Connector.Here(GitHub - domino-team/domino-hardware) you can get the schematic.

5V is verified to USB, and USB is connected as you specify.

Boot example:


  •    U-Boot 1.1.4  (Jun  6 2015)        *
    

AP121 (AR9331) U-Boot for DOMINO v1

DRAM: 64 MB DDR2 16-bit
FLASH: Winbond W25Q128 (16 MB)
CLOCKS: 400/400/200/33 MHz (CPU/RAM/AHB/SPI)

** Warning: bad env CRC, using default,
use ‘saveenv’ to save it in FLASH

LED on during eth initialization…


| __ \ / __ \ | / | |_ | | \ | | / __
| | | | | | | | | \ / | | | | | | | | | |
| | | | | | | | | |/| | | | | . ` | | | | |
| || | | || | | | | | | | | |\ | | || |
|
/ _/ |
| || |_____| || _| ____/

Hit any key to stop autobooting: 0

Device calibrated. Booting …
Booting image at: 0x9F050000

Image name: MIPS OpenWrt Linux-3.10.49
Created: 2015-06-17 7:07:46 UTC
Image type: MIPS Linux Kernel Image (lzma compressed)
Data size: 1114216 Bytes = 1.1 MB
Load address: 0x80060000
Entry point: 0x80060000

Uncompressing kernel image… OK!
Starting kernel…

[ 0.000000] Linux version 3.10.49 (alzhao@alzhao-ubuntu) (gcc version 4.8.3 (OpenWrt/Linaro GCC 4.8-

2014.04 r45620) ) #41 Wed Jun 17 15:07:32 HKT 2015
[ 0.000000] bootconsole [early0] enabled
[ 0.000000] CPU revision is: 00019374 (MIPS 24Kc)
[ 0.000000] SoC: Atheros AR9330 rev 1
[ 0.000000] Clocks: CPU:400.000MHz, DDR:400.000MHz, AHB:200.000MHz, Ref:25.000MHz
[ 0.000000] Determined physical RAM map:
[ 0.000000] memory: 04000000 @ 00000000 (usable)
[ 0.000000] Initrd not found or empty - disabling initrd
[ 0.000000] Zone ranges:
[ 0.000000] Normal [mem 0x00000000-0x03ffffff]
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x00000000-0x03ffffff]
[ 0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[ 0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 16256
[ 0.000000] Kernel command line: board=DOMINO console=ttyATH0,115200 mtdparts=spi0.0:256k(u-boot)ro,64k

(u-boot-env)ro,16000k(firmware),64k(art)ro rootfstype=squashfs,jffs2 noinitrd
[ 0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[ 0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.000000] Writing ErrCtl register=00000000
[ 0.000000] Readback ErrCtl register=00000000
[ 0.000000] Memory: 61076k/65536k available (2386k kernel code, 4460k reserved, 620k data, 256k init, 0k

highmem)
[ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] NR_IRQS:51
[ 0.000000] Calibrating delay loop… 265.42 BogoMIPS (lpj=1327104)
[ 0.080000] pid_max: default: 32768 minimum: 301
[ 0.080000] Mount-cache hash table entries: 512
[ 0.090000] NET: Registered protocol family 16
[ 0.100000] MIPS: machine is Domino board
[ 0.550000] bio: create slab <bio-0> at 0
[ 0.560000] Switching to clocksource MIPS
[ 0.570000] NET: Registered protocol family 2
[ 0.570000] TCP established hash table entries: 512 (order: 0, 4096 bytes)
[ 0.570000] TCP bind hash table entries: 512 (order: -1, 2048 bytes)
[ 0.570000] TCP: Hash tables configured (established 512 bind 512)
[ 0.580000] TCP: reno registered
[ 0.580000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.590000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.600000] NET: Registered protocol family 1
[ 0.620000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.630000] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat,

Inc.
[ 0.640000] msgmni has been set to 119
[ 0.640000] io scheduler noop registered
[ 0.640000] io scheduler deadline registered (default)
[ 0.650000] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[ 0.660000] ar933x-uart: ttyATH0 at MMIO 0x18020000 (irq = 11) is a AR933X UART
[ 0.670000] console [ttyATH0] enabled, bootconsole disabled
[ 0.670000] console [ttyATH0] enabled, bootconsole disabled
[ 0.680000] ath79-spi ath79-spi: master is unqueued, this is deprecated
[ 0.690000] m25p80 spi0.0: found w25q128, expected m25p80
[ 0.690000] m25p80 spi0.0: w25q128 (16384 Kbytes)
[ 0.700000] 4 cmdlinepart partitions found on MTD device spi0.0
[ 0.710000] Creating 4 MTD partitions on “spi0.0”:
[ 0.710000] 0x000000000000-0x000000040000 : “u-boot”
[ 0.720000] 0x000000040000-0x000000050000 : “u-boot-env”
[ 0.720000] 0x000000050000-0x000000ff0000 : “firmware”
[ 0.740000] 2 uimage-fw partitions found on MTD device firmware
[ 0.750000] 0x000000050000-0x000000170000 : “kernel”
[ 0.750000] 0x000000170000-0x000000ff0000 : “rootfs”
[ 0.760000] mtd: device 4 (rootfs) set to be root filesystem
[ 0.760000] 1 squashfs-split partitions found on MTD device rootfs
[ 0.770000] 0x000000930000-0x000000ff0000 : “rootfs_data”
[ 0.780000] 0x000000ff0000-0x000001000000 : “art”
[ 0.800000] libphy: ag71xx_mdio: probed
[ 1.350000] ag71xx ag71xx.0: connected to PHY at ag71xx-mdio.1:04 [uid=004dd041, driver=Generic PHY]
[ 1.360000] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode:MII
[ 1.910000] ag71xx-mdio.1: Found an AR7240/AR9330 built-in switch
[ 2.950000] eth1: Atheros AG71xx at 0xba000000, irq 5, mode:GMII
[ 2.960000] TCP: cubic registered
[ 2.960000] NET: Registered protocol family 17
[ 2.960000] Bridge firewalling registered
[ 2.970000] 8021q: 802.1Q VLAN Support v1.8
[ 2.980000] VFS: Mounted root (squashfs filesystem) readonly on device 31:4.
[ 2.980000] Freeing unused kernel memory: 256K (80350000 - 80390000)
procd: Console is alive
procd: - watchdog -
[ 7.310000] usbcore: registered new interface driver usbfs
[ 7.320000] usbcore: registered new interface driver hub
[ 7.320000] usbcore: registered new device driver usb
[ 7.410000] SCSI subsystem initialized
[ 7.420000] ehci_hcd: USB 2.0 ‘Enhanced’ Host Controller (EHCI) Driver
[ 7.420000] ehci-platform: EHCI generic platform driver
[ 7.430000] ehci-platform ehci-platform: EHCI Host Controller
[ 7.430000] ehci-platform ehci-platform: new USB bus registered, assigned bus number 1
[ 7.440000] ehci-platform ehci-platform: irq 3, io mem 0x1b000000
[ 7.470000] ehci-platform ehci-platform: USB 2.0 started, EHCI 1.00
[ 7.470000] hub 1-0:1.0: USB hub found
[ 7.470000] hub 1-0:1.0: 1 port detected
[ 7.480000] ohci_hcd: USB 1.1 ‘Open’ Host Controller (OHCI) Driver
[ 7.490000] uhci_hcd: USB Universal Host Controller Interface driver
[ 7.500000] usbcore: registered new interface driver usb-storage
procd: - preinit -
Press the [f] key and hit [enter] to enter failsafe mode
Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
[ 11.790000] jffs2: notice: (352) jffs2_build_xattr_subsystem: complete building xattr subsystem, 1 of

xdatum (0 unchecked, 0 orphan) and 36 of xref (0 dead, 18 orphan) found.
[ 11.810000] block: attempting to load /tmp/jffs_cfg/upper/etc/config/fstab
[ 11.820000] block: unable to load configuration (fstab: Entry not found)
[ 11.820000] block: attempting to load /tmp/jffs_cfg/etc/config/fstab
[ 11.830000] block: extroot: not configured
jffs2 is ready
No jffs2 marker was found
[ 11.880000] jffs2: notice: (349) jffs2_build_xattr_subsystem: complete building xattr subsystem, 1 of

xdatum (0 unchecked, 0 orphan) and 36 of xref (0 dead, 18 orphan) found.
[ 12.090000] block: attempting to load /tmp/jffs_cfg/upper/etc/config/fstab
[ 12.100000] block: unable to load configuration (fstab: Entry not found)
[ 12.100000] block: attempting to load /tmp/jffs_cfg/etc/config/fstab
[ 12.120000] block: extroot: not configured
switching to overlay
procd: - early -
procd: - watchdog -
/etc/init.d/mjpg-streamer: device ‘/dev/video0’ does not exist
procd: - ubus -
procd: - init -
Please press Enter to activate this console.
Command failed: Not found
Command failed: Not found
[ 16.390000] NET: Registered protocol family 10
[ 16.440000] NTFS driver 2.1.30 [Flags: R/O MODULE].
[ 16.490000] loop: module loaded
[ 16.610000] nf_conntrack version 0.5.0 (958 buckets, 3832 max)
[ 16.640000] ip6_tables: (C) 2000-2006 Netfilter Core Team
[ 16.670000] Linux video capture interface: v2.00
[ 16.710000] fuse init (API version 7.22)
[ 16.730000] usbcore: registered new interface driver cdc_acm
[ 16.730000] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[ 16.740000] Loading modules backported from Linux version master-2014-05-22-0-gf2032ea
[ 16.750000] Backport generated by backports.git backports-20140320-37-g5c33da0
[ 16.780000] gspca_main: v2.14.0 registered
[ 16.800000] usbcore: registered new interface driver sonixb
[ 16.800000] usbcore: registered new interface driver sonixj
[ 16.820000] usbcore: registered new interface driver gspca_zc3xx
[ 16.840000] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 16.920000] usbcore: registered new interface driver usbserial
[ 16.920000] usbcore: registered new interface driver usbserial_generic
[ 16.930000] usbserial: USB Serial support registered for generic
[ 16.960000] usbcore: registered new interface driver uvcvideo
[ 16.960000] USB Video Class driver (1.1.1)
[ 17.000000] xt_time: kernel timezone is -0000
[ 17.020000] usbcore: registered new interface driver cdc_ether
[ 17.070000] cfg80211: Calling CRDA to update world regulatory domain
[ 17.070000] cfg80211: World regulatory domain updated:
[ 17.080000] cfg80211: DFS Master region: unset
[ 17.080000] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
[ 17.090000] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[ 17.100000] cfg80211: (2457000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[ 17.110000] cfg80211: (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm), (N/A)
[ 17.120000] cfg80211: (5170000 KHz - 5250000 KHz @ 160000 KHz), (N/A, 2000 mBm), (N/A)
[ 17.120000] cfg80211: (5250000 KHz - 5330000 KHz @ 160000 KHz), (N/A, 2000 mBm), (0 s)
[ 17.130000] cfg80211: (5490000 KHz - 5730000 KHz @ 160000 KHz), (N/A, 2000 mBm), (0 s)
[ 17.140000] cfg80211: (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
[ 17.150000] cfg80211: (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm), (N/A)
[ 17.160000] usbcore: registered new interface driver cp210x
[ 17.160000] usbserial: USB Serial support registered for cp210x
[ 17.290000] PPP generic driver version 2.4.2
[ 17.290000] NET: Registered protocol family 24
[ 17.310000] usbcore: registered new interface driver rndis_host
[ 17.400000] usbcore: registered new interface driver option
[ 17.420000] usbserial: USB Serial support registered for GSM modem (1-port)
[ 17.590000] cfg80211: Calling CRDA for country: US
[ 17.600000] ieee80211 phy0: Atheros AR9330 Rev:1 mem=0xb8100000, irq=2
[ 17.640000] cfg80211: Regulatory domain changed to country: US
[ 17.640000] cfg80211: DFS Master region: FCC
[ 17.640000] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
[ 17.650000] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 3000 mBm), (N/A)
[ 17.660000] cfg80211: (5170000 KHz - 5250000 KHz @ 80000 KHz), (N/A, 1700 mBm), (N/A)
[ 17.670000] cfg80211: (5250000 KHz - 5330000 KHz @ 80000 KHz), (N/A, 2300 mBm), (0 s)
[ 17.680000] cfg80211: (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 3000 mBm), (N/A)
[ 17.690000] cfg80211: (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 4000 mBm), (N/A)
[ 32.640000] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready
[ 32.640000] device eth1 entered promiscuous mode
[ 32.650000] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[ 32.680000] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 37.320000] warning: `alljoyn-daemon’ uses 32-bit capabilities (legacy support in use)
procd: - init complete -

Now the PI does not see the SD Card either.
But, Windows recognizes it.
Seems to be flakey with USB FlashDisks.

I would think that either you’re having problems with the electrical connections to your flash disk, or that your flash disk itself may be marginal. It’s also critical to make sure that the Domino and USB device has a stable +5V supply with the ability to source as much as 500mA (To make sure there’s always enough power). I’ve tried various USB drives/SD card readers and there were a few that didn’t work well, especially some of the cheaper ones. Depending on how you’ve connected the USB devices you may want to try shortening any wires from the USB device and Domino. Can you try other USB devices like mice, keyboards, etc. to see if they are properly recognized?

-Larry

Will Check - thanks.

Okay Solved !
Tried UsbDrive on 2nd CORE Board - successful.
Maybe bad connection or dirt on 1st CORE Board.

Now I have working GCC Domino on a SdCard on/for the Domino CORE.
Thanks for the help !

Just a quick update on this: since the Domino doesn’t automatically recognize storage that’s inserted after a booting it’s possible to force a reset/rescan of the USB bus, which will then make it auto-mount the storage. Install the usbreset package and then run “usbreset” It will show you two entries something like this if you’ve got a USB/SD tile plugged in:

Devices:
Number 001/002 ID 058f:6254 USB2.0Hub
Number 001/003 ID 058f:6366 Mass Storage Device

To make it rescan/mount the new storage just run “usbreset 001/002”, which will reset the hub and mass storage device connected to it (And anything connected to the USB port).

Larry, do you mean the MicroSD card? The USB-A should automatically recognize storage.

I don’t recall the exact situations where new USB devices aren’t recognized, I’ve just had mixed results with getting new devices seen and wanted to pass on a tip to avoid having to reboot if there is a problem. It’s also handy if you’re using a USB-SD card adapter and want to swap the SD card for another one, since the Domino doesn’t seem to pick up on the presence of a different card without unplugging the USB-SD card adapter or performing a USB reset.