Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Aug 2020 00:45:59 +0400
From:      Hrant Dadivanyan <hrant@dadivanyan.com>
To:        freebsd-arm@freebsd.org
Subject:   Re: RPi4B only allocates 1GB instead of 4GB
Message-ID:  <98347528-ef06-b8d8-8c31-99eec3a15ec2@dadivanyan.com>
In-Reply-To: <20200811194713.GA54090@lion.0xfce3.net>
References:  <20200811194713.GA54090@lion.0xfce3.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?98347528-ef06-b8d8-8c31-99eec3a15ec2>