This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

How to create .so in Linux tree.

Hi

       I'm working in AM335x with Linux. I have to connect my  cp210x USB to serial converter. Hence i have enabled USB serial converter driver for cp210x in menuconfig and its working fine.

I want to create the cp210x.c as *.SO (Shared Object) file for work with my android tablet.

Can anyone help me how to create *.so file from linux kernel tree. and also i want to know if i placed the cp210x.so in system/lib and if i connect the USB converter it will recognize the .so and it will work.?

Thanks in advance

Sangilikumar

  • That is impossible - you cannot create a .so from a kernel driver. .so is user space library.

  • Thanks Mr.Bin Liu

                        So how can i make my cp210 converter work fine in all android/ Linux tablets.

    cp210x.c is there in drivers/USB/serial directory. That driver *.C file is not work if i convert as *.so.?

    Do we have to write separately  for .so to make my connector work fine.

    Do you mean that if we convert the cp210x.c into .so its will not work fine?  

    I'm sorry if i ask stupid question because i'm new to this topic.