LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.

Notices

Reply
 
Search this Thread
Old 08-22-2012, 10:14 AM   #1
lnmurthy5
LQ Newbie
 
Registered: Aug 2012
Posts: 2

Rep: Reputation: Disabled
Not able to see the usb device instance in minicom for uclinux target


Hello,
I am new to this post,Currently I am working on a target for which I need to connect a usb keyboard and should be able to input on the console of the device.The details are:
Target board:uclinux for coldfire processor.

when I connect through the serial port and see the filesystem through minicom,I couldnot see the usbdevice instance in /dev of uclinux but there are messages of connection and disconnection(drivers are available in uclinux for the keyboard).I have to input through the keyboard.Can anyone plz help me in approaching the issue.
 
Old 08-26-2012, 11:20 AM   #2
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,395
Blog Entries: 2

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
I will rephrase your question to make sure I understand it correctly.
You have a ucLinux based board with a USB-attached keyboard. The ucLinux based board also has a serial port which you can use to login from a serial terminal of some sort (minicom running on some other host). You want to be able to use the USB keyboard as the standard input component of your serial login?
In order to do this, I think you will have to craft your own getty process that switches its standard input upon completion of the login process. You would probably want to start by writing some code to open and read the keyboard as a device, reading from /dev/whatever_the_USB_keyboard_is. Once you understand how the keyboard sends its data, you can build this into your_getty.
--- rod.
 
Old 08-26-2012, 11:44 AM   #3
lnmurthy5
LQ Newbie
 
Registered: Aug 2012
Posts: 2

Original Poster
Rep: Reputation: Disabled
Yes you are right.But "You want to be able to use the USB keyboard as the standard input component of your serial login?" this is not right.I have to input through the keyboard to the device it is attached.Basically it has two processors and one is running uclinux kernel and the other is running the bootloader and UI of the device so that we can input our data into it.Here I can see the dmesg messages showing drivers are installed.

Current status: I can input the characters through the keyboard seen on the minicom terminal.Now I have to capture the characters going to terminal and place them on the GUI specific fields on the device.That is I have to communicate from one processor to another processor.
 
Old 08-26-2012, 11:55 AM   #4
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,395
Blog Entries: 2

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
Okay, your description seems to have some holes. A processor running a bootloader? To boot what?
Are you saying that you have a whole separate CPU that is reading the USB keyboard and writing to the 'GUI'? If I understand this correctly, you essentially have a CPU of some sort that is performing the function of a terminal. It uses a USB keyboard and some kind of display device. What physical connection is there between this second device and your coldfire ucLinux host? Is this second CPU also running Linux?

--- rod.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Errors when adding device drivers to uClinux blink182 Linux - Embedded & Single-board computer 2 12-24-2010 12:47 AM
[SOLVED] Question in adding device drivers for kernel compilation of uClinux blink182 Linux - Embedded & Single-board computer 4 11-07-2010 10:42 PM
uclinux custom device driver not loading, possibly multiple problems godzilla Linux - Kernel 12 09-10-2007 07:39 PM
Question on locating the instance of a device installed? 1jnike Suse/Novell 2 07-26-2007 05:09 PM
how to install dynamic device driver in uClinux chandansingh Programming 1 04-26-2005 04:02 PM


All times are GMT -5. The time now is 05:29 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration