Re: [EXTERNAL] Re: BeagleBone Black Networking (wifi and/or wired)

2019-06-07 Thread Oyake, Amalaye (386M)
Device Tree overays are a method used to update the Device Tree. Given a device 
tree that describes all the devices, let's say you add a new SPI device, you 
can update the device tree with a (blob) device tree overlay.

I should ask (without Googling), What is the Device Tree Overlay mechanism in 
RTEMS?

Regards,
--
* Amalaye Oyake, NASA / Jet Propulsion Laboratory.  */\  *
* Jet Propulsion Laboratory, Pasadena   *||  *
* CA/||\ *
*^^***
 

On 6/7/19, 6:17 PM, "users on behalf of Chris Johns"  wrote:

On 8/6/19 1:53 am, Vijay Kumar Banerjee wrote:
> 
> I would like to add that in two projects of this year( I2C and PRU-ICSS 
drivers) we
> are using our own device tree overlays that make our drivers work. Where 
to add
> the device
> tree related stuff seems like an important question. 

What are device tree overlays?

Chris
___
users mailing list
users@rtems.org
http://lists.rtems.org/mailman/listinfo/users


___
users mailing list
users@rtems.org
http://lists.rtems.org/mailman/listinfo/users

Re: BeagleBone Black Networking (wifi and/or wired)

2019-06-07 Thread Chris Johns
On 8/6/19 1:53 am, Vijay Kumar Banerjee wrote:
> 
> I would like to add that in two projects of this year( I2C and PRU-ICSS 
> drivers) we
> are using our own device tree overlays that make our drivers work. Where to 
> add
> the device
> tree related stuff seems like an important question. 

What are device tree overlays?

Chris
___
users mailing list
users@rtems.org
http://lists.rtems.org/mailman/listinfo/users


Re: BeagleBone Black Networking (wifi and/or wired)

2019-06-07 Thread Chris Johns
On 8/6/19 1:43 am, Vijay Kumar Banerjee wrote:
> 
> I recently wrote a blog post about running RTEMS on BBB:
> https://blog.thelunatic.dev/getting-started-bbb-2/
> 

Thanks for mentioning this. I have been using it.

> Some of it can be a part of the documentation I think. I would like to
> help with the documentation on Beagle BSP. :-)

Excellent and thanks.

Chris
___
users mailing list
users@rtems.org
http://lists.rtems.org/mailman/listinfo/users


Re: BeagleBone Black Networking (wifi and/or wired)

2019-06-07 Thread Vijay Kumar Banerjee
On Fri, Jun 7, 2019 at 9:15 PM Christian Mauderer <
christian.maude...@embedded-brains.de> wrote:

>
>
> - Ursprüngliche Mail -
> > Von: "Chris Johns" 
> > An: "Christian Mauderer" ,
> "RTEMS Users" 
> > Gesendet: Freitag, 7. Juni 2019 14:23:51
> > Betreff: Re: BeagleBone Black Networking (wifi and/or wired)
>
> > On 7/6/19 7:41 pm, Christian Mauderer wrote:
> >> On 07/06/2019 11:19, Chris Johns wrote:
> >>> On 7/6/19 7:18 pm, Christian Mauderer wrote:
> >>>
> >>> Which FDT blob do I need to load?
> >>>
> >>
> >> I usually use the one from either the official Linux or the one from
> >> FreeBSD. Alternatively you can build your own from
> >>
> >>git://xenbits.xen.org/people/ianc/device-tree-rebasing.git
> >>
> >
> > Thanks. I have found them and I can build the default one on FreeBSD. It
> does
> > not build on MacOS, the `cpp` from clang does not like command line.
> >
> > I wonder if we should include the dts source from FreeBSD in
> rtems-libbsp and
> > maybe some blobs. This stuff is pretty nerdy and makes libbsd awkward to
> use.
> > Crashing if not present is not friendly.
> >
> > Chris
>
> Note that basically all device tree files that I have found yet are forked
> from the Linux ones. They are all GPL. I think it was Sichen Zhao during
> 2017 GSoC who wanted to add some to the RTEMS repository and it has been
> rejected due to the license. I don't really object to adding them
> somewhere. But we should think exactly about where we want that stuff.
>
> I would like to add that in two projects of this year( I2C and PRU-ICSS
drivers) we
are using our own device tree overlays that make our drivers work. Where to
add the device
tree related stuff seems like an important question.


> Regards
>
> Christian
> --
> 
> embedded brains GmbH
> Christian Mauderer
> Dornierstr. 4
> D-82178 Puchheim
> Germany
> email: christian.maude...@embedded-brains.de
> Phone: +49-89-18 94 741 - 18
> Fax:   +49-89-18 94 741 - 08
> PGP: Public key available on request.
>
> Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.
> ___
> users mailing list
> users@rtems.org
> http://lists.rtems.org/mailman/listinfo/users
___
users mailing list
users@rtems.org
http://lists.rtems.org/mailman/listinfo/users

Re: BeagleBone Black Networking (wifi and/or wired)

2019-06-07 Thread Christian Mauderer


- Ursprüngliche Mail -
> Von: "Chris Johns" 
> An: "Christian Mauderer" , "RTEMS 
> Users" 
> Gesendet: Freitag, 7. Juni 2019 14:23:51
> Betreff: Re: BeagleBone Black Networking (wifi and/or wired)

> On 7/6/19 7:41 pm, Christian Mauderer wrote:
>> On 07/06/2019 11:19, Chris Johns wrote:
>>> On 7/6/19 7:18 pm, Christian Mauderer wrote:
>>>
>>> Which FDT blob do I need to load?
>>>
>> 
>> I usually use the one from either the official Linux or the one from
>> FreeBSD. Alternatively you can build your own from
>> 
>>git://xenbits.xen.org/people/ianc/device-tree-rebasing.git
>> 
> 
> Thanks. I have found them and I can build the default one on FreeBSD. It does
> not build on MacOS, the `cpp` from clang does not like command line.
> 
> I wonder if we should include the dts source from FreeBSD in rtems-libbsp and
> maybe some blobs. This stuff is pretty nerdy and makes libbsd awkward to use.
> Crashing if not present is not friendly.
> 
> Chris

Note that basically all device tree files that I have found yet are forked from 
the Linux ones. They are all GPL. I think it was Sichen Zhao during 2017 GSoC 
who wanted to add some to the RTEMS repository and it has been rejected due to 
the license. I don't really object to adding them somewhere. But we should 
think exactly about where we want that stuff.

Regards

Christian
-- 

embedded brains GmbH
Christian Mauderer
Dornierstr. 4
D-82178 Puchheim
Germany
email: christian.maude...@embedded-brains.de
Phone: +49-89-18 94 741 - 18
Fax:   +49-89-18 94 741 - 08
PGP: Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.
___
users mailing list
users@rtems.org
http://lists.rtems.org/mailman/listinfo/users

Re: BeagleBone Black Networking (wifi and/or wired)

2019-06-07 Thread Vijay Kumar Banerjee
On Fri, Jun 7, 2019 at 6:09 PM Chris Johns  wrote:

> On 7/6/19 10:32 pm, Sebastian Huber wrote:
> > On 07/06/2019 14:23, Chris Johns wrote:
> >> On 7/6/19 7:41 pm, Christian Mauderer wrote:
> >>> On 07/06/2019 11:19, Chris Johns wrote:
>  On 7/6/19 7:18 pm, Christian Mauderer wrote:
> 
>  Which FDT blob do I need to load?
> 
> >>>
> >>> I usually use the one from either the official Linux or the one from
> >>> FreeBSD. Alternatively you can build your own from
> >>>
> >>> git://xenbits.xen.org/people/ianc/device-tree-rebasing.git
> >>>
> >>
> >> Thanks. I have found them and I can build the default one on FreeBSD.
> It does
> >> not build on MacOS, the `cpp` from clang does not like command line.
> >>
> >> I wonder if we should include the dts source from FreeBSD in
> rtems-libbsp and
> >> maybe some blobs. This stuff is pretty nerdy and makes libbsd awkward
> to use.
> >> Crashing if not present is not friendly.
> >
> > For a start some documentation would be helpful too:
> >
> > https://docs.rtems.org/branches/master/user/bsps/bsps-arm.html#beagle
> >
>
> I agree, I saw this after checking there first. Once I figure out what I am
> doing I will add some. I am still assembling all the pieces.
>
> Hello Chris,

I recently wrote a blog post about running RTEMS on BBB:
https://blog.thelunatic.dev/getting-started-bbb-2/

Some of it can be a part of the documentation I think. I would like to
help with the documentation on Beagle BSP. :-)

Thanks

> Chris
> ___
> users mailing list
> users@rtems.org
> http://lists.rtems.org/mailman/listinfo/users
___
users mailing list
users@rtems.org
http://lists.rtems.org/mailman/listinfo/users

Re: BeagleBone Black Networking (wifi and/or wired)

2019-06-07 Thread Sebastian Huber

On 07/06/2019 14:23, Chris Johns wrote:

On 7/6/19 7:41 pm, Christian Mauderer wrote:

On 07/06/2019 11:19, Chris Johns wrote:

On 7/6/19 7:18 pm, Christian Mauderer wrote:

Which FDT blob do I need to load?



I usually use the one from either the official Linux or the one from
FreeBSD. Alternatively you can build your own from

git://xenbits.xen.org/people/ianc/device-tree-rebasing.git



Thanks. I have found them and I can build the default one on FreeBSD. It does
not build on MacOS, the `cpp` from clang does not like command line.

