Date: Tue, 11 Aug 2020 23:04:47 +0200 From: Gordon Bergling <gbe@freebsd.org> To: Hrant Dadivanyan <hrant@dadivanyan.com> Cc: freebsd-arm@freebsd.org Subject: Re: RPi4B only allocates 1GB instead of 4GB Message-ID: <20200811210447.GA64749@lion.0xfce3.net> In-Reply-To: <98347528-ef06-b8d8-8c31-99eec3a15ec2@dadivanyan.com> References: <20200811194713.GA54090@lion.0xfce3.net> <98347528-ef06-b8d8-8c31-99eec3a15ec2@dadivanyan.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--liOOAslEiF7prFVr Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Hrant, On Wed, Aug 12, 2020 at 12:45:59AM +0400, Hrant Dadivanyan wrote: > Hi, >=20 > 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) >=20 > Thanks to Robert Crowston and all who work on this, well done. >=20 > Thank you, > Hrant Thank you for pointing towards the modified u-boot files, which, indeed, so= lves the memory problem on the RPi4B, since it detects now the 4GB onboard memor= y. I know the FreeBSD wiki pages, but I didn't find any references for the upd= ated u-boot binaries you reference to. I'll speak with Robert and after his chan= ges are upstreamed FreeBSD will hopefully soon have live images available that have= the fixes included. Thank you, --Gordon > 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 memory > > 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" --liOOAslEiF7prFVr Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGTBAEBCgB9FiEEYbWI0KY5X7yH/Fy4OQX2V8rP09wFAl8zB+1fFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDYx QjU4OEQwQTYzOTVGQkM4N0ZDNUNCODM5MDVGNjU3Q0FDRkQzREMACgkQOQX2V8rP 09xdVQf/Yl54f9kd/vDx2A50KmxO6tWfdc/0u+uCoKvby+nZKnpqOBay/1LRWt++ 7EhMptx3voy1gFFlBtUl8nPChzGe72LP9GtoZrnj9pTwB0cxsfhCiV7RdeLtOI7a ujN0bZMgOcRfNOst7TX/8xSHEyUgjIv434a3eUSVaTvVBz2rlVz94qqVgVMQHnmW wR2SvDC7PAlvNol1Qrl/YOpfazz8CJH5Ns6ntJs4AGaejJAGt+jDyXwE9R3+7Mn8 7CnKo/A/x2ldVbUHHqZQosqmsMC/sTUaoXI3A8y/fBc4dFRKo+PYiC6BT9I1kgcz ASr6sFFQHT1G/JSqA/VXkp0A1menYQ== =Rf1N -----END PGP SIGNATURE----- --liOOAslEiF7prFVr--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20200811210447.GA64749>