From nobody Fri Apr 1 13:51:12 2022 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 755941A390C9 for ; Fri, 1 Apr 2022 13:51:22 +0000 (UTC) (envelope-from lm@lukaszmoskala.pl) Received: from lukaszmoskala.pl (mail2.lukaszmoskala.pl [IPv6:2001:470:71:5c5::129:2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4KVM5j3FvZz4qd2 for ; Fri, 1 Apr 2022 13:51:21 +0000 (UTC) (envelope-from lm@lukaszmoskala.pl) Received: by lukaszmoskala.pl (Postfix, from userid 5555) id 3EBA760626; Fri, 1 Apr 2022 15:51:13 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 lukaszmoskala.pl 3EBA760626 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lukaszmoskala.pl; s=mail; t=1648821073; bh=7dvMlLtYHyq+PZ4XkGYqGFikbz9WtYvFvKKwWxHlWNc=; h=Date:To:From:Subject:From; b=UuH5gLK/YSf5nKlaDiCLMkAWw1SRYjkXaaQN11ANVte4HVpkmvDNWyishpL1VHZK6 lzbaL4g5LcOepN553mVMhjkiRGP/VOvaau61WTVXIAT4kZUfjbkJNlZxil2e85zxmF csWgMCJsOb1bnGK2MVe4NzHgjpQCf/podjhTshLI= X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mail2.lukaszmoskala.pl X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: from [IPV6:2001:470:612d:1337:f171:8c08:6007:5a65] (unknown [IPv6:2001:470:612d:1337:f171:8c08:6007:5a65]) by lukaszmoskala.pl (Postfix) with ESMTPSA id CD34960624 for ; Fri, 1 Apr 2022 15:51:12 +0200 (CEST) Message-ID: <18284b32-6d1d-864a-63a9-21b5fe72deb1@lukaszmoskala.pl> Date: Fri, 1 Apr 2022 15:51:12 +0200 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 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Content-Language: en-US To: freebsd-arm@freebsd.org From: =?UTF-8?Q?=c5=81ukasz_Moska=c5=82a?= Subject: Booting rock64 from USB SSD Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 4KVM5j3FvZz4qd2 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=lukaszmoskala.pl header.s=mail header.b="UuH5gLK/"; dmarc=pass (policy=none) header.from=lukaszmoskala.pl; spf=pass (mx1.freebsd.org: domain of lm@lukaszmoskala.pl designates 2001:470:71:5c5::129:2 as permitted sender) smtp.mailfrom=lm@lukaszmoskala.pl X-Spamd-Result: default: False [-2.75 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[lukaszmoskala.pl:s=mail]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2001:470:71:5c5::129:2]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; DKIM_TRACE(0.00)[lukaszmoskala.pl:+]; DMARC_POLICY_ALLOW(-0.50)[lukaszmoskala.pl,none]; NEURAL_HAM_SHORT(-1.00)[-1.000]; MLMMJ_DEST(0.00)[freebsd-arm]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; R_MIXED_CHARSET(1.25)[subject]; ASN(0.00)[asn:6939, ipnet:2001:470::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N Status: O Content-Length: 1010 Lines: 27 Hi everyone, I want to boot my rock64 from SSD (because all sd cards I could find are crap). I followed those instructions to flash u-boot to SPI: https://github.com/ayufan-rock64/linux-build/blob/master/recipes/flash-spi.md I was then able to boot FreeBSD from SSD (dd FreeBSD-13.0-RELEASE-arm64-aarch64-ROCK64.img to SSD, just like it would be to SD card), but ethernet wasn't working. Actually, it could receive packets but no outgoing packets were sent. Not even ARP packets - switch didn't detect any device on that port, but link was UP I assumed it was something to do with u-boot, so I erased u-boot from flash, then DD FreeBSD-13.0-RELEASE-arm64-aarch64-ROCK64.img to SD card, and it worked without problems. Do I understand correctly that this means that FreeBSD on rock64 uses custom u-boot? Can I somehow flash it to SPI? Possible workaround that I can think of would be to put /boot on sd card, install u-boot to sd card, then put / on SSD. Thanks in advance -- Łukasz Moskała