|
arm-linux-gcc -D__KERNEL__ -I / friendly-arm / kernel / include -Wall -Wstrict-prototypes -Wno-trigraphs -Os -mapcs -fno-strict-aliasing -fno-common -fno-common -pipe -mapcs- 32 -march = armv4 -mtune = arm9tdmi -mshort-load-bytes -msoft-float -DKBUILD_BASENAME = matrix5-leds.c -DMODULE -c -o matrix5-leds.o matrix5-leds.c
I saw from the Internet that my driver was compiled this way, and the program was also found online. I just bought a development board, I just want to try to compile it successfully, but when I burn it to the board, I use the insmod prompt No module found in object
insmod: cannot insert `/leds.o ': Invalid module format (-1): Exec format error
How to deal with it? |
|