Unmatched Board not Booting

Hello everyone,

While Booting unmatched board through SD card I’m getting an error as below.
The Error wasEEPROM: SiFive HiFive EEPROM is not a data format - magic bytes do not match.
However, the image on the SD card was booted successfully on another Unmatched board.

The problem is that EEPROM does not match the magic number.
I attached the log. Please suggest to me how to fix the issue.

U-Boot SPL 2021.07 (Sep 17 2021 - 11:07:39 +0000)
Trying to boot from MMC1

U-Boot 2021.07 (Sep 17 2021 - 11:07:39 +0000)

CPU: rv64imafdc
Model: SiFive HiFive Unmatched A00
DRAM: 16 GiB
MMC: spi@10050000:mmc@0: 0
Loading Environment from nowhere… OK
EEPROM: Not a SiFive HiFive EEPROM data format - magic bytes don’t match
EEPROM dump: (0x25 bytes)
00: F1 5E 90 45 01 02 00 03 42 00 53 46 31 30 35 53
10: 5A 32 31 32 32 30 30 37 38 34 01 70 B3 D5 92 F9
20: EB 1D AA D1 8E
Invalid ID (f1 5e 90 45)
EEPROM dump: (0x25 bytes)
00: F1 5E 90 45 01 02 00 03 42 00 53 46 31 30 35 53
10: 5A 32 31 32 32 30 30 37 38 34 01 70 B3 D5 92 F9
20: EB 1D AA D1 8E
In: serial@10010000
Out: serial@10010000
Err: serial@10010000
Model: SiFive HiFive Unmatched A00
Net:
Error: ethernet@10090000 address not set.
No ethernet found.

Hit any key to stop autoboot: 0
PCIE-0: Link up (Gen1-x8, Bus0)

Device 0: unknown device
starting USB…
Bus xhci_pci: Register 4000840 NbrPorts 4
Starting the controller
USB XHCI 1.00
scanning bus xhci_pci for devices… 3 USB Device(s) found
scanning usb for storage devices… 0 Storage Device(s) found

Device 0: unknown device
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:3…
Found /extlinux/extlinux.conf
Retrieving file: /extlinux/extlinux.conf
199 bytes read in 12 ms (15.6 KiB/s)
1: Demo image on unmatched
Retrieving file: /Image.gz
7254214 bytes read in 6079 ms (1.1 MiB/s)
append: root=/dev/mmcblk0p4 rootfstype=ext4 rootwait console=ttySIF0,115200 earlycon
Retrieving file: /hifive-unmatched-a00.dtb
9833 bytes read in 17 ms (564.5 KiB/s)
Uncompressing Kernel Image
Moving Image from 0x84000000 to 0x80200000, end=8162a000

Flattened Device Tree blob at 88000000

Booting using the fdt blob at 0x88000000
Loading Device Tree to 00000000ffffa000, end 00000000fffff668 … OK

Starting kernel …

