Loading modules built from stock --verification failed 64

vadimbrk

Senior Member
Mar 14, 2013
113
59
0
Tel aviv
masahim.co.il
Hi,
I've enabled in the stock 4.3 kernel of N7100 fuse support.
The kernel compiles with fuse.ko module. When I try to load the kernel module I get:

insmod: init_module '/sdcard/fuse.ko' failed (Exec format error)

and in syslog:

<4>[21999.381035] c0 TIMA: lkmauth--wait_notify completed.
<6>[21999.381252] c0 mcdrvkmod mcd: 501|Err tima verify_module: Module Hash value does not match, addr:200000, len:ba780
<6>[21999.381386] c0 mcdrvkmod mcd: 501|Module Hash value not match
<6>[21999.381466] c0 mcdrvkmod mcd: 801|Trustlet tima_lkmauth::Returning 0
<3>[21999.382168] c0 TIMA: lkmauth--verification failed 64
<4>[21999.382243] c0 TIMA: MSG=lkm_modified; result (TIMA_RESULT=MSG=lkm_modified;)
<3>[21999.383274] c0 TIMA: lkmauth--unable to load kernel module; module len is 763776.

Apparently, the module is not signed. It was build from stock... I don't understand why it should be a problem...
Can I self sign it or something? Can I disable the signature checking in the stock kernel, flash it and then load the module?
I don't really need fuse... I want the rt73usb driver and fuse was just a test....an unsuccessful one..

I don't want to use custom roms with strange names....I like the stock one.

Any help appreciated :)
 

DerTeufel1980

Inactive Recognized Developer
Jul 31, 2011
10,302
27,636
0
Are you using the new bootloader of sammy 4.3?
If not, disable TIMA in your kernel, then your modules pass the check. This is how I made wifi work on the leaked 4.3 roms

Gesendet von meinem SAMSUNG-SGH-I317 mit Tapatalk 2
 
  • Like
Reactions: lucaoldb

vadimbrk

Senior Member
Mar 14, 2013
113
59
0
Tel aviv
masahim.co.il
Are you using the new bootloader of sammy 4.3?
If not, disable TIMA in your kernel, then your modules pass the check. This is how I made wifi work on the leaked 4.3 roms

Gesendet von meinem SAMSUNG-SGH-I317 mit Tapatalk 2
I have custom recovery so I guess that the bootloader is unlocked.
I want to understand the logic here, If I can't load a built from stock module, I shouldn't be able to load the freshly built kernel by the same logic, right?

Can you please link to disabling TIMA reading material? I get nothing from google.
Thank you
 

DerTeufel1980

Inactive Recognized Developer
Jul 31, 2011
10,302
27,636
0
I am not talking about a unlocked bootloader. Samsung 4.3 comes with a new bootloader if you flash it by odin.
If you use a zip to install it, your bootloader is still the one from 4.1.2

As far as I know / think it is working, TIMA uses something within the bootloader to verify the module is valid.
If you have TIMA enabled, but old bootloader, the verification always fails.

You should grep for TIMA in your kernel source, and set the default to n in every Kconfig and just remove it from your defconfig (or set it to: not set) and also from your main kernel makefile

Gesendet von meinem SAMSUNG-SGH-I317 mit Tapatalk 2
 

vadimbrk

Senior Member
Mar 14, 2013
113
59
0
Tel aviv
masahim.co.il
I am not talking about a unlocked bootloader. Samsung 4.3 comes with a new bootloader if you flash it by odin.
If you use a zip to install it, your bootloader is still the one from 4.1.2

As far as I know / think it is working, TIMA uses something within the bootloader to verify the module is valid.
If you have TIMA enabled, but old bootloader, the verification always fails.

You should grep for TIMA in your kernel source, and set the default to n in every Kconfig and just remove it from your defconfig (or set it to: not set) and also from your main kernel makefile

Gesendet von meinem SAMSUNG-SGH-I317 mit Tapatalk 2
I've OTA updated to 4.3 . How do I check bootloader version?
I grep'ed the kernel source for TIMA before posting here. Nothing...
 

DerTeufel1980

Inactive Recognized Developer
Jul 31, 2011
10,302
27,636
0
I've OTA updated to 4.3 . How do I check bootloader version?
I grep'ed the kernel source for TIMA before posting here. Nothing...
That's not possible. I've merged the source into my kernel, and there was TIMA in it. Which source did you download? What grep command did you use?

Gesendet von meinem SAMSUNG-SGH-I317 mit Tapatalk 2
 

DerTeufel1980

Inactive Recognized Developer
Jul 31, 2011
10,302
27,636
0
That's not the 4.3 kernel source.
I am wondering the kernel even booted. It should give black screen because of wrong (old) mali driver.

Gesendet von meinem SAMSUNG-SGH-I317 mit Tapatalk 2
 

vadimbrk

Senior Member
Mar 14, 2013
113
59
0
Tel aviv
masahim.co.il
I think it is the n7100 swa update 1, which is 4.3 kernel source

Gesendet von meinem SAMSUNG-SGH-I317 mit Tapatalk 2
You're right. It was the wrong source.
Added "default no" in security/tima_uevent/Kconfig
and commeted TIMA in the make file.
I needed to copy dhd.ko to /lib/modules to make the wifi work again.
Thank you for the help :)
 
  • Like
Reactions: DerTeufel1980
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone