Strange behavior of serial console under 2.4.9
The serial console under 2.4.9 is very strange. It is very slow. I have no such problem with 2.4.3/2.4.5. Telnet is fine.
H.J.
I haven't noticed that. I just ran top with 0 delay at 115200 and it seems normally fast to me.
Regards,
Brad
----- Original Message -----
From: "H . J . Lu" <[email protected]>
To: <[email protected]>
Sent: Thursday, October 18, 2001 9:57 PM
Subject: Strange behavior of serial console under 2.4.9
Quoted 2 lines
The serial console under 2.4.9 is very strange. It is very slow. I have no such problem with 2.4.3/2.4.5. Telnet is fine.
Quoted 3 lines · Bradley D. LaRonde
I haven't noticed that. I just ran top with 0 delay at 115200 and it seems normally fast to me.
I am using 9600 buad. It used to be ok under 2.4.3/2.4.5. But under 2.4.9, the first 10 minutes after boot is very slow. After that, it seems ok.
H.J.
Quoted 3 lines · H . J . Lu
I am using 9600 buad. It used to be ok under 2.4.3/2.4.5. But under 2.4.9, the first 10 minutes after boot is very slow. After that, it seems ok.
That might be driver-specific. I'm using drivers/tc/zs.c and it works
fine at 115200 bps.
Signature · 3 lines
+ Maciej W. Rozycki, Technical University of Gdansk, Poland + +--------------------------------------------------------------+ + e-mail: [email protected], PGP key available +
H.J., which serial driver are you using?
Regards,
Brad
----- Original Message -----
From: "Maciej W. Rozycki" <[email protected]>
To: "H . J . Lu" <[email protected]>
Cc: <[email protected]>
Sent: Friday, October 19, 2001 9:26 AM
Subject: Re: Strange behavior of serial console under 2.4.9
Quoted 14 lines · H . J . Lu
Quoted 4 lines
I am using 9600 buad. It used to be ok under 2.4.3/2.4.5. But under 2.4.9, the first 10 minutes after boot is very slow. After that, it seems ok.
That might be driver-specific. I'm using
drivers/tc/zs.cand it works
fine at 115200 bps.(quoted diff) +3
-0+ Maciej W. Rozycki, Technical University of Gdansk, Poland + +--------------------------------------------------------------+ + e-mail: [email protected], PGP key available +
Quoted 6 lines · Maciej W. Rozycki
Quoted 3 lines
I am using 9600 buad. It used to be ok under 2.4.3/2.4.5. But under 2.4.9, the first 10 minutes after boot is very slow. After that, it seems ok.
That might be driver-specific. I'm using
drivers/tc/zs.cand it works
fine at 115200 bps.
I haven't noticed this problem ever on Origins which use the standard 16550 driver.
Ralf
Backspace on Virtual Console causes oops
In reply to Maciej W. RozyckiDear All,
I am having a problem with the backspace key on a virtual terminal on a 2.4.2 kernel. If I hit backspace when there is input at the command line - no problem it deletes the character before the cursor. But if I press backspace when there are no characters at the command prompt, the kernel throws an oops. The process causing the oops is Bash.
Note, on the Serial console, backspace works fine all the time.
Has anyone ever seen anything like this ? If you have how did you solve it ?
Does anyone know the program flow / program details of what happens when backspace is pressed eg :
Key In > Key passed to Routine X > Routine X
passes it to Routine Y etc > Bash receives key.
Or could someone point me to a doc that may explain this ?
Thx
__________________________________________________
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com
Re: Backspace on Virtual Console causes oops
Quoted 13 lines · Wayne Gowcher
Dear All,
I am having a problem with the backspace key on a virtual terminal on a 2.4.2 kernel. If I hit backspace when there is input at the command line - no problem it deletes the character before the cursor. But if I press backspace when there are no characters at the command prompt, the kernel throws an oops. The process causing the oops is Bash.
Note, on the Serial console, backspace works fine all the time.
Quoted 3 lines
Has anyone ever seen anything like this ? If you have how did you solve it ?
Guess 1: You've got PC UARTs and drivers/char/serial.c Guess 2: TAB TAB in bash causes the oops too.
Guess 3: You didn't change famous beep function in the driver.
Regards,
Gleb.
Re: Backspace on Virtual Console causes oops
Gleb,
Quoted 5 lines
Guess 1: You've got PC UARTs and
drivers/char/serial.c
Guess 2: TAB TAB in bash causes the oops too. Guess 3: You didn't change famous beep function in the driver.
Correct on all 3 counts. Thanks for pointing the way.
Also thanks to Pete Popov and James Simmons. In particular to James for telling me to look at vt.c, functions kd_nosound and _kd_mksound. I changed the ifdef to be aware of my board and now the problem is solved.
To All,
I am grateful that my problem was solved quickly. But before I posted to the list I did a search on "Backspace oops linux", "Backspace crash linux" and a few other combinations to see if this was possibly a known problem. But turned nothing up.
Is there any other list / repository I should be looking at to pick up on bugs like this ?
Any tips / info would be greatly appreciated.
Wayne
__________________________________________________
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com
Re: Backspace on Virtual Console causes oops
Quoted 10 lines · Wayne Gowcher
Gleb,
Quoted 5 lines
Guess 1: You've got PC UARTs and
drivers/char/serial.c
Guess 2: TAB TAB in bash causes the oops too. Guess 3: You didn't change famous beep function in the driver.Correct on all 3 counts. Thanks for pointing the way.
In fact, guess 1 is irrelevant. :-)
Quoted 10 lines
I am grateful that my problem was solved quickly. But before I posted to the list I did a search on "Backspace oops linux", "Backspace crash linux" and a few other combinations to see if this was possibly a known problem. But turned nothing up.
Is there any other list / repository I should be looking at to pick up on bugs like this ?Any tips / info would be greatly appreciated.
This is a famous problem, just look at vt.c, you'll see a lot of ifdefs around sound routines. Just every porting engineer who encounter this problem solved it himself (and added own ifdef to vt.c). In my case, I just got fault epc, found the address in objdump -D output and look at the sources. For me it seems easier, than posting a message to a list. <nothing personal, really>
Regards,
Gleb.
Re: Backspace on Virtual Console causes oops
Quoted 7 lines
This is a famous problem, just look at
vt.c, you'll see a lot of ifdefs around sound routines. Just every porting engineer who encounter this problem solved it himself (and added own ifdef tovt.c). In my case, I just got fault epc, found the address in objdump -D output and look at the sources. For me it seems easier, than posting a message to a list. <nothing personal, really>
I plan to have this problem removed in 2.5.X when the console system is migrated to the input api :-)
Re: Backspace on Virtual Console causes oops
In reply to Wayne GowcherQuoted 11 lines · Wayne Gowcher
Dear All,
I am having a problem with the backspace key on a virtual terminal on a 2.4.2 kernel. If I hit backspace when there is input at the command line - no problem it deletes the character before the cursor. But if I press backspace when there are no characters at the command prompt, the kernel throws an oops. The process causing the oops is Bash.
Note, on the Serial console, backspace works fine all the time.
I'll make a guess. With no input at the line, when you hit backspace, the shell is probably generating a beep. Your kernel is not handling that. I don't remember exactly where the "beep code" was but you can probably find it pretty quickly.
Pete
Quoted 19 lines
Has anyone ever seen anything like this ? If you have how did you solve it ?
Does anyone know the program flow / program details of what happens when backspace is pressed eg :
Key In > Key passed to Routine X > Routine X
passes it to Routine Y etc > Bash receives key.Or could someone point me to a doc that may explain this ?
Thx
__________________________________________________
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com
Re: Backspace on Virtual Console causes oops
Quoted 5 lines
I'll make a guess. With no input at the line, when you hit backspace, the shell is probably generating a beep. Your kernel is not handling that. I don't remember exactly where the "beep code" was but you can probably find it pretty quickly.
linux/drivers/char/vt.c.
It is the functions kd_nosound and _kd_mksound.
ld error " linking PIC files with non-PIC files "
In reply to Wayne GowcherI am trying to cross compile X using the redhat7.0 distribution from the sgi mips site as my base. Most files compile OK, but they fail at the link stage with the following error :
linking PIC files with non-PIC files.
I created my cross-compile library files in /usr/mipsel-linux from the packages :
glibc-2.2.2-1.mipsel.rpm & glibc-devel-2.2.2-1.mipsel.rpm
are there other libraries I need ?
I found a reference on the web to a module called libc6-pic.o, I don't see this anywhere in my libraries is this what I need ?
Has anyone else seen this problem before and do they know how to fix it ?
TIA
Wayne
__________________________________________________
Do You Yahoo!?
Find the one for you at Yahoo! Personals
http://personals.yahoo.com
Re: ld error " linking PIC files with non-PIC files "
Quoted 13 lines · Wayne Gowcher
I am trying to cross compile X using the redhat7.0 distribution from the sgi mips site as my base. Most files compile OK, but they fail at the link stage with the following error :
linking PIC files with non-PIC files.
I created my cross-compile library files in
/usr/mipsel-linuxfrom the packages :
glibc-2.2.2-1.mipsel.rpm & glibc-devel-2.2.2-1.mipsel.rpm
are there other libraries I need ?
Quoted 6 lines
I found a reference on the web to a module called libc6-pic.o, I don't see this anywhere in my libraries is this what I need ?
Has anyone else seen this problem before and do they know how to fix it ?
Don't use non-pic code ever in userspace. Actually it's very strange that you hit this problem as gcc defaults to pic code so you should try to find which of your object files or libraries are non-pic.
Ralf
A message that is not in the archive (sent off-list or not yet received): [email protected]
Re: ld error " linking PIC files with non-PIC files "
Quoted 8 lines · renc stone
That's the same problem as mine.
I try to use 64bit long long div& mod in one module, and find I miss some_divdi3and something like that.when I try to link my module with libgcc.a, in my mipsel-glibc 2.95.3, the ld report the same thing.
Does it mean I can't use 64bit div in module? How to get rid of this error?
Again, it's a grave mistake to mix pic and non-pic libraries.
To solve this you must either supply your own non-pic versions of the routines in question or - and better - try to avoid them. In your case take a look at <asm/div64.h> which supplies a 64-bit by 32-bit division routine.
Ralf
Quoted 4 lines · H . J . Lu
The serial console under 2.4.9 is very strange. It is very slow. I have no such problem with 2.4.3/2.4.5. Telnet is fine.
That is usually a symptom when the serial interrupts are not correctly delivered.
Jun
Let's try that again...
Agreed - I've seen it once where it spit 16 chars, long pause, 16 more chars, etc. This was due to the serial driver not getting interrupts.
Regards,
Brad
----- Original Message -----
From: "Jun Sun" <[email protected]>
To: "H . J . Lu" <[email protected]>
Cc: <[email protected]>
Sent: Friday, October 19, 2001 12:53 PM
Subject: Re: Strange behavior of serial console under 2.4.9
Quoted 8 lines
Quoted 4 lines · H . J . Lu
The serial console under 2.4.9 is very strange. It is very slow. I have no such problem with 2.4.3/2.4.5. Telnet is fine.
That is usually a symptom when the serial interrupts are not correctly delivered.