From nobody Sat Aug 14 15:12:03 2021 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 B43E9137E11A for ; Sat, 14 Aug 2021 15:12:09 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: from mail-qv1-xf29.google.com (mail-qv1-xf29.google.com [IPv6:2607:f8b0:4864:20::f29]) (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 "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Gn3n54SPTz3v1r for ; Sat, 14 Aug 2021 15:12:09 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: by mail-qv1-xf29.google.com with SMTP id js7so6900079qvb.4 for ; Sat, 14 Aug 2021 08:12:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=ybvLRFUK4o0XUpmsMyABrsCaxi0s5pHosPXcwTaSWiA=; b=dj7jjnqNv5kiuFmDZsiyyuARYRXk3peYZXKpfPkeOJEWpHetjerwb+0WAeBQ0+yig3 cUBOdzXVC8WTHNzk9AwNJGpSFRHN7X+c8F7Vh0+6DFU7H0piAOp8G2nuAKqh0rCycnGe lGwE7IhJ92CoYkGCeJZXmS5N+boh+6ynZG2xCFGPAQBE3werXQggPcnqkOuiXkrUEixZ Ze4YwT82qW8cFr3w0LBZ3vte5CfJ2tZ35SGNdNBkbN0BM+pHvePMLU7VrIq0kA4K4vV/ 0SjBan0XKnU9Q6xQkPkrGUACLj6hNh9LFi6/cAVcp3BCs3VeD8CuxRWoYs9nzY4nM5Dk hjAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to; bh=ybvLRFUK4o0XUpmsMyABrsCaxi0s5pHosPXcwTaSWiA=; b=HKQMS99gxAWIqRI4yfWxs99Ml4d5CU0KilkPILoUAgDrtB5srpNw+eo9ycG91xSSzk L74NVWfBjgE6MVVEXUSVch0kcqNCacsQzXLYFzCqDqQEMfArb5TxemHeV0za8Q/LZjWL YB1EJffHP1reIy36BnSNjv6EXjp7LjigzY7KlgM0vRHzFdJawr/w3AXGvnm5EobhbZ+T ygdYzLNx33V7RQhVbaVHFobYiVkBoYve2uggVKMlYjRXuxSSZD6JJQTp3RQtrvyNZCb8 iLX6UUnvxD3rG37kTMmIrO46IHYHDqX19ztmjWKECneAt0NsOJAXOudVJkXkntV3M45W +aUw== X-Gm-Message-State: AOAM530cttNRJ1ECbp9Ew8jovJLtbPXcGcUDopT1fZJfABxlbO7VQgVG UaTvd1HAUqLDQDHjN9TBxW8= X-Google-Smtp-Source: ABdhPJwxjOD8q3MKSNlL0iJ3KSAoPsd7OIxruP5buOpf5lV/SQabVq8u+IFLIWGRs+9NK+eeFNj1JA== X-Received: by 2002:a05:6214:15c1:: with SMTP id p1mr7995611qvz.9.1628953929157; Sat, 14 Aug 2021 08:12:09 -0700 (PDT) Received: from nuc ([142.126.162.193]) by smtp.gmail.com with ESMTPSA id p4sm2968380qkk.12.2021.08.14.08.12.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 14 Aug 2021 08:12:08 -0700 (PDT) Date: Sat, 14 Aug 2021 11:12:03 -0400 From: Mark Johnston To: Yoshiro MIHIRA Cc: freebsd-arm Subject: Re: [14-CURRENT]BBB can't boot 14-CURRENT GENERICSD-20210805 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: 4Gn3n54SPTz3v1r X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; TAGGED_RCPT(0.00)[]; REPLY(-4.00)[] X-ThisMailContainsUnwantedMimeParts: N On Sat, Aug 14, 2021 at 06:15:37PM +0900, Yoshiro MIHIRA wrote: > I can use 13.0-STABLE-arm-armv7-GENERICSD-20210812 on Beaglebone Black[OK]. > > However, I tested 14-CURRENT GENERICSD-20210805 on Beaglebone Black. > It can't boot with the below message[NG]. > > Please let me know to solve this issue. > > If I use the same microSD on Raspberry PI2, it can boot without issue. > I put all boot console messages. > https://people.freebsd.org/~sanpei/20210814-boot-NG-14-GENERICSD-20210805 > > < > mem: > ofwbus0: > ti_sysc0: on ofwbus0 > panic: Assertion size > 0 failed at /usr/src/sys/kern/subr_vmem.c:1332 I guess that the DTB has changed somehow such that this error path is getting exercised. This patch should allow you to boot without panicking, at least. diff --git a/sys/arm/ti/ti_sysc.c b/sys/arm/ti/ti_sysc.c index b16158aa5d83..4fda12f05725 100644 --- a/sys/arm/ti/ti_sysc.c +++ b/sys/arm/ti/ti_sysc.c @@ -306,6 +306,8 @@ parse_regfields(struct ti_sysc_softc *sc) { /* Grab the content of reg properties */ nreg = OF_getproplen(node, "reg"); + if (nreg == -1) + return (ENXIO); reg = malloc(nreg, M_DEVBUF, M_WAITOK); OF_getencprop(node, "reg", reg, nreg);