From owner-freebsd-arm@freebsd.org Tue Aug 11 20:46:19 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 5535C3B6C6C for ; Tue, 11 Aug 2020 20:46:19 +0000 (UTC) (envelope-from hrant.dadivanyan@gmail.com) Received: from mail-lj1-f196.google.com (mail-lj1-f196.google.com [209.85.208.196]) (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 4BR4cV3m2tz42G6 for ; Tue, 11 Aug 2020 20:46:18 +0000 (UTC) (envelope-from hrant.dadivanyan@gmail.com) Received: by mail-lj1-f196.google.com with SMTP id w14so15063267ljj.4 for ; Tue, 11 Aug 2020 13:46:18 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:autocrypt:message-id :date:user-agent:mime-version:in-reply-to; bh=qCA9W5TImSwqwX3KCRlmBLuulUrflI5Z9yKn8MFapq8=; b=hhKnDDF4LW0UCwy/YjIPENt06XnjtfExYrjTUhr1xVjPB74K67LB8tXE4SrvLNx1Ce /uYvByRY3TKvc2wyxNRDPix0Loyrj99BW3a2fBRj4/0hpzE4ZT59Dzet5IFg20jo8L4R jqGCoziAZtLItjIF6pdqtAWLVlDxLZ1TSUWAVNRYmKRaCI+j0DofpmC3RjdWjOCqkSrp 2xpyoeVMnUqwdz2qlgxTUCKm3O7VXotYQrKMWChHTM8P1msEaobyK1aa6REI8mRgdp9g EL1mC/MxxrQ8lvUKPswwUg6nIKtDc325VC93DzxIbPvtwp+nDmgyc3F+osd18EyaF+Oz FVWw== X-Gm-Message-State: AOAM531PNdlVPq9vu4yasQ4mLkf/bkSB78BT+M8lcZzWXOUK/zinh1lx 2pSTC2TbKRqNgdbX/CiIvUAx1DXs X-Google-Smtp-Source: ABdhPJwFHnUAv66BrRHyUDAeqzoKJ9tCmoW6GzDF3Gbzt0AHK8i7Qb053ws4ZWK6hFx6lOpDtiFWSw== X-Received: by 2002:a05:651c:208:: with SMTP id y8mr3980681ljn.233.1597178776356; Tue, 11 Aug 2020 13:46:16 -0700 (PDT) Received: from dadivanyan.net ([62.89.17.242]) by smtp.gmail.com with ESMTPSA id 132sm11923455lfo.16.2020.08.11.13.46.15 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 11 Aug 2020 13:46:15 -0700 (PDT) Subject: Re: RPi4B only allocates 1GB instead of 4GB To: freebsd-arm@freebsd.org References: <20200811194713.GA54090@lion.0xfce3.net> From: Hrant Dadivanyan Autocrypt: addr=hrant@dadivanyan.com; keydata= mQENBFgDUB4BCACuEuOfqVeiotV5BY/6IlWfSvmsY+EI9yYA62Q5310oYUsKBL4HwKpNl5N2 7Nt3YJWp5QAkB49B4msl9fGpzKK/obxDwoM37bf3Np789dSRp9EKk71Thel3eeaYvaz2K7w4 iT+R5/1/5Wvn5TqV96X9aTlmzDkz7eHJ3SRVsz2Vbk4fbbFSAv1OaDaiscOVpDXZsVLUMoL3 N8YLMmsNHw8pt7Kh/08Pd5SU4k576Mo2TUWG0uRiL2BunQP/JMvs/jU8L5xpaXi1MfEFyRfC 3xEeEM9hjBn3PgJgtJW071CRibc7E+e9Xi5K7kVn4MQnoZM0byiyC26XHtKehS7rtoZDABEB AAG0J0hyYW50IERhZGl2YW55YW4gPGhyYW50QGRhZGl2YW55YW4ubmV0PokBOAQTAQIAIgUC WANQHgIbAwYLCQgHAwIGFQgCCQoLBBYCAwECHgECF4AACgkQh/fmw7c/bD0TmwgApxRd9pxN dypwqb87PYTbEwn9lBl4lHOTjuvrH+MWeIYh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3a15ec2@dadivanyan.com> Date: Wed, 12 Aug 2020 00:45:59 +0400 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 MIME-Version: 1.0 In-Reply-To: <20200811194713.GA54090@lion.0xfce3.net> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="cdz8VEV59pvdJR94buaOkQucIAkQ3J8kk" X-Rspamd-Queue-Id: 4BR4cV3m2tz42G6 X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of hrantdadivanyan@gmail.com designates 209.85.208.196 as permitted sender) smtp.mailfrom=hrantdadivanyan@gmail.com X-Spamd-Result: default: False [-3.89 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:209.85.128.0/17:c]; HAS_ATTACHMENT(0.00)[]; TO_DN_NONE(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; NEURAL_HAM_SHORT(-0.11)[-0.114]; SIGNED_PGP(-2.00)[]; FORGED_SENDER(0.30)[hrant@dadivanyan.com,hrantdadivanyan@gmail.com]; RECEIVED_SPAMHAUS_PBL(0.00)[62.89.17.242:received]; MIME_TRACE(0.00)[0:+,1:+,2:+,3:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US]; R_DKIM_NA(0.00)[]; TAGGED_FROM(0.00)[]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.68)[-0.680]; FROM_NEQ_ENVFROM(0.00)[hrant@dadivanyan.com,hrantdadivanyan@gmail.com]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; MIME_GOOD(-0.20)[multipart/signed,multipart/mixed,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; DMARC_NA(0.00)[dadivanyan.com]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-0.99)[-0.992]; RCVD_IN_DNSWL_NONE(0.00)[209.85.208.196:from]; RWL_MAILSPIKE_POSSIBLE(0.00)[209.85.208.196:from]; RCVD_TLS_ALL(0.00)[] 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: Tue, 11 Aug 2020 20:46:19 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --cdz8VEV59pvdJR94buaOkQucIAkQ3J8kk Content-Type: multipart/mixed; boundary="SacWsA3zjzlKDi4BfEmynTQzEISFeVPX2" --SacWsA3zjzlKDi4BfEmynTQzEISFeVPX2 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable Hi, https://wiki.freebsd.org/arm/Raspberry%20Pi is quite useful for RPi4 setup. As for memory, it was: real memory =3D 251428864 (239 MB) avail memory =3D 221073408 (210 MB) until I've replaced existing u-boot with one provided in the wiki - https://sourceforge.net/projects/rpi4-8gbram-boot-fbsdonly/files/u-boot.b= in/download : real memory =3D 7700508672 (7343 MB) avail memory =3D 7487938560 (7141 MB) Thanks to Robert Crowston and all who work on this, well done. Thank you, Hrant On 2020-08-11 23:47, Gordon Bergling wrote: > Hi, >=20 > I am currently working on an issue [1] of FreeBSD regarding the memory = allocation > on the RPi4B. I have a 4GB model running a very recent version of -CURR= ENT, > but FreeBSD only recognizes 1GB instead of the installed 4GB of memory.= >=20 > I spent some time today looking through the general determination of ph= ysical=20 > memory in FreeBSD in sys/vm/vm_phys.c, but my initial try to simply the= issue > by building a kernel without NUMA support wasn't that successful. >=20 > The next part I was thinking about was the firmware -> kernel interface= , lets > say UEFI vs. 'plain u-boot'. But after the study of information I found= on the > net, that is a far different story, compared to read C-sources. >=20 > Has anyone a RPi4 or RPi4B with memory !=3D 1GB, who could verify that = issue? >=20 > I found some information on a chinese website where somebody posted a d= mesg > output of FreeBSD 13-CURRENT on an RPi4B (8 GB version) where the memor= y > allocation was correct. >=20 > --Gordon >=20 > [1] https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D247012 > _______________________________________________ > 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" >=20 --SacWsA3zjzlKDi4BfEmynTQzEISFeVPX2-- --cdz8VEV59pvdJR94buaOkQucIAkQ3J8kk Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Comment: Using GnuPG with Thunderbird - https://www.enigmail.net/ iQEzBAEBCAAdFiEEPbz+l3tnoK718ci3h/fmw7c/bD0FAl8zA5UACgkQh/fmw7c/ bD1s8Qf9GPbhckXpWIROdrPUIdpDZO2+1KyLgeNqFimrPhWrFiBIqOvqcIvMsSZg BgdFOQVjMFzOvuHVQ81IOnO8jdctRQ8OU/IT05x/Uw/cqqFiS2uBiFK38KEWFdKU GWrVTkwQ1mn95CqwJNenkES/MtO/3oWxVg98k6uuPKunThKEKMZlHXAYyawV7tq+ ufdp4WRzrxN3r7IcF4YJgIXC4FLq6yUomuIFY2rBtGu70fTDwjg+FPMHnm58i2yv 9qx4j8VvR9o/t+4bWxlQ5WkEkoDLpb/cN0J7Ti738VIQBv/prWiuSMncqZu0UF62 NJQgP5pBEVHgIaiEKts0ECeMvU688Q== =ijOL -----END PGP SIGNATURE----- --cdz8VEV59pvdJR94buaOkQucIAkQ3J8kk--