Comments (11)
Just solved the user/password issue.
from freedom-u-sdk.
QEMU has not been updated for 1.10 yet. You will need to use Spike or rocket-chip on FPGA to boot the 1.10 branch.
from freedom-u-sdk.
I see, thanks for the information. Are there any good resources to look at to understand the current state of everything?
from freedom-u-sdk.
How do you mean by that? Changes so far in 1.10? State of repositories? Can you ask a narrower question?
from freedom-u-sdk.
The state of the repositories. Where can you see which versions of tools, Linux, and simulators/emulators work together? It looks like a soup of branches without a clear picture of what it's all for after researching and building various projects to see what works and what doesn't.
from freedom-u-sdk.
@Walkerks If you look at QEMU, the readme lists a specific git revision of (1.9.1) freedom-u-sdk which is known to be able to generate images that work on qemu, and everything else is submoduled from there. When I update qemu to add priv-1.10 support, I'll add instructions with sufficient detail to produce a matching boot image for that as well.
from freedom-u-sdk.
One last thing, I'm attempting to build a kernel module using Linux in freedom-u-sdk, but it doesn't seem like gcc-6.1.0 is smart enough. It gives the following error. I know the module can build against my host.
make[1]: Entering directory '/home/walker/Desktop/freedom-u-sdk/work/linux'
CC [M] /home/walker/Desktop/freedom-u-sdk/work/contextswitchtest/contextswitchtest.o
Building modules, stage 2.
MODPOST 1 modules
WARNING: "printk" [/home/walker/Desktop/freedom-u-sdk/work/contextswitchtest/contextswitchtest.ko] undefined!
CC /home/walker/Desktop/freedom-u-sdk/work/contextswitchtest/contextswitchtest.mod.o
/home/walker/Desktop/freedom-u-sdk/work/contextswitchtest/contextswitchtest.mod.c:8:1: error: variable '__this_module' has initializer but incomplete type
__attribute__((section(".gnu.linkonce.this_module"))) = {
^~~~~~~~~~~~~
/home/walker/Desktop/freedom-u-sdk/work/contextswitchtest/contextswitchtest.mod.c:9:2: error: unknown field 'name' specified in initializer
.name = KBUILD_MODNAME,
^
/home/walker/Desktop/freedom-u-sdk/work/contextswitchtest/contextswitchtest.mod.c:9:10: warning: excess elements in struct initializer
.name = KBUILD_MODNAME,
^
<command-line>:0:16: note: in definition of macro 'KBUILD_STR'
/home/walker/Desktop/freedom-u-sdk/work/contextswitchtest/contextswitchtest.mod.c:9:10: note: in expansion of macro 'KBUILD_MODNAME'
.name = KBUILD_MODNAME,
^~~~~~~~~~~~~~
/home/walker/Desktop/freedom-u-sdk/work/contextswitchtest/contextswitchtest.mod.c:9:10: note: (near initialization for '__this_module')
.name = KBUILD_MODNAME,
^
<command-line>:0:16: note: in definition of macro 'KBUILD_STR'
/home/walker/Desktop/freedom-u-sdk/work/contextswitchtest/contextswitchtest.mod.c:9:10: note: in expansion of macro 'KBUILD_MODNAME'
.name = KBUILD_MODNAME,
^~~~~~~~~~~~~~
/home/walker/Desktop/freedom-u-sdk/work/contextswitchtest/contextswitchtest.mod.c:10:2: error: unknown field 'init' specified in initializer
.init = init_module,
^
/home/walker/Desktop/freedom-u-sdk/work/contextswitchtest/contextswitchtest.mod.c:10:10: warning: excess elements in struct initializer
.init = init_module,
^~~~~~~~~~~
/home/walker/Desktop/freedom-u-sdk/work/contextswitchtest/contextswitchtest.mod.c:10:10: note: (near initialization for '__this_module')
/home/walker/Desktop/freedom-u-sdk/work/contextswitchtest/contextswitchtest.mod.c:14:2: error: unknown field 'arch' specified in initializer
.arch = MODULE_ARCH_INIT,
^
/home/walker/Desktop/freedom-u-sdk/work/contextswitchtest/contextswitchtest.mod.c:14:10: error: 'MODULE_ARCH_INIT' undeclared here (not in a function)
.arch = MODULE_ARCH_INIT,
^~~~~~~~~~~~~~~~
/home/walker/Desktop/freedom-u-sdk/work/contextswitchtest/contextswitchtest.mod.c:14:10: warning: excess elements in struct initializer
/home/walker/Desktop/freedom-u-sdk/work/contextswitchtest/contextswitchtest.mod.c:14:10: note: (near initialization for '__this_module')
/home/walker/Desktop/freedom-u-sdk/work/contextswitchtest/contextswitchtest.mod.c:7:25: error: storage size of '__this_module' isn't known
__visible struct module __this_module
^~~~~~~~~~~~~
/home/walker/Desktop/freedom-u-sdk/linux/scripts/Makefile.modpost:114: recipe for target '/home/walker/Desktop/freedom-u-sdk/work/contextswitchtest/contextswitchtest.mod.o' failed
make[4]: *** [/home/walker/Desktop/freedom-u-sdk/work/contextswitchtest/contextswitchtest.mod.o] Error 1
/home/walker/Desktop/freedom-u-sdk/linux/Makefile:1432: recipe for target 'modules' failed
make[3]: *** [modules] Error 2
Makefile:146: recipe for target 'sub-make' failed
make[2]: *** [sub-make] Error 2
Makefile:24: recipe for target '__sub-make' failed
make[1]: *** [__sub-make] Error 2
make[1]: Leaving directory '/home/walker/Desktop/freedom-u-sdk/work/linux'
Makefile:15: recipe for target 'all' failed
make: *** [all] Error 2
If I replace the toolchain in freedom-u-sdk to gcc-7 and change a few flags in the makefiles, the build will still fail due to an undetermined reasons. If I build freedom-u-sdk with gcc-6.1.0 and attempt to build the kernel module with gcc-7, in hopes it can understand what the kernel is doing, it complains about endianness. Is there any hope?
from freedom-u-sdk.
```
First, block code syntax in Markdown (used here) is
three ` on a line before and after the code block.
```
Second I don't think the 1.9.1 kernel supports loading modules, so even if you managed to build this you couldn't use it?
from freedom-u-sdk.
I wasn't really sure if it did or not? It seems to have insmod, modprob, and rmmod utilities, so I assumed it might work.
from freedom-u-sdk.
QEMU still isn't up to date with the priv-1.10 spec, but we're working on it.
from freedom-u-sdk.
This branch is gone now and qemu works with master, so closing this issue.
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
- Version magic issue for compiling kernel module when passing in another version of Linux kernel HOT 1
- 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.