RSB error in MSYS2 MinGW

2020-11-20 Thread jameszxj
Hi,     I built arm compiler with "../source-builder/sb-set-builder --dry-run --with-download 6/rtems-arm", and got the errors: config: tools/rtems-gdb-head.cfg error: shell macro failed: sh -c "/mingw64/bin/python2-config --ldflags | awk 'BEGIN{FS=\" \"}/python/{for(i=1;i<> ___

Are there any operations may influence WFI instruction?

2021-05-01 Thread jameszxj
Hi,   I run rtems6 on my imx6ull board, just initialize a GPT timer to flash a LED.  I load rtems with barebox, after output some initialized messages, system enters shell and stalls, interrupt(GPT timer, arch7 timer for tick) do not happen again. Shell (connect to UART1,interrupt mode) still w

undefined reference to `z_inflateEnd'

2019-12-04 Thread jameszxj
Hi,      When I try to call rtems_fdt_add_shell_command(​) to support device tree,  some link errors occurs.       I have added -lz in link command line, and I have tried to change the position of "-lz", but link errors still threre. error message: d:/msys64/opt/rtems/5.1/bin/../lib/gcc/arm-rte

Re: undefined reference to `z_inflateEnd'

2019-12-04 Thread jameszxj
It works, thanks. -- Original -- From: "Sebastian Huber"http://lists.rtems.org/mailman/listinfo/devel___ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/devel

Re:[PATCH v2] libmisc/top: Fix the idle time and priorities on SMP

2019-12-12 Thread jameszxj
Hi,    1. "data->current_idle" and "data->idle" should be initialize (_Timestamp_Set_to_zero), or the " Load Average" will not be right.    2. On z7020 board, SMP mode, the RPRI and CPRI of idle seems not reasonable.  ID         | NAME                | RPRI | CPRI   | TIME                | TO

Re: [PATCH v2] libmisc/top: Fix the idle time and priorities on SMP

2019-12-15 Thread jameszxj
Agree. Patch v3 is ok except for IDLE's priority. The maximum_priority is defined by diffrent scheduler, scheduler CBS and EDF define it as INT_MAX, so  the priority of IDLE is 2147483647 (‭0x7FFF‬). If normalise the priorities in unmap_priority()​, we can get the expected results from _RTE

Problems about port to allwinner T3

2020-02-08 Thread jameszxj
Hi,     I am trying to port RTEMS for allwinner T3 Soc(Quad cortex-A7 core)?? I start it from BSP imx.  System runs just with one core and without MMU, So I have two problems: 1.when I enable MMU, system halt But uboot run ok with MMU and cache on, even I use the same ttb descriptor as uboot, sys

RSB build failed.

2020-02-08 Thread jameszxj
Hi,   RSB failed when build gdb on MINGW64. error messages: D:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/9.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ada-tasks.o: in function `memcpy': D:/msys64/mingw64/x86_64-w64-mingw32/include/string.h:202: undefined reference to `__memcpy_chk'

Suggestion about libdl's cache size

2020-02-09 Thread jameszxj
Hi    The caches size(RTEMS_RTL_ELF_SYMBOL_CACHE ...) now are just define in rtl.c. One of our project should increase the cache size, so I have to modify the kernel source file directly. I think if the cache size can be redefined maybe friendly.    thanks. __

Re: Suggestion about libdl's cache size

2020-02-09 Thread jameszxj
-- Original -- From: "Chris Johns"___ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/devel

Re: RSB build failed.

2020-02-13 Thread jameszxj
Hi Chris      Yes??It works??thanks?? iPhone -- Original -- From: Chris Johns https://git.rtems.org/rtems-source-builder/commit/?id=591deae6d7411af04fd31d2a68dee9520b33c657 > > ... however this option does not help. It is not clear to me what is wrong w

Is there a way to modify PHY register in libBSD?

2020-03-16 Thread jameszxj
Hi,     I used ukphy driver in project, now I want to tune some PHY registers. Is there a way to modify PHY registers like *phy_fixup in Linux? Or other ways? I think that modify the driver source directly is not a good way.___ devel mailing list devel@

Problem about porting TCP/IP Stack

2020-03-27 Thread jameszxj
Hi all,         Since rtems-libbsd is too heavy for our project, so I tried to port Lightweight TCP/IP stacks.  First I tried lwip, it worked but crashed now and then. The PC pointed at function _Heap_Block_split()??I could not figure it out. So I tried cycloneTCP . It is more simple than lwip. 

rtems-libbsd build error on

