From owner-freebsd-arm@freebsd.org Sat Dec 30 07:08:54 2017 Return-Path: Delivered-To: freebsd-arm@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 617EAEAE088 for ; Sat, 30 Dec 2017 07:08:54 +0000 (UTC) (envelope-from rwa@athabascau.ca) Received: from NAM02-CY1-obe.outbound.protection.outlook.com (mail-cys01nam02on0042.outbound.protection.outlook.com [104.47.37.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client CN "mail.protection.outlook.com", Issuer "Microsoft IT SSL SHA2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0424571E70 for ; Sat, 30 Dec 2017 07:08:52 +0000 (UTC) (envelope-from rwa@athabascau.ca) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=austaff.onmicrosoft.com; s=selector1-athabascau-ca; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=DwrMu+kim3Zcs+OpkE8tW7AWQ3+Gweo3M2vxaHmFuqs=; b=9W2St4vttXt64igrxr0yBYaTBMXoiYCymNK/g1tirLKLV/4JDQoBGxbv0Lrf28crFUJcs5wLLUKgm/SKD3rw3HVEOIt0/4VC+C5nQRNUI0KnFIsgn9q2yt3nyyPo4k14xzcuJhuhU9DtH1TAWREE5fQnq/FU5qRxVs9Un9d5Blo= Received: from CY1PR13CA0053.namprd13.prod.outlook.com (2a01:111:e400:c42c::21) by BY1PR13MB0200.namprd13.prod.outlook.com (2a01:111:e400:51b4::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.366.3; Sat, 30 Dec 2017 07:08:51 +0000 Received: from TO1CAN01FT003.eop-CAN01.prod.protection.outlook.com (2a01:111:f400:7e5d::206) by CY1PR13CA0053.outlook.office365.com (2a01:111:e400:c42c::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.386.4 via Frontend Transport; Sat, 30 Dec 2017 07:08:51 +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 TO1CAN01FT003.mail.protection.outlook.com (10.152.122.114) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.20.345.12 via Frontend Transport; Sat, 30 Dec 2017 07:08:50 +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 19DDC20272; Sat, 30 Dec 2017 00:10:37 -0700 (MST) Date: Sat, 30 Dec 2017 00:08:49 -0700 From: Ross Alexander X-X-Sender: rwa@autopsy.pc.athabascau.ca To: Mark Millard CC: Freebsd-arm Subject: Re: crochet rpi2 boot won't play nice for me... In-Reply-To: Message-ID: References: User-Agent: Alpine 2.21 (BSF 202 2017-01-01) Organization: Athabasca University MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="US-ASCII" X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:131.232.32.37; IPV:NLI; CTRY:CA; EFV:NLI; SFV:NSPM; SFS:(10009020)(396003)(346002)(376002)(39850400004)(39380400002)(2980300002)(438002)(24454002)(199004)(189003)(7636002)(59450400001)(6266002)(6246003)(8936002)(305945005)(956003)(106002)(58126008)(246002)(575784001)(478600001)(316002)(86362001)(8676002)(356003)(50466002)(23726003)(4326008)(36916002)(786003)(106466001)(2906002)(8746002)(5005980100005)(2950100002)(7696005)(67846002)(229853002)(55016002)(6666003)(47776003)(6916009)(76176011)(5660300001)(104016004)(74482002)(83506002)(42262002); DIR:OUT; SFP:1101; SCL:1; SRVR:BY1PR13MB0200; H:smtp-relay.cs.athabascau.ca; FPR:; SPF:Pass; PTR:vs001lpmp1609.cs.athabascau.ca; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; TO1CAN01FT003; 1:aTzd4TzoMIdRC7/Odub30YD8c3HribdWinajvP+3M/uVikGd5mpOG5JNB2HMVFjqJ4pHZh119IIVJLKfjMXYfpczVX+OCthXn8Ie5MzurmXdaWCHiS6yvCbS/pxFW8oy X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: f39d2f8c-ece1-4850-875b-08d54f542dee X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020020)(4534040)(4602075)(4627136)(201703031133081)(201702281549075)(5600026)(4604075)(4608076)(2017052603307)(7153060); SRVR:BY1PR13MB0200; X-Microsoft-Exchange-Diagnostics: 1; BY1PR13MB0200; 3:rnhSP6JkbyILwx6e9EEUsoHh1w2FRuHUmBMbINc8a560sN3I95fVKO1tFw14RB+F8IiWVy12mbbxCbvgf+kje0c9D3M4m7ucy2fB78zp0E7eULyJR4qt9uSiOA1Z3nPIbQ3CPlPEFsqE431AtrOU7yYuduRdmMU7BENDmIDshR9ymjokORN3wEbUH9ehT4+1n2j9Sko7URT+l98TIcIW/5JoPvH8ncqlhVg4lhga1gzahAbU/d1nVF+/FIW+g8oyuz6ZOjKM3mRC+BKwwJBjbrLHLQD6nwFI7WW/PabhsnNXfqktJm3R8P3d2q4kMOuTizaaGSOrQrFD9B3sBAQL31oBMBJ1LWUCh/Hv6OkDw2k=; 25:QF5wmSvAVpHtBmV2XIfViL9J5ezv9Y+36HrC2DUduplIMdZ5vhbGRFhF3zbdOlgmu8U1nptSSGibDiEfTntPcq6sfVWf5DD0P741u5H3065mj4+JPni7dOrRAaTua1jcG/QQTy6TOVdlG6VbxbR6jVqsuZh2hchGAk0qX2Z8gK10olWLsopRuHCLjdzyGUSDgLV5JORBm3cIeqvI9HABffrLxGX+CMAwiY/EiMp7gIAPZfXWIC7ymjWKAw/HFBI6fjgzdUBezeBc5z+xRgB8A0+pzDhihm7Bn862ndInnEo9R2tEhJClCYz+HZnkr1MaOD11Bni+YfJuFJJWy2cfPw== X-MS-TrafficTypeDiagnostic: BY1PR13MB0200: X-Microsoft-Exchange-Diagnostics: 1; BY1PR13MB0200; 31:q2XymW2PlmZ46EAYjWEN7pND2zVj3UO4Tydzs8atoH0m4pHvONjc/plzPDpLtd7DOvk6i6uwM48sQVjKH7QRvzwfdt8rkyNQQqWRD0O2RAAaoIfuEv3i5d4FVDYruza3mTQXBut5gPoyvmHn2LgkeAnkGwcpKD/brvN3GaV1TH1820D/yrUj9YlKS+o5C9bORMo/7dHl8db/wQ54Wdo3j2ZGZPLcr76sAC9/p3fp8cQ=; 20:q5spvDub7DFfiQhuyPB9yfdWy8dUOx6KBrCyNTZi4BD/bUlEiOtkkbOAWsMawracu43Hx0cKz1VCmsmiIncIsbPrpteWFoGQGXet7cE1C2MrXkxzXgeHS+sAmWIBzrNQi3M6FZrYB/A5TKHXQsn4Se6h8trT0ggvRA4Hsk1tph7zwHfmVtw3p/Dz9GxiN+Ax4e01WXYrUUatJ0qZ/ei20SGomUXxmEeHpsY6pvoFtEp6YGrf0Af/N1wYqNAg1JmArqoLNxnlRKjqDj3Xcvk69IBZHtYE49lWuDw2XddbCHfL95qLTTc0/pdeLSt97clAm0DkTLvJtbkADQyHVp23NJ2gKH3jj5UCKLf3v0kPVnn587EBrHTiBdzzAONNhoH7ZnTf4kauqV82IB7rJNbKKZ6TJudR5qB/YMHpGnM8ThMIfKJdgPm+KXdLVxAdsSWIJBTGDUWWYberjDHtbAITTRvGo4xuZ8eTo4PZXsILd/9QDdxS4+H62aFE31GMERN6AxubqbcbkpBoXtGDXJnQdpbjUxKhj/xXdl5QtTMgru0h60vRVyCta2isDSYVgC1domvCFss6TDh0Aauco0X8SeiwyU26h3Wnxdui4X+X7C8= Content-Transfer-Encoding: quoted-printable X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040470)(2401047)(8121501046)(5005006)(93006095)(93004095)(10201501046)(3002001)(3231023)(944501075)(6041268)(20161123562045)(20161123558120)(201703131423095)(201702281529075)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123560045)(6072148)(201708071742011); SRVR:BY1PR13MB0200; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:BY1PR13MB0200; X-Microsoft-Exchange-Diagnostics: 1; BY1PR13MB0200; 4:FwU57n0blPwP0JRyTDs90IxkVAOpx4GDE+X0F/HmW+p7cEa2gTe8rXiv+ocORS0cfJN9J/hEih2EBEKdErDFIPgS1oPDyTToBYxK7byF//NZZiXwUXydbG1dEuKogHjKnkD1jn6NKQtr7yyDkAYNmWhcLv96xqdv2AiKXJjtg3uqhJ+KOYlsUpreXEFNqGHn3oW5kImqAFsAu5A02fxZLnGfMujUtDtc7zZYGV1JmVizZnS+0c0IvOo1r5lQSdSoh/ZDzUqRRXDBUoFKUlHRSA== X-Forefront-PRVS: 05373A0663 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY1PR13MB0200; 23:EnQ/Cm0IuTuBy5rP8PqcSmtGYbw83GPaORB+5W/kK?= =?us-ascii?Q?x1SoVaKqXXx5esI3slpYOVGFiuRguMMIAJrVZ0PhyDspw2jMVn8zUBsxpg/B?= =?us-ascii?Q?tEqYQbWMweGM2AwtyC5kotQ0PVAqiG/baLf9LSjyqKVkKuiU7shQ+exscxIF?= =?us-ascii?Q?oG6AUPxPTeyaac8xY+uIpSf1QfjoiueuP6gSuQcxcHnuomyfmkwrd7/BEgcA?= =?us-ascii?Q?Z6VFbjRO0c1dxhuBtnUoPNwBWImYA6+2BtZfOvLVdKdn5ixuc1jT0za0o3Pk?= =?us-ascii?Q?Bb1GTpmZMJZI+KCjbuIl9pjsfCfj0wujCs+uDedusMHBR83yvETyKtiHcZf9?= =?us-ascii?Q?j5zMg/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ngs3qq0O6i2HpnLapMc8TiNXEVzxNqhSoL4tmhD9pYJCGDzH4dGxI4s/wS86I9WkLmcvyJ6GY8u6wgvCdGJ8JJwVrJw7z5KX/8S//G+DCB7zyJh73tw9CILasMZ2/OKKJnm9ctLy4htPdz2fJCMkwNFWU8KZk3SHpWtG0eIv5STL+0niolblwgnE+B6ELERjiDzo4amsvrnHQYJShwedeE+NeLitg1Aj4jPqkTx/Wj7EgPssQmXsftvvB6xeKHG/zLFClaW7YbUH4uNYsbvLbN2Q0PoOpJYUTGN/seVkx6/7FpqwhfjTllUDfNs=; 5:8vZEjlTW/eo/d1CTCCYkotAyhjP7diI/Vd2ySxdKjk74hdRGzxslCPiW1rvqmQh5tE5Ve67XKGD/R/RLbok9NbLURwM7b4RRxSKlzDyu0LG5lyvrVzlR01TiM4kNgkputviTIPUxJIQiKiXDnUezAdrU5RPdUutGjM1h/zVcAl0=; 24:4z0oO9mEOgW+EeM1PNZMhrGmth5wu/P75P35nLN1SPtVtWIgzUDN2TY5v5Zd3K+Qi80o9wFfIXWm1LGXzFRkyaA4lgpSQOaqVbhs3VuxaL0=; 7:fn1IBCz35SC/FFESCWPaHyKYtEcak9rwcvH41Ep47qytz0l5odcPH/57+GYYPwVxi40xATckc0+NxuaXHAEAMvWyRKtcfwerG3vUSdWX/16cehitIGpDOT0c6QP7v6zIRYZ8yuryU79vGdBEtRUY379PDEh6hLnvuIGCvo1RNK92hp5cR7kp2mqtUwhd3ROp+Q6lWvLAlxwLfdxjcZC7NIgLZ+DIGUoZ3qKeCgi/j6W7JwQnUWZp2bw0TelqWonK SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: athabascau.ca X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Dec 2017 07:08:50.7684 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f39d2f8c-ece1-4850-875b-08d54f542dee 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: BY1PR13MB0200 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 30 Dec 2017 07:08:54 -0000 On Thu, 28 Dec 2017, Mark Millard wrote: > [... :rwa:] > Hmm. There is a bootcode.bin but these days it is from > sysutils/rpi-firmware instead of from > sysutils/u-boot-rpi2 : > > # ls /usr/local/share/rpi-firmware/ > LICENCE.broadcom config.txt fixup_cd.dat fixup_x.dat start_cd.elf start_x= .elf > bootcode.bin fixup.dat fixup_db.dat start.elf start_db.elf > > # ls /usr/local/share/u-boot/u-boot-rpi2/ > README u-boot.bin Oh, nice catch. I've twisted up a copy of sysutils/rpi-firmware. Copying that stuff into what crochet built on da0s1 got me to a boot prompt, as thus: U-Boot 2017.09 (Dec 26 2017 - 11:11:20 -0700) DRAM: 948 MiB RPI 2 Model B (0xa21041) MMC: sdhci@7e300000: 0 reading uboot.env ** Unable to read "uboot.env" from mmc0:1 ** This can't be good ... Using default environment In: serial Out: vidconsole Err: vidconsole Net: No ethernet found. starting USB... USB0: Core Release: 2.80a scanning bus 0 for devices... 3 USB Device(s) found scanning usb for storage devices... 0 Storage Device(s) found Hit any key to stop autoboot: 0 switch to partitions #0, OK mmc0 is current device Scanning mmc 0:1... Found FreeBSD U-Boot Loader (bin) reading ubldr.bin 232980 bytes read in 31 ms (7.2 MiB/s) ## Starting application at 0x01000000 ... Consoles: U-Boot console Compatible U-Boot API signature found @0x3af5d988 FreeBSD/armv6 U-Boot loader, Revision 1.2 (Fri Dec 29 02:27:06 MST 2017 toor@augur2.bogons) DRAM: 948MB Number of U-Boot devices: 1 U-Boot env: loaderdev not set, will probe all devices. Found U-Boot device: disk Probing all disk devices... Checking unit=3D0 slice=3D partition=3D... good. Booting from disk0: can't load 'kernel' Type '?' for a list of commands, 'help' for more detailed help. loader> which is great, now all I have to do is remember the syntax for the boot path. lsdev shows loader> lsdev disk devices: disk0 (MMC) disk0s1: DOS/Windows disk0s2: FreeBSD disk0s2a: FreeBSD UFS net devices: net0: A naive "boot -s disk02a:/boot/kernel/kernel" doesn't work, and ls isn't implemented. Nothing I can think of is a good path. Mounting the mmscd on the devel box shows: augur2:/root # mount -o ro /dev/da0s2a /mnt0 augur2:/root # ls -l /mnt0/boot/kernel/kernel -r-xr-xr-x 1 root wheel 10649356 Dec 29 02:27 /mnt0/boot/kernel/ker= nel augur2:/root # file /mnt0/boot/kernel/kernel /mnt0/boot/kernel/kernel: ELF 32-bit LSB executable, ARM, EABI5 versio= n 1 \ (FreeBSD), dynamically linked, interpreter /red/herring, for FreeBSD 1= 2.0 \ (1200054), not stripped Anyway I'm downloading an image from ftp.freebsd.org and will see what I can learn from inspecting it. I'm surprised that crochet has lost track of the pi2, though. Lots of them still out there. regards, Ross ---------------------------------------------------------------------------= - Ross Alexander, (780) 675-6823 desk / (780) 689-0749 cell, rwa@athabascau.c= a It is not of the essence of mathematics to be conversant with the ideas of number and quantity. -- George Boole -- 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. ---