From mboxrd@z Thu Jan 1 00:00:00 1970 From: LABBE Corentin Date: Mon, 3 Feb 2020 10:50:07 +0100 Subject: [PATCH v3 0/3] Ethernet support for Raspberry Pi 4 In-Reply-To: <20200127120616.73342ed4@donnerap.cambridge.arm.com> References: <20200127011444.8114-1-andre.przywara@arm.com> <20200127100949.GA14303@Red> <20200127115016.GA4896@Red> <20200127120616.73342ed4@donnerap.cambridge.arm.com> Message-ID: <20200203095007.GB4164@Red> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Mon, Jan 27, 2020 at 12:06:16PM +0000, Andre Przywara wrote: > On Mon, 27 Jan 2020 12:50:16 +0100 > LABBE Corentin wrote: > > Hi, > > > On Mon, Jan 27, 2020 at 04:27:03PM +0530, Amit Tomer wrote: > > > Hi, > > > > > > > The kernel panic just after with "OF: reserved mem: failed to allocate memory for node 'linux,cma'" but that's another story. > > > > > > But this comes even without having Ethernet patches and when one use > > > booti instead of bootefi, right ? > > > > > > > So booti is unsupported on rpi 4 ? > > It should be supported, but apparently there is some bug. I guess it's about not properly reserving memory used by the armstub/ATF. Do you use the embedded RPi foundation armstub or ATF (do you have an "armstub=..." line in config.txt)? > > I will try take a look at this later. > > > I need to set a ramdisk and bootefi dont support that. > > Try "initrd=" on the kernel command line. > This is actually an EFI stub feature, the EFI command line is parsed by this pre-kernel code, which filters for initrd= and loads the initrd using the UEFI API (implemented by U-Boot). > So the initrd has to live on the EFI system partition, which means you can't load it easily via TFTP :-( > More details here: https://www.kernel.org/doc/html/latest/admin-guide/efi-stub.html#the-initrd-option > > Cheers, > Andre Just for more information, the official kernel from rpi also panic when booted with booti. [ 0.000000] Linux version 4.19.80 (oe-user at oe-host) (gcc version 8.2.0 (GCC)) #1 SMP PREEMPT Mon Jan 13 16:34:20 UTC 2020 [ 0.000000] Machine model: Raspberry Pi 4 Model B [ 0.000000] earlycon: uart0 at MMIO32 0x00000000fe215040 (options '') [ 0.000000] bootconsole [uart0] enabled [ 0.000000] efi: Getting EFI parameters from FDT: [ 0.000000] efi: UEFI not found. [ 0.000000] cma: Failed to reserve 8 MiB [ 0.000000] Kernel panic - not syncing: ERROR: Failed to allocate 0x0000000000001000 bytes below 0x0000000000000000. Regards