Loading the usbserial module on the quickstart board

cancel
Showing results for 
Search instead for 
Did you mean: 

Loading the usbserial module on the quickstart board

1,522 Views
JoshuaParrish
Contributor I

To whom it may concern, 

 

I would like to add the usbserial and cp210x modules to the quickstart board image. 

 

Does anyone know hot to do this?

 

I'm running the imx53 quickstart board, no special attachements (hdmi or display); just the board. 

I'm trying to get a simple usb to serial chip functioning. 

The chip is a cp2102 that is supported by the usbserial and cp210x modules built in to most kernels. 

However, the quickstart board image does not have these modules installed. 

 

Any help would be vastly appreciated. 

Tags (1)
0 Kudos
10 Replies

430 Views
RichardAllen
Contributor I

I was able to get the ko to build. Needed to use the [M] modular option instead of the [*] option when selecting the drivers.

0 Kudos

430 Views
RichardAllen
Contributor I

I too am trying to get ftdi_sio included, but after following the above, I don't find the ftdi_sio.ko being built (I see an ftdi_sio.o_

Being new to linux/ltib, not sure what is happening. I did expect to find the ftdi_sio.ko being built

Is there a way to build the ko from the command line?

0 Kudos

430 Views
c10ud
Contributor I

Will do, thank you very much!

0 Kudos

430 Views
JoshuaParrish
Contributor I

@Luis 

 

I went ahead and did that with the 11.05 package. It now works great thanks!

 

 

@Riccardo, 

Do exactly as Luis suggested. Download the 11.05 source package.

Then update the LTIB (or start from 11.05) 

Then run ./ltib --selectype "Just to make sure your getting the imx5 series' select which ever release, I did the minimum. 

hit exit then ok

On the next screen just make sure you select configure kernel. 

exit, then ok

Next screen pops up and your configuring your kernel. 

Select device drivers

then usb support make sure that has a *

Then go to usb serial 

make sure the generic is * and then your ftdi_sio module is *. 

0 Kudos

430 Views
LuisCasado
NXP Employee
NXP Employee

Hello,

 

I am using BSP 11.03 and 11.05 kernels with Ubuntu rootfs. Both kernels build fine with USB-serial modules build-in [*]

 

Reflash kernel is very fast with dd in SD card and you don't need to change uboot or rootfs.

 

Best Regards,

0 Kudos

430 Views
c10ud
Contributor I

Interesting, i was just trying to do quite the same thing.

 

I'm using the stock Ubuntu that comes with the i.mx53QSB, i wanted to compile the ftdi_sio module since it's not built-in in the custom kernel that comes with the OS.

 

Is there a way i can do it and avoid to download tons of stuff/reflash the kernel? I tried tricking the kernel installing some 2.6.35 headers from apt and compiling the few files that make the ftdi_sio module, but no luck so far (does not want to compile it, probably not board-related, there's something i am missing at the build-an-out-of-tree-module level)

 

Ideas?

0 Kudos

430 Views
JoshuaParrish
Contributor I

Luis,

 

I went ahead and tried that, unfortunately my kernel refuses to build when I select to have it built in. 

0 Kudos

430 Views
LuisCasado
NXP Employee
NXP Employee
Hi,
I include the support in the kernel [*] instead of [M] and FTDI and generic SDC ttyACMx work fine
Regards,
Luis
0 Kudos

430 Views
JoshuaParrish
Contributor I

Hey luis,

I've actually tried that several times. I keep getting a module incompatibility.

When I type insmod usbserial

I get module incorrect format

 

I've typed in modprobe -f usbserial with no avail. 

I've tried typing in the cmd without the force command.

I've also tried insmod as well.

The mod info has the same kernel version.

 

I'm not really sure what to do I've wrote a new uboot and uimage several times. 

0 Kudos

430 Views
LuisCasado
NXP Employee
NXP Employee

Hello,

 

I have not tested CP210x, but I use FTDI USB to serial device. The procedure is the same:

 

./ltib –c 

Select [*] Configure Kernel

In the Kernel config:

Device drivers -> USB Support ->USB Serial Converter support-> 
* USBBFTDI 
* USB Generic Serial Driver 
* Modem ACM is selected by default

*I don't have my Linux box with me right now, but if I remember well, CP210x are in the list to select.
 

Update your kernel in SD card:

 

sudo dd if= uImage of=/dev/sdb bs=512 seek=2048 && sync && sync

 

Best Regards,

 

Luis

0 Kudos