Re: [PATCH 00/10] Add wpa_supplicant to libbsd.

2017-11-10 Thread Sichen Zhao
> > On Fri, Nov 10, 2017 at 8:28 AM, Sebastian Huber > wrote: >> Hello Sichen, >> >> thanks for your WPA supplicant porting contribution which was a part of GSoC >> this year. It took a while to commit it. >> >> I checked in the patch series with some minor modifications. > Great effort, Sich

[PATCH 2/2] Port BBB sd driver files to RTEMS.

2017-11-08 Thread Sichen Zhao
So BBB can mount and read eMMC and SD card. --- Makefile.todo | 26 libbsd.py | 36 + libbsd_waf.py | 8 + rtemsbsd/include/bsp/nexus-devices.h | 2 + rtemsbsd/include/machin

[PATCH v2 2/4] Port wpa supplicant to RTEMS.

2017-10-12 Thread Sichen Zhao
#x27;, 'CONFIG_DEBUG_SYSLOG=1', 'CONFIG_DRIVER_BSD=1', 'CONFIG_DRIVER_NDIS=1', 'CONFIG_DRIVER_WIRED=1', 'CONFIG_GAS=1', 'CONFIG_HS20=1', 'CONFIG_IEEE80211R=1', 'CONFIG_INTERWORKING=1', 'CONFIG_PEERKEY=1', &#

[PATCH v2 4/4] Add wpa_supplicant_fork command.

