-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
isotpsniffer "socket: Protocol not supported" #20
Comments
Did you try |
Hmm. no. I hadn't seen that step, I don't think. I'll give it a try!!
Thanks!
…On Mon, Jan 6, 2020 at 3:16 AM Oliver Hartkopp ***@***.***> wrote:
Did you try insmod can-iso.tp by hand after building the source code ?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#20?email_source=notifications&email_token=AMSQHWZ3PRH6SVJ3XI2NDGTQ4LSFPA5CNFSM4KC5C3J2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIEX2NA#issuecomment-571047220>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AMSQHWZIGV32UFBUNLHMS53Q4LSFPANCNFSM4KC5C3JQ>
.
|
I cannot find that file; I receive |
Oops! My fault. It had to be Btw. when you followed the receipt at |
I thought everything was hip, including doing the insmod of can-isotp.ko,
the whole README... everything.
I'll go home and verify.
…On Tue, Jan 7, 2020 at 8:42 AM Oliver Hartkopp ***@***.***> wrote:
Oops! My fault. It had to be insmod can-isotp.ko
Btw. when you followed the receipt at
https://github.com/hartkopp/can-isotp/blob/master/README.isotp
everything should be fine at first sight. Or did you get any errors when
building the kernel module following the README?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#20?email_source=notifications&email_token=AMSQHW6N4VNZTXZJHP53HDDQ4SBDJA5CNFSM4KC5C3J2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEII4SNI#issuecomment-571590965>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AMSQHW6YH4IYL74BYQ344MTQ4SBDJANCNFSM4KC5C3JQ>
.
|
I was so sure that I had already done this, but I went ahead and did it again: sudo insmod ./net/can/can-isotp.ko but I receive a "insmod: ERROR: could not insert module ./net/can/can-isotpko: Invalid module format" So, I went through and retraced my steps, thinking I must have done something incorrectly. When I went for the "make", isotp.c gives me a fatal error: linux/can/isotp.h: No such file or directory followed by some other fails. The isotp.h file is in can-isotp/include/uapi/linux/can/, but when I make can-isotp/linux/can and copy isotp.h into it, it will "make" and it will "make modules_install" but it still won't insmod the can-isotp.ko file, giving the same "Invalid file format" error. -gran |
You need to stay on the top directory! -> see README |
oops- got it. The make went fine. The "make modules_install" gave me errors: |
You have a signed kernel in your Ubuntu system and I assume only Ubuntu has the keys to sign modules. Hm - what happens if you try to insmod the module can-isotp.ko directly? Does that work? |
That is strange. I didnt think I did a signed kernel. How would I insmod
directly?
…On Tue, Jan 7, 2020, 15:36 Oliver Hartkopp ***@***.***> wrote:
You have a signed kernel in your Ubuntu system and I assume only Ubuntu
has the keys to sign modules. Hm - what happens if you try to insmod the
module can-isotp.ko directly? Does that work?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#20?email_source=notifications&email_token=AMSQHW2OUIWSKFCZDZR4PULQ4TRUDA5CNFSM4KC5C3J2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIKF4NY#issuecomment-571760183>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AMSQHWYXI7W42KFU22JQRJLQ4TRUDANCNFSM4KC5C3JQ>
.
|
With |
I am not sure how Ubuntu behave with regards of module signing, but I get the same message under Debian with "make modules_install" I usually insert manually and it works. When I get "invalid module format" it usually is because I haven't loaded the can module. Doing "sudo modprobe can" fixes it. |
I'm doing a vm of xubuntu inside of Windows 10. I got the xubuntu 32-bit iso directly from xubuntu and didn't specify any strange aspects of it while setting it up. I've loaded the can module, the vcan module, the slcan module... I keep getting an "invalid module format when trying to insmod the can-isotp.ko module. |
@pylessard : I tested your approach with my Debian system too. And I was also able to load can-isotp.ko into the standard (signed) kernel while the kernel was complaining about the unsigned module - but it worked. @granmadave : Can you please send the output of: |
Same SSL error for me, did you find a solution please @granmadave ? |
Hi @JerBcd |
Sorry about the radio silence; I have been a headless chicken. I have NO idea why it wasn't working. I tried it twice today in different builds and it is working in both. I think maybe it's the "sudo modprobe can" before doing the "insmod ./net/can/can-isotp.ko"? My only question now is... what's the point of the "-d" flag? Where does it send the data? Thank you all! For my initial needs, I consider this item closed. |
-d |
My apologies. I'm referring here to the isotpsniffer tool, but I'm still confused about its use with isotpdump, too. |
All isotp* tools use the same scheme. |
Interesting. So in the read-out, I shouldn't see anything on ID2, but if I were to do a recv or sniffer with -s ID2, I should see that traffic? |
Read my lips: |
I would strongly recommend to play with the tools to get behind the handling and CAN ID assignments. |
If I wanted to test what you've got on slide 29 in a VM, would I just use two terminals and in terminal 1 type: ~$echo... | send -s 321 -d 123 vcan0 and in terminal 2 type isotpdump -c -a -s 321 -d 123 vcan0? ...'cause when I do that, I'm only seeing the first byte printed, I'm not getting the response on 123 or any of the other lines on 321. Tx ends, but Rx continues to wait. |
Please read #20 (comment) |
Here is the same question answered: #15 (comment) |
I am convinced that I installed and made can-isotp properly, but for some reason, I'm not able to rock with isotpsniffer. Please advise.
The text was updated successfully, but these errors were encountered: