Comments (1)
The solution is as follows:
- Download Linux kernel source, check out any version you want
- Add the kernel module to /drivers directory to eliminate the need of compiling it as an out-of-tree kernel module. Detailed steps could be found here: https://stackoverflow.com/questions/11710022/adding-new-driver-code-to-linux-source-code.
- The link above targets ARM, not RISCV, so needs to change ARM to RISCV. The link above also mentions you need to modify
kernel_source/arch/arm/configs/--defconfig
, it just means the file withdefconfig
as suffix. So you could simply modify the filekernel_source/arch/riscv/configs/defconfig
to setCONFIG_YOUR_DRIVER=y
. - Re-compile the kernel source, and pass the generated Image file to
-kernel
option to QEMU, then run QEMU. - The kernel module will be automatically loaded had there been a device supported. Don't forget to
mknod
as what you would normally do afterinsmod
when dealing with out-of-tree kernel modules.
from freedom-u-sdk.
Related Issues (20)
- Repo unable to initialize/sync HOT 2
- Error `trace/trace-ebpf.h: No such file or directory` when building qemu HOT 2
- select kernel version HOT 1
- Error: object name conflicts in archive on ARM architecture HOT 7
- How to build SiFive Freedom-u-sdk from scratch? HOT 2
- nstall-buildtools: No such file or directory HOT 1
- released image can not boot up HiFive Unmatched HOT 1
- No official build for 2022.05 and 2022.06? HOT 1
- 2022.06 kas build error HOT 1
- freedom-u-sdk 2022.06 kas build error HOT 4
- freedom-u-sdk 2022.06 build qemuriscv64-cli.yml HOT 1
- Radeon RX550 4GB stuck during kernel boot HOT 2
- TensorFlow and Pytorch on unmatch machines
- No 'apt' or 'apt-get'
- fu740 pcie window too small
- Failed to access CSR 0xc01 from M-modesbi_trap_error
- ZSTD symbol undeclared HOT 4
- FUSDK 2023.06.00 build breaks while trying to build trace-cmd HOT 1
- Building unmatched on 2023.06/2023.04 fails for rust HOT 3
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 freedom-u-sdk.