From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id SPZSAHmfyGBJAgEAgWs5BA (envelope-from ) for ; Tue, 15 Jun 2021 14:39:21 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id 6Bd9N3ifyGCKaAAAbx9fmQ (envelope-from ) for ; Tue, 15 Jun 2021 12:39:20 +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 5ED4425BB9 for ; Tue, 15 Jun 2021 14:39:20 +0200 (CEST) Received: from localhost ([::1]:51976 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lt8Le-00012W-QR for larch@yhetil.org; Tue, 15 Jun 2021 08:39:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45782) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lt8L6-0000zj-5M for guix-devel@gnu.org; Tue, 15 Jun 2021 08:38:44 -0400 Received: from flashner.co.il ([178.62.234.194]:47478) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lt8L3-0007ZH-OI for guix-devel@gnu.org; Tue, 15 Jun 2021 08:38:43 -0400 Received: from localhost (unknown [31.210.177.125]) by flashner.co.il (Postfix) with ESMTPSA id 1B39F400AC; Tue, 15 Jun 2021 12:38:40 +0000 (UTC) Date: Tue, 15 Jun 2021 15:37:25 +0300 From: Efraim Flashner To: Vagrant Cascadian Subject: Re: RISCV porting effort Message-ID: Mail-Followup-To: Vagrant Cascadian , guix-devel@gnu.org References: <87o8c91xvm.fsf@yucca> <87lf7c0wnu.fsf@yucca> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="BmdyxP4Edh516V9N" Content-Disposition: inline In-Reply-To: <87lf7c0wnu.fsf@yucca> X-PGP-Key-ID: 0x41AAE7DCCA3D8351 X-PGP-Key: https://flashner.co.il/~efraim/efraim_flashner.asc X-PGP-Fingerprint: A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Received-SPF: pass client-ip=178.62.234.194; envelope-from=efraim@flashner.co.il; helo=flashner.co.il 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_PASS=-0.001, SPF_PASS=-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=1623760760; 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=vDPNTpmBsZhnSc7S94tAlWkphK4YRsLaw1gpEpPk/IU=; b=eqDGObpp1yx1atGPQVCVOt8Pt2W4TDEd0Y1qGKK88cRUtRXg0sBHxoej7y86SDPKggFu9g EpUwvejBYDuXOm2zp0PqnBitl4aeuxCdxT8N7dau+LR0EeHu8agvg78lIYxIyv9Ig71hxb y6g5xhbO3czHjS0e6+vNgOQJpfe9DQn81g8OLo0xy74e8/vXMTiLKeoLS/IipUX2sbHpx+ L5km7e35r1ljc0Orr7UaEc3m+M0gN/VgSAm/nVu0onss3AHRWf4WOFS0qgy4Re/pvk0qPJ AxYs3Ixx6cd6KGePJp+4VRwwOSUk7uZCli7ktpJpSbhDqUPCZiB59oO35PpUOg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1623760760; a=rsa-sha256; cv=none; b=drBBXB5IZYDyStG8YnkPuKPfibYKa0SvFRLvWOuEqd1SRGvRY1xl6fRSFZezjbumjtDETU oQlkkMiBI6CuOYxV+ckxKcNZCIADJJ6uzgd1lsJ9Dv2ubgJmh5FjguqHYmT/9OygcUi9Id nlFAXq/tvJzgj/GEYUabEIRpG2Vy+AYJn4TiXuLL+od9yu7KIAxz4QUUNSi59ljxFmuJG+ XJvoQg4ryySbPheV5Hks6VhJk+mdBao7E3yFyh1IgeolDg2ieF4+Aq+MLKLe09fdH0Ti9v qsyL//1Tldv+l3JjIPbG1Xu3D3NpeFVz4DiXVmToSFdlFEG3w2VtLtHa4ZbAHg== 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.03 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: 5ED4425BB9 X-Spam-Score: -4.03 X-Migadu-Scanner: scn1.migadu.com X-TUID: 2HWryWXYX2Hr --BmdyxP4Edh516V9N Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jun 14, 2021 at 06:00:21PM -0700, Vagrant Cascadian wrote: > 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 an= d 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) >=20 > I didn't take notes, but off the top of my head something like this: >=20 > Booted the OE image that shipped with it on the microSD >=20 > add partition for new rootfs (cfdisk /dev/mmcblk?) Not a bad idea. I tried flashing a new SD card with their 2021.05 image but it gave me kernel panics over the serial console so I reflashed it with 2021.03. Actually, after flashing it I deleted everything in /dev/sda4 and did debootstrap there and left extlinux setup as-is. > mkfs.ext4 /dev/mmcblkXpY > mount -o noatime /dev/mmcblkXpY /mnt >=20 > git clone https://salsa.debian.org/installer-team/debootstrap > cd deboostrap > sudo DEBOOTSTRAP_DIR=3D$(pwd) ./deboostrap --arch=3Driscv64 sid /mnt ht= tp://deb.debian.org/debian-ports I added --include=3Dopenssh-server,sudo > echo 'UUID=3D... / ext4 errors=3Dremount-ro 0 1' > /mnt/etc/fstab > echo 'tmpfs /tmp tmpfs defaults,nosuid,nodev 0 0' >> /mnt/etc/fstab >=20 > sudo chroot /mnt adduser vagrant --gecos ,,, > sudo chroot /mnt adduser vagrant sudo > sudo chroot /mnt passwd vagrant >=20 > add another entry to /boot/extlinux/extlinux.conf using the > appropriate root=3D/dev/mmcblkXpY and/or root=3DUUID=3D... >=20 > Probably missed something, but that's the jist. You forgot to mention what password you used ;P jkjk echo "unmatched" > /etc/hostname cat >>/etc/network/interfaces < Then, to build guix... >=20 > 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-ri= scv > # add new patches to debian/patches/series > =20 > # adjust debian/rules and debian/control to use guile-3.0... >=20 > # build the package! > DEB_BUILD_OPTIONS=3D'nocheck parallel=3D5' sbuild --chroot-mode=3Dunsha= re -d UNRELEASED -c sid=20 >=20 > Upgrading to use guile-3.0 required a manually rebuilt guile-gnutls > against guile-3.0 as well... >=20 > Just pushed debian/wip-riscv64 to https://salsa.debian.org/debian/guix/ > if you want to look at my most recent attempt. >=20 > Notably, this is just the wip-riscv patches applied against guix 1.3.0; > maybe building against guix master will be more successful? >=20 >=20 > live well, > vagrant I'm actually thinking of moving my reprepro setup off my g4 and hosting it on my desktop (where I can get my gpg key more easily) and then rsyncing it up to my server. If I setup pbuilder on the hifive unmatched then I'll add those packages to the ones I already have online. --=20 Efraim Flashner =D7=90=D7=A4=D7=A8=D7=99=D7=9D = =D7=A4=D7=9C=D7=A9=D7=A0=D7=A8 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --BmdyxP4Edh516V9N Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAmDInwIACgkQQarn3Mo9 g1EtyxAAsNIkyxg5uPIZqk97qesuF2/uo9c3+nhD4rsBCnPaGHt5JinoaCzrGred I5oQ6WhHsOK+eU/t6Mj2dRtMZHFyevA4WG9xe7qafbU8XrV2EkPw/bSK3QFXvHiB jucDcnCBWvdwUKguXI5HryVFytagkMlrz2eBogYLb2srLu8OBG8T5kmGhi3K4JL5 zmMCbwkENAKWN8p99pYeLIbu4oIfV6WUCnEY6oXvAHNiwLNYlkiCv9Swx2IZFMKT q+bisc8BxmT/hU5NgEcxywYn7vE7LgYFubaUNp7BXlZJl1TPh3Vn1HKqXNU0wnAo zBeiV6Oon0EXV1ROBvZHJqBfC7S26lJTU5oEYDiaGSqu7yJNT1CzLVDdWQPZYDxE DB5E7GrGFhMOWc+7l+6OS8eg5y+ZLO1V6Me8Idg9q1Jjyxc5dkDbcwvwjh0kt1DF eaPsTinZJ13ol6aaV6qgJe2zGsSU0mjy9G3rxDCFZGvlMNXLixF922pBkIzzgPY4 oiQQ/1OGLLgb6eKjMBZqafrew5BR5dIqpImeRjrKV7zDuOJyMJliPUIonr4Zfu6b E31YVeBxE57aKnq7YF634mnC1YJbmeDMhBcJ4eiht7gaEwPfejjn2HSi9oIxPuyR 9MbwWMwYVq1WuQPhfN9ubhgWfmwImJ/p1/1Zzi+UPK/Kh+qKtrE= =tVlz -----END PGP SIGNATURE----- --BmdyxP4Edh516V9N--