From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 827B9C433EF for ; Sat, 9 Apr 2022 02:29:03 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id E34D483B29; Sat, 9 Apr 2022 04:29:00 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=rock-chips.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id C66A183D30; Sat, 9 Apr 2022 04:28:58 +0200 (CEST) Received: from mail-m17664.qiye.163.com (mail-m17664.qiye.163.com [59.111.176.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 3FC2783AE7 for ; Sat, 9 Apr 2022 04:28:53 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=rock-chips.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=kever.yang@rock-chips.com Received: from [192.168.0.115] (unknown [112.49.233.126]) by mail-m17664.qiye.163.com (Hmail) with ESMTPA id 755AD1401D2; Sat, 9 Apr 2022 10:28:41 +0800 (CST) Message-ID: <14352ea0-9883-a9e3-034c-2443d622f7d9@rock-chips.com> Date: Sat, 9 Apr 2022 10:28:41 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Subject: Re: Radxa rock-pi-3a Content-Language: en-US To: Richard Kojedzinszky , u-boot@lists.denx.de References: <774b3ce33306097071e79a6b9bb3b092@kojedz.in> From: Kever Yang In-Reply-To: <774b3ce33306097071e79a6b9bb3b092@kojedz.in> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-HM-Spam-Status: e1kfGhgUHx5ZQUtXWQgPGg8OCBgUHx5ZQUlOS1dZCBgUCR5ZQVlLVUtZV1 kWDxoPAgseWUFZKDYvK1lXWShZQUhPN1dZLVlBSVdZDwkaFQgSH1lBWUJKH0pWSU9JS09CH05NHR 4YVRMBExYaEhckFA4PWVdZFhoPEhUdFFlBWU9LSFVKSktISkNVS1kG X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6NRA6Cio5Vj4MM0w#UQNLPy0e FhQaFDdVSlVKTU9CT0xKSElKTEtJVTMWGhIXVRAeDR4JVQIaFRw7CRQYEFYYExILCFUYFBZFWVdZ EgtZQVlKSklVT0JVSUhIVUpJTVlXWQgBWUFJSE9MNwY+ X-HM-Tid: 0a800c26f5b4da2fkuws755ad1401d2 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.5 at phobos.denx.de X-Virus-Status: Clean Hi Richard,     The ATAGs to pass the parameters is not available on the mainline U-Boot, and only use os_regs for the ram size for now, it do have the limitation for max 4GB now.     There is a fix for this  on the list, you can try it: https://patchwork.ozlabs.org/project/uboot/patch/20220222013131.3114990-12-pgwipeout@gmail.com/ Thanks, - Kever On 2022/4/8 15:44, Richard Kojedzinszky wrote: > Dear community, > > I own a rock-pi-3a board with 8G ram. Right now, radxa's u-boot is > capable of detecting the whole amount during boot. Upstream u-boot > shows 1G of dram installed. > > I've started with evb-rk3568_defconfig. > > What I would like to achieve is that u-boot load grub-efi, to finally > boot the operating system. Howewer, with radxa uboot, and using > grub-efi, the kernel sees 4G only. If I boot the kernel image directly > from radxa u-boot, the whole 8G is visible. I assume that efi is > broken somehow, as I get multiple warnings from kernel regarding EFI > firmware. > > > Reading radxa's u-boot, it seems that it uses ATAGs do detect memory > size. Am I in the right way? > > Would it be beneficial to port some of that code to upstream u-boot, > or are there other solutions to detect correct memory size? > > > Thanks in advance, > Richard