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

[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 +

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

2017-10-12 Thread Sichen Zhao
ems-wpa_supplicant-mutex.h new file mode 100644 index 000..1abb177 --- /dev/null +++ b/rtemsbsd/include/machine/rtems-wpa_supplicant-mutex.h @@ -0,0 +1,41 @@ +/** + * @file + * + * @ingroup rtems_bsd_machine + * + * @brief TODO. + */ + +/* + * Copyright (c) 2017 Sichen Zhao. All rights r

[PATCH v2 4/4] Add wpa_supplicant_fork command.

2017-10-12 Thread Sichen Zhao
dev/null +++ b/rtemsbsd/rtems/rtems-bsd-shell-wpa_supplicant_fork.c @@ -0,0 +1,36 @@ +/* + * Copyright (c) 2017 Sichen Zhao. All rights reserved. + * + * <zsc19940...@gmail.com> + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provi

[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

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 <zsc19940...@outlook.com> 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 tod

[PATCH 6/7] Add wpa_supplicant_fork command.

2017-08-16 Thread Sichen Zhao
ems_shell_VMSTAT_Command; diff --git a/rtemsbsd/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 @@ +/* + * Cop

[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 @@

[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',

[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

[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

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

2017-08-16 Thread Sichen Zhao
_Command; extern rtems_shell_cmd_t rtems_shell_VMSTAT_Command; diff --git a/rtemsbsd/rtems/rtems-bsd-shell-wpa_supplicant.c b/rtemsbsd/rtems/rtems-bsd-shell-wpa_supplicant.c new file mode 100644 index 000..32ebb86 --- /dev/null +++ b/rtemsbsd/rtems/rtems-bsd-shell-wpa_supplicant.c @@ -0,0

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

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 <devel-boun...@rtems.org> on behalf of Sichen Zhao <zsc19940...@outlook.com> Sent: Saturday, August 12, 2017 17:24 To: 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 <l...@c-mauderer.de> Sent: Saturday, August 12, 2017 17:05 To: Chris Johns;

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 <christian.maude...@embedded-brains.de> >> >> 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

[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

[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(-)

[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

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

2017-08-10 Thread Sichen Zhao
Ok, after the discussion, i will add it in my second version of openssl patches. Best Regards Sichen Zhao From: devel <devel-boun...@rtems.org> on behalf of Chris Johns <chr...@rtems.org> Sent: Thursday, August 10, 2017 7:05 To: Sichen

[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

[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

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

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

2017-07-31 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-31 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

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

2017-07-31 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 <l...@c-mauderer.de> Sent: Sunday, July 23, 2017 1:30 To: devel@rtems.org Cc: Chris Johns; Sichen Zhao; Christian Mauderer Subject:

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@rtems.org

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 <zsc19940...@outlook.com> Sent: Thursday, July 13, 2

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

2017-07-13 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

[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 <devel-boun...@rtems.org> on behalf of Sebastian Huber <sebastian.hu...@embedded-brains.de> Sen

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

2017-07-12 Thread Sichen Zhao
Ok, thanks. Best Regards Sichen Zhao From: devel <devel-boun...@rtems.org> on behalf of Sebastian Huber <sebastian.hu...@embedded-brains.de> Sent: Wednesday, July 12, 2017 2:40:28 PM To: Sichen Zhao; devel@rtems.org Cc: punitv.

[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 ---

[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 +++

[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

[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

[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 +

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 <devel-boun...@rtems.org> on behalf of Siche

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 <devel-boun...@rtems.org> on behalf of Sichen Zhao <1473996...@qq.com> Sen

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

2017-07-05 Thread Sichen Zhao
org> on behalf of Sichen Zhao <zsc19940...@outlook.com> 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 Re

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 <devel-boun...@rtems.org> on behalf of Sebastian Huber <sebastian.hu...@embedded-brains.de> Sent: Wednesday, July 5, 2017 13:12 To: Sichen Zhao; devel@rtems.org Cc: punitv...@gmail.com; chr

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 <devel-boun...@rtems.org> on behalf of Sebastian Huber <sebastian.hu...@embedded-brains.de> Sent: Wednesday, July 5, 2017 13:17 To: Sichen Zhao; devel@

[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 ---

[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 +++

[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 ---

[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 +++

[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

[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 ---

[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

[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

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 <sebastian.hu...@embedded-brains.de> Sent: Monday, July 3, 2017 4:00:02 PM To: RTEMS Cc: Sichen Zhao Subject: Re: libbsd

libbsd ofwbus activate resources issue

2017-07-01 Thread Sichen Zhao
g a resource that should be activated. the ofwbus_activate_resource is not exist. So whether someone has been successful in porting a driver that uses simplebus in libbsd and that uses a resource that should be activated. Best Regards Sichen Zhao ___

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

2017-06-26 Thread Sichen Zhao
Yes, i will discuss it with my mentor, and do my best. Best Regards Sichen Zhao From: Sebastian Huber <sebastian.hu...@embedded-brains.de> Sent: Saturday, June 24, 2017 17:07 To: Sichen Zhao Cc: Sichen Zhao; devel; punitv...@gmail.com; christian ma

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 ---

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

RTEMS-libbsd copyright question

2017-06-19 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 <devel-boun...@rtems.org> on behalf of Chris Johns <chr...@rtems.org> Sent: Monday, June 19, 2017 10:01 To: Sichen Zhao; devel@rtems.org Cc: punitv...@gmail.com; christian.maude...@embedded-brains.de

Re: [PATCH] Fix beagle bsp irq issue

2017-06-18 Thread Sichen Zhao
/pipermail/devel/2017-June/018162.html Best Regards Sichen Zhao From: devel <devel-boun...@rtems.org> on behalf of Gedare Bloom <ged...@rtems.org> Sent: Sunday, June 18, 2017 19:54 To: Sichen Zhao Cc: punit vara; Christian Mauderer; devel@rtems

Re: [PATCH] Fix beagle bsp irq issue

2017-06-17 Thread Sichen Zhao
Yes, i will! -- Original -- From: "punit vara";<punitv...@gmail.com>; Date: Sat, Jun 17, 2017 11:44 PM To: "Sichen Zhao"<1473996...@qq.com>; Cc: "rtems-de...@rtems.org"<devel@rtems.org>; "Christian Maude

[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

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 Zhao

[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

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 <devel-boun...@rtems.org> on behalf of Christian Mauderer <christian.maude...@embedded-brains.de> Sent: Monday, June 5, 2017 8:18:30 PM To: Sichen Zhao Cc: punit vara; dev

[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 <zsc19940...@gmail.com> + * + * The license and distribution terms for this file may be + * found in the file LICENSE in this distribution or at +

[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 <ged...@gwmail.gwu.edu> on behalf of Gedare Bloom <ged...@rtems.org> Sent: Thursday, June 1, 2017 23:14 To: Joel Sherrill Cc: Sichen Zhao; RTEMS Subject: R

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 <devel-boun...@rtems.org> on behalf of Joel Sherrill <j...@rtems.org> Sent: Friday, May 26, 2017 23:12 To: Ben Gras

[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 <zsc19940...@gmail.com> + * + * The license and distribution terms for this file may be + * found in the file LICENSE in this distribution or at +

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 <devel-boun...@rtems.org> on behalf of punit vara <punitv...@gmail.com> Sent: Wednesday, May 24, 2017 2:05 AM To: Sichen Zhao Cc: Christian Mauderer; rtems-de...@rtems.org

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

2017-05-23 Thread Sichen Zhao
le bbb_i2c_regs *regs Indentation? because the function is more than 80 character. From: devel <devel-boun...@rtems.org> on behalf of Christian Mauderer <christian.maude...@embedded-brains.de> Sent: Wednesday, May 24, 2017 1:36 AM To: Sichen Zhao Cc:

[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 <zsc19940...@gmail.com> + * + * The license and distribution terms for this file may be + * found in the file LICENSE in this distribution or at +

[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 <zsc19940...@gmail.com> + * + * The license and distribution terms for this file may be + * found in the file LICENSE in this distribution or at +

Re: GSOC student question

2017-05-23 Thread Sichen Zhao
I am sorry but can you give me some suggestion about that, you mean the old i2c works on all platforms, and shouldn't be replace, so where you suggest the new one should go and how to mark the old one deprecated? Best Regards Sichen Zhao From: Joel Sherrill

GSOC student question

2017-05-22 Thread Sichen Zhao
the patch? Best Regards Sichen Zhao ___ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/devel

Re: [PATCH 2/2] Beagle i2c: Update Beaglebone i2c driver code

2017-05-14 Thread Sichen Zhao
Ok, that's very kind of you. Sichen Zhao From: Joel Sherrill <j...@rtems.org> Sent: Sunday, May 14, 2017 9:17 PM To: 赵 思晨 Cc: rtems-de...@rtems.org; punit vara; Christian Mauderer Subject: Re: [PATCH 2/2] Beagle i2c: Update Beaglebone i2c drive

Re: [PATCH 2/2] Beagle i2c: Update Beaglebone i2c driver code

2017-05-14 Thread Sichen Zhao
Hi Christian, I will read the coding conventions and modify the patch as soon as possible. Thank you Sichen Zhao From: devel <devel-boun...@rtems.org> on behalf of Christian Mauderer <christian.maude...@embedded-brains.de> Sent: Sunday, May 14,

GSOC student suggestion about bug fixs

2017-05-13 Thread Sichen Zhao
Hi all, I am GSOC 2017 student Sichen Zhao I wanna ask whether the RTEMS-libbsd Bug is ok? And strictly speaking it's a suggestion not a bug. Best Regards Sichen Zhao ___ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo

[PATCH 2/2] Beagle i2c: Update Beaglebone i2c driver code

2017-05-12 Thread Sichen Zhao
This patch modify the i2c code for Beaglebone Black based on PV works: - bbb-i2c.c: Modify the interrupt handler, transfer funciton, read function, am335x_i2c_busbusy function etc. Add flush_fifo function - include/i2c.h: Modify some macros, such as BBB_I2C_IRQ_ERROR Now the i2c is working on

[PATCH 1/2] beagle i2c: Add beaglebone i2c driver code

2017-05-12 Thread Sichen Zhao
From: Punit Vara This patch add the I2C driver code for Beaglebone Black: - Add beagle/i2c/bbb-i2c.c i2c driver code - Modify include/i2c.h - Modify beagle/Makefile.am But i2c can not work currently --- c/src/lib/libbsp/arm/beagle/Makefile.am | 4 +-

Re: GSOC 2017 RTEMS-libbsd issue

2017-04-19 Thread Sichen Zhao
Hi Christian Mauderer, Ok, i got your idea,I will try it. Thank you for your patient for my problem. Best regards Sichen Zhao From: Christian Mauderer <christian.maude...@embedded-brains.de> Sent: Wednesday, April 19, 2017 11:05 PM To: 赵 思晨 Cc: RTEMS S

GSOC 2017 RTEMS-libbsd issue

2017-04-18 Thread Sichen Zhao
-428f-9066-723c5cb9703c] So the macro USB_HAVE_UGEN should keep unable? I see the FreeBSD on BBB enable the USB_HAVE_UGEN. Thanks Sichen Zhao ___ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/devel

[PATCH 1/2] beagle i2c: Add beaglebone i2c driver code

2017-03-30 Thread Sichen Zhao
From: Punit Vara This patch add the I2C driver code for Beaglebone Black: - Add beagle/i2c/bbb-i2c.c i2c driver code - Modify include/i2c.h - Modify beagle/Makefile.am But i2c can not work currently --- c/src/lib/libbsp/arm/beagle/Makefile.am | 4 +-

[PATCH 2/2] Beagle i2c: Update Beaglebone i2c driver code

2017-03-30 Thread Sichen Zhao
This patch modify the i2c code for Beaglebone Black based on PV works: - bbb-i2c.c: Modify the interrupt handler, transfer funciton, read function, am335x_i2c_busbusy function etc. Add flush_fifo function - include/i2c.h: Modify some macros, such as BBB_I2C_IRQ_ERROR Now the i2c is working on

[PATCH 2/2] Beaglebone Black i2c code, modify by Sichen Zhao - Modify the bbb-i2c.c code, base on Punit Vara code - Modify the include/i2c.h, base on Punit Vara code I2C is working now, BBB can read t

2017-03-30 Thread Sichen Zhao
--- c/src/lib/libbsp/arm/beagle/i2c/bbb-i2c.c | 370 -- c/src/lib/libbsp/arm/beagle/include/i2c.h | 11 +- 2 files changed, 150 insertions(+), 231 deletions(-) diff --git a/c/src/lib/libbsp/arm/beagle/i2c/bbb-i2c.c b/c/src/lib/libbsp/arm/beagle/i2c/bbb-i2c.c index

[PATCH 1/2] Beaglebone black i2c code, modify by Punit Vara - Add beagle/bbb-i2c.c i2c driver - Modify include/i2c.h - Modify Makefile.am But i2c cannot work currently

2017-03-30 Thread Sichen Zhao
--- c/src/lib/libbsp/arm/beagle/Makefile.am | 4 +- c/src/lib/libbsp/arm/beagle/i2c/bbb-i2c.c | 788 ++ c/src/lib/libbsp/arm/beagle/include/i2c.h | 153 +- 3 files changed, 926 insertions(+), 19 deletions(-) create mode 100644

[PATCH 1/2] Beaglebone black i2c code, modify by Punit Vara - Add beagle/bbb-i2c.c i2c driver - Modify include/i2c.h - Modify Makefile.am But i2c cannot work currently

2017-03-29 Thread Sichen Zhao
8h = 184 + uint32_t BBB_I2C_SYSTEST; //BCh = 188 + uint32_t BBB_I2C_BUFSTAT; //C0h 192 + uint32_t BBB_I2C_OA1; //C4h 196 + uint32_t BBB_I2C_OA2; //C8h 200 + uint32_t BBB_I2C_OA3; //CCh 204 + uint32_t BBB_I2C_ACTOA; //D0h 208 + uint32_t BBB_I2C_SBLOCK; //D4h 212 +}bbb_i2c_regs; + +typedef struct bbb_i2c_bus{ +

[PATCH] modify punitvara's works on BBB i2c, and now can read the eeprom info.

2017-03-14 Thread Sichen Zhao
--- c/src/lib/libbsp/arm/beagle/i2c/bbb-i2c.c | 684 -- c/src/lib/libbsp/arm/beagle/include/i2c.h | 18 +- cpukit/dev/i2c/eeprom.c | 24 +- testsuites/samples/i2c0/init.c| 98 - 4 files changed, 777 insertions(+), 47 deletions(-)