From nobody Thu Nov 25 22:32:29 2021 X-Original-To: freebsd-arm@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 E440F18B70E2 for ; Thu, 25 Nov 2021 22:32:37 +0000 (UTC) (envelope-from mafsys1234@gmail.com) Received: from mail-pl1-x633.google.com (mail-pl1-x633.google.com [IPv6:2607:f8b0:4864:20::633]) (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 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4J0Xgn1Mrqz3J99 for ; Thu, 25 Nov 2021 22:32:37 +0000 (UTC) (envelope-from mafsys1234@gmail.com) Received: by mail-pl1-x633.google.com with SMTP id u11so5452311plf.3 for ; Thu, 25 Nov 2021 14:32:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=ZKFnEowYFk/507FXFIzH1dilE26gTlNny0E4hPLxECo=; b=F+nymTKK4E7rYl299HjmcuvFqsPEtYDXSXkjsWI9u9FW1k4yMOmwuQqkOJMwMW80Nh iG+kCwf/1eoApHtzW5i5F9cXZnal3rqsScFl+ST/799y0Gkn2jt7ceaBsm1JzvhQZU0v 7HHFM/UmICuRatGXO9yyBuGzg+946suZZ3hH5FnCfJOds+bdjWtda09dJVHAuNdx/3Sg yUZuksW9kAq7WxA3WahpbFnbl588+uSswv0iENRv9+Qj+kWWitpRiZzBj+5MOG+FcnTr bEzHyO/LFn2M2MKm9j+kbTUpNzt3C5/o71NufUB7gdLgW28ZhR9rms2IkmlT9zOKqxxF tBYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=ZKFnEowYFk/507FXFIzH1dilE26gTlNny0E4hPLxECo=; b=dYu2rOwF1KUhU8IrNDNX5Jtauy9TH+668KfaMgSiFCjuq7j4/3b+wwWsioGGm+8PqW ZG4LE/+VcJj5drJUkwmuYqroTOyj0Z7OjAEqNhOJ1UygsEr4vt9oiNEONoCCmkWmatgC fUVF0UF/wddd6dsMwIqJnYAo8XEBbPZQoPTN/PUlVBH+WHR7Qf6PdSds7RWQEUz+nrKz /WHEc4QSuYaWGoS1vh5lecEV3EXyh7x5nFehuXFE3oYLtu60yNSK7ZpjVr77DBpI6DzM sFEZjAlMdoSp53j1aZGUAzBL8HoXB6cXkNETOZv81iz41y+RPQYcxBmoxHvqQcvXR7Vi sEhg== X-Gm-Message-State: AOAM533bigJ6EAggyysWYqjWzNWMdmvI0Id2AGXAQ8X5j17k3aWM9pYS r+y2I/5VI+3eK9PO//kEL1uxiA/nWwEuqu7p X-Google-Smtp-Source: ABdhPJzc5a7M4rR2l368Fp08KC88YrUonJRVjxUnHRqvtz0oMVm26uIvG4KBUEWmy3Jf9yOCEVqvlg== X-Received: by 2002:a17:90a:df01:: with SMTP id gp1mr11318438pjb.28.1637879555501; Thu, 25 Nov 2021 14:32:35 -0800 (PST) Received: from [192.168.1.10] ([115.69.53.183]) by smtp.gmail.com with ESMTPSA id i193sm4268312pfe.87.2021.11.25.14.32.33 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 25 Nov 2021 14:32:35 -0800 (PST) Subject: Re: 13.0-RELEASE Poor performance on Raspberry pi 3 B+ To: freebsd-arm@freebsd.org References: <20211124155352.GA26072@www.zefox.net> <6CCD061E-DCDA-46E0-AE19-76EA1B30E56F@yahoo.com> <69E3CEF1-87D0-405B-B132-7D6A6A4EA056@yahoo.com> <1229E940-5DAB-4D49-AB14-E804296D10BC@yahoo.com> From: MJ Message-ID: Date: Fri, 26 Nov 2021 09:32:29 +1100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.1 List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@freebsd.org MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-AU Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4J0Xgn1Mrqz3J99 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b=F+nymTKK; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of mafsys1234@gmail.com designates 2607:f8b0:4864:20::633 as permitted sender) smtp.mailfrom=mafsys1234@gmail.com X-Spamd-Result: default: False [-2.99 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20210112]; FROM_HAS_DN(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; TO_DN_NONE(0.00)[]; NEURAL_SPAM_MEDIUM(0.00)[0.001]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-0.999]; RCVD_COUNT_THREE(0.00)[3]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::633:from]; NEURAL_HAM_SHORT(-1.00)[-0.996]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_TLS_ALL(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim] X-ThisMailContainsUnwantedMimeParts: N HI Juan, On 26/11/2021 7:16 am, Juan David Hurtado G wrote: > Thanks, I've used `sysutils/u-boot-rpi3` (for the 3B+) and copied the > u-boot.bin file to the sd card before the first boot. > > ``` > root@generic:~ # strings /boot/msdos/u-boot.bin | grep "U-Boot 2" > U-Boot 2021.07 (Nov 12 2021 - 01:50:18 +0000) > ``` > > Now I'm U-Boot 2021.07 and at the same 0.4MHz :) > > I'll definitely wait for the new microSD to arrive hoping that it will work. I have a RPI 2B with Sandisk Extreme 32GB and its diskinfo is as follows: # diskinfo -tv /dev/ufs/rootfs /dev/ufs/rootfs 512 # sectorsize 31861506048 # mediasize in bytes (30G) 62229504 # mediasize in sectors 4194304 # stripesize 3145728 # stripeoffset 3873 # Cylinders according to firmware. 255 # Heads according to firmware. 63 # Sectors according to firmware. SDHC SE32G 8.0 SN B3C83C06 MFG 10/2016 by 3 SD # Disk descr. B3C83C06s0 # Disk ident. # Attachment Yes # TRIM/UNMAP support 0 # Rotation rate in RPM Seek times: Full stroke: 250 iter in 0.151175 sec = 0.605 msec Half stroke: 250 iter in 0.148608 sec = 0.594 msec Quarter stroke: 500 iter in 0.298612 sec = 0.597 msec Short forward: 400 iter in 0.190279 sec = 0.476 msec Short backward: 400 iter in 0.191797 sec = 0.479 msec Seq outer: 2048 iter in 0.764279 sec = 0.373 msec Seq inner: 2048 iter in 0.769431 sec = 0.376 msec Transfer rates: outside: 102400 kbytes in 5.805765 sec = 17638 kbytes/sec middle: 102400 kbytes in 5.954521 sec = 17197 kbytes/sec inside: 102400 kbytes in 5.891870 sec = 17380 kbytes/sec Your card(s) should at least get these values. My dmesg sample: uhub0: on usbus1 mmcsd0: 32GB at mmc0 50.0MHz/4bit/65535-block bcm2835_cpufreq0: ARM 600MHz, Core 250MHz, SDRAM 400MHz, Turbo OFF If I read your cards correctly: >root@generic:~ # dmesg | grep -i mmcsd >mmcsd0: 31GB at mmc0 >0.4MHz/4bit/65535-block >``` >Raspberry Pi 4 with a different card: >``` >mmcsd0: 31GB at mmc1 >0.4MHz/4bit/65535-block >``` I guess the first is Silicon Power but I don't know the last one, Texas Instruments?. So, maybe it is just the type of card? That doesn't explain why they work in linux, though. On the forums I have read where anything but Sandisk seems to be problematic. I have always run Sandisk Extreme (pro) on Raspberry Pis and never had any slowness and just 1 failure in many years. Regards, Matt.