!pbdtvoHxUGLhcEvnlu:nixos.org

Exotic Nix Targets

110 Members
50 Servers

Load older messages


SenderMessageTime
1 Aug 2022
@qyliss:fairydust.spaceAlyssa Rossand it'll just skip the menu10:19:36
@dramforever:matrix.orgdramforeverHmmm... will try that after I get EFI boot working10:20:32
@dramforever:matrix.orgdramforever
config EFI_GENERIC_STUB_INITRD_CMDLINE_LOADER
	bool "Enable the command line initrd loader" if !X86
	depends on EFI_STUB && (EFI_GENERIC_STUB || X86)
	default y if X86
	depends on !RISCV
10:47:53
@dramforever:matrix.orgdramforeverwhy10:47:54
@dramforever:matrix.orgdramforever

time to find the non-deprecated initrd loading mechanism

	help
	  Select this config option to add support for the initrd= command
	  line parameter, allowing an initrd that resides on the same volume
	  as the kernel image to be loaded into memory.

	  This method is deprecated.
11:01:53
@dramforever:matrix.orgdramforever It's called LINUX_EFI_INITRD_MEDIA_GUID and I have no idea how it's supposed to work 11:15:50
@dramforever:matrix.orgdramforeverSo short answer is no https://github.com/systemd/systemd/pull/20918#issuecomment-94378071911:19:19
@andreas.schraegle:helsinki-systems.deAndreas Schrägle joined the room.14:03:45
@andreas.schraegle:helsinki-systems.deAndreas Schrägle is this the right channel to ask for help with pkgsStatic things? 14:04:14
@j-k:matrix.orgj-k I've asked in #cross-compiling:nixos.org before but this channel might be fine too 14:33:17
@andreas.schraegle:helsinki-systems.deAndreas Schrägle right. I think I managed to figure it out and make pkgsStatic.openssl_3 build on my own. 15:46:48
@andreas.schraegle:helsinki-systems.deAndreas Schräglewill push to https://github.com/NixOS/nixpkgs/pull/150093 soon, if anyone needs it before that is merged and done, feel free to cherry-pick from there15:49:15
2 Aug 2022
@matthewcroughan:defenestrate.itmatthewcroughan - nix.how colemickens: I've upstreamed a few things, but it's going to be a while I think before we can put visionfive-nix on unstable 14:27:53
@matthewcroughan:defenestrate.itmatthewcroughan - nix.how * colemickens: I've upstreamed a few things, but it's going to be a while I think before we can put visionfive-nix on mainline unstable 14:28:00
@colemickens:matrix.orgcolemickensCool. I've got a hacked up thinking working, I'm really close to having it netboot like my pis too, just need to do some uboot patches, it appears. I hope to get back to it before the weekend, but I'm off in Vancouver for a quick day and a half.20:52:48
@Minijackson:matrix.orgMinijackson colemickens: you might be interested in https://github.com/NixOS/nixpkgs/pull/182853 if you stumbled into the same problem as me 21:02:26
@colemickens:matrix.orgcolemickensI'm just using the systemd stage1 stuff so it hasn't been ab issue for me21:57:40
4 Aug 2022
@ar:is-a.catar joined the room.14:18:39
6 Aug 2022
@ius:nltrix.netius dramforever: What u-boot version are you using? 14:25:50
@ius:nltrix.netius You need to use the systemd-stub to load the initrd, but then you also need this bugfix otherwise it fails to load initrd https://github.com/u-boot/u-boot/commit/66028930dac08f7116b5e3cdba35c3e65676c0cd 14:28:15
@dramforever:matrix.orgdramforever
In reply to @ius:nltrix.net
You need to use the systemd-stub to load the initrd, but then you also need this bugfix otherwise it fails to load initrd https://github.com/u-boot/u-boot/commit/66028930dac08f7116b5e3cdba35c3e65676c0cd
I'm using NickCao's u-boot fork of starfive's u-boot fork, which adds support for distroboot (so no more weird uEnv.txt)
https://github.com/NickCao/u-boot-starfive
16:39:22
@dramforever:matrix.orgdramforever
In reply to @ius:nltrix.net
You need to use the systemd-stub to load the initrd, but then you also need this bugfix otherwise it fails to load initrd https://github.com/u-boot/u-boot/commit/66028930dac08f7116b5e3cdba35c3e65676c0cd
do you happen to know how to make nixos generate images with systemd-stub? this is the bit i'm missing
16:39:48
@ius:nltrix.netiusIt's not integrated yet (as you've figured), but I generated them manually when I was experimenting with RiscV/EFI16:41:17
@ius:nltrix.netius
objcopy \
    --add-section .osrel=os-release --change-section-vma .osrel=0x20000 \
    --add-section .cmdline=cmdline.txt --change-section-vma .cmdline=0x30000 \
    --add-section .linux=vmlinux --change-section-vma .linux=0x2000000 \
    --add-section .initrd=initrd --change-section-vma .initrd=0x3000000 \
    linuxriscv64.efi.stub_p \
    kernel.efi
16:41:24
@ius:nltrix.netiusThe annoying part being that every time initrd changes, you'd need to rebuild a fat stub+kernel+initrd image. Even when integrated into NixOS, that feels like it might be a waste of space on your boot partition..16:44:26
@dramforever:matrix.orgdramforeverThat's encouraging16:45:38
@dramforever:matrix.orgdramforeverReally though, I don't care about EFI boot that much, more like just want to know it works.16:46:13
@dramforever:matrix.orgdramforever

These are the things I end up doing to get grub and systemd-boot to build, and also to get the systemd-boot installer to run, and I decided to submit these three tiny PRs

  • https://github.com/NixOS/nixpkgs/pull/184521
  • https://github.com/NixOS/nixpkgs/pull/184526
  • https://github.com/NixOS/nixpkgs/pull/184547
    So far I think the next steps would be like
  • Fix perl cross enough so the grub installer builds and runs
  • Get systemd-boot to load initrds properly
  • Add systemd-stub support to NixOS (As you've just suggested!)

What do you think?

16:51:42
@dramforever:matrix.orgdramforever *

These are the things I end up doing to get grub and systemd-boot to build, and also to get the systemd-boot installer to run, and I decided to submit these three tiny PRs

  • https://github.com/NixOS/nixpkgs/pull/184521
  • https://github.com/NixOS/nixpkgs/pull/184526
  • https://github.com/NixOS/nixpkgs/pull/184547

So far I think the next steps would be like

  • Fix perl cross enough so the grub installer builds and runs
  • Get systemd-boot to load initrds properly
  • Add systemd-stub support to NixOS (As you've just suggested!)

What do you think?

16:51:47
8 Aug 2022
@ar:hackerspace.plar left the room.07:21:14

There are no newer messages yet.


Back to Room ListRoom Version: 6