Kernel errors on loaded modules


(Carlos Eduardo) #1

Hi all, I’ve started looking into some development in Risc-V and set a Qemu VM locally. I followed the documentation from Debian (https://wiki.debian.org/RISC-V#Setting_up_a_riscv64_virtual_machine) and built my own Kernel version 4.20.11from upstream repo (https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git).

$ uname -a
Linux debian-riscv 4.20.11 #2 SMP Thu Feb 21 14:49:16 GMT 2019 riscv64 GNU/Linux

$ lscpu
Architecture:        riscv64
Byte Order:          Little Endian
CPU(s):              4
On-line CPU(s) list: 0-3
Thread(s) per core:  1
Core(s) per socket:  1
Socket(s):           4

I added a some modules most in network and when I try to insert them, I see the following messages:

$ sudo modprobe openvswitch
modprobe: ERROR: could not insert 'openvswitch': Invalid argument
[   69.716000] openvswitch: target ffffffe000033720 can not be addressed by the 32-bit offset from PC = 000000002964b5db

I see something similar on trying to list iptables rules:

$ sudo iptables -L
iptables: Operation not supported.
nf_tables: target ffffffe000033720 can not be addressed by the 32-bit offset from PC = 000000009420663f
[  120.828000] nf_tables: target ffffffe000033720 can not be addressed by the 32-bit offset from PC = 00000000abd60238
[  120.888000] nf_tables: target ffffffe000033720 can not be addressed by the 32-bit offset from PC = 000000002acc798b
[  120.944000] nf_tables: target ffffffe000033720 can not be addressed by the 32-bit offset from PC = 000000000ebbaeb7
[  121.008000] nf_tables: target ffffffe000033720 can not be addressed by the 32-bit offset from PC = 0000000030564cd6

I don’t know if this is the correct place to post this but point me if I should open an issue somewhere else.

Thanks


(Jim Wilson) #2

This is generally a poor place to ask a question, unless it is a question about SiFive hardware that only SiFive can answer. A debian mailing list or IRC channel would be a better place for a debian specific question. Or if it not debian specific, you might try the riscv linux kernel mailing list.

Fedora only recently got linux kernel modules working. Maybe Debian doesn’t have them working yet.


(Carlos Eduardo) #3

Thanks for the tip Jim, I’ll check the Fedora and Kernel mailing lists. Also I joined Debian Risc-V IRC channel.