I wonder if we should include the dts source from FreeBSD in rtems-libbsp and
maybe some blobs. This stuff is pretty nerdy and makes libbsd awkward to use.
Crashing if not present is not friendly.


For a start some documentation would be helpful too:

https://docs.rtems.org/branches/master/user/bsps/bsps-arm.html#beagle

--
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax : +49 89 189 47 41-09
E-Mail  : sebastian.hu...@embedded-brains.de
PGP : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.
___
users mailing list
users@rtems.org
http://lists.rtems.org/mailman/listinfo/users

Re: BeagleBone Black Networking (wifi and/or wired)

2019-06-07 Thread Chris Johns
On 7/6/19 7:41 pm, Christian Mauderer wrote:
> On 07/06/2019 11:19, Chris Johns wrote:
>> On 7/6/19 7:18 pm, Christian Mauderer wrote:
>>
>> Which FDT blob do I need to load?
>>
> 
> I usually use the one from either the official Linux or the one from
> FreeBSD. Alternatively you can build your own from
> 
>git://xenbits.xen.org/people/ianc/device-tree-rebasing.git
> 

Thanks. I have found them and I can build the default one on FreeBSD. It does
not build on MacOS, the `cpp` from clang does not like command line.

I wonder if we should include the dts source from FreeBSD in rtems-libbsp and
maybe some blobs. This stuff is pretty nerdy and makes libbsd awkward to use.
Crashing if not present is not friendly.

Chris
___
users mailing list
users@rtems.org
http://lists.rtems.org/mailman/listinfo/users


Re: BeagleBone Black Networking (wifi and/or wired)

2019-06-07 Thread Christian Mauderer
On 07/06/2019 11:19, Chris Johns wrote:
> On 7/6/19 7:18 pm, Christian Mauderer wrote:
>>
>> On 07/06/2019 11:16, Chris Johns wrote:
>>> On 7/6/19 6:34 pm, Christian Mauderer wrote:
 On 07/06/2019 10:23, Chris Johns wrote:
> Hi,
>
> I am looking for some information on doing either but I cannot find out 
> what I
> need. I have run a few libbsd examples and some run and some crash. I am
> wondering if I need an device tree installed but I cannot find out which 
> one and
> from where.
>
> Any hints would be most welcome.
>
> Thanks
> Chris

 Hello Chris,

 for wired network, you should be able to add libbsd and start the
 network similar like for all other boards.
>>>
>>> Nice. Do I need u-boot to load an FDT? I am not currently doing that.
>>
>> Yes. The libbsd drivers use the FDT.
>>
> 
> Which FDT blob do I need to load?
> 
> Chris
> 

I usually use the one from either the official Linux or the one from
FreeBSD. Alternatively you can build your own from

   git://xenbits.xen.org/people/ianc/device-tree-rebasing.git

-- 

embedded brains GmbH
Herr Christian Mauderer
Dornierstr. 4
D-82178 Puchheim
Germany
email: christian.maude...@embedded-brains.de
Phone: +49-89-18 94 741 - 18
Fax:   +49-89-18 94 741 - 08
PGP: Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.
___
users mailing list
users@rtems.org
http://lists.rtems.org/mailman/listinfo/users

Re: BeagleBone Black Networking (wifi and/or wired)

2019-06-07 Thread Chris Johns
On 7/6/19 7:18 pm, Christian Mauderer wrote:
> 
> On 07/06/2019 11:16, Chris Johns wrote:
>> On 7/6/19 6:34 pm, Christian Mauderer wrote:
>>> On 07/06/2019 10:23, Chris Johns wrote:
 Hi,

 I am looking for some information on doing either but I cannot find out 
 what I
 need. I have run a few libbsd examples and some run and some crash. I am
 wondering if I need an device tree installed but I cannot find out which 
 one and
 from where.

 Any hints would be most welcome.

 Thanks
 Chris
>>>
>>> Hello Chris,
>>>
>>> for wired network, you should be able to add libbsd and start the
>>> network similar like for all other boards.
>>
>> Nice. Do I need u-boot to load an FDT? I am not currently doing that.
> 
> Yes. The libbsd drivers use the FDT.
> 

Which FDT blob do I need to load?

Chris
___
users mailing list
users@rtems.org
http://lists.rtems.org/mailman/listinfo/users


Re: BeagleBone Black Networking (wifi and/or wired)

2019-06-07 Thread Christian Mauderer

On 07/06/2019 11:16, Chris Johns wrote:
> On 7/6/19 6:34 pm, Christian Mauderer wrote:
>> On 07/06/2019 10:23, Chris Johns wrote:
>>> Hi,
>>>
>>> I am looking for some information on doing either but I cannot find out 
>>> what I
>>> need. I have run a few libbsd examples and some run and some crash. I am
>>> wondering if I need an device tree installed but I cannot find out which 
>>> one and
>>> from where.
>>>
>>> Any hints would be most welcome.
>>>
>>> Thanks
>>> Chris
>>
>> Hello Chris,
>>
>> for wired network, you should be able to add libbsd and start the
>> network similar like for all other boards.
> 
> Nice. Do I need u-boot to load an FDT? I am not currently doing that.

