* [Buildroot] openssh totaly can't use on riscv/arm64 with latest buildroot @ 2020-08-06 14:31 jiao shuaipeng 2020-08-06 15:12 ` Thomas Petazzoni 0 siblings, 1 reply; 7+ messages in thread From: jiao shuaipeng @ 2020-08-06 14:31 UTC (permalink / raw) To: buildroot Dear All, 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. Thanks Best Regards, Joseph -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20200806/d4925a0a/attachment.html> ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Buildroot] openssh totaly can't use on riscv/arm64 with latest buildroot 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 0 siblings, 1 reply; 7+ messages in thread From: Thomas Petazzoni @ 2020-08-06 15:12 UTC (permalink / raw) To: 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 ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Buildroot] 回复: openssh totaly can't use on riscv/arm64 with latest buildroot 2020-08-06 15:12 ` Thomas Petazzoni @ 2020-08-06 16:28 ` jiao shuaipeng 2020-08-07 2:14 ` jiao shuaipeng 0 siblings, 1 reply; 7+ messages in thread From: jiao shuaipeng @ 2020-08-06 16:28 UTC (permalink / raw) To: 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20200806/337d1d92/attachment.html> ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Buildroot] 回复: openssh totaly can't use on riscv/arm64 with latest buildroot 2020-08-06 16:28 ` [Buildroot] 回复: " jiao shuaipeng @ 2020-08-07 2:14 ` jiao shuaipeng 2020-08-07 10:00 ` Peter Seiderer 0 siblings, 1 reply; 7+ messages in thread From: jiao shuaipeng @ 2020-08-07 2:14 UTC (permalink / raw) To: buildroot Dear All, Any one has ever used the openssh8.3 built by latest buildroot on arm64/riscv platform? Dose the openssh need support/dependency from the linux kernel side ? 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20200807/ed77da56/attachment.html> ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Buildroot] 回复: openssh totaly can't use on riscv/arm64 with latest buildroot 2020-08-07 2:14 ` jiao shuaipeng @ 2020-08-07 10:00 ` Peter Seiderer 2020-08-07 10:08 ` [Buildroot] 回复: " jiao shuaipeng 0 siblings, 1 reply; 7+ messages in thread From: Peter Seiderer @ 2020-08-07 10:00 UTC (permalink / raw) To: buildroot 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 ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Buildroot] 回复: 回复: openssh totaly can't use on riscv/arm64 with latest buildroot 2020-08-07 10:00 ` Peter Seiderer @ 2020-08-07 10:08 ` jiao shuaipeng 2020-08-08 12:34 ` jiao shuaipeng 0 siblings, 1 reply; 7+ messages in thread From: jiao shuaipeng @ 2020-08-07 10:08 UTC (permalink / raw) To: buildroot 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@gmx.net> ????: 2020?8?7? 18:00 ???: jiao shuaipeng <jiaoshuaipeng@outlook.com> ??: 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> ??: 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@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 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20200807/3189e7dc/attachment.html> ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Buildroot] 回复: 回复: openssh totaly can't use on riscv/arm64 with latest buildroot 2020-08-07 10:08 ` [Buildroot] 回复: " jiao shuaipeng @ 2020-08-08 12:34 ` jiao shuaipeng 0 siblings, 0 replies; 7+ messages in thread From: jiao shuaipeng @ 2020-08-08 12:34 UTC (permalink / raw) To: buildroot Hi Peter ,Thomas, thanks I read some materials about syscall getrandom, then I know the story behind getrandom in the kernel mail list. I can see "uninitialized urandom read" in my kernel log, but I ignore it before. After I enable package haveged in the buildroot, sshd is still stuck when linux is booting up, but after about 3 minutes, the sshd is getting out from the stuck, then the command line prompt comes up. Thanks, Best Regards, Joseph ________________________________ ???: jiao shuaipeng <jiaoshuaipeng@outlook.com> ????: 2020?8?7? 18:08 ???: Peter Seiderer <ps.report@gmx.net> ??: 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 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@gmx.net> ????: 2020?8?7? 18:00 ???: jiao shuaipeng <jiaoshuaipeng@outlook.com> ??: 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> ??: 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@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 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20200808/6d8eff5b/attachment.html> ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2020-08-08 12:34 UTC | newest] Thread overview: 7+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 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 2020-08-07 10:08 ` [Buildroot] 回复: " jiao shuaipeng 2020-08-08 12:34 ` jiao shuaipeng
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox