Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add asahi to image builder #281

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

add asahi to image builder #281

wants to merge 1 commit into from

Conversation

dkwo
Copy link

@dkwo dkwo commented Sep 16, 2022

Based on void-linux/void-packages#39796 and tested.

xi -S qemu-user-static lz4 xz
doas ./mkrootfs.sh aarch64
doas ./mkplatformfs.sh -r ../void-packages/hostdir/binpkgs/asahi/ asahi void-aarch64-ROOTFS-20220916.tar.xz
doas ./mkimage.sh void-asahi-PLATFORMFS-20220916.tar.xz
doas xz -d void-asahi-20220916.img.xz
doas dd if=void-asahi-20220916.img of=/dev/sda bs=4M status=progress
xbps-rindex -a *.xbps
xbps-install --repository=$PWD pkgname

Boots from an external drive via UEFI, after using the Asahi Linux install script with "UEFI environment only". The rest follows the docs.

@dkwo dkwo marked this pull request as ready for review September 16, 2022 21:04
@Vaelatern
Copy link
Member

I wish I had access to an M1 to test this.

@dkwo
Copy link
Author

dkwo commented Sep 27, 2022

After doing

doas xz -d void-asahi-20220916.img.xz
doas dd if=void-asahi-20220916.img of=/dev/sda bs=4M status=progress

it can boot the void kernel :)

@dkwo dkwo force-pushed the asahi branch 3 times, most recently from 77a6380 to e66d7b3 Compare September 27, 2022 20:42
@dkwo
Copy link
Author

dkwo commented Oct 5, 2022

While support packages are still in PR, is there a simple way to install them by modifying
# XBPS_ARCH=$ARCH xbps-install -S -r /mnt -R "$REPO" base-system
to something like
# XBPS_ARCH=$ARCH xbps-install -S -r /mnt -R "$REPO" base-system -R ??? asahi-base
The booted USB stick has those packages installed, so I'm hoping this is possible. @Duncaen

@classabbyamp
Copy link
Member

yes, use the -r flag of mkplatformfs to point it at hostdir/binpkgs/[branch]

@dkwo
Copy link
Author

dkwo commented Oct 5, 2022

@classabbyamp I've done that (see my fist comment), now I'm trying to install them from the booted image into the chroot. Did I miss something?

@classabbyamp
Copy link
Member

oh, for that you'll need to sign the packages and serve them with an http server probably

@dkwo
Copy link
Author

dkwo commented Oct 7, 2022

This now works in conjunction with void-linux/void-packages#39796

@dkwo
Copy link
Author

dkwo commented Oct 7, 2022

Simple solution for the local repo, as suggested by @Duncaen on reddit in the past:

xbps-rindex -a *.xbps
xbps-install --repository=$PWD pkgname

@ZerdoX-x
Copy link

@dkwo Hi! Thank you for your work. How can I DM you?

@dkwo
Copy link
Author

dkwo commented Oct 17, 2022

@ZerdoX-x I don't use irc much. All I did is documented in this PR, and the two linked ones. You can ask or report here if you encounter any issues.

@ZerdoX-x
Copy link

@ZerdoX-x I don't use irc much. All I did is documented in this PR, and the two linked ones. You can ask or report here if you encounter any issues.

I just wanted to know if it is possible to install void linux on M1. I installed the default Asahi linux and cannot handle it due to systemd, literally bullshit. But I don't have much technical experience manually installing a custom distro on Asahi without clear instructions from anyone who already did this.

@dkwo
Copy link
Author

dkwo commented Oct 17, 2022 via email

@classabbyamp
Copy link
Member

classabbyamp commented May 23, 2024

idk how asahi install process works but i have something for live isos on arm in the works (it isn't ready for testing, please don't go looking for it to try yet)

@dkwo
Copy link
Author

dkwo commented May 23, 2024

Got it. The first step is done from mac os, the rest is written in my first post here.
I.e. the thing you'd flash on the usb /dev/sda is already a live image, just produced locally.

@classabbyamp
Copy link
Member

i mean live iso in the x86 style, with an overlayfs root and such

@slimjimsoftware
Copy link

@dkwo @classabbyamp I've built a rudimentary installer based on the official Asahi installer here: https://gitlab.com/slimjimsoftware/vai - this should allow you install Void from a macOS terminal with curl -L https://tinyurl.com/void-asahi | sh - If anyone wants to try it then feedback would be appreciated.

@dkwo
Copy link
Author

dkwo commented May 29, 2024

Great! In the past @ZerdoX-x was asking for a simple way to install, maybe this can help.

@ZerdoX-x
Copy link

ZerdoX-x commented Jun 6, 2024

Great! In the past @ZerdoX-x was asking for a simple way to install, maybe this can help.

Yep, thank you. I've subscribed to this PR long time ago and waiting for updates :)

BTW I've moved to gentoo and compile all stuff locally. Don't think void can be a daily runner for M1 due to lack of binary packages for aarch64. Same for arch and all binary based PM

@classabbyamp
Copy link
Member

Don't think void can be a daily runner for M1 due to lack of binary packages for aarch64

what do you mean? void builds binary packages for aarch64...

@ZerdoX-x
Copy link

ZerdoX-x commented Jun 6, 2024

void builds binary packages for aarch64...

oof. my bad! then i can consider this a good alternative for me. i'll keep an eye on void then ;)
sorry for the confusion!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants