Comments (7)
FWIW, I'm seeing the same problem after updating. Compiling with the --with-payload=[full path to vmlinux]
produces a hang. Running this through spike with logging, I'm seeing it get stuck in the memcpy function called by load_kernel_elf
. I'll do some more digging...
However, I'm somewhat curious as to the motivation for the BBL_PAYLOAD modifications. Does this mean that a bbl binary is tied to a specific kernel?
from riscv-pk.
I was a little premature with this. I think that memcpy just takes a long time if you're running spike with logging. It obviously gets past this because the logo gets printed. Still digging...
from riscv-pk.
I'm hitting the same issue, on spike it is repeatedly outputting this after printing the logo and motto:
core 0: exception trap_instruction_access_fault, epc 0x0000000000000000
from riscv-pk.
Hi guys. We are currently working on moving our software over to the new privilege 1.9 ISA. As a result, the versions of some things might be out of sync with each other.
If you want to use the stable 1.7 ISA, make sure you use the correct versions. You should use the master branch of riscv-tools (not master branch of riscv-pk) and build the version of bbl and spike provided as submodules. In addition, you should use master branch or linux-4.1.y-riscv branch of riscv-linux. These versions will allow you to use the old command line spike +disk=root.bin bbl vmlinux
.
If you want to use the new 1.9 ISA, you will need to check out the priv-1.9 branch of riscv-tools and build spike and bbl from that branch. In addition, you will need to use priv-1.9 or linux-4.1.y-riscv-priv-1.9 branch of riscv-linux. As you've already discovered, this version does not include HTIF support in bbl or vmlinux. As a result, you will need to configure bbl with the --with-payload option. Another consequence of removing HTIF is that the kernel will not have block device support so "+disk" will not work. For now, you can get around this by booting from an initramfs ramdisk instead of from a disk image.
We are sorry for the inconvenience this has caused and the lack of communication from our end. We hope to have the privilege 1.9 ISA finalized and the software in a stable state soon.
from riscv-pk.
All good. I've gotten myself into trouble here because I've assumed that rocket-chip master was somewhat stable, but that's been aggressively tracking the 1.9 WIP updates as of late.
Just to clarify, the --with-payload
is for specifying the kernel, i.e., vmlinux?
Also, you wouldn't happen to have an example for booting from an initramfs lying around? I'm out of my element here, but it seems like I'd need to configure the kernel to use an initramfs, package up the existing root filesystem image as an initramfs, and give this to the kernel at configure time so that it will automatically pull it in?
from riscv-pk.
I was able to get through what I think is a correct initramfs setup within the kernel just using menuconfig to enable initramfs and point it at a directory containing the root filesystem with a /init defined.
Using --with-payload
to point at this built vmlinux, I'm still seeing the behavior that @handong32 identified above, i.e., that core 0 exception trap/access fault on epc 0x0 repeating indefinitely.
Anyway, ignoring the result, does the methodology here seem correct?
from riscv-pk.
*** I was on the wrong version of riscv-linux. I'm booting with spike and kernel panicking (progress!). This appears to be a problem with my /init. Yes, --with-payload
does need to point at vmlinux.
Thanks for the help @zhemao -- your initial suggestion was enough to get me going here.
from riscv-pk.
Related Issues (20)
- error when build RV32 HOT 1
- RV32 bbl loader ../machine/minit.c:78: assertion failed: !(read_csr(misa) & fd_mask) HOT 1
- [question]A request on c-based bbl payload example
- Pk doesn't recognize vector instructions HOT 1
- Compiling error in Mac M1 HOT 1
- Error While configuring Berkeley boot loader HOT 2
- how to suppres "bbl loader" output by spike pk? HOT 1
- Redundant Load and Branch Instructions from HTIF while executing binaries HOT 3
- bbl error
- Loading large file into memory HOT 2
- could not open pk HOT 1
- "Cannot open output file dummy_payload" when building with docker HOT 1
- Linux kernel not showing output after earlycon0 disabled
- macOS 14,compile fail ,"./configure --prefix=/opt/riscv --with-arch=rv32gc --with-abi=ilp32d make linux"
- Issue with linux HOT 1
- pk: mmap based on `p_filesz` fails when it is 0 (zero) HOT 2
- Support RVC program without requiring RVC pk HOT 1
- Issue while installing the riscv-pk -- ../pk/pk.c:188: Error: unknown CSR `senvcfg' HOT 2
- GCC 15 + RVV cause illegal instruction sequence in PK HOT 1
- Issue when installing PK for RV32E
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from riscv-pk.