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 1CD97C54EBD for ; Fri, 13 Jan 2023 15:02:00 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id D547A83620; Fri, 13 Jan 2023 16:01:57 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b="B232s9mH"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 34CCA851EB; Fri, 13 Jan 2023 16:01:56 +0100 (CET) Received: from mail-yw1-x112a.google.com (mail-yw1-x112a.google.com [IPv6:2607:f8b0:4864:20::112a]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 189F981F29 for ; Fri, 13 Jan 2023 16:01:51 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-yw1-x112a.google.com with SMTP id 00721157ae682-4c15c4fc8ccso288153727b3.4 for ; Fri, 13 Jan 2023 07:01:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=ndFyE92S9d/1Ne+c7qo0RHyiow2F4i4RGzS776egzXE=; b=B232s9mHis5r3xahzqAJwz5j86z/shmywowM3NYl46c4gI7g9fXsO7iqGet7Lib7Xj bx9lf/1AHtVXwW+fMgLUXO9L5m197GgDzOQsqGQbaTkawKO4kjHMOIZVC3DOuZYGU3pI bDzyqNLfgO1WUUR/JVVaklzHLOgiYGw46DXqQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=ndFyE92S9d/1Ne+c7qo0RHyiow2F4i4RGzS776egzXE=; b=QP09/QJMR/8tKFGcD3cWdGk4Lw6Tde37mfPZxsWXwW78IfKlNPDd5tButj8IA9s6D6 OqDM/ztgkODyHJAgp+dIPogoEunpikUmD0BG2RN51b33IVnGdkE2Ex3k5ImRiWdXuETU GElrfG4StowBI5ADj7NwQqqHHCedDO+P7KZRtxpD5qAJXmmIMqf+HSfumryBdFGN0UI8 kx5mFGx5AEmzUE+vRn/hKDx4lCsnlHy1VoyZ92BtVCJpn70EooFrf5Nhq/YtfPwdHS+C J37q7Pe+NPFjGhauI65IL8dWruqUc12Wz9OeswRe8xvNK874rTqGaO0gmeNiQTq0Y91N NIEQ== X-Gm-Message-State: AFqh2krqWNfZ3bkqsSZgn4jYdFeMKy5KIB9Zn3JmAzQp9oQ274IH0FSQ 7+dSEcdfcEvTD2xH6FLixIw+ag== X-Google-Smtp-Source: AMrXdXs0CX8k40usR+cf0lRmsD893vtk8Oyqi9VXfdT6+3XMcpc6ei81sUav8mGGPoY7dTsoCUq08Q== X-Received: by 2002:a05:7500:22d4:b0:f0:5752:de82 with SMTP id l20-20020a05750022d400b000f05752de82mr1508320gac.31.1673622109229; Fri, 13 Jan 2023 07:01:49 -0800 (PST) Received: from bill-the-cat (2603-6081-7b00-6400-a538-813d-bada-d144.res6.spectrum.com. [2603:6081:7b00:6400:a538:813d:bada:d144]) by smtp.gmail.com with ESMTPSA id de9-20020a05620a370900b007057cc1e87bsm12599601qkb.136.2023.01.13.07.01.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Jan 2023 07:01:48 -0800 (PST) Date: Fri, 13 Jan 2023 10:01:46 -0500 From: Tom Rini To: Joost van Zwieten Cc: Jaehoon Chung , u-boot@lists.denx.de Subject: Re: kernel doesn't start on Odroid U2 unless setting initrd_high Message-ID: <20230113150146.GQ3787616@bill-the-cat> References: <20230110184101.GO3787616@bill-the-cat> <20230110230824.GR3787616@bill-the-cat> <20230110232915.GS3787616@bill-the-cat> <20230111203844.GO3787616@bill-the-cat> <20230112001015.GR3787616@bill-the-cat> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="3vUE4dODyhHa6Pqm" Content-Disposition: inline In-Reply-To: X-Clacks-Overhead: GNU Terry Pratchett 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.6 at phobos.denx.de X-Virus-Status: Clean --3vUE4dODyhHa6Pqm Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jan 12, 2023 at 11:32:42PM +0100, Joost van Zwieten wrote: >=20 >=20 > On Wed, Jan 11, 2023 at 19:10, Tom Rini wrote: > > On Wed, Jan 11, 2023 at 10:08:59PM +0100, Joost van Zwieten wrote: > > >=20 > > >=20 > > > On Wed, Jan 11, 2023 at 15:38, Tom Rini wrote: > > > > On Wed, Jan 11, 2023 at 09:28:42PM +0100, Joost van Zwieten wrote: > > > > > > > > > > > > > > > On Tue, Jan 10, 2023 at 18:29, Tom Rini > > > wrote: > > > > > > On Wed, Jan 11, 2023 at 12:10:42AM +0100, Joost van Zwieten > > > wrote: > > > > > > > > > > > > > > > > > > > > > On Tue, Jan 10, 2023 at 18:08, Tom Rini > > > > > > > > wrote: > > > > > > > > On Wed, Jan 11, 2023 at 12:01:46AM +0100, Joost van > > > Zwieten > > > > > wrote: > > > > > > > > > > > > > > > > > > > > > > > > > > > On Tue, Jan 10, 2023 at 13:41, Tom Rini > > > > > > > > > > > > wrote: > > > > > > > > > > On Tue, Jan 10, 2023 at 09:13:32AM +0100, Joost van > > > > > Zwieten > > > > > > > wrote: > > > > > > > > > > > > > > > > > > > > > Dear maintainers, > > > > > > > > > > > > > > > > > > > > > > As of commit > > > 4963f63fe61f15329d77472a762b1d8bf754d24b > > > > > > > U-Boot > > > > > > > > > fails > > > > > > > > > > > to start > > > > > > > > > > > a kernel (with `bootz`) on my Odroid U2 unless I > > > > > force > > > > > > > > > > > `initrd_high`, e.g. > > > > > > > > > > > to `0x50000000`. With commit 4963f63f and > > > > > `initrd_high` > > > > > > > > > *unset* I > > > > > > > > > > > get the > > > > > > > > > > > following output: > > > > > > > > > > > > > > > > > > > > > > U-Boot 2020.10-rc2-00314-g4963f63fe6 (Jan 09 > > > 2023 > > > > > - > > > > > > > 23:59:31 > > > > > > > > > > > +0100) > > > > > > > > > > > > > > > > > > > > > > CPU: Exynos4412 @ 1 GHz > > > > > > > > > > > Model: Odroid based on Exynos4412 > > > > > > > > > > > Type: u3 > > > > > > > > > > > DRAM: 2 GiB > > > > > > > > > > > LDO20@VDDQ_EMMC_1.8V: set 1800000 uV; > > > enabling > > > > > > > > > > > LDO22@VDDQ_EMMC_2.8V: set 2800000 uV; > > > enabling > > > > > > > > > > > LDO21@TFLASH_2.8V: set 2800000 uV; enabling > > > > > > > > > > > MMC: SAMSUNG SDHCI: 2, EXYNOS DWMMC: 0 > > > > > > > > > > > Loading Environment from MMC... *** Warning > > > - bad > > > > > CRC, > > > > > > > using > > > > > > > > > > > default > > > > > > > > > > > environment > > > > > > > > > > > > > > > > > > > > > > In: serial > > > > > > > > > > > Out: serial > > > > > > > > > > > Err: serial > > > > > > > > > > > Boot device: MMC(2) > > > > > > > > > > > Net: No ethernet found. > > > > > > > > > > > Hit any key to stop autoboot: 0 > > > > > > > > > > > Odroid # env set fk_kvers 5.10.0-20-armmp > > > > > > > > > > > Odroid # load mmc > > > ${mmcbootdev}:${mmcbootpart} > > > > > > > ${fdt_addr_r} > > > > > > > > > > > /boot/dtbs/${fk_kvers}/exynos4412-odroidu3.dtb > > > > > > > > > > > 53440 bytes read in 50 ms (1 MiB/s) > > > > > > > > > > > Odroid # load mmc > > > ${mmcbootdev}:${mmcbootpart} > > > > > > > > > ${kernel_addr_r} > > > > > > > > > > > /boot/vmlinuz-${fk_kvers} > > > > > > > > > > > 4973056 bytes read in 182 ms (26.1 MiB/s) > > > > > > > > > > > Odroid # load mmc > > > ${mmcbootdev}:${mmcbootpart} > > > > > > > > > ${ramdisk_addr_r} > > > > > > > > > > > /boot/initrd.img-${fk_kvers} > > > > > > > > > > > 22231585 bytes read in 777 ms (27.3 MiB/s) > > > > > > > > > > > Odroid # env set bootargs > > > console=3DttySAC1,115200n8 > > > > > > > > > > > Odroid # bootz ${kernel_addr_r} > > > > > > > > > ${ramdisk_addr_r}:${filesize} > > > > > > > > > > > ${fdt_addr_r} > > > > > > > > > > > Kernel image @ 0x41000000 [ 0x000000 - > > > 0x4be200 ] > > > > > > > > > > > ## Flattened Device Tree blob at 40800000 > > > > > > > > > > > Booting using the fdt blob at 0x40800000 > > > > > > > > > > > Loading Ramdisk to b9947000, end bae7aa21 > > > ... > > > > > OK > > > > > > > > > > > Loading Device Tree to b9936000, end > > > b99460bf > > > > > ... OK > > > > > > > > > > > > > > > > > > > > > > Starting kernel ... > > > > > > > > > > > > > > > > > > > > > > And that's all I ever see. Normally the initrd > > > loads > > > > > a > > > > > > > module > > > > > > > > > that > > > > > > > > > > > causes an > > > > > > > > > > > LED on the Odroid to blink, and this is not > > > happening > > > > > > > either, > > > > > > > > > so > > > > > > > > > > > I'm pretty > > > > > > > > > > > confident the kernel doesn't start or at least > > > > > crashes > > > > > > > before > > > > > > > > > > > producing > > > > > > > > > > > output. If I set `initrd_high` to `0x50000000` > > > (or > > > > > > > something > > > > > > > > > in the > > > > > > > > > > > neighborhood) the kernel starts just fine: > > > > > > > > > > > > > > > > > > > > > > U-Boot 2020.10-rc2-00314-g4963f63fe6 (Jan 09 > > > 2023 > > > > > - > > > > > > > 23:59:31 > > > > > > > > > > > +0100) > > > > > > > > > > > > > > > > > > > > > > CPU: Exynos4412 @ 1 GHz > > > > > > > > > > > Model: Odroid based on Exynos4412 > > > > > > > > > > > Type: u3 > > > > > > > > > > > DRAM: 2 GiB > > > > > > > > > > > LDO20@VDDQ_EMMC_1.8V: set 1800000 uV; > > > enabling > > > > > > > > > > > LDO22@VDDQ_EMMC_2.8V: set 2800000 uV; > > > enabling > > > > > > > > > > > LDO21@TFLASH_2.8V: set 2800000 uV; enabling > > > > > > > > > > > MMC: SAMSUNG SDHCI: 2, EXYNOS DWMMC: 0 > > > > > > > > > > > Loading Environment from MMC... *** Warning > > > - bad > > > > > CRC, > > > > > > > using > > > > > > > > > > > default > > > > > > > > > > > environment > > > > > > > > > > > > > > > > > > > > > > In: serial > > > > > > > > > > > Out: serial > > > > > > > > > > > Err: serial > > > > > > > > > > > Boot device: MMC(2) > > > > > > > > > > > Net: No ethernet found. > > > > > > > > > > > Hit any key to stop autoboot: 0 > > > > > > > > > > > Odroid # env set fk_kvers 5.10.0-20-armmp > > > > > > > > > > > Odroid # load mmc > > > ${mmcbootdev}:${mmcbootpart} > > > > > > > ${fdt_addr_r} > > > > > > > > > > > /boot/dtbs/${fk_kvers}/exynos4412-odroidu3.dtb > > > > > > > > > > > 53440 bytes read in 49 ms (1 MiB/s) > > > > > > > > > > > Odroid # load mmc > > > ${mmcbootdev}:${mmcbootpart} > > > > > > > > > ${kernel_addr_r} > > > > > > > > > > > /boot/vmlinuz-${fk_kvers} > > > > > > > > > > > 4973056 bytes read in 181 ms (26.2 MiB/s) > > > > > > > > > > > Odroid # load mmc > > > ${mmcbootdev}:${mmcbootpart} > > > > > > > > > ${ramdisk_addr_r} > > > > > > > > > > > /boot/initrd.img-${fk_kvers} > > > > > > > > > > > 22231585 bytes read in 777 ms (27.3 MiB/s) > > > > > > > > > > > Odroid # env set bootargs > > > console=3DttySAC1,115200n8 > > > > > > > > > > > Odroid # env set initrd_high 0x50000000 > > > > > > > > > > > Odroid # bootz ${kernel_addr_r} > > > > > > > > > ${ramdisk_addr_r}:${filesize} > > > > > > > > > > > ${fdt_addr_r} > > > > > > > > > > > Kernel image @ 0x41000000 [ 0x000000 - > > > 0x4be200 ] > > > > > > > > > > > ## Flattened Device Tree blob at 40800000 > > > > > > > > > > > Booting using the fdt blob at 0x40800000 > > > > > > > > > > > Loading Ramdisk to 4eacc000, end 4ffffa21 > > > ... > > > > > OK > > > > > > > > > > > Loading Device Tree to bae6a000, end > > > bae7a0bf > > > > > ... OK > > > > > > > > > > > > > > > > > > > > > > Starting kernel ... > > > > > > > > > > > > > > > > > > > > > > [ 0.000000] Booting Linux on physical CPU > > > 0xa00 > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > The difference between those two runs is the > > > location > > > > > > > where > > > > > > > > > U-Boot > > > > > > > > > > > loads the > > > > > > > > > > > initrd. The parent commit of 4963f63f boots fine > > > > > without > > > > > > > > > setting > > > > > > > > > > > `initrd_high`: > > > > > > > > > > > > > > > > > > > > > > U-Boot 2020.10-rc2-00313-gdfaf6a5797 (Jan 10 > > > 2023 > > > > > - > > > > > > > 00:13:19 > > > > > > > > > > > +0100) > > > > > > > > > > > > > > > > > > > > > > CPU: Exynos4412 @ 1 GHz > > > > > > > > > > > Model: Odroid based on Exynos4412 > > > > > > > > > > > Type: u3 > > > > > > > > > > > DRAM: 2 GiB > > > > > > > > > > > LDO20@VDDQ_EMMC_1.8V: set 1800000 uV; > > > enabling > > > > > > > > > > > LDO22@VDDQ_EMMC_2.8V: set 2800000 uV; > > > enabling > > > > > > > > > > > LDO21@TFLASH_2.8V: set 2800000 uV; enabling > > > > > > > > > > > MMC: SAMSUNG SDHCI: 2, EXYNOS DWMMC: 0 > > > > > > > > > > > Loading Environment from MMC... *** Warning > > > - bad > > > > > CRC, > > > > > > > using > > > > > > > > > > > default > > > > > > > > > > > environment > > > > > > > > > > > > > > > > > > > > > > In: serial > > > > > > > > > > > Out: serial > > > > > > > > > > > Err: serial > > > > > > > > > > > Boot device: MMC(2) > > > > > > > > > > > Net: No ethernet found. > > > > > > > > > > > Hit any key to stop autoboot: 0 > > > > > > > > > > > Odroid # env set fk_kvers 5.10.0-20-armmp > > > > > > > > > > > Odroid # load mmc > > > ${mmcbootdev}:${mmcbootpart} > > > > > > > ${fdt_addr_r} > > > > > > > > > > > /boot/dtbs/${fk_kvers}/exynos4412-odroidu3.dtb > > > > > > > > > > > 53440 bytes read in 49 ms (1 MiB/s) > > > > > > > > > > > Odroid # load mmc > > > ${mmcbootdev}:${mmcbootpart} > > > > > > > > > ${kernel_addr_r} > > > > > > > > > > > /boot/vmlinuz-${fk_kvers} > > > > > > > > > > > 4973056 bytes read in 181 ms (26.2 MiB/s) > > > > > > > > > > > Odroid # load mmc > > > ${mmcbootdev}:${mmcbootpart} > > > > > > > > > ${ramdisk_addr_r} > > > > > > > > > > > /boot/initrd.img-${fk_kvers} > > > > > > > > > > > 22231585 bytes read in 776 ms (27.3 MiB/s) > > > > > > > > > > > Odroid # env set bootargs > > > console=3DttySAC1,115200n8 > > > > > > > > > > > Odroid # bootz ${kernel_addr_r} > > > > > > > > > ${ramdisk_addr_r}:${filesize} > > > > > > > > > > > ${fdt_addr_r} > > > > > > > > > > > Kernel image @ 0x41000000 [ 0x000000 - > > > 0x4be200 ] > > > > > > > > > > > ## Flattened Device Tree blob at 40800000 > > > > > > > > > > > Booting using the fdt blob at 0x40800000 > > > > > > > > > > > Loading Ramdisk to 4eacc000, end 4ffffa21 > > > ... > > > > > OK > > > > > > > > > > > Loading Device Tree to 4eabb000, end > > > 4eacb0bf > > > > > ... OK > > > > > > > > > > > > > > > > > > > > > > Starting kernel ... > > > > > > > > > > > > > > > > > > > > > > [ 0.000000] Booting Linux on physical CPU > > > 0xa00 > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > I've tested two different kernels from Debian > > > > > (buster and > > > > > > > > > bullseye) > > > > > > > > > > > and both > > > > > > > > > > > have the same problem. I'm building U-Boot > > > using the > > > > > > > default > > > > > > > > > config > > > > > > > > > > > for > > > > > > > > > > > board `odroid` and boot the Odroid from an SD > > > card > > > > > with > > > > > > > > > firmware > > > > > > > > > > > (`bl1`, > > > > > > > > > > > `bl2` and `tzsw`) from Hardkernel's clone of the > > > > > u-boot > > > > > > > > > repository > > > > > > > > > > > [1]. > > > > > > > > > > > There are no peripherals connected apart from > > > the SD > > > > > card > > > > > > > and > > > > > > > > > the > > > > > > > > > > > serial > > > > > > > > > > > console. Please let me know if you need more > > > > > information. > > > > > > > > > > > > > > > > > > > > Interesting. So what does "bdi" show, both in the > > > older > > > > > good > > > > > > > and > > > > > > > > > > then current tree? Specifically the information > > > about > > > > > where > > > > > > > DRAM > > > > > > > > > is, and > > > > > > > > > > how large it is? Thanks. > > > > > > > > > > > > > > > > > > > > -- > > > > > > > > > > Tom > > > > > > > > > > > > > > > > > > Both 4963f63f (not working) and its parent (working) > > > > > produce > > > > > > > the > > > > > > > > > same > > > > > > > > > output: > > > > > > > > > > > > > > > > > > boot_params =3D 0x40000100 > > > > > > > > > DRAM bank =3D 0x00000000 > > > > > > > > > -> start =3D 0x40000000 > > > > > > > > > -> size =3D 0x10000000 > > > > > > > > > DRAM bank =3D 0x00000001 > > > > > > > > > -> start =3D 0x50000000 > > > > > > > > > -> size =3D 0x10000000 > > > > > > > > > DRAM bank =3D 0x00000002 > > > > > > > > > -> start =3D 0x60000000 > > > > > > > > > -> size =3D 0x10000000 > > > > > > > > > DRAM bank =3D 0x00000003 > > > > > > > > > -> start =3D 0x70000000 > > > > > > > > > -> size =3D 0x10000000 > > > > > > > > > DRAM bank =3D 0x00000004 > > > > > > > > > -> start =3D 0x80000000 > > > > > > > > > -> size =3D 0x10000000 > > > > > > > > > DRAM bank =3D 0x00000005 > > > > > > > > > -> start =3D 0x90000000 > > > > > > > > > -> size =3D 0x10000000 > > > > > > > > > DRAM bank =3D 0x00000006 > > > > > > > > > -> start =3D 0xa0000000 > > > > > > > > > -> size =3D 0x10000000 > > > > > > > > > DRAM bank =3D 0x00000007 > > > > > > > > > -> start =3D 0xb0000000 > > > > > > > > > -> size =3D 0x0ff00000 > > > > > > > > > memstart =3D 0x40000000 > > > > > > > > > memsize =3D 0x7ff00000 > > > > > > > > > flashstart =3D 0x00000000 > > > > > > > > > flashsize =3D 0x00000000 > > > > > > > > > flashoffset =3D 0x00000000 > > > > > > > > > baudrate =3D 115200 bps > > > > > > > > > relocaddr =3D 0xbfe83000 > > > > > > > > > reloc off =3D 0x7c083000 > > > > > > > > > Build =3D 32-bit > > > > > > > > > current eth =3D unknown > > > > > > > > > ethaddr =3D (not set) > > > > > > > > > IP addr =3D > > > > > > > > > fdt_blob =3D 0xbae7bf00 > > > > > > > > > new_fdt =3D 0xbae7bf00 > > > > > > > > > fdt_size =3D 0x00002fa0 > > > > > > > > > lmb_dump_all: > > > > > > > > > memory.cnt =3D 0x1 > > > > > > > > > memory.size =3D 0x0 > > > > > > > > > memory.reg[0x0].base =3D 0x40000000 > > > > > > > > > .size =3D 0x7ff00000 > > > > > > > > > > > > > > > > > > reserved.cnt =3D 0x1 > > > > > > > > > reserved.size =3D 0x0 > > > > > > > > > reserved.reg[0x0].base =3D 0xbae7acd0 > > > > > > > > > .size =3D 0x5085330 > > > > > > > > > arch_number =3D 0x000010c1 > > > > > > > > > TLB addr =3D 0xbfef0000 > > > > > > > > > irq_sp =3D 0xbae7bef0 > > > > > > > > > sp start =3D 0xbae7bee0 > > > > > > > > > Board Type =3D 0 > > > > > > > > > Early malloc usage: f0 / 400 > > > > > > > > > > > > > > > > > > I'm not sure if this is relevant, but with the > > > failing > > > > > commit > > > > > > > I can > > > > > > > > > get the > > > > > > > > > kernel to start with `initrd_high` set to > > > `0x70000000` or > > > > > > > lower, > > > > > > > > > but not > > > > > > > > > higher. > > > > > > > > > > > > > > > > OK, so 8 whole banks, of 256MB each. Does this platform > > > have > > > > > 2GB > > > > > > > of > > > > > > > > memory for real? > > > > > > > > > > > > > > > > -- > > > > > > > > Tom > > > > > > > > > > > > > > Yes, it does. See > > > https://www.hardkernel.com/shop/odroid-u3/ . > > > > > > > > > > > > Thanks. I guess my current thought is that in the absence of > > > > > adding > > > > > > earlycon to the kernel args, to perhaps get more info out of > > > the > > > > > kernel > > > > > > as to when / where it's dying, that bootm_size should be set > > > to > > > > > > 0x10000000 (256MB) to replicate the old behavior, on this > > > > > platform. > > > > > > Jaehoon, do you have any other ideas? > > > > > > > > > > > > -- > > > > > > Tom > > > > > > > > > > I was not aware of the existence of `earlycon`. Running the > > > first > > > > > failing > > > > > commit 4963f63f with `earlycon` and with `initrd_high` *unset* > > > > > reveals a > > > > > kernel panic: > > > > > > > > > > Kernel image @ 0x41000000 [ 0x000000 - 0x4be200 ] > > > > > ## Flattened Device Tree blob at 40800000 > > > > > Booting using the fdt blob at 0x40800000 > > > > > Loading Ramdisk to b9947000, end bae7aa21 ... OK > > > > > Loading Device Tree to b9936000, end b99460bf ... OK > > > > > > > > > > Starting kernel ... > > > > > > > > > > [ 0.000000] Booting Linux on physical CPU 0xa00 > > > > > [ 0.000000] Linux version 5.10.0-20-armmp > > > > > (debian-kernel@lists.debian.org) (gcc-10 (Debian 10.2.1-6) > > > 10.2.1 > > > > > 20210110, > > > > > GNU ld (GNU Binutils for Debian) 2.35.2) #1 SMP Debian > > > 5.10.158-2 > > > > > (2022-12-13) > > > > > [ 0.000000] CPU: ARMv7 Processor [413fc090] revision 0 > > > > > (ARMv7), > > > > > cr=3D10c5387d > > > > > [ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT > > > > > aliasing > > > > > instruction cache > > > > > [ 0.000000] OF: fdt: Machine model: Hardkernel ODROID-U3 > > > > > board based > > > > > on Exynos4412 > > > > > [ 0.000000] earlycon: exynos4210 at MMIO 0x13810000 > > > (options > > > > > '') > > > > > [ 0.000000] printk: bootconsole [exynos4210] enabled > > > > > [ 0.000000] Memory policy: Data cache writealloc > > > > > [ 0.000000] efi: UEFI not found. > > > > > [ 0.000000] Reserved memory: created DMA memory pool at > > > > > 0xbf700000, > > > > > size 8 MiB > > > > > [ 0.000000] OF: reserved mem: initialized node > > > > > region_mfc_right, > > > > > compatible id shared-dma-pool > > > > > [ 0.000000] Reserved memory: created DMA memory pool at > > > > > 0xbd300000, > > > > > size 36 MiB > > > > > [ 0.000000] OF: reserved mem: initialized node > > > > > region_mfc_left, > > > > > compatible id shared-dma-pool > > > > > [ 0.000000] cma: Reserved 16 MiB at 0xbc000000 > > > > > [ 0.000000] Samsung CPU ID: 0xe4412220 > > > > > [ 0.000000] Zone ranges: > > > > > [ 0.000000] DMA [mem > > > > > 0x0000000040000000-0x000000006fffffff] > > > > > [ 0.000000] Normal empty > > > > > [ 0.000000] HighMem [mem > > > > > 0x0000000070000000-0x00000000bd2fffff] > > > > > > > > So here we go. Initrd cannot be in highmem. I cannot find this > > > > documented, quickly, under > > > https://www.kernel.org/doc/html/latest/ so I > > > > guess this is more just background knowledge than formal > > > knowledge. This > > > > also matches up with your noting that initrd_high=3D0x70000000 > > > works. > > > > > > > > -- > > > > Tom > > >=20 > > > I found this [1]. Section 5 mentions placing the initrd in lowmem, > > > if I > > > understand everything correctly. > >=20 > > Ah, right, there it is, I just skimmed too quickly. > >=20 > > > Setting `bootm_size` to ` 0x10000000` works for me. I can write a > > > patch that > > > adds `bootm_size=3D0x100000000` to `CFG_EXTRA_ENV_SETTINGS` in > > > `include/configs/odroid.h` if you want, but I don't understand the > > > fix, high > > > mem and low mem well enough to write a decent commit message. I can > > > certainly test (a backport of, see bug reports [2], [3]) a patch. > > >=20 > > > Thanks for identifying the problem and proposing a fix! > >=20 > > So, bootm_size is the variable which tells U-Boot that when relocating > > initrd/fdt around, it must be within memory start + bootm_size, as a way > > of enforcing the low-memory requirement (or similar constraints, aarch64 > > says first 1GB of memory). So technically, could set that to 0x30000000 > > instead of 0x10000000 which is just what the implicit limit was before > > the change in question. A patch as you suggest would be right, so yes, > > please do and thanks again for testing / digging on the platform itself! >=20 > Ok, I'll try to make a patch then! I found `CFG_SYS_BOOTMAPSZ` in the > README. Is that one prefered over adding `bootm_size` to the default > environment? For boards based on Exynos5 the latter is used (see > `include/configs/exynos5-common.h`). Honestly, both are equally fine. I think I slightly prefer the #define approach only because for the environment one you have to reset to the default in order to get the changes in your running system. --=20 Tom --3vUE4dODyhHa6Pqm Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmPBclcACgkQFHw5/5Y0 tyyvtQv8CkTjj8YNP2ZiCmXn6DlSkRzp2UN73TlXmJrlzfrhWGzwQ9rwqTnOrtgK YlRklpfQrTIio6mm/5LtCo7g9NwRUIG+4Us0baqNk/pDaOJ2q+9rh23743OIzWjf xS5ugogFfoHxDWsqMMITMFMrB4u+sf2JEj6GvpMhzpvInq4OboAyO7JSYapYMjuy G9nn+oouO6b7LOga+2Rbd57nSVtkHR7niXJZv+cnme3q6+k1ahy6t4cXAfOnJuJf W3NheVsqILDeNVR7EVkvS63IakUh5wU+8pNkZLX4lhNqbiV7fJ2dMbDZc621vkW/ 9Rn4a+la6iCfvLToCsfxQKLr5MqDn+eWk9EwFz0SC5kuKzU4Dr5qFnlhn0bbdiwo i9eZ71J/Re4IG1XbMO99PvGa4lz0I7rqbZD+P8umGT6gTSm+rwK7Tp+2cMiPAa8N 1rInoE7Nbpjn0/aqVToTJY+FEKEh52Prp9JKrB6BpqI7sDcViwRFG6+6jMgET0qb sGgeCKSL =jjxl -----END PGP SIGNATURE----- --3vUE4dODyhHa6Pqm--