Fixed
Created: Feb 23, 2023
Updated: Apr 27, 2023
Resolved Date: Apr 9, 2023
Previous ID: LTAFLTS-3797
Found In Version: 10.23.9.0
Fix Version: 10.23.17.0
Severity: Standard
Applicable for: Wind River Linux CD
Component/s: Userspace
~# systemctl status rng-tools × rng-tools.service - Hardware RNG Entropy Gatherer Daemon Loaded: loaded (/usr/lib/systemd/system/rng-tools.service; enabled; preset: enabled) Active: failed (Result: exit-code) since Thu 2023-02-23 06:48:36 UTC; 6min ago Duration: 6.779s Process: 224 ExecStart=/usr/sbin/rngd -f $EXTRA_ARGS (code=exited, status=1/FAILURE) Main PID: 224 (code=exited, status=1/FAILURE) Feb 23 06:48:29 xilinx-zynqmp rngd[224]: [rndr ]: No HW SUPPORT Feb 23 06:48:29 xilinx-zynqmp rngd[224]: [rndr ]: Initialization Failed Feb 23 06:48:29 xilinx-zynqmp rngd[224]: [jitter]: JITTER timeout set to 5 sec Feb 23 06:48:31 xilinx-zynqmp rngd[224]: [jitter]: Initializing AES buffer Feb 23 06:48:36 xilinx-zynqmp rngd[224]: [jitter]: Unable to obtain AES key, disabling JITTER source Feb 23 06:48:36 xilinx-zynqmp rngd[224]: [jitter]: Initialization Failed Feb 23 06:48:36 xilinx-zynqmp rngd[224]: Can't open any entropy source Feb 23 06:48:36 xilinx-zynqmp rngd[224]: Maybe RNG device modules are not loaded Feb 23 06:48:36 xilinx-zynqmp systemd[1]: rng-tools.service: Main process exited, code=exited, status=1/FAILURE Feb 23 06:48:36 xilinx-zynqmp systemd[1]: rng-tools.service: Failed with result 'exit-code'. ~# ~# ~# systemctl restart rng-tools ~# systemctl status rng-tools × rng-tools.service - Hardware RNG Entropy Gatherer Daemon Loaded: loaded (/usr/lib/systemd/system/rng-tools.service; enabled; preset: enabled) Active: failed (Result: exit-code) since Thu 2023-02-23 07:01:15 UTC; 5s ago Duration: 5.173s Process: 3294 ExecStart=/usr/sbin/rngd -f $EXTRA_ARGS (code=exited, status=1/FAILURE) Main PID: 3294 (code=exited, status=1/FAILURE) Feb 23 07:01:10 xilinx-zynqmp rngd[3294]: [rndr ]: No HW SUPPORT Feb 23 07:01:10 xilinx-zynqmp rngd[3294]: [rndr ]: Initialization Failed Feb 23 07:01:10 xilinx-zynqmp rngd[3294]: [jitter]: JITTER timeout set to 5 sec Feb 23 07:01:10 xilinx-zynqmp rngd[3294]: [jitter]: Initializing AES buffer Feb 23 07:01:15 xilinx-zynqmp rngd[3294]: [jitter]: Unable to obtain AES key, disabling JITTER source Feb 23 07:01:15 xilinx-zynqmp rngd[3294]: [jitter]: Initialization Failed Feb 23 07:01:15 xilinx-zynqmp rngd[3294]: Can't open any entropy source Feb 23 07:01:15 xilinx-zynqmp rngd[3294]: Maybe RNG device modules are not loaded Feb 23 07:01:15 xilinx-zynqmp systemd[1]: rng-tools.service: Main process exited, code=exited, status=1/FAILURE Feb 23 07:01:15 xilinx-zynqmp systemd[1]: rng-tools.service: Failed with result 'exit-code'. ~# ~# ~# journalctl -u rng-tools Feb 23 06:48:29 xilinx-zynqmp systemd[1]: Started Hardware RNG Entropy Gatherer Daemon. Feb 23 06:48:29 xilinx-zynqmp rngd[224]: Initializing available sources Feb 23 06:48:29 xilinx-zynqmp rngd[224]: [hwrng ]: Initialization Failed Feb 23 06:48:29 xilinx-zynqmp rngd[224]: [rndr ]: No HW SUPPORT Feb 23 06:48:29 xilinx-zynqmp rngd[224]: [rndr ]: Initialization Failed Feb 23 06:48:29 xilinx-zynqmp rngd[224]: [jitter]: JITTER timeout set to 5 sec Feb 23 06:48:31 xilinx-zynqmp rngd[224]: [jitter]: Initializing AES buffer Feb 23 06:48:36 xilinx-zynqmp rngd[224]: [jitter]: Unable to obtain AES key, disabling JITTER source Feb 23 06:48:36 xilinx-zynqmp rngd[224]: [jitter]: Initialization Failed Feb 23 06:48:36 xilinx-zynqmp rngd[224]: Can't open any entropy source Feb 23 06:48:36 xilinx-zynqmp rngd[224]: Maybe RNG device modules are not loaded Feb 23 06:48:36 xilinx-zynqmp systemd[1]: rng-tools.service: Main process exited, code=exited, status=1/FAILURE Feb 23 06:48:36 xilinx-zynqmp systemd[1]: rng-tools.service: Failed with result 'exit-code'. Feb 23 07:01:09 xilinx-zynqmp systemd[1]: Started Hardware RNG Entropy Gatherer Daemon. Feb 23 07:01:09 xilinx-zynqmp rngd[3294]: Initializing available sources Feb 23 07:01:10 xilinx-zynqmp rngd[3294]: [hwrng ]: Initialization Failed Feb 23 07:01:10 xilinx-zynqmp rngd[3294]: [rndr ]: No HW SUPPORT Feb 23 07:01:10 xilinx-zynqmp rngd[3294]: [rndr ]: Initialization Failed Feb 23 07:01:10 xilinx-zynqmp rngd[3294]: [jitter]: JITTER timeout set to 5 sec Feb 23 07:01:10 xilinx-zynqmp rngd[3294]: [jitter]: Initializing AES buffer Feb 23 07:01:15 xilinx-zynqmp rngd[3294]: [jitter]: Unable to obtain AES key, disabling JITTER source Feb 23 07:01:15 xilinx-zynqmp rngd[3294]: [jitter]: Initialization Failed Feb 23 07:01:15 xilinx-zynqmp rngd[3294]: Can't open any entropy source Feb 23 07:01:15 xilinx-zynqmp rngd[3294]: Maybe RNG device modules are not loaded Feb 23 07:01:15 xilinx-zynqmp systemd[1]: rng-tools.service: Main process exited, code=exited, status=1/FAILURE Feb 23 07:01:15 xilinx-zynqmp systemd[1]: rng-tools.service: Failed with result 'exit-code'. ~# ~# ~# rpm -qa | grep rng-tools rng-tools-6.16-r0.cortexa53 ~# ~# ls -l /dev/hwrng crw------- 1 root root 10, 183 Feb 23 06:48 /dev/hwrng ~# image build log can be checked from http://pek-lpgtest7301.wrs.com/master-wr/log/Userspace/xilinx-zynqmp/auto-standalone_usrmerge_usrmerge_systemd/ZCU102_standard_glibc-std_OE_systemd/230222-094000/consolelogs/WASSP_build_LAMP_xilinx-zynqmp_platform_ZCU102.usrmerge.standard.true.glibcstd.lpgbuildcdcWASSP_LINUX_MASTER_WRtestcaseswrlinuxutilsfrags_0222_094122.log
1. setup.sh
--machine xilinx-zynqmp --dl-layers --distro wrlinux --templates feature/xfce feature/LAMP feature/aws feature/azure feature/grpc feature/ipv6 feature/krb5 feature/libvirt feature/lttng feature/mariadb feature/nfsd feature/ntp feature/opencv feature/package-management feature/pam-faillock feature/python-tkinter feature/software-entropy feature/sysklogd feature/system-stats feature/target-toolchain feature/tcpslice feature/usrmerge feature/virt-host feature/xfce --layers meta-filesystems meta-iot-cloud meta-security-compliance meta-virtualization --dl-layers --accept-eula=yes
2. source environment-setup-<host>-wrlinuxsdk-linux
source oe-init-build-env
3. modify local.conf
IMAGE_INSTALL:append = " rng-tools"
4. bitbake wrlinux-image-std
5. boot target and run "systemctl status rng-tools.service"