Booting with grub

I have made a bootable image for Starlight development board
https://fedora.starfivetech.com/pub/downloads/BeagleV-release/Fedora-riscv64-developer-xfce-with-esp-Rawhide-20210825.n.0-sda.raw.zst

Yes, I rebased the code to the master branch. so the version number is the latest
2.11

I’m using @tekkamanninja 's branch of GRUB2 built using the instructions via Fedor’a wiki [Architectures/RISC-V/GRUB2 - Fedora Project Wiki], but I am unable to get any kernel to boot. I’m guessing this is a device tree problem, but I’m unsure. Here’s the GRUB commands I’m using for a debian kernel:

setparams 'Debian-Bootstrap'
  linux (hd0,gpt9)/boot/vmlinux-5.10.0-8-riscv64  root=UUID=b69dcf43-7fb5-4599-b874-9227be6ac02d console=ttySIF0,115200 earlycon
  initrd (hd0,gpt9)/boot/initrd.img-5.10.0-8-riscv64
  devicetree (hd1,gpt3)/hifive-unmatched-a00.dtb

This uses the kernel and initramfs from Debian via my NVMe drive and the DTB from the default install on the MicroSD card. Here is the kernel output:

EFI stub: Booting Linux Kernel...ive-unmatched-a00  10.28KiB  100%  6.92B/s ] EFI stub: Using DTB from configuration table                                  
EFI stub: Loaded initrd from LINUX_EFI_INITRD_MEDIA_GUID device path          EFI stub: Exiting boot services and installing virtual address map...         [    0.000000] Linux version 5.10.0-8-riscv64 (debian-kernel@lists.debian.org) (gcc-10 (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2) #1 SMP Debian 5.10.46-4 (2021-08-03)                                   
[    0.000000] OF: fdt: Ignoring memory range 0x80000000 - 0x80200000
[    0.000000] earlycon: sifive0 at MMIO 0x0000000010010000 (options '')
[    0.000000] printk: bootconsole [sifive0] enabled                          
[    0.000000] efi: EFI v2.80 by Das U-Boot                                   
[    0.000000] efi: RTPROP=0xfe714040 SMBIOS=0xfe710000 MEMRESERVE=0xdc6fc040 
[    0.000000] secureboot: Secure boot disabled                              
[    0.000000] OF: fdt: Ignoring memory block 0x80000000 - 0x80040000         
[    0.000000] OF: fdt: Ignoring memory range 0x80040000 - 0x80200000         
[    0.000000] Initial ramdisk at: 0x(____ptrval____) (62636032 bytes)        
[    0.000000] Zone ranges:                                                   
[    0.000000]   DMA32    [mem 0x0000000080200000-0x00000000ffffffff]         
[    0.000000]   Normal   [mem 0x0000000100000000-0x000000047fffffff]         
[    0.000000] Movable zone start for each node                               
[    0.000000] Early memory node ranges                                       
[    0.000000]   node   0: [mem 0x0000000080200000-0x00000000dd8bdfff]        
[    0.000000]   node   0: [mem 0x00000000dd8be000-0x00000000dd8befff]        
[    0.000000]   node   0: [mem 0x00000000dd8bf000-0x00000000fe299fff]        
[    0.000000]   node   0: [mem 0x00000000fe29a000-0x00000000fe29afff]        
[    0.000000]   node   0: [mem 0x00000000fe29b000-0x00000000fe70afff]        
[    0.000000]   node   0: [mem 0x00000000fe70b000-0x00000000fe70efff]        
[    0.000000]   node   0: [mem 0x00000000fe70f000-0x00000000fe70ffff]        
[    0.000000]   node   0: [mem 0x00000000fe710000-0x00000000fe710fff]        
[    0.000000]   node   0: [mem 0x00000000fe711000-0x00000000fe712fff]        
[    0.000000]   node   0: [mem 0x00000000fe713000-0x00000000fe716fff]        
[    0.000000]   node   0: [mem 0x00000000fe717000-0x00000000fe717fff]        
[    0.000000]   node   0: [mem 0x00000000fe718000-0x00000000fe71cfff]        
[    0.000000]   node   0: [mem 0x00000000fe71d000-0x00000000fe71dfff]        
[    0.000000]   node   0: [mem 0x00000000fe71e000-0x00000000fe71efff]        
[    0.000000]   node   0: [mem 0x00000000fe71f000-0x00000000fe71ffff]        
[    0.000000]   node   0: [mem 0x00000000fe720000-0x00000000fe720fff]        
[    0.000000]   node   0: [mem 0x00000000fe721000-0x00000000fe721fff]        
[    0.000000]   node   0: [mem 0x00000000fe722000-0x00000000fe722fff]        
[    0.000000]   node   0: [mem 0x00000000fe723000-0x00000000fe723fff]        
[    0.000000]   node   0: [mem 0x00000000fe724000-0x00000000fe724fff]        
[    0.000000]   node   0: [mem 0x00000000fe725000-0x00000000fe725fff]        
[    0.000000]   node   0: [mem 0x00000000fe726000-0x00000000fe726fff]        
[    0.000000]   node   0: [mem 0x00000000fe727000-0x00000000fe727fff]        
[    0.000000]   node   0: [mem 0x00000000fe728000-0x00000000fe728fff]        
[    0.000000]   node   0: [mem 0x00000000fe729000-0x00000000fe729fff]        
[    0.000000]   node   0: [mem 0x00000000fe72a000-0x00000000fe72afff]        
[    0.000000]   node   0: [mem 0x00000000fe72b000-0x00000000fe72bfff]        
[    0.000000]   node   0: [mem 0x00000000fe72c000-0x00000000fe72cfff]        
[    0.000000]   node   0: [mem 0x00000000fe72d000-0x00000000fe72efff]        
[    0.000000]   node   0: [mem 0x00000000fe72f000-0x00000000fe730fff]        
[    0.000000]   node   0: [mem 0x00000000fe731000-0x00000000fe731fff]
[    0.000000]   node   0: [mem 0x00000000fe732000-0x00000000fe732fff]        
[    0.000000]   node   0: [mem 0x00000000fe733000-0x00000000fe733fff]        
[    0.000000]   node   0: [mem 0x00000000fe734000-0x00000000fe734fff]        
[    0.000000]   node   0: [mem 0x00000000fe735000-0x00000000fe735fff]        
[    0.000000]   node   0: [mem 0x00000000fe736000-0x00000000fe736fff]        
[    0.000000]   node   0: [mem 0x00000000fe737000-0x00000000fe738fff]        
[    0.000000]   node   0: [mem 0x00000000fe739000-0x00000000fe739fff]        
[    0.000000]   node   0: [mem 0x00000000fe73a000-0x00000000fe73afff]        
[    0.000000]   node   0: [mem 0x00000000fe73b000-0x00000000fe73cfff]        
[    0.000000]   node   0: [mem 0x00000000fe73d000-0x00000000fe73dfff]        
[    0.000000]   node   0: [mem 0x00000000fe73e000-0x00000000fe73efff]        
[    0.000000]   node   0: [mem 0x00000000fe73f000-0x00000000fff65fff]        
[    0.000000]   node   0: [mem 0x00000000fff66000-0x00000000fff66fff]        
[    0.000000]   node   0: [mem 0x00000000fff67000-0x000000047fffffff]        
[    0.000000] Initmem setup node 0 [mem 0x0000000080200000-0x000000047fffffff]
[    0.000000] software IO TLB: mapped [mem 0x00000000fa29a000-0x00000000fe29a000] (64MB)
[    0.000000] SBI specification v0.2 detected                                
[    0.000000] SBI implementation ID=0x1 Version=0x9                          
[    0.000000] SBI v0.2 TIME extension detected                               
[    0.000000] SBI v0.2 IPI extension detected                                
[    0.000000] SBI v0.2 RFENCE extension detected                             
[    0.000000] SBI v0.2 HSM extension detected                                
[    0.000000] CPU with hartid=0 is not available                             
[    0.000000] CPU with hartid=0 is not available
[    0.000000] riscv: ISA extensions acdfim                                   
[    0.000000] riscv: ELF capabilities acdfim                                 
[    0.000000] percpu: Embedded 26 pages/cpu s68952 r8192 d29352 u106496      
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 4128264 
[    0.000000] Kernel command line: BOOT_IMAGE=(hd0,gpt9)/boot/vmlinux-5.10.0-8-riscv64 root=UUID=b69dcf43-7fb5-4599-b874-9227be6ac02d console=ttySIF0,115200 earlycon
[    0.000000] Dentry cache hash table entries: 2097152 (order: 12, 16777216 bytes, linear)
[    0.000000] Inode-cache hash table entries: 1048576 (order: 11, 8388608 bytes, linear)
[    0.000000] Sorting __ex_table...                                          
[    0.000000] mem auto-init: stack:off, heap alloc:on, heap free:off         
[    0.000000] Memory: 16309696K/16775168K available (6866K kernel code, 4399K rwdata, 4096K rodata, 299K init, 477K bss, 465472K reserved, 0K cma-reserved)
[    0.000000] random: get_random_u64 called from __kmem_cache_create+0x3e/0x43e with crng_init=0
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1     
[    0.000000] ftrace: allocating 25538 entries in 100 pages                  
[    0.000000] ftrace: allocated 100 pages with 3 groups                      
[    0.000000] rcu: Hierarchical RCU implementation.                          
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=4.  
[    0.000000]  Rude variant of Tasks RCU enabled.                            
[    0.000000]  Tracing variant of Tasks RCU enabled.                         
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4   
[    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0                 
[    0.000000] CPU with hartid=0 is not available                             
[    0.000000] riscv-intc: unable to find hart id for /cpus/cpu@0/interrupt-controller
[    0.000000] riscv-intc: 64 local interrupts mapped                         
[    0.000000] plic: interrupt-controller@c000000: mapped 69 interrupts with 4 handlers for 9 contexts.
[    0.000000] riscv_timer_init_dt: Registering clocksource cpuid [0] hartid [2]
[    0.000000] clocksource: riscv_clocksource: mask: 0xffffffffffffffff max_cycles: 0x1d854df40, max_idle_ns: 3526361616960 ns
[    0.000008] sched_clock: 64 bits at 1000kHz, resolution 1000ns, wraps every 2199023255500ns
[    0.008546] Console: colour dummy device 80x25                             
[    0.012868] Calibrating delay loop (skipped), value calculated using timer frequency.. 2.00 BogoMIPS (lpj=4000)
[    0.022855] pid_max: default: 32768 minimum: 301                           
[    0.027608] LSM: Security Framework initializing                           
[    0.032115] Yama: disabled by default; enable with sysctl kernel.yama.*    
[    0.038903] AppArmor: AppArmor initialized                                 
[    0.042753] TOMOYO Linux initialized                                       
[    0.047285] Mount-cache hash table entries: 32768 (order: 6, 262144 bytes, linear)
[    0.054943] Mountpoint-cache hash table entries: 32768 (order: 6, 262144 bytes, linear)
[    0.066014] rcu: Hierarchical SRCU implementation.                         
[    0.070993] Remapping and enabling EFI services.                           
[    0.075638] smp: Bringing up secondary CPUs ...                            
[    0.083226] smp: Brought up 1 node, 4 CPUs                                 
[    0.092099] devtmpfs: initialized                                          
[    0.098228] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.107418] futex hash table entries: 1024 (order: 4, 65536 bytes, linear) 
[    0.115110] NET: Registered protocol family 16                             
[    0.119094] audit: initializing netlink subsys (disabled)                  
[    0.124503] audit: type=2000 audit(0.076:1): state=initialized audit_enabled=0 res=1
[    0.124937] thermal_sys: Registered thermal governor 'fair_share'          
[    0.131907] thermal_sys: Registered thermal governor 'bang_bang'           
[    0.137977] thermal_sys: Registered thermal governor 'step_wise'           
[    0.143967] thermal_sys: Registered thermal governor 'user_space'          
[    0.162266] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages   
[    0.768089] iommu: Default domain type: Translated                         
[    0.772568] vgaarb: loaded                                                 
[    0.775526] Registered efivars operations                                  
[    0.780170] NetLabel: Initializing                                         
[    0.782789] NetLabel:  domain hash size = 128                              
[    0.787164] NetLabel:  protocols = UNLABELED CIPSOv4 CALIPSO               
[    0.792906] NetLabel:  unlabeled traffic allowed by default                
[    0.798456] clocksource: Switched to clocksource riscv_clocksource         
[    0.881677] VFS: Disk quotas dquot_6.6.0                                   
[    0.884975] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes) 
[    0.892891] AppArmor: AppArmor Filesystem Enabled                          
[    0.908735] NET: Registered protocol family 2                              
[    0.919769] IP idents hash table entries: 262144 (order: 9, 2097152 bytes, linear)
[    0.944627] tcp_listen_portaddr_hash hash table entries: 8192 (order: 5, 131072 bytes, linear)
[    0.956502] TCP established hash table entries: 131072 (order: 8, 1048576 bytes, linear)
[    0.969721] TCP bind hash table entries: 65536 (order: 8, 1048576 bytes, linear)
[    0.978362] TCP: Hash tables configured (established 131072 bind 65536)    
[    0.986185] UDP hash table entries: 8192 (order: 6, 262144 bytes, linear)  
[    0.993539] UDP-Lite hash table entries: 8192 (order: 6, 262144 bytes, linear)
[    1.000912] NET: Registered protocol family 1                              
[    1.004540] NET: Registered protocol family 44                             
[    1.008942] PCI: CLS 0 bytes, default 64                                   
[    1.013536] Trying to unpack rootfs image as initramfs...                  
[    6.636228] Freeing initrd memory: 61164K                                  
[    6.641009] Initialise system trusted keyrings                             
[    6.644820] Key type blacklist registered                                  
[    6.649062] workingset: timestamp_bits=46 max_order=22 bucket_order=0      
[    6.662890] zbud: loaded                                                   
[    6.665862] integrity: Platform Keyring initialized                        
[    6.669996] Key type asymmetric registered                                 
[    6.674055] Asymmetric key parser 'x509' registered                        
[    6.678958] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[    6.686753] io scheduler mq-deadline registered                            
[    6.695172] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled       
[    6.702483] sifive-serial 10010000.serial: unable to find controller clock 
[    6.708667] sifive-serial 10011000.serial: unable to find controller clock 
[    6.717190] mousedev: PS/2 mouse device common for all mice                
[    6.722306] poweroff-gpio gpio-poweroff: gpio_poweroff_probe: pm_power_off function already registered
[    6.731307] poweroff-gpio: probe of gpio-poweroff failed with error -16    
[    6.738227] ledtrig-cpu: registered to indicate activity on CPUs           
[    6.744977] NET: Registered protocol family 10                             
[    6.799120] Segment Routing with IPv6                                      
[    6.802107] mip6: Mobile IPv6                                              
[    6.805003] NET: Registered protocol family 17                             
[    6.809615] mpls_gso: MPLS GSO support                                     
[    6.813377] registered taskstats version 1                                 
[    6.817274] Loading compiled-in X.509 certificates                         
[    6.956589] Loaded X.509 cert 'Debian Secure Boot CA: 6ccece7e4c6c0d1f6149f3dd27dfcc5cbb419ea1'
[    6.964628] Loaded X.509 cert 'Debian Secure Boot Signer 2021 - linux: 4b6ef5abca669825178e052c84667ccbc0531f8c'
[    6.974979] zswap: loaded using pool lzo/zbud                              
[    6.979713] Key type ._fscrypt registered                                  
[    6.983056] Key type .fscrypt registered
[    6.986933] Key type fscrypt-provisioning registered                       
[    6.992078] AppArmor: AppArmor sha1 policy hashing enabled                 
[    6.997899] sifive-serial 10010000.serial: unable to find controller clock 
[    7.004378] sifive-serial 10011000.serial: unable to find controller clock 
[    7.011236] sifive-serial 10010000.serial: unable to find controller clock 
[    7.018038] sifive-serial 10011000.serial: unable to find controller clock 
[    7.025108] Warning: unable to open an initial console.                    
[    7.976947] Freeing unused kernel memory: 296K                             
[    8.194902] Run /init as init process                                      

