Skip to content
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

warning when make modules_install #15

Open
hsilva7 opened this issue Jun 20, 2019 · 8 comments
Open

warning when make modules_install #15

hsilva7 opened this issue Jun 20, 2019 · 8 comments

Comments

@hsilva7
Copy link

hsilva7 commented Jun 20, 2019

I followed the instructions to install the module, in which I get a warning and the module isn't installed.

I am on a beagle bone black with kernel 4.19.24-ti-r10

this is what I get after running sudo make modules install


make -C /lib/modules/4.19.24-ti-r10/build M=/home/debian/can-isotp modules_install
make[1]: Entering directory '/usr/src/linux-headers-4.19.24-ti-r10'
  INSTALL /home/debian/can-isotp/net/can/can-isotp.ko
  DEPMOD  4.19.24-ti-r10
Warning: modules_install: missing 'System.map' file. Skipping depmod.
make[1]: Leaving directory '/usr/src/linux-headers-4.19.24-ti-r10'
@hartkopp
Copy link
Owner

Hm - these are standard tools that usually find a System.map in the /boot directory.

Don't know where the BBB hosts its System.map

Please check where to find that file and refer it when invoking "depmod" by hand. E.g. "depmod -a -F /boot/System.map-4.19.24-ti-r10"

@hsilva7
Copy link
Author

hsilva7 commented Jun 25, 2019

Not sure what you mean by running by hand...
I have run depmod -a -F /boot/System.map-4.19.24-ti-r10 and the file does exist. The command just executes and exit without any result.

@hartkopp
Copy link
Owner

Ok, that should have worked then - and modprobe can-isotp should run without problems.

Usually the sytem map is located in /lib/modules// therefore the default process obviously failed probably as you just worked on base of the linux-headers.

@hsilva7
Copy link
Author

hsilva7 commented Jun 26, 2019

Ok, thank you.

Assuming that everything is right, I am trying to run
echo "45 69 6e 65 20 73 65 68 72 20 6c 61 6e 67 65 20 4e 61 63 68 72 69 63 68 74" | isotpsend -s 321 -d 123 vcan0
and
isotpdump -c -a -s 321 -d 123 vcan0
I expected to get
vcan0 321 [8] [FF] ln: 25 data: 45 69 6E 65 20 73 - 'Eine s' vcan0 123 [3] [FC] FC: 0 = CTS # BS: 0 = off # STmin: 0x00 = 0 ms vcan0 321 [8] [CF] sn: 1 data: 65 68 72 20 6C 61 6E - 'ehr lan' vcan0 321 [8] [CF] sn: 2 data: 67 65 20 4E 61 63 68 - 'ge Nach' vcan0 321 [6] [CF] sn: 3 data: 72 69 63 68 74 - 'richt'

but I only get
can0 321 [8] [FF] ln: 25 data: 45 69 6E 65 20 73 - 'Eine s'

@hartkopp
Copy link
Owner

Yes. You need a isotprecv to receive the data stream too.

@hartkopp
Copy link
Owner

hartkopp commented Aug 9, 2019

Seems to be fixed ...

@hartkopp hartkopp closed this as completed Aug 9, 2019
@litaoxyz
Copy link

Ok, thank you.

Assuming that everything is right, I am trying to run
echo "45 69 6e 65 20 73 65 68 72 20 6c 61 6e 67 65 20 4e 61 63 68 72 69 63 68 74" | isotpsend -s 321 -d 123 vcan0
and
isotpdump -c -a -s 321 -d 123 vcan0
I expected to get
vcan0 321 [8] [FF] ln: 25 data: 45 69 6E 65 20 73 - 'Eine s' vcan0 123 [3] [FC] FC: 0 = CTS # BS: 0 = off # STmin: 0x00 = 0 ms vcan0 321 [8] [CF] sn: 1 data: 65 68 72 20 6C 61 6E - 'ehr lan' vcan0 321 [8] [CF] sn: 2 data: 67 65 20 4E 61 63 68 - 'ge Nach' vcan0 321 [6] [CF] sn: 3 data: 72 69 63 68 74 - 'richt'

but I only get
can0 321 [8] [FF] ln: 25 data: 45 69 6E 65 20 73 - 'Eine s'

I have the same problem with you. how did you solved?

@hartkopp
Copy link
Owner

isotpsend and isotpdump are not sufficient to perform a proper isotp data transfer.
Your need isotpsend AND isotprecv as already stated here #15 (comment) .
isotpdump ist just to dump contents (read-only) - so there's no communication counterpart, like isotprecv.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants