From nobody Tue Sep 27 21:20:20 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 4McXbG4JRgz4cy0h for ; Tue, 27 Sep 2022 21:20:26 +0000 (UTC) (envelope-from maciphone2@googlemail.com) Received: from mail-ed1-x52d.google.com (mail-ed1-x52d.google.com [IPv6:2a00:1450:4864:20::52d]) (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 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4McXbF0tNBz4LJg for ; Tue, 27 Sep 2022 21:20:25 +0000 (UTC) (envelope-from maciphone2@googlemail.com) Received: by mail-ed1-x52d.google.com with SMTP id y8so14862762edc.10 for ; Tue, 27 Sep 2022 14:20:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20210112; h=message-id:in-reply-to:to:references:date:subject:mime-version :content-transfer-encoding:from:from:to:cc:subject:date; bh=v/6Y+mUtNdfXsTNoHtZXgdCOFtHi/QidMEbgs5dW1Ds=; b=Q+fZuYxThEzyt/KoY+ZSjYiehtdiWqGwECdv5fa7Ge0+jT/ZRU+tbXfcAqO9qHR5dK QTf3cKEO2XolGRXeDmI/nomRqoNSPZs03CZRHHUsz7UVxhdgPnA1Ixe1AEVtXEANaPoG 2inPJeV5x6eIOarY0xzhok9ORWn4SHWZUtzr4eKkiApEZf90yMH2gYSlRn3ABg1MnNXu nVysBxAHvdgW6nkXC/td1YmgI7EUT6z79xsQchcsxuIIQOKAdke3+buicMJWqdebukD1 dz7wCvIwB7zhtYiv/XyuiEGKHvB7tY5AT4aVi0KHjqUL2EqFU7yHFisFscCA/kS4omsw 3mjw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=message-id:in-reply-to:to:references:date:subject:mime-version :content-transfer-encoding:from:x-gm-message-state:from:to:cc :subject:date; bh=v/6Y+mUtNdfXsTNoHtZXgdCOFtHi/QidMEbgs5dW1Ds=; b=XJNKhlWVt7nxC2HnGokWn5Yv6elensNrdw8R6o3k9c8UJTMWDvG6wpYjsR+BE7GEZD UBBwcvOFv8LISbkf6MZNfQ7qF4Ol33qTjN6d9Fb5tiwU2HC6oKEGvs+78A3A/DHCVRcT o3UHN7psm1LNPEmNFWthxdG3lHXE/+OndpGYfee95sS9w0m1zTN5gfgZFOiogtaILSWs MFCC+kHLxDIrMkgvw4Bi1RaCGOzW4gt9JaNDrl7ZwRKbSSuAHt5K2dXKJYHgC0t1SWL8 myMiEwshGMWUCaGiJ67Sw9cTTQugPZjNQRKn1aGAQGgoCfNbV1Lh/H/4iX1hZR36LVzn GQEQ== X-Gm-Message-State: ACrzQf2l8FKOfxgUVxO9oHOQZnAtmbjAsvPh9a4hKYOMKF+ZR96PKOwq dGvEHLdorQexpcQRyyTnfKllIbDQPRc= X-Google-Smtp-Source: AMsMyM66fi4EqwV7xN/2+MQw2AgROkgKjygS2hy/Alu+6CkbrkTn1uceEYgYjUEXWalaAOpiRH48EQ== X-Received: by 2002:aa7:c956:0:b0:43b:206d:c283 with SMTP id h22-20020aa7c956000000b0043b206dc283mr29836799edt.381.1664313623203; Tue, 27 Sep 2022 14:20:23 -0700 (PDT) Received: from smtpclient.apple (dynamic-046-114-185-233.46.114.pool.telefonica.de. [46.114.185.233]) by smtp.googlemail.com with ESMTPSA id c40-20020a509fab000000b004571fc9112dsm2016432edf.83.2022.09.27.14.20.22 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 27 Sep 2022 14:20:22 -0700 (PDT) From: =?utf-8?Q?Klaus_K=C3=BCchemann?= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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 \(3696.120.41.1.1\)) Subject: Re: u-boot debug, was: Re: U-boot on RPI3, sees disk but won't boot it Date: Tue, 27 Sep 2022 23:20:20 +0200 References: <20220921154240.GA37735@www.zefox.net> <8CC2A42B-21AC-44C6-BD02-44D320CADF63@yahoo.com> <20220921175026.GA45144@www.zefox.net> <5DB9C93B-B9E1-418D-ABA3-8A0CFCE85C0F@yahoo.com> <3781CF46-C4F7-4579-8655-B7558B724C0A@yahoo.com> <20220922014500.GA46697@www.zefox.net> <20220925160531.GA63213@www.zefox.net> <20220925193415.GA63733@www.zefox.net> <3D6CF13E-261D-41D2-AC5B-923C0BF54087@yahoo.com> <20220927160328.GA71742@www.zefox.net> <67C09E9F-AD1D-4D0D-9E6F-9C1B046D8952@googlemail.com> <4154AFCB-7428-4005-843A-4EF8C0EBCCB8@googlemail.com> <9A3609DF-D873-4712-A61D-C351C162EF2A@googlemail.com> <61CFA9D4-8DFD-41C5-A2B4-E5B3CD78C327@yahoo.com> <650FD030-783D-46C4-8CC9-50D608569898@yahoo.com> To: Mark Millard , bob prohaska , freebsd-arm@freebsd.org In-Reply-To: <650FD030-783D-46C4-8CC9-50D608569898@yahoo.com> Message-Id: <81C8A094-8492-41DC-A74E-486A9225A2A3@googlemail.com> X-Mailer: Apple Mail (2.3696.120.41.1.1) X-Rspamd-Queue-Id: 4McXbF0tNBz4LJg X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=googlemail.com header.s=20210112 header.b=Q+fZuYxT; dmarc=pass (policy=quarantine) header.from=googlemail.com; spf=pass (mx1.freebsd.org: domain of maciphone2@googlemail.com designates 2a00:1450:4864:20::52d as permitted sender) smtp.mailfrom=maciphone2@googlemail.com X-Spamd-Result: default: False [-3.49 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; NEURAL_HAM_LONG(-0.99)[-0.991]; MV_CASE(0.50)[]; DMARC_POLICY_ALLOW(-0.50)[googlemail.com,quarantine]; R_DKIM_ALLOW(-0.20)[googlemail.com:s=20210112]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; MIME_GOOD(-0.10)[text/plain]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; DWL_DNSWL_NONE(0.00)[googlemail.com:dkim]; RCPT_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; MID_RHS_MATCH_FROM(0.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::52d:from]; RCVD_COUNT_THREE(0.00)[3]; FREEMAIL_FROM(0.00)[googlemail.com]; TO_DN_SOME(0.00)[]; RCVD_TLS_LAST(0.00)[]; DKIM_TRACE(0.00)[googlemail.com:+]; FROM_EQ_ENVFROM(0.00)[]; FREEMAIL_TO(0.00)[yahoo.com,www.zefox.net,freebsd.org]; FREEMAIL_ENVFROM(0.00)[googlemail.com]; MIME_TRACE(0.00)[0:+]; MLMMJ_DEST(0.00)[freebsd-arm@freebsd.org] X-ThisMailContainsUnwantedMimeParts: N > Am 27.09.2022 um 22:36 schrieb Mark Millard : >=20 > =E2=80=A6..So, for the vintage of U-Boot source that the u-boot ports = are > based on, DEBUG would need to be separately defined=E2=80=A6. If you mean the freebsd u-boot port, I would suggest to completely = ignore older versions/vintages . afaik Fbsd will not accept any device specific patch which didn=E2=80=99t = made it (u-boot-) upstream. And u-boot also won=E2=80=99t accept such patches if not extensively = validated. So you can use the port to compile but I suggest to use the master = stream of u-boot as source ( I think that's what you had in mind anyway) > Am 27.09.2022 um 22:36 schrieb Mark Millard : >=20 >=20 > So it may be best to always #define LOG_DEBUG in whatever > *.c file(s) before the line with: #include Although that seems a bit unusual maybe u-boot planned it that way( = placing the #define in line 1 of the files),I haven't investigated that = yet =E2=80=A6 I would begin with a simple #define DEBUG in common/usb.c and then look = what happens=E2=80=A6 and then I would continue with the other files you suggested if = there=E2=80=99s no relevant output from usb.c debug=E2=80=A6 using the master stream of u-boot=E2=80=A6 Regards and good luck Klaus