We build our labeled RISC-V prototype based on rocketchip.
lvna-system / labeled-risc-v Goto Github PK
View Code? Open in Web Editor NEWLicense: Other
License: Other
We build our labeled RISC-V prototype based on rocketchip.
Describe the bug
Hi, I want to boot the original labeled RISC-V on the zcu102 board, but after following the steps in the README, I get the following u-boot error:
SF: unrecognized JEDEC id bytes: 00, 00, 00
Failed to initialize SPI flash at 0:0 (error -2)
SCRIPT FAILED: continuing...
starting USB...
USB0: "Synchronous Abort" handler, esr 0x96000210
To Reproduce
By following all steps in fpga/README.md and fpga/boot/README.md. I already applied the zcu102 patch.
Expected behavior
I can successfully emulate with verilator. And I used another pre-build image to boot the zcu102 board, it works well. In the pre-built u-boot image, I can check the flash model info.
ZynqMP> sf probe
SF: Detected n25q512a with page size 512 Bytes, erase size 128 KiB, total 128 MiB
So I think it is not a hardware problem.
Screenshots
The serial output log:
Xilinx Zynq MP First Stage Boot Loader
Release 2019.1 Sep 9 2022 - 17:08:10
NOTICE: ATF running on XCZU9EG/silicon v4/RTL5.1 at 0xfffea000
NOTICE: BL31: Secure code at 0x0
NOTICE: BL31: Non secure code at 0x8000000
NOTICE: BL31: v2.0(release):xilinx-v2019.1
NOTICE: BL31: Built : 09:35:16, Sep 8 2022
PMUFW: v1.1U-Boot 2019.01 (Sep 08 2022 - 09:37:49 +0800)
Model: ZynqMP ZCU102 Rev1.0
Board: Xilinx ZynqMP
DRAM: 4 GiB
EL Level: EL2
Chip ID: zu9eg
MMC: mmc@ff170000: 0
Loading Environment from FAT... *** Warning - bad CRC, using default environmentIn: serial@ff000000
Out: serial@ff000000
Err: serial@ff000000
Bootmode: LVL_SHFT_SD_MODE1
Reset reason: EXTERNAL
Net: ZYNQ GEM: ff0e0000, phyaddr c, interface rgmii-idWarning: ethernet@ff0e0000 (eth0) using random MAC address - 0a:64:48:dd:e8:1e
eth0: ethernet@ff0e0000
Hit any key to stop autoboot: 0
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
MMC Device 1 not found
no mmc device at slot 1
SF: unrecognized JEDEC id bytes: 00, 00, 00
Failed to initialize SPI flash at 0:0 (error -2)
SCRIPT FAILED: continuing...
starting USB...
USB0: "Synchronous Abort" handler, esr 0x96000210
elr: 0000000008059418 lr : 0000000008059414 (reloc)
elr: 000000007ff36418 lr : 000000007ff36414
x0 : 00000000fe200000 x1 : 000000007decd050
x2 : 00000000fe200000 x3 : 000000007dec20e8
x4 : 0000000000000000 x5 : 0000000000000000
x6 : 000000007decb63c x7 : 0000000000000003
x8 : 000000007dec2e28 x9 : 0000000000000008
x10: 0000000000001ff4 x11: 000000007dec1fbc
x12: 0000000000001fad x13: 0000000000001fa4
x14: 000000007dec204c x15: 000000007dec2e28
x16: 0000000000008110 x17: 0000000000000000
x18: 000000007deccdc8 x19: 00000000fe200000
x20: 000000007decf970 x21: 000000007ff9bc50
x22: 0000000000000001 x23: 000000007decf950
x24: 000000007ff91d55 x25: 000000007ffade38
x26: 0000000000000000 x27: 0000000000000000
x28: 000000007deebab0 x29: 000000007dec2130Resetting CPU ...
ERROR ### Please RESET the board
Environment (optional, if necessary):
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.