All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-core] PRNG not seeded on AMD K7
@ 2006-03-12 15:09 Jeroen Van den Keybus
  2006-03-12 15:50 ` Gilles Chanteperdrix
  2006-03-12 15:55 ` Philippe Gerum
  0 siblings, 2 replies; 4+ messages in thread
From: Jeroen Van den Keybus @ 2006-03-12 15:09 UTC (permalink / raw)
  To: xenomai-core

[-- Attachment #1: Type: text/plain, Size: 492 bytes --]

When I try to open an ssh connection to or from a PC running Xenomai, I get
a 'PRNG not seeded' error. However, it only occurs when an RT application is
running (such as 'latency'). The computer on which this occurs is an AMD
K7-650. I've tested on a Pentium III 500 as well (nearly same .config) and
this error doesn't show up then.

Any idea of where I should start debugging ? I assume that PRNG stands
for 'Programmable Random Number Generator' or something like that.

Jeroen.

[-- Attachment #2: Type: text/html, Size: 585 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Xenomai-core] PRNG not seeded on AMD K7
  2006-03-12 15:09 [Xenomai-core] PRNG not seeded on AMD K7 Jeroen Van den Keybus
@ 2006-03-12 15:50 ` Gilles Chanteperdrix
  2006-03-12 16:32   ` Gilles Chanteperdrix
  2006-03-12 15:55 ` Philippe Gerum
  1 sibling, 1 reply; 4+ messages in thread
From: Gilles Chanteperdrix @ 2006-03-12 15:50 UTC (permalink / raw)
  To: Jeroen Van den Keybus; +Cc: xenomai-core

Jeroen Van den Keybus wrote:
 > When I try to open an ssh connection to or from a PC running Xenomai, I get
 > a 'PRNG not seeded' error. However, it only occurs when an RT application is
 > running (such as 'latency'). The computer on which this occurs is an AMD
 > K7-650. I've tested on a Pentium III 500 as well (nearly same .config) and
 > this error doesn't show up then.
 > 
 > Any idea of where I should start debugging ? I assume that PRNG stands
 > for 'Programmable Random Number Generator' or something like that.

See in kernel configuration if you have the CONFIG_HW_RANDOM option
enabled, if the module is loaded when the error occurs, and if
/dev/urandom exists.

-- 


					    Gilles Chanteperdrix.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Xenomai-core] PRNG not seeded on AMD K7
  2006-03-12 15:09 [Xenomai-core] PRNG not seeded on AMD K7 Jeroen Van den Keybus
  2006-03-12 15:50 ` Gilles Chanteperdrix
@ 2006-03-12 15:55 ` Philippe Gerum
  1 sibling, 0 replies; 4+ messages in thread
From: Philippe Gerum @ 2006-03-12 15:55 UTC (permalink / raw)
  To: Jeroen Van den Keybus; +Cc: xenomai-core

Jeroen Van den Keybus wrote:
> When I try to open an ssh connection to or from a PC running Xenomai, I 
> get a 'PRNG not seeded' error. However, it only occurs when an RT 
> application is running (such as 'latency'). The computer on which this 
> occurs is an AMD K7-650. I've tested on a Pentium III 500 as well 
> (nearly same .config) and this error doesn't show up then.
>  
> Any idea of where I should start debugging ? I assume that PRNG stands 
> for 'Programmable Random Number Generator' or something like that.

First guess: something might be perturbated by Xeno's FPU management on AMD; the 
fact that /dev/random might be involved in the issue would tend to confirm this.
Does disabling CONFIG_XENO_HW_FPU on the AMD box change anything?

>  
> Jeroen.
>  
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Xenomai-core mailing list
> Xenomai-core@domain.hid
> https://mail.gna.org/listinfo/xenomai-core


-- 

Philippe.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Xenomai-core] PRNG not seeded on AMD K7
  2006-03-12 15:50 ` Gilles Chanteperdrix
@ 2006-03-12 16:32   ` Gilles Chanteperdrix
  0 siblings, 0 replies; 4+ messages in thread
From: Gilles Chanteperdrix @ 2006-03-12 16:32 UTC (permalink / raw)
  To: Jeroen Van den Keybus, xenomai-core

Gilles Chanteperdrix wrote:
 > Jeroen Van den Keybus wrote:
 >  > When I try to open an ssh connection to or from a PC running Xenomai, I get
 >  > a 'PRNG not seeded' error. However, it only occurs when an RT application is
 >  > running (such as 'latency'). The computer on which this occurs is an AMD
 >  > K7-650. I've tested on a Pentium III 500 as well (nearly same .config) and
 >  > this error doesn't show up then.
 >  > 
 >  > Any idea of where I should start debugging ? I assume that PRNG stands
 >  > for 'Programmable Random Number Generator' or something like that.
 > 
 > See in kernel configuration if you have the CONFIG_HW_RANDOM option
 > enabled, if the module is loaded when the error occurs, and if
 > /dev/urandom exists.

CONFIG_HW_RANDOM is for the /dev/hwrandom device, and libssl uses
/dev/random or /dev/urandom. /dev/urandom is seeded at boot-time
by a script (/etc/init.d/urandom on Debian).

So FPU hardware, as mentioned by Philippe, is a better candidate.

-- 


					    Gilles Chanteperdrix.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-03-12 16:32 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-12 15:09 [Xenomai-core] PRNG not seeded on AMD K7 Jeroen Van den Keybus
2006-03-12 15:50 ` Gilles Chanteperdrix
2006-03-12 16:32   ` Gilles Chanteperdrix
2006-03-12 15:55 ` Philippe Gerum

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.