Keyboard not working at random: crng init done

Having issues with your DietPi installation, or, found a bug? Post it here.
Post Reply
Mohd
Posts: 4
Joined: Thu Jan 30, 2020 4:37 pm

Keyboard not working at random: crng init done

Post by Mohd »

I installed dietpi RPI ARMv6 on my raspberry pi zero w, when the boot stops at

Code: Select all

random: crng init done
, I'm supposed to press Enter right? But the keyboard is not working, tried two but no use. Although I plugged a mouse and it worked!

What should I do ?
User avatar
Joulinar
Posts: 2085
Joined: Sat Nov 16, 2019 12:49 am

Re: Keyboard not working at random: crng init done

Post by Joulinar »

Hi,

At boot, the kernel waits for mouse movements to initialize the random number generator.

Not sure if it helps but maybe you can try to following

Code: Select all

apt-get install haveged
systemctl enable haveged
reboot
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
User avatar
MichaIng
Site Admin
Posts: 2295
Joined: Sat Nov 18, 2017 6:21 pm

Re: Keyboard not working at random: crng init done

Post by MichaIng »

On our RPi image, rng-tools is installed, which should render haveged obsolete.

For first boot, attach some mouse or keyboard and move/type, or wait for a few minutes until the system gathered entropy from elsewhere.

Then check if rng-tools is running:

Code: Select all

systemctl status rngd
journalctl -u rngd
Mohd
Posts: 4
Joined: Thu Jan 30, 2020 4:37 pm

Re: Keyboard not working at random: crng init done

Post by Mohd »

Joulinar wrote: Thu Jan 30, 2020 8:22 pm Hi,

At boot, the kernel waits for mouse movements to initialize the random number generator.

Not sure if it helps but maybe you can try to following

Code: Select all

apt-get install haveged
systemctl enable haveged
reboot
Joulinar, I can't type anything, the whole keyboard is not working. I tried moving and clicking the mouse but nothing happened (though it's working)
Mohd
Posts: 4
Joined: Thu Jan 30, 2020 4:37 pm

Re: Keyboard not working at random: crng init done

Post by Mohd »

MichaIng wrote: Fri Jan 31, 2020 2:21 am On our RPi image, rng-tools is installed, which should render haveged obsolete.

For first boot, attach some mouse or keyboard and move/type, or wait for a few minutes until the system gathered entropy from elsewhere.

Then check if rng-tools is running:

Code: Select all

systemctl status rngd
journalctl -u rngd
As I mentioned previously, I can't type anything since the whole keyboard is not working with the os (though it worked with raspbian before). And the mouse moving/clicking did nothing.
I just noticed I'm having [end kernel panic] and an error loading libraries:

https://drive.google.com/file/d/120LJlh ... p=drivesdk
User avatar
Joulinar
Posts: 2085
Joined: Sat Nov 16, 2019 12:49 am

Re: Keyboard not working at random: crng init done

Post by Joulinar »

Hi,

did you tried a fresh installation on a different SD Card?
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Mohd
Posts: 4
Joined: Thu Jan 30, 2020 4:37 pm

Re: Keyboard not working at random: crng init done

Post by Mohd »

Joulinar wrote: Fri Jan 31, 2020 12:30 pm Hi,

did you tried a fresh installation on a different SD Card?
No, does that mean the image is corrupted ? I'll try another SD
User avatar
Joulinar
Posts: 2085
Joined: Sat Nov 16, 2019 12:49 am

Re: Keyboard not working at random: crng init done

Post by Joulinar »

Hi,
you never know. It could be SD card, the download image or something went wrong during flashing. Just to ensure that this is not the case.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
User avatar
MichaIng
Site Admin
Posts: 2295
Joined: Sat Nov 18, 2017 6:21 pm

Re: Keyboard not working at random: crng init done

Post by MichaIng »

@Mohd
Okay the kernel panic is a good reason why things hang. Yes please try to reflash.
Post Reply