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

Gedare Bloom gedare at rtems.org
Wed Jul 12 13:52:53 UTC 2017


On Tue, Jul 11, 2017 at 6:51 AM, Sichen Zhao <1473996754 at 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 beagle/simscripts
> ---
>  c/src/lib/libbsp/arm/beagle/README                 |   11 +
>  c/src/lib/libbsp/arm/beagle/simscripts/LICENSE     |    2 +
>  .../arm/beagle/simscripts/am335x-bone-common.dtsi  |  417 ++++++++
>  .../beagle/simscripts/am335x-boneblack-common.dtsi |  163 ++++
>  .../arm/beagle/simscripts/am335x-boneblack.dts     |   28 +
>  .../arm/beagle/simscripts/am33xx-clocks.dtsi       |  646 +++++++++++++
>  c/src/lib/libbsp/arm/beagle/simscripts/am33xx.dtsi | 1011 ++++++++++++++++++++
>  .../simscripts/dt-bindings/display/tda998x.h       |    7 +
>  .../arm/beagle/simscripts/dt-bindings/gpio/gpio.h  |   31 +
>  .../beagle/simscripts/dt-bindings/pinctrl/am33xx.h |   43 +
>  .../beagle/simscripts/dt-bindings/pinctrl/omap.h   |   90 ++
>  c/src/lib/libbsp/arm/beagle/simscripts/sdcard.sh   |   10 +-
>  .../lib/libbsp/arm/beagle/simscripts/tps65217.dtsi |   68 ++
>  13 files changed, 2525 insertions(+), 2 deletions(-)
>  create mode 100644 c/src/lib/libbsp/arm/beagle/simscripts/LICENSE
>  create mode 100644 c/src/lib/libbsp/arm/beagle/simscripts/am335x-bone-common.dtsi
>  create mode 100644 c/src/lib/libbsp/arm/beagle/simscripts/am335x-boneblack-common.dtsi
>  create mode 100644 c/src/lib/libbsp/arm/beagle/simscripts/am335x-boneblack.dts
>  create mode 100644 c/src/lib/libbsp/arm/beagle/simscripts/am33xx-clocks.dtsi
>  create mode 100644 c/src/lib/libbsp/arm/beagle/simscripts/am33xx.dtsi
>  create mode 100644 c/src/lib/libbsp/arm/beagle/simscripts/dt-bindings/display/tda998x.h
>  create mode 100644 c/src/lib/libbsp/arm/beagle/simscripts/dt-bindings/gpio/gpio.h
>  create mode 100644 c/src/lib/libbsp/arm/beagle/simscripts/dt-bindings/pinctrl/am33xx.h
>  create mode 100644 c/src/lib/libbsp/arm/beagle/simscripts/dt-bindings/pinctrl/omap.h
>  create mode 100644 c/src/lib/libbsp/arm/beagle/simscripts/tps65217.dtsi
>
> diff --git a/c/src/lib/libbsp/arm/beagle/README b/c/src/lib/libbsp/arm/beagle/README
> index e558287..2ed9393 100644
> --- a/c/src/lib/libbsp/arm/beagle/README
> +++ b/c/src/lib/libbsp/arm/beagle/README
> @@ -93,6 +93,17 @@ uboot# bootm 0x80800000
>  There is a script here that automatically writes an SD card for any of
>  the beagle targets.
>
> +Before using the script, you need DTC(device tree compiler) tool to
> +compile dts to dtb file. So you need add this tool in RSB bset file.
> +
> +These dts and dtsi files are licensed under the terms of the GNU
> +General Public License * version 2.
> +
> +For example, to add dtc tool in rtems-arm.bset, you need include
> +dtc.bset in rtems-arm.bset.
> +
> +%include devel/dtc.bset
> +
>  Let's write one for the Beaglebone Black. Assuming your source tree is
>  at $HOME/development/rtems/rtems-src and your bsp is built and linked
>  with examples and installed at $HOME/development/rtems/4.11.
> diff --git a/c/src/lib/libbsp/arm/beagle/simscripts/LICENSE b/c/src/lib/libbsp/arm/beagle/simscripts/LICENSE
> new file mode 100644
> index 0000000..587a3dd
> --- /dev/null
> +++ b/c/src/lib/libbsp/arm/beagle/simscripts/LICENSE
> @@ -0,0 +1,2 @@
> +These files are imported from FreeBSD.
> +These files is licensed under the terms of the GNU General Public License * version 2.

We should not pollute the RTEMS sources with GPL2 code. Is there an
alternative approach to use?



More information about the devel mailing list