All of lore.kernel.org
 help / color / mirror / Atom feed
* rtcansend 32-bit
@ 2021-11-02 18:57 C Smith
  2021-11-02 19:11 ` Jan Kiszka
  0 siblings, 1 reply; 13+ messages in thread
From: C Smith @ 2021-11-02 18:57 UTC (permalink / raw)
  To: Xenomai List

I ran into a problem wherein my real-time Xenomai 32-bit app
fails on the socket operations of the 64-bit CAN driver.
My real-time userspace app is Cobalt x86, compiled -m32.

When I try the Xenomai rtcansend.c sample app compiled 32-bit, I get the
same error :

[root@pc can]# /usr/xenomai/bin/rtcansend rtcan0 --verbose
--identifier=0x123 0xde 0xad
send: Message too long

Looking at rtcansend.c. The call to sendto is failing and returns 'Message
too long' here:
ret = sendto(s, (void *)&frame, sizeof(can_frame_t), 0,
(struct sockaddr *)&to_addr, sizeof(to_addr));

Here is how I configured Xenomai for 32-bit when I built it:
./configure --host=i686-linux CFLAGS="-m32 -D_FILE_OFFSET_BITS=64"
LDFLAGS=-m32 host_alias=i686-linux

But note that if I compile both Xenomai and rtcansend.c 64-bit, everything
works fine.

So how can 32-bit Xeno apps use the 64-bit CAN driver ?

thanks,
-C Smith

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2021-11-05 18:21 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-02 18:57 rtcansend 32-bit C Smith
2021-11-02 19:11 ` Jan Kiszka
2021-11-02 22:57   ` C Smith
2021-11-03  6:59     ` Jan Kiszka
2021-11-03 10:46       ` Jan Kiszka
2021-11-03 11:09         ` Bezdeka, Florian
2021-11-04  6:49           ` C Smith
2021-11-04  8:05             ` Bezdeka, Florian
2021-11-05  7:09               ` C Smith
2021-11-05  8:14                 ` Jan Kiszka
2021-11-05  8:25                   ` Bezdeka, Florian
2021-11-05 18:14                     ` C Smith
2021-11-05 18:21                       ` Jan Kiszka

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.