Skip to contentSkip to conversation

Fail to start dropbear

DISCUSSION axel lin 4 participants 6 messages Oct 18, 2006 – Oct 19, 2006

lore
Share & tools
lore

axel lin

author
#0 lore raw

hi list,
I got below messages when start dropbear... ( config is angstrom/mainstone) how to fix this?

root@mainstone:/$ /etc/init.d/dropbear start
Starting Dropbear SSH server: Will output 1024 bit rsa secret key to
'/etc/dropbear/dropbear_rsa_host_key'
Generating key, this may take a while...
Exited: couldn't open random device

Thanks for your help.
Axel

#1 lore raw
Quoted 8 lines · axel lin

I got below messages when start dropbear... ( config is angstrom/mainstone) how to fix this?

root@mainstone:/$ /etc/init.d/dropbear start
Starting Dropbear SSH server: Will output 1024 bit rsa secret key to
'/etc/dropbear/dropbear_rsa_host_key'
Generating key, this may take a while...
Exited: couldn't open random device

Looks like your machine system lack /dev/(u)random

Signature · 5 lines
JID: hrw-jabber.org
OpenEmbedded developer/consultant

               Heavy, adj.:
               	Seduced by the chocolate side of the Force.
author
#2 lore raw

2006/10/18, Marcin Juszkiewicz <[email protected]>:

Quoted 22 lines
Quoted 8 lines · axel lin

I got below messages when start dropbear... ( config is angstrom/mainstone) how to fix this?

root@mainstone:/$ /etc/init.d/dropbear start
Starting Dropbear SSH server: Will output 1024 bit rsa secret key to
'/etc/dropbear/dropbear_rsa_host_key'
Generating key, this may take a while...
Exited: couldn't open random device

Looks like your machine system lack /dev/(u)random

--
JID: hrw-jabber.org
OpenEmbedded developer/consultant

Heavy, adj.:
Seduced by the chocolate side of the Force.

Quoted 5 lines

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

Thanks, Marcin.
I fixed it by manually create the device file.
How to config OE to add a device file, then I don't have to manually add it.

Regards,
Axel

#3 lore raw

On Wed, Oct 18, 2006 at 03:22:41PM +0800, "axel lin" wrote:
[...]

Quoted 3 lines

Thanks, Marcin.
I fixed it by manually create the device file.
How to config OE to add a device file, then I don't have to manually add it.

If you are using udev then udev should be creating /dev/random and /dev/urandom (along with lots of other stuff). I don't think anything special is required to get udev to created this.

If you really do want to add device nodes manually (which is probably wrong) then see the "Device (/dev) nodes" section of the "image_ipkg class" in the user manual:

http://www.openembedded.org/user-manual&dpage=ch07s05

Signature · 1 line
 Jamie Lenehan <[email protected]>
#4 lore raw
Quoted 10 lines · Jamie Lenehan

On Wed, Oct 18, 2006 at 03:22:41PM +0800, "axel lin" wrote:
[...]

Quoted 3 lines

Thanks, Marcin.
I fixed it by manually create the device file.
How to config OE to add a device file, then I don't have to manually add it.

If you are using udev then udev should be creating /dev/random and /dev/urandom (along with lots of other stuff). I don't think anything special is required to get udev to created this.

Quoted 5 lines

If you really do want to add device nodes manually (which is probably wrong) then see the "Device (/dev) nodes" section of the "image_ipkg class" in the user manual:

http://www.openembedded.org/user-manual&dpage=ch07s05

I seem to recall that /dev/zero and /dev/console have to be made manually just to boot an initrd enabled image. Just to give you an idea of an exception to the rule. Otherwise, I definitely agree.

E

Signature · 4 lines
Erik Hovland
mail: erik AT hovland DOT org
web: http://hovland.org/
PGP/GPG public key available on request
author
#5 lore raw
In reply to Jamie Lenehan

Thank you, Jamie.
I found the root cause of missing /dev/(u)random issue.
It is caused by missing "tmpfs" support in my kernel, as a result the udev doesn't work.

Regards,
Axel

2006/10/19, Jamie Lenehan <[email protected]>:

Quoted 19 lines · axel lin

[...]

Quoted 3 lines

Thanks, Marcin.
I fixed it by manually create the device file.
How to config OE to add a device file, then I don't have to manually add it.

If you are using udev then udev should be creating /dev/random and /dev/urandom (along with lots of other stuff). I don't think anything special is required to get udev to created this.

If you really do want to add device nodes manually (which is probably wrong) then see the "Device (/dev) nodes" section of the "image_ipkg class" in the user manual:

http://www.openembedded.org/user-manual&dpage=ch07s05

--
Jamie Lenehan <[email protected]>