From: Alexander Graf Date: Sat, 8 Dec 2018 22:59:44 +0100 Subject: [U-Boot] [BUG] Odroid-C2 does not boot with U-Boot master anymore In-Reply-To: <3548ccee-9f0c-6441-35de-e6e273fde50f@gmx.de> References: <20180917115433.84505-1-agraf@suse.de> <3548ccee-9f0c-6441-35de-e6e273fde50f@gmx.de> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 08.12.18 14:16, Heinrich Schuchardt wrote: > Hello Alex, > > the patch 7a82c3051c8f ("efi_loader: Align runtime section to 64kb") > currently breaks booting Linux on the Odroid-C2. > > Output stops for kernel 4.18 after earlycon is replaced: > [ 0.012518] console [tty0] enabled > [ 0.015923] bootconsole [meson0] disabled > Without your patch it continues. > > The calculation introduced by the patch does what is expected: > ram_start = 0x0000000000000000 > ram_end = 0x0000000080000000 > __efi_runtime_start = 0x000000007ff67118 > ~runtime_mask = 0xffffffffffff0000 > runtime_start = 0x000000007ff60000 > runtime_end = 0x000000007ff70000 > > These two memory reservation do not conflict with addresses in question: > arch/arm/mach-meson/board-common.c(60) meson_board_add_reserved_memory: > 0x0000000000000000-0x0000000001000000 > arch/arm/mach-meson/board-common.c(60) meson_board_add_reserved_memory: > 0x0000000010000000-0x0000000010200000 We had an unaligned runtime start before already, so I don't quite understand yet why increasing that to 64kb would break things. I do fully understand that this patch *is* the culprit. I just would like to understand why, so we can fix it appropriately. Loic, this is probably also the failing patch for you? Alex