2017-10-12 Thread Sichen Zhao
sbsd/rtems/rtems-bsd-shell-wpa_supplicant_fork.c b/rtemsbsd/rtems/rtems-bsd-shell-wpa_supplicant_fork.c new file mode 100644 index 000..046b611 --- /dev/null +++ b/rtemsbsd/rtems/rtems-bsd-shell-wpa_supplicant_fork.c @@ -0,0 +1,36 @@ +/* + * Copyright (c) 2017 Sichen Zhao. All rights reserved

[PATCH v2 3/4] Add wpa_supplicant command in test suite.

2017-10-12 Thread Sichen Zhao
Add wpa supplicant command in media01. --- testsuite/include/rtems/bsd/test/default-network-init.h | 3 ++- testsuite/media01/test_main.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/testsuite/include/rtems/bsd/test/default-network-init.h b/tes

Re: BBB u-boot

2017-09-21 Thread Sichen Zhao
> Hi, > > I built u-boot from the git master repo for the Beaglebone Black and I have > been > working with an RTEMS u-boot type image plus a local patch to by pass > `bsp_fdt_copy` that is now called for this board. With the change there is a > crash as `r3` is not valid with the RTEMS OS entry.

Re: [PATCH v2 1/4] waf_generator: Copy headers if necessary.

2017-08-16 Thread Sichen Zhao
>> On 17 Aug 2017, at 1:37 am, Sichen Zhao wrote: >> >> Hi Chris, >> Just for remind: can the openssl patch get merged? > Yes they can. I am sorry I had some pressing issues locally and a few patches > queued. I am on the road today and will see if I can get to the

[PATCH 6/7] Add wpa_supplicant_fork command.

2017-08-16 Thread Sichen Zhao
tems_shell_cmd_t rtems_shell_WPA_SUPPLICANT_FORK_Command; + extern rtems_shell_cmd_t rtems_shell_SYSCTL_Command; extern rtems_shell_cmd_t rtems_shell_VMSTAT_Command; diff --git a/rtemsbsd/rtems/rtems-bsd-shell-wpa_supplicant_fork.c b/rtemsbsd/rtems/rtems-bsd-shell-wpa

[PATCH 7/7] Add wpa_spplicant_fork command in test suite media01

2017-08-16 Thread Sichen Zhao
--- testsuite/media01/test_main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/testsuite/media01/test_main.c b/testsuite/media01/test_main.c index 5ca88fb..acc24f2 100644 --- a/testsuite/media01/test_main.c +++ b/testsuite/media01/test_main.c @@ -205,7 +205,8 @@ early_init

[PATCH 4/7] Port strnstr.c to FreeBSD.

2017-08-16 Thread Sichen Zhao
--- libbsd.py | 1 + libbsd_waf.py | 1 + 2 files changed, 2 insertions(+) diff --git a/libbsd.py b/libbsd.py index ea469d3..a0b7f1a 100644 --- a/libbsd.py +++ b/libbsd.py @@ -2534,6 +2534,7 @@ def user_space(mm): 'lib/libc/stdlib/strtonum.c', 'lib/libc/stdlib/strtou

[PATCH 5/7] Add wpa_supplicant command in test suite.

2017-08-16 Thread Sichen Zhao
Add wpa supplicant command in media01. --- testsuite/include/rtems/bsd/test/default-network-init.h | 3 ++- testsuite/media01/test_main.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/testsuite/include/rtems/bsd/test/default-network-init.h b/tes

[PATCH 3/7] Import strnstr.c from FreeBSD.

2017-08-16 Thread Sichen Zhao
--- freebsd/lib/libc/string/strnstr.c | 67 +++ 1 file changed, 67 insertions(+) create mode 100644 freebsd/lib/libc/string/strnstr.c diff --git a/freebsd/lib/libc/string/strnstr.c b/freebsd/lib/libc/string/strnstr.c new file mode 100644 index 000..247a2b

[PATCH 2/7] Port wpa supplicant to RTEMS.

2017-08-16 Thread Sichen Zhao
RL_IFACE=1', 'CONFIG_CTRL_IFACE_UNIX=1', 'CONFIG_DEBUG_SYSLOG=1', 'CONFIG_DRIVER_BSD=1', 'CONFIG_DRIVER_NDIS=1', 'CONFIG_DRIVER_WIRED=1', 'CONFIG_GAS=1', 'CONFIG_HS20=1', 'CONFIG_IEEE80211R=1', 'CONFI

Illustration about the WPA patches

2017-08-16 Thread Sichen Zhao
The WPA patches need the openssl patches support, and first patches of WPA patches about import the wpa files from FreeBSD may can not send to ml, because of the large size. But this patches does no matter for review. ___ devel mailing list devel@rtem

Re: [PATCH v2 1/4] waf_generator: Copy headers if necessary.

2017-08-16 Thread Sichen Zhao
Hi Chris, Just for remind: can the openssl patch get merged? Best Regards Sichen Zhao From: devel on behalf of Sichen Zhao Sent: Saturday, August 12, 2017 17:24 To: Christian Mauderer; Chris Johns; Sichen Zhao; devel@rtems.org Cc: Christian Mauderer

Re: [PATCH v2 1/4] waf_generator: Copy headers if necessary.

2017-08-12 Thread Sichen Zhao
Ok, the branch with only these four patches is here: https://github.com/hahchenchen/rtems-libbsd/tree/usb_wpa_openssl Best Regards Sichen Zhao From: Christian Mauderer Sent: Saturday, August 12, 2017 17:05 To: Chris Johns; Sichen Zhao; Sichen Zhao

Re: [PATCH v2 1/4] waf_generator: Copy headers if necessary.

2017-08-11 Thread Sichen Zhao
> On 11/8/17 8:39 pm, Sichen Zhao wrote: >> From: Christian Mauderer >> >> There are some cases, where a header is installed into a directory with >> a different name then it's source directory. In that case, the build >> might fail because the header

[PATCH v2 4/4] Port openssl to RTEMS.

2017-08-11 Thread Sichen Zhao
--- builder.py | 58 libbsd.py| 952 +++ libbsd_waf.py| 901 +++- waf_generator.py | 3 + 4 files changed, 1898 insertions(+), 16 deletions(-) diff --git a/builder.py b/bu

[PATCH v2 2/4] waf: Move glob operator ** to builder.py

2017-08-11 Thread Sichen Zhao
From: Christian Mauderer This allows a finer decision which headers should be installed. --- builder.py | 26 +- libbsd_waf.py| 30 +++--- waf_generator.py | 4 ++-- 3 files changed, 30 insertions(+), 30 deletions(-) diff --git a/builde

[PATCH v2 1/4] waf_generator: Copy headers if necessary.

2017-08-11 Thread Sichen Zhao
From: Christian Mauderer There are some cases, where a header is installed into a directory with a different name then it's source directory. In that case, the build might fail because the header is not found. One example would be the . The source for this file is in freebsd/crypto/openssl/crypto

[PATCH v2 1/4] waf_generator: Copy headers if necessary.

2017-08-11 Thread Sichen Zhao
From: Christian Mauderer There are some cases, where a header is installed into a directory with a different name then it's source directory. In that case, the build might fail because the header is not found. One example would be the . The source for this file is in freebsd/crypto/openssl/crypto

Re: [PATCH 3/3] Port openssl to RTEMS.

2017-08-09 Thread Sichen Zhao
Ok, after the discussion, i will add it in my second version of openssl patches. Best Regards Sichen Zhao From: devel on behalf of Chris Johns Sent: Thursday, August 10, 2017 7:05 To: Sichen Zhao; devel@rtems.org Subject: Re: [PATCH 3/3] Port openssl

[PATCH 3/3] Port openssl to RTEMS.

2017-08-09 Thread Sichen Zhao
--- builder.py | 58 libbsd.py| 952 +++ libbsd_waf.py| 901 +++- waf_generator.py | 3 + 4 files changed, 1898 insertions(+), 16 deletions(-) diff --git a/builder.py b/bu

[PATCH 1/3] waf_generator: Copy headers if necessary.

2017-08-09 Thread Sichen Zhao
From: Christian Mauderer There are some cases, where a header is installed into a directory with a different name then it's source directory. In that case, the build might fail because the header is not found. One example would be the . The source for this file is in freebsd/crypto/openssl/crypto

Re: /dev/urandom issue

2017-08-02 Thread Sichen Zhao
> On 02/08/17 10:46, Sichen Zhao wrote: > >> Hi all, >> >> When i use wpa_supplicant to configure WPA, there are an error: >> >> Could not open /dev/urandom. >> wlan0: WPA: Failed to get random data for SNonce > > /dev/urandom should not be

/dev/urandom issue

2017-08-02 Thread Sichen Zhao
data. So how do we deal with it? Should import it? Best Regards Sichen Zhao ___ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/devel

[PATCH v2 2/2] Enable the WEP encrypted WiFi.

2017-08-01 Thread Sichen Zhao
Now rtems can connnect WiFi via WEP on rtl8188eu chip. --- rtemsbsd/include/bsp/nexus-devices.h | 1 + rtemsbsd/rtems/rtems-kernel-init.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/rtemsbsd/include/bsp/nexus-devices.h b/rtemsbsd/include/bsp/nexus-devices.h index c3e5336..65c183c 100

[PATCH v2 1/2] Port rtl8188eu driver to RTEMS.

2017-08-01 Thread Sichen Zhao
Now USB dongle rtl8188eu can work as wlan client device. It can scan wifi, connect unencrypted wifi. --- Makefile.todo|6 + libbsd.py|1 + libbsd_waf.py|1 + rtemsbsd/include/bsp/nexus-devices.h |5 + rtems

Re: [PATCH 1/3] Import r92_llt.c from FreeBSD.

2017-07-31 Thread Sichen Zhao
Ok, got it. Best Regards Sichen Zhao From: devel on behalf of Christian Mauderer Sent: Tuesday, August 1, 2017 2:02 To: devel@rtems.org Cc: punitv...@gmail.com Subject: Re: [PATCH 1/3] Import r92_llt.c from FreeBSD. Hello Sichen, the patches don&#

[PATCH 1/3] Import r92_llt.c from FreeBSD.

2017-07-30 Thread Sichen Zhao
--- freebsd/sys/dev/rtwn/rtl8192c/r92c_llt.c | 75 1 file changed, 75 insertions(+) create mode 100644 freebsd/sys/dev/rtwn/rtl8192c/r92c_llt.c diff --git a/freebsd/sys/dev/rtwn/rtl8192c/r92c_llt.c b/freebsd/sys/dev/rtwn/rtl8192c/r92c_llt.c new file mode 100644

[PATCH 3/3] Enable the WEP encrypted WiFi.

2017-07-30 Thread Sichen Zhao
Now rtems can connnect WiFi via WEP on rtl8188eu chip. --- rtemsbsd/include/bsp/nexus-devices.h | 1 + rtemsbsd/rtems/rtems-kernel-init.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/rtemsbsd/include/bsp/nexus-devices.h b/rtemsbsd/include/bsp/nexus-devices.h index fe53862..618b9ab 100

[PATCH 2/3] Port rtl8188eu driver to RTEMS.

2017-07-30 Thread Sichen Zhao
Now USB dongle rtl8188eu can work as wlan client device. It can scan wifi, connect wifi. --- Makefile.todo |6 + freebsd/sys/dev/rtwn/usb/rtwn_usb_attach.h |8 + libbsd.py |2 + libbsd_waf.py |

Re: [PATCH] waf_generator: Copy headers if necessary.

2017-07-23 Thread Sichen Zhao
Hi all, I have tested the patch in libbsd, and it works well. Best Regards Sichen Zhao From: Christian Mauderer Sent: Sunday, July 23, 2017 1:30 To: devel@rtems.org Cc: Chris Johns; Sichen Zhao; Christian Mauderer Subject: [PATCH] waf_generator: Copy

libbsd include path issue

2017-07-22 Thread Sichen Zhao
. I think maybe we need add a include header path to tell waf that it has to move the file into another path. But i don't know where to add it. I tried it in builder.py, but not working. Best Regards Sichen Zhao ___ devel mailing list devel@rtem

IRC log issue

2017-07-19 Thread Sichen Zhao
Hi all, This link about the IRC log: https://devel.rtems.org/wiki/Developer/IRC, there are the ways to find irc log archive but none of them are working. So anyone can fix it and have an idea about how to get irc log? Best Regards Sichen Zhao

Re: [PATCH v2 2/2] Add dts file to generate dtb binary file for Beaglebone black.

2017-07-18 Thread Sichen Zhao
Hi all, I found something about the FreeBSD people dicuss about dtb license issue. https://lists.freebsd.org/pipermail/freebsd-arm/2015-May/011543.html Best Regards Sichen Zhao From: Sichen Zhao Sent: Thursday, July 13, 2017 14:28 To: Christian Mauderer

Re: [PATCH v2 2/2] Add dts file to generate dtb binary file for Beaglebone black.

2017-07-18 Thread Sichen Zhao
Hi all, I found something about the FreeBSD people dicuss about dtb license issue. https://lists.freebsd.org/pipermail/freebsd-arm/2015-May/011543.html Best Regards Sichen Zhao From: Sichen Zhao Sent: Thursday, July 13, 2017 14:28 To: Christian Mauderer

Re: [PATCH v2 2/2] Add dts file to generate dtb binary file for Beaglebone black.

2017-07-12 Thread Sichen Zhao
在 2017年07月13日 14:10, Christian Mauderer 写道: > > Am 13.07.2017 um 08:05 schrieb Chris Johns: >> On 13/07/2017 15:09, Christian Mauderer wrote: >>> Am 13.07.2017 um 04:33 schrieb Chris Johns: >>>> On 13/07/2017 12:22, Sichen Zhao wrote: >>>>> 在 2017年0

Re: [PATCH v2 1/2] Import am335x usb driver file from FreeBSD.

2017-07-12 Thread Sichen Zhao
Ok, thank you. Best Regards Sichen Zhao From: devel on behalf of Sebastian Huber Sent: Thursday, July 13, 2017 13:35 To: Sichen Zhao; devel@rtems.org Cc: punitv...@gmail.com; christian.maude...@embedded-brains.de Subject: Re: [PATCH v2 1/2] Import

[PATCH v2 2/2] Port am335x usb driver to RTEMS.

2017-07-12 Thread Sichen Zhao
Add FDT and umass support for am335x USB driver. Now RTEMS can mount and open USB disk. --- freebsd/sys/arm/ti/am335x/am335x_prcm.c | 2 ++ freebsd/sys/arm/ti/ti_cpuid.h | 19 + libbsd.py | 34 +

Re: [PATCH v2 2/2] Add dts file to generate dtb binary file for Beaglebone black.

2017-07-12 Thread Sichen Zhao
在 2017年07月12日 21:52, Gedare Bloom 写道: > On Tue, Jul 11, 2017 at 6:51 AM, Sichen Zhao <1473996...@qq.com> wrote: >> These dts files import from FreeBSD, git link: >> https://github.com/freebsd/freebsd/tree/master/sys/gnu/dts >> >> The license for these files in be

Re: [PATCH 2/6] Modify the support for multiple memory resources.

2017-07-12 Thread Sichen Zhao
Patch1 and 2 is not needed, but it fix a bug about the multiple resource. So they can be useful anyway. Best Regards Sichen Zhao From: devel on behalf of Sebastian Huber Sent: Wednesday, July 12, 2017 14:42 To: Sichen Zhao; devel@rtems.org Cc: punitv

Re: [PATCH v2 1/2] Add FDT support for Beaglebone Black.

2017-07-11 Thread Sichen Zhao
Ok, thanks. Best Regards Sichen Zhao From: devel on behalf of Sebastian Huber Sent: Wednesday, July 12, 2017 2:40:28 PM To: Sichen Zhao; devel@rtems.org Cc: punitv...@gmail.com; christian.maude...@embedded-brains.de Subject: Re: [PATCH v2 1/2] Add FDT

[PATCH 5/6] Add FDT support for am335x USB driver.

2017-07-11 Thread Sichen Zhao
Now RTEMS can detect and mount USB device. --- rtemsbsd/include/bsp/nexus-devices.h | 13 + 1 file changed, 13 insertions(+) diff --git a/rtemsbsd/include/bsp/nexus-devices.h b/rtemsbsd/include/bsp/nexus-devices.h index 1fbf756..2d5694e 100644 --- a/rtemsbsd/include/bsp/nexus-devices

[PATCH 6/6] Add umass support for Beaglebone black.

2017-07-11 Thread Sichen Zhao
Now RTEMS can mount and open USB disk. --- rtemsbsd/include/bsp/nexus-devices.h | 1 + 1 file changed, 1 insertion(+) diff --git a/rtemsbsd/include/bsp/nexus-devices.h b/rtemsbsd/include/bsp/nexus-devices.h index 2d5694e..09a4cc3 100644 --- a/rtemsbsd/include/bsp/nexus-devices.h +++ b/rtemsbsd/i

[PATCH 4/6] Port am335x usb driver to RTEMS.

2017-07-11 Thread Sichen Zhao
--- freebsd/sys/arm/ti/am335x/am335x_prcm.c | 8 freebsd/sys/arm/ti/ti_cpuid.h | 19 +++ freebsd/sys/arm/ti/ti_prcm.c| 2 ++ freebsd/sys/arm/ti/ti_scm.c | 2 ++ libbsd.py | 30 ++

[PATCH 2/6] Modify the support for multiple memory resources.

2017-07-11 Thread Sichen Zhao
rtems-libbsd only support single resource for a device. But some usb control need two resources, such as musb. So modify support for multiple device resources allocation. --- rtemsbsd/rtems/rtems-kernel-nexus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rtemsbsd/rtems/rtem

[PATCH 1/6] Add support for multiple memory resources.

2017-07-11 Thread Sichen Zhao
From: Hans Petter Selasky --- rtemsbsd/rtems/rtems-kernel-nexus.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/rtemsbsd/rtems/rtems-kernel-nexus.c b/rtemsbsd/rtems/rtems-kernel-nexus.c index 008e4b2..1a5a9ef 100644 --- a/rtemsbsd/rtems/rtems-kernel-nexus.c +++ b/rte

[PATCH v2 1/2] Add FDT support for Beaglebone Black.

2017-07-11 Thread Sichen Zhao
--- c/src/lib/libbsp/arm/beagle/Makefile.am| 1 + c/src/lib/libbsp/arm/beagle/configure.ac | 9 + c/src/lib/libbsp/arm/beagle/include/bsp.h | 6 +- c/src/lib/libbsp/arm/beagle/startup/bspstart.c | 5 + c/src/lib/libbsp/arm/shared/start/start.S | 5 + 5 f

[PATCH v2 2/2] Add dts file to generate dtb binary file for Beaglebone black.

2017-07-11 Thread Sichen Zhao
These dts files import from FreeBSD, git link: https://github.com/freebsd/freebsd/tree/master/sys/gnu/dts The license for these files in beagle/simscripts --- c/src/lib/libbsp/arm/beagle/README | 11 + c/src/lib/libbsp/arm/beagle/simscripts/LICENSE |2 + .../arm/beagle/s

FDT license issue`

2017-07-07 Thread Sichen Zhao
Hi all, I add a dtb bin file in RTEMS from FreeBSD to support FDT. So there is no license info or source for that file. So how to add it? Best Regards Sichen Zhao ___ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/devel

Re: [PATCH 1/2] Add FDT support for Beaglebone Black.

2017-07-06 Thread Sichen Zhao
Hi Sebastian, Hi all, How about i add BSP_START_COPY_FDT_FROM_U_BOOT in configure.ac, or just add the bsp prefix sush as BBB_U_BOOT_USE_FDT in configure.ac? Best Regards Sichen Zhao From: devel on behalf of Sichen Zhao Sent: Wednesday, July 5, 2017 3

Re: [PATCH 2/2] Modify sdcard.sh to support FDT for Beaglebone black.

2017-07-05 Thread Sichen Zhao
Hi all, In this patch, i add a binary dtb file to support FDT, if it is ok , and how to add the license and source information? Best Regards Sichen Zhao From: devel on behalf of Sichen Zhao <1473996...@qq.com> Sent: Wednesday, July 5, 2017 10

Re: [PATCH 1/2] Add FDT support for Beaglebone Black.

2017-07-05 Thread Sichen Zhao
Zhao Sent: Wednesday, July 5, 2017 13:28 To: Sebastian Huber; Sichen Zhao; devel@rtems.org Cc: punitv...@gmail.com; christian.maude...@embedded-brains.de Subject: Re: [PATCH 1/2] Add FDT support for Beaglebone Black. Ok, got it. Best Regards Sichen Zhao

Re: [PATCH 1/2] Add FDT support for Beaglebone Black.

2017-07-04 Thread Sichen Zhao
Ok, got it. Best Regards Sichen Zhao From: devel on behalf of Sebastian Huber Sent: Wednesday, July 5, 2017 13:12 To: Sichen Zhao; devel@rtems.org Cc: punitv...@gmail.com; christian.maude...@embedded-brains.de Subject: Re: [PATCH 1/2] Add FDT support

Re: [PATCH 1/8] Add support for multiple memory resources.

2017-07-04 Thread Sichen Zhao
Ok, i will remove patch 5/8 and 6/8. Is that ok? Best Regards Sichen Zhao From: devel on behalf of Sebastian Huber Sent: Wednesday, July 5, 2017 13:17 To: Sichen Zhao; devel@rtems.org Cc: punitv...@gmail.com; christian.maude...@embedded-brains.de

[PATCH 7/8] Add FDT support for am335x USB driver.

2017-07-04 Thread Sichen Zhao
Now RTEMS can detect and mount USB device. --- rtemsbsd/include/bsp/nexus-devices.h | 13 + 1 file changed, 13 insertions(+) diff --git a/rtemsbsd/include/bsp/nexus-devices.h b/rtemsbsd/include/bsp/nexus-devices.h index 1fbf756..2d5694e 100644 --- a/rtemsbsd/include/bsp/nexus-devices

[PATCH 8/8] Add umass support for Beaglebone black.

2017-07-04 Thread Sichen Zhao
Now RTEMS can mount and open USB disk. --- rtemsbsd/include/bsp/nexus-devices.h | 1 + 1 file changed, 1 insertion(+) diff --git a/rtemsbsd/include/bsp/nexus-devices.h b/rtemsbsd/include/bsp/nexus-devices.h index 2d5694e..09a4cc3 100644 --- a/rtemsbsd/include/bsp/nexus-devices.h +++ b/rtemsbsd/i

[PATCH 6/8] Remove nexus support for am335x USB driver.

2017-07-04 Thread Sichen Zhao
--- freebsd/sys/arm/ti/am335x/am335x_musb.c| 14 freebsd/sys/arm/ti/am335x/am335x_prcm.c| 10 --- freebsd/sys/arm/ti/am335x/am335x_usbss.c | 19 - freebsd/sys/arm/ti/ti_scm.c| 7 -- rtemsbsd/include/bsp/nexus-devices.h | 12 --- rt

[PATCH 5/8] Add nexus support for am335x USB driver.

2017-07-04 Thread Sichen Zhao
--- freebsd/sys/arm/ti/am335x/am335x_musb.c| 14 freebsd/sys/arm/ti/am335x/am335x_prcm.c| 10 +++ freebsd/sys/arm/ti/am335x/am335x_usbss.c | 19 + freebsd/sys/arm/ti/ti_scm.c| 7 ++ rtemsbsd/include/bsp/nexus-devices.h | 12 +++ rt

[PATCH 4/8] Port am335x usb driver to RTEMS.

2017-07-04 Thread Sichen Zhao
--- freebsd/sys/arm/ti/am335x/am335x_prcm.c | 8 freebsd/sys/arm/ti/ti_cpuid.h | 19 +++ freebsd/sys/arm/ti/ti_prcm.c| 2 ++ freebsd/sys/arm/ti/ti_scm.c | 2 ++ libbsd.py | 30 ++

[PATCH 2/8] Modify the support for multiple memory resources.

2017-07-04 Thread Sichen Zhao
rtems-libbsd only support single resource for a device. But some usb control need two resources, such as musb. So modify support for multiple device resources allocation. --- rtemsbsd/rtems/rtems-kernel-nexus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rtemsbsd/rtems/rtem

[PATCH 1/8] Add support for multiple memory resources.

2017-07-04 Thread Sichen Zhao
From: Hans Petter Selasky --- rtemsbsd/rtems/rtems-kernel-nexus.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/rtemsbsd/rtems/rtems-kernel-nexus.c b/rtemsbsd/rtems/rtems-kernel-nexus.c index 008e4b2..1a5a9ef 100644 --- a/rtemsbsd/rtems/rtems-kernel-nexus.c +++ b/rte

[PATCH 1/2] Add FDT support for Beaglebone Black.

2017-07-04 Thread Sichen Zhao
--- c/src/lib/libbsp/arm/beagle/Makefile.am| 1 + c/src/lib/libbsp/arm/beagle/configure.ac | 9 + c/src/lib/libbsp/arm/beagle/include/bsp.h | 6 +- c/src/lib/libbsp/arm/beagle/startup/bspstart.c | 5 + c/src/lib/libbsp/arm/shared/start/start.S | 5 + 5 f

[PATCH 2/2] Modify sdcard.sh to support FDT for Beaglebone black.

2017-07-04 Thread Sichen Zhao
--- c/src/lib/libbsp/arm/beagle/simscripts/bboneblk.dtb | Bin 0 -> 34458 bytes c/src/lib/libbsp/arm/beagle/simscripts/sdcard.sh| 6 -- 2 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 c/src/lib/libbsp/arm/beagle/simscripts/bboneblk.dtb diff --git a/c/src/lib/libbsp/

Re: libbsd ofwbus activate resources issue

2017-07-03 Thread Sichen Zhao
Ok, and also need add the bsp_fdt_map_intr function in bspstart.c. right? Best Regards Sichen Zhao From: Sebastian Huber Sent: Monday, July 3, 2017 4:00:02 PM To: RTEMS Cc: Sichen Zhao Subject: Re: libbsd ofwbus activate resources issue I guess you have

libbsd ofwbus activate resources issue

2017-07-01 Thread Sichen Zhao
successful in porting a driver that uses simplebus in libbsd and that uses a resource that should be activated. Best Regards Sichen Zhao ___ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/devel

Beaglebone Black FDT issue

2017-06-28 Thread Sichen Zhao
); 8e3c: e1a4mov r0, r4 } } 8e40: e8bd4010pop {r4, lr} rtems_cache_flush_multiple_data_lines(d, m); 8e44: ea27 b 8ee8 Best Regards Sichen Zhao ___ devel mailing list d

Re: [PATCH 4/5] Port am335x usb driver to RTEMS.

2017-06-25 Thread Sichen Zhao
Yes, i will discuss it with my mentor, and do my best. Best Regards Sichen Zhao From: Sebastian Huber Sent: Saturday, June 24, 2017 17:07 To: Sichen Zhao Cc: Sichen Zhao; devel; punitv...@gmail.com; christian mauderer Subject: Re: [PATCH 4/5] Port am335x

Re: [PATCH 4/5] Port am335x usb driver to RTEMS.

2017-06-23 Thread Sichen Zhao
Because my board is Beaglebone Black, It seems the BBB bsp currently doesn't support simplebus. Chrisian told me that currently only one BSP supports FDT, it's the quoriq. And i do boot via U-Boot. > Why can't you use the FDT support in libbsd on this board? I guess you > boot via U-Boot? > ___

[PATCH 5/5] Add umass support in nexus-devices.h.

2017-06-23 Thread Sichen Zhao
Now rtems can mount and open USB disks on Beaglebone Black. --- rtemsbsd/include/bsp/nexus-devices.h | 1 + 1 file changed, 1 insertion(+) diff --git a/rtemsbsd/include/bsp/nexus-devices.h b/rtemsbsd/include/bsp/nexus-devices.h index 6fe4f7d..d7aec85 100644 --- a/rtemsbsd/include/bsp/nexus-devic

[PATCH 1/5] Add support for multiple memory resources.

2017-06-23 Thread Sichen Zhao
From: Hans Petter Selasky --- rtemsbsd/rtems/rtems-kernel-nexus.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/rtemsbsd/rtems/rtems-kernel-nexus.c b/rtemsbsd/rtems/rtems-kernel-nexus.c index 008e4b2..1a5a9ef 100644 --- a/rtemsbsd/rtems/rtems-kernel-nexus.c +++ b/rte

[PATCH 4/5] Port am335x usb driver to RTEMS.

2017-06-23 Thread Sichen Zhao
Now RTEMS can detect USB device on Beaglebone Black. --- freebsd/sys/arm/ti/am335x/am335x_musb.c| 14 freebsd/sys/arm/ti/am335x/am335x_prcm.c| 18 + freebsd/sys/arm/ti/am335x/am335x_usbss.c | 19 + freebsd/sys/arm/ti/ti_cpuid.h | 19 + fr

[PATCH 2/5] Modify the support for multiple memory resources.

2017-06-23 Thread Sichen Zhao
rtems-libbsd only support single resource for a device. But some usb control need two resources, such as musb. So modify support for multiple device resources allocation. --- rtemsbsd/rtems/rtems-kernel-nexus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rtemsbsd/rtems/rtem

RTEMS-libbsd trailing whitespace

2017-06-22 Thread Sichen Zhao
st leave it. Best Regards Sichen Zhao ___ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/devel

Re: RTEMS-libbsd copyright question

2017-06-21 Thread Sichen Zhao
Ok, i got it. Thanks all. Best Regards Sichen Zhao > Hi Sichen > > On Wed, Jun 21, 2017 at 11:05 AM, Sebastian Huber > wrote: >> On 19/06/17 15:45, Sichen Zhao wrote: >> >>> Ok, so i think most of my ported file shouldn't add copyright. >>> B

Re: RTEMS-libbsd copyright question

2017-06-19 Thread Sichen Zhao
ibbsd/blob/usb2.0/rtemsbsd/include/machine/rtems-bsd-nexus-bus.h#L260 Best Regards Sichen Zhao > Hello Sichen Zhao, > > Copyright applies to any new code that you personally author. The > conventional wisdom is that if you make 3 or more lines of new code in > a file, then you

RTEMS-libbsd copyright question

2017-06-18 Thread Sichen Zhao
in these file? Best Regards Sichen Zhao ___ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/devel

Re: [PATCH] Fix beagle bsp irq issue

2017-06-18 Thread Sichen Zhao
Ok. Best Regards Sichen Zhao From: devel on behalf of Chris Johns Sent: Monday, June 19, 2017 10:01 To: Sichen Zhao; devel@rtems.org Cc: punitv...@gmail.com; christian.maude...@embedded-brains.de Subject: Re: [PATCH] Fix beagle bsp irq issue On 18/06

Re: [PATCH] Fix beagle bsp irq issue

2017-06-18 Thread Sichen Zhao
lists.rtems.org/pipermail/devel/2017-June/018162.html Best Regards Sichen Zhao From: devel on behalf of Gedare Bloom Sent: Sunday, June 18, 2017 19:54 To: Sichen Zhao Cc: punit vara; Christian Mauderer; devel@rtems.org Subject: Re: [PATCH] Fix beagle bsp ir

Re: [PATCH] Fix beagle bsp irq issue

2017-06-17 Thread Sichen Zhao
Yes, i will! -- Original -- From: "punit vara";; Date: Sat, Jun 17, 2017 11:44 PM To: "Sichen Zhao"<1473996...@qq.com>; Cc: "rtems-de...@rtems.org"; "Christian Mauderer"; Subject: Re: [PATCH] Fix beagle bsp ir

[PATCH] Fix beagle bsp irq issue

2017-06-17 Thread Sichen Zhao
Enable/disable vector routines now check for a valid vector. Without these guards, the enable/disable vector routines will not work with the interrupt server. --- c/src/lib/libbsp/arm/beagle/irq.c | 22 ++ 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/c/src/lib

[PATCH] Fix beagle i2c file bbb-i2c.c comment issues

2017-06-15 Thread Sichen Zhao
/beagle/i2c/bbb-i2c.c +++ b/c/src/lib/libbsp/arm/beagle/i2c/bbb-i2c.c @@ -7,6 +7,7 @@ */ /* + * Copyright (c) 2016 Punit Vara * Copyright (c) 2017 Sichen Zhao * * The license and distribution terms for this file may be @@ -48,27 +49,26 @@ static void I2C0ModuleClkConfig( void

[PATCH v4 2/2] Add the i2c driver for Beaglebone Black

2017-06-14 Thread Sichen Zhao
@@ +/** + * @file + * + * @ingroup arm_beagle + * + * @brief BeagleBoard I2C bus initialization and API Support. + */ + +/* + * Copyright (c) 2017 Sichen Zhao + * + * The license and distribution terms for this file may be + * found in the file LICENSE in this distribution or at + * http://www.rtems.org

Re: [PATCH v4 1/2] Remove beagle old i2c code

2017-06-13 Thread Sichen Zhao
Hi all, Any feedback or review for the i2c patch? Best Regards Sichen Zhao From: devel on behalf of Sichen Zhao <1473996...@qq.com> Sent: Monday, June 5, 2017 20:49 To: devel@rtems.org Cc: punitv...@gmail.com; christian.maude...@embedded-bra

RTEMS-libbsd USB interrupt issue[GSOC]

2017-06-08 Thread Sichen Zhao
occured, it stuck, and don't go the the ISR. The code stuck at here: https://github.com/freebsd/freebsd/blob/master/sys/dev/usb/controller/musb_otg.c#L3126 The install ISR at here: https://github.com/freebsd/freebsd/blob/master/sys/arm/ti/am335x/am335x_musb.c#L299 Best Regards Sichen

[PATCH v4 1/2] Remove beagle old i2c code

2017-06-05 Thread Sichen Zhao
modify c/src/lib/libbsp/arm/beagle/Makefile.am modify c/src/lib/libbsp/arm/beagle/include/i2c.h delete c/src/lib/libbsp/arm/beagle/misc/i2c.c --- c/src/lib/libbsp/arm/beagle/Makefile.am | 1 - c/src/lib/libbsp/arm/beagle/include/i2c.h | 181 c/src/lib/libbsp/arm/beagle/misc/i2c.c

[PATCH v4 2/2] Add the i2c driver for Beaglebone Black

2017-06-05 Thread Sichen Zhao
@@ +/** + * @file + * + * @ingroup arm_beagle + * + * @brief BeagleBoard I2C bus initialization and API Support. + */ + +/* + * Copyright (c) 2017 Sichen Zhao + * + * The license and distribution terms for this file may be + * found in the file LICENSE in this distribution or at + * http://www.rtems.org

Re: [PATCH v3 2/2] Add the i2c driver for Beaglebone Black

2017-06-05 Thread Sichen Zhao
Ok, i will modified it right now. Best Regards Sichen Zhao From: devel on behalf of Christian Mauderer Sent: Monday, June 5, 2017 8:18:30 PM To: Sichen Zhao Cc: punit vara; devel@rtems.org Subject: Re: [PATCH v3 2/2] Add the i2c driver for Beaglebone

[PATCH v3 2/2] Add the i2c driver for Beaglebone Black

2017-06-04 Thread Sichen Zhao
@@ +/** + * @file + * + * @ingroup arm_beagle + * + * @brief BeagleBoard I2C bus initialization and API Support. + */ + +/* + * Copyright (c) 2017 Sichen Zhao + * + * The license and distribution terms for this file may be + * found in the file LICENSE in this distribution or at + * http://www.rtems.org

[PATCH v3 1/2] Remove beagle old i2c code

2017-06-04 Thread Sichen Zhao
modify c/src/lib/libbsp/arm/beagle/Makefile.am modify c/src/lib/libbsp/arm/beagle/include/i2c.h delete c/src/lib/libbsp/arm/beagle/misc/i2c.c --- c/src/lib/libbsp/arm/beagle/Makefile.am | 1 - c/src/lib/libbsp/arm/beagle/include/i2c.h | 181 c/src/lib/libbsp/arm/beagle/misc/i2c.c

Re: RTEMS cfg of uncrustify

2017-06-01 Thread Sichen Zhao
Ok, i see. Thank you. Best Regards Sichen Zhao From: ged...@gwmail.gwu.edu on behalf of Gedare Bloom Sent: Thursday, June 1, 2017 23:14 To: Joel Sherrill Cc: Sichen Zhao; RTEMS Subject: Re: RTEMS cfg of uncrustify On Thu, Jun 1, 2017 at 11:09 AM, Joel

RTEMS cfg of uncrustify

2017-06-01 Thread Sichen Zhao
Hi all, The rtems cfg file of uncrustify: https://devel.rtems.org/wiki/Developer/Coding/Conventions#Tools I feel weird about : there are always space after and before the parenthesis. It seems has conflict with Linux kernel tools checkpatch.pl rule Best Regards Sichen Zhao

Re: GSOC student question

2017-05-31 Thread Sichen Zhao
Ok, i know what you mean, i will remove the old i2c driver in my latest version of i2c. Best Regards Sichen Zhao From: devel on behalf of Joel Sherrill Sent: Friday, May 26, 2017 23:12 To: Ben Gras Cc: rtems-de...@rtems.org Subject: Re: GSOC student

[PATCH v2] Add the i2c driver for Beaglebone Black:

2017-05-24 Thread Sichen Zhao
+ * + * @ingroup arm_beagle + * + * @brief BeagleBoard I2C bus initialization and API Support. + */ + +/* + * Copyright (c) 2017 Sichen Zhao + * + * The license and distribution terms for this file may be + * found in the file LICENSE in this distribution or at + * http://www.rtems.org/license/LICENSE

Re: [PATCH] Add the i2c driver for Beaglebone Black:

2017-05-23 Thread Sichen Zhao
I got your mean, thank you , PV. Best Regards Sichen Zhao From: devel on behalf of punit vara Sent: Wednesday, May 24, 2017 2:05 AM To: Sichen Zhao Cc: Christian Mauderer; rtems-de...@rtems.org Subject: Re: [PATCH] Add the i2c driver for Beaglebone Black

Re: [PATCH] Add the i2c driver for Beaglebone Black:

2017-05-23 Thread Sichen Zhao
olatile bbb_i2c_regs *regs Indentation? because the function is more than 80 character. From: devel on behalf of Christian Mauderer Sent: Wednesday, May 24, 2017 1:36 AM To: Sichen Zhao Cc: punit vara; devel@rtems.org Subject: Re: [PATCH] Add the i2c driver

[PATCH Explanation]

2017-05-23 Thread Sichen Zhao
Hi all, Please ignore the previous patch about the Beaglebone I2C. the newest one i sent is useful, when apply the patch, no error and warning. Best Regards Sichen Zhao ___ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo

[PATCH] Add the i2c driver for Beaglebone Black:

2017-05-23 Thread Sichen Zhao
+ * + * @ingroup arm_beagle + * + * @brief BeagleBoard I2C bus initialization and API Support. + */ + +/* + * Copyright (c) 2017 Sichen Zhao + * + * The license and distribution terms for this file may be + * found in the file LICENSE in this distribution or at + * http://www.rtems.org/license/LICENSE

[PATCH] Add the i2c driver for Beaglebone Black:

2017-05-23 Thread Sichen Zhao
+ * + * @ingroup arm_beagle + * + * @brief BeagleBoard I2C bus initialization and API Support. + */ + +/* + * Copyright (c) 2017 Sichen Zhao + * + * The license and distribution terms for this file may be + * found in the file LICENSE in this distribution or at + * http://www.rtems.org/license/LICENSE

  1   2   >