| 10 Jan 2022 |
woobilicious | mines more of a dependancy issue, says it can't make it included because a depedancy is also module, but doesn't tell me what one. | 05:22:41 |
Zhaofeng Li | Download config | 05:23:43 |
woobilicious | Thanks | 05:24:54 |
woobilicious | I guess I should use nixos-rebuild build-vm? or something to make my init? | 05:33:59 |
woobilicious | I got it booting but it's trying to access my hosts ethernet lol | 05:34:20 |
Zhaofeng Li | In reply to @woobilicious:matrix.org I guess I should use nixos-rebuild build-vm? or something to make my init? You can build a special system config for the VM instead of using your host's. But life's too short to wait for a full distro to boot (even though it's pretty fast) | 05:35:26 |
Zhaofeng Li | Just boot to a busybox prompt, or better, run your experiment script automatically | 05:35:49 |
woobilicious | how do you use busybox? | 05:37:10 |
Zhaofeng Li | Just have your init script launch the busybox sh (or have a minimal init that reaps zombies) | 05:40:28 |
woobilicious | I'm just confused how the kernel can run a script before you have a scirpt interpreter lol | 05:41:41 |
Zhaofeng Li | The init itself can be a shebang script. An example can be found here: https://gist.github.com/zhaofengli/275d1a0de14eceba90fd4e399af34b5c | 05:42:15 |
woobilicious | ahh you're actually building an initrd | 05:45:40 |
Zhaofeng Li | You don't have to, but it does make things easier. This is just a minimal example to test that the riscv64 kernel in nixpkgs works. | 05:47:12 |
woobilicious | I got a hacky version working | 05:59:26 |
woobilicious | busybox with literally nothing working :D | 06:01:14 |
woobilicious | Zhaofeng Li: how do you run a nix script like that? I'm not really use to using much else other than nix-build on packages. | 06:03:14 |
Zhaofeng Li | In reply to @woobilicious:matrix.org Zhaofeng Li: how do you run a nix script like that? I'm not really use to using much else other than nix-build on packages. You nix-build it, then run the resulting script | 06:03:40 |
Zhaofeng Li | It's not a script, but an expression that generates a script for all the required stuff | 06:04:22 |
Zhaofeng Li | * It's not a script, but an expression that generates a script with all the required stuff | 06:04:49 |
woobilicious | Zhaofeng Li: thanks so much: | 06:39:03 |
woobilicious |  Download image.png | 06:39:04 |
Mic92 (Old) | In reply to @woobilicious:matrix.org Zhaofeng Li: thanks so much: we have a nixos wiki for this actually: https://nixos.wiki/wiki/Kernel_Debugging_with_QEMU | 07:05:12 |
Mic92 (Old) | I used it extensively here: https://github.com/Mic92/vmsh/blob/main/justfile | 07:05:53 |
woobilicious | Yeah I didn't really like that setup, especially since it's using debian.
I actually really like your nixos-shell but I couldn't get that to work with custom kernel. | 07:07:10 |
| 11 Jan 2022 |
woobilicious | how do you guys run make etc without patching all the shebangs? | 02:18:52 |
Zhaofeng Li | In reply to @woobilicious:matrix.org how do you guys run make etc without patching all the shebangs? Normal builds don't require any patching | 02:36:59 |
Zhaofeng Li | ... but if you want to use some of the scripts then yes | 02:37:07 |
woobilicious | make fired a bunch of shebang errors with a default build | 02:37:56 |
Zhaofeng Li | Um, no? I just fired off a build on master. What are the errors? | 02:39:27 |
Zhaofeng Li | * Um, no? I just fired off a build on master. What version are you building and what are the errors? | 02:39:44 |