Booting error


(snathicktechno) #1

ERROR: Did not find a cmdline Flattened Device Tree

Could not find a valid device tree

RISC-V # go 0x80000000

Starting application at 0x80000000 …

exception code: 5 , , epc fffcb380 , ra fffcbe62

code: 5 , , epc fffcb380 , ra fffcbe62

exception code: 5 , , epc fffcb380 , ra fffcbe62

exception code: 5 , , epc fffcb380 , ra fffcbe62

exception code: 5 , , epc fffcb380 , ra fffcbe62

exception code: 5 , , epc fffcb380 , ra fffcbe62

exception code: 5 , , epc fffcb380 , ra fffcbe62

exception code: 5 , , epc fffcb380 , ra fffcbe62

exception code: 5 , , epc fffcb380 , ra fffcbe62

exception code: 5 , , epc fffcb380 , ra fffcbe62

how to resolve this issue

thanking you
snathicktechno


(Wladimir van der Laan) #2

It looks like it loads from non-available memory.
(code 5 is “Load access fault” according to table 3.6 in the priv ISA spec)
Without knowing what bootloader and what application this is, anything else is hard to say.


(Troy Benjegerdes) #3

Using https://github.com/sifive/freedom-u-sdk will probably be a lot easier to deal with (and for us to help debug). If cloning the repo and typing ‘make’ does not produce something useful please file an issue with your host system details.


(snathicktechno) #4

HiFive-Unleashed # bootm

Loading kernel from FIT Image at a0000000 …

Using ‘config-1’ configuration
Trying ‘bbl’ kernel subimage
Description: BBL/SBI/riscv-pk
Type: Kernel Image
Compression: uncompressed
Data Start: 0xa00000d4
Data Size: 74266 Bytes = 72.5 KiB
Architecture: RISC-V
OS: Linux
Load Address: 0x80000000
Entry Point: 0x80000000
Hash algo: sha256
Hash value: b87156a9d2f4d3485c735bb9a84a623f0c4d82ecc0ec3363fd7f5e519cc6f925
Verifying Hash Integrity … sha256+ OK

Loading fdt from FIT Image at a0000000 …

Using ‘config-1’ configuration
Trying ‘fdt’ fdt subimage
Description: unavailable
Type: Flat Device Tree
Compression: uncompressed
Data Start: 0xa0e9d328
Data Size: 15765 Bytes = 15.4 KiB
Architecture: RISC-V
Load Address: 0x81f00000
Hash algo: sha256
Hash value: 90317bc02979b1681313c8df7f992801eeecc0600ae9e6d4e0f37ab5d1c6bbbb
Verifying Hash Integrity … sha256+ OK
Loading fdt from 0xa0e9d328 to 0x81f00000
Booting using the fdt blob at 0x81f00000

Loading loadables from FIT Image at a0000000 …

Trying ‘kernel’ loadables subimage
Description: Linux kernel
Type: Kernel Image
Compression: uncompressed
Data Start: 0xa00123e8
Data Size: 10781356 Bytes = 10.3 MiB
Architecture: RISC-V
OS: Linux
Load Address: 0x80200000
Entry Point: unavailable
Hash algo: sha256
Hash value: 36be1255e2afb9ca544a14a12c68cdd8dd97640d96ca6928855b709eefaaf343
Verifying Hash Integrity … sha256+ OK
Loading loadables from 0xa00123e8 to 0x80200000

Loading loadables from FIT Image at a0000000 …

Trying ‘ramdisk’ loadables subimage
Description: buildroot initramfs
Type: RAMDisk Image
Compression: gzip compressed
Data Start: 0xa0a5a780
Data Size: 4467424 Bytes = 4.3 MiB
Architecture: RISC-V
OS: Linux
Load Address: 0x82000000
Entry Point: unavailable
Hash algo: sha256
Hash value: d7ecd9c512428a64f4451e7a9608634e9854774d26592cb00df9f045c7ad6d79
Verifying Hash Integrity … sha256+ OK
Loading loadables from 0xa0a5a780 to 0x82000000
Loading Kernel Image … OK
Using Device Tree in place at 0000000081f00000, end 0000000081f06d94

Starting kernel …

it is not loading linux