[ 0.000000] Linux version 5.10.41 (oe-user@oe-host) (riscv64-oe-linux-gcc (GCC) 10.2.0, GNU ld (GNU Binutils) 2.35.1) #1 SMP Fri Sep 17 11
[ 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: UEFI not found.
[ 0.000000] Zone ranges:
[ 0.000000] DMA32 [mem 0x0000000080200000-0x00000000ffffffff]
[ 0.000000] Normal [mem 0x0000000100000000-0x000000027fffffff]
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000080200000-0x000000027fffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000080200000-0x000000027fffffff]
[ 0.000000] DMA32 zone: 512 pages in unavailable ranges
[ 0.000000] OF: fdt: Error -11 processing FDT
[ 0.000000] software IO TLB: mapped [mem 0x00000000fbffa000-0x00000000ffffa000] (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] ------------[ cut here ]------------
[ 0.000000] kernel BUG at arch/riscv/kernel/smpboot.c:94!
[ 0.000000] Kernel BUG [#1]
[ 0.000000] Modules linked in:
[ 0.000000] CPU: 0 PID: 0 Comm: swapper Not tainted 5.10.41 #1
[ 0.000000] epc: ffffffe000004800 ra : ffffffe000004798 sp : ffffffe001203f40
[ 0.000000] gp : ffffffe0013c64a8 tp : ffffffe00120a380 t0 : ffffffe00121eb90
[ 0.000000] t1 : 0000000000000000 t2 : 0000000000000001 s0 : ffffffe001203f80
[ 0.000000] s1 : 0000000000000000 a0 : 0000000000000000 a1 : 0000000000000000
[ 0.000000] a2 : 0000000000000010 a3 : 0000000000000001 a4 : 0000000000000000
[ 0.000000] a5 : ffffffe0000393e0 a6 : 0000000000000030 a7 : ffffffffffffffff
[ 0.000000] s2 : 0000000000000001 s3 : 0000000000000000 s4 : ffffffe00120cce8
[ 0.000000] s5 : 0000000000000007 s6 : 0000000000000000 s7 : 0000000000000000
[ 0.000000] s8 : 00000000fff6709a s9 : 0000000000000002 s10: 0000000000000000
[ 0.000000] s11: 0000000000000000 t3 : 0000000000000000 t4 : 0000000280000000
[ 0.000000] t5 : 0000000000000000 t6 : ffffffe001203c48
[ 0.000000] status: 0000000200000100 badaddr: 0000000000000007 cause: 0000000000000003
[ 0.000000] random: get_random_bytes called from oops_exit+0x30/0x58 with crng_init=0
[ 0.000000] —[ end trace 0000000000000000 ]—
[ 0.000000] Kernel panic - not syncing: Attempted to kill the idle task!
[ 0.000000] —[ end Kernel panic - not syncing: Attempted to kill the idle task! ]—

Thanks & Regards
Babu

Looks like a single bit flip in the third byte of the on-board EEPROM from 0x50 to 0x90 (the magic bytes are meant to be F1 5E 50 45). Flipping that bit back also is consistent with the CRC32 checksum in the final 4 bytes, so it is “just” the one bit flip. I don’t know if that was a programming error (seems unlikely, the current U-Boot code reads back the contents after it writes it out to ensure it was written correctly), a hardware fault that developed since it was programmed and tested, a firmware issue with clock configuration taking the I2C EEPROM slightly out of spec or something else. I’m sure someone from SiFive can advise, but my guess would be it’s faulty hardware that should be returned to your supplier for a replacement; in theory the chip can be reprogrammed via commands in U-Boot, but if it’s broken once already that’s likely not a fix, just a temporary workaround until it sees another bit-flip.

An RMA is probably the best solution if this is a confirmed hardware issue.

Can you verify the part number of U27 on your board? The U27 device is near the DIP switches and I’m expecting ST Microelectronics M24C02-FDW6TP.

Have you changed/built the software or is this a released FUSDK image? Did the board work before any software changes? If so, you could try to reimage the SD card.

Please confirm you don’t have anything plugged into J8 (96boards expansion header) which could affect the signal integrity of the I2C bus the EEPROM is connected to.

Does the U-boot EEPROM dump consistently show only one bit flipped in magic number? For example, 10 out of 10 power cycles report the only the same bit flipped?

I tried booting from a pre-built image. Booted successfully but also thrown magic bytes don’t match error.

the error is below & I attached a pre-built image log.

EEPROM: Not a SiFive EEPROM data format - magic bytes don’t match
EEPROM dump: (0x25 bytes)
00: F1 5E 90 45 01 02 00 03 42 00 53 46 31 30 35 53
10: 5A 32 31 32 32 30 30 37 38 34 01 70 B3 D5 92 F9
20: EB 1D AA D1 8E
Invalid ID (f1 5e 90 45)

pre-built image log

U-Boot SPL 2021.01 (Apr 07 2021 - 17:59:15 +0000)
Trying to boot from MMC1

U-Boot 2021.01 (Apr 07 2021 - 17:59:15 +0000)

CPU: rv64imafdc
Model: SiFive HiFive Unmatched A00
DRAM: 16 GiB
MMC: spi@10050000:mmc@0: 0
EEPROM: Not a SiFive EEPROM data format - magic bytes don’t match
EEPROM dump: (0x25 bytes)
00: F1 5E 90 45 01 02 00 03 42 00 53 46 31 30 35 53
10: 5A 32 31 32 32 30 30 37 38 34 01 70 B3 D5 92 F9
20: EB 1D AA D1 8E
Invalid ID (f1 5e 90 45)
In: serial@10010000
Out: serial@10010000
Err: serial@10010000
Model: SiFive HiFive Unmatched A00
Net:
Error: ethernet@10090000 address not set.
No ethernet found.

Hit any key to stop autoboot: 0
PCIe Link up, Gen1

Device 0: unknown device
starting USB…
Bus xhci_pci: Register 4000840 NbrPorts 4
Starting the controller
USB XHCI 1.00
scanning bus xhci_pci for devices… 3 USB Device(s) found
scanning usb for storage devices… 0 Storage Device(s) found

Device 0: unknown device
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:3…
Found /extlinux/extlinux.conf
Retrieving file: /extlinux/extlinux.conf
204 bytes read in 9 ms (21.5 KiB/s)
1: OpenEmbedded-SiFive-HiFive-Unmatched
Retrieving file: /Image.gz
7247925 bytes read in 4731 ms (1.5 MiB/s)
append: root=/dev/mmcblk0p4 rootfstype=ext4 rootwait console=ttySIF0,115200 earlycon
Retrieving file: /hifive-unmatched-a00.dtb
10473 bytes read in 13 ms (786.1 KiB/s)
Uncompressing Kernel Image
Moving Image from 0x84000000 to 0x80200000, end=810b2000

Flattened Device Tree blob at 88000000

Booting using the fdt blob at 0x88000000
Using Device Tree in place at 0000000088000000, end 00000000880058e8

Starting kernel …

[ 0.000000] Linux version 5.11.10 (oe-user@oe-host) (riscv64-oe-linux-gcc (GCC) 10.2.0, GNU ld (GNU Binutils) 2.36.1.20210209) #1 SMP Wed1
[ 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: UEFI not found.
[ 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-0x000000047fffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000080200000-0x000000047fffffff]
[ 0.000000] DMA32 zone: 512 pages in unavailable ranges
[ 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] software IO TLB: mapped [mem 0x00000000fbfff000-0x00000000fffff000] (64MB)
[ 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 s67032 r8192 d31272 u106496
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 4136455
[ 0.000000] Kernel command line: root=/dev/mmcblk0p4 rootfstype=ext4 rootwait 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: 16422848K/16775168K available (8526K kernel code, 1834K rwdata, 3927K rodata, 395K init, 350K bss, 352320K reserved, )
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[ 0.000000] rcu: Hierarchical RCU implementation.
[ 0.000000] rcu: RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=4.
[ 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] random: get_random_bytes called from start_kernel+0x360/0x4ba with crng_init=0
[ 0.000000] riscv_timer_init_dt: Registering clocksource cpuid [0] hartid [1]
[ 0.000000] clocksource: riscv_clocksource: mask: 0xffffffffffffffff max_cycles: 0x1d854df40, max_idle_ns: 3526361616960 ns
[ 0.000001] sched_clock: 64 bits at 1000kHz, resolution 1000ns, wraps every 2199023255500ns
[ 0.008504] Console: colour dummy device 80x25
[ 0.012845] Calibrating delay loop (skipped), value calculated using timer frequency… 2.00 BogoMIPS (lpj=4000)
[ 0.022850] pid_max: default: 32768 minimum: 301
[ 0.028271] Mount-cache hash table entries: 32768 (order: 6, 262144 bytes, linear)
[ 0.035846] Mountpoint-cache hash table entries: 32768 (order: 6, 262144 bytes, linear)
[ 0.045169] rcu: Hierarchical SRCU implementation.
[ 0.049479] EFI services will not be available.
[ 0.054113] smp: Bringing up secondary CPUs …
[ 0.060412] smp: Brought up 1 node, 4 CPUs
[ 0.066915] devtmpfs: initialized
[ 0.071863] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[ 0.080888] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[ 0.088599] NET: Registered protocol family 16
[ 0.092705] thermal_sys: Registered thermal governor ‘step_wise’
[ 0.104670] iommu: Default domain type: Translated
[ 0.114959] vgaarb: loaded
[ 0.117746] SCSI subsystem initialized
[ 0.121560] usbcore: registered new interface driver usbfs
[ 0.126775] usbcore: registered new interface driver hub
[ 0.132004] usbcore: registered new device driver usb
[ 0.137132] EDAC MC: Ver: 3.0.0
[ 0.140468] Advanced Linux Sound Architecture Driver Initialized.
[ 0.146759] clocksource: Switched to clocksource riscv_clocksource
[ 0.216439] VFS: Disk quotas dquot_6.6.0
[ 0.219711] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[ 0.231856] NET: Registered protocol family 2
[ 0.236036] tcp_listen_portaddr_hash hash table entries: 8192 (order: 5, 131072 bytes, linear)
[ 0.244640] TCP established hash table entries: 131072 (order: 8, 1048576 bytes, linear)
[ 0.256476] TCP bind hash table entries: 65536 (order: 8, 1048576 bytes, linear)
[ 0.267376] TCP: Hash tables configured (established 131072 bind 65536)
[ 0.273850] UDP hash table entries: 8192 (order: 6, 262144 bytes, linear)
[ 0.281160] UDP-Lite hash table entries: 8192 (order: 6, 262144 bytes, linear)
[ 0.289006] NET: Registered protocol family 1
[ 0.295504] RPC: Registered named UNIX socket transport module.
[ 0.300678] RPC: Registered udp transport module.
[ 0.305364] RPC: Registered tcp transport module.
[ 0.310047] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.316479] PCI: CLS 0 bytes, default 64
[ 0.321369] Initialise system trusted keyrings
[ 0.325255] workingset: timestamp_bits=62 max_order=22 bucket_order=0
[ 0.337297] NFS: Registering the id_resolver key type
[ 0.341612] Key type id_resolver registered
[ 0.345755] Key type id_legacy registered
[ 0.349837] nfs4filelayout_init: NFSv4 File Layout Driver Registering…
[ 0.356440] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[ 0.363776] 9p: Installing v9fs 9p2000 file system support
[ 0.369245] NET: Registered protocol family 38
[ 0.372937] Key type asymmetric registered
[ 0.377020] Asymmetric key parser ‘x509’ registered
[ 0.381907] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[ 0.389261] io scheduler mq-deadline registered
[ 0.393774] io scheduler kyber registered
[ 1.488968] shpchp: Standard Hot Plug PCI Controller Driver version: 0.4
[ 1.533642] fu740-pcie e00000000.pcie: host bridge /soc/pcie@e00000000 ranges:
[ 1.540210] fu740-pcie e00000000.pcie: IO 0x0060080000…0x006008ffff → 0x0060080000
[ 1.548447] fu740-pcie e00000000.pcie: MEM 0x0060090000…0x0070ffffff → 0x0060090000
[ 1.556666] fu740-pcie e00000000.pcie: MEM 0x2000000000…0x3fffffffff → 0x2000000000
[ 1.675699] fu740-pcie e00000000.pcie: invalid resource
[ 1.680175] fu740-pcie e00000000.pcie: iATU unroll: enabled
[ 1.685724] fu740-pcie e00000000.pcie: Detected iATU regions: 8 outbound, 8 inbound
[ 1.793403] fu740-pcie e00000000.pcie: Link up
[ 1.797238] fu740-pcie e00000000.pcie: PCI host bridge to bus 0000:00
[ 1.803517] pci_bus 0000:00: root bus resource [bus 00-ff]
[ 1.808980] pci_bus 0000:00: root bus resource [io 0x0000-0xffff] (bus address [0x60080000-0x6008ffff])
[ 1.818443] pci_bus 0000:00: root bus resource [mem 0x60090000-0x70ffffff]
[ 1.825304] pci_bus 0000:00: root bus resource [mem 0x2000000000-0x3fffffffff pref]
[ 1.832988] pci 0000:00:00.0: [f15e:0000] type 01 class 0x060400
[ 1.838953] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x000fffff]
[ 1.845200] pci 0000:00:00.0: reg 0x38: [mem 0x00000000-0x0000ffff pref]
[ 1.851930] pci 0000:00:00.0: supports D1
[ 1.855880] pci 0000:00:00.0: PME# supported from D0 D1 D3hot
[ 1.862467] pci 0000:01:00.0: [1b21:2824] type 01 class 0x060400
[ 1.867776] pci 0000:01:00.0: enabling Extended Tags
[ 1.872767] pci 0000:01:00.0: PME# supported from D0 D3hot D3cold
[ 1.891305] pci 0000:01:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[ 1.898690] pci 0000:02:00.0: [1b21:2824] type 01 class 0x060400
[ 1.904612] pci 0000:02:00.0: enabling Extended Tags
[ 1.909604] pci 0000:02:00.0: PME# supported from D0 D3hot D3cold
[ 1.915892] pci 0000:02:02.0: [1b21:2824] type 01 class 0x060400
[ 1.921635] pci 0000:02:02.0: enabling Extended Tags
[ 1.926628] pci 0000:02:02.0: PME# supported from D0 D3hot D3cold
[ 1.932877] pci 0000:02:03.0: [1b21:2824] type 01 class 0x060400
[ 1.938658] pci 0000:02:03.0: enabling Extended Tags
[ 1.943652] pci 0000:02:03.0: PME# supported from D0 D3hot D3cold
[ 1.949906] pci 0000:02:04.0: [1b21:2824] type 01 class 0x060400
[ 1.955683] pci 0000:02:04.0: enabling Extended Tags
[ 1.960677] pci 0000:02:04.0: PME# supported from D0 D3hot D3cold
[ 1.967003] pci 0000:02:08.0: [1b21:2824] type 01 class 0x060400
[ 1.972707] pci 0000:02:08.0: enabling Extended Tags
[ 1.977700] pci 0000:02:08.0: PME# supported from D0 D3hot D3cold
[ 1.984339] pci 0000:02:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[ 1.991675] pci 0000:02:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[ 1.999661] pci 0000:02:03.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[ 2.007651] pci 0000:02:04.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[ 2.015651] pci 0000:02:08.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[ 2.024230] pci_bus 0000:03: busn_res: [bus 03-ff] end is updated to 03
[ 2.030363] pci 0000:04:00.0: [1b21:1142] type 00 class 0x0c0330
[ 2.036260] pci 0000:04:00.0: reg 0x10: [mem 0x00000000-0x00007fff 64bit]
[ 2.043180] pci 0000:04:00.0: PME# supported from D3cold
[ 2.059306] pci_bus 0000:04: busn_res: [bus 04-ff] end is updated to 04
[ 2.065773] pci_bus 0000:05: busn_res: [bus 05-ff] end is updated to 05
[ 2.072361] pci_bus 0000:06: busn_res: [bus 06-ff] end is updated to 06
[ 2.078979] pci_bus 0000:07: busn_res: [bus 07-ff] end is updated to 07
[ 2.084970] pci_bus 0000:02: busn_res: [bus 02-ff] end is updated to 07
[ 2.091569] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 07
[ 2.098201] pci 0000:00:00.0: BAR 0: assigned [mem 0x60100000-0x601fffff]
[ 2.104945] pci 0000:00:00.0: BAR 14: assigned [mem 0x60200000-0x602fffff]
[ 2.111803] pci 0000:00:00.0: BAR 6: assigned [mem 0x60090000-0x6009ffff pref]
[ 2.119015] pci 0000:01:00.0: BAR 14: assigned [mem 0x60200000-0x602fffff]
[ 2.125877] pci 0000:02:02.0: BAR 14: assigned [mem 0x60200000-0x602fffff]
[ 2.132736] pci 0000:02:00.0: PCI bridge to [bus 03]
[ 2.137705] pci 0000:04:00.0: BAR 0: assigned [mem 0x60200000-0x60207fff 64bit]
[ 2.144999] pci 0000:02:02.0: PCI bridge to [bus 04]
[ 2.149937] pci 0000:02:02.0: bridge window [mem 0x60200000-0x602fffff]
[ 2.156716] pci 0000:02:03.0: PCI bridge to [bus 05]
[ 2.161672] pci 0000:02:04.0: PCI bridge to [bus 06]
[ 2.166625] pci 0000:02:08.0: PCI bridge to [bus 07]
[ 2.171574] pci 0000:01:00.0: PCI bridge to [bus 02-07]
[ 2.176776] pci 0000:01:00.0: bridge window [mem 0x60200000-0x602fffff]
[ 2.183561] pci 0000:00:00.0: PCI bridge to [bus 01-07]
[ 2.188759] pci 0000:00:00.0: bridge window [mem 0x60200000-0x602fffff]
[ 2.196104] pcieport 0000:00:00.0: AER: enabled with IRQ 46
[ 2.201227] pcieport 0000:01:00.0: enabling device (0000 → 0002)
[ 2.207810] pcieport 0000:02:02.0: enabling device (0000 → 0002)
[ 2.214380] pci 0000:04:00.0: enabling device (0000 → 0002)
[ 2.219548] switchtec: loaded.
[ 2.222553] L2CACHE: DataError @ 0x00000004.4007BFD0
[ 2.222606] L2CACHE: No. of Banks in the cache: 4
[ 2.231955] L2CACHE: No. of ways per bank: 16
[ 2.236295] L2CACHE: Sets per bank: 512
[ 2.240117] L2CACHE: Bytes per cache block: 64
[ 2.244548] L2CACHE: Index of the largest way enabled: 15
[ 2.282923] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[ 2.289534] 10010000.serial: ttySIF0 at MMIO 0x10010000 (irq = 1, base_baud = 115200) is a SiFive UART v0
[ 2.298387] printk: console [ttySIF0] enabled
[ 2.298387] printk: console [ttySIF0] enabled
[ 2.307047] printk: bootconsole [sifive0] disabled
[ 2.307047] printk: bootconsole [sifive0] disabled
[ 2.316872] 10011000.serial: ttySIF1 at MMIO 0x10011000 (irq = 2, base_baud = 115200) is a SiFive UART v0
[ 2.340240] loop: module loaded
[ 2.371107] Rounding down aligned max_sectors from 4294967295 to 4294967288
[ 2.377554] db_root: cannot open: /etc/target
[ 2.382304] sifive_spi 10040000.spi: mapped; irq=4, cs=1
[ 2.387585] spi-nor spi0.0: is25wp256 (32768 Kbytes)
[ 2.393942] sifive_spi 10050000.spi: mapped; irq=6, cs=1
[ 2.399374] libphy: Fixed MDIO Bus: probed
[ 2.403319] macb 10090000.ethernet: Registered clk switch ‘sifive-gemgxl-mgmt’
[ 2.409987] macb 10090000.ethernet: invalid hw address, using random
[ 2.416629] libphy: MACB_mii_bus: probed
[ 2.421448] macb 10090000.ethernet eth0: Cadence GEM rev 0x10070109 at 0x10090000 irq 7 (ea:c7:95:3a:49:a3)
[ 2.430604] e1000e: Intel(R) PRO/1000 Network Driver
[ 2.435415] e1000e: Copyright(c) 1999 - 2015 Intel Corporation.
[ 2.441563] ehci_hcd: USB 2.0 ‘Enhanced’ Host Controller (EHCI) Driver
[ 2.447832] ehci-pci: EHCI PCI platform driver
[ 2.452288] ohci_hcd: USB 1.1 ‘Open’ Host Controller (OHCI) Driver
[ 2.458421] ohci-pci: OHCI PCI platform driver
[ 2.462873] uhci_hcd: USB Universal Host Controller Interface driver
[ 2.469403] xhci_hcd 0000:04:00.0: xHCI Host Controller
[ 2.474519] xhci_hcd 0000:04:00.0: new USB bus registered, assigned bus number 1
[ 2.622580] xhci_hcd 0000:04:00.0: hcc params 0x0200e080 hci version 0x100 quirks 0x0000000010800410
[ 2.631686] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.11
[ 2.639214] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 2.646413] usb usb1: Product: xHCI Host Controller
[ 2.651275] usb usb1: Manufacturer: Linux 5.11.10 xhci-hcd
[ 2.656746] usb usb1: SerialNumber: 0000:04:00.0
[ 2.661755] hub 1-0:1.0: USB hub found
[ 2.665123] hub 1-0:1.0: 2 ports detected
[ 2.669354] xhci_hcd 0000:04:00.0: xHCI Host Controller
[ 2.674396] xhci_hcd 0000:04:00.0: new USB bus registered, assigned bus number 2
[ 2.681693] xhci_hcd 0000:04:00.0: Host supports USB 3.0 SuperSpeed
[ 2.688731] usb usb2: We don’t know the algorithms for LPM for this host, disabling LPM.
[ 2.696164] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.11
[ 2.704309] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 2.711518] usb usb2: Product: xHCI Host Controller
[ 2.716379] usb usb2: Manufacturer: Linux 5.11.10 xhci-hcd
[ 2.721851] usb usb2: SerialNumber: 0000:04:00.0
[ 2.726710] hub 2-0:1.0: USB hub found
[ 2.730220] hub 2-0:1.0: 2 ports detected
[ 2.734539] usbcore: registered new interface driver usb-storage
[ 2.740290] usbcore: registered new interface driver usbserial_generic
[ 2.746713] usbserial: USB Serial support registered for generic
[ 2.752795] mousedev: PS/2 mouse device common for all mice
[ 2.758300] usbcore: registered new interface driver usbtouchscreen
[ 2.764545] i2c /dev entries driver
[ 2.768632] poweroff-gpio gpio-poweroff: gpio_poweroff_probe: pm_power_off function already registered
[ 2.777287] poweroff-gpio: probe of gpio-poweroff failed with error -16
[ 2.784099] lm90 0-004c: supply vcc not found, using dummy regulator
[ 2.791938] EDAC DEVICE0: Giving out device to module Sifive ECC Manager controller sifive_edac.0: DEV sifive_edac.0 (INTERRUPT)
[ 2.828135] mmc_spi spi1.0: SD/MMC host mmc0, no DMA, no WP, no poweroff, cd polling
[ 2.835680] ledtrig-cpu: registered to indicate activity on CPUs
[ 2.841272] usbcore: registered new interface driver usbhid
[ 2.846671] usbhid: USB HID core driver
[ 2.850785] usbcore: registered new interface driver snd-usb-audio
[ 2.857341] NET: Registered protocol family 10
[ 2.862096] Segment Routing with IPv6
[ 2.865071] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[ 2.871413] NET: Registered protocol family 17
[ 2.875530] 9pnet: Installing 9P2000 support
[ 2.879622] Key type dns_resolver registered
[ 2.884018] Loading compiled-in X.509 certificates
[ 2.889988] ALSA device list:
[ 2.892208] No soundcards found.
[ 2.896373] Waiting for root device /dev/mmcblk0p4…
[ 2.943567] mmc0: host does not support reading read-only switch, assuming write-enable
[ 2.950829] mmc0: new SDHC card on SPI
[ 2.955865] mmcblk0: mmc0:0000 SD32G 29.7 GiB
[ 2.992158] mmcblk0: p1 p2 p3 p4
[ 3.022774] usb 1-2: new high-speed USB device number 2 using xhci_hcd
[ 3.091523] EXT4-fs (mmcblk0p4): INFO: recovery required on readonly filesystem
[ 3.098088] EXT4-fs (mmcblk0p4): write access will be enabled during recovery
[ 3.268741] usb 1-2: New USB device found, idVendor=174c, idProduct=2074, bcdDevice= 0.01
[ 3.276163] usb 1-2: New USB device strings: Mfr=2, Product=3, SerialNumber=1
[ 3.283280] usb 1-2: Product: AS2107
[ 3.286840] usb 1-2: Manufacturer: ASMedia
[ 3.290923] usb 1-2: SerialNumber: USB2.0 Hub
[ 3.364123] hub 1-2:1.0: USB hub found
[ 3.367309] hub 1-2:1.0: 4 ports detected
[ 3.415672] usb 2-2: new SuperSpeed Gen 1 USB device number 2 using xhci_hcd
[ 3.446446] usb 2-2: New USB device found, idVendor=174c, idProduct=3074, bcdDevice= 0.01
[ 3.453866] usb 2-2: New USB device strings: Mfr=2, Product=3, SerialNumber=1
[ 3.460991] usb 2-2: Product: AS2107
[ 3.464544] usb 2-2: Manufacturer: ASMedia
[ 3.468628] usb 2-2: SerialNumber: USB2.0 Hub
[ 3.565266] hub 2-2:1.0: USB hub found
[ 3.568979] hub 2-2:1.0: 4 ports detected
[ 4.428892] EXT4-fs (mmcblk0p4): recovery complete
[ 4.439087] EXT4-fs (mmcblk0p4): mounted filesystem with ordered data mode. Opts: (null). Quota mode: none.
[ 4.448144] VFS: Mounted root (ext4 filesystem) readonly on device 179:4.
[ 4.458207] devtmpfs: mounted
[ 4.461522] Freeing unused kernel memory: 392K
[ 4.465215] Kernel memory protection not selected by kernel config.
[ 4.471468] Run /sbin/init as init process
[ 8.450821] systemd[1]: System time before build time, advancing clock.
[ 8.897903] systemd[1]: systemd 247.3+ running in system mode. (+PAM -AUDIT -SELINUX +IMA -APPARMOR -SMACK +SYSVINIT +UTMP -LIBCRYPTSETUP)
[ 8.919479] systemd[1]: Detected architecture riscv64.

