LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.

Notices


Reply
  Search this Thread
Old 03-01-2017, 01:06 AM   #1
bani_j
LQ Newbie
 
Registered: Mar 2017
Posts: 2

Rep: Reputation: Disabled
Post need support to configure Dragonboard (qualcom 410E) as a USB mass storage device to be accessed from the connected linux host through OTG


Hello,
I am new to linux forum. I want to configure the dragon board (having qualcom 410 E processor) as a mass storage device so the file system (some files in the file system) could be accessed from the linux or windows host connected through the USB OTG. OS is debian 4.4.23

I have taken the following steps to enable the feature.
1. Enabled following in kernel config.
  • i. USB gadget support
    ii. USB gadget drivers.
    iii. USB functions configurable through Configfs.
    iv. Mass storage
    v. Mass storage gadget.
    vi. Ethernet gadget is disabled.
2. build kernel and modules and flashed the kernel image through fastboot process as mentioned in the link https://builds.96boards.org/releases.../debian/16.09/ .
3. following commands i executed on the dragonboard.
  • i. sudo modprobe configfs
    ii. sudo modprobe linkcomposite
    iii. sudo modprobe usb_f_mass_storage
    iv. sudo modprobe g_mass_storage file=/home/linaro/Documents/files
4. connected my drogon board to the linux host but no file system is detected.
i got the following logs on dragonboard in /var/log/messages when i connected the dragon board to host PC through OTG. There were no logs generated on host PC.

Feb 28 12:40:03 linaro-alip kernel: [25789.448501] msm_hsusb_host 78d9000.ehci: remove, state 1
Feb 28 12:40:03 linaro-alip kernel: [25789.448613] usb usb1: USB disconnect, device number 1
Feb 28 12:40:03 linaro-alip kernel: [25789.448732] usb 1-1: USB disconnect, device number 2
Feb 28 12:40:03 linaro-alip kernel: [25789.448756] usb 1-1.1: USB disconnect, device number 3
Feb 28 12:40:03 linaro-alip kernel: [25789.448779] usb 1-1.1.3: USB disconnect, device number 6
Feb 28 12:40:03 linaro-alip kernel: [25789.506447] usb 1-1.1.4: USB disconnect, device number 5
Feb 28 12:40:03 linaro-alip kernel: [25789.687549] usb 1-1.2: USB disconnect, device number 4
Feb 28 12:40:03 linaro-alip kernel: [25789.709375] msm_hsusb_host 78d9000.ehci: USB bus 1 deregistered
Feb 28 12:40:04 linaro-alip kernel: [25789.847889] msm_otg 78d9000.phy: Avail curr from USB = 100

Following is the output of lsmod.
linaro@linaro-alip:~$ lsmod
Module Size Used by
g_mass_storage 6022 0
usb_f_mass_storage 50812 2 g_mass_storage
libcomposite 54980 2 usb_f_mass_storage,g_mass_storage
configfs 33353 3 libcomposite,usb_f_mass_storage
bnep 18397 2
wcn36xx 70557 0
joydev 11855 0

Please share what wrong i have done. Please share if any more logs required.
 
Old 03-04-2017, 06:39 AM   #2
hoes
Member
 
Registered: Sep 2005
Distribution: debian, linux from scratch
Posts: 190

Rep: Reputation: 51
Your question interests me, because I like to learn some more about embedded linux systems.

I looked up https://developer.qualcomm.com/hardw...agonboard-410c, which I think is your board.
It mentions that it has 2x USB 2.0 which only operate in host mode and 1x micro-USB which only operates in device mode.
Furthermore it mentions that they USB2.0 and micro-USB are mutually exclusive.
Do you use them at the same time?
Did you expand your board to have multiple USB connections?

If you connect your dragonboard to a host device you should see some action on the host device.
I reckon your linux host device runs udev.
You could run udevadm monitor to see what happens when you plug or unplug your USB dragonboard.
Furthermore, lsusb might help you to see which USB device you have connected on your host system.

I am interested to hear your response.
 
Old 03-04-2017, 08:00 AM   #3
bani_j
LQ Newbie
 
Registered: Mar 2017
Posts: 2

Original Poster
Rep: Reputation: Disabled
Thanks Hoes, for your response. I will share the results ASAP.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
USB peripheral device not found on USB OTG port with Linux 3.0.0 kernel lmorda Linux - Embedded & Single-board computer 1 04-28-2012 11:56 AM
How to disable USB Mass Storage device ( usb drive ) in Linux vijaush Linux - Newbie 4 06-25-2008 09:43 AM
debian host as a mass storage device to another host? elfoozo Debian 4 03-05-2007 05:06 PM
Accessing USB Mass storage device in Linux..?? kvsmani Linux - Hardware 0 02-11-2004 12:03 PM
Usb mass storage device laguna Linux - Hardware 4 08-12-2002 02:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 12:34 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration