!xmLtiCaAJxfhURjrXl:matrix.org

NixOS RISC-V

207 Members
NixOS on RISC-V https://wiki.nixos.org/wiki/RISC-V https://pad.lassul.us/NixOS-riscv64-linux https://github.com/orgs/NixOS/teams/risc-v64 Servers

Load older messages


SenderMessageTime
25 Sep 2025
@dramforever:matrix.orgdramforeveroh, hmm20:47:11
@outfoxxed:outfoxxed.meoutfoxxedI've managed to boot to a full wayland environment at this point20:47:12
@dramforever:matrix.orgdramforeverah20:47:20
@dramforever:matrix.orgdramforeverthen i don't see why you think it's a miscompile?20:47:42
@outfoxxed:outfoxxed.meoutfoxxed because if i add v to the isa section we'll ge a panic or pid1 death 20:48:13
@outfoxxed:outfoxxed.meoutfoxxed*isa string20:48:17
@outfoxxed:outfoxxed.meoutfoxxed

Currently I have this set in nixpkgs config

    gcc.arch = "rv64imafdcv_zicbom_zicbop_zicboz_zicntr_zicond_zicsr_zifencei_zihintpause_zihpm_zfh_zfhmin_zkt_zba_zbb_zbc_zbs_zbkc_zvfh_zvfhmin_zvkt";
    #gcc.arch = "rv64imafdc_zicbom_zicbop_zicboz_zicntr_zicond_zicsr_zifencei_zihintpause_zihpm_zfh_zfhmin_zkt_zba_zbb_zbc_zbs_zbkc";

20:48:41
@outfoxxed:outfoxxed.meoutfoxxed *

Currently I have this set in nixpkgs config

    #gcc.arch = "rv64imafdcv_zicbom_zicbop_zicboz_zicntr_zicond_zicsr_zifencei_zihintpause_zihpm_zfh_zfhmin_zkt_zba_zbb_zbc_zbs_zbkc_zvfh_zvfhmin_zvkt";
    gcc.arch = "rv64imafdc_zicbom_zicbop_zicboz_zicntr_zicond_zicsr_zifencei_zihintpause_zihpm_zfh_zfhmin_zkt_zba_zbb_zbc_zbs_zbkc";

