From nobody Thu Feb 22 17:17:46 2024 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 4Tgfwc1SZ2z5B1k0 for ; Thu, 22 Feb 2024 17:17:52 +0000 (UTC) (envelope-from jfc@mit.edu) Received: from NAM12-MW2-obe.outbound.protection.outlook.com (mail-mw2nam12on20701.outbound.protection.outlook.com [IPv6:2a01:111:f403:200a::701]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.protection.outlook.com", Issuer "DigiCert Cloud Services CA-1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Tgfwb0zFqz4TVL for ; Thu, 22 Feb 2024 17:17:51 +0000 (UTC) (envelope-from jfc@mit.edu) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=mit.edu header.s=selector2 header.b="IsaU2g/x"; spf=pass (mx1.freebsd.org: domain of jfc@mit.edu designates 2a01:111:f403:200a::701 as permitted sender) smtp.mailfrom=jfc@mit.edu; dmarc=pass (policy=none) header.from=mit.edu; arc=pass ("microsoft.com:s=arcselector9901:i=1") ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=A1WQ2JYR7AfTA9MoXucRRAfV6r0p1s+t4M0VuJB5tcoAb7fMNF+z8Hb56e3CaVyzhrQPWZ8j0cQbisL3hZSH3l33fJQJ8Tf1ctk1jPU4YgOUx34y7KlSEpv3uxYSVNocgCiYIN1vKO9Ln5VCCkZFEr2zsNNtEeHbQv+VibW7Rfx+FINs0eLE/4hSywuyMEQLd0EOMrXcFSTW6ZHfEPooyaAkhuo6TPXWZ8gt3wiSkci5R4ydZrdVdUTXGjeqqy4ArPgl8kCwdD1nDBTPl9lNJeqxTh9+n/BQB0WQn+uPKZn9SlHyPH/DEnQq6AshjHfgrmCtiqbhfcGiauY5usb6ig== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=KjXyt7cnHYafYWEA7VkkNZVFUbcQhjKq7itReMojsCc=; b=VbSSJCcZwQJM1eC/4kL6IqJMzxH82JWH2poWasCbwBbQJnCC449T2EU+97SoA3jZDIh/D1XhE5XH7hR2F0zQGPmtvWYF3nL2M9j0hyGiecbrFfiIR4CzmzEvnUTow1Lj3Sqj3EdsTucZuREii8pRvpK7tuJq2HvGyM9dnrBMeRUFAvVjbGSgMCGChEOGU2g6gPYMGwWcgYhjZsMDSt/jfSXlYdPHdI0tdfJkd2S9vlLcbOl8riuJj1snqXiHHFkkQ8i76V7lLM19+PSx3fZg/G7ZmUoBGMwK45hk11VU1Aa6rzqKs9dzmO/7565eVErp4L+iBsUo5/f43D1RZ4tlBA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=mit.edu; dmarc=pass action=none header.from=mit.edu; dkim=pass header.d=mit.edu; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mit.edu; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=KjXyt7cnHYafYWEA7VkkNZVFUbcQhjKq7itReMojsCc=; b=IsaU2g/xOjLqtqESjVe6uRB/8mH8DFkR2Et1XGHSLJ2OPb7bWo0PWMO+22iC19KU+E8jT2MJHFU/QZEfjQZRyEhRxdN3J5RTfujwHoG1hYc6qMMEituD8a1X82wjjxe9aYv67VL8mnR7Cr4zUbGp0awHTQvavwSw22ozLxDiccc= Received: from SA3PR01MB8450.prod.exchangelabs.com (2603:10b6:806:382::17) by MN0PR01MB7753.prod.exchangelabs.com (2603:10b6:208:37c::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7292.39; Thu, 22 Feb 2024 17:17:47 +0000 Received: from SA3PR01MB8450.prod.exchangelabs.com ([fe80::dda2:5717:28f6:b5e6]) by SA3PR01MB8450.prod.exchangelabs.com ([fe80::dda2:5717:28f6:b5e6%4]) with mapi id 15.20.7292.043; Thu, 22 Feb 2024 17:17:46 +0000 From: John F Carr To: freebsd-arm Subject: Trying to boot an Orange Pi Zero2 Thread-Topic: Trying to boot an Orange Pi Zero2 Thread-Index: AQHaZbMNs58gZaRWLEC6NoDKJ7Bfvg== Date: Thu, 22 Feb 2024 17:17:46 +0000 Message-ID: <773F5595-8EA8-4213-936B-09D822B0C975@mit.edu> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-traffictypediagnostic: SA3PR01MB8450:EE_|MN0PR01MB7753:EE_ x-ms-office365-filtering-correlation-id: 1383c30b-4593-4338-747c-08dc33ca305c x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: OWhhBPLylrR+Wivw7JPfA8lbpEOjr+PCh3ZIc1FRkJwTPrUjMBkkjwm8xgK1xTHNSgJG6U3wI8ixbNX807/aDNvV3lC87hJEXBV5cy+Bz5h1aUTu7s6zFg4aREuD3RRsqcp8Bgyg5JUipY0S+o1Ya2mqir9znlSgscc8Ac1TFckuzim74ZYKmU2u7EbgfKHmwMuqV65eHiEgJJW6Ubc2d4DYbkanHc4kEMv5S7Xry7E7k+wOgplP1iVrhFtLk2MiH3W01+Haip/mTg3xmI8jo56oEfXVV+Qv42T1vKonw6h24t7h+RauKI3Ny7qGDjPoWAgex5bk6QJjbfAqigRGQagTNX3kPfkOJB7NU46Gj/S62cD1EGStKk7+22A8SHmlrwU9PccHN+dpg5UAaI3A+Sxrb73KP1k4qDCmnBM/5TqOtepYMaU5Qo6ZwwgclmGYFTXgvicAl08YdyP7BQXujgqeaTdt1kda+PRKGnA+Yz5zImGQC5tkqTpvammePrzaliAjqlFUuIBo3LxDEKu6RBlA3ZQy6rGNX3TJPM/1UCpcBuXEKsfSX2k6tLbiY/Vye8clmW7I10FJUITy0LpDOSeFvtUCVrnj2PjQVmM5rjc= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SA3PR01MB8450.prod.exchangelabs.com;PTR:;CAT:NONE;SFS:(13230031)(38070700009);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?srZmAaAxfUpT8qetQlrRenBmtatHAysNgFQVFDX0fpBX2dP/hW5HO7E0xWnb?= =?us-ascii?Q?idE1EH98nM1j3ZgoVykr5+7OHdi+sxjmkWRcPXQrapZLtCHcO3eZUX2QRD0H?= =?us-ascii?Q?OStuCMN0USSOCDpsvy9tgsx8DsB4JOpqdqU+fHFO1WENFnpMzaca8rHbx/hE?= =?us-ascii?Q?O87AS9NhlA3YD6W5bQ82Q+gc1Cft5lniSYI1EQ509dGwM7cdgWWifIwRvru1?= =?us-ascii?Q?Yui3F0zO81fMIY5FYh1+l1jx3IfmT/MgAtapuz0gaLmZzjw1yUGWIA0rExrX?= =?us-ascii?Q?4nJk/btwPghuOH2xVKA1t22GxKdkLjtG3/TC/GRpEf9neplF9Ca1tfwIV5bM?= =?us-ascii?Q?KaZMyMAsXUGr/sBWzNSo0v/W+KFAg4dNFU26qyZWWUI68Q41ZY7JddLZaenC?= =?us-ascii?Q?l+3D9WAEvMmXIAx3et9KMrwMUJT2Er0SCiPC8P6Q743t75SJtq21GPP0r6pL?= =?us-ascii?Q?A7gQDN+XXL6wzspjfCVu8YOW7B5yocPN3euVvQU5I/J1dyQZWSCknVt2RVnj?= =?us-ascii?Q?C37StwZSC2hUW8o3ZSUhJ4Y8qChu+IhTbJQc7q2/wKPxrVOe63a7V8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O1KSS205kfElRH3fB0UnHPNaXrzud6xsppi0DatQEDOy?= =?us-ascii?Q?wjrZJVJJqVu/v7lzK03ggz+uqVK80nemdLnvFw0uwvhrwwUGI5dB1Tfsv1Kf?= =?us-ascii?Q?+jCFuDLE7fjrP9Jw/BxJyjDfPezzHf4orJnZ8E9b4CYYWJYOF1vS/KZIsfq7?= =?us-ascii?Q?s3yNMgd/G/oVM60pJYMMPf/L66yMICPKgilu1H1NPczR?= Content-Type: text/plain; charset="us-ascii" Content-ID: <1B9C8899DE89F044943835C952458AFE@prod.exchangelabs.com> Content-Transfer-Encoding: quoted-printable 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 X-OriginatorOrg: mit.edu X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SA3PR01MB8450.prod.exchangelabs.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1383c30b-4593-4338-747c-08dc33ca305c X-MS-Exchange-CrossTenant-originalarrivaltime: 22 Feb 2024 17:17:46.6982 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 64afd9ba-0ecf-4acf-bc36-935f6235ba8b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: deHS/1JSREvmD/cw6xWkrywP1EXpJ91fXMmZWzV4PYxtG49aw3Hb2mrYJbMWO9LC X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN0PR01MB7753 X-Rspamd-Queue-Id: 4Tgfwb0zFqz4TVL X-Spamd-Bar: ----- X-Spamd-Result: default: False [-6.00 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; DWL_DNSWL_LOW(-1.00)[mit.edu:dkim]; ARC_ALLOW(-1.00)[microsoft.com:s=arcselector9901:i=1]; NEURAL_HAM_SHORT(-1.00)[-0.999]; DMARC_POLICY_ALLOW(-0.50)[mit.edu,none]; R_SPF_ALLOW(-0.20)[+ip6:2a01:111:f403::/49]; R_DKIM_ALLOW(-0.20)[mit.edu:s=selector2]; MIME_GOOD(-0.10)[text/plain]; MISSING_XM_UA(0.00)[]; MIME_TRACE(0.00)[0:+]; RCPT_COUNT_ONE(0.00)[1]; ASN(0.00)[asn:8075, ipnet:2a01:111:f000::/36, country:US]; MID_RHS_MATCH_FROM(0.00)[]; MLMMJ_DEST(0.00)[freebsd-arm@freebsd.org]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2a01:111:f403:200a::701:from]; RCVD_COUNT_TWO(0.00)[2]; TO_DN_ALL(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_TLS_LAST(0.00)[]; DKIM_TRACE(0.00)[mit.edu:+] I have been trying to get FreeBSD onto an Orange Pi Zero 2. I can't even get as far as a U-Boot banner. Nothing comes through the serial port. A Linux image boots just fine using the serial port. Linux uses MBR instead of GPT and has a different boot environment with a lot of scripts. From reading old documentation at wiki.freebsd.org it seems like I should 1. Get an image for a 64 bit ARM SBC and write it to a card. I tried both https://download.freebsd.org/releases/arm64/aarch64/ISO-IMAGES/14.0/Fre= eBSD-14.0-RELEASE-arm64-aarch64-PINE64-LTS.img.xz https://download.freebsd.org/releases/arm64/aarch64/ISO-IMAGES/14.0/Fre= eBSD-14.0-RELEASE-arm64-aarch64-RPI.img.xz 2. Make a new u-boot slave port with MODEL=3D orangepi-zero2 BOARD_CONFIG=3D orangepi_zero2_defconfig FAMILY=3D allwinner64 3. Run the dd command from https://wiki.freebsd.org/arm/Allwinner/booting to install the u-boot image at offset 128k in the SD card. I verified that the alternative address 8k has a long run of zero bytes. 4. Copy sun50i-h616-orangepi-zero2.dtb from the Linux image that works to the dtb directories on the FreeBSD image FAT and UFS partitions. I power up the Orange Pi and nothing happens. It's failing to load u-boot or else u-boot can't find the serial port. The quality of kernel support for the Allwinner H616 doesn't matter here. I see no sign that the boot process gets as far as the FreeBSD loader. What went wrong? (If you know what went wrong, consider updating wiki.freebsd.org to save the next victim.) Is debugging with JTAG an option on this board? If anybody on this list edits the online documentation, wiki or www, it would be nice to have a list of what ARM SBCs "just work". I remember one of the Raspberry Pis worked for me a few years ago. A slightly different configuration wouldn't have worked. You needed less than 3 GB RAM and a certain board revision and you had to get lucky with the version of U-Boot that was on the releng-built image.