Giter Club home page Giter Club logo

Comments (11)

Walkerks avatar Walkerks commented on June 28, 2024

Just solved the user/password issue.

from freedom-u-sdk.

sorear avatar sorear commented on June 28, 2024

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.

Walkerks avatar Walkerks commented on June 28, 2024

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.

sorear avatar sorear commented on June 28, 2024

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.

Walkerks avatar Walkerks commented on June 28, 2024

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.

sorear avatar sorear commented on June 28, 2024

@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.

Walkerks avatar Walkerks commented on June 28, 2024

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.

sorear avatar sorear commented on June 28, 2024
```
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.

Walkerks avatar Walkerks commented on June 28, 2024

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.

palmer-dabbelt avatar palmer-dabbelt commented on June 28, 2024

QEMU still isn't up to date with the priv-1.10 spec, but we're working on it.

from freedom-u-sdk.

terpstra avatar terpstra commented on June 28, 2024

This branch is gone now and qemu works with master, so closing this issue.

from freedom-u-sdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.