What is NOCACHE memory for?

2018-05-09 Thread xuelin.t...@qkmtech.com
Dear all, In linkcmds, I find out that there is a block of memory called NOCACHE, with the length of 1MB. What is this memory for in RTEMS? Best wishes, xuelin.t...@qkmtech.com ___ users mailing list users@rtems.org http://lists.rtems.org/mailman

OpenAMP using Linux and RTEMS

2018-03-20 Thread xuelin.t...@qkmtech.com
workspace? In my example, is it possible to access the memory like 0x1600_? And what is the nocache for? Best wishes, xuelin.t...@qkmtech.com ___ users mailing list users@rtems.org http://lists.rtems.org/mailman/listinfo/users

'UNEXPECTED_SECTIONS' error

2018-01-23 Thread xuelin.t...@qkmtech.com
s4.11/bin/ld: region `UNEXPECTED_SECTIONS' overflowed by 1048577 bytes collect2: error: ld returned 1 exit status make: *** [myapp.elf] Error 1 I didnot define any new sections, so any help here? Thanks. Best wishes, xuelin.t...@qkmtech.com ___

C99 "restrict" key word in RTEMS

2018-01-10 Thread xuelin.t...@qkmtech.com
strict" is a key word in C99 standard, so does rtems support this feature? Best wishes, xuelin.t...@qkmtech.com ___ users mailing list users@rtems.org http://lists.rtems.org/mailman/listinfo/users

Re: Re: Filesystem in RTEMS

2017-10-23 Thread xuelin.t...@qkmtech.com
FL256S_PAGE_SIZE, \ remaining, WRITE_CMD, buffer + num*S25FL256S_PAGE_SIZE); } return S25FL256S_SUCCESS; } /*/ Best wishes, xuelin.t...@qkmtech.com From: Sebastian Huber Date: 201

Re: Re: Filesystem in RTEMS

2017-10-23 Thread xuelin.t...@qkmtech.com
Wow, that is so cool. I may not have enough time to do the porting :-) Best wishes, xuelin.t...@qkmtech.com From: jameszxj Date: 2017-10-23 17:26 To: xuelin.t...@qkmtech.com CC: rtems-us...@rtems.org Subject: Re: Re: Filesystem in RTEMS -- Original -- From

Re: Re: Filesystem in RTEMS

2017-10-23 Thread xuelin.t...@qkmtech.com
FlashRead and FlashWrite functions will invoke the functions defined in Xilinx BSP to transfer data from/into flash. I do not know where the problem is... Best wishes, xuelin.t...@qkmtech.com From: Chris Johns Date: 2017-10-23 12:19 To: xuelin.t...@qkmtech.com; Sebastian Huber CC: users@

Re: Re: Filesystem in RTEMS

2017-10-23 Thread xuelin.t...@qkmtech.com
sure about this. What is your device driver in your case? Using QSPI handlers from Xilinx BSP directly? Best wishes, xuelin.t...@qkmtech.com From: jameszxj Date: 2017-10-23 15:13 To: rtems-us...@rtems.org Subject: Re: Filesystem in RTEMS I have encountered a problem like this. I set wrong

Re: Re: Filesystem in RTEMS

2017-10-22 Thread xuelin.t...@qkmtech.com
Yes, Everything is going well, if I erase the flash before use. But, I need to store some files into flash, and reuse them when I restart my system. I can not erase the flash every time. Best wishes, xuelin.t...@qkmtech.com From: Chris Johns Date: 2017-10-23 07:01 To: xuelin.t

Re: Re: Filesystem in RTEMS

2017-10-22 Thread xuelin.t...@qkmtech.com
with no valid JFFS2 nodes <5>JFFS2: empty_blocks 0, bad_blocks 0, c->nr_blocks 510 mount failed. Everything worked well, after erasing the whole flash. But errors came up without erasing it. Best wishes, xuelin.t...@qkmtech.com From: xuelin.tian Date: 2017-10-21 22:07 To: Sebastian H

Re: Re: Filesystem in RTEMS

2017-10-20 Thread xuelin.t...@qkmtech.com
= ["m", "z"], install_path = None ) So I just delete the compressor & decompressor part, and run it. In the function "mount_and_make_target_path", the "rtems_mkdir" part works well, but the "mount" process takes a long time, and no

Re: Re: Filesystem in RTEMS

2017-10-20 Thread xuelin.t...@qkmtech.com
All these three functions should be defined in libjffs2.a, right? I also add this library - "additional_flags += ['-L/opt/rtems-4.11.1-release/4.11-bsp/arm-rtems4.11/xilinx_zynq_zedboard/lib -ljffs2']" - to my program, but same result... Best wishes, xuelin.t...@qkmtech.

Re: Re: Filesystem in RTEMS

2017-10-20 Thread xuelin.t...@qkmtech.com
r.c.38.o:(.data+0x5c): undefined reference to `rtems_jffs2_compressor_zlib_decompress' collect2: error: ld returned 1 exit status Best wishes, xuelin.t...@qkmtech.com From: Chris Johns Date: 2017-10-21 08:56 To: xuelin.t...@qkmtech.com; Sebastian Huber; users@rtems.org Subject: Re: Files

