From nobody Fri Aug 13 19:47:32 2021 X-Original-To: freebsd-riscv@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id EDB38175D818 for ; Fri, 13 Aug 2021 19:47:47 +0000 (UTC) (envelope-from tuexen@freebsd.org) Received: from drew.franken.de (drew.ipv6.franken.de [IPv6:2001:638:a02:a001:20e:cff:fe4a:feaa]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.franken.de", Issuer "Sectigo RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4GmYxb4NhZz4hL0; Fri, 13 Aug 2021 19:47:47 +0000 (UTC) (envelope-from tuexen@freebsd.org) Received: from smtpclient.apple (ip1f100e9c.dynamic.kabel-deutschland.de [31.16.14.156]) (Authenticated sender: macmic) by mail-n.franken.de (Postfix) with ESMTPSA id BD769721BE000; Fri, 13 Aug 2021 21:47:33 +0200 (CEST) Content-Type: text/plain; charset=us-ascii List-Id: FreeBSD on the RISC-V instruction set architecture List-Archive: https://lists.freebsd.org/archives/freebsd-riscv List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-riscv@freebsd.org X-BeenThere: freebsd-riscv@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.13\)) Subject: Re: HiFive Unmatched support From: tuexen@freebsd.org In-Reply-To: Date: Fri, 13 Aug 2021 21:47:32 +0200 Cc: Zaphod Beeblebrox , freebsd-riscv Content-Transfer-Encoding: quoted-printable Message-Id: References: <29bec316-d5b7-501a-1560-b56c97192f41@gmail.com> To: Mitchell Horne X-Mailer: Apple Mail (2.3654.120.0.1.13) X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=disabled version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on mail-n.franken.de X-Rspamd-Queue-Id: 4GmYxb4NhZz4hL0 X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [0.00 / 15.00]; local_wl_from(0.00)[freebsd.org]; ASN(0.00)[asn:680, ipnet:2001:638::/32, country:DE] X-ThisMailContainsUnwantedMimeParts: N > On 8. Aug 2021, at 22:35, Mitchell Horne wrote: >=20 > On Sun, Aug 8, 2021 at 5:13 PM wrote: >>=20 >>> On 8. Aug 2021, at 21:59, Zaphod Beeblebrox = wrote: >>>=20 >>> I've made install images @ = https://nextcloud.towernet.ca/s/2XJrwRSeZRojswY >> Thanks a lot. >>=20 >> Does this mean that the HiFive Unmatched can boot from USB, then = install on the SSD and >> then it boots from the SSD? I was assuming that you need something on = the SD card (like >> uboot) and configure it to boot from USB or SSD. >>=20 >=20 > A copy of u-boot is still required, but you can just use the SD card > shipped with the board for this. It has a boot preference of NVMe > > USB > SD. So, you can copy the FreeBSD installer images to a USB, and > go through the traditional installation to set up your SSD. Upon > reboot you will be in the new system. >=20 > Eventually we will gain the ability to write a new u-boot to the SPI > flash, but there is still some work ahead for this. >=20 > Since jrtc27's patches just landed, this coming Thursday's 14.0 > snapshot should include everything needed, likely including the > aforementioned superpage fix (D31460). I just installed yesterdays snapshot and it works great. However, when running 'shutdown -r now', the system powers down. Is this a known issue and is there a workaround? Best regards Michael >=20 > Cheers, > Mitchell >=20 >=20 >> Best regards >> Michael >>>=20 >>> These don't include the most recent bug I found in superpages which = jrtc27 fixed --- but turn off superpages in loader.conf and you'll be = good... >>>=20 >>> vm.pmap.superpages_enabled=3D0 in loader.conf will fix this. >>>=20 >>> On 2021-08-08 14:58, tuexen@freebsd.org wrote: >>>> Dear all, >>>>=20 >>>> according to https://wiki.freebsd.org/riscv/HiFiveUnmatched support = for the >>>> HiFive Unmatched is now support by FreeBSD. This is great! >>>>=20 >>>> Are there any instructions available how to install FreeBSD on an = SSD such >>>> that it runs from that SSD? Any hints welcome. >>>>=20 >>>> Best regards >>>> Michael >>>>=20 >>=20 >>=20 From nobody Fri Aug 13 20:44:32 2021 X-Original-To: freebsd-riscv@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 97AFE175FCF7 for ; Fri, 13 Aug 2021 20:44:44 +0000 (UTC) (envelope-from mhorne@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4GmbCH4Rrsz4kf1; Fri, 13 Aug 2021 20:44:43 +0000 (UTC) (envelope-from mhorne@freebsd.org) Received: from mail-yb1-f171.google.com (mail-yb1-f171.google.com [209.85.219.171]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) (Authenticated sender: mhorne) by smtp.freebsd.org (Postfix) with ESMTPSA id 7C7152B4C; Fri, 13 Aug 2021 20:44:43 +0000 (UTC) (envelope-from mhorne@freebsd.org) Received: by mail-yb1-f171.google.com with SMTP id w17so21082049ybl.11; Fri, 13 Aug 2021 13:44:43 -0700 (PDT) X-Gm-Message-State: AOAM533anFep+BsO+j9QX16MRLswFf77Rola6HNdebTDpyJrPuYwzUMB yGwyrPmUxEn4135Q0XCjAi9+43luCurm6VpvDFI= X-Google-Smtp-Source: ABdhPJwXxMF0H8UNufvNN40Qh9LnQBTAWbFQrG6iP8nrESagt4j+liQwoHDeeiaIcvG7giWrOUERuwCet/NnZ8CxE6Y= X-Received: by 2002:a25:4408:: with SMTP id r8mr5321777yba.13.1628887483139; Fri, 13 Aug 2021 13:44:43 -0700 (PDT) List-Id: FreeBSD on the RISC-V instruction set architecture List-Archive: https://lists.freebsd.org/archives/freebsd-riscv List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-riscv@freebsd.org X-BeenThere: freebsd-riscv@freebsd.org MIME-Version: 1.0 References: <29bec316-d5b7-501a-1560-b56c97192f41@gmail.com> In-Reply-To: From: Mitchell Horne Date: Fri, 13 Aug 2021 17:44:32 -0300 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: HiFive Unmatched support To: tuexen@freebsd.org Cc: Zaphod Beeblebrox , freebsd-riscv Content-Type: text/plain; charset="UTF-8" X-ThisMailContainsUnwantedMimeParts: N On Fri, Aug 13, 2021 at 4:47 PM wrote: > > > On 8. Aug 2021, at 22:35, Mitchell Horne wrote: > > > > On Sun, Aug 8, 2021 at 5:13 PM wrote: > >> > >>> On 8. Aug 2021, at 21:59, Zaphod Beeblebrox wrote: > >>> > >>> I've made install images @ https://nextcloud.towernet.ca/s/2XJrwRSeZRojswY > >> Thanks a lot. > >> > >> Does this mean that the HiFive Unmatched can boot from USB, then install on the SSD and > >> then it boots from the SSD? I was assuming that you need something on the SD card (like > >> uboot) and configure it to boot from USB or SSD. > >> > > > > A copy of u-boot is still required, but you can just use the SD card > > shipped with the board for this. It has a boot preference of NVMe > > > USB > SD. So, you can copy the FreeBSD installer images to a USB, and > > go through the traditional installation to set up your SSD. Upon > > reboot you will be in the new system. > > > > Eventually we will gain the ability to write a new u-boot to the SPI > > flash, but there is still some work ahead for this. > > > > Since jrtc27's patches just landed, this coming Thursday's 14.0 > > snapshot should include everything needed, likely including the > > aforementioned superpage fix (D31460). > I just installed yesterdays snapshot and it works great. However, when > running 'shutdown -r now', the system powers down. Is this a known issue > and is there a workaround? > This is a known issue, unfortunately without any workaround yet. The problem is a lack of any reset mechanism in the firmware stack, so the SBI system reset interface just performs a poweroff. So it is not a FreeBSD issue, and we will have to wait for a solution upstream. I found a thread on the SiFive forums discussing this: https://forums.sifive.com/t/reboot-command/4721 > Best regards > Michael > > > > Cheers, > > Mitchell > > > > > >> Best regards > >> Michael > >>> > >>> These don't include the most recent bug I found in superpages which jrtc27 fixed --- but turn off superpages in loader.conf and you'll be good... > >>> > >>> vm.pmap.superpages_enabled=0 in loader.conf will fix this. > >>> > >>> On 2021-08-08 14:58, tuexen@freebsd.org wrote: > >>>> Dear all, > >>>> > >>>> according to https://wiki.freebsd.org/riscv/HiFiveUnmatched support for the > >>>> HiFive Unmatched is now support by FreeBSD. This is great! > >>>> > >>>> Are there any instructions available how to install FreeBSD on an SSD such > >>>> that it runs from that SSD? Any hints welcome. > >>>> > >>>> Best regards > >>>> Michael > >>>> > >> > >> > From nobody Fri Aug 13 21:29:11 2021 X-Original-To: freebsd-riscv@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 91984137A2D0 for ; Fri, 13 Aug 2021 21:29:25 +0000 (UTC) (envelope-from tuexen@freebsd.org) Received: from drew.franken.de (mail-n.franken.de [193.175.24.27]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.franken.de", Issuer "Sectigo RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4GmcBs1v3Kz4mNV; Fri, 13 Aug 2021 21:29:25 +0000 (UTC) (envelope-from tuexen@freebsd.org) Received: from smtpclient.apple (ip1f100e9c.dynamic.kabel-deutschland.de [31.16.14.156]) (Authenticated sender: macmic) by mail-n.franken.de (Postfix) with ESMTPSA id 18E90721BE008; Fri, 13 Aug 2021 23:29:12 +0200 (CEST) Content-Type: text/plain; charset=us-ascii List-Id: FreeBSD on the RISC-V instruction set architecture List-Archive: https://lists.freebsd.org/archives/freebsd-riscv List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-riscv@freebsd.org X-BeenThere: freebsd-riscv@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.13\)) Subject: Re: HiFive Unmatched support From: tuexen@freebsd.org In-Reply-To: Date: Fri, 13 Aug 2021 23:29:11 +0200 Cc: Zaphod Beeblebrox , freebsd-riscv Content-Transfer-Encoding: quoted-printable Message-Id: <383558FE-D692-4893-9313-18C1A706F0BE@freebsd.org> References: <29bec316-d5b7-501a-1560-b56c97192f41@gmail.com> To: Mitchell Horne X-Mailer: Apple Mail (2.3654.120.0.1.13) X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=disabled version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on mail-n.franken.de X-Rspamd-Queue-Id: 4GmcBs1v3Kz4mNV X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-ThisMailContainsUnwantedMimeParts: N > On 13. Aug 2021, at 22:44, Mitchell Horne wrote: >=20 > On Fri, Aug 13, 2021 at 4:47 PM wrote: >>=20 >>> On 8. Aug 2021, at 22:35, Mitchell Horne wrote: >>>=20 >>> On Sun, Aug 8, 2021 at 5:13 PM wrote: >>>>=20 >>>>> On 8. Aug 2021, at 21:59, Zaphod Beeblebrox = wrote: >>>>>=20 >>>>> I've made install images @ = https://nextcloud.towernet.ca/s/2XJrwRSeZRojswY >>>> Thanks a lot. >>>>=20 >>>> Does this mean that the HiFive Unmatched can boot from USB, then = install on the SSD and >>>> then it boots from the SSD? I was assuming that you need something = on the SD card (like >>>> uboot) and configure it to boot from USB or SSD. >>>>=20 >>>=20 >>> A copy of u-boot is still required, but you can just use the SD card >>> shipped with the board for this. It has a boot preference of NVMe > >>> USB > SD. So, you can copy the FreeBSD installer images to a USB, = and >>> go through the traditional installation to set up your SSD. Upon >>> reboot you will be in the new system. >>>=20 >>> Eventually we will gain the ability to write a new u-boot to the SPI >>> flash, but there is still some work ahead for this. >>>=20 >>> Since jrtc27's patches just landed, this coming Thursday's 14.0 >>> snapshot should include everything needed, likely including the >>> aforementioned superpage fix (D31460). >> I just installed yesterdays snapshot and it works great. However, = when >> running 'shutdown -r now', the system powers down. Is this a known = issue >> and is there a workaround? >>=20 >=20 > This is a known issue, unfortunately without any workaround yet. The > problem is a lack of any reset mechanism in the firmware stack, so the > SBI system reset interface just performs a poweroff. So it is not a > FreeBSD issue, and we will have to wait for a solution upstream. Thanks for the explanation. >=20 > I found a thread on the SiFive forums discussing this: > https://forums.sifive.com/t/reboot-command/4721 Thanks for the pointer. So for now I have to walk to the machine to bring up a new kernel... Best regards Michael >=20 >> Best regards >> Michael >>>=20 >>> Cheers, >>> Mitchell >>>=20 >>>=20 >>>> Best regards >>>> Michael >>>>>=20 >>>>> These don't include the most recent bug I found in superpages = which jrtc27 fixed --- but turn off superpages in loader.conf and you'll = be good... >>>>>=20 >>>>> vm.pmap.superpages_enabled=3D0 in loader.conf will fix this. >>>>>=20 >>>>> On 2021-08-08 14:58, tuexen@freebsd.org wrote: >>>>>> Dear all, >>>>>>=20 >>>>>> according to https://wiki.freebsd.org/riscv/HiFiveUnmatched = support for the >>>>>> HiFive Unmatched is now support by FreeBSD. This is great! >>>>>>=20 >>>>>> Are there any instructions available how to install FreeBSD on an = SSD such >>>>>> that it runs from that SSD? Any hints welcome. >>>>>>=20 >>>>>> Best regards >>>>>> Michael >>>>>>=20 >>>>=20 >>>>=20 >>=20