Re: RTEMS booting problem for PICO-PI-IMX7 board.

2018-04-10 Thread Russell Haley
On Mon, Apr 9, 2018 at 6:50 PM, JunBeom Kim (EmbedCoreTech) < jb...@e-coretech.kr> wrote: > Dear Sir, > > Is there RTEMS users for running RTEMS for PICO-PI-IMX7 board ? > > I purchased PICO-PI-IMX7 from Wanboard. > https://www.wandboard.org/products/android-things/PICO-PI-IMX7/ > > I am tring to

Re: Timers in a task context

2018-04-10 Thread Sebastian Huber
On 10/04/18 14:20, Matthew J Fletcher wrote: Hi It would be good to know if rtems_task_self() is expected to return the 'TIME' a.k.a rtems_timer_initiate_server() task id, when a timer created with rtems_timer_server_fire_after() fires. The use of rtems_task_self() in timer routines is a bad

RE: RTEMS booting problem for PICO-PI-IMX7 board.

2018-04-10 Thread JunBeom Kim (EmbedCoreTech)
Dear Huber, I found problem location. < Assembly level > // movw r5, #0x0040 // movt r5, #0x30A7 // mov r6, #0x40 // str r6, [r5] This code transfer '@' data using UART5 TX register(0x30A70040). < C Level > #define mmio32_write(addr,val) *((volatile unsigned int *)(addr)) = (

RE: RTEMS booting problem for PICO-PI-IMX7 board.

2018-04-10 Thread JunBeom Kim (EmbedCoreTech)
Dear Huber, Please disregard my question about BSP_ARM_A9MPCORE_GT_BASE, BSP_ARM_A9MPCORE_SCU_BASE. I checked this again. Because i.MX7 port use arm-generic-timer-clock-confg.c instead of arm-a9mpcore-clock-config.c, these ZERO value will not effect any problem for i.MX7. Best Regards, JunBe

RE: RTEMS booting problem for PICO-PI-IMX7 board.

2018-04-10 Thread JunBeom Kim (EmbedCoreTech)
Dear Huber, I think so. DTB is modified by U-Boot. I don't know the reason right now. I am checking u-boot source. But, Because clock-frequency variable of timer is disappeared in lastest Linux kernel, you need to review arm_generic_timer_get_config() in bspstart.c I checked "dtc command on Li

Re: RTEMS booting problem for PICO-PI-IMX7 board.

2018-04-10 Thread Sebastian Huber
On 10/04/18 15:44, JunBeom Kim (EmbedCoreTech) wrote: At this time, I am checking Linux kernel's DTS building again. The DTB is modified by U-Boot before it is handed over to the system to start. See the U-Boot sources for the details. -- Sebastian Huber, embedded brains GmbH Address : Dorn

RE: RTEMS booting problem for PICO-PI-IMX7 board.

2018-04-10 Thread JunBeom Kim (EmbedCoreTech)
Dear Huber, At this time, I am using lastest u-boot 2018.03 version for using ums command. F.Y.I : https://community.nxp.com/docs/DOC-335475 ums command is very useful for me because RTEMS image and DTB file can be replaced easily. There is different feature by "fdt print" command. < MBa7x.dts

Re: RTEMS booting problem for PICO-PI-IMX7 board.

2018-04-10 Thread Sebastian Huber
On 10/04/18 15:20, JunBeom Kim (EmbedCoreTech) wrote: I checked DTS file which you sent me shortly. There are different points; Differences between which versions? Please note that U-Boot modifies the DTB. -- Sebastian Huber, embedded brains GmbH Address : Dornierstr. 4, D-82178 Puchheim,

RE: RTEMS booting problem for PICO-PI-IMX7 board.

2018-04-10 Thread JunBeom Kim (EmbedCoreTech)
Dear Huber, I checked DTS file which you sent me shortly. There are different points; 1) chosen : MBa7x is configured for serial5(uart6). - I will add this in pico dts again as serial4(uart5) - This feature should be added not for modifying console-config.c. 2) timer : it is real problem. T

Re: Timers in a task context

2018-04-10 Thread Matthew J Fletcher
Hi It would be good to know if rtems_task_self() is expected to return the 'TIME' a.k.a rtems_timer_initiate_server() task id, when a timer created with rtems_timer_server_fire_after() fires. If it is then i will have to make up some work around, as quite a bit of code thats coming over from Thre

Re: RTEMS booting problem for PICO-PI-IMX7 board.

2018-04-10 Thread Sebastian Huber
Attached is a DTS file reconstructed from the DTB presented by U-Boot. Please note that U-Boot modifies the DTB. It is the default DTB of this board: https://www.tq-group.com/en/products/product-details/prod/embedded-modul-tqma7x/extb/Main/productdetail/ -- Sebastian Huber, embedded brains Gmb

Re: Timers in a task context

2018-04-10 Thread Sebastian Huber
On 10/04/18 11:11, Matthew J Fletcher wrote: It looks like a difference in operation to say, for example ThreadX, who's tx_thread_identify() function is documented similarly "If this service is called from an ISR the return value represents the thread running prior to the executing interrupt ha

Re: Timers in a task context

2018-04-10 Thread Matthew J Fletcher
It looks like a difference in operation to say, for example ThreadX, who's tx_thread_identify() function is documented similarly "If this service is called from an ISR the return value represents the thread running prior to the executing interrupt handler", however in operation in ThreadX there is

Re: RTEMS Shell attached to Socket

2018-04-10 Thread Sebastian Huber
Hello Phil, you can use telnet to attach a shell to a socket. Here is an example: https://git.rtems.org/rtems-libbsd/tree/testsuite/telnetd01/test_main.c Should work also with the legacy network stack. -- Sebastian Huber, embedded brains GmbH Address : Dornierstr. 4, D-82178 Puchheim, Germany

RTEMS Shell attached to Socket

2018-04-10 Thread LINDOW, Phil
Dear all, I would like to use the RTEMS shell for a project but I need the shell to be attached to a socket and not just to a serial port. The documentation I found here Shell-Documentation says that this is possible but

Re: Timers in a task context

2018-04-10 Thread Matthew J Fletcher
Hi, I think I've managed to narrow it down,. rtems_task_self() is documented as "If called from an interrupt service routine, this directive will return the Id of the interrupted task.",.. however if you run a timer server and your timer is initiated using rtems_timer_server_fire_after(), then rte

Re: RTEMS booting problem for PICO-PI-IMX7 board.

2018-04-10 Thread Russell Haley
I believe that any Linux distribution which supports the platform such as raspbian should have the file? This is the freebsd approach now as far as I know.  Russ Sent from my BlackBerry 10 smartphone on the Virgin Mobile network.   Original Message   From: JunBeom Kim (EmbedCoreTech) Sent: Mond