Re: Re: Filesystem in RTEMS

2017-10-20 Thread xuelin.t...@qkmtech.com
n this whoe process? Best wishes, xuelin.t...@qkmtech.com From: Sebastian Huber Date: 2017-10-19 19:56 To: xuelin.t...@qkmtech.com; users@rtems.org Subject: Re: Filesystem in RTEMS On 19/10/17 13:49, xuelin.t...@qkmtech.com wrote: > Does RTEMS have the FTL(Flash Translation Layer) as Linux,

Re: Re: Filesystem in RTEMS

2017-10-19 Thread xuelin.t...@qkmtech.com
Thanks for your explaination : ) Best wishes, xuelin.t...@qkmtech.com From: Chris Johns Date: 2017-10-20 05:15 To: xuelin.t...@qkmtech.com; Sebastian Huber; users@rtems.org Subject: Re: Filesystem in RTEMS On 19/10/2017 19:30, xuelin.t...@qkmtech.com wrote: > So, what is the RFS

Re: Re: Filesystem in RTEMS

2017-10-19 Thread xuelin.t...@qkmtech.com
Oh, I see. I just need to treat my flash as an array, not a block device. Thanks a lot. Best wishes, xuelin.t...@qkmtech.com From: Sebastian Huber Date: 2017-10-19 19:56 To: xuelin.t...@qkmtech.com; users@rtems.org Subject: Re: Filesystem in RTEMS On 19/10/17 13:49, xuelin.t...@qkmtech.com

Re: Re: Filesystem in RTEMS

2017-10-19 Thread xuelin.t...@qkmtech.com
) } }; Best wishes, xuelin.t...@qkmtech.com From: Sebastian Huber Date: 2017-10-19 16:14 To: xuelin.t...@qkmtech.com; users@rtems.org Subject: Re: Filesystem in RTEMS On 19/10/17 10:09, xuelin.t...@qkmtech.com wrote: > Dear all, > I got a little confused about the file system in rtems. > > T

Re: Re: Filesystem in RTEMS

2017-10-19 Thread xuelin.t...@qkmtech.com
So, what is the RFS for, basically? Best wishes, xuelin.t...@qkmtech.com From: Sebastian Huber Date: 2017-10-19 16:14 To: xuelin.t...@qkmtech.com; users@rtems.org Subject: Re: Filesystem in RTEMS On 19/10/17 10:09, xuelin.t...@qkmtech.com wrote: > Dear all, > I got a little confused abo

Filesystem in RTEMS

2017-10-19 Thread xuelin.t...@qkmtech.com
IMFS, which is the best choice for it?(JFFS2 may be too complicated...) Best wishes, xuelin.t...@qkmtech.com ___ users mailing list users@rtems.org http://lists.rtems.org/mailman/listinfo/users

Re: Re: pthread_getattr_np does not work

2017-09-26 Thread xuelin.t...@qkmtech.com
I tried it, and it worked. But, there is another problem that I need to free this array (or buffer) by my self. This bunch of buffer can not be freed by calling pthread_attr_destroy. Maybe this is a little inconvenient. Any suggestion on this? Best wishes, xuelin.t...@qkmtech.com From

Re: Re: pthread_getattr_np does not work

2017-09-26 Thread xuelin.t...@qkmtech.com
You mean, I allocate an array of some size in another thread, and set the pointer of this array as the stack address using pthread_attr_setstackaddr? Best wishes, xuelin.t...@qkmtech.com From: Joel Sherrill Date: 2017-09-26 00:29 To: xuelin.t...@qkmtech.com CC: users@rtems.org; Sebastian

Re: Re: pthread_getattr_np does not work

