!kyXJonZuBXCGzVwuSn:nixos.org

Systems Programming

299 Members
Kernel, stdenv, low-level hacking, patchelf, … 77 Servers

Load older messages


SenderMessageTime
10 Jan 2022
@woobilicious:matrix.orgwoobiliciousmines 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:zhaofeng.liZhaofeng LiDownload config05:23:43
@woobilicious:matrix.orgwoobiliciousThanks05:24:54
@woobilicious:matrix.orgwoobiliciousI guess I should use nixos-rebuild build-vm? or something to make my init?05:33:59
@woobilicious:matrix.orgwoobiliciousI got it booting but it's trying to access my hosts ethernet lol05:34:20
@zhaofeng:zhaofeng.liZhaofeng 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:zhaofeng.liZhaofeng LiJust boot to a busybox prompt, or better, run your experiment script automatically05:35:49
@woobilicious:matrix.orgwoobilicioushow do you use busybox?05:37:10
@zhaofeng:zhaofeng.liZhaofeng LiJust have your init script launch the busybox sh (or have a minimal init that reaps zombies)05:40:28
@woobilicious:matrix.orgwoobiliciousI'm just confused how the kernel can run a script before you have a scirpt interpreter lol05:41:41
@zhaofeng:zhaofeng.liZhaofeng LiThe init itself can be a shebang script. An example can be found here: https://gist.github.com/zhaofengli/275d1a0de14eceba90fd4e399af34b5c05:42:15
@woobilicious:matrix.orgwoobiliciousahh you're actually building an initrd05:45:40
@zhaofeng:zhaofeng.liZhaofeng LiYou 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:matrix.orgwoobiliciousI got a hacky version working05:59:26
@woobilicious:matrix.orgwoobiliciousbusybox with literally nothing working :D06:01:14
@woobilicious:matrix.orgwoobilicious 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:zhaofeng.liZhaofeng 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:zhaofeng.liZhaofeng LiIt's not a script, but an expression that generates a script for all the required stuff06:04:22
@zhaofeng:zhaofeng.liZhaofeng Li* It's not a script, but an expression that generates a script with all the required stuff06:04:49
@woobilicious:matrix.orgwoobilicious Zhaofeng Li: thanks so much: 06:39:03
@woobilicious:matrix.orgwoobiliciousimage.png
Download image.png
06:39:04
@mic92:nixos.devMic92 (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:nixos.devMic92 (Old)I used it extensively here: https://github.com/Mic92/vmsh/blob/main/justfile07:05:53
@woobilicious:matrix.orgwoobiliciousYeah 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:matrix.orgwoobilicioushow do you guys run make etc without patching all the shebangs?02:18:52
@zhaofeng:zhaofeng.liZhaofeng 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:zhaofeng.liZhaofeng Li... but if you want to use some of the scripts then yes02:37:07
@woobilicious:matrix.orgwoobiliciousmake fired a bunch of shebang errors with a default build02:37:56
@zhaofeng:zhaofeng.liZhaofeng LiUm, no? I just fired off a build on master. What are the errors?02:39:27
@zhaofeng:zhaofeng.liZhaofeng Li * Um, no? I just fired off a build on master. What version are you building and what are the errors?02:39:44

Show newer messages


Back to Room ListRoom Version: 6