From owner-freebsd-arm@freebsd.org Tue Mar 17 18:52:30 2020 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 801F226F7A3 for ; Tue, 17 Mar 2020 18:52:30 +0000 (UTC) (envelope-from rwa@athabascau.ca) Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on2084.outbound.protection.outlook.com [40.107.94.84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.protection.outlook.com", Issuer "GlobalSign Organization Validation CA - SHA256 - G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 48hj305YkRz4B0S for ; Tue, 17 Mar 2020 18:52:28 +0000 (UTC) (envelope-from rwa@athabascau.ca) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=OGT6YmVXMc8wxln+eWBSAgDiTXnPyP+DrW8oIblu98Res3i2kX2kY1KiOE1GMLYgolJzwHuWYpilmFokWHo2Ae7kAsNbPODtgzi5OFOBWQ2QcvLWJde/ez4HMU2nr4/SFao88gB3joj86XpYu8waPZ00wrPZ5Z2LMQUy1bcoeP4zYcYFYDp12zpA5yoBO9FrLnOAuEEjXW27MSN6r1p/ACdDmy459qQElrURQFyL2ZJrTObFux4OdA148AUZY3xBXnJW7HWd9n4jUuPHxMiu0vzmIikzb2eoFAG8YUIH0S4NdOdw5YatQpDetqaCB6lT3GABVJ6Of9z4OHhqgvnjJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=cesOUD+4qh+OeMWmzpm6CImLuzNwpF7pujrkZpRNvcM=; b=R+4UMou373ifQwIrM4X6gqj6PFdOkwgFa8n2BBzwjtoBuKWpAUWxe1mqweK6diazJghFuZlng2SrdlH/GpNERbUNlGGUNYrSycMZdnTeoQdxnhZR0kamjenBYUc69Hw07fKsPL3aW9idGcA78suyPx7yr7onPEFA6tm+avozTCrtRCFNinT5DDUBlsiHKXS5OxS64L9OPY95izCZ1jOIRYT2IQDpIXZU9YqeAedj8kg8YcZfW5tsqbc01c8hlszvCZlCS3BMIadtWseZu8AmJl2dcMX6P6iBXwuGpTJ6EXTvBIokqLYQuAm4mCvPyTI/PECT+kA8HTzJhEu9tvSvbw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 131.232.32.37) smtp.rcpttodomain=freebsd.org smtp.mailfrom=athabascau.ca; dmarc=bestguesspass action=none header.from=athabascau.ca; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=austaff.onmicrosoft.com; s=selector2-austaff-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=cesOUD+4qh+OeMWmzpm6CImLuzNwpF7pujrkZpRNvcM=; b=1rPMmjbPVavRq1ZHGhQ2aTMVCaI6OQwM9CzsG4uWYc0OUgohb8AyLwN4ZMeHGAHnupekZWnZeEVKhQNzTlqYRwcg9uMtj0DuHRq9pEwOI79l1diNL2j27R1tvkp4TmQUmEaArFjvJxd5Ag+bD/c262YN8iHOFrxdZPju7c7wCIc= Received: from CH2PR18CA0059.namprd18.prod.outlook.com (2603:10b6:610:55::39) by CH2PR13MB3653.namprd13.prod.outlook.com (2603:10b6:610:9d::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2835.7; Tue, 17 Mar 2020 18:52:26 +0000 Received: from QB1CAN01FT009.eop-CAN01.prod.protection.outlook.com (2603:10b6:610:55:cafe::72) by CH2PR18CA0059.outlook.office365.com (2603:10b6:610:55::39) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2814.21 via Frontend Transport; Tue, 17 Mar 2020 18:52:26 +0000 Received-SPF: Pass (protection.outlook.com: domain of athabascau.ca designates 131.232.32.37 as permitted sender) receiver=protection.outlook.com; client-ip=131.232.32.37; helo=smtp-relay.cs.athabascau.ca; Received: from smtp-relay.cs.athabascau.ca (131.232.32.37) by QB1CAN01FT009.mail.protection.outlook.com (10.152.120.113) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2814.13 via Frontend Transport; Tue, 17 Mar 2020 18:52:25 +0000 Received: from autopsy.pc.athabascau.ca (autopsy.pc.athabascau.ca [131.232.4.80]) by smtp-relay.cs.athabascau.ca (Postfix) with ESMTPS id 83C9E202A3; Tue, 17 Mar 2020 12:52:24 -0600 (MDT) Date: Tue, 17 Mar 2020 12:52:24 -0600 (MDT) From: Ross Alexander X-X-Sender: rwa@autopsy.pc.athabascau.ca To: bob prohaska cc: Mark Millard , freebsd-arm Subject: Re: freebsd-arm Digest, Vol 724, Issue 3 (Answer: sysutils/u-boot-rpi3 and sysutils/u-boot-rpi4 have been updated) In-Reply-To: <20200317173515.GA65926@www.zefox.net> Message-ID: References: <4DB90158-B77E-4D65-8E94-B6941D7D76DE@yahoo.com> <20200317173515.GA65926@www.zefox.net> User-Agent: Alpine 2.22 (BSF 395 2020-01-19) Organization: Athabasca University MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:131.232.32.37; IPV:; CTRY:CA; EFV:NLI; SFV:NSPM; SFS:(10009020)(4636009)(346002)(376002)(396003)(39860400002)(136003)(199004)(46966005)(6266002)(8676002)(956004)(4326008)(15650500001)(54906003)(246002)(8936002)(786003)(6916009)(426003)(336012)(316002)(26005)(2906002)(70206006)(7696005)(70586007)(36916002)(186003)(7636002)(356004)(86362001)(5660300002)(55016002)(47076004)(478600001); DIR:OUT; SFP:1101; SCL:1; SRVR:CH2PR13MB3653; H:smtp-relay.cs.athabascau.ca; FPR:; SPF:Pass; LANG:en; PTR:vs001lpmp1609.cs.athabascau.ca; A:1; X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 3ae7d327-a479-4ed1-0753-08d7caa455d0 X-MS-TrafficTypeDiagnostic: CH2PR13MB3653: X-Microsoft-Antispam-PRVS: Content-Transfer-Encoding: quoted-printable X-MS-Oob-TLC-OOBClassifiers: OLM:2276; X-Forefront-PRVS: 0345CFD558 X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: UaegtSbsiKnQaa6b+8KKBvWeHMfm5d0EdL6l7iyf4QEFW+BzMYRlLxgmgWMm1cqgKvKB26x82E9j2dRXatkHN7dZmQGCNLDkf7DnF319j+RB7P4KJNT8K7DXGpgvw7iq5JE9zOcIAvJejQz13ogCl7GrSGd9rcKCz19+sAeO5GOQmR8DPPlJoftp5rrAjLbkdA3MKaTLyfE3tBBHKltQEERV9my5E5Mo51ZxBLSFpni7IlrtJWiuZ4Xs1t+jb5+pOPLP00SHrO/rfod6kFbD5/hDtXdxAy1mfMDt5GuIZuxtdh33jw9LfuKdUpCrl33pxihiUDLpiw6P10sOxNtWcIMqOM6Gnx2lBikOZdAAuK2CWBl5Lgbu+RGc79gfit9tDwzzvjse4i119XaM/cxcJsJZr1e2MVTfNmns0xuotEXMtTZBhomdaBvEmUSVo8bK7hlrQ4BixVCIiFd0E+F/cCtLBHZQu35VQP9h+BZrWSZVLgjEFI2ADDSgAoXw0sJQ9LR4ukNuH2DOTBNalRJnLA== X-OriginatorOrg: athabascau.ca X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Mar 2020 18:52:25.7379 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 3ae7d327-a479-4ed1-0753-08d7caa455d0 X-MS-Exchange-CrossTenant-Id: a893bdd2-f460-4252-aa34-4d057436a09d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=a893bdd2-f460-4252-aa34-4d057436a09d; Ip=[131.232.32.37]; Helo=[smtp-relay.cs.athabascau.ca] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH2PR13MB3653 X-Rspamd-Queue-Id: 48hj305YkRz4B0S X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=austaff.onmicrosoft.com header.s=selector2-austaff-onmicrosoft-com header.b=1rPMmjbP; dmarc=none; spf=pass (mx1.freebsd.org: domain of rwa@athabascau.ca designates 40.107.94.84 as permitted sender) smtp.mailfrom=rwa@athabascau.ca X-Spamd-Result: default: False [-4.83 / 15.00]; IP_SCORE(-1.38)[ipnet: 40.64.0.0/10(-3.76), asn: 8075(-3.10), country: US(-0.05)]; NEURAL_HAM_MEDIUM(-0.95)[-0.948,0]; R_DKIM_ALLOW(-0.20)[austaff.onmicrosoft.com:s=selector2-austaff-onmicrosoft-com]; RCVD_COUNT_FIVE(0.00)[5]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; R_SPF_ALLOW(-0.20)[+ip4:40.107.0.0/16]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[athabascau.ca]; HAS_ORG_HEADER(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[austaff.onmicrosoft.com:+]; RCVD_IN_DNSWL_NONE(0.00)[84.94.107.40.list.dnswl.org : 127.0.3.0]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; FREEMAIL_CC(0.00)[yahoo.com]; ASN(0.00)[asn:8075, ipnet:40.64.0.0/10, country:US]; ARC_ALLOW(-1.00)[i=1] 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: Tue, 17 Mar 2020 18:52:30 -0000 On Tue, 17 Mar 2020, bob prohaska wrote: > It looks like sysutils/u-boot-rpi3 builds and installs without > error on a Pi3 reporting > root@www:/boot/uboot # uname -KU > 1300045 1300045 > > with /usr/ports at Revision: 528581 > > However, the make install clearly didn't touch /boot/msdos and > I couldn't find any obvious instructions on what has to be done > by hand (ISTR some brief directions from make install previously). > Make install claims to build man pages, but man can't find them. > > In /usr/ports/sysutils/u-boot-rpi3/work/u-boot-2019.10 are found, > among many other things, a series of files: > > -rwxr-xr-x 1 root wheel 4794232 Mar 17 10:07 u-boot > -rwxr-xr-x 1 root wheel 500440 Mar 17 10:07 u-boot-nodtb.bin > -rwxr-xr-x 1 root wheel 500440 Mar 17 10:07 u-boot.bin > -rw-r--r-- 1 root wheel 9167 Mar 17 09:58 u-boot.cfg > -rw-r--r-- 1 root wheel 5605 Mar 17 10:07 u-boot.cfg.configs > -rw-r--r-- 1 root wheel 1348 Mar 17 09:59 u-boot.lds > -rw-r--r-- 1 root wheel 480139 Mar 17 10:07 u-boot.map > -rwxr-xr-x 1 root wheel 1438904 Mar 17 10:07 u-boot.srec > -rw-r--r-- 1 root wheel 195715 Mar 17 10:07 u-boot.sym I took the snapshot .img mentioned in my previous post, dd'd it to an SD card, mounted the msdos partition on an x86 CURRENT workstation and hand-copied in my tweaked /usr/local/share/u-boot/u-boot-rpi3/u-boot.bin over the snapshot's version. Then I booted from that. All the cpus were correctly recognized. Now, SD cards are slow and sectors rot out fast, so I have settled on using a USB SSD (with it's own power; I use some random toaster gadget and a Samsung 860 evo 250GB, it's at /dev/da0) as a system disk, and the SD disk is only for booting. So on the UFS partition of the SD card, I hacked /boot/loader.conf as thus: # Configure USB OTG; see usb_template(4). hw.usb.template=3D"3" umodem_load=3D"YES" # Disable the beastie menu and color = # beastie_disable=3D"YES" loader_color=3D"NO" # there's bitching about efi being only available console, # but this works anyhow. # console=3D"comconsole" comconsole_speed=3D"115200" boot_serial=3D"YES" # after kernel load, mount hierarchy from SSD # geom_label_load=3D"YES" # File system labels (see gl= abel(8)) vfs.root.mountfrom=3D"ufs:/dev/gpt/root1" That last line is the key. The gpart info for the SSD is rpi3:/root # gpart show -l da0 =3D> 40 488397088 da0 GPT (233G) 40 1024 1 (null) (512K) 1064 216 - free - (108K) 1280 8388608 2 root1 (4.0G) 8389888 8388608 3 swap1 (4.0G) 16778496 67108864 4 usr1 (32G) 83887360 67108864 5 local1 (32G) 150996224 67108864 6 obj1 (32G) 218105088 67108864 7 ports1 (32G) 285213952 33554432 8 src1 (16G) 318768384 8388608 9 u01 (4.0G) 327156992 8388608 10 var1 (4.0G) 335545600 2097152 11 tmp (1.0G) 337642752 150754376 - free - (72G) and after booting, I end up with: rpi3:/root # df Filesystem 1K-blocks Used Avail Capacity Mounted on /dev/gpt/root1 4053308 1210732 2518312 32% / devfs 1 1 0 100% /dev /dev/gpt/tmp 1015324 30676 903424 3% /tmp /dev/mmcsd0s1 51096 15068 36028 29% /boot/efi /dev/mmcsd0s2a 14652572 1139332 12341036 8% /boot/ufs /dev/gpt/var1 4053308 746568 2982476 20% /var /dev/gpt/usr1 32487548 3471896 26416652 12% /usr /dev/gpt/local1 32487548 1609928 28278620 5% /usr/local /dev/gpt/obj1 32487548 13357716 16530832 45% /usr/obj /dev/gpt/ports1 32487548 1017648 28870900 3% /usr/ports /dev/gpt/src1 16233660 3168536 11766432 21% /usr/src /dev/gpt/u01 4053308 13732 3715312 0% /u0 Notice that /boot/efi is the SD msdos filesys and /boot/ufs is the SD card ufs filesys. When you cd /usr/src ; make kernel ; make installkernel you also need to clone the new /boot/kernel into /boot/ufs/boot/kernel. That's the only tricky part, I've turned it into a script FWTW. I've also set the swap partition to be /dev/gpt/swap1 - swap loads don't do SD cards any good, and the poor things are slow. The reason I forward this along is that while I don't know what toolset(s) and/or pointyhat wizardry is involved in building the snapshot SD msdos parition - yet - this way gives a bootable, working system that can rebuild itself. Hope that helps, or at least gives some clues. If everyone else already knew this, please accept my apologies. regards, Ross =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D Ross Alexander, (780) 675-6823 desk / (780) 689-0749 cell, rwa@athabascau.c= a 54.71593 N 113.30835 W -- This communication is intended for the use of the recipient to whom it is a= ddressed, and may contain confidential, personal, and or privileged informa= tion. Please contact us immediately if you are not the intended recipient o= f this communication, and do not copy, distribute, or take action relying o= n it. Any communications received in error, or subsequent reply, should be = deleted or destroyed. ---