dobova86
Posts: 71
Joined: Wed Dec 05, 2012 5:32 pm

Headers 4.19.75-v7l+ (Buster on PI3B+) and modules compile

Fri Oct 11, 2019 10:03 am

I'm facing a new problem recompiling modules for qmi_wwan drivers on 4.19.75 new kernel.

Code: Select all

rm -rf *~ .tmp_versions modules.order Module.symvers
find . -type f -name *~ -o -name *.o -o -name *.ko -o -name *.cmd -o -name *.mod.c -o -name *.ur-safe |  xargs rm -rf
make -C /lib/modules/4.19.75-v7l+/build M=/home/pi/files/drivers modules
make[1]: ingresso nella directory "/usr/src/linux-headers-4.19.75-v7l+"
  CC [M]  /home/pi/files/drivers/./drivers/usb/serial/usb_wwan.o
[b]/bin/sh: 1: scripts/basic/fixdep: Exec format error[/b]
make[2]: *** [scripts/Makefile.build:310: /home/pi/files/drivers/./drivers/usb/serial/usb_wwan.o] Error 2
make[1]: *** [Makefile:1519: _module_/home/pi/files/drivers] Error 2
make[1]: uscita dalla directory "/usr/src/linux-headers-4.19.75-v7l+"
make: *** [Makefile:10: modules] Error 2
I have manually compiled fixdep, and than it worked again but then stops at genksyms with same error

fixdep create problems, and also genksyms .. What's changes with this new version headers? How can fix this?

Dome

dobova86
Posts: 71
Joined: Wed Dec 05, 2012 5:32 pm

Re: Headers 4.19.75-v7l+ (Buster on PI3B+) and modules compile

Fri Oct 11, 2019 11:49 am

For what I see, many scripts in the linux-headers-4.19.75-v7l+ dir don’t work. I needed to make recompile all scripts .. they are probably 64bit version :o

User avatar
DougieLawson
Posts: 40227
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Headers 4.19.75-v7l+ (Buster on PI3B+) and modules compile

Fri Oct 11, 2019 12:23 pm

75+ is 32-bit Arm6 (1B, Zero)
75-v7+ is 32-bit Arm7 (2B, 3B, 3A+, 3B+)
75-v7l+ is BCM2711 32-bit (4B)
75-v8+ is 64-bit Arm8 (3B, 3A+, later 2Bs, 3B+ or 4B)
Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All fake doctors are on my foes list.

Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

ShiftPlusOne
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 6259
Joined: Fri Jul 29, 2011 5:36 pm
Location: The unfashionable end of the western spiral arm of the Galaxy

Re: Headers 4.19.75-v7l+ (Buster on PI3B+) and modules compile

Fri Oct 11, 2019 12:24 pm


dobova86
Posts: 71
Joined: Wed Dec 05, 2012 5:32 pm

Re: Headers 4.19.75-v7l+ (Buster on PI3B+) and modules compile

Fri Oct 11, 2019 1:23 pm

Yes I suspected they were 64bit exec in erroneus directory. :twisted:

Anyway, my P3B+ is using kernel "v7l+" and not "v7+". New kernel v8 seems to be the default one with 4.19.75 also on PI3B+ .. is it true?
I had to force, in config.txt, the kernelv7l.img (i need 32bit kernel)

Return to “Advanced users”