Re: Re: shell script problem

2018-11-19 Thread bin.w...@qkmtech.com
hi joel:

thank you very much

i think the shell command itself exceeds the line buffer limit,this limit maybe 
128 byte because the number of my command string is 128  ,

where can i change the line buffer limit? or do i need change my command to fit 
this line buffer limit? 

best 
ben



bin.w...@qkmtech.com
 
From: Joel Sherrill
Date: 2018-11-19 21:54
To: bin.wang
CC: Amaan Cheval; rtems-us...@rtems.org
Subject: Re: Re: shell script problem


On Mon, Nov 19, 2018, 5:22 AM bin.w...@qkmtech.com Hi!
>
>- Where is this shell script from? (It doesn't really look like a shell script 
>to me in any case, nor something you'd run in the RTEMS Shell.)
>- What are you trying to do? Where are you running the script and seeing the 
>"cut off" at 128 characters?
>
>I don't see the script anywhere in any of the RTEMS repos yet 
>(https://github.com/search?q=org%3ARTEMS+log_cmd&type=Code).

hi  
 
rtems can run shell script .i just give my script. 

log_cmd and log_idn is the shell command which i defined ,so i can use this 
script and do not need to input every command every time .

now i have no time to find the solution in the source. so i ask other people 
which is familar with the rtems shell script

The commands are your own and not producing the output you expect.  Unless the 
shell command itself exceeds the line buffer limit, it is an issue on your 
side. Break at the entry point to your command and print the arguments.

--joel 



best 
ben


bin.w...@qkmtech.com
 
From: Amaan Cheval
Date: 2018-11-19 19:23
To: bin.wang
CC: users
Subject: Re: shell script problem
Hi!

- Where is this shell script from? (It doesn't really look like a shell script 
to me in any case, nor something you'd run in the RTEMS Shell.)
- What are you trying to do? Where are you running the script and seeing the 
"cut off" at 128 characters?

I don't see the script anywhere in any of the RTEMS repos yet 
(https://github.com/search?q=org%3ARTEMS+log_cmd&type=Code).

On Mon, Nov 19, 2018 at 4:10 PM bin.w...@qkmtech.com  
wrote:
hi everyone:

i use the shell script as follows
---
#! joel
date
log_cmd 1 8 0
log_idn "p-0-0505.0.17" "p-0-0506.0.17" "p-0-0507.0.17" "p-0-0508.0.17" 
"p-0-0505.0.18" "p-0-0506.0.18" "p-0-0507.0.18" "p-0-0508.0.18"
log_cmd 1 8 1
date
---

the fourth line as follows has a problem , i can not get all part of the line

log_idn "p-0-0505.0.17" "p-0-0506.0.17" "p-0-0507.0.17" "p-0-0508.0.17" 
"p-0-0505.0.18" "p-0-0506.0.18" "p-0-0507.0.18" "p-0-0508.0.18"

instead of 

i just get as follows,which cut off the last part. i think maybe the max value 
is 128 .

log_idn "p-0-0505.0.17" "p-0-0506.0.17" "p-0-0507.0.17" "p-0-0508.0.17" 
"p-0-0505.0.18" "p-0-0506.0.18" "p-0-0507.0.18" "p-0-05

how to change it to fit my situation?

thank you very much

best
ben



bin.w...@qkmtech.com
___
users mailing list
users@rtems.org
http://lists.rtems.org/mailman/listinfo/users
___
users mailing list
users@rtems.org
http://lists.rtems.org/mailman/listinfo/users
___
users mailing list
users@rtems.org
http://lists.rtems.org/mailman/listinfo/users

Re: Re: shell script problem

2018-11-19 Thread bin.w...@qkmtech.com
>Hi!
>
>- Where is this shell script from? (It doesn't really look like a shell script 
>to me in any case, nor something you'd run in the RTEMS Shell.)
>- What are you trying to do? Where are you running the script and seeing the 
>"cut off" at 128 characters?
>
>I don't see the script anywhere in any of the RTEMS repos yet 
>(https://github.com/search?q=org%3ARTEMS+log_cmd&type=Code).

hi  
 
rtems can run shell script .i just give my script. 

log_cmd and log_idn is the shell command which i defined ,so i can use this 
script and do not need to input every command every time .

now i have no time to find the solution in the source. so i ask other people 
which is familar with the rtems shell script

best 
ben


bin.w...@qkmtech.com
 
From: Amaan Cheval
Date: 2018-11-19 19:23
To: bin.wang
CC: users
Subject: Re: shell script problem
Hi!

- Where is this shell script from? (It doesn't really look like a shell script 
to me in any case, nor something you'd run in the RTEMS Shell.)
- What are you trying to do? Where are you running the script and seeing the 
"cut off" at 128 characters?

I don't see the script anywhere in any of the RTEMS repos yet 
(https://github.com/search?q=org%3ARTEMS+log_cmd&type=Code).

On Mon, Nov 19, 2018 at 4:10 PM bin.w...@qkmtech.com  
wrote:
hi everyone:

i use the shell script as follows
---
#! joel
date
log_cmd 1 8 0
log_idn "p-0-0505.0.17" "p-0-0506.0.17" "p-0-0507.0.17" "p-0-0508.0.17" 
"p-0-0505.0.18" "p-0-0506.0.18" "p-0-0507.0.18" "p-0-0508.0.18"
log_cmd 1 8 1
date
---

the fourth line as follows has a problem , i can not get all part of the line

log_idn "p-0-0505.0.17" "p-0-0506.0.17" "p-0-0507.0.17" "p-0-0508.0.17" 
"p-0-0505.0.18" "p-0-0506.0.18" "p-0-0507.0.18" "p-0-0508.0.18"

instead of 

i just get as follows,which cut off the last part. i think maybe the max value 
is 128 .

log_idn "p-0-0505.0.17" "p-0-0506.0.17" "p-0-0507.0.17" "p-0-0508.0.17" 
"p-0-0505.0.18" "p-0-0506.0.18" "p-0-0507.0.18" "p-0-05

how to change it to fit my situation?

thank you very much

best
ben



bin.w...@qkmtech.com
___
users mailing list
users@rtems.org
http://lists.rtems.org/mailman/listinfo/users
___
users mailing list
users@rtems.org
http://lists.rtems.org/mailman/listinfo/users

shell script problem

2018-11-19 Thread bin.w...@qkmtech.com
hi everyone:

i use the shell script as follows
---
#! joel
date
log_cmd 1 8 0
log_idn "p-0-0505.0.17" "p-0-0506.0.17" "p-0-0507.0.17" "p-0-0508.0.17" 
"p-0-0505.0.18" "p-0-0506.0.18" "p-0-0507.0.18" "p-0-0508.0.18"
log_cmd 1 8 1
date
---

the fourth line as follows has a problem , i can not get all part of the line

log_idn "p-0-0505.0.17" "p-0-0506.0.17" "p-0-0507.0.17" "p-0-0508.0.17" 
"p-0-0505.0.18" "p-0-0506.0.18" "p-0-0507.0.18" "p-0-0508.0.18"

instead of 

i just get as follows,which cut off the last part. i think maybe the max value 
is 128 .

log_idn "p-0-0505.0.17" "p-0-0506.0.17" "p-0-0507.0.17" "p-0-0508.0.17" 
"p-0-0505.0.18" "p-0-0506.0.18" "p-0-0507.0.18" "p-0-05

how to change it to fit my situation?

thank you very much

best
ben



bin.w...@qkmtech.com
___
users mailing list
users@rtems.org
http://lists.rtems.org/mailman/listinfo/users

Re: Re: python version for rtems 4.11.2

2018-10-25 Thread bin.w...@qkmtech.com
hi

thank you very much .i will try what we supplied to me 

bestwishes
ben



bin.w...@qkmtech.com
 
From: Sebastian Huber
Date: 2018-10-25 20:47
To: bin.w...@qkmtech.com; Users
Subject: Re: python version for rtems 4.11.2
Hello,
 
I used this
 
https://devel.rtems.org/wiki/Packages/Python
 
to create a Makefile for Python 3.6. See attached files. Its a hack. I 
used RTEMS 5.
 
-- 
Sebastian Huber, embedded brains GmbH
 
Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax : +49 89 189 47 41-09
E-Mail  : sebastian.hu...@embedded-brains.de
PGP : Public key available on request.
 
Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.
 
___
users mailing list
users@rtems.org
http://lists.rtems.org/mailman/listinfo/users

python version for rtems 4.11.2

2018-10-25 Thread bin.w...@qkmtech.com

hi everyone

i use the rtems 4.11.2, i want to use python, but i do not know which 
version i can use in rtems 4.11.2?

is it support python 3?  if you can give me some method  or example to use 
python in rtems, i will thank you very much 

ben




bin.w...@qkmtech.com
___
users mailing list
users@rtems.org
http://lists.rtems.org/mailman/listinfo/users

Re: Re: zynq bspreset function do not work

2018-06-28 Thread bin.w...@qkmtech.com
On 29/06/2018 08:33,Chris Johns wrote:
>Are you running in secure mode, ie a secure boot with an AES key in the BBRAM 
>or
>eFuse?
 
>There is a bug in the Zynq with the SRST bit when operating in secure mode. You
>need an external hardware reset.

thanks reply, but i do not use AES key or efuse? i just use emultor to debug 
this function , 

when i run to this line "*pREG_PSS_RST_CTRL  = 1;"  ( pREG_PSS_RST_CTRL  is a 
pointer to register PSS_RST_CTRL which i defined)
the program run fly . i just run program in cpu0 ,but when run fly ,the cpu1 is 
also in running state.

as in my  opinion, i think when i run "*pREG_PSS_RST_CTRL  = 1;", the PC 
pointer in the ARM should jump to reset ISR in start.S, but it didn't.

is the software reset also send a pulse in the reset pin just i push reset 
button in the reset pin?  is the bootrom will run again and then load fsbl 
again and then run my program? 

sorry. i have some confuse about the above problems

best 
ben


bin.w...@qkmtech.com
 
From: Chris Johns
Date: 2018-06-29 08:33
To: bin.w...@qkmtech.com; Users
Subject: Re: zynq bspreset function do not work
On 28/06/2018 17:13, bin.w...@qkmtech.com wrote:
> 
> i want to use the zynq 7000 bspreset function to reset the system.
> but when i call this funtion ,the code run fly .
> what i should do before i call this funtion ?
 
Are you running in secure mode, ie a secure boot with an AES key in the BBRAM or
eFuse?
 
There is a bug in the Zynq with the SRST bit when operating in secure mode. You
need an external hardware reset.
 
Chris
 
___
users mailing list
users@rtems.org
http://lists.rtems.org/mailman/listinfo/users

zynq bspreset function do not work

2018-06-28 Thread bin.w...@qkmtech.com
hi everyone:

i want to use the zynq 7000 bspreset function to reset the system.
but when i call this funtion ,the code run fly .
what i should do before i call this funtion ?

thanks

best
ben



bin.w...@qkmtech.com
___
users mailing list
users@rtems.org
http://lists.rtems.org/mailman/listinfo/users

Re: Re: how to use system function to execute the script

2018-06-25 Thread bin.w...@qkmtech.com
thanks,it works



bin.w...@qkmtech.com
 
From: Chris Johns
Date: 2018-06-22 13:07
To: bin.w...@qkmtech.com; Users
Subject: Re: how to use system function to execute the script
On 22/06/2018 14:44, bin.w...@qkmtech.com wrote:
> hi everyone:
> 
> i want to use the "system()" to execute the script. but do not has output
> 
> first i want to use "system()" to execute the shell cmd, but alse have no 
> output
> 
> the test code is as followed:
> 
> system("ls -l");
> system("joel /flash/script/spdloop_1");//
>  "/flash/script/spdloop_1"--this is the  script file path in the 
> filesystem 
>   
 
RTEMS is a single address space, single process OS so you can not exec another
process. You can call the shell command handler from any thread. Make sure you
have enough stack for the thread.
 
Try something like:
 
int run_shell_command(const char* cmd)
{
  #define CMD_MAX_ARGS (20)
  char* cmd_argv = strdup(cmd);
  int   argc;
  char* argv[CMD_MAX_ARGS];
  int   r;
 
  if (cmd_argv == NULL) {
fprintf(stderr, "shell: command: no memory: %s", cmd);
return 1;
  }
 
  if (rtems_shell_make_args(cmd_argv, &argc, argv, CMD_MAX_ARGS) < 0) {
fprintf(stderr, "shell: command: arg parse: %s", cmd);
free(cmd_argv);
return 1;
  }
 
  r = rtems_shell_execute_cmd(argv[0], argc, argv);
  free(cmd_argv);
  return r;
}
 
Chris
 
___
users mailing list
users@rtems.org
http://lists.rtems.org/mailman/listinfo/users

Re: Re: how to use system function to execute the script

2018-06-22 Thread bin.w...@qkmtech.com
hi chris

where is rtems_shell_execute_cmd function defined?

best ben





bin.w...@qkmtech.com
 
From: Chris Johns
Date: 2018-06-22 13:07
To: bin.w...@qkmtech.com; Users
Subject: Re: how to use system function to execute the script
On 22/06/2018 14:44, bin.w...@qkmtech.com wrote:
> hi everyone:
> 
> i want to use the "system()" to execute the script. but do not has output
> 
> first i want to use "system()" to execute the shell cmd, but alse have no 
> output
> 
> the test code is as followed:
> 
> system("ls -l");
> system("joel /flash/script/spdloop_1");//
>  "/flash/script/spdloop_1"--this is the  script file path in the 
> filesystem 
>   
 
RTEMS is a single address space, single process OS so you can not exec another
process. You can call the shell command handler from any thread. Make sure you
have enough stack for the thread.
 
Try something like:
 
int run_shell_command(const char* cmd)
{
  #define CMD_MAX_ARGS (20)
  char* cmd_argv = strdup(cmd);
  int   argc;
  char* argv[CMD_MAX_ARGS];
  int   r;
 
  if (cmd_argv == NULL) {
fprintf(stderr, "shell: command: no memory: %s", cmd);
return 1;
  }
 
  if (rtems_shell_make_args(cmd_argv, &argc, argv, CMD_MAX_ARGS) < 0) {
fprintf(stderr, "shell: command: arg parse: %s", cmd);
free(cmd_argv);
return 1;
  }
 
  r = rtems_shell_execute_cmd(argv[0], argc, argv);
  free(cmd_argv);
  return r;
}
 
Chris
 
___
users mailing list
users@rtems.org
http://lists.rtems.org/mailman/listinfo/users

how to use system function to execute the script

2018-06-21 Thread bin.w...@qkmtech.com
hi everyone:

i want to use the "system()" to execute the script. but do not has output

first i want to use "system()" to execute the shell cmd, but alse have no output

the test code is as followed:

system("ls -l");
system("joel /flash/script/spdloop_1");//  
"/flash/script/spdloop_1"--this is the  script file path in the 
filesystem 
  
in the serial port ,i can not get the "ls -l" output in my terminal.

why? which thing i missed ,

thank you for help

best ben




bin.w...@qkmtech.com
___
users mailing list
users@rtems.org
http://lists.rtems.org/mailman/listinfo/users

mongoose problems

2018-05-10 Thread bin.w...@qkmtech.com

hi everyone

i want to use mongoose 

i find the follows in the internet

--
Mongoose uses the POSIX API and its mutex and condition variable features and 
thus resources must be allocated for it in the application's configuration.
It uses:
One POSIX "master" thread
A number of POSIX worker threads, depending on the number requested when 
starting Mongoose
Two libio file descriptors for each worker thread
Three POSIX condition variables
One POSIX mutex
and moogoose library must be pulled in for linking
LD_LIBS+=-lmghttpd
---

problem1:

i do not understand what the how to config the "master" thread? 

i just config #define CONFIGURE_MAXIMUM_POSIX_THREADS 8  ,

is this include the "master" thread?

problem2:

should i add the mghttpd lib into my project link config? but i do not find the 
libmghttpd.a in the rtems intall directory ? i think moogoose is just a part of 
libbsd ,so ,is libbsd.a include this function ? 



 


bin.w...@qkmtech.com
___
users mailing list
users@rtems.org
http://lists.rtems.org/mailman/listinfo/users

Re: Re: rtems shell script

2018-04-12 Thread bin.w...@qkmtech.com
hi chris:

if i use the uart as my shell output , there are print output ,but if i use the 
telnet as my shell output ,there are no pirnt output .

i do not know why ?

and if i add sleep cmd in the script , the cmd after the sleep can not execute, 
why?

thank you very much

best 
ben



bin.w...@qkmtech.com
 
From: bin.w...@qkmtech.com
Date: 2018-04-12 16:12
To: Chris Johns; Users
Subject: Re: Re: rtems shell script
hi chris:

i know where i am wrong , "#! joel" there is a space in the "!" and the 
"joel",but at first i do not add the space. 
and the file can not have suffix as ".txt", if the file has the suffix, the 
chmod command can not work . i do not know why.

now i can execute the script successfully ,thank you very much , but i can  not 
see the echo in my shell output.
how can i see my command output just like i put one command in the shell ?

best 
ben



bin.w...@qkmtech.com
 
From: bin.w...@qkmtech.com
Date: 2018-04-12 15:58
To: Chris Johns; Users
Subject: Re: Re: rtems shell script
On 12/04/2018 17:40, Chris Johns wrote

>It can. You need to add "#! joel" as the first line and you need to set an
>appropriate the execute bit, that is user, group or other.


thank you very much 

as you said i add "#! joel"as the first line ,and  i change  the mode to 777, 
but i still can not run the script,

result as follows:
--
[/scripts] # ./prfjog_1.txt
Unable to execute /scripts/prfjog_1.txt
[/scripts] # chmod 777 prfjog_1.txt
[/scripts] # ./prfjog_1.txt
Unable to execute /scripts/prfjog_1.txt
--

best 
ben


bin.w...@qkmtech.com
 
From: Chris Johns
Date: 2018-04-12 15:40
To: bin.w...@qkmtech.com; Users
Subject: Re: rtems shell script
On 12/04/2018 17:29, bin.w...@qkmtech.com wrote:
> hi everyone:
> this is my shell cmdline
> -
> [/] # cd scripts
> [/scripts] # ls
> prfjog.txt
> [/scripts] # prfjog.txt
> Unable to execute /scripts/prfjog.txt
> [/scripts] # ./prfjog.txt
> Unable to execute /scripts/prfjog.txt
> ---
> i do not know whether rtems shell can execute a script?
 
It can. You need to add "#! joel" as the first line and you need to set an
appropriate the execute bit, that is user, group or other.
 
Chris
___
users mailing list
users@rtems.org
http://lists.rtems.org/mailman/listinfo/users

Re: Re: rtems shell script

2018-04-12 Thread bin.w...@qkmtech.com
hi chris:

i know where i am wrong , "#! joel" there is a space in the "!" and the 
"joel",but at first i do not add the space. 
and the file can not have suffix as ".txt", if the file has the suffix, the 
chmod command can not work . i do not know why.

now i can execute the script successfully ,thank you very much , but i can  not 
see the echo in my shell output.
how can i see my command output just like i put one command in the shell ?

best 
ben



bin.w...@qkmtech.com
 
From: bin.w...@qkmtech.com
Date: 2018-04-12 15:58
To: Chris Johns; Users
Subject: Re: Re: rtems shell script
On 12/04/2018 17:40, Chris Johns wrote

>It can. You need to add "#! joel" as the first line and you need to set an
>appropriate the execute bit, that is user, group or other.


thank you very much 

as you said i add "#! joel"as the first line ,and  i change  the mode to 777, 
but i still can not run the script,

result as follows:
--
[/scripts] # ./prfjog_1.txt
Unable to execute /scripts/prfjog_1.txt
[/scripts] # chmod 777 prfjog_1.txt
[/scripts] # ./prfjog_1.txt
Unable to execute /scripts/prfjog_1.txt
--

best 
ben


bin.w...@qkmtech.com
 
From: Chris Johns
Date: 2018-04-12 15:40
To: bin.w...@qkmtech.com; Users
Subject: Re: rtems shell script
On 12/04/2018 17:29, bin.w...@qkmtech.com wrote:
> hi everyone:
> this is my shell cmdline
> -
> [/] # cd scripts
> [/scripts] # ls
> prfjog.txt
> [/scripts] # prfjog.txt
> Unable to execute /scripts/prfjog.txt
> [/scripts] # ./prfjog.txt
> Unable to execute /scripts/prfjog.txt
> ---
> i do not know whether rtems shell can execute a script?
 
It can. You need to add "#! joel" as the first line and you need to set an
appropriate the execute bit, that is user, group or other.
 
Chris
___
users mailing list
users@rtems.org
http://lists.rtems.org/mailman/listinfo/users

Re: Re: rtems shell script

2018-04-12 Thread bin.w...@qkmtech.com
On 12/04/2018 17:40, Chris Johns wrote

>It can. You need to add "#! joel" as the first line and you need to set an
>appropriate the execute bit, that is user, group or other.


thank you very much 

as you said i add "#! joel"as the first line ,and  i change  the mode to 777, 
but i still can not run the script,

result as follows:
--
[/scripts] # ./prfjog_1.txt
Unable to execute /scripts/prfjog_1.txt
[/scripts] # chmod 777 prfjog_1.txt
[/scripts] # ./prfjog_1.txt
Unable to execute /scripts/prfjog_1.txt
------

best 
ben


bin.w...@qkmtech.com
 
From: Chris Johns
Date: 2018-04-12 15:40
To: bin.w...@qkmtech.com; Users
Subject: Re: rtems shell script
On 12/04/2018 17:29, bin.w...@qkmtech.com wrote:
> hi everyone:
> this is my shell cmdline
> -
> [/] # cd scripts
> [/scripts] # ls
> prfjog.txt
> [/scripts] # prfjog.txt
> Unable to execute /scripts/prfjog.txt
> [/scripts] # ./prfjog.txt
> Unable to execute /scripts/prfjog.txt
> ---
> i do not know whether rtems shell can execute a script?
 
It can. You need to add "#! joel" as the first line and you need to set an
appropriate the execute bit, that is user, group or other.
 
Chris
___
users mailing list
users@rtems.org
http://lists.rtems.org/mailman/listinfo/users

Re: rtems shell script

2018-04-12 Thread bin.w...@qkmtech.com
hi everyone:
this is my shell cmdline
-
[/] # cd scripts
[/scripts] # ls
prfjog.txt
[/scripts] # prfjog.txt
Unable to execute /scripts/prfjog.txt
[/scripts] # ./prfjog.txt
Unable to execute /scripts/prfjog.txt
---
i do not know whether rtems shell can execute a script?

best
ben



bin.w...@qkmtech.com
 
From: bin.w...@qkmtech.com
Date: 2018-04-12 15:25
To: Users
Subject: rtems shell script
hi everyone:

i want to execute a shell script in the rtems shell. 

so i write a simple shell script which include some shell command defined by 
myself 

and i put the script file into the IMFS's  script  directory which i created , 
i put it to the directory by the ftp  

but how can i run the script?

the  accessory is my scirpt file , the comand in the script file  is  which i 
defined by myself, one line has one command .

is anyone can help?

thank you very much

best
ben
accessory



bin.w...@qkmtech.com
___
users mailing list
users@rtems.org
http://lists.rtems.org/mailman/listinfo/users

Re: Re: jffs2 summary problem

2018-01-30 Thread bin.w...@qkmtech.com
Hello Thomas:

thank you very much ,it it not so crucial for me .i just want the best 
performance。if someone has do this work before ,i wish they can help me .if 
not, i wiil try my best to sovle this problem when i has time . 

not now

best wishes
ben



bin.w...@qkmtech.com
 
From: ThomasDörfler
Date: 2018-01-30 15:02
To: bin wang; rtems-us...@rtems.org
Subject: Re: jffs2 summary problem
Hello Ben,

the RTEMS community is always happy to see the functionality growning, 
especially with additions, which are useful to real life applications.In 
general I think there are three options to add missing functionality to the 
RTEMS ecosystem:

1.) invest your own expertise and time to get it done and to get it integrated
2.) find someone who has spare time to do it 
3.) fund the corresponding work with the money required

If a faster startup of the existing jffs2 RTEMS port is crucial for you, option 
3 may be interesting for you. Among others, we at embedded brains can create a 
quote for you for commercial support, with the goal to get the corresponding 
functionality ported and integrated. Please let me know if this is interesting 
for you.

Kind regards,

Thomas.



Von: "bin wang" 
An: "bin wang" , "rtems-us...@rtems.org" 
Gesendet: Dienstag, 30. Januar 2018 07:45:20
Betreff: Re: jffs2 summary problem

>On 30/01/18 05:16, bin.w...@qkmtech.com wrote:
>> hi everyone
>>
>> now i use jffs2 as my flash filesystem. but the  time  of the scan the 
>> device is two long , i find that  someone said that when i set the 
>> CONFIG_JFFS2_SUMMARY macro ,the time will reduce too much。
 
>This looks like a Linux configuration option.

yes , i has view some of the information,jffs2 is ported from linux environment 
to rtems. but i think the mount time is too long  for me 
 
>>
>> but i did not find the realization of the summary.  i only find the 
>> summary.h and no function realization.
>>
>> if i want to use this to reduce the scan time . how should i do ?
 
>You have to figure out how it works on Linux and how we can enable/port 
>this to RTEMS.

because i did not find the realization of this feature in the rtems source code 
. i just find the header file of the summary. 
i think i has no much time to do the port work and also i am not familiar with 
linux too . 
is rtems develop group want to support this feature in jffs2? 
thank you very much.
 
>>
>> i use rtems 4.11.2 and zynq 7000 platform.
>>
>> best wishes
>> ben
>>
>> 
>> bin.w...@qkmtech.com
>>
>>
>> ___
>> users mailing list
>> users@rtems.org
>> http://lists.rtems.org/mailman/listinfo/users
> 
>-- 
>Sebastian Huber, embedded brains GmbH
> 
>Address : Dornierstr. 4, D-82178 Puchheim, Germany
>Phone   : +49 89 189 47 41-16
>Fax : +49 89 189 47 41-09
>E-Mail  : sebastian.hu...@embedded-brains.de
>PGP : Public key available on request.
> 
>Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.
 

___
users mailing list
users@rtems.org
http://lists.rtems.org/mailman/listinfo/users

-- 
-- 

embedded brains GmbH
Thomas Doerfler
Dornierstr. 4
D-82178 Puchheim
Germany
email: thomas.doerf...@embedded-brains.de
Phone: +49-89-18 94 741-12
Fax:   +49-89-18 94 741-09
PGP: Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.
___
users mailing list
users@rtems.org
http://lists.rtems.org/mailman/listinfo/users

Re: jffs2 summary problem

2018-01-29 Thread bin.w...@qkmtech.com
>On 30/01/18 05:16, bin.w...@qkmtech.com wrote:
>> hi everyone
>>
>> now i use jffs2 as my flash filesystem. but the  time  of the scan the 
>> device is two long , i find that  someone said that when i set the 
>> CONFIG_JFFS2_SUMMARY macro ,the time will reduce too much。
 
>This looks like a Linux configuration option.

yes , i has view some of the information,jffs2 is ported from linux environment 
to rtems. but i think the mount time is too long  for me 
 
>>
>> but i did not find the realization of the summary.  i only find the 
>> summary.h and no function realization.
>>
>> if i want to use this to reduce the scan time . how should i do ?
 
>You have to figure out how it works on Linux and how we can enable/port 
>this to RTEMS.

because i did not find the realization of this feature in the rtems source code 
. i just find the header file of the summary. 
i think i has no much time to do the port work and also i am not familiar with 
linux too . 
is rtems develop group want to support this feature in jffs2? 
thank you very much.
 
>>
>> i use rtems 4.11.2 and zynq 7000 platform.
>>
>> best wishes
>> ben
>>
>> 
>> bin.w...@qkmtech.com
>>
>>
>> ___
>> users mailing list
>> users@rtems.org
>> http://lists.rtems.org/mailman/listinfo/users
> 
>-- 
>Sebastian Huber, embedded brains GmbH
> 
>Address : Dornierstr. 4, D-82178 Puchheim, Germany
>Phone   : +49 89 189 47 41-16
>Fax : +49 89 189 47 41-09
>E-Mail  : sebastian.hu...@embedded-brains.de
>PGP : Public key available on request.
> 
>Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.
 
___
users mailing list
users@rtems.org
http://lists.rtems.org/mailman/listinfo/users

jffs2 summary problem

2018-01-29 Thread bin.w...@qkmtech.com
hi everyone

now i use jffs2 as my flash filesystem. but the  time  of the scan the device 
is two long , i find that  someone said that when i set the 
CONFIG_JFFS2_SUMMARY macro ,the time will reduce too much。

but i did not find the realization of the summary.  i only find the summary.h 
and no function realization.

if i want to use this to reduce the scan time . how should i do ?

i use rtems 4.11.2 and zynq 7000 platform.

best wishes
ben



bin.w...@qkmtech.com
___
users mailing list
users@rtems.org
http://lists.rtems.org/mailman/listinfo/users

Re: shell error

2018-01-23 Thread bin.w...@qkmtech.com
On Tue, Jan 23, 2018 at 9:48 AM, Gedare Bloom
> wrote:
>Your code needs to configure the kernel required resources as needed
>by your application. In this case, the shell is using a pthread key,
>so it should be configuring an extra POSIX_KEY. The mentioned approach
>can fix the problem because it simply configures all objects without
>limits. A better solution is to understand how many of each kind of
>kernel object your application needs and to configure exactly that, so
>as to reduce the resource overhead. Note, though, that the unified
>work area means the C program heap and the kernel objects reside in
>the same memory, so that there is no set-aside for kernel space, so
>the configure unlimited is less problematic in this situation. But,
>you could have an allocation failure eventually.
> 
>For more details you may read
>https://docs.rtems.org/branches/master/c-user/configuring_a_system.html

think you very much 
yes ,i add the POSIX_KEY resource 
#define CONFIGURE_MAXIMUM_POSIX_KEYS 1

and remove the 
#define CONFIGURE_UNLIMITED_OBJECTS
#define CONFIGURE_UNIFIED_WORK_AREAS

the shell  works . 

yes ,i have read the chapter of the c-user configure. 
another question: what is the posix key? i did not find any description in the 
posix user document.
and i also did not find any useful information on the google

best wishes 
ben





>Hello Ben,
> 
>On Tue, Jan 23, 2018 at 3:13 AM, bin.w...@qkmtech.com
> wrote:
>> hi everyone:
>>
>> i use the shell , but i get the error print as follows:
>>
>> "pthread_setspecific(shell_current_env_key)"
>>
>> so i search this problem, and  find someone has asked this question before,
>> somebody replied as "add the two defines"
>>
>> #define CONFIGURE_UNLIMITED_OBJECTS
>> #define CONFIGURE_UNIFIED_WORK_AREAS
>>
>> this solve the problem as i come up with,but i do not know why?
>>
>Your code needs to configure the kernel required resources as needed
>by your application. In this case, the shell is using a pthread key,
>so it should be configuring an extra POSIX_KEY. The mentioned approach
>can fix the problem because it simply configures all objects without
>limits. A better solution is to understand how many of each kind of
>kernel object your application needs and to configure exactly that, so
>as to reduce the resource overhead. Note, though, that the unified
>work area means the C program heap and the kernel objects reside in
>the same memory, so that there is no set-aside for kernel space, so
>the configure unlimited is less problematic in this situation. But,
>you could have an allocation failure eventually.
> 
>For more details you may read
>https://docs.rtems.org/branches/master/c-user/configuring_a_system.html
> 
>Gedare
> 
>> best
>> ben
>>
>>
>>
>> 
>> bin.w...@qkmtech.com
>>
>> ___
>> users mailing list
>> users@rtems.org
>> http://lists.rtems.org/mailman/listinfo/users
 
___
users mailing list
users@rtems.org
http://lists.rtems.org/mailman/listinfo/users

shell error

2018-01-23 Thread bin.w...@qkmtech.com
hi everyone:

i use the shell , but i get the error print as follows:

"pthread_setspecific(shell_current_env_key)"

so i search this problem, and  find someone has asked this question before, 
somebody replied as "add the two defines" 

#define CONFIGURE_UNLIMITED_OBJECTS
#define CONFIGURE_UNIFIED_WORK_AREAS

this solve the problem as i come up with,but i do not know why?

best
ben





bin.w...@qkmtech.com
___
users mailing list
users@rtems.org
http://lists.rtems.org/mailman/listinfo/users

Re: Re: smp support

2018-01-11 Thread bin.w...@qkmtech.com
Did you add an extra > character for your response? It is messing with
my email client, which interprets these as "reply" nesting...

> sorry , i will  add an extra > character for my response on later reply. 
>i have know what you said ,thank you very much 



bin.w...@qkmtech.com
 
From: Gedare Bloom
Date: 2018-01-11 23:09
To: bin.w...@qkmtech.com
CC: Chris Johns; Users
Subject: Re: Re: smp support
On Wed, Jan 10, 2018 at 8:48 PM, bin.w...@qkmtech.com
 wrote:
>
>> another question:
>>
>>  if i use the smp configuration macro define,am i still need to do the
>> mutiprocessor configuration macro define  for  confdef.h ?
>>
> With SMP you have to enable SMP when you configure/build RTEMS, and
> you need to provide the CPP configuration macros to set up the SMP
> system and schedulers.
>
>>> what the CPP means?
C Preprocessor.
 
Did you add an extra > character for your response? It is messing with
my email client, which interprets these as "reply" nesting...
 
>>>in CONFIGURING A SYSTEM chapter in c user doc, i find the two
>>> configurations items .  one is 24.22 SMP Specific Configuration Parameters
>>> ,another is 24.24 Multiprocessing Configuration
>>>what i want to ask is if i want to use smp, do i need use the
>>> Multiprocessing Configuration?  or i just need use SMP Specific
>>> Configuration Parameters and do not need care about >>the Multiprocessing
>>> Configuration.
 
You do not need to care about Multiprocessing Configuration.
 
>
> "SMP means all cores are treated equally by the operating system."
> "AMP means cores are not treated the same by the OS, which can cover a lot
> of heterogeneous behavior."
>>>i know what you said
>>>so the basic problem which confused me is the difference betweent
>>> Multiprocessing Configuration and SMP Configuration,  not the concept of amp
>>> and smp
>>>in my point of view ,no matter AMP or  SMP is  all called Multiprocessing
>>> because they all use the muticore .is it right ? so if i want to use AMP
>>> mode ,than i need >>just Multiprocessing Configuration?
 
There is not support for AMP out of the box with RTEMS as far as I
know. This "Multiprocessing Configuration" stuff is about how to run a
distributed system of multiple RTEMS images, one on each processor,
that share a global object namespace. It is not the same as how to run
a single RTEMS image that manages multiple processors.
 
>>>if i want to use SMP mode,than i need Multiprocessing Configuration and
>>> SMP Configuration ?
>
>
>
>
>
> 
> bin.w...@qkmtech.com
>
>
> From: Gedare Bloom
> Date: 2018-01-11 00:43
> To: bin.w...@qkmtech.com
> CC: Chris Johns; Users
> Subject: Re: Re: smp support
> On Fri, Dec 29, 2017 at 3:55 AM, bin.w...@qkmtech.com
>  wrote:
>> thanks
>>
>> but i still confused about the smp configuration and the mutiprocessor
>> configuration .
>>
>> for example. for zynq ,they has two arm core.   if i use the mutiprocessor
>> configuration , Is  rtems  use the two cores in amp mode ? is the rtems
>> manage the two cores? if rtems manages two cores,i think it is in smp mode
>> because  i think the concept of smp mode  is the one system can manage
>> muticores which are  same cpu architecture。this is conflictive for my
>> point
>> of view
>>
> SMP means all cores are treated equally by the operating system.
>
> AMP means cores are not treated the same by the OS, which can cover a
> lot of heterogeneous behavior.
>
> RTEMS provides SMP capability.
>
>>  i think amp mode is rtems run in one core, another core is bare-metal or
>> linux. but the mutiprocessor configuration let me confused, it said as
>> follows
>>
>> "The RTEMS multiprocessor execution model is multiple instruction streams
>> with multiple data
>> streams (MIMD). This execution model has each of the processors executing
>> code independent
>> of the other processors. Because of this parallelism, the application
>> designer can more easily
>> guarantee deterministic behavior."
>>
> This statement is true regardless of SMP/AMP: in either case, program
> code runs independent of other processors.
>
>> is it means one rtems system instance run in one core ,and another rtems
>> system instance  run in another core? and they can excute code
>> independent?
>> sorry, i think maybe i have some concept confused
>>
> One RTEMS instances executes across both cores, and both cores can
> execute code independent. It is possible for both cores to 

Re: Re: smp support

2018-01-10 Thread bin.w...@qkmtech.com

> another question:
>
>  if i use the smp configuration macro define,am i still need to do the
> mutiprocessor configuration macro define  for  confdef.h ?
>
With SMP you have to enable SMP when you configure/build RTEMS, and
you need to provide the CPP configuration macros to set up the SMP
system and schedulers.

>> what the CPP means?  
>>in CONFIGURING A SYSTEM chapter in c user doc, i find the two configurations 
>>items .  one is 24.22 SMP Specific Configuration Parameters ,another is 24.24 
>>Multiprocessing Configuration 
>>what i want to ask is if i want to use smp, do i need use the Multiprocessing 
>>Configuration?  or i just need use SMP Specific Configuration Parameters and 
>>do not need care about >>the Multiprocessing Configuration.

"SMP means all cores are treated equally by the operating system."
"AMP means cores are not treated the same by the OS, which can cover a lot of 
heterogeneous behavior."
>>i know what you said 
>>so the basic problem which confused me is the difference betweent  
>>Multiprocessing Configuration and SMP Configuration,  not the concept of amp 
>>and smp
>>in my point of view ,no matter AMP or  SMP is  all called Multiprocessing 
>>because they all use the muticore .is it right ? so if i want to use AMP mode 
>>,than i need >>just Multiprocessing Configuration?
>>if i want to use SMP mode,than i need Multiprocessing Configuration and SMP 
>>Configuration ? 
 






bin.w...@qkmtech.com
 
From: Gedare Bloom
Date: 2018-01-11 00:43
To: bin.w...@qkmtech.com
CC: Chris Johns; Users
Subject: Re: Re: smp support
On Fri, Dec 29, 2017 at 3:55 AM, bin.w...@qkmtech.com
 wrote:
> thanks
>
> but i still confused about the smp configuration and the mutiprocessor
> configuration .
>
> for example. for zynq ,they has two arm core.   if i use the mutiprocessor
> configuration , Is  rtems  use the two cores in amp mode ? is the rtems
> manage the two cores? if rtems manages two cores,i think it is in smp mode
> because  i think the concept of smp mode  is the one system can manage
> muticores which are  same cpu architecture。this is conflictive for my point
> of view
>
SMP means all cores are treated equally by the operating system.
 
AMP means cores are not treated the same by the OS, which can cover a
lot of heterogeneous behavior.
 
RTEMS provides SMP capability.
 
>  i think amp mode is rtems run in one core, another core is bare-metal or
> linux. but the mutiprocessor configuration let me confused, it said as
> follows
>
> "The RTEMS multiprocessor execution model is multiple instruction streams
> with multiple data
> streams (MIMD). This execution model has each of the processors executing
> code independent
> of the other processors. Because of this parallelism, the application
> designer can more easily
> guarantee deterministic behavior."
>
This statement is true regardless of SMP/AMP: in either case, program
code runs independent of other processors.
 
> is it means one rtems system instance run in one core ,and another rtems
> system instance  run in another core? and they can excute code independent?
> sorry, i think maybe i have some concept confused
>
One RTEMS instances executes across both cores, and both cores can
execute code independent. It is possible for both cores to be
executing OS functions simultaneously, or one core to execute OS code
while another runs application, or both cores to execute application
code in parallel.
 
> if just one rtems run in two core , how to put code into different core to
> run ? how to realize the parrallelism?
>
If you select RTEMS with SMP and provide scheduler with two cores, the
scheduler will assign tasks/threads to the cores according to its
scheduler policy/algorithm.
 
> another question:
>
>  if i use the smp configuration macro define,am i still need to do the
> mutiprocessor configuration macro define  for  confdef.h ?
>
With SMP you have to enable SMP when you configure/build RTEMS, and
you need to provide the CPP configuration macros to set up the SMP
system and schedulers.
 
> 
> bin.w...@qkmtech.com
>
>
> From: Chris Johns
> Date: 2017-12-29 14:21
> To: bin.w...@qkmtech.com; Users
> Subject: Re: smp support
> On 29/12/17 12:16 pm, bin.w...@qkmtech.com wrote:
>> thanks a lot .
>>
>> i have another question , if i use the smp, can i use the interrupt of
>> rtems?
>> which i want to interrupt period of hard real time of 125us.
>>
>
> Yes you can.
>
>> i do not know the difference of the bare-metal interrupt and the rtems
>> interrupt
>> . is  the rtems interrupt have  performance loss of the hard real-time?
>
> The interrupt o

Re: Re: the difference between posix user and c user

2018-01-10 Thread bin.w...@qkmtech.com
think you very much.

as  you said:

>POSIX and ISO-C tend to go together.
>With RTEMS, you can also use ISO-C with the "Classic API", which
>consists of interface functions accessible from C programs as
>described in the "C User Guide".

Does it mean that i can just use ISO-c?  so ,i think  I do not  need care about 
posix API because i think  i use the classic api  is enough for me  . is it 
right?

>Most new development and ports of existing software probably use POSIX
>anyway, except for the simplest applications. This configure option
>was provided historically as a way to avoid compiling the POSIX
>library into an application, but modern compilers are able to remove
>the unused code any way.

i think i understand what you said  in this part . if i use the  --enable posix 
in the  configure , but i do not use the posix api, then ,the compiler will not 
use the unused code .

thanks


bin.w...@qkmtech.com
 
From: Gedare Bloom
Date: 2018-01-11 00:50
To: bin.w...@qkmtech.com
CC: Chris Johns; Users
Subject: Re: Re: the difference between posix user and c user
On Thu, Dec 28, 2017 at 9:35 PM, bin.w...@qkmtech.com
 wrote:
> is the posix api and the c api used together?
>
POSIX and ISO-C tend to go together.
 
With RTEMS, you can also use ISO-C with the "Classic API", which
consists of interface functions accessible from C programs as
described in the "C User Guide".
 
> sorry . i am also confused about this two things . because i find that when
> i config the rtems kernel ,there is a option which is  --enable posix.
>
Most new development and ports of existing software probably use POSIX
anyway, except for the simplest applications. This configure option
was provided historically as a way to avoid compiling the POSIX
library into an application, but modern compilers are able to remove
the unused code any way.
 
> ____
> bin.w...@qkmtech.com
>
>
> From: bin.w...@qkmtech.com
> Date: 2017-12-29 09:25
> To: Chris Johns; Users
> Subject: Re: Re: the difference between posix user and c user
> i google the posix .now i know that posix is the abbreviation of "the
> Portable Operating System Interface" it is for software compatibility with
> variants of Unix and other operating systems
>
> but you said, "POSIX and the Classic API are both C APIs."
> than i think the posix is packaged on the basis of the standard C, is it
> right ?
> the classic api is the standard c interface , is it right?
>
> best wishes
>
> 
> bin.w...@qkmtech.com
>
>
> From: Chris Johns
> Date: 2017-12-29 02:18
> To: users
> Subject: Re: the difference between posix user and c user
> On 29/12/17 12:00 am, bin.w...@qkmtech.com wrote:
>> hi everyone:
>>
>> i am new to linux and rtems. i do not understand
>> what the difference between posix user and c user .
>>
>> i am confused about these two concept. which condition i should choose
>> posix ?
>> which condition i should choose c ?
>>
>
> This is a good question and it is understandable why you do not understand
> the
> difference. The reason is specific to RTEMS and relates to it's history.
>
> The original RTEMS was written in Ada and C and the C API is what we now
> call
> the Classic API. It's manual was called the C User Guide hence the name.
>
> The Ada version of RTEMS was removed from the source tree and POSIX came a
> while
> later.
>
> POSIX and the Classic API are both C APIs. The C User manual is now called
> the
> RTEMS Classic API Guide. See:
>
> https://docs.rtems.org/
>
> Chris
> ___
> users mailing list
> users@rtems.org
> http://lists.rtems.org/mailman/listinfo/users
>
>
> ___
> users mailing list
> users@rtems.org
> http://lists.rtems.org/mailman/listinfo/users
 
___
users mailing list
users@rtems.org
http://lists.rtems.org/mailman/listinfo/users

change bsp

2018-01-02 Thread bin.w...@qkmtech.com
hi 

1:i want to change the bsp according to the zynq zedboard。it only has console 
driver and i2c driver。 so i want to add some drviers i used in bare-metal 
software before (such as gpio)。i do not know how to start。

please give me some advice。

i find the function in bootcard.c   "rtems_initialize_device_drivers"   i 
think i need add code here, but the bsp i used installed as lib.so ,  can i 
 change the source code?

i do not understand the RTEMS_DRVMGR_STARTUP level 1,2,3,4   ,is there a 
example to add my device driver to the rtems architecture?

void rtems_initialize_device_drivers(void)
{
  /*
   *  Initialize all the device drivers and initialize the MPCI layer.
   *
   *  NOTE:  The MPCI may be build upon a device driver.
   */

  #ifdef RTEMS_DRVMGR_STARTUP
  /* BSPs has already registered their "root bus" driver in the
   * bsp_predriver hook or so.
   *
   * Init Drivers to Level 1, constraints:
   *   - Interrupts and system clock timer does not work.
   *   - malloc() work, however other memory services may not
   * have been initialized yet.
   *   - initializes most basic stuff
   *
   * Typical setup in Level 1:
   *   - Find most devices in system, do PCI scan and configuration.
   *   - Reset hardware if needed.
   *   - Install IRQ driver
   *   - Install Timer driver
   *   - Install console driver and debug printk()
   *   - Install extra memory.
   */
  _DRV_Manager_init_level(1);
  bsp_driver_level_hook(1);
  #endif

  /* Initialize I/O drivers. 
   *
   * Driver Manager note:
   * All drivers may not be registered yet. Drivers will dynamically
   * be initialized when registered in level 2,3 and 4.
   */
  _IO_Initialize_all_drivers();

  #ifdef RTEMS_DRVMGR_STARTUP
  /* Init Drivers to Level 2, constraints:
   *  - Interrupts can be registered and enabled.
   *  - System Clock is running
   *  - Console may be used.
   *
   * This is typically where drivers are initialized
   * for the first time.
   */
  _DRV_Manager_init_level(2);
  bsp_driver_level_hook(2);

  /* Init Drivers to Level 3 
   * 
   * This is typically where normal drivers are initialized
   * for the second time, they may depend on other drivers
   * API inited in level 2
   */
  _DRV_Manager_init_level(3);
  bsp_driver_level_hook(3);

  /* Init Drivers to Level 4,
   * Init drivers that depend on services initialized in Level 3
   */
  _DRV_Manager_init_level(4);
  bsp_driver_level_hook(4);
  #endif

  #if defined(RTEMS_MULTIPROCESSING)
if ( _System_state_Is_multiprocessing ) {
  _MPCI_Initialization();
  _MPCI_Internal_packets_Send_process_packet(
MPCI_PACKETS_SYSTEM_VERIFY
  );
}
  #endif

  /*
   *  Run the APIs and BSPs postdriver hooks.
   *
   *  The API extensions are supposed to create user initialization tasks.
   */
  _API_extensions_Run_postdriver();
}




2:another question is how can i enable the interrupt? in the init task is ok?




bin.w...@qkmtech.com
___
users mailing list
users@rtems.org
http://lists.rtems.org/mailman/listinfo/users

Re: Re: The system initialization API

2018-01-02 Thread bin.w...@qkmtech.com
ok. thanks , i think i first use single core because i am not familiar with the 
rtems , when i read the rtems doc .i find i has some unknow problems

if the single core is ok .then think about the smp mode 



bin.w...@qkmtech.com
 
From: Sebastian Huber
Date: 2018-01-02 20:31
To: bin.w...@qkmtech.com; joel
CC: Users
Subject: Re: The system initialization API
On 02/01/18 02:20, bin.w...@qkmtech.com wrote:
> sorry, i did not find it in what you said in cpukit/
 
You probably don't use the Git master branch. For SMP it is highly 
recommended to use the Git master an not RTEMS 4.11.
 
-- 
Sebastian Huber, embedded brains GmbH
 
Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax : +49 89 189 47 41-09
E-Mail  : sebastian.hu...@embedded-brains.de
PGP : Public key available on request.
 
Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.
 
___
users mailing list
users@rtems.org
http://lists.rtems.org/mailman/listinfo/users

Re: Re: The system initialization API

2018-01-01 Thread bin.w...@qkmtech.com
sorry, i did not find it in what you said in cpukit/



bin.w...@qkmtech.com
 
From: Joel Sherrill
Date: 2017-12-30 01:41
To: bin.wang
CC: rtems-us...@rtems.org
Subject: Re: The system initialization API


On Dec 28, 2017 8:24 PM, "bin.w...@qkmtech.com"  wrote:
hi 

when i read the rtems c user pdf ,in  the 6.3.1 Initializing RTEMS  i find that 

"The system initialization API is available via‘‘#included‘‘."

but i do not find the sysint.h file in the source code folders . is it 
something wrong ?

RTEMS is implicitly initialized as part of getting to the first user thread and 
initializing the BSP. 

That file may not be installed but should be under cpukit/.




bin.w...@qkmtech.com

___
users mailing list
users@rtems.org
http://lists.rtems.org/mailman/listinfo/users

___
users mailing list
users@rtems.org
http://lists.rtems.org/mailman/listinfo/users

Re: Re: smp support

2017-12-29 Thread bin.w...@qkmtech.com
thanks 

but i still confused about the smp configuration and the mutiprocessor 
configuration .

for example. for zynq ,they has two arm core.   if i use the mutiprocessor 
configuration , Is  rtems  use the two cores in amp mode ? is the rtems manage 
the two cores? if rtems manages two cores,i think it is in smp mode  because  i 
think the concept of smp mode  is the one system can manage muticores which are 
 same cpu architecture。this is conflictive for my point of view

 i think amp mode is rtems run in one core, another core is bare-metal or 
linux. but the mutiprocessor configuration let me confused, it said as follows

"The RTEMS multiprocessor execution model is multiple instruction streams with 
multiple data
streams (MIMD). This execution model has each of the processors executing code 
independent
of the other processors. Because of this parallelism, the application designer 
can more easily
guarantee deterministic behavior."

is it means one rtems system instance run in one core ,and another rtems system 
instance  run in another core? and they can excute code independent?  sorry, i 
think maybe i have some concept confused

if just one rtems run in two core , how to put code into different core to run 
? how to realize the parrallelism?

another question:

 if i use the smp configuration macro define,am i still need to do the 
mutiprocessor configuration macro define  for  confdef.h ?



bin.w...@qkmtech.com
 
From: Chris Johns
Date: 2017-12-29 14:21
To: bin.w...@qkmtech.com; Users
Subject: Re: smp support
On 29/12/17 12:16 pm, bin.w...@qkmtech.com wrote:
> thanks a lot . 
> 
> i have another question , if i use the smp, can i use the interrupt of  rtems?
> which i want to interrupt period of hard real time of 125us. 
> 
 
Yes you can.
 
> i do not know the difference of the bare-metal interrupt and the rtems 
> interrupt
> . is  the rtems interrupt have  performance loss of the hard real-time?
 
The interrupt overhead will have the same overhead each time and its
deterministic behaviour will depend on the other interrupts in your system and
their priority. The performance will depend on what you need to do in the 
interrupt.
 
> 
> what the schedule method of smp use? is it can affect the interrupt 
> performance?
> 
 
That depends on your application.
 
Chris
___
users mailing list
users@rtems.org
http://lists.rtems.org/mailman/listinfo/users

Re: Re: smp support

2017-12-28 Thread bin.w...@qkmtech.com
before i use the rtems , i just write the bare-metal code. 

now i want to use the rtems. but i do not know how to add the original 
bare-metal interrupt routine into the rtems program.

is it has conflict betweent the bare-metal code and the rtems code? 

I has no idea about how to use my old code into the rtems code . in my old code 
,i has some interrupt routine which need nested. and has a background routine 
to process comunication .



bin.w...@qkmtech.com
 
From: Chris Johns
Date: 2017-12-29 14:21
To: bin.w...@qkmtech.com; Users
Subject: Re: smp support
On 29/12/17 12:16 pm, bin.w...@qkmtech.com wrote:
> thanks a lot . 
> 
> i have another question , if i use the smp, can i use the interrupt of  rtems?
> which i want to interrupt period of hard real time of 125us. 
> 
 
Yes you can.
 
> i do not know the difference of the bare-metal interrupt and the rtems 
> interrupt
> . is  the rtems interrupt have  performance loss of the hard real-time?
 
The interrupt overhead will have the same overhead each time and its
deterministic behaviour will depend on the other interrupts in your system and
their priority. The performance will depend on what you need to do in the 
interrupt.
 
> 
> what the schedule method of smp use? is it can affect the interrupt 
> performance?
> 
 
That depends on your application.
 
Chris
___
users mailing list
users@rtems.org
http://lists.rtems.org/mailman/listinfo/users

Re: Re: the difference between posix user and c user

2017-12-28 Thread bin.w...@qkmtech.com
is the posix api and the c api used together?

sorry . i am also confused about this two things . because i find that when i 
config the rtems kernel ,there is a option which is  --enable posix.



bin.w...@qkmtech.com
 
From: bin.w...@qkmtech.com
Date: 2017-12-29 09:25
To: Chris Johns; Users
Subject: Re: Re: the difference between posix user and c user
i google the posix .now i know that posix is the abbreviation of "the Portable 
Operating System Interface" it is for software compatibility with variants of 
Unix and other operating systems

but you said, "POSIX and the Classic API are both C APIs."
than i think the posix is packaged on the basis of the standard C, is it right ?
the classic api is the standard c interface , is it right?

best wishes



bin.w...@qkmtech.com
 
From: Chris Johns
Date: 2017-12-29 02:18
To: users
Subject: Re: the difference between posix user and c user
On 29/12/17 12:00 am, bin.w...@qkmtech.com wrote:
> hi everyone:
> 
> i am new to linux and rtems. i do not understand
> what the difference between posix user and c user .
> 
> i am confused about these two concept. which condition i should choose posix ?
> which condition i should choose c ?
> 
 
This is a good question and it is understandable why you do not understand the
difference. The reason is specific to RTEMS and relates to it's history.
 
The original RTEMS was written in Ada and C and the C API is what we now call
the Classic API. It's manual was called the C User Guide hence the name.
 
The Ada version of RTEMS was removed from the source tree and POSIX came a while
later.
 
POSIX and the Classic API are both C APIs. The C User manual is now called the
RTEMS Classic API Guide. See:
 
https://docs.rtems.org/
 
Chris
___
users mailing list
users@rtems.org
http://lists.rtems.org/mailman/listinfo/users
___
users mailing list
users@rtems.org
http://lists.rtems.org/mailman/listinfo/users

The system initialization API

2017-12-28 Thread bin.w...@qkmtech.com
hi 

when i read the rtems c user pdf ,in  the 6.3.1 Initializing RTEMS  i find that 

"The system initialization API is available via‘‘#included‘‘."

but i do not find the sysint.h file in the source code folders . is it 
something wrong ?



bin.w...@qkmtech.com
___
users mailing list
users@rtems.org
http://lists.rtems.org/mailman/listinfo/users

Re: Re: smp support

2017-12-28 Thread bin.w...@qkmtech.com
hi joel

if i do not use smp mode ,i just use the mutiprocessor configure in the 
confdef.h, is it the amp mode?  

can i  use the mpci to comunication between the two core? 

best wishes
ben



bin.w...@qkmtech.com
 
From: Joel Sherrill
Date: 2017-12-28 21:32
To: bin.wang
CC: rtems-us...@rtems.org
Subject: Re: smp support
Smp support first was usable in the 4.11 release series. It matured between 
then and the git master which will be RTEMS 5. For new projects, we recommend 
just using the git master and moving to the 5.x releases when made. The smp has 
significant improvements and optimizations.

--joel

On Dec 28, 2017 2:53 AM, "bin.w...@qkmtech.com"  wrote:
hi: everybody:

i want to use the smp in the rtems.

when i see the c user doc .i find as follows

Warning: The SMP support in the release of RTEMS is a work in progress. Before 
you start
using this RTEMS version for SMP ask on the RTEMS mailing list.

is the smp in the developing phase?   can it be used in xilinx zynq702? 



bin.w...@qkmtech.com

___
users mailing list
users@rtems.org
http://lists.rtems.org/mailman/listinfo/users
___
users mailing list
users@rtems.org
http://lists.rtems.org/mailman/listinfo/users

Re: Re: the difference between posix user and c user

2017-12-28 Thread bin.w...@qkmtech.com
i google the posix .now i know that posix is the abbreviation of "the Portable 
Operating System Interface" it is for software compatibility with variants of 
Unix and other operating systems

but you said, "POSIX and the Classic API are both C APIs."
than i think the posix is packaged on the basis of the standard C, is it right ?
the classic api is the standard c interface , is it right?

best wishes



bin.w...@qkmtech.com
 
From: Chris Johns
Date: 2017-12-29 02:18
To: users
Subject: Re: the difference between posix user and c user
On 29/12/17 12:00 am, bin.w...@qkmtech.com wrote:
> hi everyone:
> 
> i am new to linux and rtems. i do not understand
> what the difference between posix user and c user .
> 
> i am confused about these two concept. which condition i should choose posix ?
> which condition i should choose c ?
> 
 
This is a good question and it is understandable why you do not understand the
difference. The reason is specific to RTEMS and relates to it's history.
 
The original RTEMS was written in Ada and C and the C API is what we now call
the Classic API. It's manual was called the C User Guide hence the name.
 
The Ada version of RTEMS was removed from the source tree and POSIX came a while
later.
 
POSIX and the Classic API are both C APIs. The C User manual is now called the
RTEMS Classic API Guide. See:
 
https://docs.rtems.org/
 
Chris
___
users mailing list
users@rtems.org
http://lists.rtems.org/mailman/listinfo/users
___
users mailing list
users@rtems.org
http://lists.rtems.org/mailman/listinfo/users

Re: Re: smp support

2017-12-28 Thread bin.w...@qkmtech.com
thanks a lot . 

i have another question , if i use the smp, can i use the interrupt of  rtems? 
which i want to interrupt period of hard real time of 125us. 

i do not know the difference of the bare-metal interrupt and the rtems 
interrupt . is  the rtems interrupt have  performance loss of the hard 
real-time?

what the schedule method of smp use? is it can affect the interrupt performance?

best wishes



bin.w...@qkmtech.com
 
From: Chris Johns
Date: 2017-12-29 02:08
To: users
Subject: Re: smp support
On 28/12/17 7:51 pm, bin.w...@qkmtech.com wrote:
> *hi: everybody:*
> *
> *
> *i want to use the smp in the rtems.*
> *
> *
> *when i see the c user doc .i find as follows*
> *
> *
> *Warning: *The SMP support in the release of RTEMS is a work in progress. 
> Before
> you start
> using this RTEMS version for SMP ask on the RTEMS mailing list.
> 
> is the smp in the developing phase?   can it be used in xilinx zynq702? 
> 
 
SMP for the Zynq is supported on the git master. The 4.11 release was a work in
progress.
 
If you wish to use SMP please use the git master sources and not 4.11.
 
Chris
___
users mailing list
users@rtems.org
http://lists.rtems.org/mailman/listinfo/users
___
users mailing list
users@rtems.org
http://lists.rtems.org/mailman/listinfo/users

the difference between posix user and c user

2017-12-28 Thread bin.w...@qkmtech.com
hi everyone:

i am new to linux and rtems. i do not understand what the difference between 
posix user and c user .

i am confused about these two concept. which condition i should choose posix ? 
which condition i should choose c ?

best



bin.w...@qkmtech.com
___
users mailing list
users@rtems.org
http://lists.rtems.org/mailman/listinfo/users

smp support

2017-12-28 Thread bin.w...@qkmtech.com
hi: everybody:

i want to use the smp in the rtems.

when i see the c user doc .i find as follows

Warning: The SMP support in the release of RTEMS is a work in progress. Before 
you start
using this RTEMS version for SMP ask on the RTEMS mailing list.

is the smp in the developing phase?   can it be used in xilinx zynq702? 



bin.w...@qkmtech.com
___
users mailing list
users@rtems.org
http://lists.rtems.org/mailman/listinfo/users

Re: Re: configure problem

2017-12-26 Thread bin.w...@qkmtech.com
thank you very much 

ok , i has do what you said item 1 and 2.  and i can do my rtems application in 
windows envirment in xilink sdk. 

i just want to follow the rtems eclipse doc to do the build process , because i 
just want to know more about the autotools. so if there is a problem , i think 
i do not pay attention to this part. 

best
bin.wang


bin.w...@qkmtech.com
 
From: Chris Johns
Date: 2017-12-27 15:33
To: bin.w...@qkmtech.com; Users
Subject: Re: configure problem
On 27/12/17 3:16 pm, bin.w...@qkmtech.com wrote:
> ok ,sorry , i am new to rtems . 
> yes, i use the MSYS2 to build the tools. so i use the tools path in the xilinx
> sdk , as the document said ,i add the tools path to the PAHT envirment 
> variable
> 
> you means i should use the pure eclipse ? and do not use the xilinx sdk?
 
It might be a good idea if you can.
 
Let me attempt to break down what is happening 
 
1. RTEMS Tools, the GCC compiler, assembler and debugger. You need MSYS2 to
build these because of the autoconf configure used and size of the build. I also
think cygwin can be used but I do not test this.
 
2. RTEMS Kernel. I have only built RTEMS on Windows using MSYS2. In theory you
any working shell on Windows should be OK but I have not tested this. Again a
good working shell is needed because of the autoconf based build system.
 
Items 1 and 2 create native executables and suitable libraries and you can in
theory use any Windows environment that runs native Windows executables.
 
> now i get the follow error
> 
> //--
> 
> Generating Makefile in build directory: 
> E:/workdir/pallas_SDKworkspace/rtems_kernel_build/build
> 
> sh -c 
> "/E/workdir/pallas_SDKworkspace/rtems_kernel_build/rtems-4.11.2/configure 
> --target=arm-rtems4.11 --prefix=/kernelinstall 
> --enable-rtemsbsp=xilinx_zynq_zc702 --enable-tests --enable-posix 
> --disable-networking --enable-cxx --enable-rtems-debug" 
> checking for gmake... no
> checking for gmake... no
> checking for make... make
> checking for RTEMS Version... 4.11.2
> checking build system type... i686-pc-mingw32
> checking host system type... i686-pc-mingw32
> checking target system type... arm-unknown-rtems4.11
> checking for a BSD-compatible install... 
> /g/software/xilinx/SDK/2017.3/gnuwin/bin/ginstall -c
> configure: error: ls -t appears to fail.  Make sure there is not a broken
> configure: error: ls -t appears to fail.  Make sure there is not a broken
>   alias in your environment
This looks like the environment does not work with autoconf's configure file.
 
There is not much we can do.
 
Chris
___
users mailing list
users@rtems.org
http://lists.rtems.org/mailman/listinfo/users

Re: Re: configure problem

2017-12-26 Thread bin.w...@qkmtech.com
11.2/configure: line 
23: unset: `silent
': not a valid identifier
/E/workdir/pallas_SDKworkspace/rtems_kernel_build/rtems-4.11.2/configure: line 
23: unset: `site
': not a valid identifier
/E/workdir/pallas_SDKworkspace/rtems_kernel_build/rtems-4.11.2/configure: line 
23: unset: `srcdir
': not a valid identifier
/E/workdir/pallas_SDKworkspace/rtems_kernel_build/rtems-4.11.2/configure: line 
23: unset: `subdirs
': not a valid identifier
/E/workdir/pallas_SDKworkspace/rtems_kernel_build/rtems-4.11.2/configure: line 
23: unset: `sysconfdir
': not a valid identifier
/E/workdir/pallas_SDKworkspace/rtems_kernel_build/rtems-4.11.2/configure: line 
23: unset: `target
': not a valid identifier
/E/workdir/pallas_SDKworkspace/rtems_kernel_build/rtems-4.11.2/configure: line 
23: unset: `target_alias
': not a valid identifier
/E/workdir/pallas_SDKworkspace/rtems_kernel_build/rtems-4.11.2/configure: line 
23: unset: `target_cpu
': not a valid identifier
/E/workdir/pallas_SDKworkspace/rtems_kernel_build/rtems-4.11.2/configure: line 
23: unset: `target_os
': not a valid identifier
/E/workdir/pallas_SDKworkspace/rtems_kernel_build/rtems-4.11.2/configure: line 
23: unset: `target_vendor
': not a valid identifier
/E/workdir/pallas_SDKworkspace/rtems_kernel_build/rtems-4.11.2/configure: line 
23: unset: `verbose
': not a valid identifier
/E/workdir/pallas_SDKworkspace/rtems_kernel_build/rtems-4.11.2/configure: line 
23: unset: `windows_tracing_flags
': not a valid identifier
/E/workdir/pallas_SDKworkspace/rtems_kernel_build/rtems-4.11.2/configure: line 
23: unset: `windows_tracing_logfile
': not a valid identifier
/E/workdir/pallas_SDKworkspace/rtems_kernel_build/rtems-4.11.2/configure: line 
23: unset: `x_includes
': not a valid identifier
sed.exe: -e expression #1, char 2: extra characters after command
G:\software\xilinx\SDK\2017.3\gnuwin\bin\rm.exe: cannot remove `*.core': 
Invalid argument
G:\software\xilinx\SDK\2017.3\gnuwin\bin\rm.exe: cannot remove 
`core.conftest.*': Invalid argument
checking whether build environment is sane... 

Configuration failed with error





bin.w...@qkmtech.com
 
From: Chris Johns
Date: 2017-12-27 05:55
To: bin.w...@qkmtech.com; Users
Subject: Re: configure problem
Again, please do not post user questions to bui...@rtems.org, it is for build
results and not user questions. Thanks.
 
On 26/12/17 10:49 pm, bin.w...@qkmtech.com wrote:
> i has find this problem is caused by "rtems tools path is not correct"
> 
> but when i set the path ok ,there is another problem
> 
 
Please remove any reference to any Xilinx SDK tools from your path while you are
building the tools. You need to use MSYS2 to build the tools.
 
> G:\software\xilinx\SDK\2017.3\gnuwin\bin\rm.exe: cannot remove `*.core': 
> Invalid argument
 
The Xilinx SDK contains it's own environment and this will not be able to build
a set of GCC tools.
 
Chris
___
users mailing list
users@rtems.org
http://lists.rtems.org/mailman/listinfo/users

Re: Re: configure problem

2017-12-26 Thread bin.w...@qkmtech.com
nfigure: line 
23: unset: `srcdir
': not a valid identifier
/E/workdir/pallas_SDKworkspace/rtems_kernel_build/rtems-4.11.2/configure: line 
23: unset: `subdirs
': not a valid identifier
/E/workdir/pallas_SDKworkspace/rtems_kernel_build/rtems-4.11.2/configure: line 
23: unset: `sysconfdir
': not a valid identifier
/E/workdir/pallas_SDKworkspace/rtems_kernel_build/rtems-4.11.2/configure: line 
23: unset: `target
': not a valid identifier
/E/workdir/pallas_SDKworkspace/rtems_kernel_build/rtems-4.11.2/configure: line 
23: unset: `target_alias
': not a valid identifier
/E/workdir/pallas_SDKworkspace/rtems_kernel_build/rtems-4.11.2/configure: line 
23: unset: `target_cpu
': not a valid identifier
/E/workdir/pallas_SDKworkspace/rtems_kernel_build/rtems-4.11.2/configure: line 
23: unset: `target_os
': not a valid identifier
/E/workdir/pallas_SDKworkspace/rtems_kernel_build/rtems-4.11.2/configure: line 
23: unset: `target_vendor
': not a valid identifier
/E/workdir/pallas_SDKworkspace/rtems_kernel_build/rtems-4.11.2/configure: line 
23: unset: `verbose
': not a valid identifier
/E/workdir/pallas_SDKworkspace/rtems_kernel_build/rtems-4.11.2/configure: line 
23: unset: `windows_tracing_flags
': not a valid identifier
/E/workdir/pallas_SDKworkspace/rtems_kernel_build/rtems-4.11.2/configure: line 
23: unset: `windows_tracing_logfile
': not a valid identifier
/E/workdir/pallas_SDKworkspace/rtems_kernel_build/rtems-4.11.2/configure: line 
23: unset: `x_includes
': not a valid identifier
sed.exe: -e expression #1, char 2: extra characters after command
G:\software\xilinx\SDK\2017.3\gnuwin\bin\rm.exe: cannot remove `*.core': 
Invalid argument
G:\software\xilinx\SDK\2017.3\gnuwin\bin\rm.exe: cannot remove 
`core.conftest.*': Invalid argument
checking whether build environment is sane... 

Configuration failed with error



bin.w...@qkmtech.com
 
From: Chris Johns
Date: 2017-12-26 09:57
To: bin.w...@qkmtech.com; Users
Subject: Re: configure problem
Hi,
 
Please use the users@rtems.org for User related questions.
 
On 25/12/17 9:46 pm, bin.w...@qkmtech.com wrote:
> 
> i use the msys2 in the windows7 ,i have install the rtems tools and xilinx
> zynq_zc702 bsp, and i follow the RTEMS Eclipse Manual /Release 4.11.2 pdf  
> ,but
> when i  reconfigure the project ,i get the following  error ./
> 
> Error 127 occurred while running 
> E:/studydir/rtems/rtems-4.11.2/configurertems-4.11.2-1Configure Problem
> 
 
There seems to be some missing '/' characters. It is not clear why this is
happening.
 
Chris
___
users mailing list
users@rtems.org
http://lists.rtems.org/mailman/listinfo/users