20:48:55
@outfoxxed:outfoxxed.meoutfoxxedI wanted to sort the gcc flags out while the set of packages I'm compiling to test with is as small as possible20:49:31
@dramforever:matrix.orgdramforeveroh, yeah, i didn't expect seeing tweaking gcc.arch20:51:09
@outfoxxed:outfoxxed.meoutfoxxedI figured I'd iron that out first because I don't want to fix it later and spend 2 days recompiling the world20:51:36
@outfoxxed:outfoxxed.meoutfoxxedwas also trying to pass -misa-spec=2.2 but withCFlags seemed to break php somehow20:51:58
@outfoxxed:outfoxxed.meoutfoxxeda lot of packages need -fPIC as well, which I've been manually overriding for each one at this point20:52:30
@dramforever:matrix.orgdramforeverdo you get "unable to open an initial console" with b?20:52:41
@dramforever:matrix.orgdramforever* do you get "unable to open an initial console" with v?20:52:54
@outfoxxed:outfoxxed.meoutfoxxedno its an unrelated issue20:53:02
@outfoxxed:outfoxxed.meoutfoxxedI was only able to make it to the v panic after booting with booti20:53:13
@outfoxxed:outfoxxed.meoutfoxxedextlinux doesn't get to init20:53:19
@dramforever:matrix.orgdramforeverdo you have the full message for the v panic20:53:41
@dramforever:matrix.orgdramforeveri would like to see it20:54:00
@outfoxxed:outfoxxed.meoutfoxxednot on hand, I'd have to rebuild the world for it, but I can find it again20:54:15
@outfoxxed:outfoxxed.meoutfoxxedwait i might have a pic of it from another chat20:54:46
@dramforever:matrix.orgdramforeveryeah, it would help a lot to have more information than "panic or pid1 death"20:54:58
@outfoxxed:outfoxxed.meoutfoxxedfound it, it was pid120:57:09
@outfoxxed:outfoxxed.meoutfoxxed
[   13.859715] systemd[1]: Setting '/proc/sys/kernel/printk_devkmsg' to 'on'
[   13.867024] systemd[1]: Smack is not enabled in the kernel.
[   13.874607] systemd[1]: The early AppArmor policy cache directory /etc/apparmor/earlypolicy/8529f5a4.0 does not exist.
[   13.885519] systemd[1]: No IMA custom policy file /etc/ima/ima-policy, ignoring: No such file or directory
[   13.895299] systemd[1]: IPE support is disabled in the kernel, ignoring: No such file or directory
[   13.947164] systemd[1]: System time advanced to built-in epoch: Thu 2024-12-19 13:27:50 PST
[   13.965972] systemd[1]: Loaded 'libkmod.so.2' via dlopen()
[   13.985977] systemd[1]: Loading module: autofs4
[   13.990633] do_trap: 123 callbacks suppressed
[   13.990643] systemd[1]: unhandled signal 7 code 0x1 at 0x0000003f8144c406 in libkmod.so.2.4.1[3f81445000+15000]
[   14.005191] CPU: 3 PID: 1 Comm: systemd Not tainted 6.6.63 #1-NixOS
[   14.011514] Hardware name: Milk-V(M1) Jupiter (DT)
[   14.016340] epc : 0000003f8144c406 ra : 0000003f8144d420 sp : 0000003ffe8a83c0
[   14.023613]  gp : 0000002ae5da6800 tp : 0000003f8145cbc0 t0 : 0000000000000000
[   14.030874]  t1 : 0000003f814486dc t2 : 0000000000000000 s0 : 0000003ffe8a8620
[   14.038154]  s1 : 0000003f81342fba a0 : 000000000000004f a1 : 0000000000000020
[   14.045435]  a2 : 0000003f81342fba a3 : 0000000000000045 a4 : 0000003ffe8a83d0
[   14.052705]  a5 : 0000000000000008 a6 : 0000000000000044 a7 : 0000000000000000
[   14.059995]  s2 : 0000000000000004 s3 : 0000000020012fb8 s4 : 0000002ae5dba340
[   14.067275]  s5 : 0000000000000045 s6 : 0000002ae5dbb2d0 s7 : 0000003f814558a8
[   14.074545]  s8 : 0000003ffe8a9850 s9 : 0000003ffe8a9890 s10: 0000003ffe8a98a0
[   14.081825]  s11: 0000003f81ed4ca8 t3 : 0000003f81af8830 t4 : 0000000000000000
[   14.089094]  t5 : 0000000000000000 t6 : 0000000000000000
[   14.094450] status: 8000000200004620 badaddr: 0000003f81342fba cause: 0000000000000004
[   14.102956] Core dump to |/bin/false pipe failed
[   14.107666] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000007
[   14.115379] CPU: 3 PID: 1 Comm: systemd Not tainted 6.6.63 #1-NixOS
[   14.121690] Hardware name: Milk-V(M1) Jupiter (DT)
[   14.126525] Call Trace:
[   14.128966] [<ffffffff80006820>] dump_backtrace+0x1c/0x24
[   14.134430] [<ffffffff80fd721e>] show_stack+0x2c/0x38
[   14.139517] [<ffffffff80ff457a>] dump_stack_lvl+0x3c/0x54
[   14.144960] [<ffffffff80ff45a6>] dump_stack+0x14/0x1c
[   14.150054] [<ffffffff80fd745c>] panic+0x100/0x2a0
[   14.154881] [<ffffffff80021caa>] do_exit+0x7be/0x7c4
[   14.159907] [<ffffffff80021e22>] do_group_exit+0x24/0x70
[   14.165257] [<ffffffff8002e62e>] get_signal+0x72a/0x7d4
[   14.170527] [<ffffffff80004ec8>] arch_do_signal_or_restart+0x2c/0x598
[   14.177032] [<ffffffff8009af12>] exit_to_user_mode_prepare+0xfa/0x158
[   14.183530] [<ffffffff80ff53fa>] irqentry_exit_to_user_mode+0x10/0x18
[   14.190037] [<ffffffff80ff4b78>] do_trap_load_misaligned+0x2c/0xee
[   14.196286] [<ffffffff80ffe936>] ret_from_exception+0x0/0x6e
[   14.201990] SMP: stopping secondary CPUs
[   14.205953] ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000007 ]---

20:57:13
@elvishjerricco:matrix.orgElvishJerricco joined the room.20:58:25
@outfoxxed:outfoxxed.meoutfoxxedlibkmod ig20:58:26
@dramforever:matrix.orgdramforeverthank you that's helpful20:59:09
@rosscomputerguy:matrix.orgTristan RossOh yay, my DC ROMA is shipping soon20:59:18
@rosscomputerguy:matrix.orgTristan RossIt's the DeepComputing + Framework laptop with 8 cores20:59:43

Show newer messages


Back to Room ListRoom Version: 10