[Buildroot] 回复: 回复: openssh totaly can't use on riscv/arm64 with latest buildroot

jiao shuaipeng jiaoshuaipeng at outlook.com
Fri Aug 7 10:08:06 UTC 2020


Dear Peter,

Thanks a lot, I will have a try, if there are some results, I will give a feedback.

Best Regards,
Thanks
Joseph
________________________________
发件人: Peter Seiderer <ps.report at gmx.net>
发送时间: 2020年8月7日 18:00
收件人: jiao shuaipeng <jiaoshuaipeng at outlook.com>
抄送: Thomas Petazzoni <thomas.petazzoni at bootlin.com>; buildroot at busybox.net <buildroot at busybox.net>; shuaipeng.jiao at montage-tech.com <shuaipeng.jiao at montage-tech.com>; Jiaoshuaipeng at yeah.net <Jiaoshuaipeng at yeah.net>
主题: Re: [Buildroot] 回复: openssh totaly can't use on riscv/arm64 with latest buildroot

Hello Joseph,

On Fri, 7 Aug 2020 02:14:36 +0000, jiao shuaipeng <jiaoshuaipeng at 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 at outlook.com>
> 发送时间: 2020年8月7日 0:28
> 收件人: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
> 抄送: buildroot at busybox.net <buildroot at busybox.net>; shuaipeng.jiao at montage-tech.com <shuaipeng.jiao at montage-tech.com>; Jiaoshuaipeng at yeah.net <Jiaoshuaipeng at 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 at bootlin.com>
> 发送时间: 2020年8月6日 23:12
> 收件人: jiao shuaipeng <jiaoshuaipeng at outlook.com>
> 抄送: buildroot at busybox.net <buildroot at busybox.net>; shuaipeng.jiao at montage-tech.com <shuaipeng.jiao at montage-tech.com>; jiaoshuaipeng at yeah.net <jiaoshuaipeng at 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 at 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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20200807/3189e7dc/attachment.html>


More information about the buildroot mailing list