[0/6] ti cpsw driver port from freebsd for am335x

2016-07-05 Thread yao0718
I add cpsw driver from freebsd and modify some code for my board, my board is not beagleblack, so i am not sure it can work fine in BB board,to reduce phy find process, I set phy address 4 and 6 for which phy address on my board,my board has two eth port ,I set dualmac when attach; can somebody

Re: [1/6]add ar8031 or ar 8035 phy support

2016-07-05 Thread yao0718
diff -ruN ./rtems-libbsd/freebsd/sys/dev/mii/atphy.c ./am335x_bsp/rtems-libbsd/freebsd/sys/dev/mii/atphy.c --- ./rtems-libbsd/freebsd/sys/dev/mii/atphy.c 1970-01-01 08:00:00.0 +0800 +++ ./am335x_bsp/rtems-libbsd/freebsd/sys/dev/mii/atphy.c 2016-07-05 10:57:44.540734400 +0800 @@ -0

Re: [2/6] add ti cpsw head file

2016-07-05 Thread yao0718
diff -ruN ./rtems-libbsd/freebsd/sys/arm/ti/cpsw/if_cpswreg.h ./am335x_bsp/rtems-libbsd/freebsd/sys/arm/ti/cpsw/if_cpswreg.h --- ./rtems-libbsd/freebsd/sys/arm/ti/cpsw/if_cpswreg.h 1970-01-01 08:00:00.0 +0800 +++ ./am335x_bsp/rtems-libbsd/freebsd/sys/arm/ti/cpsw/if_cpswreg.h 2016-03

Re: [4/6] perhaps need add cache suport in head file

2016-07-05 Thread yao0718
in file rtems-libbsd\rtemsbsd\include\machine\rtems-bsd-cache.h #elif defined(LIBBSP_ARM_ALTERA_CYCLONE_V_BSP_H) || \ defined(LIBBSP_ARM_XILINX_ZYNQ_BSP_H)||defined(LIBBSP_ARM_AM335X_BSP_H) /* With cache, no coherency support in hardware */ #define CPU_DATA_CACHE_ALIGNMENT 32 #elif defined(

Re: [5/6] add device define

2016-07-05 Thread yao0718
in rtems-libbsd\rtemsbsd\include\bsp\nexus-devices.h add static const rtems_bsd_device_resource cpsw0_res[] = { { .type = RTEMS_BSD_RES_MEMORY, .start_request = 0, .start_actual = 0x4a10 }, { .type = RTEMS_B

Re: [6/6] can somebody fix it for beaglebone?

2016-07-05 Thread yao0718
know issue: 1. I test this driver on my board,it's work fine 2. I did not know why cppi edma can not send package without 32bits align, so I resemble the tx packages, this should be improve to get more performence increase -- Original -- From: "yao0718"

Re: Error while adding usb ethernet driver

2016-07-05 Thread Chris Johns
On 05/07/2016 16:54, Deval Shah wrote: 1. I updated the rtems-libbsd to the latest version, and it looks like all the device_printf are closed in one of the update. I am not able to see any log coming from them. Is there any way to switch that on ? You can either add: syslog_priority="debug"

[PATCH 1/4] score: Do not disable ISR in _Terminate()

2016-07-05 Thread Sebastian Huber
This partially reverts 38ee75853f674977609bd078c69fb53420afdd08. Let the calling context decide if interrupts must be disabled or not. The goal is to enable fatal extensions to continue program execution after some fatal errors. --- cpukit/score/src/interr.c | 6 -- 1 file changed, 6 deletio

[PATCH 2/4] score: Postpone SMP shutdown in _Terminate()

2016-07-05 Thread Sebastian Huber
This enables fatal extensions to continue program execution after some fatal errors. --- cpukit/score/src/interr.c | 4 ++-- cpukit/score/src/smp.c| 7 +-- testsuites/smptests/smpfatal02/init.c | 38 --- 3 files changed, 24 insertio

[PATCH 3/4] score: Add _Thread_Lock_acquire_critical()

2016-07-05 Thread Sebastian Huber
Keep interrupts disabled during the thread lock acquire sequence. --- cpukit/score/include/rtems/score/threadimpl.h | 31 +++ 1 file changed, 22 insertions(+), 9 deletions(-) diff --git a/cpukit/score/include/rtems/score/threadimpl.h b/cpukit/score/include/rtems/score/thr

[PATCH 4/4] score: Add deadlock detection

2016-07-05 Thread Sebastian Huber
The mutex objects use the owner field of the thread queues for the mutex owner. Use this and add a deadlock detection to _Thread_queue_Enqueue_critical() for thread queues with an owner. Update #2412. Update #2556. --- cpukit/sapi/src/interrtext.c | 5 +- cpukit/score/inc

Re: Error while adding usb ethernet driver

2016-07-05 Thread Deval Shah
I couldn't find rc.conf file. And I added the following. Is this the correct place ? Because I am still not getting the debug printfs. diff --git a/testsuite/include/rtems/bsd/test/default-init.h b/testsuite/include/rtems/bsd/test/default-init.h index ab2ab3a..873c01a 100644 --- a/testsuite/includ

Re: Error while adding usb ethernet driver

2016-07-05 Thread Chris Johns
On 06/07/2016 16:46, Deval Shah wrote: I couldn't find rc.conf file. It is something you add into your application. I assumed you had an app. Sorry for the confusion. And I added the following. Is this the correct place ? Because I am still not getting the debug printfs. diff --git a/tests