On module: mangOH Red (WP7608), with firmware version 9 and legato ver 18.03.
Trying to insert a memory stick into the USB host port of mangOH red. It’s led is blinking and dmesg shows it’s connected properly without errors.
root@swi-mdm9x28:~# lsusb
-sh: lsusb: not found
Even if lsusb isn’t found, the module crashes completely when I use:
root@swi-mdm9x28:~# fdisk -l
Disk /dev/mtdblock0: 2 MB, 2621440 bytes
255 heads, 63 sectors/track, 0 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/mtdblock0 doesn’t contain a valid partition table
command, preventing me from even being able to mount it. I did a “Erase user partition” from Legato Developer Studio, did that remove some files? This is happening on all firmware versions (tested 6, 8 and 9).
I noticed that fdisk -l has issues. I forgot to check whether a bug has been reported for this or not. I will try to look into it tomorrow. What I do remember is that fdisk -l /dev/mtdblk0 will work.
I confirm the issue with “fdisk -l” when used without additional parameters.
For USB drives, you can use “fdisk -l /dev/sd*” which is working fine.
I can mount my USB flash drive (FAT32 filesystem) with the same setup as you by using this command: mount /dev/sda1 /media/
Regarding “lsusb” tool, you can build a custom rootfs image with “usbutils” package by using Yocto.
Or you can use the following “poor man’s lsusb” script:
Thank you! Mounting USB sticks is working fine now. Your script works alright, but wanted to add native lsusb. Added IMAGE_INSTALL_append = " usbutils" to mdm9x28-image.inc (any better to place to add it?) within the yocto recipes and it successfully added the binaries. But, lsusb is still giving the below issue:
But the package added another bin named lsusb.py, which seems to be working partly.