Yes. The libbsd drivers use the FDT.

> 
>>
>> Wireless is still some more effort. Note that you will need the
>> everything buildset of libbsd for that.
>>
>> If you want you can have a look at the example application that I used
>> during the last GSoC projects:
>>
>> https://gitlab.com/c-mauderer/rtems-bbb/tree/master/apps/wifi-sample
>>
>> That application starts a wpa_supplicant. It expects a RT8188EU based
>> WLAN dongle. There should be a wpa_supplicant.conf on the root of your
>> SD card. If I remember correctly it even routes between the networks. So
>> you could basically use the BBB as a Ethernet to WLAN adapter.
> 
> Nice.
> 
> Thanks
> Chris
> 

-- 

embedded brains GmbH
Herr Christian Mauderer
Dornierstr. 4
D-82178 Puchheim
Germany
email: christian.maude...@embedded-brains.de
Phone: +49-89-18 94 741 - 18
Fax:   +49-89-18 94 741 - 08
PGP: Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.
___
users mailing list
users@rtems.org
http://lists.rtems.org/mailman/listinfo/users

Re: BeagleBone Black Networking (wifi and/or wired)

2019-06-07 Thread Chris Johns
On 7/6/19 6:34 pm, Christian Mauderer wrote:
> On 07/06/2019 10:23, Chris Johns wrote:
>> Hi,
>>
>> I am looking for some information on doing either but I cannot find out what 
>> I
>> need. I have run a few libbsd examples and some run and some crash. I am
>> wondering if I need an device tree installed but I cannot find out which one 
>> and
>> from where.
>>
>> Any hints would be most welcome.
>>
>> Thanks
>> Chris
> 
> Hello Chris,
> 
> for wired network, you should be able to add libbsd and start the
> network similar like for all other boards.

Nice. Do I need u-boot to load an FDT? I am not currently doing that.

> 
> Wireless is still some more effort. Note that you will need the
> everything buildset of libbsd for that.
> 
> If you want you can have a look at the example application that I used
> during the last GSoC projects:
> 
> https://gitlab.com/c-mauderer/rtems-bbb/tree/master/apps/wifi-sample
> 
> That application starts a wpa_supplicant. It expects a RT8188EU based
> WLAN dongle. There should be a wpa_supplicant.conf on the root of your
> SD card. If I remember correctly it even routes between the networks. So
> you could basically use the BBB as a Ethernet to WLAN adapter.

Nice.

Thanks
Chris
___
users mailing list
users@rtems.org
http://lists.rtems.org/mailman/listinfo/users


Re: BeagleBone Black Networking (wifi and/or wired)

2019-06-07 Thread Christian Mauderer
On 07/06/2019 10:23, Chris Johns wrote:
> Hi,
> 
> I am looking for some information on doing either but I cannot find out what I
> need. I have run a few libbsd examples and some run and some crash. I am
> wondering if I need an device tree installed but I cannot find out which one 
> and
> from where.
> 
> Any hints would be most welcome.
> 
> Thanks
> Chris

Hello Chris,

for wired network, you should be able to add libbsd and start the
network similar like for all other boards.

Wireless is still some more effort. Note that you will need the
everything buildset of libbsd for that.

If you want you can have a look at the example application that I used
during the last GSoC projects:

https://gitlab.com/c-mauderer/rtems-bbb/tree/master/apps/wifi-sample

That application starts a wpa_supplicant. It expects a RT8188EU based
WLAN dongle. There should be a wpa_supplicant.conf on the root of your
SD card. If I remember correctly it even routes between the networks. So
you could basically use the BBB as a Ethernet to WLAN adapter.

Best regards

Christian
-- 

embedded brains GmbH
Herr Christian Mauderer
Dornierstr. 4
D-82178 Puchheim
Germany
email: christian.maude...@embedded-brains.de
Phone: +49-89-18 94 741 - 18
Fax:   +49-89-18 94 741 - 08
PGP: Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.
___
users mailing list
users@rtems.org
http://lists.rtems.org/mailman/listinfo/users

BeagleBone Black Networking (wifi and/or wired)

2019-06-07 Thread Chris Johns
Hi,

I am looking for some information on doing either but I cannot find out what I
need. I have run a few libbsd examples and some run and some crash. I am
wondering if I need an device tree installed but I cannot find out which one and
from where.

Any hints would be most welcome.

Thanks
Chris
___
users mailing list
users@rtems.org
http://lists.rtems.org/mailman/listinfo/users