Project

General

Profile

USB on MitySOM-5CSx Development Kit

Added by aggelis aggelis over 8 years ago

I bought a miniB to type A connector in order to connect to MitySOM-5CSx Development Kit USB port various slave devices eg webcam , usb drives etc.
When i connect a device to the usb port of Development kit i run dmesg on the terminal and there are no new messages . running dmesg|grep usb before and after i insert eg a usb drive
i get. I

root@node1:~# dmesg|grep usb
[ 0.179500] usbcore: registered new interface driver usbfs
[ 0.179547] usbcore: registered new interface driver hub
[ 0.179635] usbcore: registered new device driver usb
[ 0.838449] usbcore: registered new interface driver usb-storage
[ 0.843240] s3c-hsotg ffb40000.usb: unable to find phy
[ 0.847101] s3c-hsotg ffb40000.usb: regs bf0e0000, irq 160
[ 0.851280] s3c-hsotg ffb40000.usb: EPs:15
[ 0.854077] s3c-hsotg ffb40000.usb: dedicated fifos
[ 0.979610] usbcore: registered new interface driver usbhid
[ 0.983878] usbhid: USB HID core driver

i attach my kernel configuration file

How can i enable usb support for linux on MitySOM-5CSx Development Kit
PS i enabled various USB options in kernel but USB doesnt seem to wake up :-)


Replies (2)

RE: USB on MitySOM-5CSx Development Kit - Added by Daniel Vincelette over 8 years ago

Hello,

I see from your defconfig that you are using the 3.12 kernel, is this from our git repository or is this Altera's LTSI kernel?

We do have USB OTG working with the 5CSx, in our 3.16 branch of the kernel if you use the mitysom5csx_devkit_defconfig it should have everything needed to use OTG.

Dan

RE: USB on MitySOM-5CSx Development Kit - Added by aggelis aggelis over 8 years ago

i used you git repo and compiled using poky toolchain

/usr/lib/git-core/git-ls-remote git://support.criticallink.com/home/git/linux-socfpga.git

a79928cfd59f4b53ee568b25d232a807ea164271 refs/heads/socfpga-3.11
619f7bd69dc688efa72b9ecb4c5f4315bed26aed refs/heads/socfpga-3.12
325e9fb26a762a18460878e2a164e2bc73ce8c51 refs/heads/socfpga-3.13
20677934494b57ee3402062dcbdb7b8b5d123a89 refs/heads/socfpga-3.16
55c35340576fecadff46ba29634f12836f0a3612 refs/heads/socfpga-3.16_uhdpu
29b0f46989dcf3c0523469e805e75c4bf460d899 refs/heads/socfpga-3.7-ghrd
f6eb8dea6704b70a736359d954bce9237994076d refs/heads/socfpga-3.8
3e1a0ef47356789512ce4ae88607d4699f66178f refs/heads/socfpga-3.9
e02d87f5335dc8218ddb41a8b85e524c89088719 refs/tags/soc_camera_20150612
d64c91fb0ef7cda7ea33df57e687f9405529b87e refs/tags/soc_camera_20150612^{}
8ea9970c83a7ee67cd292cd9c96d310e241d7e15 refs/tags/soc_camera_20150820
19e95c657570ba643736aa3dd179a35c7f8e836b refs/tags/soc_camera_20150825
77f26c785d34ebd414bc94eba2c881596ce5f078 refs/tags/soc_camera_20150825_01
e9aaecb5b0413b43def5c7b9860649e57e671cc1 refs/tags/soc_camera_20151110
619f7bd69dc688efa72b9ecb4c5f4315bed26aed refs/tags/soc_camera_20160201

git clone -b socfpga-3.12 git://support.criticallink.com/home/git/linux-socfpga.git

make ARCH=arm CROSS_COMPILE=arm-poky-linux-gnueabi- mitysom5csx_devkit_defconfig

then
modified .config file to enable various features among others usb functionality issuing

make ARCH=arm CROSS_COMPILE=arm-poky-linux-gnueabi- menuconfig

and finaly
make ARCH=arm CROSS_COMPILE=arm-poky-linux-gnueabi- j 4 LOADADDR=0x8000 uImage
for uimage
and
make ARCH=arm CROSS_COMPILE=arm-poky-linux-gnueabi
LOADADDR=0x8000 all
to compile modules
then mkdir /tmp/newroot
make modules_install INSTALL_MOD_PATH=/tmp/newroot
then coppied the uImage from arch/arm/boot/uImage to /boot/uImage on sdcard
and modules from /tmp/newroot/3.12.0-00008-g619f7bd to /lib/modules/3.12.0-00008-g619f7bd on sdcard and
booted the system

and if we run uname -a the new kernel is installed
root@node1:~#uname -a
Linux node1 3.12.0-00008-g619f7bd #7 SMP Fri May 20 14:38:02 EEST 2016 armv7l GNU/Linux

the problem is that for our project kernel 3.12 is used and i am not sure we can change that. I will try to diff the
.config files generated with the mitysom5csx_devkit_defconfig for 3.12 and 3.16 to see the USB differences in configuration.
Also i will first try kernel 3.16 to verify usb functionality as a hub (connect a usb flash drive eg or a web cam)
and reply with results.

    (1-2/2)
    Go to top
    Add picture from clipboard (Maximum size: 1 GB)