Quantcast
Channel: Processors forum - Recent Threads
Viewing all articles
Browse latest Browse all 17527

Remove ttyXX(tty-ttyzf) and ptyXX(ptya0-zf). in OMAP L138

$
0
0

Hi

   I'm using OMAPL138 LCDK kit and in /dev directory there is lot of nodes ttyXX(tty-ttyzf) and ptyXX(ptya0-zf).

How to remove it because my device driver not working properly while giving insmod.

#insmod spi_sensor.ko

insmod: error inserting 'spi_next_sensor.ko': -1 Device or resource busy.

Same driver working fine in AM335x android platform because there is no huge number of ttyXX(tty-ttyzf) and ptyXX(ptya0-zf). in /dev file system

In OMAPl138 its occupying the most of MAJOR and MINOR number is may be thats the reason for this problem.

#define SPIDEV_MAJOR 153 /* assigned */
#define N_SPI_MINORS 32 /* ... up to 256 */                                                                                                                       status = register_chrdev(SPIDEV_MAJOR, "spi", &spi_sensor_fops);

register_chrdev () returning negative value.  its cant allocate the major number but there is no MAJOR (153) number in /dev nodes.

What is the reason for insmod error?

Please let me know any procedure to solve it, otherwise i need to modify my driver to register dynamic major number.

my /dev nodes are here (Please visit the site to view this file)

Thanks

Sangly.


Viewing all articles
Browse latest Browse all 17527

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>