How to check FTDI USB-UART driver enabled in i.MX53-QSB-Android-Gingerbread-Release4.0

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to check FTDI USB-UART driver enabled in i.MX53-QSB-Android-Gingerbread-Release4.0

3,274 Views
admin
Specialist II

Hi,

As am using I.MX53-QSB_Android-Gingerbread-release-4.0 prebuilt image, I wanted to know whether FTDI USB-UART driver is enabled already in this prebuilt image, if yes could you please let me kow how to check whether this driver is enabled in the I.MX53-QSB_Android-Gingerbread-release-4.0 prebuilt image or if not could you please let me know the steps how to enable this FTDI USB-UART driver in this prebuilt image

Thank you,

Awaiting for your reply,

Srinivasan S

Tags (1)
0 Kudos
3 Replies

1,918 Views
Kirill
Contributor I

Hello!

You wrote "Plug your FTDI device on the _top_ USB port of the QSB" , do you know why it should be attached to top USB port of QSB not to bottom? I notice that bottom port does not work if QSB powered by Android OS , but it work if board powered by UBUNTU. Does anybody know reasons why it happens?


Thanks!

0 Kudos

1,918 Views
admin
Specialist II

Hi,

Let me guide you through the manual steps. I am assuming the the base directory is in cd ~/work/mx53/android/loco/i.MX53-QSB-Android-Gingerbread-Release4.1 (just an example here). It is where you will find 'scripts', 'src' and other directories.

NOTES:
- You will need to use the same shell for all operations (because you set the environment).
- The names and locations might also be slightly different on your setup.
- This will make the serial device accessible from the system (BSP level). To make it accessible to applications (using the SDK or NDK), you will need to do more work, i.e. customizing the system.

1- Setting the environment

# cd ~/work/mx53/android/loco/i.MX53-QSB-Android-Gingerbread-Release4.1

# export ROOT_DIR=$(pwd)
# export ANDROID_SRC_ROOT=${ROOT_DIR}/src
# export UBOOT_SRC_ROOT=${ANDROID_SRC_ROOT}/bootable/bootloader/uboot-imx
# export KERNEL_SRC_ROOT=${ANDROID_SRC_ROOT}/kernel_imx
# export PATH_BASE=${PATH}
# export TOOLCHAIN_PATH=${ANDROID_SRC_ROOT}/prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/bin
# export TOOLCHAIN_ANDROID_PATH=${ANDROID_SRC_ROOT}/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin
# export PATH=${PATH_BASE}:${TOOLCHAIN_ANDROID_PATH}
# export PATH=${PATH}:${UBOOT_SRC_ROOT}/tools

2- Configuring the kernel

# cd ${KERNEL_SRC_ROOT}
# make ARCH=arm CROSS_COMPILE=arm-eabi- menuconfig

Using the menus, enable the FTDI driver (as a module, or built-in, so that you can skip the module installation)
* Device Drivers  ---> USB support  USB Serial Converter support  --->

Some drivers will also break the build:
- Disable Drivers ---> Staging ---> Atheros
- Disable Drivers ---> USB ---> Gadget ---> Ethernet gadget
 
3- Building the modules

# make ARCH=arm CROSS_COMPILE=arm-eabi- modules

4- Installing the modules

Insert your SD Card on your PC. Use the mounted "system" partition. On my Ubuntu setup, it automatically gets mounted in /media/57f8f4bc-abf4-0000-675f-946fc0f9f25b_

Install the module:

# sudo make ARCH=arm CROSS_COMPILE=arm-eabi- INSTALL_MOD_PATH=/media/57f8f4bc-abf4-0000-675f-946fc0f9f25b_ modules_install

5- Boot Android

Boot Android and using the serial console, issue the following commands:

MX53# cd /system/lib/modules/2.6.35.3-01162-g1404c40-dirty/kernel/drivers/usb/serial
MX53# insmod ftdi_sio.ko

Plug your FTDI device on the _top_ USB port of the QSB. You should see this in the console:

usb 1-1: new full speed USB device using fsl-ehci and address 2
ftdi_sio 1-1:1.0: FTDI USB Serial Device converter detected
usb 1-1: Detected FT232RL
usb 1-1: Number of endpoints 2
usb 1-1: Endpoint 1 MaxPacketSize 64
usb 1-1: Endpoint 2 MaxPacketSize 64
usb 1-1: Setting MaxPacketSize 64
usb 1-1: FTDI USB Serial Device converter now attached to ttyUSB0


rafal said:

hello, 

did you found any information about your problem? I'm also interested in those topic :) 

0 Kudos

1,918 Views
rafal1z
Contributor I

hello, 

did you found any information about your problem? I'm also interested in those topic :) 

0 Kudos