kernel modules compilation - scripts/basic/fixdep: Exec format error
I'm trying to compile the https://gitlab.com/ohwr/project/general-cores/-/tree/master/software/i2c-ocores driver directly on the target but I get the following error after successful compilation:
scripts/basic/fixdep: Exec format error
Searching a bit further, it seems that the fixdep script, that comes with the linux-headers-6.6.40-g8c77c05e2636 debian package (cross-compiled I suppose from the xlnx-linux kernel) is not compiled for arm64:
file /usr/src/linux-headers-6.6.40-g8c77c05e2636/scripts/basic/fixdep
/usr/src/linux-headers-6.6.40-g8c77c05e2636/scripts/basic/fixdep: ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, BuildID[sha1]=b7802d3f29393d5a235b4456107c5bf5489d9b3b, for GNU/Linux 3.2.0, not stripped
I'm not sure but I suppose this should be fixed here? Debian of course does not have an arm64 package for that kernel version. @fvaga or @vamoirid can you assist with @alariasv being off?
PS there's actually a Makefile in that folder but it doesn't get far when running from the target:
make: *** No rule to make target '/scripts/gen-randstruct-seed.sh', needed by '/randstruct.seed'. Stop.
Edited by Pieter Van Trappen