!xmLtiCaAJxfhURjrXl:matrix.org

NixOS RISC-V

196 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-v58 Servers

Load older messages


SenderMessageTime
25 Sep 2025
@dramforever:matrix.orgdramforever

A simple work around can be turn on CONFIG_RISCV_SBI_V01, CONFIG_NONPORTABLE and CONFIG_HVC_RISCV_SBI, then use console=hvc0 so we will have a pulling based uart for debugging purpose.

20:44:46
@dramforever:matrix.orgdramforeveri'm not entirely sure what the vendor kernel has20:45:18
@dramforever:matrix.orgdramforeverbut it should have the sbi stuff and hvc_riscv_sbi20:45:33
@outfoxxed:outfoxxed.meoutfoxxedI've seen pxa-uart in dmesg before at least20:45:46
@dramforever:matrix.orgdramforeverand maybe also earlycon_sbi, but i forgot what that's called20:45:46
@dramforever:matrix.orgdramforeveryeah but remember "unable to open an initial console"?20:46:10
@dramforever:matrix.orgdramforeveri think this is why init isn't printing anything before dying20:46:22
@outfoxxed:outfoxxed.meoutfoxxedyeah I've been ignoring those issues and booting with booti + bootargs20:46:25
@outfoxxed:outfoxxed.meoutfoxxedwhich does work for some reason20:46:34
@dramforever:matrix.orgdramforeverdo you get "unable to open an initial console" with booti+bootargs?20:46:50
@outfoxxed:outfoxxed.meoutfoxxednope20:46:57
@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

Show newer messages


Back to Room ListRoom Version: 10