From owner-freebsd-arm@freebsd.org Thu Oct 8 11:16:02 2020 Return-Path: Delivered-To: freebsd-arm@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 6D1D63FD279 for ; Thu, 8 Oct 2020 11:16:02 +0000 (UTC) (envelope-from s199p.wa1k9r@gmail.com) Received: from mail-pf1-x441.google.com (mail-pf1-x441.google.com [IPv6:2607:f8b0:4864:20::441]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4C6TCj6GCfz3f1C for ; Thu, 8 Oct 2020 11:16:01 +0000 (UTC) (envelope-from s199p.wa1k9r@gmail.com) Received: by mail-pf1-x441.google.com with SMTP id y14so3697012pfp.13 for ; Thu, 08 Oct 2020 04:16:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=PFgENX4xjdr7fRpyefZIEzARn8Xw0o0eCcw0TFTkjQc=; b=klOafaRVu/JM9djgJTbDi3l86GPormfVdiSY0g9H0uuNhdtq4hptxeqvaOquZ9dNJj jbvNbuO7MsyrgNUBBQ43N/Odp9csWJZXaN7yHi35OdV9g7zRlSp93pSflTtUDXZJPkmj VOa0EEn00zlIaJPKk/96hQ2+UY2H/pD22K06VfyRlnrRSG2tsN/f8kqvEBHoQke3Smag Hlec7EebN+3xZKp4bKA6Fwq4bt0eUg99Hm/84V/8HSfKWkLNHZADC2F001vn7BEfxTQj DeeKge7WBJLExdpD83bP0lGtPXjnCE1gUaI/B9d6X2/iU1XmFd8pBjKwGb8MRwGZGXwc vb9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=PFgENX4xjdr7fRpyefZIEzARn8Xw0o0eCcw0TFTkjQc=; b=WYhXjpvF2DyWFUACZmKEsnrVo+CNcDoArGA+Z3sYreubVxGhKIF6QnI7gQV722N3J6 lTp3930ZmpAuj8Vky3681BDZ9sudib1Csmj+p5Y43wOA6skEvuBOjVytQLjz+e3bO8Ax U/OfjDJDKn4dr4elsh+LQqNzXee/jHdUzQJ7naO2Yc4SM7ylTU2wgW3UGfcHwPbm/eq0 teKUefItioWQu8lxqTmFsJ+8OLxfoAE9cwWalMpiyBFXWpGeeWcOaU3LH59dsGE3ExG5 ARKrbKKbGRxYJQr98V5QcBxkyWyZrE42IMhPaVATOGbJhp0aPxWYZ1PsdbrptJMxcQTe os8g== X-Gm-Message-State: AOAM530PqiqP+ypS0SaGMZOue0pgf9pMfkuyrITOuWXILeCtNgnX4oxG pzi2hfMKTlY6bF/2RT0v9GHK1mgI8AUexwKQ2HiJt1PHwCo= X-Google-Smtp-Source: ABdhPJyW5m/MMEyoqVCI48m2GbvC64ansl3lnbwtcC311SDqGsut+KAWYD+FH/KHhordtScnBCBkxeuCN/AFdyUK6RM= X-Received: by 2002:a63:1219:: with SMTP id h25mr6788939pgl.72.1602155759983; Thu, 08 Oct 2020 04:15:59 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Sleep Walker Date: Thu, 8 Oct 2020 14:15:42 +0300 Message-ID: Subject: Re: FreeBSD-13.0-CURRENT on Helios64 Kobol NAS To: Free BSD X-Rspamd-Queue-Id: 4C6TCj6GCfz3f1C X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=klOafaRV; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of s199pwa1k9r@gmail.com designates 2607:f8b0:4864:20::441 as permitted sender) smtp.mailfrom=s199pwa1k9r@gmail.com X-Spamd-Result: default: False [-3.35 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.99)[-0.994]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; RCVD_TLS_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; NEURAL_HAM_LONG(-1.01)[-1.007]; RCPT_COUNT_ONE(0.00)[1]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::441:from]; NEURAL_HAM_SHORT(-0.35)[-0.348]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; TAGGED_FROM(0.00)[]; MAILMAN_DEST(0.00)[freebsd-arm]; RCVD_COUNT_TWO(0.00)[2] Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.33 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Oct 2020 11:16:02 -0000 Hello FreeBSD ARM community! I have successfully installed FreeBSD-13.0-CURRENT on Kobol Helios64 (RK3399). https://wiki.kobol.io/helios64/intro/ U-boot and DTS file kindly provided by Kobol TEAM :-). dmesg and dmesg verbose can be viewed here. dmesg - https://dmesgd.nycbug.org/index.cgi?do=3Dview&id=3D5695 dmesg verbose - https://dmesgd.nycbug.org/index.cgi?do=3Dview&id=3D5694 I have not yet had time to conduct a thorough test, but at first glance, all 6 SATA dicks work perfectly, even with 6 kernels enabled with OpenZFS support. Of course, the speed of dwc (4) - 53MB / sec and the incomprehensible behavior of the 2.5GbE port built on the Realtek RTL8156 chip via VL815 USB 3.0 Hub - is disappointing. --- ue0: flags =3D 8843 metric 0 m= tu 1500 ether 64: 62: 66: d0: 01: 3d inet 192.168.1.1 netmask 0xffffff00 broadcast 192.168.1.255 nd6 options =3D 29 ---- root @ tsy: ~ # iperf3 -c 192.168.1.1 Connecting to host 192.168.1.1, port 5201 [5] local 192.168.1.182 port 60358 connected to 192.168.1.1 port 5201 [ID] Interval Transfer Bitrate Retr Cwnd [5] 0.00-1.00 sec 10.4 MBytes 87.2 Mbits / sec 90 42.6 KBytes [5] 1.00-2.00 sec 10.8 MBytes 91.0 Mbits / sec 106 1.41 KBytes [5] 2.00-3.00 sec 10.8 MBytes 91.0 Mbits / sec 109 24.1 KBytes [5] 3.00-4.00 sec 10.8 MBytes 90.7 Mbits / sec 101 1.41 KBytes [5] 4.00-5.00 sec 10.8 MBytes 90.9 Mbits / sec 105 1.41 KBytes [5] 5.00-6.00 sec 10.9 MBytes 91.1 Mbits / sec 104 42.6 KBytes [5] 6.00-7.00 sec 10.8 MBytes 90.7 Mbits / sec 105 41.2 KBytes [5] 7.00-8.00 sec 10.8 MBytes 91.0 Mbits / sec 105 42.6 KBytes [5] 8.00-9.00 sec 10.8 MBytes 91.0 Mbits / sec 110 22.6 KBytes [5] 9.00-10.00 sec 10.9 MBytes 91.0 Mbits / sec 105 29.8 KBytes - - - - - - - - - - - - - - - - - - - - - - - - - - [ID] Interval Transfer Bitrate Retr [5] 0.00-10.00 sec 108 MBytes 90.6 Mbits / sec 1040 sender [5] 0.00-10.00 sec 107 MBytes 90.0 Mbits / sec receiver iperf Done. root @ tsy: ~ # iperf3 -R -c 192.168.1.1 Connecting to host 192.168.1.1, port 5201 Reverse mode, remote host 192.168.1.1 is sending [5] local 192.168.1.182 port 55719 connected to 192.168.1.1 port 5201 [ID] Interval Transfer Bitrate [5] 0.00-1.00 sec 20.7 MBytes 174 Mbits / sec [5] 1.00-2.00 sec 21.7 MBytes 182 Mbits / sec [5] 2.00-3.00 sec 21.7 MBytes 182 Mbits / sec [5] 3.00-4.00 sec 21.7 MBytes 182 Mbits / sec [5] 4.00-5.00 sec 21.7 MBytes 182 Mbits / sec [5] 5.00-6.00 sec 21.7 MBytes 182 Mbits / sec [5] 6.00-7.00 sec 21.7 MBytes 182 Mbits / sec [5] 7.00-8.00 sec 21.7 MBytes 182 Mbits / sec [5] 8.00-9.00 sec 21.7 MBytes 182 Mbits / sec [5] 9.00-10.00 sec 21.7 MBytes 182 Mbits / sec - - - - - - - - - - - - - - - - - - - - - - - - - - [ID] Interval Transfer Bitrate Retr [5] 0.00-10.03 sec 217 MBytes 181 Mbits / sec 1 sender [5] 0.00-10.00 sec 216 MBytes 181 Mbits / sec receiver In general, the speed of the network is terribly annoying. Before that, I last tested the 22 Jun system and then eMMC worked fine. --- FreeBSD 13.0-CURRENT # 0 r361113M 0fb6ad5-c996 (nanopi): Mon Jun 22 12:18:06 MSK 2020 root@dev.kubsu.ru: /usr/crochet/work/obj/usr/crochet/src-13.0/arm64.aarch64/sys/FREENAS arm64 FreeBSD clang version 10.0.0 (git@github.com: llvm / llvm-project.git llvmorg-10.0.0-0-gd32170dbd5b) Now eMMC is not detected. As a result, there is a replenishment in the ranks of ARM hardware ;-). --- Sergey Tyuryukanov. =D1=87=D1=82, 8 =D0=BE=D0=BA=D1=82. 2020 =D0=B3. =D0=B2 12:01, Mark Millard= via freebsd-arm < freebsd-arm@freebsd.org>: > sys/gnu/dts/arm/bcm2711.dtsi reports: > > /* > * emmc2 has different DMA constraints based on SoC revisions. It > was > * moved into its own bus, so as for RPi4's firmware to update > them. > * The firmware will find whether the emmc2bus alias is defined, > and if > * so, it'll edit the dma-ranges property below accordingly. > */ > emmc2bus: emmc2bus { > compatible =3D "simple-bus"; > #address-cells =3D <2>; > #size-cells =3D <1>; > > ranges =3D <0x0 0x7e000000 0x0 0xfe000000 0x01800000>; > dma-ranges =3D <0x0 0xc0000000 0x0 0x00000000 0x4000000= 0>; > > emmc2: emmc2@7e340000 { > compatible =3D "brcm,bcm2711-emmc2"; > reg =3D <0x0 0x7e340000 0x100>; > interrupts =3D ; > clocks =3D <&clocks BCM2711_CLOCK_EMMC2>; > status =3D "disabled"; > }; > }; > > > The old u-boot/DTB combination in use does not have emmc2bus. > And, even if it did, FreeBSD would not use the dma-ranges > content, expecting it to not vary within the RPi4B family. > Relative to "lowaddr", for example, there is: > > #define BCM2838_PERIPH_MAXADDR 0x3fffffff > > (the emmc2bus dma-ranges' size_cell_value-1 for the text > above). > > sys/arm/broadcom/bcm2835/bcm2835_sdhci.c does list brcm,bcm2711-emmc2 in > its compat_data: > > static struct ofw_compat_data compat_data[] =3D { > {"broadcom,bcm2835-sdhci", (uintptr_t)&bcm2835_sdhci_conf}, > {"brcm,bcm2835-sdhci", (uintptr_t)&bcm2835_sdhci_conf}, > {"brcm,bcm2835-mmc", (uintptr_t)&bcm2835_sdhci_conf}, > {"brcm,bcm2711-emmc2", (uintptr_t)&bcm2838_emmc2_conf}, > {"brcm,bcm2838-emmc2", (uintptr_t)&bcm2838_emmc2_conf}, > {NULL, 0} > }; > > where BCM2838_PERIPH_MAXADDR is picked out based on: > (from sys/arm/broadcom/bcm2835/bcm2835_vcbus.c) > > static struct bcm283x_memory_soc_cfg { > struct bcm283x_memory_mapping *memmap; > const char *soc_compat; > bus_addr_t busdma_lowaddr; > } bcm283x_memory_configs[] =3D { > . . . > { > .memmap =3D bcm2838_memmap, > .soc_compat =3D "brcm,bcm2711", > .busdma_lowaddr =3D BCM2838_PERIPH_MAXADDR, > }, > { > .memmap =3D bcm2838_memmap, > .soc_compat =3D "brcm,bcm2838", > .busdma_lowaddr =3D BCM2838_PERIPH_MAXADDR, > }, > }; > > (I've not found tracking of SoC revisions. But I also do > not know what varies across which SoC revisions. So far > as I know, the few I have access to have a uniform > structure.) > > =3D=3D=3D > Mark Millard > marklmi at yahoo.com > ( dsl-only.net went > away in early 2018-Mar) > > _______________________________________________ > freebsd-arm@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-arm > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org" >