Re: Problem running RTEMS on raspberrypi3

2019-12-18 Thread Niteesh
Yes, I did try that but still, it doesn't work. I don't have any other pi's with me, maybe let's wait for someone to try it out on any older models. On Wed, Dec 18, 2019 at 2:06 AM Christian Mauderer wrote: > That handler doesn't look like an RTEMS handler. So it failed at a very > early stage.

Re: Problem running RTEMS on raspberrypi3

2019-12-17 Thread Christian Mauderer
That handler doesn't look like an RTEMS handler. So it failed at a very early stage. Did you try a go 0x20 instead? Normally the first vector is a reset vector which jumps to the right start address. The jump can have a mode with it. So if you directly jump to 0x200080 the core might is in a w

Re: Problem running RTEMS on raspberrypi3

2019-12-17 Thread Christian Mauderer
I tried booting it on the Pi 1 without success. So it seems that I either don't have the right steps or that something is broken. I would lean to the first one because I don't really have put much time into it. Do you have any old Pi where you could try it first? Maybe it would be good to ask whe

Re: Problem running RTEMS on raspberrypi3

2019-12-16 Thread Niteesh
What about using U-boot? I just tried running my own bare metal example using u-boot and it works fine. The 3rd stage bootloader start the u-boot and I was able to interact with it through serial. and then I used fatload mmc 0 0x8000 kernel.img ; go 0x8000 to load and run the img. I tried the same

Re: Problem running RTEMS on raspberrypi3

2019-12-16 Thread Niteesh
But I am not able to boot using the 3 stage bootloader. Can someone try booting any examples on raspi3 or other newer models? If it's work's please post the instructions. The steps that I followed are: 1. arm-rtems5-objcopy -Obinary hello.exe kernel.img 2. copied the kernel image to sd card and mod

Re: [EXTERNAL] Re: Problem running RTEMS on raspberrypi3

2019-12-16 Thread Cudmore, Alan P. (GSFC-5820)
auderer mailto:l...@c-mauderer.de>>, "rtems-de...@rtems.org<mailto:rtems-de...@rtems.org>" mailto:devel@rtems.org>> Subject: Re: [EXTERNAL] Re: Problem running RTEMS on raspberrypi3 I looked at the source code for UART. RTEMS uses the PL011 which is by default connect

Re: [EXTERNAL] Re: Problem running RTEMS on raspberrypi3

2019-12-16 Thread Christian Mauderer
I'm not that sure that the right UART is used. The driver in the raspberry BSP doesn't care for the configuration file. So it most likely always uses the same UART regardless what the bootloader tells. The dtoverlay=disable-bt in the config file just adds a devicetree overlay. We currently don

Re: Problem running RTEMS on raspberrypi3

2019-12-16 Thread Christian Mauderer
I think I have guided you to a wrong path here. I mentioned U-Boot because it is often used on a lot of evaluation boards. In the raspberry case it seems that the stage 3 loader is something different. But everything should work with that stage 3 loader. I don't think that U-Boot is necessary. On

Re: Problem running RTEMS on raspberrypi3

2019-12-16 Thread Christian Mauderer
On 16/12/2019 12:43, Niteesh wrote: > On Mon, Dec 16, 2019 at 2:36 AM Christian Mauderer > wrote: > > > > On 15/12/2019 21:29, Niteesh wrote: > > > > > > On Mon, Dec 16, 2019 at 12:53 AM Christian Mauderer > mailto:l...@c-mauderer.de> > >

Re: [EXTERNAL] Re: Problem running RTEMS on raspberrypi3

2019-12-16 Thread Niteesh
; > devel@rtems.org> > *Subject: *Re: [EXTERNAL] Re: Problem running RTEMS on raspberrypi3 > > > > I looked at the source code for UART. RTEMS uses the PL011 which is by > default connected to the bluetooth module, but this can be changed by > adding disable-bt command t

Re: [EXTERNAL] Re: Problem running RTEMS on raspberrypi3

2019-12-16 Thread Cudmore, Alan P. (GSFC-5820)
evel mailto:devel-boun...@rtems.org>> on behalf of Niteesh mailto:gsnb...@gmail.com>> Date: Monday, December 16, 2019 at 8:02 AM To: Christian Mauderer mailto:l...@c-mauderer.de>> Cc: "rtems-de...@rtems.org<mailto:rtems-de...@rtems.org>" mailto:devel@rtems.org>&g

