Skip to contentSkip to conversation

PRNG not seeded on AMD K7

Xenomai-core Jeroen Van den Keybus 3 participants 4 messages Mar 12, 2006

lore
Share & tools
lore
#0 lore raw

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.

#1 lore raw
Quoted 8 lines · Jeroen Van den Keybus

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.

Signature · 1 line
					    Gilles Chanteperdrix.
#2 lore raw
Quoted 7 lines · Gilles Chanteperdrix
Quoted 6 lines · Jeroen Van den Keybus

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.

Quoted 6 lines
Quoted 2 lines

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.

Signature · 1 line
					    Gilles Chanteperdrix.
#3 lore raw
In reply to Jeroen Van den Keybus
Quoted 3 lines · Jeroen Van den Keybus

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?

Quoted 11 lines

Jeroen.

------------------------------------------------------------------------

_______________________________________________
Xenomai-core mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-core

Signature · 1 line
Philippe.