Re: rtcansend 32-bit

2021-11-05 Thread Jan Kiszka via Xenomai
On 05.11.21 19:14, C Smith wrote: > Here's an updated patch addressing mentioned issues. > I've noticed ipc/internal.h re-defines COMPAT_CASE(__op) as well. > > I don't know what gmail is doing to the inline text (this should be > plain text) so I've also attached a .gz version of the patch. >

Re: rtcansend 32-bit

2021-11-05 Thread C Smith via Xenomai
Here's an updated patch addressing mentioned issues. I've noticed ipc/internal.h re-defines COMPAT_CASE(__op) as well. I don't know what gmail is doing to the inline text (this should be plain text) so I've also attached a .gz version of the patch. Subject: [PATCH] 32-bit userspace app support

Re: rtcansend 32-bit

2021-11-05 Thread Bezdeka, Florian via Xenomai
On Fri, 2021-11-05 at 09:14 +0100, Jan Kiszka wrote: > On 05.11.21 08:09, C Smith wrote: > > Please review and accept this patch, which allows 32 bit apps to send > > and receive CAN. It is tested successfully with 32bit and 64bit compiles > > of utils/can/rtcansend.c / and rtcanrecv.c. The compat

Re: rtcansend 32-bit

2021-11-05 Thread Jan Kiszka via Xenomai
On 05.11.21 08:09, C Smith wrote: > Please review and accept this patch, which allows 32 bit apps to send > and receive CAN. It is tested successfully with 32bit and 64bit compiles > of utils/can/rtcansend.c / and rtcanrecv.c. The compat interface is now > implemented, rtdm_get_iovec() is used and

Re: rtcansend 32-bit

2021-11-05 Thread C Smith via Xenomai
Please review and accept this patch, which allows 32 bit apps to send and receive CAN. It is tested successfully with 32bit and 64bit compiles of utils/can/rtcansend.c / and rtcanrecv.c. The compat interface is now implemented, rtdm_get_iovec() is used and the get_sockaddr() methodology from the

Re: rtcansend 32-bit

2021-11-04 Thread Bezdeka, Florian via Xenomai
>              printk("rtcan_raw.c, 850: sizeof(can_frame_t): > > %ld\n", > > > > >                     sizeof(can_frame_t)); > > > > >                  printk("rtcan_raw.c, 852: iov->iov_len: > > > > > %ld\n

Re: rtcansend 32-bit

2021-11-04 Thread C Smith via Xenomai
if (iov->iov_len != sizeof(can_frame_t)) { > > > > printk("rtcan_raw.c, 850: sizeof(can_frame_t): %ld\n", > > > >sizeof(can_frame_t)); > > > > printk("rtcan_raw.c, 852: iov->iov_len: %ld\n", > > > > iov-

Re: rtcansend 32-bit

2021-11-03 Thread Bezdeka, Florian via Xenomai
uot;rtcan_raw.c, 852: iov->iov_len: %ld\n", > > > iov->iov_len); > > > return -EMSGSIZE; > > > } > > > > > > when running rtcansend (32-bit compile, which fails with EMSGSIZE): > > > [root@pc can]#

Re: rtcansend 32-bit

2021-11-03 Thread Jan Kiszka via Xenomai
;> printk("rtcan_raw.c, 850: sizeof(can_frame_t): %ld\n", >>sizeof(can_frame_t)); >> printk("rtcan_raw.c, 852: iov->iov_len: %ld\n", >> iov->iov_len); >> return -EMSGSIZE; >> }

Re: rtcansend 32-bit

2021-11-03 Thread Jan Kiszka via Xenomai
sizeof(can_frame_t): %ld\n", >sizeof(can_frame_t)); > printk("rtcan_raw.c, 852: iov->iov_len: %ld\n", > iov->iov_len); > return -EMSGSIZE; > } > > when running rtcansend (32-bit compile, which fails with EMSGSIZE): >

Re: rtcansend 32-bit

2021-11-02 Thread C Smith via Xenomai
printk("rtcan_raw.c, 852: iov->iov_len: %ld\n", iov->iov_len); return -EMSGSIZE; } when running rtcansend (32-bit compile, which fails with EMSGSIZE): [root@pc can]# /usr/xenomai/bin/rtcansend rtcan0 -s 0xde 0xad sizeof(can_frame_t): 16 send: Me

Re: rtcansend 32-bit

2021-11-02 Thread Jan Kiszka via Xenomai
On 02.11.21 19:57, C Smith via Xenomai wrote: > 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

rtcansend 32-bit

2021-11-02 Thread C Smith via Xenomai
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]#