I am running a java6 which sends data to a robotic kit which has the arduino mega328 as a controller.
I have tested arduino uno and it is recogized by i.MX53 and my java programm sends data.
But the arduino mega328 is not detected.
I found out that I have to enable a kernel module named ftdi_sio from the kernel.
So I downloaded this image (https://github.com/lgeek/linux-2.6.35.3-imx53)
copied to /usr/src/ and renamed it to "linux". I also linked
"linux-2.6.35.3-1129" and "linux-2.6.35.3-1129-g691c09a" to "linux"
using "make a link option" in nautilus which I started with sudo sh
nautilus.
Next I copied my .config file:
cp /proc/config.gz /usr/src/linux
and in /usr/src/linux I unzipped it and rename it to .config
sudo make menuconfig
Navigated
to Drivers -> USB Support -> USB Serial Converter Support and
chose 'M' for the USB FTDI Single Port Serial Driver
sudo make modules
sudo make prepare
sudo make modules_prepare
sudo cp drivers/usb/serial/ftdi_sio.ko /lib/modules/$(uname -r)/kernel
sudo depmod -a
But dmesg shows
ftdi_sio: no symbol version for module_layout
after a rebuild:
make
doing the whole process again I get:
usb wakeup is here
ehci_fsl_bus_resume, Host 1
usb 2-1: new full speed USB device using fsl-ehci and address 7
ftdi_sio: Unknown symbol usb_serial_handle_sysrq_char (err 0)
ftdi_sio: Unknown symbol usb_serial_disconnect (err 0)
ftdi_sio: Unknown symbol usb_serial_generic_open (err 0)
ftdi_sio: Unknown symbol usb_serial_generic_close (err 0)
ftdi_sio: Unknown symbol usb_serial_generic_unthrottle (err 0)
ftdi_sio: Unknown symbol usb_serial_handle_break (err 0)
ftdi_sio: Unknown symbol usb_serial_generic_throttle (err 0)
ftdi_sio: Unknown symbol usb_serial_probe (err 0)
ftdi_sio: Unknown symbol usb_serial_register (err 0)
ftdi_sio: Unknown symbol usb_serial_deregister (err 0)
ftdi_sio: Unknown symbol usb_serial_handle_sysrq_char (err 0)
ftdi_sio: Unknown symbol usb_serial_disconnect (err 0)
ftdi_sio: Unknown symbol usb_serial_generic_open (err 0)
ftdi_sio: Unknown symbol usb_serial_generic_close (err 0)
ftdi_sio: Unknown symbol usb_serial_generic_unthrottle (err 0)
ftdi_sio: Unknown symbol usb_serial_handle_break (err 0)
ftdi_sio: Unknown symbol usb_serial_generic_throttle (err 0)
ftdi_sio: Unknown symbol usb_serial_probe (err 0)
ftdi_sio: Unknown symbol usb_serial_register (err 0)
ftdi_sio: Unknown symbol usb_serial_deregister (err 0)
Solved! Go to Solution.
Seems that you didn't enable the generic usbserial driver, that is required in addition to ftdi_sio driver. Also, you may have to use the kernel [*] support for the drivers rather than the module [M] one.
Please refer to the following community thread:
https://community.freescale.com/message/279067#279067
It seems to be helpful in that.
Have a great day,
Artur
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Seems that you didn't enable the generic usbserial driver, that is required in addition to ftdi_sio driver. Also, you may have to use the kernel [*] support for the drivers rather than the module [M] one.
Please refer to the following community thread:
https://community.freescale.com/message/279067#279067
It seems to be helpful in that.
Have a great day,
Artur
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Thank you very much for your answer!
I used this guide:
https://eewiki.net/display/linuxonarm/i.MX53+Quick+Start
TIP: in step
export DISK=/dev/mmcblk0 make sure to type yours device location
and in step:
export kernel_version=
4
.X.Y-Z this kernel version must be the kernel version of MX53.
Well I installed Ubuntu 14.04 LTS, ftdi driver works like a charm but my second usb port does not work at all and the upper USB port can not detect USB sticks.
Keyboard works.
Any suggestions??
dmesg:
[ 4727.561337] sd 5:0:0:0: [sdb] 248320 512-byte logical blocks: (127 MB/121 MiB)
[ 4727.562425] sd 5:0:0:0: [sdb] Write Protect is off
[ 4727.562440] sd 5:0:0:0: [sdb] Mode Sense: 0b 00 00 08
[ 4727.563542] sd 5:0:0:0: [sdb] No Caching mode page found
[ 4727.568975] sd 5:0:0:0: [sdb] Assuming drive cache: write through
[ 4727.589124] sdb:
[ 4727.599626] sd 5:0:0:0: [sdb] Attached SCSI removable disk
EDIT: doing the following I can read my usb-data
file -s /dev/sdb
mount -t auto /dev/sdb /mnt
How to mount automatic?