Received: from mail-qt1-f175.google.com (mail-qt1-f175.google.com [209.85.160.175]) by nld3-dev1.alpinelinux.org (Postfix) with ESMTPS id 4601C7818AF for <~alpine/devel@lists.alpinelinux.org>; Tue, 11 May 2021 02:38:42 +0000 (UTC) Received: by mail-qt1-f175.google.com with SMTP id p6so13595503qtk.13 for <~alpine/devel@lists.alpinelinux.org>; Mon, 10 May 2021 19:38:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zededa.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=RpaXvt3NQa8dXsmxnLHa6oa4NBytt5/l7TNLnF9oJjE=; b=PhtMAApwrDb5IOzoljBp0+wveDNYYPqQs3aX96TdFfQm1Kc0zOLKQurt2744657cTf gwfTr7NtYd263KLB694kAuPurCWUa8KbPsP359JOGfan5DP4U65TbnaQTlMIOM/QKbyR TyGubNyRQHVPCzbkc+4Ply1PbsZwu0K4k1KCgQrIB419XUSQJ5cBCT98O4pJu/VcXlP2 Q/x/JmfNQLKtUJFGRFcQxY8suutC2NuPEeRRPNDmPEs4HHHfQKxSZ6/s+EiaJhk2xpZa NXsx9PZUD8iExkgzPWivqpJPFau7bL0zR4NgSykpcE1cPQXhygf9tR/mvA9KW9cx2y8L 3f6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=RpaXvt3NQa8dXsmxnLHa6oa4NBytt5/l7TNLnF9oJjE=; b=tNkglhrRSHxWNg9+6Y7knj6138JyemveuOdnwJVBNespSbX4z0ywYPemp1kS/+Oifj pHmSYeWHd67Dv4QFsv182HN6skVxnu+B0sJmlWfN/iKgQgD9fLN2YjNx1jNTtwbarom6 n7/YFH8y1/HT4lckdrMuWDy3ygBmSy7ohkpjXuer/8wwYxb4hhnzHA160RVXBtYKbUHy RH+vh3KzNcUxfrXyARU6H/k/ppqnEhqx4S6LqvL0Q615nPLTn+YihB+L9Xiya/P5CnUo 7+KAoeLvlkura0n/3Ws5rZ/R4nHO1p3U89ikkquAFgsWmv6liE82++SF1+Tdel93QFf4 vc0A== X-Gm-Message-State: AOAM533AX+y67XOkZuoN29LVDPDDsSjz/auYY5fQLXuB5GywiaOMUJJ6 E3QDdyS+xWkyZxRLysNfdWgvplRr3UL8yJEDnaejRimCbtI= X-Google-Smtp-Source: ABdhPJxrp71u84VTgOWqeue4vpekV+jAqAEFcmCcMB1IxpK9/MNq4Lh4MTWn4MjtcUnI/c5lSC3PnrANQkyzoLmBEIY= X-Received: by 2002:ac8:4b44:: with SMTP id e4mr26295643qts.266.1620700721314; Mon, 10 May 2021 19:38:41 -0700 (PDT) MIME-Version: 1.0 References: <58dfb596-223f-8845-bab1-dbf1aad56fa6@dereferenced.org> In-Reply-To: <58dfb596-223f-8845-bab1-dbf1aad56fa6@dereferenced.org> From: Roman Shaposhnik Date: Mon, 10 May 2021 19:38:29 -0700 Message-ID: Subject: Re: Progress on Alpine for RISC-V (and BeagleV) To: Ariadne Conill Cc: ~alpine/devel@lists.alpinelinux.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, May 10, 2021 at 7:06 PM Ariadne Conill w= rote: > > Hi, > > On Mon, 10 May 2021, Roman Shaposhnik wrote: > > > On Sun, May 9, 2021 at 8:35 AM Ariadne Conill wrote: > >> > >> Hello, > >> > >> On Sat, 8 May 2021, Roman Shaposhnik wrote: > >> > >>> Hi! > >>> > >>> A few updates for anyone interested in Alpine bringup on the board: > >>> > >>> I=E2=80=99ve bootstrapped quite a bit of Alpine packages and publishe= d updated > >>> aports here https://github.com/rvs/aports > >>> > >>> A growing collection of packages is now available under > >>> https://eve-alpine-packages.s3.amazonaws.com/edge/{main,community} > >>> > >>> It is enough to generate basic images, so for example, here=E2=80=99s= a minirootfs > >>> published that can be used to bootstrap your own containers > >>> https://eve-alpine-packages.s3.amazonaws.com/edge/images/alpine-min= irootfs-210509-riscv64.tar.gz > >> > >> Very good! > > > > There's also binary install images available now: > > https://eve-alpine-packages.s3.amazonaws.com/edge/images/alpine-risc= v-210511-riscv64.tar.gz > > and > > https://eve-alpine-packages.s3.amazonaws.com/edge/images/alpine-netb= oot-210511-riscv64.tar.gz > > > >>> I still need TONS of help to fix/bootstrap more packages =E2=80=94 an= d for that > >>> I published a builder environment =E2=80=94 so if you (on a latest Do= cker for Mac > >>> or docker + qemu-user-riscv64) do: > >>> $ docker build -t alpine-riscv64 > >>> https://eve-alpine-packages.s3.amazonaws.com/edge/images/Dockerfile > >>> $ docker run -it --rm alpine-riscv64 > >>> builder$ cd aports > >>> You will end up in an environment that I=E2=80=99m using to build all= of these > >>> packages and can help me with: > >>> cd > >>> hack APKBUILD (or not) > >>> abuild -r > >>> > >>> Now, for the most perplexing question of all: it is pretty clear that > >>> it may be a bit overwhelming for a single person (like me) to make > >>> sure that we do ALL of the packages at once to support RISC-V. > >> > >> When we first got mips64 bootstrapped, I just blocked packages on mips > >> that were non-essential that didn't build. > > > > Aha! Quick question: from that experience -- do you remember what were > > the packages that were deemed a MUST for the port? > > > >> Most maintainers want to see > >> their packages be portable across architectures and will work to fix t= hem > >> when they notice arch=3D"all !riscv64" in their APKBUILDs. > > > > For sure! But are you saying that it would be acceptable to first bulk = update > > all the APKBUILD files with arch=3D"all !riscv64" (sans those that actu= ally > > compile just fine)? > > At least with mips, most compiled just fine. I think here it will be less "out of the box" experience (I actually expect a LOT of packages to compile with just tiny tweaks to APKBUILD tho -- but those tweaks add up and I don't think I can do it in one go -- hence this thread). > I only had to block about > 100 packages total. So lets avoid doing that. You can use buildrepo -k > to keep going on build failure. This brings up a good question -- if I spin a beefy box on Packet, what's the easiest way for me to try and build it all? Basically just to see what happens (sorry -- not super familiar with buildrepo -- been mostly using abuild directly). Thanks, Roman.