Memory access between application task and driver using printk

2015-11-16 Thread Inderjit Singh
Hi, I have a strange behaviour regarding memory access between my user application and the driver i have developed I'd like to get some clarification on. The development is all used on or1k arch. On the application side, I have a buffer declared as: #define PACKET_SIZE 256 volatile uint8_t __at

RE: rtems_set_errno_and_return_minus_one in driver not returning correct value

2015-09-11 Thread Inderjit Singh
Indy From: devel [devel-boun...@rtems.org] on behalf of Sebastian Huber [sebastian.hu...@embedded-brains.de] Sent: 11 September 2015 10:18 To: devel@rtems.org Subject: Re: rtems_set_errno_and_return_minus_one in driver not returning correct value On 11/09/15 10:10, Inderjit Singh wrote: &g

RE: rtems_set_errno_and_return_minus_one in driver not returning correct value

2015-09-11 Thread Inderjit Singh
Hi, Can I presume that using errno with RTEMS does not work? To me I'm baffled that a RTEMS_SUCCESSFULL value must be returned in order to retain the errno value. regards, Indy From: Inderjit Singh Sent: 24 August 2015 15:07 To: Chris Johns; devel@rtem

RE: rtems_set_errno_and_return_minus_one in driver not returning correct value

2015-08-24 Thread Inderjit Singh
un...@rtems.org] on behalf of Inderjit Singh [inderjit.si...@aacmicrotec.com] Sent: 24 August 2015 09:08 To: Chris Johns; devel@rtems.org Subject: RE: rtems_set_errno_and_return_minus_one in driver not returning correct value Hi Chris, I am pretty sure the driver is working fine yes. I had this

RE: rtems_set_errno_and_return_minus_one in driver not returning correct value

2015-08-24 Thread Inderjit Singh
From: Chris Johns [chr...@rtems.org] Sent: 24 August 2015 01:19 To: Inderjit Singh; devel@rtems.org Subject: Re: rtems_set_errno_and_return_minus_one in driver not returning correct value On 21/08/2015 10:22 pm, Inderjit Singh wrote: > Hi, > > In my RTEMS driver

rtems_set_errno_and_return_minus_one in driver not returning correct value

2015-08-21 Thread Inderjit Singh
Hi, In my RTEMS driver I set and return error value by following macro: rtems_set_errno_and_return_minus_one(EALREADY); But in my rtems app when I print the error out by: fd = open(RTEMS_SYSFLASH_DEVICE_NAME, O_RDWR); if(fd < 0) { printk("Couldn't Open device (%d:%d:%s).", fd, errno, strerror

Telnetd fails to compile due to -DDEBUG

2015-08-21 Thread Inderjit Singh
Hi, I put some debug macos in my driver and when building the rtems, i get failure in telned. Any idea why? RTEMS version 4.10.99 from git some time from May. My configuration: ../rtems/configure --target=or1k-rtems4.11 --enable-rtemsbsp=or1k-bb --enable-test=samples --prefix=/home/indy/devel/

RE: BSP Driver not initialized

2015-07-02 Thread Inderjit Singh
ked the BSP at boot time. So all is good. However, I'm unsure if this is the way to do it. Properly i mean. Is there any doc on this or have I missed it? From: Hesham ALMatary [heshamelmat...@gmail.com] Sent: 02 July 2015 10:44 To: Inderjit Singh C

RE: BSP Driver not initialized

2015-07-02 Thread Inderjit Singh
CONFIGURE_APPLICATION_NEEDS_MY_DRIVER AAC_MYDRIVER_DRIVER, #endif ... And then in the application: #define CONFIGURE_APPLICATION_NEEDS_MY_DRIVER Is this correct? From: Joel Sherrill [joel.sherr...@oarcorp.com] Sent: 01 July 2015 17:53 To: Inderjit Singh; devel

BSP Driver not initialized

2015-07-01 Thread Inderjit Singh
Hi, I'm trying to initialize (get up) my driver for a or1k target. I reused the the hello sample program to see if the driver ckicks in but nothing in th console (except the hello msg in Init fiunction. Does anyone know why? I updated the file as shown below. At this point I am only interested