2017-09-24 Thread xuelin.t...@qkmtech.com
OK, I will try to do this. Best wishes, xuelin.t...@qkmtech.com From: Joel Sherrill Date: 2017-09-24 21:32 To: xuelin.tian CC: rtems-us...@rtems.org; Sebastian Huber Subject: Re: Re: pthread_getattr_np does not work No. But you are welcome to submit patches so the behavior matches Linux. On

Re: Re: pthread_getattr_np does not work

2017-09-22 Thread xuelin.t...@qkmtech.com
OK, no problem, thanks anyway. Best wishes, xuelin.t...@qkmtech.com From: Sebastian Huber Date: 2017-09-22 16:58 To: xuelin.t...@qkmtech.com; users@rtems.org Subject: Re: pthread_getattr_np does not work On 22/09/17 10:55, xuelin.t...@qkmtech.com wrote: > OK, I will try to do some fix

Re: Re: pthread_getattr_np does not work

2017-09-22 Thread xuelin.t...@qkmtech.com
OK, I will try to do some fix on this function. And if Sherrill and you have time, please take some time on this. Thanks a lot. Best wishes, xuelin.t...@qkmtech.com From: Sebastian Huber Date: 2017-09-22 16:48 To: xuelin.t...@qkmtech.com; users@rtems.org Subject: Re: pthread_getattr_np does

Re: Re: pthread_getattr_np does not work

2017-09-22 Thread xuelin.t...@qkmtech.com
> cpukit/posix/src/pthreadgetattrnp.c Yes, I know this. I just do not know how to do this. The implementation of pthread_getattr_np of 4.11 and 4.12 are different, I just do not know where do I start from... Best wishes, xuelin.t...@qkmtech.com From: Sebastian Huber Date: 2017-09-22 16:33

Re: Re: pthread_getattr_np does not work

2017-09-22 Thread xuelin.t...@qkmtech.com
elements in pthread_attr_t structure. When I tried to print out these values, the same result as before appeared, all 0... So, how can I modify the source code in rtems to let this function work? Thanks a lot. Best wishes, xuelin.t...@qkmtech.com From: xuelin.t...@qkmtech.com Date: 2017-09-20

Re: Re: pthread_getattr_np does not work

2017-09-20 Thread xuelin.t...@qkmtech.com
...@qkmtech.com From: Sebastian Huber Date: 2017-09-20 14:30 To: CC: xuelin.t...@qkmtech.com; RTEMS Subject: Re: pthread_getattr_np does not work Hello Xuelin, please answer to the mailing list. On 20/09/17 08:20, xuelin.t...@qkmtech.com wrote: > I need to get thread attributes through this funct

Re: Re: pthread_getattr_np does not work

2017-09-19 Thread xuelin.t...@qkmtech.com
ell. But all values in attr structure are either 0 or 1. And I can not get staddr and stsize value either. So, I think there may be something wrong with this function. Best wishes, xuelin.t...@qkmtech.com From: Sebastian Huber Date: 2017-09-20 13:00 To: xuelin.t...@qkmtech.com; users@rtems.org

pthread_getattr_np does not work

2017-09-19 Thread xuelin.t...@qkmtech.com
Dear all, I tried to use pthread_getattr_np function to extract attrributes of thread in rtems, but it does not work. Has anyone used this function before? Best wishes, xuelin.t...@qkmtech.com ___ users mailing list users@rtems.org http

No 'si_addr' member in 'siginfo_t'

2017-08-17 Thread xuelin.t...@qkmtech.com
So, is there something wrong with the newlib I compiled with? Or RTEMS just does not support this? Best wishes, xuelin.t...@qkmtech.com ___ users mailing list users@rtems.org http://lists.rtems.org/mailman/listinfo/users

'signal/sigaction' functions in RTEMS

2017-08-15 Thread xuelin.t...@qkmtech.com
these? Thanks a lot. Best wishes, xuelin.t...@qkmtech.com ___ users mailing list users@rtems.org http://lists.rtems.org/mailman/listinfo/users

About SA_RESTART undeclared in my application

2017-08-14 Thread xuelin.t...@qkmtech.com
used in rtems. How can I use such these macros? Best wishes, xuelin.t...@qkmtech.com ___ users mailing list users@rtems.org http://lists.rtems.org/mailman/listinfo/users

How to implement ucontext.h in rtems?

2017-08-14 Thread xuelin.t...@qkmtech.com
Dear all, I checked the file in rtems, and it is empty. Does rtems support ucontext? Best wishes, xuelin.t...@qkmtech.com ___ users mailing list users@rtems.org http://lists.rtems.org/mailman/listinfo/users