* [Xenomai-help] Functional difference between tty and xterm?
@ 2007-09-29 23:02 Brian Zenowich
2007-09-29 23:46 ` Brian Zenowich
0 siblings, 1 reply; 3+ messages in thread
From: Brian Zenowich @ 2007-09-29 23:02 UTC (permalink / raw)
To: xenomai
Hello,
I am using kernel 2.6.20.14 with Xenomai 2.3.1 and the Peak CAN driver
6.4. This is the only combination I can get to coexist peacefully. I
have tried 20.18/2.3.3 and 22.9/2.4rc3 but the former fails xeno-test,
and the latter hangs on boot when loading the Peak driver.
I have a Core2 Duo. Kernel SMP is enabled. SMI/ACPI/APM is all
configured to make Xenomai happy. User-space Xenomai was NOT configured
with --enable-smp.
My ncurses-based program runs well from the tty (as root), but if I
'startx' and try to run my program from an xterm window (still as root),
it hangs the machine at the moment it calls CAN_Init(). CAN_Init() is
essentially a call to rt_dev_open("/dev/pcan0", 0_RDWR). I am using a
PCI CAN card.
I am able to launch my program from the tty, then switch to a new tty
and startx from there. If I switch back to my program's tty, it is still
humming along.
Do you have any thoughts as to what is the difference (from a Xenomai
user-space program's point of view) between running in a tty and running
in an xterm?
Why would the rt_dev_open() call work from a tty, but not in an xterm?
Thanks for any insight you might have,
-Brian Z.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Xenomai-help] Functional difference between tty and xterm?
2007-09-29 23:02 [Xenomai-help] Functional difference between tty and xterm? Brian Zenowich
@ 2007-09-29 23:46 ` Brian Zenowich
2007-09-30 15:54 ` Jan Kiszka
0 siblings, 1 reply; 3+ messages in thread
From: Brian Zenowich @ 2007-09-29 23:46 UTC (permalink / raw)
To: xenomai
Nevermind. Adding "Option NoAccel True" to xorg.conf (i810 driver) fixed
it. I thought this was just to reduce latencies. I didn't realize I
couldn't even access my CAN card without it!
Thanks,
-Brian Z.
Brian Zenowich wrote:
> Hello,
>
> I am using kernel 2.6.20.14 with Xenomai 2.3.1 and the Peak CAN driver
> 6.4. This is the only combination I can get to coexist peacefully. I
> have tried 20.18/2.3.3 and 22.9/2.4rc3 but the former fails xeno-test,
> and the latter hangs on boot when loading the Peak driver.
>
> I have a Core2 Duo. Kernel SMP is enabled. SMI/ACPI/APM is all
> configured to make Xenomai happy. User-space Xenomai was NOT configured
> with --enable-smp.
>
> My ncurses-based program runs well from the tty (as root), but if I
> 'startx' and try to run my program from an xterm window (still as root),
> it hangs the machine at the moment it calls CAN_Init(). CAN_Init() is
> essentially a call to rt_dev_open("/dev/pcan0", 0_RDWR). I am using a
> PCI CAN card.
>
> I am able to launch my program from the tty, then switch to a new tty
> and startx from there. If I switch back to my program's tty, it is still
> humming along.
>
> Do you have any thoughts as to what is the difference (from a Xenomai
> user-space program's point of view) between running in a tty and running
> in an xterm?
>
> Why would the rt_dev_open() call work from a tty, but not in an xterm?
>
> Thanks for any insight you might have,
>
> -Brian Z.
>
> _______________________________________________
> Xenomai-help mailing list
> Xenomai-help@domain.hid
> https://mail.gna.org/listinfo/xenomai-help
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Xenomai-help] Functional difference between tty and xterm?
2007-09-29 23:46 ` Brian Zenowich
@ 2007-09-30 15:54 ` Jan Kiszka
0 siblings, 0 replies; 3+ messages in thread
From: Jan Kiszka @ 2007-09-30 15:54 UTC (permalink / raw)
To: Brian Zenowich; +Cc: xenomai
[-- Attachment #1: Type: text/plain, Size: 509 bytes --]
Brian Zenowich wrote:
> Nevermind. Adding "Option NoAccel True" to xorg.conf (i810 driver) fixed
> it. I thought this was just to reduce latencies. I didn't realize I
> couldn't even access my CAN card without it!
That it avoids crashes is new to me as well. If you have a bit time,
please try to attach a serial console (see
linux/Documentation/serial-console.txt) and check if you get some oopses
when you leave the option out. That may help us to find the underlying
reason.
Thanks,
Jan
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 249 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-09-30 15:54 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-29 23:02 [Xenomai-help] Functional difference between tty and xterm? Brian Zenowich
2007-09-29 23:46 ` Brian Zenowich
2007-09-30 15:54 ` Jan Kiszka
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.