2018-05-03 Thread jameszxj
HI, I compile the current libbsd (newest github version) use "--buildset=buildset/minimal.ini" , Error occurs on building "testsuit/debugger01". I found that the waf_libbsd.py file lost a link lib file "libdebugger.a". Would someone review and patch it. waf_libbsd.py.patch Description: Binary

ftp server upload filer error.

2018-05-03 Thread jameszxj
hi, I update libbsd to the github version, and when i upload a file, the upload process failed at the end, and the target shell stuck. I disconnect from the ftp client, shell print the msg debug: _bsd_sonewconn: pcb 0x15df2000: Listen queue overflow: 2 already in queue awaiting accept

Re: ftp server upload filer error.

2018-05-07 Thread jameszxj
-- From: "jameszxj"; Date: Fri, May 4, 2018 12:00 PM To: "devel"; Subject: ftp server upload filer error. hi, I update libbsd to the github version, and when i upload a file, the upload process failed at the end, and the target shell stuck. I disconnect

question about rtc command

2018-05-28 Thread jameszxj
hi all, rtc command return the current time of day, it seems unreasonable. I think it should return the time of real time clock. Any other reasons to do so?___ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/devel

Does RTEMS5.1 have a release plan?

2018-10-11 Thread jameszxj
Hi all: We use the master rtems5 version in our project, it works fine. In the next few months, we will release a project version, so we want to know if RTEMES5.1 has a release date?___ devel mailing list devel@rtems.org http://lists.rtems.org/mai

Link RAP file error on zynq BSP

2018-10-11 Thread jameszxj
HI,I run RTEMS on my xilinx z7k board and dynamic load application(RAP format) from shell. In recent update, i encount a link error when link the RAP file. Here is the command and output message: rtems-ld -n -e PT_Init --base rtems-nsa.elf wsp/build/nssys.elf -o wsp/build/nssy

Re: Link RAP file error on zynq BSP

2018-10-14 Thread jameszxj
On 12/10/18 10:05 am, Joel Sherrill wrote: >> >> >> On Thu, Oct 11, 2018 at 11:45 PM jameszxj > <mailto:james...@gmail.com>> wrote: >> >> HI, >> I run RTEMS on my xilinx z7k board and dynamic load application(RAP >> format)

Re: Does RTEMS5.1 have a release plan?

2018-10-14 Thread jameszxj
OK, I know. Thanks for the working . -- Original -- From: "Chris Johns"; Date: Fri, Oct 12, 2018 10:21 PM To: "jameszxj";"devel"; Subject: Re: Does RTEMS5.1 have a release plan? On 11/10/18 9:01 pm, jameszxj wrote: >

Re: Link RAP file error on zynq BSP

2018-10-14 Thread jameszxj
> >On 12/10/18 10:05 am, Joel Sherrill wrote: >>> >>> >>> On Thu, Oct 11, 2018 at 11:45 PM jameszxj >> <mailto:james...@gmail.com>> wrote: >>> >>> HI, >>> I run RTEMS on my xilinx z7k board and dynamic l

Re: Link RAP file error on zynq BSP

2018-10-15 Thread jameszxj
From: "Sebastian Huber"; Date: Mon, Oct 15, 2018 02:43 PM To: "devel"; Cc: "jameszxj"; Subject: Re: Link RAP file error on zynq BSP On 15/10/2018 08:16, jameszxj wrote: >> d:/msys64/opt/rtems/5.1/bin/../lib/gcc/arm-rtems5/7.3.0/../../../../arm-

Re: Link RAP file error on zynq BSP

2018-10-15 Thread jameszxj
>It should be fixed with this commit: > https://git.rtems.org/rtems/commit/?id=186a0b1dc017b1e2e44620f8d6274dc1c6ba09d1 thanks, compile is ok. but rtems-ld still has a error outputter:application: wsp/build/nssys.out image::close: removing wsp/build/nssys.out error: rap::object: Section index '

Re:GMP error when building aarch64-rtems-gcc on Mingw64

2022-04-01 Thread jameszxj
It has been there for a while. It is caused by the gmp configure parameter (in gcc/makefile.in line 12644 ) I change "--host=none-${host_vendor}-${host_os} --target=none-${host_vendor}-${host_os}" to "--host=${host_alias} --target=${host_alias}", the building succeeds.    -- O

rtems-libbsd link error.

2019-05-28 Thread jameszxj
Hello, In file freebsd/sys/kern/kern_intr.c function intr_handler_barrier() is exclude by #ifndef __rtems__ ... #endif But function intr_event_suspend_handler() and intr_event_resume_handler() reference it, this will lead to a link error._

Re: rtems-libbsd link error.

