| 25 Sep 2025 |
dramforever | @outfoxxed:outfoxxed.me: https://gist.github.com/cyyself/a07096e6e99c949ed13f8fa16d884402#off-topic-strange-pxa-uart | 20:44:28 |
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 |