From owner-freebsd-current@freebsd.org Fri Feb 10 19:36:52 2017 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E541CCD9B41 for ; Fri, 10 Feb 2017 19:36:52 +0000 (UTC) (envelope-from gonzo@bluezbox.com) Received: from id.bluezbox.com (id.bluezbox.com [45.55.20.155]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id BFC93170D for ; Fri, 10 Feb 2017 19:36:52 +0000 (UTC) (envelope-from gonzo@bluezbox.com) Received: from [127.0.0.1] (helo=id.bluezbox.com) by id.bluezbox.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.87 (FreeBSD)) (envelope-from ) id 1ccGzz-000Dcb-TL; Fri, 10 Feb 2017 11:36:52 -0800 Received: (from gonzo@localhost) by id.bluezbox.com (8.15.2/8.15.2/Submit) id v1AJapxx052364; Fri, 10 Feb 2017 11:36:51 -0800 (PST) (envelope-from gonzo@bluezbox.com) X-Authentication-Warning: id.bluezbox.com: gonzo set sender to gonzo@bluezbox.com using -f Date: Fri, 10 Feb 2017 11:36:50 -0800 From: Oleksandr Tymoshenko To: Toomas Soome Cc: Karl Denninger , freebsd-current@freebsd.org Subject: Re: Crochet build for Pi3 fails to boot on r313441 (and later), works on r313109 Message-ID: <20170210193650.GA52341@bluezbox.com> References: <517ab0d5-412a-35dd-7d0d-d8297af43b46@denninger.net> <4a6f872b-cee1-57e5-7a72-a1d445f9926f@denninger.net> <5128b9a9-1186-8c6c-6227-e5e8a087cf89@denninger.net> <0B4B40AA-E654-4A71-92B0-D8E6CD234B63@me.com> <20170209213916.GA40599@bluezbox.com> <20170209221021.GA40870@bluezbox.com> <64E64B7F-E1BE-4CC6-ACAB-E5D7FEE408C8@me.com> <0E030158-CF2C-4A95-93EB-E06061689A6E@me.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0E030158-CF2C-4A95-93EB-E06061689A6E@me.com> X-Operating-System: FreeBSD/11.0-RELEASE-p2 (amd64) User-Agent: Mutt/1.6.1 (2016-04-27) X-Spam-Level: -- X-Spam-Report: Spam detection software, running on the system "id.bluezbox.com", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see The administrator of that system for details. Content preview: Toomas Soome (tsoome@me.com) wrote: > > >> > >> From reading U-Boot sources (lib/efi_loader/efi_disk.c) it looks like > >> names are in the form of typeN:M, where type is interface type, > >> N is disk id and M is partition id. So 3 disks in my setup > >> may be mmc0, mmc0:1, mmc0:2. > >> > >> -- > >> gonzo > > > > Okay, so in case of arm or MEDIA_FILEPATH_DP we need to keep the initial disk handle till there is an disk switch, and use it as first argument for registering the disk. So the name in last node is probably the same format and we can identify the disk this way. Worth to check in any case:) > > > > > Based on current knowledge, I did put together the first sketch of the fix: > > https://reviews.freebsd.org/D9520 > > However, it needs to be tested on arm, so I do ask help there:) [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP 0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [URIs: me.com] -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Feb 2017 19:36:53 -0000 Toomas Soome (tsoome@me.com) wrote: > > >> > >> From reading U-Boot sources (lib/efi_loader/efi_disk.c) it looks like > >> names are in the form of typeN:M, where type is interface type, > >> N is disk id and M is partition id. So 3 disks in my setup > >> may be mmc0, mmc0:1, mmc0:2. > >> > >> -- > >> gonzo > > > > Okay, so in case of arm or MEDIA_FILEPATH_DP we need to keep the initial disk handle till there is an disk switch, and use it as first argument for registering the disk. So the name in last node is probably the same format and we can identify the disk this way. Worth to check in any case:) > > > > > Based on current knowledge, I did put together the first sketch of the fix: > > https://reviews.freebsd.org/D9520 > > However, it needs to be tested on arm, so I do ask help there:) Thanks Toomas, rpi3 boots with this patch applied and device structure is correct: OK lsdev disk devices: disk0: 15564801 X 512 blocks (removable) disk0s1: DOS/Windows disk0s2: FreeBSD disk0s2a: FreeBSD UFS net devices: net0: -- gonzo