[Xenomai] git://git.xenomai.org/ipipe.git points to Linux 3.18

2018-03-26 Thread Pham, Phong
Hi, git clone git://git.xenomai.org/ipipe.git and I get Linux version 3.18 w/ the Xenomai patch included. (In my .gitconfig, I remapped git:// to use https:// protocol to get around my company blocking git port.) Should the Linux version be 4.9.51 (latest) instead of the older version? Is th

Re: [Xenomai] git://git.xenomai.org/ipipe.git points to Linux 3.18

2018-03-26 Thread Pham, Phong
ich already exists! Assume -R [n] So is it illegal to perform the patch on the same tag name like in my case ipipe-core-4.9.51-powerpc-3.patch? Phong. -Original Message- From: Greg Gallagher [mailto:g...@embeddedgreg.com] Sent: Monday, March 26, 2018 12:11 PM To: Pham, Phong Cc: xenomai@xenom

[Xenomai] mmap when using in conjunction with mapper to retrieve memory mapped IO space

2018-04-10 Thread Pham, Phong
Hi, According to page 651 https://xenomai.org/documentation/xenomai-3/pdf/xeno3prm.pdf This will make such region accessible via the mapper device using the following sequence of code, via the default ->mmap() handler from the UDD core: int fd, fdm; void *p; fd = open("/dev/foocard", O_RDWR);

Re: [Xenomai] mmap when using in conjunction with mapper to retrieve memory mapped IO space

2018-04-17 Thread Pham, Phong
don't know if you need to update udd.h (right above struct udd_memregion) as well. i.e. the same comment exists there but don't know if the comment there is retrieved from the location where you made the "comment fix". Phong. -Original Message- From: Philippe Gerum

Re: [Xenomai] mmap when using in conjunction with mapper to retrieve memory mapped IO space

2018-04-18 Thread Pham, Phong
oc' out of range is appreciated. This is after I add LDFLAGS (from xeno-config) during the process of creating a shared library. Phong. -Original Message----- From: Pham, Phong Sent: Tuesday, April 17, 2018 7:22 PM To: 'Philippe Gerum'; xenomai@xenomai.org Cc: Hillman, Rob

Re: [Xenomai] mmap when using in conjunction with mapper to retrieve memory mapped IO space

2018-04-18 Thread Pham, Phong
cated (similar types of error like before). However, errno is 0. How come errno returns “no error” when mmap() returns failure? Phong. -Original Message- From: Philippe Gerum [mailto:r...@xenomai.org] Sent: Wednesday, April 18, 2018 12:58 PM To: Pham, Phong; xenomai@xenomai.org Cc: Hi

Re: [Xenomai] mmap when using in conjunction with mapper to retrieve memory mapped IO space

2018-05-01 Thread Pham, Phong
aseAddr = 0xfffe, errno = 0 sysEepromSet(): baseAddr = 0x, errno = 0 scsEepromTest() resides in the "vxapp" executable and sysEepromSet() resides in the DSO. Phong. -Original Message- From: Philippe Gerum [mailto:r...@xenomai.org] Sent: Thursday, April 19, 2018 12:26 AM

[Xenomai] potentially missing timer rating check in select_root_only_timer()

2018-05-01 Thread Pham, Phong
Hi, I am suspecting that in kernel/ipipe/timer.c:select_root_only_timer() When t->irq == per_cpu(ipipe_percpu.hrtimer_irq, icpu), a condition to test the timer rating against current timer rating before installing the timer is missing. That is t->rating > percpu_timer->rating (combined with s

Re: [Xenomai] potentially missing timer rating check in select_root_only_timer()

2018-05-02 Thread Pham, Phong
mens.com] Sent: Tuesday, May 01, 2018 10:34 PM To: Pham, Phong; xenomai@xenomai.org Cc: Hillman, Robert Subject: Re: potentially missing timer rating check in select_root_only_timer() Hi Phong, On 2018-05-02 03:13, Pham, Phong wrote: > Hi, > > I am suspecting that in kernel/ipip

[Xenomai] 2 potential udd drivers fixes