2019-05-28 Thread jameszxj
--- From: "Sebastian Huber"; Date: Tue, May 28, 2019 04:20 PM To: "jameszxj";"devel"; Subject: Re: rtems-libbsd link error. On 28/05/2019 10:14, jameszxj wrote: > Hello, >In file freebsd/sys/kern/kern_intr.c > function intr_handler_barrier

RAP File load error

2019-06-10 Thread jameszxj
Hi , When I update RTEMS from HEAD:be50969881b97180bf4fc1e2975efd41169e08bb [be50969] to HEAD: b36c52097f52012f9a52dff6fc8393d63805158b [b36c520], the RAP file can not be loaded. dlerror() return nothing.___ devel mailing list devel@rtems.org ht

[PATCH]Re:RAP File load error

2019-06-11 Thread jameszxj
I found the problem is: rtems_rtl_elf_relocate_rel() change the return value, but rtl-rap.c:412 still check the return value as bool, so the RAP load failed. I make a patch about this. -- Original -- From: "jameszxj"; Date: Tue, Jun 11, 2019 09:18 AM

Re: [PATCH]Re:RAP File load error

2019-06-11 Thread jameszxj
I commit and create a patch use sourcetree, is this ok? -- Original -- From: "Chris Johns"; Date: Wed, Jun 12, 2019 12:26 PM To: "jameszxj";"devel"; Subject: Re: [PATCH]Re:RAP File load error On 12/6/19 2:15 pm, jameszxj wrote:

RSB build error (MSYS2)

2019-08-11 Thread jameszxj
Hi, I tried to update the compiler to RSB master, and encountered an error. command line: ../source-builder/sb-set-builder --dry-run --with-download 5/rtems-arm error messgae: config: tools/rtems-gdb-8.2.1-1.cfg error: shell macro failed: sh -c "/mingw64/bin/python2-config --ldflags | awk '

Problem about port cycloneTCP

2019-09-06 Thread jameszxj
HI, I met a strange problem when I port cycloneTCP on z7000 board. System crashed when a add or delete some codes, even if the codes have nothing to do with cycloneTCP. I trace the PC pointer, But it point to RTEMS core function, I think core function is impossible to have a problem. I guess it

Run Time linker and relocation of multiple local labels

2019-09-16 Thread jameszxj
Hi, About issue #3740, I think maybe I found the cause of loading failed. In file libdl/rtl-elf.c line159-166, it says "STT_NOTYPE the symbol references a global symbol", But from arm-rtems-readelf information, local symbol .LC0 ...is STT_NOTYPE. And the of document IHI0044E_aaelf.pdf 4.5

Suggestions about rtems-ld

2019-09-21 Thread jameszxj
Hi, 1. option -e (--entry) In most cases, entry point is useless when use dynamic load. Default entry point "rtems" makes user must provid a entry point or provid "rtems" entry point. I think make default entry point to null is better, if user does not assign one. If it is acceptable,

RSB do not build rtems-tools any more?

2019-09-28 Thread jameszxj
HI, I build from rtems-source-builder version(abbcc5d8c6b4de60f83aaece5a9f4feef4c251c9) on MSYS2, command is "../source-builder/sb-set-builder --log=l-arm.txt --prefix=/opt/rtems/5.1 5/rtems-arm" but rtems-tools was not build.___ devel mailing list

Re: RSB do not build rtems-tools any more?

2019-09-28 Thread jameszxj
quot;Chris Johns"; Date: Sun, Sep 29, 2019 12:20 PM To: "jameszxj"; Cc: "devel"; Subject: Re: RSB do not build rtems-tools any more? On 29 Sep 2019, at 12:11 pm, jameszxj wrote: I build from rtems-source-builder version(abbcc5d8c6b4de60f83aaece5a9f4feef4c251c9) on MS

libBSD and CPU Load display questions in SMP mode

2018-10-16 Thread jameszxj
Hi, ask questions again,(◡‿◡) Board infomation: CPU:zynq z7020 RTEMS version: master version SMP define: #define CONFIGURE_MAXIMUM_PROCESSORS2 #if 1 #define CONFIGURE_MAXIMUM_PRIORITY

Re: libBSD and CPU Load display questions in SMP mode

2018-10-16 Thread jameszxj
view it? I notice that the top usage display 2 priority,RPRI and CPRI, they are the same value , what's the diffrence? On 16/10/2018 10:28, jameszxj wrote: > Hi, >ask questions again,(◡‿◡)

Re: RTEMS Executive vs. Kernel

2019-01-23 Thread jameszxj
I just used RTEMS for about 1 year, When I first met the word "executive" in the docs, It confused me. I think "kernel" is easier to understand, although it is not like the linux kernel. From this point of view, I think "kernel" is better. -- Original -- From: