Re: [PATCH v2] Mailbox : Extending functionality

2016-08-28 Thread Mudit Jain
Hi, That's great news Pavel. Should I start merging all your findings and push it as a patch ? What would be the next steps ? Thanks Mudit ___ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/devel

RPi SD card Driver

2016-08-28 Thread Mudit Jain
Hi all, Good News !! I have successfully moved my changes on top of the recent MMC stack update to use the FreeBSD trunk, 2016-08-23, 9fe7c416e6abb28b1398fd3e5687099846800cfd The GitHub Link : https://github.com/spark1729/rtems-libbsd/commits/RPI_SD_LIBBSD Sebastian, if you can review the

[PATCH 2/7] SD Card : Changes over initial commit

2016-08-28 Thread Mudit Jain
--- freebsd/sys/arm/broadcom/bcm2835/bcm2835_dma.c | 13 + libbsd_waf.py | 3 ++- rtemsbsd/include/bsp/nexus-devices.h | 7 +++ rtemsbsd/include/machine/rtems-bsd-nexus-bus.h | 21 + 4 files changed, 43

[PATCH 3/7] SD Card : Clean deletion of old sdhci files

2016-08-28 Thread Mudit Jain
--- freebsd/sys/dev/sdhci/sdhci.c | 1907 - freebsd/sys/dev/sdhci/sdhci.h | 190 2 files changed, 2097 deletions(-) delete mode 100644 freebsd/sys/dev/sdhci/sdhci.c delete mode 100644 freebsd/sys/dev/sdhci/sdhci.h diff --git

[PATCH 7/7] SD Card : Added basic test suite

2016-08-28 Thread Mudit Jain
--- libbsd.py | 1 + libbsd_waf.py | 10 ++ testsuite/sdhci01/test_main.c | 46 +++ 3 files changed, 57 insertions(+) create mode 100644 testsuite/sdhci01/test_main.c diff --git a/libbsd.py b/libbsd.py index

[PATCH 1/7] SD Card : DMA Controller intial port.

2016-08-28 Thread Mudit Jain
--- freebsd/sys/arm/broadcom/bcm2835/bcm2835_dma.c | 768 +++ freebsd/sys/arm/broadcom/bcm2835/bcm2835_dma.h | 60 ++ freebsd/sys/arm/broadcom/bcm2835/bcm2835_vcbus.h | 72 +++ libbsd.py| 13 + 4 files changed, 913 insertions(+)

Re: [PATCH v2] Mailbox : Extending functionality

2016-08-27 Thread Mudit Jain
Hi Pavel, I am working on porting the changes I had done for the SD card, on top of the recent MMC stack update. After that, my plan is to work on DMA. Thanks Mudit ___ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/devel

[PATCH v2] Mailbox : Extending functionality

2016-08-27 Thread Mudit Jain
Adding functionality to get board serial, power state & clock rate --- c/src/lib/libbsp/arm/raspberrypi/include/vc.h | 17 + c/src/lib/libbsp/arm/raspberrypi/misc/vc.c | 78 ++ c/src/lib/libbsp/arm/raspberrypi/misc/vc_defines.h | 35 ++ 3 files

Re: [PATCH 1/5] SD Card : Initial Port of DMA Controller

2016-08-23 Thread Mudit Jain
gt; > 1. Delete the existing SDHCI support with one commit. > 2. Do a fresh import of the SDHCI support. > 3. Do the port to RTEMS. > > On 22/08/16 05:57, Mudit Jain wrote: > >> This is the initial port of the DMA controller >> from the libbsd using freebsd-to-rtems.py &g

Re: [PATCH] Added interrupt handler for DMA channel 0, 1 & 2

2016-08-23 Thread Mudit Jain
ace-for-rpi.html?view=flipcard> Thanks Mudit Jain On Mon, Aug 22, 2016 at 3:47 AM, Pavel Pisa <ppisa4li...@pikron.com> wrote: > Hello Mudit, > > please, send information what is RTEMS GIT revision are > your changes based on. See comment below > > On Saturday 20 of

[PATCH v2 6/6] SD card : Added basic test suite

2016-08-21 Thread Mudit Jain
--- libbsd.py| 1 + libbsd_waf.py| 10 +++ testsuite/sdhci01/demo-shell-block-devices.h | 32 + testsuite/sdhci01/demo-shell-minimal.h | 37 ++ testsuite/sdhci01/demo-shell.h | 44

[PATCH v2 5/6] SD card : Changes for SD card driver

2016-08-21 Thread Mudit Jain
--- freebsd/sys/arm/broadcom/bcm2835/bcm2835_sdhci.c | 21 + freebsd/sys/dev/mmc/mmc.c| 2 +- freebsd/sys/dev/sdhci/sdhci.c| 6 ++ freebsd/sys/dev/sdhci/sdhci.h| 2 +- rtemsbsd/include/bsp/nexus-devices.h

[PATCH v2 3/6] SD Card : Initial port of SD driver

2016-08-21 Thread Mudit Jain
This commit adds the files required for porting the SD card driver namely bcm_sdhci.c, sdhci_if.h, sdhci_if.c --- freebsd/sys/arm/broadcom/bcm2835/bcm2835_sdhci.c | 677 +++ libbsd.py| 2 + libbsd_waf.py

[PATCH v2 4/6] SD card : Updated the Kernel Space Files

2016-08-21 Thread Mudit Jain
The previous files had both the board specific functions as well as the common functions. --- freebsd/sys/dev/sdhci/sdhci.c | 3284 +++-- freebsd/sys/dev/sdhci/sdhci.h | 473 -- 2 files changed, 1874 insertions(+), 1883 deletions(-) diff --git

[PATCH v2 1/6] SD Card : Initial Port of DMA Controller

2016-08-21 Thread Mudit Jain
This is the initial port of the DMA controller from the libbsd using freebsd-to-rtems.py This change is dependent on the interrupt handler in the Mainline. --- freebsd/sys/arm/broadcom/bcm2835/bcm2835_dma.c | 768 +++ freebsd/sys/arm/broadcom/bcm2835/bcm2835_dma.h | 60

[PATCH v2 2/6] SD card : DMA Driver : Changes over initial commit

2016-08-21 Thread Mudit Jain
Changes required for using the DMA controller for SD card. --- freebsd/sys/arm/broadcom/bcm2835/bcm2835_dma.c | 13 + rtemsbsd/include/bsp/nexus-devices.h | 20 2 files changed, 33 insertions(+) diff --git

[PATCH 2/5] SD card : DMA Driver : Changes over initial commit

2016-08-21 Thread Mudit Jain
Changes required for using the DMA controller for SD card. --- freebsd/sys/arm/broadcom/bcm2835/bcm2835_dma.c | 13 + rtemsbsd/include/bsp/nexus-devices.h | 20 2 files changed, 33 insertions(+) diff --git

[PATCH 1/5] SD Card : Initial Port of DMA Controller

2016-08-21 Thread Mudit Jain
This is the initial port of the DMA controller from the libbsd using freebsd-to-rtems.py This change is dependent on the interrupt handler in the Mainline. --- freebsd/sys/arm/broadcom/bcm2835/bcm2835_dma.c | 768 +++ freebsd/sys/arm/broadcom/bcm2835/bcm2835_dma.h | 60

[PATCH 5/5] SD card : Changes for SD card driver

2016-08-21 Thread Mudit Jain
--- freebsd/sys/arm/broadcom/bcm2835/bcm2835_sdhci.c | 21 + freebsd/sys/dev/mmc/mmc.c| 2 +- freebsd/sys/dev/sdhci/sdhci.c| 6 ++ freebsd/sys/dev/sdhci/sdhci.h| 2 +- rtemsbsd/include/bsp/nexus-devices.h

[PATCH 4/5] SD card : Updated the Kernel Space Files

2016-08-21 Thread Mudit Jain
The previous files had both the board specific functions as well as the common functions. --- freebsd/sys/dev/sdhci/sdhci.c | 3284 +++-- freebsd/sys/dev/sdhci/sdhci.h | 473 -- 2 files changed, 1874 insertions(+), 1883 deletions(-) diff --git

[PATCH 3/5] SD Card : Initial port of SD driver

2016-08-21 Thread Mudit Jain
This commit adds the files required for porting the SD card driver namely bcm_sdhci.c, sdhci_if.h, sdhci_if.c --- freebsd/sys/arm/broadcom/bcm2835/bcm2835_sdhci.c | 677 +++ libbsd.py| 2 + libbsd_waf.py

Re: [PATCH 3/3] Mailbox : Adding functionality to get clock rate

2016-08-21 Thread Mudit Jain
Kindly ignore this. I have rebased and pushed all the changes in one patch. Thanks Mudit On Sat, Aug 20, 2016 at 6:55 PM, Mudit Jain <muditjain18011...@gmail.com> wrote: > From: Mudit Jain <mud...@nvidia.com> > > --- > c/src/lib/libbsp/arm/raspberrypi/include/vc.h

Re: [PATCH 2/3] Mailbox : Added functionality to get power state

2016-08-21 Thread Mudit Jain
Kindly ignore this. I have rebased and pushed all the changes in one patch. Thanks Mudit On Sat, Aug 20, 2016 at 6:55 PM, Mudit Jain <muditjain18011...@gmail.com> wrote: > From: Mudit Jain <mud...@nvidia.com> > > --- > c/src/lib/libbsp/arm/raspberrypi/include/vc.h

[PATCH] DMA : Added DMA API for Raspberrypi

2016-08-20 Thread Mudit Jain
Brief API Description rpi_dma_init -> Initializes the channel structure and its members for that particular channel, gets the physical address of the control block structure and installs the interrupt handler. rpi_dma_allocate -> Allocates the channel if it is not busy rpi_dma_setup_dst

[PATCH] Added interrupt handler for SD card

2016-08-20 Thread Mudit Jain
This is in accordance with the information in the datasheet and has been verified with the linux source code for RPi --- c/src/lib/libbsp/arm/raspberrypi/include/irq.h | 1 + c/src/lib/libbsp/arm/raspberrypi/irq/irq.c | 15 +++ 2 files changed, 16 insertions(+) diff --git

[PATCH] Added interrupt handler for DMA channel 0, 1 & 2

2016-08-20 Thread Mudit Jain
Added macros for DMA channels 0-12 Added interrupt handlers for DMA 0, 1 & 2 The added IRQs are in accordance with the BCM Peripherals Datasheet and also have been verified with the linux source code for RPi --- c/src/lib/libbsp/arm/raspberrypi/include/irq.h | 17 ++

[PATCH 1/3] Mailbox : Adding functionality to get board serial

2016-08-20 Thread Mudit Jain
From: Mudit Jain <mud...@nvidia.com> --- c/src/lib/libbsp/arm/raspberrypi/include/vc.h | 7 +++ c/src/lib/libbsp/arm/raspberrypi/misc/vc.c | 24 ++ c/src/lib/libbsp/arm/raspberrypi/misc/vc_defines.h | 11 ++ 3 files changed, 42 insertions(+)

Re: [PATCH 1/3] Mailbox : Adding functionality to get board serial

2016-08-20 Thread Mudit Jain
Kindly ignore this. I have rebased and pushed all the changes in one patch. Thanks Mudit ___ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/devel

[PATCH] Mailbox : Extending functionality

2016-08-20 Thread Mudit Jain
Adding functionality to get board serial, power state & clock rate --- c/src/lib/libbsp/arm/raspberrypi/include/vc.h | 17 + c/src/lib/libbsp/arm/raspberrypi/misc/vc.c | 75 ++ c/src/lib/libbsp/arm/raspberrypi/misc/vc_defines.h | 35 ++ 3 files

[PATCH 3/3] Mailbox : Adding functionality to get clock rate

2016-08-20 Thread Mudit Jain
From: Mudit Jain <mud...@nvidia.com> --- c/src/lib/libbsp/arm/raspberrypi/include/vc.h | 8 +++ c/src/lib/libbsp/arm/raspberrypi/misc/vc.c | 26 ++ c/src/lib/libbsp/arm/raspberrypi/misc/vc_defines.h | 12 ++ 3 files changed, 46 insertions(+)

[PATCH 2/3] Mailbox : Added functionality to get power state

2016-08-20 Thread Mudit Jain
From: Mudit Jain <mud...@nvidia.com> --- c/src/lib/libbsp/arm/raspberrypi/include/vc.h | 2 ++ c/src/lib/libbsp/arm/raspberrypi/misc/vc.c | 25 ++ c/src/lib/libbsp/arm/raspberrypi/misc/vc_defines.h | 12 +++ 3 files changed, 39 insertions(+) diff

DMA for RPi

2016-07-31 Thread Mudit Jain
Hi all, I have added code for DMA support for RPi. Here is the link for the same : GitHub Link : https://github.com/spark1729/rtems/commit/f328c4cd89b02977ccc5d7154b4af5ee9c424ba3 Kindly review the code and provide comments to improve the same. Questions : If someone could specifically look at

Adding DMA functionality for SPI and I2C in RPi

2016-07-07 Thread Mudit Jain
Hi, I have started this mail thread for discussions regarding the addition of DMA in the RTEMS Mailine for RPI and subsequently being used by other peripherals including SPI and I2C The present implementation of the SPI uses the libi2c API and the present I2C implementation used the Linux I2C

Re: [PATCH] Adding functionalities to Mailbox RPi

2016-06-27 Thread Mudit Jain
, Jun 24, 2016 at 3:56 PM, Pavel Pisa <ppisa4li...@pikron.com> wrote: > Hello Mudit and Gedare, > > On Friday 24 of June 2016 12:02:36 Mudit Jain wrote: > > Hi Gedare, > > > > When I use uncrustify, it makes a lot of changes to the previous code as > &g

Re: [PATCH] Adding functionalities to Mailbox RPi

2016-06-24 Thread Mudit Jain
ems.org> wrote: > On Mon, Jun 20, 2016 at 5:17 PM, Mudit Jain <muditjain18011...@gmail.com> > wrote: > > From: muditj <spark1...@yahoo.com> > > > > Added functions for retrieving firmware revision, > > board model and board revision. > > --- &g

Adding functionalities to Mailbox RPi

2016-06-20 Thread Mudit Jain
Hi, I have added functionality to retrieve the firmware version, board model number and board revision to the mail box code. This was one of the deliverables of my project. Github Link : https://github.com/spark1729/rtems/commit/796231efc7b0f6dd1adce67f21615689a1b0224b This is in accordance

Re: Driver complaint to SD Host Controller Specification 3.0

2016-06-03 Thread Mudit Jain
s://github.com/spark1729/rtems-libbsd/commits/rpi_sd_card>Mudit On Wed, Jun 1, 2016 at 1:56 PM, André Marques <andre.lousa.marq...@gmail.com > wrote: > Hello mudit, > > > Às 09:13 de 30-05-2016, Mudit Jain escreveu: > > Hi all, > > I have ported the code from the

Re: Driver complaint to SD Host Controller Specification 3.0

2016-05-30 Thread Mudit Jain
Hi all, I have ported the code from the present FreeBSD. Link : https://github.com/spark1729/rtems-libbsd/commits/rpi_sd_card Kindly review the same and suggest changes. The commits are a bit unstructured, the second last one being a huge one. I will be breaking it down into smaller and

Driver complaint to SD Host Controller Specification 3.0

2016-05-26 Thread Mudit Jain
Hi Sebastian & Andre, In the last IRC meeting, Gedare had mentioned that you have previously worked on the SD card driver. I was working on the SD Card driver for Rpi. I was going through the driver code that has been ported. I was able to browse and get a top level overview regarding the

