From owner-freebsd-arm@freebsd.org Sun Jul 21 18:31:38 2019 Return-Path: Delivered-To: freebsd-arm@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 1CD5FBA358 for ; Sun, 21 Jul 2019 18:31:38 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id F109F8B81A for ; Sun, 21 Jul 2019 18:31:37 +0000 (UTC) (envelope-from ian@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id EEA94BA357; Sun, 21 Jul 2019 18:31:37 +0000 (UTC) Delivered-To: arm@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id EE64CBA356 for ; Sun, 21 Jul 2019 18:31:37 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from outbound3d.ore.mailhop.org (outbound3d.ore.mailhop.org [54.186.57.195]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id AD6658B818 for ; Sun, 21 Jul 2019 18:31:37 +0000 (UTC) (envelope-from ian@freebsd.org) ARC-Seal: i=1; a=rsa-sha256; t=1563733896; cv=none; d=outbound.mailhop.org; s=arc-outbound20181012; b=dh+JH+RyQeBlSkZwNsKaNvlJHRg+iYtEiqaI/fSeVDyCfbrMYbxXHjNUbZYlYkgK4NiNfiH3Zubjc i3Dk+OYN/GHBWjhCdrclzqjaxanzzqLc3wUtgosANHe8+q5o55wirYYz4YVDfM8dmnHIKxpLIANnY9 HvqUh4clZXZbbYYwOFsJGo4YJS5eVJKaxUr6+bq1BbywxTRyGbtVGbMddcpN3uBNcPcLuKW1Y8NtHe QWBavoZOwjdNyqYyLWl5lbrfUfXzex1Kzy3NwFp0gz4KsUM0K9Cufe7x/yP3bQDR/GHzNVFaitvzn9 5Td+SFVagpc2LFq9dElowdUi7qd5nhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=outbound.mailhop.org; s=arc-outbound20181012; h=content-transfer-encoding:mime-version:content-type:references:in-reply-to: date:to:from:subject:message-id:dkim-signature:from; bh=o/54j6+vqyDc1oJhOlNHz2aPvqB1yzK3Y1ozFSUsdhs=; b=uDpw1drLJvV54XayitZcoGpDdgck+8alYIYpHLtyRDAFsQxKCSgY8TdI61KsXLB1KJNHkOBJO9uh4 pksvdTZVILYsjhSURoJTmlOJcQOEuPCcdUw8rt0DAi3p9N7m2kidKeUa0XArYtIkdlpjgHsilslDBw fnRXxR5OtqcBiabAA++m2puM997KBPGebpxjF9gglXLBeYlAFYdCfsG5LW1LnSQnSo3oaSS4yVXeEv St2vKjNwmdOdRWJDiTjqLCesiL+guznYTg+BuehuKv96W+luS8sRmtIZpb6vIssKjPM/Jlkco50UoA QEG5eHMo9nsVgmme7lHJc02EU7Bw38w== ARC-Authentication-Results: i=1; outbound3.ore.mailhop.org; spf=softfail smtp.mailfrom=freebsd.org smtp.remote-ip=67.177.211.60; dmarc=none header.from=freebsd.org; arc=none header.oldest-pass=0; DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outbound.mailhop.org; s=dkim-high; h=content-transfer-encoding:mime-version:content-type:references:in-reply-to: date:to:from:subject:message-id:from; bh=o/54j6+vqyDc1oJhOlNHz2aPvqB1yzK3Y1ozFSUsdhs=; b=GeiG0N03M0XVRVz6JBHmxLejbAlIX4l/avEWhn3vMt48HrExFaiDNYcIYIF5YYMjlGeOO/Wf+jXgW Ibiq3J8ka3znUxfndZK0hL2JVnOANymPsiKIIa3Uk5Ho1xIvXOQ59FvvrzGBjtJ6RnoOMjrBu3rl0t K4ehjbC4i0Nv2SXn1IWVc+w5dQf3MtWumvMzaeqteNQqoYlJycOD/uJDQ+eyduHqDDVbhxXfPDCCym GT6sa4WxDw0h9A/PQpCBBqU43fu12IXMoprj4XjmFB7xIPuZ5N6KUL9nxQH7ngzzDQyVCpqaeAvvU3 7k2VdqGguOXLpi72f14ZaWBQVEwXP/g== X-MHO-RoutePath: aGlwcGll X-MHO-User: c38c61a7-abe5-11e9-90e8-c17e0c9f2e02 X-Report-Abuse-To: https://support.duocircle.com/support/solutions/articles/5000540958-duocircle-standard-smtp-abuse-information X-Originating-IP: 67.177.211.60 X-Mail-Handler: DuoCircle Outbound SMTP Received: from ilsoft.org (unknown [67.177.211.60]) by outbound3.ore.mailhop.org (Halon) with ESMTPSA id c38c61a7-abe5-11e9-90e8-c17e0c9f2e02; Sun, 21 Jul 2019 18:31:34 +0000 (UTC) Received: from rev (rev [172.22.42.240]) by ilsoft.org (8.15.2/8.15.2) with ESMTP id x6LIVW44057709; Sun, 21 Jul 2019 12:31:32 -0600 (MDT) (envelope-from ian@freebsd.org) Message-ID: <415c9b4760029235cd62bf95a35a736f7566cb9d.camel@freebsd.org> Subject: Re: 13-CURRENT snapshot 20190718 r350103 doesn't boot on BeagleBone White From: Ian Lepore To: John-Mark Gurney , arm@FreeBSD.org Date: Sun, 21 Jul 2019 12:31:32 -0600 In-Reply-To: <20190721180510.GQ2342@funkthat.com> References: <20190721180510.GQ2342@funkthat.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5 FreeBSD GNOME Team Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: AD6658B818 X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-6.98 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; NEURAL_HAM_SHORT(-0.98)[-0.982,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; REPLY(-4.00)[] X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Jul 2019 18:31:38 -0000 On Sun, 2019-07-21 at 11:05 -0700, John-Mark Gurney wrote: > The microSD card that I was using on my BeagleBone white got > corrupted, > so I decided to update to the latest version. The latest snapshot > fails > to boot. It loads the kernel, but then when starting the kernel, it > hangs, and eventually it will reset. > > The latest 12 snapshot boots fine: BEAGLEBONE-20190718-r350087. > > Any ideas? I tried all three available 13 snaps, and they all behave > the same. > This happened with the latest DTS import (which was months ago). A couple people have speculated that we just need a trivial do-nothing driver for the new ti,sysc device, but when I tried that a couple months ago it didn't work, so instead I just reverted sys/dts to the old source and got on with what I needed to do. This is just the latest in a years-long string of breakages because the linux TI folks just never stop tinkering with their device-tree source. I'm sure they're doing it because it gets them some benefits, but for us the changes add no value and have a high maintenance cost. A hang before the copyright banner appears is especially painful to debug (doubly so because there's no existing EARLY_PRINTF support in the ti code). - Ian > The following is an example of the reset loop: > Kernel entry at 0x84000180... > Kernel args: (null) > / > U-Boot SPL 2019.04 (Jul 18 2019 - 04:19:33 +0000) > Trying to boot from MMC1 > Loading Environment from FAT... *** Warning - bad CRC, using default > environment > > > > U-Boot 2019.04 (Jul 18 2019 - 04:19:33 +0000) > I just tried the trivial sysc driver again, it definitely hangs the > same as not having the driver. > CPU : AM335X-GP rev 1.0 > Model: TI AM335x BeagleBone > DRAM: 256 MiB > NAND: 0 MiB > MMC: OMAP SD/MMC: 0 > Loading Environment from FAT... *** Warning - bad CRC, using default > environment > > not set. Validating first E-fuse MAC > Net: eth0: ethernet@4a100000 > Warning: usb_ether MAC addresses don't match: > Address in ROM is de:ad:be:ef:00:01 > Address in environment is d4:94:a1:85:ce:72 > , eth1: usb_ether > Hit any key to stop autoboot: 0 > switch to partitions #0, OK > mmc0 is current device > Scanning mmc 0:1... > 80492 bytes read in 8 ms (9.6 MiB/s) > Found EFI removable media binary efi/boot/bootarm.efi > Scanning disk mmc@48060000.blk... > Found 3 disks > BootOrder not defined > 616000 bytes read in 54 ms (10.9 MiB/s) > ## Starting EFI application at 82000000 ... > Consoles: EFI console > Reading loader env vars from /efi/freebsd/loader.env > Setting currdev to disk0p1: > FreeBSD/arm EFI loader, Revision 1.1 > > Command line arguments: l > EFI version: 2.70 > EFI Firmware: Das U-Boot (rev 8217.1024) > Console: efi (0) > Load Path: /VenHw(e61d73b9-a384-4acc-aeab- > 82e828f3628b)/SD(0)/SD(0)/HD(1,0x01,0,0x42f,0x18fa8)/efi\boot\bootarm > .efi > Load Device: /VenHw(e61d73b9-a384-4acc-aeab- > 82e828f3628b)/SD(0)/SD(0)/HD(1,0x01,0,0x42f,0x18fa8) > Trying ESP: /VenHw(e61d73b9-a384-4acc-aeab- > 82e828f3628b)/SD(0)/SD(0)/HD(1,0x01,0,0x42f,0x18fa8) > Setting currdev to disk0p1: > Trying: /VenHw(e61d73b9-a384-4acc-aeab- > 82e828f3628b)/SD(0)/SD(0)/HD(2,0x01,0,0x193d7,0x5e6c11) > Setting currdev to disk0p2: > Loading /boot/defaults/loader.conf > Loading /boot/device.hints > Loading /boot/loader.conf > Loading /boot/loader.conf.local > Loading kernel... > /boot/kernel/kernel text=0x85a6c4 data=0xb41e0+0x258720 > syms=[0x4+0xa8d50+0x4+0x10c071] > Loading configured modules... > can't find '/boot/entropy' > /boot/kernel/umodem.ko text=0x1be0 text=0x1310 data=0x1088+0xf80 > syms=[0x4+0x1070+0x4+0xbcd] > loading required module 'ucom' > /boot/kernel/ucom.ko text=0x1f74 text=0x2e40 data=0x1088+0x17b4 > syms=[0x4+0x14f0+0x4+0xc5d] > > Hit [Enter] to boot immediately, or any other key for command prompt. > Booting [/boot/kernel/kernel]... > Using DTB provided by EFI at 0x87ee9000. > Kernel entry at 0x84000180... > Kernel args: (null) > / > U-Boot SPL 2019.04 (Jul 18 2019 - 04:19:33 +0000) > Trying to boot from MMC1 > Loading Environment from FAT... *** Warning - bad CRC, using default > environment > >