LucasVella[m] has quit [Quit: Idle timeout reached: 172800s]
test925 has quit [Quit: Leaving]
test924 has joined #riscv
psydroid2 has joined #riscv
luca_ has joined #riscv
luca_ is now known as OwlWizard
coldfeet_ has joined #riscv
OwlWizard has quit [Quit: OwlWizard]
BootLayer has quit [Quit: Leaving]
Trifton has quit [Quit: ~~~RiDiN tHe WaVeS~~~]
Trifton has joined #riscv
coldfeet has quit [Quit: Lost terminal]
fuwei has joined #riscv
coldfeet_ has quit [Remote host closed the connection]
fuwei has quit [Ping timeout: 240 seconds]
fuwei has joined #riscv
raym has joined #riscv
BootLayer has joined #riscv
raym has quit [Client Quit]
raym has joined #riscv
raym has quit [Changing host]
raym has joined #riscv
josuah has joined #riscv
raym has quit [Client Quit]
raym has joined #riscv
hbx has joined #riscv
crabbedhaloablut has quit []
crabbedhaloablut has joined #riscv
coldfeet has joined #riscv
billchenchina has joined #riscv
sevan has quit [Ping timeout: 256 seconds]
sevan has joined #riscv
sevan has quit [Changing host]
sevan has joined #riscv
sevan has quit [Quit: upgrading]
JanC_ has joined #riscv
JanC is now known as Guest4395
Guest4395 has quit [Killed (molybdenum.libera.chat (Nickname regained by services))]
JanC_ is now known as JanC
felixonmars_ has joined #riscv
felixonmars has quit [Ping timeout: 255 seconds]
coldfeet has quit [Ping timeout: 255 seconds]
klb has joined #riscv
shachaf has quit [Ping timeout: 255 seconds]
fuwei has quit [Ping timeout: 255 seconds]
fuwei has joined #riscv
klb2 has joined #riscv
coldfeet has joined #riscv
klb2 has quit [Changing host]
klb2 has joined #riscv
shachaf has joined #riscv
crabbedhaloablut has quit [Ping timeout: 255 seconds]
crabbedhaloablut has joined #riscv
klb has quit [Ping timeout: 268 seconds]
klb3 has joined #riscv
<klb3>
Hello! I meet problem when cross-compile a kernel module for riscv64 on amd64. I use command like 'make -C $(KERNELDIR) M=$(PWD) ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_COMPILE) modules' but get error that "missing argument to '-march='". I need to use -march=rv64i but how to add this argument in this case? Appreciate!
felixonmars_ is now known as felixonmars
klb64 has joined #riscv
klb2 has quit [Ping timeout: 268 seconds]
klb2 has joined #riscv
klb3 has quit [Ping timeout: 260 seconds]
klb2 has quit [Client Quit]
<sorear>
this isn't your problem (I find the linux build system confusing on a good day) but linux doesn't support -march=rv64i, the minimum is rv64ima
<sorear>
if you have a correctly configured cross compiler you don't need to pass -march options, that's been automatic whenever I've gotten the makefiles to work at all
<dh`>
a is hard to do without, m seems odd
<dh`>
but I suppose there is probably no linux-sized hw without m
<sorear>
it should automatically pick rv32ima or rv64ima depending on ARCH_RV32I and ARCH_RV64I in Kconfig; are you somehow trying to build modules without Kconfig from the kernel?
<sorear>
did you build a kernel in KERNELDIR? I'm wondering now if there's magic that's supposed to pick up config from the running system
<klb64>
No. I am building the module on a amd64 linux(5.15.0-111-generic) but the target is riscv64 in a vm (6.8.12-riscv64)
coldfeet has quit [Remote host closed the connection]
<klb64>
I wonder if I can change KERNELDIR to the 6.8.12-riscv64 but on the former machine. I have no idea how to config the cross compile toolchain now.
<klb64>
I got the suggestion that compile the module just in the native platform to avoid cross compile. But it's funny that the VM have not any build-utils and network connection.
<sorear>
you absolutely need to point the kernel directory for the module build at the same kernel being used on the machine where the module is going to run
<sorear>
there's no module ABI compatibility between kernel versions
<sorear>
there is no module ABI compatibility between kernel *configurations*, either, so you need to find the .config from the kernel running on the VM and pass it to the module build ... somehow (not something I'm very familiar with)
coldfeet has joined #riscv
coldfeet has quit [Remote host closed the connection]
fuwei has quit [Ping timeout: 256 seconds]
fuwei has joined #riscv
Stat_headcrabed has joined #riscv
Stat_headcrabed has quit [Client Quit]
<klb64>
sorear: It's important for me. Thank you!
klb64 has quit [Quit: Client closed]
coldfeet has joined #riscv
coldfeet has quit [Remote host closed the connection]