From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id aEUeL+L7x2DqYgEAgWs5BA (envelope-from ) for ; Tue, 15 Jun 2021 03:01:22 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id EDKOKuL7x2APDAAAbx9fmQ (envelope-from ) for ; Tue, 15 Jun 2021 01:01:22 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id CBB8418140 for ; Tue, 15 Jun 2021 03:01:21 +0200 (CEST) Received: from localhost ([::1]:34020 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lsxSC-0005UM-LD for larch@yhetil.org; Mon, 14 Jun 2021 21:01:20 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34858) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lsxRS-0005Tz-8o for guix-devel@gnu.org; Mon, 14 Jun 2021 21:00:34 -0400 Received: from cascadia.aikidev.net ([2600:3c01:e000:267:0:a171:de7:c]:38220) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lsxRP-0005DC-GA for guix-devel@gnu.org; Mon, 14 Jun 2021 21:00:34 -0400 Received: from localhost (unknown [IPv6:2600:3c01:e000:21:21:21:0:100b]) (Authenticated sender: vagrant@cascadia.debian.net) by cascadia.aikidev.net (Postfix) with ESMTPSA id 999971B01A; Mon, 14 Jun 2021 18:00:26 -0700 (PDT) From: Vagrant Cascadian To: Efraim Flashner Subject: Re: RISCV porting effort In-Reply-To: References: <87o8c91xvm.fsf@yucca> Date: Mon, 14 Jun 2021 18:00:21 -0700 Message-ID: <87lf7c0wnu.fsf@yucca> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Received-SPF: none client-ip=2600:3c01:e000:267:0:a171:de7:c; envelope-from=vagrant@debian.org; helo=cascadia.aikidev.net X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: guix-devel@gnu.org Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1623718882; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=bTaB3z2nLkTDwmunZ4+K0GZ/lzXM2GaKzueqSxJ7Zcw=; b=BVkOWV8r3C/G77xHnHmjsu6MM7PKySWivxfhRmL23xshEURewBF8ZpLnOivFWjXKkmIzr7 OJZTsPBCpl4DVrBu06lw1JmmNXbjtFe4ikXQrXdb25RE4fOk1hza6VxT7HnDGmlgP6pGMQ qxsI6RL/8dj8Y1ssBTYlQuqQw4ia/P+hyCHrDpYg40s6G1ycx07qpe2bs3aKYAs6NBcpyV QJKEwkI5jVGQlhTaoToLSGo/3OcUgbFm0X+gEdAkilFjHwhg7/SezkJE3QUMW4esLo3qQg Vo1TUspSn0HkmncSlM2uS0rdlH1zz6DLAslfL93uTrCCa7xEum4mXRWJvJktYw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1623718882; a=rsa-sha256; cv=none; b=W+Zf2Uf772lf9zWve81kz1RVd/euJXGoYruDJflOmG+lCtRQjFTskCpIjfDBDN4xmBCTFl TD3k/yBj9MwBh8Q29H+cBX8QCzt89zjpyrpUFxlz3b7qaUjih/jwpLh+VWkQrZ8sDVGAex BVo7IZIxgr5M4mpgehBLZIUl1lq8Nrsz52xqG7GN+6Jbi+D1RR92pQ4pG91SYo1FVY/C0P wDromR1iQ80aKlJQi70GxhCC7VTqdggd3NFerdtKmVr5dOk74cf8peO0HqkZZ8nJQEdPdA paaBD4Tl20z+uunG//FlEJ1KcVJvs2ODaBzubgF0NfSF3pM29u2o2LQo6AmaEQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Spam-Score: -4.02 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Queue-Id: CBB8418140 X-Spam-Score: -4.02 X-Migadu-Scanner: scn1.migadu.com X-TUID: ghyQuDsF4EcF --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 2021-06-14, Efraim Flashner wrote: > On Sun, Jun 13, 2021 at 10:24:13AM -0700, Vagrant Cascadian wrote: >> On 2021-06-07, Efraim Flashner wrote: >> > Last week my HiFive Umatched=C2=B9 board came >> ... >> > Ubuntu has an image for the board=C2=B2 which booted up just fine and = I'm >> > using, since I didn't want to spend too long getting Debian to run on >> > the board. >>=20 >> I, on the other hand, went straight for Debian, of course! I stole the >> vendor kernel and u-boot and built a Debian rootfs... and after a few >> tries got it running. >>=20 >> live well, >> vagrant > > Do you have notes on what you did? Right now I was thinking of taking > the Ubuntu image, keeping /boot with their kernel and u-boot and > replacing the rest of it with Debian. (And copying the device-tree dtb > files to /boot/firmware/kernel-version) I didn't take notes, but off the top of my head something like this: Booted the OE image that shipped with it on the microSD add partition for new rootfs (cfdisk /dev/mmcblk?) mkfs.ext4 /dev/mmcblkXpY mount -o noatime /dev/mmcblkXpY /mnt git clone https://salsa.debian.org/installer-team/debootstrap cd deboostrap sudo DEBOOTSTRAP_DIR=3D$(pwd) ./deboostrap --arch=3Driscv64 sid /mnt http= ://deb.debian.org/debian-ports echo 'UUID=3D... / ext4 errors=3Dremount-ro 0 1' > /mnt/etc/fstab echo 'tmpfs /tmp tmpfs defaults,nosuid,nodev 0 0' >> /mnt/etc/fstab sudo chroot /mnt adduser vagrant --gecos ,,, sudo chroot /mnt adduser vagrant sudo sudo chroot /mnt passwd vagrant add another entry to /boot/extlinux/extlinux.conf using the appropriate root=3D/dev/mmcblkXpY and/or root=3DUUID=3D... Probably missed something, but that's the jist. Then, to build guix... git clone https://salsa.debian.org/debian/guix/ cd guix git remote add originguix https://git.savannah.gnu.org/git/guix.git git fetch git format-patch -o debian/patches originguix/master..originguix/wip-riscv # add new patches to debian/patches/series =20=20 # adjust debian/rules and debian/control to use guile-3.0... # build the package! DEB_BUILD_OPTIONS=3D'nocheck parallel=3D5' sbuild --chroot-mode=3Dunshare= -d UNRELEASED -c sid=20 Upgrading to use guile-3.0 required a manually rebuilt guile-gnutls against guile-3.0 as well... Just pushed debian/wip-riscv64 to https://salsa.debian.org/debian/guix/ if you want to look at my most recent attempt. Notably, this is just the wip-riscv patches applied against guix 1.3.0; maybe building against guix master will be more successful? live well, vagrant --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQRlgHNhO/zFx+LkXUXcUY/If5cWqgUCYMf7pQAKCRDcUY/If5cW qhYmAQCTsZV5ae7656Vz1hd+TzCZnNnbXOwlnhXkoLXH7rSGvwEA+0R29yh7Cg6F zvgCPdhzG8LRcopoMGL/AeaBQU8H5QI= =ZVQI -----END PGP SIGNATURE----- --=-=-=--