| 25 Sep 2025 |
dramforever |
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 | i'm not entirely sure what the vendor kernel has | 20:45:18 |
dramforever | but it should have the sbi stuff and hvc_riscv_sbi | 20:45:33 |
outfoxxed | I've seen pxa-uart in dmesg before at least | 20:45:46 |
dramforever | and maybe also earlycon_sbi, but i forgot what that's called | 20:45:46 |
dramforever | yeah but remember "unable to open an initial console"? | 20:46:10 |
dramforever | i think this is why init isn't printing anything before dying | 20:46:22 |
outfoxxed | yeah I've been ignoring those issues and booting with booti + bootargs | 20:46:25 |
outfoxxed | which does work for some reason | 20:46:34 |
dramforever | do you get "unable to open an initial console" with booti+bootargs? | 20:46:50 |
outfoxxed | nope | 20:46:57 |
dramforever | oh, hmm | 20:47:11 |
outfoxxed | I've managed to boot to a full wayland environment at this point | 20:47:12 |
dramforever | ah | 20:47:20 |
dramforever | then i don't see why you think it's a miscompile? | 20:47:42 |
outfoxxed | because if i add v to the isa section we'll ge a panic or pid1 death | 20:48:13 |
outfoxxed | *isa string | 20:48:17 |
outfoxxed | 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 | * 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 | I wanted to sort the gcc flags out while the set of packages I'm compiling to test with is as small as possible | 20:49:31 |
dramforever | oh, yeah, i didn't expect seeing tweaking gcc.arch | 20:51:09 |
outfoxxed | I figured I'd iron that out first because I don't want to fix it later and spend 2 days recompiling the world | 20:51:36 |
outfoxxed | was also trying to pass -misa-spec=2.2 but withCFlags seemed to break php somehow | 20:51:58 |
outfoxxed | a lot of packages need -fPIC as well, which I've been manually overriding for each one at this point | 20:52:30 |
dramforever | do you get "unable to open an initial console" with b? | 20:52:41 |
dramforever | * do you get "unable to open an initial console" with v? | 20:52:54 |
outfoxxed | no its an unrelated issue | 20:53:02 |
outfoxxed | I was only able to make it to the v panic after booting with booti | 20:53:13 |
outfoxxed | extlinux doesn't get to init | 20:53:19 |
dramforever | do you have the full message for the v panic | 20:53:41 |