[Dev] SDB does not work on ODROID-U3

GyeongHwan Hong redcarrottt at gmail.com
Sat Aug 30 06:37:55 GMT 2014


I tried the command you mentioned, and I've got following result.
In spite of the command, 'sdb devices' does not show any connected devices.
On host PC, any connected devices(on /dev/ and /sys/) are not found.

It is strange that "/sys/class/usb_mode/usb0/enable" is originally 0.
I don't know what is the hole interfering the USB communication.
Anything ideas?

Best Regards,
Gyeonghwan Hong.

sh-4.1# killall sdbd
sdbd: no process found
sh-4.1# cat /sys/class/usb_mode/usb0/enable
0
sh-4.1# echo 0 > /sys/class/usb_mode/usb0/enable
[  697.177704] usb_mode usb0: slp_multi_usb: already disabled
sh-4.1# cat /sys/class/usb_mode/usb0/funcs_fconf
sh-4.1# echo sdb > /sys/class/usb_mode/usb0/funcs_fconf
sh-4.1# echo 1 > /sys/class/usb_mode/usb0/enable
sh-4.1# [  747.338671] s3c-hsotg 12480000.hsotg: GINTSTS_USBSusp
[  747.449449] s3c-hsotg 12480000.hsotg: s3c_hsotg_irq: USBRst
[  747.452542] s3c-hsotg 12480000.hsotg: s3c_hsotg_irq: USBRst
[  747.504215] s3c-hsotg 12480000.hsotg: new device is full-speed
[  747.662973] s3c-hsotg 12480000.hsotg: s3c_hsotg_irq: USBRst
[  747.666061] s3c-hsotg 12480000.hsotg: s3c_hsotg_irq: USBRst
[  747.717738] s3c-hsotg 12480000.hsotg: new device is full-speed
[  747.876928] s3c-hsotg 12480000.hsotg: s3c_hsotg_irq: USBRst
[  747.880019] s3c-hsotg 12480000.hsotg: s3c_hsotg_irq: USBRst
[  747.931690] s3c-hsotg 12480000.hsotg: new device is full-speed
[  748.096034] s3c-hsotg 12480000.hsotg: GINTSTS_USBSusp
sh-4.1# sdbd
sh-4.1# [  754.650358] sdb_open
[  754.658399] warning: `debug_launchpad' uses deprecated v2 capabilities
in a way that may be insecure.


2014-08-30 0:00 GMT+09:00 Chanho Park <chanho61.park at samsung.com>:

> Hi,
>
> Can you try below command in your odroid shell?
> (Actually, the linux-3.10 is for tizen 3.0.)
>
> $ killall sdbd
> $ echo 0 > /sys/class/usb_mode/usb0/enable
> $ echo sdb > /sys/class/usb_mode/usb0/funcs_fconf
> $ echo 1 > /sys/class/usb_mode/usb0/enable
> $ sdbd
>
> In your host PC,
> $ sdb devices
>
> Best Regards,
> Chanho Park
>
> > -----Original Message-----
> > From: Dev [mailto:dev-bounces at lists.tizen.org] On Behalf Of GyeongHwan
> > Hong
> > Sent: Friday, August 29, 2014 11:49 PM
> > To: dev at lists.tizen.org
> > Subject: [Dev] SDB does not work on ODROID-U3
> >
> > I am porting Tizen 2.2.1 on ODROID-U3 board, and this work is almost
> > done.
> >
> >
> > I enabled 'USB debugging' in preferences app and plugged it to Host PC
> > through USB cable.
> >
> >
> > However, on the host PC(Ubuntu 13.10), 'sdb devices' command does not
> > show any devices at all.
> >
> > Host PC cannot even recognize ODROID-U3 with Tizen as USB storage.
> >
> >
> > When I run Android(a version given by manufacturer) on the same device,
> > ODROID-U3 is successfully connected to host PC through adb or USB
> > storage connection.
> >
> >
> > I think that I forgot to port something required for SDB or USB storage
> > connection.
> >
> >
> > Tizen on ODROID-U3 is using Kernel 3.10, which is based on the Tizen
> > source code and built by myself.
> >
> > I recognized some code related to USB-OTG support in "arch/arm/mach-
> > exynos/mach-smdk4x12.c"(ODROID-U3 uses Exynos 4412.) and
> > "drivers/usb/gadget/s3c-hsotg.c".
> >
> > SDB-related code is also found in "drivers/usb/gadget/f_sdb.c".
> >
> > I guess that this kernel have enough code to support SDB and USB stoage
> > connection.
> >
> > However, I don't know about the full processes of them, so I cannot
> > ensure it.
> >
> >
> > What components are required for SDB?
> >
> > If I know the components, I could resolve this problem.
> >
> > Please tell me about it.
> >
> >
> > Thanks,
> > Gyeonghwan Hong.
> >
> >
> > --
> >
> > Gyeonghwan Hong (RedCarrottt)
> > Embedded Software Lab.
> > Sungkyunkwan University
> > RedCarrottt at gmail.com
>
>


-- 
Gyeonghwan Hong (RedCarrottt)
Embedded Software Lab.
Sungkyunkwan University
RedCarrottt at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.tizen.org/pipermail/dev/attachments/20140830/f7a00887/attachment-0001.html>


More information about the Dev mailing list