There is no further output after this. I ran out of space for the fedora config, so I’ll post that next…

…and here is the Fedora GRUB2 config:

setparams 'Fedora' 

  linux (hd0,gpt3)/vmlinuz-5.10.6-200.0.riscv64.fc33.riscv64 root=UUID=36f7f443-08a8-4458-bba8-83538f9e99e6 console=ttySIF0,115200 earlycon 
  initrd (hd0,gpt3)/initramfs-5.10.6-200.0.riscv64.fc33.riscv64.img 
  devicetree (hd1,gpt3)/hifive-unmatched-a00.dtb

And tells a similar story:

EFI stub: Booting Linux Kernel...ive-unmatched-a00  10.28KiB  100%  6.12B/s ] 
EFI stub: Using DTB from configuration table                                  
EFI stub: Loaded initrd from LINUX_EFI_INITRD_MEDIA_GUID device path          
EFI stub: Exiting boot services and installing virtual address map...         
[    0.000000] Linux version 5.10.6-200.0.riscv64.fc33.riscv64 (mockbuild@a9d8411d8ec242e59bb6813aab078fed) (gcc (GCC) 10.2.1 20201125 (Red Hat 10.2.1-9), GNU ld version 2.35-15.fc33) #1 SMP Tue Jan 12 13:46:56 UTC 2021               
[    0.000000] OF: fdt: Ignoring memory range 0x80000000 - 0x80200000         
[    0.000000] earlycon: sifive0 at MMIO 0x0000000010010000 (options '')      
[    0.000000] printk: bootconsole [sifive0] enabled                          
[    0.000000] efi: EFI v2.80 by Das U-Boot                                   
[    0.000000] efi: RTPROP=0xfe714040 SMBIOS=0xfe710000 MEMRESERVE=0xdb4d9040 
[    0.000000] OF: fdt: Ignoring memory block 0x80000000 - 0x80040000         
[    0.000000] OF: fdt: Ignoring memory range 0x80040000 - 0x80200000         
[    0.000000] Initial ramdisk at: 0x(____ptrval____) (84455424 bytes)        
[    0.000000] Zone ranges:                                                   
[    0.000000]   DMA32    [mem 0x0000000080200000-0x00000000ffffffff]         
[    0.000000]   Normal   [mem 0x0000000100000000-0x000000047fffffff]
[    0.000000] Movable zone start for each node                               
[    0.000000] Early memory node ranges                                       
[    0.000000]   node   0: [mem 0x0000000080200000-0x00000000dcfccfff]        
[    0.000000]   node   0: [mem 0x00000000dcfcd000-0x00000000dcfcdfff]        
[    0.000000]   node   0: [mem 0x00000000dcfce000-0x00000000fe299fff]        
[    0.000000]   node   0: [mem 0x00000000fe29a000-0x00000000fe29afff]        
[    0.000000]   node   0: [mem 0x00000000fe29b000-0x00000000fe70afff]        
[    0.000000]   node   0: [mem 0x00000000fe70b000-0x00000000fe70efff]        
[    0.000000]   node   0: [mem 0x00000000fe70f000-0x00000000fe70ffff]        
[    0.000000]   node   0: [mem 0x00000000fe710000-0x00000000fe710fff]        
[    0.000000]   node   0: [mem 0x00000000fe711000-0x00000000fe712fff]        
[    0.000000]   node   0: [mem 0x00000000fe713000-0x00000000fe716fff]        
[    0.000000]   node   0: [mem 0x00000000fe717000-0x00000000fe717fff]        
[    0.000000]   node   0: [mem 0x00000000fe718000-0x00000000fe71cfff]        
[    0.000000]   node   0: [mem 0x00000000fe71d000-0x00000000fe71dfff]        
[    0.000000]   node   0: [mem 0x00000000fe71e000-0x00000000fe71efff]        
[    0.000000]   node   0: [mem 0x00000000fe71f000-0x00000000fe71ffff]        
[    0.000000]   node   0: [mem 0x00000000fe720000-0x00000000fe720fff]        
[    0.000000]   node   0: [mem 0x00000000fe721000-0x00000000fe721fff]        
[    0.000000]   node   0: [mem 0x00000000fe722000-0x00000000fe722fff]        
[    0.000000]   node   0: [mem 0x00000000fe723000-0x00000000fe723fff]        
[    0.000000]   node   0: [mem 0x00000000fe724000-0x00000000fe724fff]        
[    0.000000]   node   0: [mem 0x00000000fe725000-0x00000000fe725fff]        
[    0.000000]   node   0: [mem 0x00000000fe726000-0x00000000fe726fff]        
[    0.000000]   node   0: [mem 0x00000000fe727000-0x00000000fe727fff]        
[    0.000000]   node   0: [mem 0x00000000fe728000-0x00000000fe728fff]
[    0.000000]   node   0: [mem 0x00000000fe729000-0x00000000fe729fff]        
[    0.000000]   node   0: [mem 0x00000000fe72a000-0x00000000fe72afff]        
[    0.000000]   node   0: [mem 0x00000000fe72b000-0x00000000fe72bfff]        
[    0.000000]   node   0: [mem 0x00000000fe72c000-0x00000000fe72cfff]        
[    0.000000]   node   0: [mem 0x00000000fe72d000-0x00000000fe72efff]        
[    0.000000]   node   0: [mem 0x00000000fe72f000-0x00000000fe730fff]        
[    0.000000]   node   0: [mem 0x00000000fe731000-0x00000000fe731fff]        
[    0.000000]   node   0: [mem 0x00000000fe732000-0x00000000fe732fff]        
[    0.000000]   node   0: [mem 0x00000000fe733000-0x00000000fe733fff]        
[    0.000000]   node   0: [mem 0x00000000fe734000-0x00000000fe734fff]        
[    0.000000]   node   0: [mem 0x00000000fe735000-0x00000000fe735fff]        
[    0.000000]   node   0: [mem 0x00000000fe736000-0x00000000fe736fff]        
[    0.000000]   node   0: [mem 0x00000000fe737000-0x00000000fe738fff]        
[    0.000000]   node   0: [mem 0x00000000fe739000-0x00000000fe739fff]        
[    0.000000]   node   0: [mem 0x00000000fe73a000-0x00000000fe73afff]        
[    0.000000]   node   0: [mem 0x00000000fe73b000-0x00000000fe73cfff]        
[    0.000000]   node   0: [mem 0x00000000fe73d000-0x00000000fe73dfff]        
[    0.000000]   node   0: [mem 0x00000000fe73e000-0x00000000fe73efff]        
[    0.000000]   node   0: [mem 0x00000000fe73f000-0x00000000fff65fff]        
[    0.000000]   node   0: [mem 0x00000000fff66000-0x00000000fff66fff]        
[    0.000000]   node   0: [mem 0x00000000fff67000-0x000000047fffffff]        
[    0.000000] Zeroed struct page in unavailable ranges: 546 pages            
[    0.000000] Initmem setup node 0 [mem 0x0000000080200000-0x000000047fffffff]
[    0.000000] software IO TLB: mapped [mem 0x00000000fa29a000-0x00000000fe29a000] (64MB)
[    0.000000] SBI specification v0.2 detected                                
[    0.000000] SBI implementation ID=0x1 Version=0x9                          
[    0.000000] SBI v0.2 TIME extension detected                               
[    0.000000] SBI v0.2 IPI extension detected                                
[    0.000000] SBI v0.2 RFENCE extension detected                             
[    0.000000] SBI v0.2 HSM extension detected                                
[    0.000000] CPU with hartid=0 is not available                             
[    0.000000] CPU with hartid=0 is not available                             
[    0.000000] riscv: ISA extensions acdfim                                   
[    0.000000] riscv: ELF capabilities acdfim                                 
[    0.000000] percpu: Embedded 25 pages/cpu s64600 r8192 d29608 u102400      
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 4128264 
[    0.000000] Kernel command line: BOOT_IMAGE=(hd0,gpt3)/vmlinuz-5.10.6-200.0.riscv64.fc33.riscv64 root=UUID=36f7f443-08a8-4458-bba8-83538f9e99e6 console=ttySIF0,115200 earlycon
[    0.000000] Dentry cache hash table entries: 2097152 (order: 12, 16777216 bytes, linear)
[    0.000000] Inode-cache hash table entries: 1048576 (order: 11, 8388608 bytes, linear)
[    0.000000] Sorting __ex_table...                                          
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off        
[    0.000000] Memory: 16262076K/16775168K available (9958K kernel code, 6244K rwdata, 8192K rodata, 351K init, 737K bss, 513092K reserved, 0K cma-reserved)
[    0.000000] Virtual kernel memory layout:                                  
[    0.000000]       fixmap : 0xffffffcefee00000 - 0xffffffceff000000   (2048 kB)
[    0.000000]       pci io : 0xffffffceff000000 - 0xffffffcf00000000   (  16 MB)
[    0.000000]      vmemmap : 0xffffffcf00000000 - 0xffffffcfffffffff   (4095 MB)
[    0.000000]      vmalloc : 0xffffffd000000000 - 0xffffffdfffffffff   (65535 MB)
[    0.000000]       lowmem : 0xffffffe000000000 - 0xffffffe3ffe00000   (16382 MB)
[    0.000000] random: get_random_u64 called from __kmem_cache_create+0x40/0x440 with crng_init=0
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1     
[    0.000000] ftrace: allocating 36136 entries in 142 pages                  
[    0.000000] ftrace: allocated 142 pages with 4 groups                      
[    0.000000] rcu: Hierarchical RCU implementation.                          
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=32 to nr_cpu_ids=4. 
[    0.000000]  Trampoline variant of Tasks RCU enabled.                      
[    0.000000]  Rude variant of Tasks RCU enabled.                            
[    0.000000]  Tracing variant of Tasks RCU enabled.                         
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4   
[    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0                 
[    0.000000] CPU with hartid=0 is not available                             
[    0.000000] riscv-intc: unable to find hart id for /cpus/cpu@0/interrupt-controller
[    0.000000] riscv-intc: 64 local interrupts mapped
[    0.000000] plic: interrupt-controller@c000000: mapped 69 interrupts with 4 handlers for 9 contexts.
[    0.000000] rcu:     Offload RCU callbacks from CPUs: (none).              
[    0.000000] riscv_timer_init_dt: Registering clocksource cpuid [0] hartid [2]
[    0.000000] clocksource: riscv_clocksource: mask: 0xffffffffffffffff max_cycles: 0x1d854df40, max_idle_ns: 3526361616960 ns
[    0.000007] sched_clock: 64 bits at 1000kHz, resolution 1000ns, wraps every 2199023255500ns
[    0.008558] Console: colour dummy device 80x25                             
[    0.012885] Calibrating delay loop (skipped), value calculated using timer frequency.. 2.00 BogoMIPS (lpj=10000)
[    0.022969] pid_max: default: 32768 minimum: 301                           
[    0.027730] LSM: Security Framework initializing                           
[    0.032206] Yama: becoming mindful.                                        
[    0.035664] SELinux:  Initializing.                                        
[    0.040143] Mount-cache hash table entries: 32768 (order: 6, 262144 bytes, linear)
[    0.047814] Mountpoint-cache hash table entries: 32768 (order: 6, 262144 bytes, linear)
[    0.058553] rcu: Hierarchical SRCU implementation.                         
[    0.063869] Remapping and enabling EFI services.                           
[    0.068679] smp: Bringing up secondary CPUs ...                            
[    0.075966] smp: Brought up 1 node, 4 CPUs                                 
[    0.085213] devtmpfs: initialized
[    0.092201] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.101295] futex hash table entries: 1024 (order: 4, 65536 bytes, linear) 
[    0.110086] NET: Registered protocol family 16                             
[    0.114024] audit: initializing netlink subsys (disabled)                  
[    0.119422] audit: type=2000 audit(0.090:1): state=initialized audit_enabled=0 res=1
[    0.120006] thermal_sys: Registered thermal governor 'fair_share'          
[    0.126887] thermal_sys: Registered thermal governor 'step_wise'           
[    0.150708] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages   
[    0.765223] alg: No test for 842 (842-generic)                             
[    0.769076] alg: No test for 842 (842-scomp)                               
[    0.790036] raid6: skip pq benchmark and using algorithm int64x8           
[    0.795297] raid6: using intx1 recovery algorithm                          
[    0.800492] iommu: Default domain type: Translated                         
[    0.805071] vgaarb: loaded                                                 
[    0.808218] SCSI subsystem initialized                                     
[    0.811861] usbcore: registered new interface driver usbfs                 
[    0.816942] usbcore: registered new interface driver hub                   
[    0.822130] usbcore: registered new device driver usb                      
[    0.827183] pps_core: LinuxPPS API ver. 1 registered                       
[    0.832003] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.841184] PTP clock support registered                                   
[    0.845376] EDAC MC: Ver: 3.0.0                                            
[    0.848614] Registered efivars operations
[    0.853454] NetLabel: Initializing                                         
[    0.856070] NetLabel:  domain hash size = 128                              
[    0.860413] NetLabel:  protocols = UNLABELED CIPSOv4 CALIPSO               
[    0.866190] NetLabel:  unlabeled traffic allowed by default                
[    0.871970] clocksource: Switched to clocksource riscv_clocksource         
[    1.020298] VFS: Disk quotas dquot_6.6.0                                   
[    1.023575] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes) 
[    1.042597] NET: Registered protocol family 2                              
[    1.047140] tcp_listen_portaddr_hash hash table entries: 8192 (order: 5, 131072 bytes, linear)
[    1.055890] TCP established hash table entries: 131072 (order: 8, 1048576 bytes, linear)
[    1.067612] TCP bind hash table entries: 65536 (order: 8, 1048576 bytes, linear)
[    1.078476] TCP: Hash tables configured (established 131072 bind 65536)    
[    1.087118] MPTCP token hash table entries: 16384 (order: 6, 393216 bytes, linear)
[    1.094480] UDP hash table entries: 8192 (order: 6, 262144 bytes, linear)  
[    1.101827] UDP-Lite hash table entries: 8192 (order: 6, 262144 bytes, linear)
[    1.109802] NET: Registered protocol family 1                              
[    1.113423] NET: Registered protocol family 44                             
[    1.117820] PCI: CLS 0 bytes, default 64                                   
[    1.122132] Trying to unpack rootfs image as initramfs...                  
[    4.224640] Freeing initrd memory: 82472K                                  
[    4.230069] Initialise system trusted keyrings
[    4.233820] Key type blacklist registered                                  
[    4.238118] workingset: timestamp_bits=46 max_order=22 bucket_order=0      
[    4.253371] zbud: loaded                                                   
[    4.291390] NET: Registered protocol family 38                             
[    4.295124] xor: measuring software checksum speed                         
[    4.303653]    8regs           :  2590 MB/sec                              
[    4.311012]    8regs_prefetch  :  2596 MB/sec                              
[    4.319024]    32regs          :  2224 MB/sec                              
[    4.326269]    32regs_prefetch :  2688 MB/sec                              
[    4.329839] xor: using function: 32regs_prefetch (2688 MB/sec)             
[    4.335676] Key type asymmetric registered                                 
[    4.339742] Asymmetric key parser 'x509' registered                        
[    4.344664] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 245)
[    4.352256] io scheduler mq-deadline registered                            
[    4.356506] io scheduler kyber registered                                  
[    4.360671] io scheduler bfq registered                                    
[    4.364728] atomic64_test: passed                                          
[    4.371241] Serial: 8250/16550 driver, 32 ports, IRQ sharing enabled       
[    4.385298] sifive-serial 10010000.serial: unable to find controller clock 
[    4.391456] sifive-serial 10011000.serial: unable to find controller clock 
[    4.401536] sifive_spi 10040000.spi: Unable to find bus clock              
[    4.406641] sifive_spi 10050000.spi: Unable to find bus clock              
[    4.413049] libphy: Fixed MDIO Bus: probed                                 
[    4.416959] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver     
[    4.422924] ehci-pci: EHCI PCI platform driver
[    4.427357] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver         
[    4.433508] ohci-pci: OHCI PCI platform driver                             
[    4.437943] uhci_hcd: USB Universal Host Controller Interface driver       
[    4.444564] usbcore: registered new interface driver usbserial_generic     
[    4.450792] usbserial: USB Serial support registered for generic           
[    4.456957] mousedev: PS/2 mouse device common for all mice                
[    4.462676] poweroff-gpio gpio-poweroff: gpio_poweroff_probe: pm_power_off function already registered
[    4.471609] poweroff-gpio: probe of gpio-poweroff failed with error -16    
[    4.478644] device-mapper: uevent: version 1.0.3                           
[    4.483133] device-mapper: ioctl: 4.43.0-ioctl (2020-10-01) initialised: dm-devel@redhat.com
[    4.491750] EDAC DEVICE0: Giving out device to module Sifive ECC Manager controller sifive_edac.0: DEV sifive_edac.0 (INTERRUPT)
[    4.502947] sdhci: Secure Digital Host Controller Interface driver         
[    4.508949] sdhci: Copyright(c) Pierre Ossman                              
[    4.513342] sdhci-pltfm: SDHCI platform and OF driver helper               
[    4.519147] ledtrig-cpu: registered to indicate activity on CPUs           
[    4.525022] hid: raw HID events driver (C) Jiri Kosina                     
[    4.530263] usbcore: registered new interface driver usbhid                
[    4.535637] usbhid: USB HID core driver                                    
[    4.539702] drop_monitor: Initializing network drop monitor service        
[    4.545990] Initializing XFRM netlink socket                               
[    4.550686] NET: Registered protocol family 10                             
[    4.581080] Segment Routing with IPv6                                      
[    4.584002] RPL Segment Routing with IPv6
[    4.588077] mip6: Mobile IPv6                                              
[    4.590919] NET: Registered protocol family 17                             
[    4.595759] registered taskstats version 1                                 
[    4.599508] Loading compiled-in X.509 certificates                         
[    4.607433] Loaded X.509 cert 'Fedora kernel signing key: 3d980c0b3a0d15977a86793a7f39c9bbc0ff2750'
[    4.615846] zswap: loaded using pool lzo/zbud                              
[    4.620873] Key type ._fscrypt registered                                  
[    4.624145] Key type .fscrypt registered                                   
[    4.628005] Key type fscrypt-provisioning registered                       
[    4.634666] Btrfs loaded, crc32c=crc32c-generic                            
[    4.656040] Key type encrypted registered                                  
[    4.659309] ima: No TPM chip found, activating TPM-bypass!                 
[    4.664808] ima: Allocated hash algorithm: sha256                          
[    4.669511] ima: No architecture policies found                            
[    4.674042] evm: Initialising EVM extended attributes:                     
[    4.679073] evm: security.selinux                                          
[    4.682387] evm: security.ima                                              
[    4.685326] evm: security.capability                                       
[    4.688888] evm: HMAC attrs: 0x1                                           
[    4.692954] sifive-serial 10010000.serial: unable to find controller clock 
[    4.699158] sifive-serial 10011000.serial: unable to find controller clock 
[    4.706059] sifive_spi 10040000.spi: Unable to find bus clock              
[    4.711749] sifive_spi 10050000.spi: Unable to find bus clock              
[    4.717771] sifive-serial 10010000.serial: unable to find controller clock 
[    4.724378] sifive-serial 10011000.serial: unable to find controller clock
[    4.731210] sifive_spi 10040000.spi: Unable to find bus clock              
[    4.736955] sifive_spi 10050000.spi: Unable to find bus clock              
[    4.742890] Warning: unable to open an initial console.                    
[    6.638805] Freeing unused kernel memory: 348K                             
[    6.864653] ------------[ cut here ]------------                           
[    6.868511] riscv/mm: Found insecure W+X mapping at address (____ptrval____)/0xffffffdff8000000
[    6.877238] WARNING: CPU: 0 PID: 1 at arch/riscv/mm/ptdump.c:231 note_page+0x24c/0x252
[    6.885113] Modules linked in:                                             
[    6.888132] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 5.10.6-200.0.riscv64.fc33.riscv64 #1
[    6.896396] epc: ffffffe000208c66 ra : ffffffe000208c66 sp : ffffffe08004bbe0
[    6.903533]  gp : ffffffe001a334e0 tp : ffffffe080045040 t0 : ffffffe00182c2b0
[    6.910710]  t1 : 0000000000000064 t2 : 0000000000000000 s0 : ffffffe08004bc30
[    6.917933]  s1 : ffffffe08004be10 a0 : 0000000000000053 a1 : ffffffe001906c68
[    6.925140]  a2 : 00000000ffffdfff a3 : 0000000000000000 a4 : ffffffe001826a58
[    6.932349]  a5 : ffffffe001826a58 a6 : 0000000000000030 a7 : ffffffffffffffff
[    6.939547]  s2 : ffffffdff8001000 s3 : 0000000000000000 s4 : 0000000000000004
[    6.946767]  s5 : 0000000000000000 s6 : 0000000000000000 s7 : ffffffe080184e00
[    6.953977]  s8 : ffffffdff8001000 s9 : ffffffe08004bd20 s10: ffffffe000000000
[    6.961175]  s11: ffffffdff8200000 t3 : 000000000000000f t4 : 0000000000000002
[    6.968394]  t5 : 00000003fcc4f000 t6 : ffffffe08004b8d0                   
[    6.973694] status: 0000000200000120 badaddr: ffffffe08004bc30 cause: 0000000000000003
[    6.981585] ---[ end trace 4057893d9df6a18d ]---                           
[    7.366613] Checked W+X mappings: failed, 1096 W+X pages found             
[    7.371679] rodata_test: all tests were successful                         
[    7.376566] Run /init as init process                                      
[    7.437463] systemd[1]: System time before build time, advancing clock.    
[    7.462924] systemd[1]: systemd v246.6-3.0.riscv64.fc33 running in system mode. (+PAM +AUDIT +SELINUX +IMA -APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +ZSTD -SECCOMP +BLKID +ELFUTILS +KMOD +IDN2 -IDN +PCRE2 default-hierarchy=unified)
[    7.486157] systemd[1]: Detected architecture riscv64.                     
[    7.490924] systemd[1]: Running in initial RAM disk.                       
[    7.496832] systemd[1]: No hostname configured.                            
[    7.500602] systemd[1]: Set hostname to <fedora>.                          
[    7.505609] random: systemd: uninitialized urandom read (16 bytes read)    
[    7.511898] systemd[1]: Initializing machine ID from random generator.
[    7.902223] systemd[1]: /usr/lib/systemd/system/dracut-pre-udev.service:27: Standard output type syslog is obsolete, automatically updating to journal. Please update your unit file, and consider removing the setting altogether.
[    7.921734] systemd[1]: /usr/lib/systemd/system/dracut-pre-udev.service:28: Standard output type syslog+console is obsolete, automatically updating to journal+console. Please update your unit file, and consider removing the setting altogether.
[    7.994620] systemd[1]: /usr/lib/systemd/system/plymouth-start.service:15: Unit configured to use KillMode=none. This is unsafe, as it disables systemd's process lifecycle management for the service. Please update your service to use a safer KillMode=, such as 'mixed' or 'control-group'. Support for KillMode=none is deprecated and will eventually be removed.
[    8.048200] systemd[1]: /usr/lib/systemd/system/dracut-pre-trigger.service:23: Standard output type syslog is obsolete, automatically updating to journal. Please update your unit file, and consider removing the setting altogether.
[    8.067910] systemd[1]: /usr/lib/systemd/system/dracut-pre-trigger.service:24: Standard output type syslog+console is obsolete, automatically updating to journal+console. Please update your unit file, and consider removing the setting altogether.
[    8.092052] systemd[1]: /usr/lib/systemd/system/dracut-pre-pivot.service:30: Standard output type syslog is obsolete, automatically updating to journal. Please update your unit file, and consider removing the setting altogether.
[    8.111699] systemd[1]: /usr/lib/systemd/system/dracut-pre-pivot.service:31: Standard output type syslog+console is obsolete, automatically updating to journal+console. Please update your unit file, and consider removing the setting altogether.
[    8.142703] systemd[1]: /usr/lib/systemd/system/dracut-pre-mount.service:22: Standard output type syslog is obsolete, automatically updating to journal. Please update your unit file, and consider removing the setting altogether.
[    8.162235] systemd[1]: /usr/lib/systemd/system/dracut-pre-mount.service:23: Standard output type syslog+console is obsolete, automatically updating to journal+console. Please update your unit file, and consider removing the setting altogether.
[    8.185867] systemd[1]: /usr/lib/systemd/system/dracut-mount.service:22: Standard output type syslog is obsolete, automatically updating to journal. Please update your unit file, and consider removing the setting altogether.
[    8.205048] systemd[1]: /usr/lib/systemd/system/dracut-mount.service:23: Standard output type syslog+console is obsolete, automatically updating to journal+console. Please update your unit file, and consider removing the setting altogether.
[    8.227997] systemd[1]: /usr/lib/systemd/system/dracut-initqueue.service:24: Standard output type syslog is obsolete, automatically updating to journal. Please update your unit file, and consider removing the setting altogether.
[    8.247526] systemd[1]: /usr/lib/systemd/system/dracut-initqueue.service:25: Standard output type syslog+console is obsolete, automatically updating to journal+console. Please update your unit file, and consider removing the setting altogether.
[    8.270812] systemd[1]: /usr/lib/systemd/system/dracut-cmdline.service:26: Standard output type syslog is obsolete, automatically updating to journal. Please update your unit file, and consider removing the setting altogether.
[    8.290179] systemd[1]: /usr/lib/systemd/system/dracut-cmdline.service:27: Standard output type syslog+console is obsolete, automatically updating to journal+console. Please update your unit file, and consider removing the setting altogether.
[    8.333223] systemd[1]: Queued start job for default target Initrd Default Target.
[    8.341008] random: systemd: uninitialized urandom read (16 bytes read)    
[    8.346928] systemd[1]: Reached target Local File Systems.                 
[    8.352699] random: systemd: uninitialized urandom read (16 bytes read)    
[    8.358948] systemd[1]: Reached target Slices.                             
[    8.363597] systemd[1]: Reached target Swap.                               
[    8.367762] systemd[1]: Reached target Timers.                             
[    8.372977] systemd[1]: Listening on Journal Audit Socket.                 
[    8.378379] systemd[1]: Listening on Journal Socket (/dev/log).            
[    8.384432] systemd[1]: Listening on Journal Socket.                       
[    8.389380] systemd[1]: Listening on udev Control Socket.                  
[    8.394624] systemd[1]: Listening on udev Kernel Socket.                   
[    8.399449] systemd[1]: Reached target Sockets.                            
[    8.413085] systemd[1]: Starting Create list of static device nodes for the current kernel...
[    8.427221] systemd[1]: Starting Load Kernel Modules...                    
[    8.437503] systemd[1]: Starting Setup Virtual Console...                  
[    8.445965] systemd[1]: Finished Create list of static device nodes for the current kernel.
[    8.460608] systemd[1]: Starting Create Static Device Nodes in /dev...     
[    8.488415] systemd[1]: Finished Setup Virtual Console.
[    8.500032] systemd[1]: Starting dracut ask for additional cmdline parameters...
[    8.518587] systemd[1]: Finished Create Static Device Nodes in /dev.       
[    8.534208] systemd[1]: Started Entropy Daemon based on the HAVEGE algorithm.
[    8.550887] systemd[1]: Starting Journal Service...                        
[    8.562428] systemd[172]: dracut-cmdline-ask.service: Failed to set up standard input: No such device
[    8.585762] systemd[1]: Finished dracut ask for additional cmdline parameters.
[    8.599315] systemd[1]: Starting dracut cmdline hook...                    
[    8.631430] i2c /dev entries driver                                        
[    8.639780] systemd[1]: Finished Load Kernel Modules.                      
[    8.645191] audit: type=1130 audit(1607040001.200:2): pid=1 uid=0 auid=4294967295 ses=4294967295 subj=kernel msg='unit=systemd-modules-load comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[    8.665740] systemd[1]: Started Journal Service.                           
[    8.677066] audit: type=1130 audit(1607040001.220:3): pid=1 uid=0 auid=4294967295 ses=4294967295 subj=kernel msg='unit=systemd-journald comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[    8.744404] audit: type=1130 audit(1607040001.300:4): pid=1 uid=0 auid=4294967295 ses=4294967295 subj=kernel msg='unit=systemd-sysctl comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[    8.786855] audit: type=1130 audit(1607040001.340:5): pid=1 uid=0 auid=4294967295 ses=4294967295 subj=kernel msg='unit=systemd-tmpfiles-setup comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[    9.114246] audit: type=1130 audit(1607040001.670:6): pid=1 uid=0 auid=4294967295 ses=4294967295 subj=kernel msg='unit=dracut-cmdline comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[    9.293165] audit: type=1130 audit(1607040001.850:7): pid=1 uid=0 auid=4294967295 ses=4294967295 subj=kernel msg='unit=dracut-pre-udev comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[    9.312363] audit: type=1334 audit(1607040001.850:8): prog-id=7 op=LOAD    
[    9.318776] audit: type=1334 audit(1607040001.850:9): prog-id=8 op=LOAD    
[    9.325456] audit: type=1334 audit(1607040001.850:10): prog-id=9 op=LOAD   
[    9.389652] audit: type=1130 audit(1607040001.940:11): pid=1 uid=0 auid=4294967295 ses=4294967295 subj=kernel msg='unit=systemd-udevd comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[   10.040417] random: crng init done                                         
[   10.043096] random: 7 urandom warning(s) missed due to ratelimiting

and again no futher output follows. Any ideas on next steps?

In both cases the kernel seems to be booting correctly and starts init, systemd in both cases. In the fedora log you see systemd doing it’s thing. There is a good chance you have a fully functioning system, you just can’t see it.
I think you should check how to configure a serial console in systemd. I avoid systemd at all costs on my own systems so i can’t help you with that.

I initially thought that too, but doing some more digging it doesn’t look like that is the case. I added some of the systemd units for serial consoles, even tried booting with init=/bin/bash to get something but nothing works. I think the issue may be the clocks, all those errors about clocks I believe means the kernel can’t make anything work, including the serial console once the earlycon is complete. But I’m unsure. I’m certainly not seeing any disk activity, and I added the LED status systemd unit from the OpenEmbedded build to turn the LED green and that’s not happening either. I’m rather stumped.

That’s odd.
Maybe the activity we’re seeing in the logs is from the initrd, that would explain the lack of disk activity. Are you sure the UUID given in the root= parameter is correct? It should be the UUID listed by lsblk -f or tune2fs -l .

Yep, I’ve verified that I’m using the same UUIDs from lsblk -f and also /dev/disk/by-uuid

I was worried I may have used the partition UUIDs by mistake, but sadly I didn’t. If I had used the wrong ones, I would have expected the initramfs to bail with an error (especially from Debian) but instead it just seems to hang. But those missing clock errors on every major device (including the ethernet interface) really seems like the root of the problem but I don’t know why.

