From nobody Thu Sep 29 05:10: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 4MdLz55yGFz4dQvT for ; Thu, 29 Sep 2022 05:10:25 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic313-21.consmr.mail.gq1.yahoo.com (sonic313-21.consmr.mail.gq1.yahoo.com [98.137.65.84]) (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 did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4MdLz44wNBz3qwD for ; Thu, 29 Sep 2022 05:10:24 +0000 (UTC) (envelope-from marklmi@yahoo.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1664428222; bh=F95gW81GD4sk+ab3E7SdJ2GxS/cRA2ywFqunV/5P6s0=; h=From:Subject:Date:In-Reply-To:Cc:To:References:From:Subject:Reply-To; b=O/4jZwjWqzV6F/dON0awRJGJJ8HXqd+vI7kPUy2+0OOrYk7VRCad6OhdNsEcJuHXv9wKsgL5IRzM53zYvDBAWS2UEv8N/rNJkRvfg0Ri5GqVmaeLIYdRmylH7Lv1aKSlJRwLlghp8ZovtFIe2bq7MofTB7R0apKs5JDUvW25/y28m7HkrcvC+35S2Q/3foPdhDPiPLXFOfERCzF29ym/sHSQ6QNna0MYYsW85lFpaocAErPkFVaF4wB4RYO7uQy/dR78aoSpjanit4dsdhLmNGXm2we8ELRdv4LfzJiDOhqyRRKb3kAETy3ssGwzDss5fmO3P7YatqUNg1bVCLsv2w== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1664428222; bh=rDnVqRpOJx66N83ELGJK5xn+jN4gytJOcTmcS48Osr7=; h=X-Sonic-MF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wszv4GeVEKTJ8B2FDFbDLqoeQQ4.._9jSQn5O3YPf VbRS1sTqD_B4cRiWhKOXkbE9W8Vz_WOCwgadagdrLeJX0FSnkIxVXSA3mT5Gpkf4dat0uYNIECqi 12HI_CQMT8Fm..dBPGfP7bDtbFLWrzARjTkXOmpvd0atEXW1.UvXPZszKr4vlEb80G6MoGeP9Kpq sAbIK9EYGGNJkhjowbFfy4XX6.RDY5fE2ubwQoCfbn5J8XzQcD4emkfM8sW7foc4T4WgvVisPn84 Cftc1F3U_0ZHX5nbl1zbjkyrpWJoXKu4K1qQRLsukyOQ7vqeCsK2qFEVwbrOvV.Ev1MwAm3Fy3QE NE0p5EYBtV5kM3UVf1YLPHtuDk9Z3Dr7ASRn2r3AQ5s5XsaNw9twAyirg1_WWwLzpTtflUjuNc7D MNH6p.UtzuAmxIF_AwOBja7MyPzvArAMnPGpgGe.3d0WMuqiZgjT2gW1C.I44AltdE.Kh_OSEPse 8XOT0qMurOnkhFp6O6RBszGC9Whcj3Ocsqlrqg26utbj6OJkM.eP9zF3N7Zl1jS51nHoN8V9RPpQ g4Q-- X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic313.consmr.mail.gq1.yahoo.com with HTTP; Thu, 29 Sep 2022 05:10:22 +0000 Received: by hermes--production-gq1-7dfd88c84d-mgq76 (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID af44686c290faf94349afce9508a6e77; Thu, 29 Sep 2022 05:10:21 +0000 (UTC) From: Mark Millard Message-Id: Content-Type: multipart/mixed; boundary="Apple-Mail=_1272EC13-0536-4365-9E7F-BBFDB2DE6D00" 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: Wed, 28 Sep 2022 22:10:20 -0700 In-Reply-To: <6AA65AE6-41F1-405F-A592-7D641EA4C9CF@yahoo.com> Cc: freebsd-arm , freebsd-uboot@freebsd.org To: bob prohaska References: <9F57D5D0-F715-4DD2-A05C-FB2B9E8B5C30@yahoo.com> <20220928015721.GA73356@www.zefox.net> <20220928045145.GB73356@www.zefox.net> <81F58716-72CE-45E8-951A-B7B92AD0FE95@yahoo.com> <20220928172839.GA75564@www.zefox.net> <62A7FD9D-DFAD-46B2-8681-F6EF0E5AC0DE@yahoo.com> <8CB25EDF-704A-4F86-B0D4-40818291C161@yahoo.com> <20220928234341.GA77046@www.zefox.net> <20220929002131.GA77106@www.zefox.net> <197D3C46-063B-4C67-AB1A-A3A072521D7F@yahoo.com> <6AA65AE6-41F1-405F-A592-7D641EA4C9CF@yahoo.com> X-Mailer: Apple Mail (2.3696.120.41.1.1) X-Rspamd-Queue-Id: 4MdLz44wNBz3qwD X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yahoo.com header.s=s2048 header.b="O/4jZwjW"; dmarc=pass (policy=reject) header.from=yahoo.com; spf=pass (mx1.freebsd.org: domain of marklmi@yahoo.com designates 98.137.65.84 as permitted sender) smtp.mailfrom=marklmi@yahoo.com X-Spamd-Result: default: False [-3.33 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.83)[-0.827]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; MV_CASE(0.50)[]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; MIME_GOOD(-0.10)[multipart/mixed,text/plain]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DWL_DNSWL_NONE(0.00)[yahoo.com:dkim]; RCVD_IN_DNSWL_NONE(0.00)[98.137.65.84:from]; MID_RHS_MATCH_FROM(0.00)[]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US]; MLMMJ_DEST(0.00)[freebsd-arm@freebsd.org]; HAS_ATTACHMENT(0.00)[]; FREEMAIL_FROM(0.00)[yahoo.com]; TO_DN_SOME(0.00)[]; RCVD_TLS_LAST(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; FROM_EQ_ENVFROM(0.00)[]; DKIM_TRACE(0.00)[yahoo.com:+]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RWL_MAILSPIKE_POSSIBLE(0.00)[98.137.65.84:from] X-ThisMailContainsUnwantedMimeParts: N --Apple-Mail=_1272EC13-0536-4365-9E7F-BBFDB2DE6D00 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii On 2022-Sep-28, at 20:31, Mark Millard wrote: >> . . . > > It looks like that if you remove files/patch-common_usb__storage.c > and rebuild/install the large output reporting usb reads will not > happen. > I've included a patch-common_usb__storage.c that comments out the few high volume debug(...) instances but leaves the rest in place. A dozen or so lines are still output via this source file now and I was not sure if any might prove important. So this way they are present to consider if this file is used in the build. === Mark Millard marklmi at yahoo.com --Apple-Mail=_1272EC13-0536-4365-9E7F-BBFDB2DE6D00 Content-Disposition: attachment; filename=patch-common_usb__storage.c Content-Type: application/octet-stream; x-unix-mode=0644; name="patch-common_usb__storage.c" Content-Transfer-Encoding: 7bit --- common/usb_storage.c.orig 2022-04-04 07:31:32.000000000 -0700 +++ common/usb_storage.c 2022-09-28 21:46:42.289455000 -0700 @@ -20,6 +20,8 @@ * FreeBSD. */ +#define LOG_DEBUG +#define DEBUG /* Note: * Currently only the CBI transport protocoll has been implemented, and it * is only tested with a TEAC USB Floppy. Other Massstorages with CBI or CB @@ -719,7 +721,7 @@ dir_in = US_DIRECTION(srb->cmd[0]); /* COMMAND phase */ - debug("COMMAND phase\n"); + //MMJNK: debug("COMMAND phase\n"); result = usb_stor_BBB_comdat(srb, us); if (result < 0) { debug("failed to send CBW status %ld\n", @@ -736,7 +738,7 @@ /* no data, go immediately to the STATUS phase */ if (srb->datalen == 0) goto st; - debug("DATA phase\n"); + //MMJNK: debug("DATA phase\n"); if (dir_in) pipe = pipein; else @@ -769,7 +771,7 @@ st: retry = 0; again: - debug("STATUS phase\n"); + //MMJNK: debug("STATUS phase\n"); result = usb_bulk_msg(us->pusb_dev, pipein, csw, UMASS_BBB_CSW_SIZE, &actlen, USB_CNTL_TIMEOUT*5); @@ -1079,7 +1081,7 @@ srb->cmd[7] = ((unsigned char) (blocks >> 8)) & 0xff; srb->cmd[8] = (unsigned char) blocks & 0xff; srb->cmdlen = 12; - debug("read10: start %lx blocks %x\n", start, blocks); + //MMJNK: debug("read10: start %lx blocks %x\n", start, blocks); return ss->transport(srb, ss); } @@ -1149,9 +1151,9 @@ #if CONFIG_IS_ENABLED(BLK) block_dev = dev_get_uclass_plat(dev); udev = dev_get_parent_priv(dev_get_parent(dev)); - debug("\nusb_read: udev %d\n", block_dev->devnum); + //MMJNK: debug("\nusb_read: udev %d\n", block_dev->devnum); #else - debug("\nusb_read: udev %d\n", block_dev->devnum); + //MMJNK: debug("\nusb_read: udev %d\n", block_dev->devnum); udev = usb_dev_desc[block_dev->devnum].priv; if (!udev) { debug("%s: No device\n", __func__); @@ -1167,8 +1169,8 @@ start = blknr; blks = blkcnt; - debug("\nusb_read: dev %d startblk " LBAF ", blccnt " LBAF " buffer %lx\n", - block_dev->devnum, start, blks, buf_addr); + //MMJNK: debug("\nusb_read: dev %d startblk " LBAF ", blccnt " LBAF " buffer %lx\n", + //MMJNK: block_dev->devnum, start, blks, buf_addr); do { /* XXX need some comment here */ @@ -1197,13 +1199,13 @@ buf_addr += srb->datalen; } while (blks != 0); - debug("usb_read: end startblk " LBAF ", blccnt %x buffer %lx\n", - start, smallblks, buf_addr); + //MMJNK: debug("usb_read: end startblk " LBAF ", blccnt %x buffer %lx\n", + //MMJNK: start, smallblks, buf_addr); usb_lock_async(udev, 0); usb_disable_asynch(0); /* asynch transfer allowed */ if (blkcnt >= ss->max_xfer_blk) - debug("\n"); + ; //MMJNK: debug("\n"); return blkcnt; } --Apple-Mail=_1272EC13-0536-4365-9E7F-BBFDB2DE6D00--