Re: [EXTERNAL] Re: Problem running RTEMS on raspberrypi3

2019-12-16 Thread Niteesh
n behalf of Niteesh < > gsnb...@gmail.com> > *Date: *Monday, December 16, 2019 at 8:02 AM > *To: *Christian Mauderer > *Cc: *"rtems-de...@rtems.org" > *Subject: *[EXTERNAL] Re: Problem running RTEMS on raspberrypi3 > > > > I got uboot running on my rasp

Re: [EXTERNAL] Re: Problem running RTEMS on raspberrypi3

2019-12-16 Thread Cudmore, Alan P. (GSFC-5820)
minimum, I think the RPI3 needs a different console driver. https://www.raspberrypi.org/documentation/configuration/uart.md From: devel on behalf of Niteesh Date: Monday, December 16, 2019 at 8:02 AM To: Christian Mauderer Cc: "rtems-de...@rtems.org" Subject: [EXTERNAL] Re: Problem run

Re: Problem running RTEMS on raspberrypi3

2019-12-16 Thread Niteesh
I got uboot running on my raspi3. But I can't figure out to load and run a custom kernel. Can you explain the steps or point me to some reference. On Mon, Dec 16, 2019 at 5:13 PM Niteesh wrote: > On Mon, Dec 16, 2019 at 2:36 AM Christian Mauderer > wrote: > >> >> >> On 15/12/2019 21:29, Niteesh

Re: Problem running RTEMS on raspberrypi3

2019-12-16 Thread Niteesh
On Mon, Dec 16, 2019 at 2:36 AM Christian Mauderer wrote: > > > On 15/12/2019 21:29, Niteesh wrote: > > > > > > On Mon, Dec 16, 2019 at 12:53 AM Christian Mauderer > > wrote: > > > > On 15/12/2019 19:46, Niteesh wrote: > > > > > > > > > On Sun, Dec 15,

Re: Problem running RTEMS on raspberrypi3

2019-12-15 Thread Christian Mauderer
On 15/12/2019 21:29, Niteesh wrote: > > > On Mon, Dec 16, 2019 at 12:53 AM Christian Mauderer > wrote: > > On 15/12/2019 19:46, Niteesh wrote: > > > > > > On Sun, Dec 15, 2019 at 10:15 PM Christian Mauderer > mailto:l...@c-mauderer.de> > >

Re: Problem running RTEMS on raspberrypi3

2019-12-15 Thread Niteesh
On Mon, Dec 16, 2019 at 12:53 AM Christian Mauderer wrote: > On 15/12/2019 19:46, Niteesh wrote: > > > > > > On Sun, Dec 15, 2019 at 10:15 PM Christian Mauderer > > wrote: > > > > Hello Niteesh, > > > > On 15/12/2019 09:05, Niteesh wrote: > > > I am trying

Re: Problem running RTEMS on raspberrypi3

2019-12-15 Thread Christian Mauderer
On 15/12/2019 19:46, Niteesh wrote: > > > On Sun, Dec 15, 2019 at 10:15 PM Christian Mauderer > wrote: > > Hello Niteesh, > > On 15/12/2019 09:05, Niteesh wrote: > > I am trying to get RTEMS examples running on the RPI3, the RPI3 is > > similar to RPI

Re: Problem running RTEMS on raspberrypi3

2019-12-15 Thread Niteesh
On Sun, Dec 15, 2019 at 10:15 PM Christian Mauderer wrote: > Hello Niteesh, > > On 15/12/2019 09:05, Niteesh wrote: > > I am trying to get RTEMS examples running on the RPI3, the RPI3 is > > similar to RPI2 so the examples built for RPI2 should technically run on > > the RPi3.But they don't :(, I

Re: Problem running RTEMS on raspberrypi3

2019-12-15 Thread Christian Mauderer
Hello Niteesh, On 15/12/2019 09:05, Niteesh wrote: > I am trying to get RTEMS examples running on the RPI3, the RPI3 is > similar to RPI2 so the examples built for RPI2 should technically run on > the RPi3.But they don't :(, I am really sure of what is causing the problem. Note that there are at

Problem running RTEMS on raspberrypi3

2019-12-15 Thread Niteesh
I am trying to get RTEMS examples running on the RPI3, the RPI3 is similar to RPI2 so the examples built for RPI2 should technically run on the RPi3.But they don't :(, I am really sure of what is causing the problem. I followed the steps from http://alanstechnotes.blogspot.com/2013/03/running-your-