Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Peter Seiderer <ps.report@gmx.net>
To: buildroot@busybox.net
Subject: [Buildroot]  回复: openssh totaly can't use on riscv/arm64 with latest buildroot
Date: Fri, 7 Aug 2020 12:00:37 +0200	[thread overview]
Message-ID: <20200807120037.6448d81c@gmx.net> (raw)
In-Reply-To: <VI1PR07MB459024DCDA64676698CAC4F9AB490@VI1PR07MB4590.eurprd07.prod.outlook.com>

Hello Joseph,

On Fri, 7 Aug 2020 02:14:36 +0000, jiao shuaipeng <jiaoshuaipeng@outlook.com> wrote:

> Dear All,
> 
> Any one has ever used the openssh8.3 built by latest buildroot on arm64/riscv platform?

Yes, works without problems with the raspberrypi4_64_defconfig on RPi4 hardware...

> 
> Dose the openssh need support/dependency from the linux kernel side ?

Strace of 'sshd --help' reveals a 'getrandom()' syscall..., I think
Thomas hint according 'lack of entropy' is the right one, try with
newer kernel or an additional entropy source (hardware random
generator on real hardware, or for qemu haveged or rng-tools or
something similar)...

Regards,
Peter

> 
> Thanks a lot in advance.
> 
> Joseph
> ________________________________
> ???: jiao shuaipeng <jiaoshuaipeng@outlook.com>
> ????: 2020?8?7? 0:28
> ???: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
> ??: buildroot at busybox.net <buildroot@busybox.net>; shuaipeng.jiao at montage-tech.com <shuaipeng.jiao@montage-tech.com>; Jiaoshuaipeng at yeah.net <Jiaoshuaipeng@yeah.net>
> ??: ??: [Buildroot] openssh totaly can't use on riscv/arm64 with latest buildroot
> 
> Dear Thomas,
> 
> Thanks for your reply.
> 
> I have ever tried to run "sshd --help" after linux is booting up inside the qemu. I see the similar phenomenon, the program is stuck.
> 
> So it should not "the lack of entropy in the random number generator ".
> 
> Thanks
> 
> ________________________________
> ???: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
> ????: 2020?8?6? 23:12
> ???: jiao shuaipeng <jiaoshuaipeng@outlook.com>
> ??: buildroot at busybox.net <buildroot@busybox.net>; shuaipeng.jiao at montage-tech.com <shuaipeng.jiao@montage-tech.com>; jiaoshuaipeng at yeah.net <jiaoshuaipeng@yeah.net>
> ??: Re: [Buildroot] openssh totaly can't use on riscv/arm64 with latest buildroot
> 
> On Thu, 6 Aug 2020 14:31:33 +0000
> jiao shuaipeng <jiaoshuaipeng@outlook.com> wrote:
> 
> > Any one ever use openssh8.3 on RISCV/ARM64 with latest buildroot commit ?
> >
> > We found the the binary of openssh can generated successfully with the buildroot.
> > But when we run the application sshd or "ssh-keygen -a", it will be stuck.
> > I have used the GDB to find root cause why the program is stuch, i see the stach frame is corrupted.
> >
> > we are using the config "qemu_aarch64_virt_defconfig" and "qemu_riscv32_virt_defconfig", and enable the openssh with "make menucofig". qemu version is 5.0.50.  linux kernel version is 5.1.12.  
> 
> Could this simply due to the lack of entropy in the random number
> generator ?
> 
> Thomas
> --
> Thomas Petazzoni, CTO, Bootlin
> Embedded Linux and Kernel engineering
> https://bootlin.com

  reply	other threads:[~2020-08-07 10:00 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-06 14:31 [Buildroot] openssh totaly can't use on riscv/arm64 with latest buildroot jiao shuaipeng
2020-08-06 15:12 ` Thomas Petazzoni
2020-08-06 16:28   ` [Buildroot] 回复: " jiao shuaipeng
2020-08-07  2:14     ` jiao shuaipeng
2020-08-07 10:00       ` Peter Seiderer [this message]
2020-08-07 10:08         ` [Buildroot] 回复: " jiao shuaipeng
2020-08-08 12:34           ` jiao shuaipeng

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200807120037.6448d81c@gmx.net \
    --to=ps.report@gmx.net \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox