CVA6 on VCU118, Trouble Booting Linux, Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b

203 views
Skip to first unread message

Darshak Sheladiya

unread,
May 19, 2023, 8:59:31 AM5/19/23
to Chipyard
Hello,
I have generated bit-stream of CVA6 for FPGA prototyping and these are my configuration for cva6:
 
class CVA6VCU118Config extends Config(
new WithFPGAFrequency(50) ++
new WithVCU118Tweaks ++
new chipyard.CVA6Config)
 
In order to avoid the issues with ExtMem, I have set the value of p(ExtMem).get.master.base with 0x8000_0000 and p(ExtMem).get.master.size with 0x4000_0000
as recommended in: https://github.com/ucb-bar/chipyard/issues/954#issuecomment-903528611
 
I am using VCU118 Board for prototyping. However, I am facing problem while booting Linux on CVA6. I am getting this error:
 
Terminal ready
------------------
INIT
CMD0
CMD8
ACMD41
CMD58
CMD16
CMD18
LOADING 0x01e00000B PAYLOAD
LOADING
BOOT
OpenSBI v0.8
Platform Name : freechips,rocketchip-unknown
Platform Features : timer,mfdeleg
Platform HART Count : 1
Boot HART ID : 0
Boot HART ISA : rv64imafdcsu
BOOT HART Features : pmp,scounteren,mcounteren
BOOT HART PMP Count : 16
Firmware Base : 0x80000000
Firmware Size : 92 KB
Runtime SBI Version : 0.2
MIDELEG : 0x0000000000000222
MEDELEG : 0x000000000000b109
PMP0 : 0x0000000080000000-0x000000008001ffff (A)
PMP1 : 0x0000000000000000-0x01ffffffffffffff (A,R,W,X)
[ 0.000000] OF: fdt: No chosen node found, continuing without
[ 0.000000] OF: fdt: Ignoring memory range 0x80000000 - 0x80200000
[ 0.000000] Forcing kernel command line to: console=hvc0 earlycon=sbi
[ 0.000000] Linux version 5.7.0-rc3-58539-g5f5fd87b36e2 (gcc version 9.2.0 (GCC), GNU ld (GNU Binutils) 2.32) #1 SMP Tue Mar 28 10:05:07 UTC 2023
[ 0.000000] earlycon: sbi0 at I/O port 0x0 (options '')
[ 0.000000] printk: bootconsole [sbi0] enabled
[ 0.000000] initrd not found or empty - disabling initrd
[ 0.000000] Zone ranges:
[ 0.000000] DMA32 [mem 0x0000000080200000-0x00000000ffffffff]
[ 0.000000] Normal empty
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000080200000-0x00000000ffffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000080200000-0x00000000ffffffff]
[ 0.000000] software IO TLB: mapped [mem 0xfa3fa000-0xfe3fa000] (64MB)
[ 0.000000] SBI specification v0.2 detected
[ 0.000000] SBI implementation ID=0x1 Version=0x8
[ 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] elf_hwcap is 0x112d
[ 0.000000] percpu: Embedded 17 pages/cpu s31976 r8192 d29464 u69632
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 516615
[ 0.000000] Kernel command line: console=hvc0 earlycon=sbi
[ 0.000000] Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes, linear)
[ 0.000000] Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes, linear)
[ 0.000000] Sorting __ex_table...
[ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[ 0.000000] Memory: 1976080K/2095104K available (6544K kernel code, 4152K rwdata, 4096K rodata, 4399K init, 318K bss, 119024K 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 - 0xffffffe07fe00000 (2046 MB)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] rcu: Hierarchical RCU implementation.
[ 0.000000] rcu: RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=1.
[ 0.000000] rcu: RCU debug extended QS entry/exit.
[ 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=1
[ 0.000000] NR_IRQS: 0, nr_irqs: 0, preallocated irqs: 0
[ 0.000000] plic: mapped 2 interrupts with 1 handlers for 2 contexts.
[ 0.000000] riscv_timer_init_dt: Registering clocksource cpuid [0] hartid [0]
[ 0.000000] clocksource: riscv_clocksource: mask: 0xffffffffffffffff max_cycles: 0x1d854df40, max_idle_ns: 3526361616960 ns
[ 0.000187] sched_clock: 64 bits at 1000kHz, resolution 1000ns, wraps every 2199023255500ns
[ 0.010821] Console: colour dummy device 80x25
[ 0.015510] printk: console [hvc0] enabled
[ 0.015510] printk: console [hvc0] enabled
[ 0.023726] printk: bootconsole [sbi0] disabled
[ 0.023726] printk: bootconsole [sbi0] disabled
[ 0.033375] Calibrating delay loop (skipped), value calculated using timer frequency.. 2.00 BogoMIPS (lpj=4000)
[ 0.043622] pid_max: default: 32768 minimum: 301
[ 0.054373] Mount-cache hash table entries: 4096 (order: 3, 32768 bytes, linear)
[ 0.063114] Mountpoint-cache hash table entries: 4096 (order: 3, 32768 bytes, linear)
[ 0.121382] rcu: Hierarchical SRCU implementation.
[ 0.140723] smp: Bringing up secondary CPUs ...
[ 0.145397] smp: Brought up 1 node, 1 CPU
[ 0.160924] devtmpfs: initialized
[ 0.195992] random: get_random_u32 called from bucket_table_alloc.isra.0+0x4a/0xbe with crng_init=0
[ 0.213663] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[ 0.223757] futex hash table entries: 256 (order: 2, 16384 bytes, linear)
[ 0.245651] NET: Registered protocol family 16
[ 0.792529] vgaarb: loaded
[ 0.805266] SCSI subsystem initialized
[ 0.822624] usbcore: registered new interface driver usbfs
[ 0.829560] usbcore: registered new interface driver hub
[ 0.836184] usbcore: registered new device driver usb
[ 0.869289] clocksource: Switched to clocksource riscv_clocksource
[ 1.140656] NET: Registered protocol family 2
[ 1.161476] tcp_listen_portaddr_hash hash table entries: 1024 (order: 3, 40960 bytes, linear)
[ 1.172640] TCP established hash table entries: 16384 (order: 5, 131072 bytes, linear)
[ 1.186595] TCP bind hash table entries: 16384 (order: 7, 524288 bytes, linear)
[ 1.215823] TCP: Hash tables configured (established 16384 bind 16384)
[ 1.229950] UDP hash table entries: 1024 (order: 4, 98304 bytes, linear)
[ 1.240978] UDP-Lite hash table entries: 1024 (order: 4, 98304 bytes, linear)
[ 1.256994] NET: Registered protocol family 1
[ 1.281446] RPC: Registered named UNIX socket transport module.
[ 1.287634] RPC: Registered udp transport module.
[ 1.292491] RPC: Registered tcp transport module.
[ 1.297335] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 1.304000] PCI: CLS 0 bytes, default 64
[ 6.897673] workingset: timestamp_bits=62 max_order=19 bucket_order=0
[ 7.266375] NFS: Registering the id_resolver key type
[ 7.272589] Key type id_resolver registered
[ 7.276947] Key type id_legacy registered
[ 7.281355] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[ 7.293247] 9p: Installing v9fs 9p2000 file system support
[ 7.310846] NET: Registered protocol family 38
[ 7.317019] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[ 7.324640] io scheduler mq-deadline registered
[ 7.329330] io scheduler kyber registered
[ 9.134243] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[ 9.176001] 64000000.serial: ttySIF0 at MMIO 0x64000000 (irq = 1, base_baud = 0) is a SiFive UART v0
[ 9.203604] [drm] radeon kernel modesetting enabled.
[ 9.533491] loop: module loaded
[ 9.555443] sifive_spi 64001000.spi: mapped; irq=2, cs=1
[ 9.595248] libphy: Fixed MDIO Bus: probed
[ 9.627213] e1000e: Intel(R) PRO/1000 Network Driver - 3.2.6-k
[ 9.633244] e1000e: Copyright(c) 1999 - 2015 Intel Corporation.
[ 9.642745] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 9.649506] ehci-pci: EHCI PCI platform driver
[ 9.655287] ehci-platform: EHCI generic platform driver
[ 9.662383] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 9.669145] ohci-pci: OHCI PCI platform driver
[ 9.674845] ohci-platform: OHCI generic platform driver
[ 9.692740] usbcore: registered new interface driver uas
[ 9.699869] usbcore: registered new interface driver usb-storage
[ 9.711132] mousedev: PS/2 mouse device common for all mice
[ 9.770312] mmc_spi spi0.0: SD/MMC host mmc0, no DMA, no WP, no poweroff, cd polling
[ 9.785804] usbcore: registered new interface driver usbhid
[ 9.791576] usbhid: USB HID core driver
[ 9.822443] NET: Registered protocol family 10
[ 9.868033] Segment Routing with IPv6
[ 9.874334] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[ 9.899582] NET: Registered protocol family 17
[ 9.910998] 9pnet: Installing 9P2000 support
[ 9.917360] Key type dns_resolver registered
[ 10.184005] Freeing unused kernel memory: 4396K
[ 10.193004] Run /init as init process
[ 10.241128] init[1]: unhandled signal 11 code 0x2 at 0x0000003fd9b56fe0 in ld-2.29.so[3fd9b56000+17000]
[ 10.251228] CPU: 0 PID: 1 Comm: init Not tainted 5.7.0-rc3-58539-g5f5fd87b36e2 #1
[ 10.258924] epc: 0000003fd9b56fe0 ra : 0000000000000000 sp : 0000003fff9bee50
[ 10.266409] gp : 0000000000000000 tp : 0000000000000000 t0 : 0000000000000000
[ 10.273830] t1 : 0000000000000000 t2 : 0000000000000000 s0 : 0000000000000000
[ 10.281231] s1 : 0000000000000000 a0 : 0000000000000000 a1 : 0000000000000000
[ 10.288623] a2 : 0000000000000000 a3 : 0000000000000000 a4 : 0000000000000000
[ 10.296028] a5 : 0000000000000000 a6 : 0000000000000000 a7 : 0000000000000000
[ 10.303890] s2 : 0000000000000000 s3 : 0000000000000000 s4 : 0000000000000000
[ 10.311748] s5 : 0000000000000000 s6 : 0000000000000000 s7 : 0000000000000000
[ 10.319137] s8 : 0000000000000000 s9 : 0000000000000000 s10: 0000000000000000
[ 10.326521] s11: 0000000000000000 t3 : 0000000000000000 t4 : 0000000000000000
[ 10.333886] t5 : 0000000000000000 t6 : 0000000000000000
[ 10.339365] status: 0000000200004020 badaddr: 0000003fd9b56fe0 cause: 0000000000000001
[ 10.357208] Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b
[ 10.364633] CPU: 0 PID: 1 Comm: init Not tainted 5.7.0-rc3-58539-g5f5fd87b36e2 #1
[ 10.372072] Call Trace:
[ 10.374778] [<ffffffe000602430>] walk_stackframe+0x0/0xaa
[ 10.380176] [<ffffffe00060261c>] show_stack+0x2a/0x34
[ 10.385407] [<ffffffe00087ec20>] dump_stack+0x6e/0x88
[ 10.390521] [<ffffffe000608126>] panic+0xf2/0x278
[ 10.395224] [<ffffffe00060a372>] do_exit+0x7a0/0x7b2
[ 10.400273] [<ffffffe00060af48>] do_group_exit+0x2a/0x7e
[ 10.405671] [<ffffffe0006130a8>] get_signal+0xbc/0x54c
[ 10.410888] [<ffffffe000601cc2>] do_notify_resume+0x5c/0x33e
[ 10.416727] [<ffffffe0006011aa>] ret_from_exception+0x0/0xc
[ 10.422425] ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b ]
---------------------------------------------------------------------------------------------------------
Reply all
Reply to author
Forward
0 new messages