2bdkid
Posts: 8
Joined: Tue Oct 28, 2014 8:05 pm

Boot hang after "random: crng init done"

Sun Mar 25, 2018 11:51 pm

I pulled branch rpi-4.9.y from www.github.com/raspberrypi/linux and cross compiled the bcmrpi3 target for arm64. I copied over the kernel and *.dtb files into the boot directory. I also copied bootcode.bin, *.dat, and *.elf from www.github.com/raspberrypi/firmware into /boot. When the system boots, it stops at "random: crng init done" and will not continue. I found some other articles saying it was a power issue or sd card issue, but I built the system on a second sd card and had the same results. I'm thinking it's a kernel issue so would anyone know which kernel to try next?

2bdkid
Posts: 8
Joined: Tue Oct 28, 2014 8:05 pm

Re: Boot hang after "random: crng init done"

Wed Mar 28, 2018 3:29 am

Solution: press enter and the prompt appears.
Can't believe it took me this long...

tkninja
Posts: 1
Joined: Thu Apr 05, 2018 9:00 pm

Re: Boot hang after "random: crng init done"

Thu Apr 05, 2018 9:07 pm

By the way, this happens to me, too. You don't have to press Enter to get the prompt, however: just enter in a command, if Raspian automatically logs you in.

SoNic67
Posts: 1
Joined: Thu May 17, 2018 11:19 am

Re: Boot hang after "random: crng init done"

Thu May 17, 2018 11:27 am

In my case, pressing enter key or any command does nothing. It just moves the text on the screen one line up.

Roken
Posts: 248
Joined: Sun Dec 31, 2017 4:35 pm

Re: Boot hang after "random: crng init done"

Thu May 17, 2018 7:38 pm

I was getting this when experimenting with NFS boot - and it usually meant that the system couldn't find rootfs.

Check cmdline.txt
Headless PI. OMG, someone cut it's head off. Oh, hang on. it didn't have one to start with.

doomkin
Posts: 1
Joined: Fri Aug 10, 2018 12:47 am

Re: Boot hang after "random: crng init done"

Fri Aug 10, 2018 12:48 am

At boot, the kernel waits for mouse movements to initialize the random number generator.
Kernel messages on boot:

Code: Select all

sudo dmesg | less
The problem:

Code: Select all

kernel: random: crng init done
The solution:

Code: Select all

sudo apt install haveged
sudo systemctl enable haveged

nana199685
Posts: 3
Joined: Tue Dec 11, 2018 11:22 am

Re: Boot hang after "random: crng init done"

Fri Dec 14, 2018 11:55 am

doomkin wrote:
Fri Aug 10, 2018 12:48 am
At boot, the kernel waits for mouse movements to initialize the random number generator.
Kernel messages on boot:

Code: Select all

sudo dmesg | less
The problem:

Code: Select all

kernel: random: crng init done
The solution:

Code: Select all

sudo apt install haveged
sudo systemctl enable haveged

i meet the same problem that the screen stop at "random: crng init done"
i did modify my cmdline.txt before i reboot
but now i can't type any command you mentioned.
when i type something and press enter
it just wraps and happen nothing
i have check my power that was normal
please help me.QQ

PhilE
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 1914
Joined: Mon Sep 29, 2014 1:07 pm
Location: Cambridge

Re: Boot hang after "random: crng init done"

Fri Dec 14, 2018 2:08 pm

The fact that the message says "crng init done" suggests the fault is with something else it is trying to start afterwards. Try with "initcall_debug=1" on in cmdline.txt, and then see what the last few messages say.

You say:
i did modify my cmdline.txt before i reboot
Can you remember what you changed, and have you tried changing it back?

Return to “Linux Kernel”