Cyclone V: Kernel Panic

Hello, I am trying to boot Linux on Cyclone V (DE1-SoC board) from SDMMC. I am not sure why but my kernel is stalling during boot, then restarting the boot process, getting up to the same point, then doing it again.

I am using socfpga-5.5 of linux-socfgpa

I will provide the boot log but there really seem to be no hints about what is causing the kernel to stall then reboot

— Booting Linux —
reading zImage
5074992 bytes read in 262 ms (18.5 MiB/s)
reading socfpga_cyclone5_socdk.dtb
26612 bytes read in 7 ms (3.6 MiB/s)
Kernel image @ 0x1000000 [ 0x000000 - 0x4d7030 ]

Flattened Device Tree blob at 00000100

Booting using the fdt blob at 0x000100
reserving fdt memory region: addr=0 size=1000
Loading Device Tree to 03ff6000, end 03fff7f3 … OK

Starting kernel …

[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 5.5.0-48505-gd5aa6a79dc02 (jfrye@jfrye-Inspiron-5547) (gcc version 4.8.3 20140401 (prerelease) (crosstool-NG linaro-1.13.1-4.8-2014.04 - Linaro GCC 4.8-2014.04)) #2 SMP Sat Mar 28 18:15:54 EDT 2020
[ 0.000000] CPU: ARMv7 Processor [413fc090] revision 0 (ARMv7), cr=10c5387d
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] OF: fdt: Machine model: Altera SOCFPGA Cyclone V SoC Development Kit
[ 0.000000] Memory policy: Data cache writealloc
[ 0.000000] percpu: Embedded 18 pages/cpu s44928 r8192 d20608 u73728
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 260608
[ 0.000000] Kernel command line: mem=1024M console=ttyS0,115200 root=/dev/mmcblk0p2 rw rootwait
[ 0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes, linear)
[ 0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes, linear)
[ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[ 0.000000] Memory: 1027352K/1048576K available (8192K kernel code, 572K rwdata, 1760K rodata, 1024K init, 142K bss, 21224K reserved, 0K cma-reserved, 262144K highmem)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[ 0.000000] ftrace: allocating 27784 entries in 55 pages
[ 0.000000] ftrace: allocated 55 pages with 5 groups
[ 0.000000] rcu: Hierarchical RCU implementation.
[ 0.000000] rcu: RCU event tracing is enabled.
[ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[ 0.000000] L2C-310 erratum 769419 enabled
[ 0.000000] L2C-310 enabling early BRESP for Cortex-A9
[ 0.000000] L2C-310 full line of zeros enabled for Cortex-A9
[ 0.000000] L2C-310 ID prefetch enabled, offset 8 lines
[ 0.000000] L2C-310 dynamic clock gating enabled, standby mode enabled
[ 0.000000] L2C-310 cache controller enabled, 8 ways, 512 kB
[ 0.000000] L2C-310: CACHE_ID 0x410030c9, AUX_CTRL 0x76460001
[ 0.000000] random: get_random_bytes called from start_kernel+0x330/0x4d0 with crng_init=0
[ 0.000000] clocksource: timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604467 ns
[ 0.000005] sched_clock: 32 bits at 100MHz, resolution 10ns, wraps every 21474836475ns
[ 0.000015] Switching to timer-based delay loop, resolution 10ns
[ 0.000188] Console: colour dummy device 80x30
[ 0.000222] Calibrating delay loop (skipped), value calculated using timer frequency… 200.00 BogoMIPS (lpj=1000000)
[ 0.000234] pid_max: default: 32768 minimum: 301
[ 0.000346] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
[ 0.000358] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
[ 0.000950] CPU: Testing write buffer coherency: ok
[ 0.000979] CPU0: Spectre v2: using BPIALL workaround
[ 0.001207] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[ 0.001752] Setting up static identity map for 0x100000 - 0x100060
[ 0.001874] rcu: Hierarchical SRCU implementation.
[ 0.002155] smp: Bringing up secondary CPUs …
[ 0.002861] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[ 0.002870] CPU1: Spectre v2: using BPIALL workaround
[ 0.002988] smp: Brought up 1 node, 2 CPUs
[ 0.002999] SMP: Total of 2 processors activated (400.00 BogoMIPS).
[ 0.003005] CPU: All CPU(s) started in SVC mode.
[ 0.003486] devtmpfs: initialized
[ 0.007659] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[ 0.007864] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.007884] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
[ 0.008678] NET: Registered protocol family 16
[ 0.009435] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.010317] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[ 0.010326] hw-breakpoint: maximum watchpoint size is 4 bytes.
[ 0.024398] vgaarb: loaded
[ 0.024638] SCSI subsystem initialized
[ 0.024810] usbcore: registered new interface driver usbfs
[ 0.024852] usbcore: registered new interface driver hub
[ 0.024909] usbcore: registered new device driver usb
[ 0.025072] usb_phy_generic soc:usbphy: soc:usbphy supply vcc not found, using dummy regulator
[ 0.025997] lcd_load_custom_fonts: i2c_master_send returns -121
[ 0.026208] lcd_cmd_no_params: i2c_master_send returns -121
[ 0.026416] lcd_cmd_one_param: i2c_master_send returns -121
[ 0.026622] lcd_cmd_no_params: i2c_master_send returns -121
[ 0.026639] lcd-comm 0-0028: LCD driver initialized
[ 0.026978] pps_core: LinuxPPS API ver. 1 registered
[ 0.026986] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti giometti@linux.it
[ 0.027003] PTP clock support registered
[ 0.027149] FPGA manager framework
[ 0.027984] clocksource: Switched to clocksource timer1
[ 0.499443] NET: Registered protocol family 2
[ 0.499984] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[ 0.500012] TCP established hash table entries: 8192 (order: 3, 32768 bytes, linear)
[ 0.500087] TCP bind hash table entries: 8192 (order: 4, 65536 bytes, linear)
[ 0.500192] TCP: Hash tables configured (established 8192 bind 8192)
[ 0.500294] UDP hash table entries: 512 (order: 2, 16384 bytes, linear)
[ 0.500331] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes, linear)
[ 0.500500] NET: Registered protocol family 1
[ 0.500975] RPC: Registered named UNIX socket transport module.
[ 0.500985] RPC: Registered udp transport module.
[ 0.500990] RPC: Registered tcp transport module.
[ 0.500996] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.501009] PCI: CLS 0 bytes, default 64
[ 0.501567] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[ 0.502830] workingset: timestamp_bits=30 max_order=18 bucket_order=0
[ 0.509154] NFS: Registering the id_resolver key type
[ 0.509183] Key type id_resolver registered
[ 0.509189] Key type id_legacy registered
[ 0.509203] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[ 0.509871] ntfs: driver 2.1.32 [Flags: R/W].
[ 0.510064] jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[ 0.510575] bounce: pool size: 64 pages
[ 0.510592] io scheduler mq-deadline registered
[ 0.510598] io scheduler kyber registered
[ 0.517000] dma-pl330 ffe01000.pdma: Loaded driver for PL330 DMAC-341330
[ 0.517017] dma-pl330 ffe01000.pdma: DBUFF-512x8bytes Num_Chans-8 Num_Peri-32 Num_Events-8
[ 0.520032] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[ 0.520979] printk: console [ttyS0] disabled
[ 0.521034] ffc02000.serial0: ttyS0 at MMIO 0xffc02000 (irq = 43, base_baud = 6250000) is a 16550A
[ 1.135003] printk: console [ttyS0] enabled
[ 1.139737] ffc03000.serial1: ttyS1 at MMIO 0xffc03000 (irq = 44, base_baud = 6250000) is a 16550A
[ 1.149977] brd: module loaded
[ 1.160043] loop: module loaded
[ 1.697984] cadence-qspi ff705000.spi: QSPI is still busy after 500ms timeout.
[ 2.207977] cadence-qspi ff705000.spi: QSPI is still busy after 500ms timeout.
[ 2.215173] cadence-qspi ff705000.spi: Cadence QSPI NOR probe failed -2
[ 2.221824] cadence-qspi: probe of ff705000.spi failed with error -2
[ 2.229725] libphy: Fixed MDIO Bus: probed
[ 2.234343] CAN device driver interface

Does anyone have an idea what might be causing this behavior.

Hi, it’s a long time ago, but could you please share how you resolved this issue? :slight_smile: Thanks!