Welcome to FreedomUSDK 2021.03.01 (2021March)!

[ 8.942413] systemd[1]: Set hostname to .
[ 10.789650] systemd[1]: Queued start job for default target Graphical Interface.
[ 10.798966] random: systemd: uninitialized urandom read (16 bytes read)
[ 10.818670] systemd[1]: Created slice system-getty.slice.
[ OK ] Created slice system-getty.slice.
[ 10.829688] random: systemd: uninitialized urandom read (16 bytes read)
[ 10.836396] systemd[1]: Created slice system-modprobe.slice.
[ OK ] Created slice system-modprobe.slice.
[ 10.847798] random: systemd: uninitialized urandom read (16 bytes read)
[ 10.854784] systemd[1]: Created slice system-serial\x2dgetty.slice.
[ OK ] Created slice system-serial\x2dgetty.slice.
[ 10.867855] systemd[1]: Created slice User and Session Slice.
[ OK ] Created slice User and Session Slice.
[ 10.879509] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
[ OK ] Started Dispatch Password ��…ts to Console Directory Watch.
[ 10.895711] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[ OK ] Started Forward Password R��…uests to Wall Directory Watch.
[ 10.911759] systemd[1]: Reached target Paths.
[ OK ] Reached target Paths.
[ 10.920389] systemd[1]: Reached target Remote File Systems.
[ OK ] Reached target Remote File Systems.
[ 10.932186] systemd[1]: Reached target Slices.
[ OK ] Reached target Slices.
[ 10.942033] systemd[1]: Reached target Swap.
[ OK ] Reached target Swap.
[ 10.950532] systemd[1]: Reached target System Time Set.
[ OK ] Reached target System Time Set.
[ 10.961880] systemd[1]: Reached target System Time Synchronized.
[ OK ] Reached target System Time Synchronized.
[ 11.123638] systemd[1]: Listening on RPCbind Server Activation Socket.
[ OK ] Listening on RPCbind Server Activation Socket.
[ 11.137248] systemd[1]: Reached target RPC Port Mapper.
[ OK ] Reached target RPC Port Mapper.
[ 11.148286] systemd[1]: Listening on initctl Compatibility Named Pipe.
[ OK ] Listening on initctl Compatibility Named Pipe.
[ 11.164449] systemd[1]: Condition check resulted in Journal Audit Socket being skipped.
[ 11.172277] systemd[1]: Listening on Journal Socket (/dev/log).
[ OK ] Listening on Journal Socket (/dev/log).
[ 11.185068] systemd[1]: Listening on Journal Socket.
[ OK ] Listening on Journal Socket.
[ 11.195352] systemd[1]: Listening on udev Control Socket.
[ OK ] Listening on udev Control Socket.
[ 11.206785] systemd[1]: Listening on udev Kernel Socket.
[ OK ] Listening on udev Kernel Socket.
[ 11.218018] systemd[1]: Listening on User Database Manager Socket.
[ OK ] Listening on User Database Manager Socket.
[ 11.230973] systemd[1]: Condition check resulted in Huge Pages File System being skipped.
[ 11.240803] systemd[1]: Mounting POSIX Message Queue File System…
Mounting POSIX Message Queue File System…
[ 11.255021] systemd[1]: Mounting Kernel Debug File System…
Mounting Kernel Debug File System…
[ 11.267656] systemd[1]: Mounting Kernel Trace File System…
Mounting Kernel Trace File System…
[ 11.283692] systemd[1]: Mounting Temporary Directory (/tmp)…
Mounting Temporary Directory (/tmp)…
[ 11.297499] systemd[1]: Starting Create list of static device nodes for the current kernel…
Starting Create list of st��…odes for the current kernel…
[ 11.315410] systemd[1]: Starting Load Kernel Module configfs…
Starting Load Kernel Module configfs…
[ 11.328497] systemd[1]: Starting Load Kernel Module drm…
Starting Load Kernel Module drm…
[ 11.340979] systemd[1]: Starting Load Kernel Module fuse…
Starting Load Kernel Module fuse…
[ 11.367212] systemd[1]: Starting RPC Bind…
Starting RPC Bind…
[ 11.377750] systemd[1]: Starting File System Check on Root Device…
Starting File System Check on Root Device…
[ 11.936943] systemd[1]: Condition check resulted in Load Kernel Modules being skipped.
[ 11.946723] systemd[1]: Mounting NFSD configuration filesystem…
Mounting NFSD [ 11.954849] systemd[1]: Starting Apply Kernel Variables…
[ 11.963352] systemd[1]: Starting Coldplug All udev Devices…

     Starting Apply Kernel Variables...
     Starting Coldplug All udev Devices  11.978644] systemd[1]: Mounted POSIX Message Queue File System.