If it doesn’t work as expected you might also miss the error message :slight_smile:
Just a wild shot because i can’t think of anything else: Does your kernel/devicetree include sifive’s patches?

Can you please post the default credentials for this image?

The default login is root:linux.

Hi Wesley, do you have any plan to upstream this fix ?

They are being upstreamed but not by me. I actually got the patches from the grub-devel mailing list, but if i check the git repo they haven’t been accepted yet. The latest version of the patches has been send about a month ago.

I can see the V3 patchset , But I have not seen get_hartid patch.
Could you let me know the link of get_hartid patch?

Hi Wesley,
I have updated my repo by V3 branch, I don’t know who is working on get_hartid, I updated the patch anyway, please have a look : riscv_devel_Nikita_V3

Nobody is working on get_hartid because is it not needed anymore. @xypron was active in this topic earlier and explained this idea: Grub calls an EFI function provided by U-Boot which returns the hartid, that’s what’s implemented in the current patches.
I’m not actually sure if that’s the best way to solve this, but it’s the one we have now :slight_smile:

GRUB should not set the hartid in the chosen node. The boot hartid is passed as register value from OpenSBI to U-Boot (or EDK II) and U-Boot puts it into the device-tree.

Usage of the devicetree command in GRUB is discouraged because a lot of fixups are missing. If in future we call the EFI Device Tree Fixup Protocol (GitHub - U-Boot-EFI/EFI_DT_FIXUP_PROTOCOL: Proposal for an UEFI protocol for firmware fix-ups), this will take care of setting the boot-hartid for a devicetree loaded by GRUB.

Hi Heinrich, Wesley,
Great thanks for explanation, I am OK with this solution , just for now , if we are using latest u-boot and Grub , we still need get_hartid patch to boot Linux kernel , I consider that is a temp fix.