From nobody Tue Jul 5 01:33:48 2022 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 48D211D15B3A for ; Tue, 5 Jul 2022 01:35:25 +0000 (UTC) (envelope-from warlock@phouka1.phouka.net) Received: from phouka1.phouka.net (phouka1.phouka.net [107.170.196.116]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "phouka.net", Issuer "Go Daddy Secure Certificate Authority - G2" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4LcQGg5vVhz4gd9 for ; Tue, 5 Jul 2022 01:35:23 +0000 (UTC) (envelope-from warlock@phouka1.phouka.net) Received: from phouka1.phouka.net (localhost [127.0.0.1]) by phouka1.phouka.net (8.16.1/8.16.1) with ESMTPS id 2651XmPD017773 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Mon, 4 Jul 2022 18:33:48 -0700 (PDT) (envelope-from warlock@phouka1.phouka.net) Received: (from warlock@localhost) by phouka1.phouka.net (8.16.1/8.16.1/Submit) id 2651XmHh017772; Mon, 4 Jul 2022 18:33:48 -0700 (PDT) (envelope-from warlock) Date: Mon, 4 Jul 2022 18:33:48 -0700 From: John Kennedy To: "Dr. Rolf Jansen" Cc: freebsd-arm@freebsd.org Subject: Re: Failed to execute custom kernels which where build on a RPi 4 operated by 13.1-RELEASE Message-ID: References: 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 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Rspamd-Queue-Id: 4LcQGg5vVhz4gd9 X-Spamd-Bar: + Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of warlock@phouka1.phouka.net has no SPF policy when checking 107.170.196.116) smtp.mailfrom=warlock@phouka1.phouka.net X-Spamd-Result: default: False [1.12 / 15.00]; RCVD_TLS_ALL(0.00)[]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; NEURAL_SPAM_SHORT(0.79)[0.792]; NEURAL_HAM_LONG(-0.96)[-0.964]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[phouka.net]; AUTH_NA(1.00)[]; NEURAL_SPAM_MEDIUM(0.09)[0.091]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MID_RHS_MATCH_FROMTLD(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; MLMMJ_DEST(0.00)[freebsd-arm]; FORGED_SENDER(0.30)[warlock@phouka.net,warlock@phouka1.phouka.net]; R_SPF_NA(0.00)[no SPF record]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_TWO(0.00)[2]; ASN(0.00)[asn:14061, ipnet:107.170.192.0/18, country:US]; FROM_NEQ_ENVFROM(0.00)[warlock@phouka.net,warlock@phouka1.phouka.net] X-ThisMailContainsUnwantedMimeParts: N On Mon, Jul 04, 2022 at 08:57:08PM -0300, Dr. Rolf Jansen wrote: > On my brand new RPi 4 B (0xb03115), operated by 13.1-RELEASE, I built 2 custom kernels, with kernel configs from different sources. Building and installing went through without issues. I've also got a new 8G RPI4, not sure how to get the exact model number without popping the heatsink case off. I haven't been running 13.1-REL since they haven't been incorporating some of the changes that are in -STABLE (although for amd64, not arm64). > fetch https://download.freebsd.org/releases/arm64/aarch64/13.1-RELEASE/src.txz > ... cat /usr/src/sys/arm64/conf/GENERIC-RPi4 > include GENERIC > ident GENERIC-RPi4 > nooptions SOC_NVIDIA_TEGRA210 I seeding my uboot (and ran initial bsdinstall to USB-only) from: FreeBSD-13.1-STABLE-arm64-aarch64-RPI-20220603-185159f77c9-250958 I'm just building stock GENERIC: I think I saw from another email that you're avoid the SOC_NVIDIA_TEGRA210 (my ntpdate thread) because it's messing with some extra stuff you're doing with your RPI. I'm using HDMI, vs any kind of serial console. > When restarting with any of the new kernels, booting stalls after these messages in the serial console: > ... > sdhci_bcm0-slot0: AC12 err: 0x00000000 | Host ctl2:0x00000000 > sdhci_bcm0-slot0: Caps: 0x00000000 | Caps2: 0x00000000 > sdhci_bcm0-slot0: Max curr: 0x00000001 | ADMA err: 0x00000000 > sdhci_bcm0-slot0: ADMA addr:0x00000000 | Slot int: 0x00000000 > sdhci_bcm0-slot0: =========================================== > uhub0: 5 ports with 4 removable, self powered > mmc0: No compatible cards found on bus I've rebuilt mine 5 times since 06-25. Your serial console doesn't sync up exactly what I see in my /var/log/messages, but Mark Millard (who I think is relying to this thread too) just did a really interesting breakdown between uboot versions for Bob Prohaska. Based on some of the threads I've seen recently, I'd: Make sure you have a recent uboot Make sure you're booting the uboot you think you are (sim-cards having race condition with USB, etc) Just try with one sim or USB and, if that works, start adding on extra bits Try HDMI, just for the yucks