[ 11.985041] systemd[1]: Mounted Kernel Debug File System.
[ 11.990305] systemd[1]: Mounted Kernel Trace File System.
[ 11.995689] systemd[1]: Mounted Temporary Directory (/tmp).
[0m…
[ 12.001951] systemd[1]: Finished Create list of static device nodes for the current kernel.
[[ 12.010785] systemd[1]: modprobe@configfs.service: Succeeded.
OK 12.017025] systemd[1]: Finished Load Kernel Module configfs.
0m] Moun[ 12.023613] systemd[1]: modprobe@drm.service: Succeeded.
ted POS[ 12.030300] systemd[1]: Finished Load Kernel Module drm.
[ 12.035902] systemd[1]: Mounted NFSD configuration filesystem.
IX Message Queue File System[ 12.044100] systemd[1]: Mounting Kernel Configuration File System…
.
[ OK ] Mounted 12.053155] random: fast init done
[ 12.053218] systemd[1]: Mounted Kernel Configuration File System.
[0;1;39mKernel Debug File System.
[ OK ] Mounted Kernel Trace File System.
[ OK ] Mounted Temporary Directory (/tmp).
[ OK ] Finished Create list of st��… nodes for the current kernel.
[ OK ] Finished Load Kernel Module configfs.
[ OK ] Finished Load Kernel Module drm.
[ OK ] Mounted NFSD configuration filesystem.
Mounting Kernel Configuration File System…
[ OK ] Mounted Kernel Configuration File System.
[ 12.788802] fuse: init (API version 7.33)
[ 12.794546] systemd[1]: modprobe@fuse.service: Succeeded.
[ 12.799959] systemd[1]: Finished Load Kernel Module fuse.
[ OK ] Finished 12.807728] systemd[1]: Mounting FUSE Control File System…
;1;39mLoad Kernel Module fuse 12.815893] systemd[1]: Mounted FUSE Control File System.
m.
Mounting FUSE Control File System…
[ OK ] Mounted FUSE Control File System.
[ 12.977533] systemd[1]: Finished Apply Kernel Variables.
[ OK ] Finished Apply Kernel Variables.
[ 13.693528] systemd[1]: Started RPC Bind.
[ OK ] Started RPC Bind.
[ 14.054273] systemd[1]: Finished Coldplug All udev Devices.
[ OK ] Finished Coldplug All udev Devices.
[ 14.788862] systemd[1]: Finished File System Check on Root Device.
[ OK ] Finished File System Check on Root Device.
[ 14.804132] systemd[1]: Starting Remount Root and Kernel File Systems…
Starting Remount Root and Kernel File Systems…
[ 14.834620] EXT4-fs (mmcblk0p4): re-mounted. Opts: (null). Quota mode: none.
[ 14.844177] systemd[1]: Finished Remount Root and Kernel File Systems.
[ OK ] Finished Remount Root and Kernel File Systems.
[ 14.864575] systemd[1]: Condition check resulted in Rebuild Hardware Database being skipped.
[ 14.872502] systemd[1]: Condition check resulted in Platform Persistent Storage Archival being skipped.
[ 14.881805] systemd[1]: Condition check resulted in Create System Users being skipped.
[ 14.892067] systemd[1]: Starting Create Static Device Nodes in /dev…
Starting Create Static Device Nodes in /dev…
[ 15.041105] systemd[1]: Finished Create Static Device Nodes in /dev.
[ OK ] Finished Create Static Device Nodes in /dev.
[ 15.054023] systemd[1]: Reached target Local File Systems (Pre).
[ OK ] Reached target Local File Systems (Pre).
[ 15.072159] systemd[1]: Mounting /var/volatile…
Mounting /var/volatile…
[ 15.083973] systemd[1]: Started Entropy Daemon based on the HAVEGE algorithm.
[ OK ] Started Entropy Daemon based on the HAVEGE algorithm.
[ 15.103295] systemd[1]: Starting Journal Service…
Starting Journal Service…
[ 15.117100] systemd[1]: Starting Rule-based Manager for Device Events and Files…
Starting Rule-based Manage��…for Device Events and Files…
[ 15.135040] systemd[1]: Mounted /var/volatile.
[ OK ] Mounted /var/volatile.
[ 15.144941] systemd[1]: Condition check resulted in Bind mount volatile /var/cache being skipped.
[ 15.153213] systemd[1]: Condition check resulted in Bind mount volatile /var/lib being skipped.
[ 15.164384] systemd[1]: Starting Load/Save Random Seed…
Starting Load/Save Random Seed…
[ 15.174916] systemd[1]: Condition check resulted in Bind mount volatile /var/spool being skipped.
[ 15.183368] systemd[1]: Condition check resulted in Bind mount volatile /srv being skipped.
[ 15.520099] systemd[1]: Started Journal Service.
[ OK ] Started Journal Service.
Starting Flush Journal to Persistent Storage…
[ 15.622066] systemd-journald[134]: Received client request to flush runtime journal.
[ OK ] Finished Flush Journal to Persistent Storage.
[ OK ] Started Rule-based Manager for Device Events and Files.
[ 16.946700] random: crng init done
[ 16.949374] random: 7 urandom warning(s) missed due to ratelimiting
[ OK ] Finished Load/Save Random Seed.
[ OK ] Found device /dev/mmcblk0p3.
Mounting /boot…
[ 20.423032] FAT-fs (mmcblk0p3): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
[ OK ] Mounted /boot.
[ OK ] Reached target Local File Systems.
Starting Create Volatile Files and Directories…
[ OK ] Finished Create Volatile Files and Directories.
Starting Network Name Resolution…
Starting Update UTMP about System Boot/Shutdown…
[ OK ] Finished Update UTMP about System Boot/Shutdown.
[ OK ] Reached target System Initialization.
[ OK ] Started Daily rotation of log files.
[ OK ] Started Daily Cleanup of Temporary Directories.
[ OK ] Listening on Avahi mDNS/DNS-SD Stack Activation Socket.
[ OK ] Listening on D-Bus System Message Bus Socket.
[ OK ] Reached target Sockets.
[ OK ] Reached target Basic System.
[ OK ] Started Job spooling tools.
Starting NTP client/server…
Starting Console System Startup Logging…
[ OK ] Started Periodic Command Scheduler.
[ OK ] Started D-Bus System Message Bus.
Starting IPv6 Packet Filtering Framework…
Starting IPv4 Packet Filtering Framework…
Starting Telephony service…
Starting User Login Management…
[ OK ] Started Xserver startup without a display manager.
[ OK ] Started Network Name Resolution.
[ OK ] Reached target Host and Network Name Lookups.
Starting Avahi mDNS/DNS-SD Stack…
[ OK ] Finished Console System Startup Logging.
[ OK ] Started NTP client/server.
[ OK ] Finished IPv6 Packet Filtering Framework.
[ OK ] Finished IPv4 Packet Filtering Framework.
[ OK ] Reached target Network (Pre).
Starting Network Manager…
[ OK ] Started User Login Management.
[ 37.856645] macb 10090000.ethernet eth0: configuring for phy/gmii link mode

FreedomUSDK 2021.03.01 unmatched ttySIF0

unmatched login:

when I boot with a custom image, as attached earlier the get the same magic byte error and the image is not booting & getting kernel panic error.
Is it u-boot firmware code that is corrupted and that needs to be fixed or else it’s a hardware problem?
is it possible to fix it by my side or else need to send it to sifive Hardware team?

Thanks,
Babu P

Hello Everyone

I Found the root cause for the issue in my image with linux kernel 5.10.41

In EEPROM from starting address to 4 bytes was the magic number.
The correct magic number is 0xf1, 0x5e, 0x50, 0x45 but in my case in place of 0x50 , 0x90 was there.
So Magic number was didn’t match so CRC also didn’t match.

and also when i boot the sifive default the image its booting fine & i built image with linux kernel 5.12.x. these also working fine.

i taken sifive default image and manually i changed magic number 0x90 to 0x50. Now my image with linux kernel 5.10.41 is working fine without kernel panic.

Thanks
Babu P