From nobody Sun Feb 02 17:06:08 2025 X-Original-To: freebsd-arm@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4YmGHh28kNz5mSMf for ; Sun, 02 Feb 2025 17:06:24 +0000 (UTC) (envelope-from maciphone2@googlemail.com) Received: from mail-wm1-x332.google.com (mail-wm1-x332.google.com [IPv6:2a00:1450:4864:20::332]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YmGHg6spVz3msl for ; Sun, 02 Feb 2025 17:06:23 +0000 (UTC) (envelope-from maciphone2@googlemail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-wm1-x332.google.com with SMTP id 5b1f17b1804b1-43634b570c1so25762725e9.0 for ; Sun, 02 Feb 2025 09:06:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20230601; t=1738515982; x=1739120782; darn=freebsd.org; h=to:references:message-id:content-transfer-encoding:date:in-reply-to :from:subject:mime-version:from:to:cc:subject:date:message-id :reply-to; bh=1R9SAKk58zRkjEhFxzdoBDwh1bHNqMjGUtCKRnXS+mY=; b=euA7yT5oJb7vHzwKADUV3pAmBkdBu84pjWujr+PSxNvZJ9AELFoZPNJubmbHKyUtkr wO3QgHBbnQOwpFBHYx2oHCYs5liHz0EjL8/6S+B8LPfDGGFuqihODezL0Bnn0Xgunk0R SK/HT0HcWCoBsTUxSxG0VYcwP4g13LbBLKob/yoamDjwKMp/7n+a3kTw5ISp2rYg4fOM aZktcNRnJHduGIaapxVrMha4kl1YAg6q1zNAviQPOBmZsJuvudLbB6AU8JX4PWHCwpIV b1ZKOq1dIKe1JWJVwW8AMVIgKAzZoihB2Ee2otGrPW8idID9J5DuvL7MKUYWqqJclMiE qnKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1738515982; x=1739120782; h=to:references:message-id:content-transfer-encoding:date:in-reply-to :from:subject:mime-version:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=1R9SAKk58zRkjEhFxzdoBDwh1bHNqMjGUtCKRnXS+mY=; b=RVZVxyaoiwCQi6QNGFnnDz1tSrY3XC2K+are1dploQV5WAE+BZ2aJU/lf1BY/krjgi pVQbQ1jCacbOW+fg/inNc+c0umyFNO0V+/XwjIGjlrz6QlkllH4TGyWOeYf0iv30RUap IXY6cjNsJjLOMzNBXLFBIs22/91WeGMCXJbO23e+qisd9CbU+z3yOAojI7Jsd+SL01C2 I0rGW4vEEta1VHKwyAuCXaR8QIBLU3oYjrX0IO4OCD0G4sdx3tIuKRaVzMgKs53nsydt DCW+HkSRz+4G51wGck7/pHl7xkyj545uxS0Tz+OcNZyfxPVPGHqDbxDbGqRTZJXVPR5s xa8w== X-Forwarded-Encrypted: i=1; AJvYcCVTxdAOPMES7Sb5+soDziqvI/GGjDF9j+KTGCY6ReVnQVQjl4c+HtlZqRqsSnOwtk30lzf+xjhKjYU3XQ==@freebsd.org X-Gm-Message-State: AOJu0YzvvrZOUR9EoghiU5uVjIMVUjjE/yOxeYfn8Elqp3g4XDtiBAoC lZzBJDOVCe70DJLYeOHcrX64/RfbP+B2F7DrHf0yNGELrmw3ZChZQCxsFA== X-Gm-Gg: ASbGncuVLJZSPJ620jaO8yB7vYyiq1F3cZjXt72SgcCBFTLcOCdKFvxM6+2KlsDY/my O/6ym1yncyVGX1oejvcyRgTIfCEs1/xfiowsk4c28R4UmMRePImDyKeJBlYutizcCFYCZwZOBcQ jrAYe1Dyapl25c3krDKLFIp0pC1rqpFS6wpLv8er/j7d6SY9Z2jTm9qrfQ5Fxzxy3i37RTHYaSB 9nBdiQZMFLG3y1Le9K0jTmRmsCDskA6hMWQ1/mddFYuDWez1fOCJCPlf3mb/ua0qjMJ+z/aNWIS wEIVUouSsj7Sc6AeTBA/YU4IgTGAok6RIzEVU6jMEJEmD7EmDmRmB+2bacRWmz6GW99kmwCoWt2 ZAvZjc4AvNKa8BoZAguhZ X-Google-Smtp-Source: AGHT+IECIpib1WsEp4vP9ooTUv2lGb5dyaAZ3eA7voNrr1LofhJxI8nDOir9kpLPXpEKsHdij8jTaQ== X-Received: by 2002:a05:600c:3c89:b0:436:fbe0:cebe with SMTP id 5b1f17b1804b1-438dc40fd42mr171742055e9.30.1738515981355; Sun, 02 Feb 2025 09:06:21 -0800 (PST) Received: from smtpclient.apple (dynamic-046-114-115-031.46.114.pool.telefonica.de. [46.114.115.31]) by smtp.googlemail.com with ESMTPSA id 5b1f17b1804b1-438dcc2ef08sm163026315e9.22.2025.02.02.09.06.19 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 02 Feb 2025 09:06:20 -0800 (PST) Content-Type: text/plain; charset=utf-8 List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@FreeBSD.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3826.300.87.4.3\)) Subject: you`ll have to hack u-boot&kernel drivers Re: RPI5 16GB panic on boot From: =?utf-8?Q?Klaus_K=C3=BCchemann?= X-Priority: 3 (Normal) In-Reply-To: <1209610970.15723.1738490182716@localhost> Date: Sun, 2 Feb 2025 18:06:08 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: <0C65C3F9-50D3-4B27-BB72-6D1B579AF83A@googlemail.com> References: <1209610970.15723.1738490182716@localhost> To: Ronald Klop , freebsd-arm@freebsd.org X-Mailer: Apple Mail (2.3826.300.87.4.3) X-Rspamd-Queue-Id: 4YmGHg6spVz3msl X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US] > Am 02.02.2025 um 10:56 schrieb Ronald Klop : >=20 >=20 > No valid device tree blob found! >=20 For FreeBSD go the u-boot fdt-based way ! ( since all existing drivers = rely on that).. A device tree blob( dtb) is a compiled binary which is read in by u-boot = ,=20 While a device tree source( dts) can be compiled into u-boot`kernel = directly=E2=80=A6.=20 Some steps further here. I just show you the things I=E2=80=99ve already = hacked ( in u-boot & fbsd-kernel),=20 Not showing you the things which have to be future-hacked into the = kernel:-), it=E2=80=99ll be a massive hack because e.g because the RP1 chip has = many things hanging behind pcie, I have currently pcie detected in boot but there`s something more to = do/hack regarding DMA=E2=80=A6.. and so further and so on : =E2=80=A6 4.05 dt-match: compatible: brcm,bcm2712 match: brcm,bcm2712=E2=80=A6. =E2=80=A6 4.95 Loading 'bcm2712-rpi-cm5-cm5io.dtb' to 0x00000000 offset = 0x100 5.06 Read bcm2712-rpi-cm5-cm5io.dtb bytes 80587 hnd 0x198b =E2=80=A6 5.84 MESS:00:00:05.184071:0: Loaded overlay =E2=80=9Adwc2=E2=80= =98=E2=80=A6 5.04 Loading 'u-boot.bin' to 0x00000000 offset 0x200000,, 5.39 Read u-boot.bin bytes 694000 hnd 0x148d=E2=80=A6 =E2=80=A6. =E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2= =80=94 U-Boot 2025.01 (Jan 19 2025 - 06:10:39 +0100) DRAM: 1020 MiB (effective 4 GiB) RPI: Board rev 0x18 outside known range RPI Unknown model (0xc04180) Core: 25 devices, 12 uclasses, devicetree: board MMC: mmc@fff000: 0, mmc@1100000: 1 Loading Environment from FAT... ** Bad device specification mmc 1 ** In: serial,usbkbd Out: serial,vidconsole Err: serial,vidconsole Net: No ethernet found. starting USB... Bus usb@480000: USB DWC2 scanning bus usb@480000 for devices... 1 USB Device(s) found scanning usb for storage devices... 0 Storage Device(s) found Hit any key to stop autoboot: 0 Cannot persist EFI variables without = system partition ** Booting bootflow '' with efi_mgr Booting: mmc 0 =E2=80=94=E2=80=94=E2=80=94 Consoles: EFI console =20 Reading loader env vars from /efi/freebsd/loader.env Setting currdev to disk0p1: FreeBSD/arm64 EFI loader, Revision 3.0 (Sat Feb 1 03:46:15 UTC 2025 root@fbsd5pro) Command line arguments: loader.efi Image base: 0x3e54d000 EFI version: 2.100 EFI Firmware: Das U-Boot (rev 8229.256) Console: efi,comconsole (0) Load Path: /\EFI\BOOT\BOOTAA64.EFI Load Device: = /VenHw(e61d73b9-a384-4acc-aeab-82e828f3628b,0000000000000000)/VenHw(e61d73= b9-a384-4acc-aeab-82e828f3628b,6d00000004000000)/eMMC(0)/eMMC(0)/HD(1,0x01= ,0,0x800,0x19000) BootCurrent: 0000 BootOrder: 0000[*] BootInfo Path: = /VenHw(e61d73b9-a384-4acc-aeab-82e828f3628b,0000000000000000)/VenHw(e61d73= b9-a384-4acc-aeab-82e828f3628b,6d00000004000000)/eMMC(0)/eMMC(0) Ignoring Boot0000: Only one DP found Trying ESP: = /VenHw(e61d73b9-a384-4acc-aeab-82e828f3628b,0000000000000000)/VenHw(e61d73= b9-a384-4acc-aeab-82e828f3628b,6d00000004000000)/eMMC(0)/eMMC(0)/HD(1,0x01= ,0,0x800,0x19000) Setting currdev to disk0p1: Trying: = /VenHw(e61d73b9-a384-4acc-aeab-82e828f3628b,0000000000000000)/VenHw(e61d73= b9-a384-4acc-aeab-82e828f3628b,6d00000004000000)/eMMC(0)/eMMC(0)/HD(2,0x01= ,0,0x19800,0x9e6800) Setting currdev to disk0p2: Loading /boot/defaults/loader.conf Loading /boot/defaults/loader.conf Loading /boot/device.hints Loading /boot/loader.conf Loading /boot/loader.conf.local / =E2=80=94=E2=80=94=E2=80=94=E2=80=94 Loading kernel=E2=80=A6 =E2=80=94 Booting [/boot/kernel/kernel]... =20 Using DTB provided by EFI at 0x3e6da000. Loading splash ok ---<>--- GDB: no debug ports present KDB: debugger backends: ddb KDB: current backend: ddb WARNING: Cannot find freebsd,dts-version property, cannot check DTB = compliance Copyright (c) 1992-2025 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 15.0-CURRENT #3: Sat Feb 1 16:02:48 UTC 2025 root@fbsd5pro:/usr/obj/usr/src/arm64.aarch64/sys/GENERIC arm64 FreeBSD clang version 19.1.7 (https://github.com/llvm/llvm-project.git = llvmorg-19.1.7-0-gcd708029e0b2) WARNING: WITNESS option enabled, expect reduced performance. VT: init without driver. real memory =3D 4290248704 (4091 MB) avail memory =3D 4152508416 (3960 MB) Starting CPU 1 (100) Starting CPU 2 (200) Starting CPU 3 (300) FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs random: unblocking device. random: entropy device external interface kbd0 at kbdmux0 ofwbus0: simplebus0: on ofwbus0 regfix0: on simplebus0 regfix1: on simplebus0 simplebus1: on ofwbus0 ofw_clkbus0: on ofwbus0 =E2=80=94=E2=80=94=E2=80=94 simple_mfd0: mem = 0x7d542000-0x7d542eff on simplebus0 bcm2835_firmware0: on simplebus0 ofw_clkbus1: on bcm2835_firmware0 =E2=80=94 psci0: on ofwbus0 smccc0: on psci0 =E2=80=94=E2=80=94 gic0: mem = 0x107fff9000-0x107fff9fff,0x107fffa000-0x107fffbfff,0x107fffc000-0x107fffd= fff,0x107fffe000-0x107fffffff irq 86 on simplebus1 gic0: pn 0x2, arch 0x2, rev 0x1, implementer 0x43b irqs 320 =E2=80=94 usbus1: 480Mbps High Speed USB v2.0 ugen1.1: at usbus1 uhub0 on usbus1 uhub0: on usbus1 bcm2835_cpufreq0: ARM 1500MHz, Core 500MHz, SDRAM 0MHz, Turbo OFF CPU 0: ARM Cortex-A76 r4p1 affinity: 0 0 Cache Type =3D Instruction Set Attributes 0 =3D = Instruction Set Attributes 1 =3D Instruction Set Attributes 2 =3D <> Processor Features 0 =3D = Processor Features 1 =3D Processor Features 2 =3D <> Memory Model Features 0 =3D = Memory Model Features 1 =3D Memory Model Features 2 =3D <32bit CCIDX,48bit VA,IESB,UAO,CnP> Memory Model Features 3 =3D <> Memory Model Features 4 =3D <> Debug Features 0 =3D Debug Features 1 =3D <> Auxiliary Features 0 =3D <> Auxiliary Features 1 =3D <> AArch32 Instruction Set Attributes 5 =3D = AArch32 Media and VFP Features 0 =3D AArch32 Media and VFP Features 1 =3D CPU 1: ARM Cortex-A76 r4p1 affinity: 1 0 CPU 2: ARM Cortex-A76 r4p1 affinity: 2 0 CPU 3: ARM Cortex-A76 r4p1 affinity: 3 0 gic0: using for IPIs Release APs...Trying to mount root from ufs:/dev/ufs/rootfs [rw].. ---