Re: RKI Image for Raspberry PI 2

2016-05-25 Thread Mudit Jain
As suggested by Alan, I did copy the image, rki.bin to kernel7.img, However rtems doesn't boot in RPi 2 . For the same firmware I tried with the raspbian kernel7.img, That works fine. The attachment contains the commands used for installing RTEMS and logs from RKI image creation for RPI2

Re: RKI Image for Raspberry PI 2

2016-05-24 Thread Mudit Jain
Hi Pavel, I have pulled your branch and I am able to build the rki.bin using the following commands. mkdir b-rpi2 cd b-rpi2 ../rtems/configure --target=arm-rtems4.12 --prefix=$sandbox/rtems-4.12 --enable-rtems-inlines --disable-multiprocessing --enable-cxx --enable-rdbg --enable-maintainer-mode

Re: RKI Image for Raspberry PI 2

2016-05-24 Thread Mudit Jain
C student GitHub repo to not pollute space with yet > another copy. But synchronization through public repo would > probably help RPi as well. > > Best wishes, > > Pavel > > On Tuesday 24 of May 2016 14:09:48 Mudit Jain wrote: > > Hi Pavel, > > >

Re: RKI Image for Raspberry PI 2

2016-05-24 Thread Mudit Jain
Hi Pavel, I do have a RPI2 and can help in testing your series. Could you provide me with the details of your repo and also the tests that are to be performed so that your series can be ACKed for mainline integration. Thanks On Tue, May 24, 2016 at 5:29 PM, Mudit Jain <muditjain18

Re: RKI Image for Raspberry PI 2

2016-05-24 Thread Mudit Jain
[ 5/16] Compiling local_shell_cmds.c > [ 6/16] Compiling filesys.c > [ 7/16] Compiling ramdisk.c > [ 8/16] Compiling nvramdisk.c > [ 9/16] Compiling task_cmd.c > [10/16] Compiling hello_cmd.c > [11/16] Compiling dhrystone_cmd.c > [12/16] Compiling whetstone_cmd.c >

RKI Image for Raspberry PI 2

2016-05-24 Thread Mudit Jain
Hi All, For raspberry pi bsp, the RKI image using https://github.com/alanc98/rki is successfully build by modifying the Makefile as per the instructions given in the same . However when I try the same for raspberry pi 2 bsp, the build fails with the following error :

Updates and Issues

2016-05-06 Thread Mudit Jain
Hi everyone, GSOC Updates : As per Gedare's mail I have set up the blog, calendar, wiki and have forked the rtems-libbsd on github. I had set-up rtems for rpi following alan's blog and now have built rtems libbsd for rpi. My first blog post is regarding the same- Blog

Re: GSOC 2016 Aspirant

2016-03-26 Thread Mudit Jain
:47 PM, "Mudit Jain" <muditjain18011...@gmail.com> wrote: > Hi all, > > I had completed the GSoC application successfully and also the basic setup > of the RTEMS environment ready. > > A big thanks to everyone who gave me inputs even though it I applied at > t

Re: GSOC 2016 Aspirant

2016-03-26 Thread Mudit Jain
/1Ajhs7op7vLUYFeVZnjAaIhB2CNawvhQOMVtGtivOUtg/edit# Thanks Mudit Jain On Fri, Mar 25, 2016 at 9:49 PM, Gedare Bloom <ged...@rtems.org> wrote: > On Fri, Mar 25, 2016 at 11:46 AM, Joel Sherrill <j...@rtems.org> wrote: > > Great! Remember today is the deadline to get the Google application

GSOC 2016 Aspirant

2016-03-25 Thread Mudit Jain
Hi everyone, I am Mudit Jain, a final year undergraduate student in Electronics and Communication Engineering at BITS Pilani Hyderabad Campus. I wish to apply for GSOC 2016, with RTEMS as the mentoring organization. I have gone through your website for details regarding the development process