#
✕ nick:tpw_rules
#asahi · 2022-01-31 01:37
tpw_rulescatphish: have you compiled your own kernel before?
#asahi · 2022-01-30 14:23
tpw_rulesi think arch linux arm has libunwind 1.6, does it give you problems jannau?
#asahi · 2022-01-30 14:22
tpw_rulessven: for the record i still had the 4k patch applied when doing 16k tests, it just had a 16k kernel configured.
#asahi · 2022-01-30 05:27
tpw_rulesso it seems it's faster the first test after a reboot but otherwise it settles down to that 25% number with every subsequent test
#asahi · 2022-01-30 03:59
tpw_rulesa combined and slightly tweaked version of sven's 4k iommu patches: https://github.com/tpwrules/nixos-m1/blob/main/nix/kernel/sven-iommu-4k.patch
#asahi · 2022-01-30 03:41
tpw_rulesi think webkitgtk might also be broken. and of course chromium, but i don't use it
#asahi · 2022-01-30 03:40
tpw_ruleshttps://github.com/mongodb-forks/libunwind/commit/8e357e280cf5b2bd76520c5b8a96b8d8599986f8 someone already made a patch for it but applying it causes very mass rebuilds which i can't be bothered with
#asahi · 2022-01-30 03:39
tpw_ruleslibunwind 1.6 causes x to crash
#asahi · 2022-01-30 03:39
tpw_rulesregardless i think i'm going to switch nixos over to 4k just so i can avoid all the 16k breakage
#asahi · 2022-01-30 03:37
tpw_rulesdoes the linux scheduler know the difference between the power and efficiency cores? maybe one of them is worse at 4K pages
#asahi · 2022-01-30 03:36
tpw_rulesthere was one time it was only 10% slower, but i can't really explain why
#asahi · 2022-01-30 03:36
tpw_rulesso i don't proclaim to have the best experimental setup, but i did put in some reasonable effort, and found that compiling an arbitrary linux kernel in a ramdisk is about 25% slower with 4K pages as opposed to 16K (1539 vs 1218 seconds)
#asahi · 2022-01-29 21:47
tpw_rulesGlanzmann: i don't see a 4k kernel script in your git?
#asahi · 2022-01-29 21:38
tpw_rulessven's series?
#asahi · 2022-01-29 21:35
tpw_rulesi think so. what patches?
#asahi · 2022-01-29 21:34
tpw_rulesGlanzmann: does pcie work on it?
#asahi · 2022-01-29 20:55
tpw_rulesyes but diskutil isn't dd
#asahi · 2022-01-29 20:54
tpw_rulesit's not
#asahi · 2022-01-29 20:53
tpw_rulesthe M has to be lower case for macos dd and uppercase for linux dd. no idea why
#asahi · 2022-01-29 20:53
tpw_rulesi'm saying you can't do 8m on linux
#asahi · 2022-01-29 20:53
tpw_rulesbut not linux
#asahi · 2022-01-29 20:53
tpw_rulesGlanzmann: you can use "8m" with dd on macos
#asahi · 2022-01-29 05:22
tpw_rulesand once that is done, you can do whatever linux setup you like. i recommend my nixos tutorial: https://github.com/tpwrules/nixos-m1/blob/main/docs/uefi-standalone.md
#asahi · 2022-01-29 05:20
tpw_rulesto make the linux stub partition. then run the asahi install script and follow the directions
#asahi · 2022-01-29 05:20
tpw_rulesokay. now you can run: diskutil addPartition disk0s2 apfs Linux 4G
#asahi · 2022-01-29 05:14
tpw_rulesabbas_faiz[m]: that's just for the wifi. the main installer is: curl -L https://mrcn.st/alxsh | sh and that repo is here: https://github.com/AsahiLinux/asahi-installer
#asahi · 2022-01-29 05:00
tpw_rulesyes, you can put everything on the internal storage
#asahi · 2022-01-29 05:00
tpw_rulesthat should create a /tmp/linux-firmware.tar which you'll need to copy to your linux system
#asahi · 2022-01-29 04:59
tpw_rulesokay, while that's going you'll need to extract the wifi firmware in another terminal by running this command: curl -sL tg.st/u/fwx.sh | sh
#asahi · 2022-01-29 04:57
tpw_rulesdid that work?
#asahi · 2022-01-29 04:48
tpw_rulesthen you can do `diskutil apfs resizeContainer disk0s2 500GB` if you want the container to be 500GB and the rest to be for linux.
#asahi · 2022-01-29 04:48
tpw_rulesiirc disk0s2 is the main one, it should be the biggest
#asahi · 2022-01-29 04:48
tpw_rules`diskutil list /dev/disk0` should give you the list of partitions on the nvme
#asahi · 2022-01-29 04:47
tpw_rulesokay
#asahi · 2022-01-29 04:46
tpw_ruleshave you used diskutil before?
#asahi · 2022-01-29 04:46
tpw_rulesyou'll first have to shrink the APFS partition to make space for linux. 20GB should be enough for a complete system
#asahi · 2022-01-29 04:45
tpw_rulesokay cool.
#asahi · 2022-01-29 04:45
tpw_rules12.1?
#asahi · 2022-01-29 04:44
tpw_ruleswhich version
#asahi · 2022-01-29 04:44
tpw_rulesthe macbook
#asahi · 2022-01-29 04:44
tpw_ruleswhat OS do you have on it currently?
#asahi · 2022-01-29 04:40
tpw_rulesit's possible to do a non-tethered boot on those if you are interested. do you have access to another linux machine with either an aarch64 or x86_64 cpu?
#asahi · 2022-01-29 04:37
tpw_ruleswhat system do you have? have you done anything on it before or does it only have macos now?
#asahi · 2022-01-28 00:45
tpw_rulesyeah but it doesn't work if you've installed git some other way
#asahi · 2022-01-28 00:44
tpw_rulesif you need the command line tools
#asahi · 2022-01-28 00:44
tpw_rulesxcode-select --install is the official way
#asahi · 2022-01-28 00:44
tpw_ruleswhy do you need those?
#asahi · 2022-01-28 00:42
tpw_ruleswhy did you install xcode?
#asahi · 2022-01-27 15:07
tpw_rulesand you might have to suffer a bit of an old nixpkgs :)
#asahi · 2022-01-27 15:07
tpw_rulesbut everything will work fine and only take 10 minutes if you do it yourself now (and have a sufficiently fast computer). i'm just waiting to start publishing pre-built stuff

plus ›