2018-05-17 Thread Pham, Phong
Hi, Currently, a user space driver write() API does not clear the number of interrupts occurred since the last read() API. Instead it disable interrupt unless a UDD_RTIOC_IRQEN request comes in to enable interrupt. The fact that ioctl() does support these requests makes write(UDD_RTIOC_IRQEN

[Xenomai] thread executing udd_register_device() is not rescheduled again

2018-06-13 Thread Pham, Phong
Hi, I currently have a bunch of rtdm devices. One of the devices, from userspace, I use ioctl() to get to kernel space. When in kernel space, I create anther rtdm device (using udd_register_device() API). The API returns success without any issue. However, upon exiting the kernel space, i

Re: [Xenomai] thread executing udd_register_device() is not rescheduled again

2018-06-14 Thread Pham, Phong
an ex., does it mean I have to create a Linux file mapper (instead of rtdm file mapper) without Xenomai involvement, (ie. equivalent to udd_register_device() functionality but strictly Linux)? Phong. -Original Message- From: Philippe Gerum [mailto:r...@xenomai.org] Sent: Wednesday,

Re: [Xenomai] thread executing udd_register_device() is not rescheduled again

2018-06-18 Thread Pham, Phong
(request) { case DO_MY_WORK: ... udd_register_device(&my_new_device); ... break; } is illegal in Xenomai? Any way of getting around this? Thanks, Phong. -Original Message- From: Pham, Phong Sent: Thursday, June 14, 2018 3:58 PM To: 'Philippe Gerum'; xenomai@xenomai.o

[Xenomai] Does RTNET supports TCP?

2018-10-04 Thread Pham, Phong
Hi, I noticed starting Xenomai 3.0.1 until now (3.0.7), there is net/ in .../kernel/drivers/ and in ../kernel/drivers/net/stack/ipv4/Kconfig # source "drivers/xenomai/net/stack/ipv4/tcp/Kconfig" If I uncomment out the above line, it leads to compilation error in tcp.c. Questions: 1) Is

Re: [Xenomai] Does RTNET supports TCP?

2018-10-08 Thread Pham, Phong
ctober 4, 2018 9:02:46 PM EDT Pham, Phong wrote: > > Hi, > > > > I noticed starting Xenomai 3.0.1 until now (3.0.7), there is net/ in > > .../kernel/drivers/ and in ../kernel/drivers/net/stack/ipv4/Kconfig > > > > # source "drivers/xenomai/net/stack/ipv4/

Re: [Xenomai] [PATCH 0/4] net/tcp: Fix several bugs and allow rttcp to be built

2018-10-18 Thread Pham, Phong
Hi Sebastian, I verified your changes on a real hardware, Xenomai stack + network drivers. rt_dev_connect returns 0 when attempting to connect to my FTP server 204.75.16.51; however, there is no packet sent on the network. Below is my routing table. # ./rtroute Host Routing Table HashD

RE: [Xenomai] [PATCH 0/4] net/tcp: Fix several bugs and allow rttcp to be built

2018-10-30 Thread Pham, Phong
N bit that I can start looking? Phong. -Original Message- From: Sebastian Smolorz [mailto:sebastian.smol...@gmx.de] Sent: Tuesday, October 30, 2018 1:17 PM To: Pham, Phong Cc: Jan Kiszka; xenomai@xenomai.org; Hillman, Robert Subject: Re: [Xenomai] [PATCH 0/4] net/tcp: Fix several bugs

RE: [Xenomai] [PATCH 0/4] net/tcp: Fix several bugs and allow rttcp to be built

2018-10-31 Thread Pham, Phong
sday, October 31, 2018 7:08 AM To: Pham, Phong Cc: Jan Kiszka; xenomai@xenomai.org; Hillman, Robert Subject: Re: [Xenomai] [PATCH 0/4] net/tcp: Fix several bugs and allow rttcp to be built Pham, Phong wrote: > This is what I see when my RTnet box, my laptop, and my FTP server > (local on laptop)

RE: [PATCH 0/4] net/tcp: Fix several bugs and allow rttcp to be built

2018-11-05 Thread Pham, Phong via Xenomai
Hi Sebastian, " Phong, can you test this on your machine?" No the fix does not work. It overwrites the window field. Phong. -Original Message- From: Sebastian Smolorz [mailto:sebastian.smol...@gmx.de] Sent: Friday, November 02, 2018 7:42 AM To: Jan Kiszka Cc: Pham, Phon

RE: [PATCH 0/4] net/tcp: Fix several bugs and allow rttcp to be built

2018-11-06 Thread Pham, Phong via Xenomai
Sent: Monday, November 05, 2018 10:38 AM To: Pham, Phong Cc: Jan Kiszka; Hillman, Robert; xenomai@xenomai.org Subject: Re: [PATCH 0/4] net/tcp: Fix several bugs and allow rttcp to be built Hi, Pham, Phong wrote: > Hi Sebastian, > > " Phong, can you test this on your machine?" &g