Hi,
I have written a console driver where I also do the serial driver
registration and handling. The driver seems to work fine till the
login point(reads and writes). The driver for some reason does not
print the content I type on console after login prompt. Any reason
why this might be happening ?
--
regards,
Shashidhar Hiremath
On Tue, 2012-08-07 at 13:52 +0530, Shashidhar Hiremath wrote:
> The driver for some reason does not
> print the content I type on console after login prompt. Any reason
> why this might be happening ?
I don't know if it is just me, but a code snippet might help
understanding what happens in your driver.
regards
Dan
--
Dan Luedtke
http://www.danrl.de
On Tue, Aug 7, 2012 at 10:22 AM, Shashidhar Hiremath
<[email protected]> wrote:
> Hi,
> I have written a console driver where I also do the serial driver
> registration and handling. The driver seems to work fine till the
> login point(reads and writes). The driver for some reason does not
> print the content I type on console after login prompt. Any reason
> why this might be happening ?
login and getty do a lot of TTY black magic, maybe you forgot to implement
something like hangup()...
Use strace to find out what the login programs are doing.
--
Thanks,
//richard
Hi Richard,
I am new to serial framework. Can you please elaborate on what you
mean by implementing a hangup ?
On Tue, Aug 7, 2012 at 2:06 PM, richard -rw- weinberger
<[email protected]> wrote:
> On Tue, Aug 7, 2012 at 10:22 AM, Shashidhar Hiremath
> <[email protected]> wrote:
>> Hi,
>> I have written a console driver where I also do the serial driver
>> registration and handling. The driver seems to work fine till the
>> login point(reads and writes). The driver for some reason does not
>> print the content I type on console after login prompt. Any reason
>> why this might be happening ?
>
> login and getty do a lot of TTY black magic, maybe you forgot to implement
> something like hangup()...
> Use strace to find out what the login programs are doing.
>
> --
> Thanks,
> //richard
--
regards,
Shashidhar Hiremath
On Tue, Aug 7, 2012 at 10:49 AM, Shashidhar Hiremath
<[email protected]> wrote:
> Hi Richard,
> I am new to serial framework. Can you please elaborate on what you
> mean by implementing a hangup ?
struct tty_operations' hangup()
--
Thanks,
//richard
On 08/07/2012 10:26 AM, Dan Luedtke wrote:
> On Tue, 2012-08-07 at 13:52 +0530, Shashidhar Hiremath wrote:
>> The driver for some reason does not
>> print the content I type on console after login prompt. Any reason
>> why this might be happening ?
>
> I don't know if it is just me, but a code snippet might help
> understanding what happens in your driver.
Yea, without that we can barely help you.
regards,
--
js
suse labs
the code is a bit unclean to send directly. But any information like
"does driver change modes once it prompts for login"
can be helpful for debugging since my code does not seem to work after login .
Behaviour : Driver prints charecter untill devel login on console. It
accepts characters before login prompt but doesnot accept the
charecters after it prompts for login. I enter the username and it is
not displayed.
On Tue, Aug 7, 2012 at 2:38 PM, Jiri Slaby <[email protected]> wrote:
> On 08/07/2012 10:26 AM, Dan Luedtke wrote:
>> On Tue, 2012-08-07 at 13:52 +0530, Shashidhar Hiremath wrote:
>>> The driver for some reason does not
>>> print the content I type on console after login prompt. Any reason
>>> why this might be happening ?
>>
>> I don't know if it is just me, but a code snippet might help
>> understanding what happens in your driver.
>
> Yea, without that we can barely help you.
>
> regards,
> --
> js
> suse labs
--
regards,
Shashidhar Hiremath
On Tue, Aug 7, 2012 at 11:51 AM, Shashidhar Hiremath
<[email protected]> wrote:
> the code is a bit unclean to send directly. But any information like
> "does driver change modes once it prompts for login"
> can be helpful for debugging since my code does not seem to work after login .
Then clean it up.
You have do to this task anyway.
> Behaviour : Driver prints charecter untill devel login on console. It
> accepts characters before login prompt but doesnot accept the
> charecters after it prompts for login. I enter the username and it is
> not displayed.
There are a gazillion things that could cause this behavior.
--
Thanks,
//richard
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?
On 08/07/2012 11:51 AM, Shashidhar Hiremath wrote:
> the code is a bit unclean to send directly.
Whatever, just send it out. Otherwise sorry, you are on your own.
regards,
--
js
suse labs
thanks guys, got it to work. the receive interrupt was somehow getting disabled.
On Tue, Aug 7, 2012 at 4:12 PM, Jiri Slaby <[email protected]> wrote:
> A: Because it messes up the order in which people normally read text.
> Q: Why is top-posting such a bad thing?
> A: Top-posting.
> Q: What is the most annoying thing in e-mail?
>
> On 08/07/2012 11:51 AM, Shashidhar Hiremath wrote:
>> the code is a bit unclean to send directly.
>
> Whatever, just send it out. Otherwise sorry, you are on your own.
>
> regards,
> --
> js
> suse labs
--
regards,
Shashidhar Hiremath