From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Seiderer Date: Fri, 7 Aug 2020 12:00:37 +0200 Subject: [Buildroot] =?utf-8?b?5Zue5aSNOiBvcGVuc3NoIHRvdGFseSBjYW4ndCB1?= =?utf-8?q?se_on_riscv/arm64_with_latest_buildroot?= In-Reply-To: References: <20200806171237.1ba34fc8@windsurf.home> Message-ID: <20200807120037.6448d81c@gmx.net> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net Hello Joseph, On Fri, 7 Aug 2020 02:14:36 +0000, jiao shuaipeng 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 > ????: 2020?8?7? 0:28 > ???: Thomas Petazzoni > ??: buildroot at busybox.net ; shuaipeng.jiao at montage-tech.com ; 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 > ????: 2020?8?6? 23:12 > ???: jiao shuaipeng > ??: buildroot at busybox.net ; shuaipeng.jiao at montage-tech.com ; 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 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