armadeus-commitlog Mailing List for armadeus (Page 27)
Brought to you by:
sszy
You can subscribe to this list here.
| 2006 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(1) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2007 |
Jan
(43) |
Feb
(8) |
Mar
(7) |
Apr
(8) |
May
(14) |
Jun
(6) |
Jul
(4) |
Aug
(17) |
Sep
(18) |
Oct
(19) |
Nov
(52) |
Dec
(30) |
| 2008 |
Jan
(6) |
Feb
(6) |
Mar
(15) |
Apr
(22) |
May
(13) |
Jun
(11) |
Jul
(41) |
Aug
(10) |
Sep
(14) |
Oct
(21) |
Nov
(4) |
Dec
(66) |
| 2009 |
Jan
(67) |
Feb
(57) |
Mar
(90) |
Apr
(54) |
May
(64) |
Jun
(76) |
Jul
(14) |
Aug
(18) |
Sep
(18) |
Oct
(20) |
Nov
(15) |
Dec
(36) |
| 2010 |
Jan
(28) |
Feb
(25) |
Mar
(32) |
Apr
(23) |
May
(22) |
Jun
(62) |
Jul
(36) |
Aug
(16) |
Sep
(12) |
Oct
(20) |
Nov
(44) |
Dec
(25) |
| 2011 |
Jan
(36) |
Feb
(49) |
Mar
(28) |
Apr
(38) |
May
(26) |
Jun
(52) |
Jul
(33) |
Aug
(32) |
Sep
(19) |
Oct
(26) |
Nov
(13) |
Dec
(32) |
| 2012 |
Jan
(38) |
Feb
(34) |
Mar
(91) |
Apr
(35) |
May
(31) |
Jun
(72) |
Jul
(23) |
Aug
(13) |
Sep
(33) |
Oct
(47) |
Nov
(18) |
Dec
(22) |
| 2013 |
Jan
(31) |
Feb
(22) |
Mar
(26) |
Apr
(11) |
May
(38) |
Jun
(15) |
Jul
(37) |
Aug
(68) |
Sep
(34) |
Oct
(11) |
Nov
(26) |
Dec
(31) |
| 2014 |
Jan
(60) |
Feb
(55) |
Mar
(21) |
Apr
(31) |
May
(17) |
Jun
(35) |
Jul
(24) |
Aug
(17) |
Sep
(11) |
Oct
(23) |
Nov
(10) |
Dec
(23) |
| 2015 |
Jan
(15) |
Feb
(34) |
Mar
(46) |
Apr
(23) |
May
(12) |
Jun
(14) |
Jul
(18) |
Aug
(22) |
Sep
(6) |
Oct
(2) |
Nov
(1) |
Dec
(6) |
| 2016 |
Jan
(5) |
Feb
(7) |
Mar
(10) |
Apr
(10) |
May
(17) |
Jun
(6) |
Jul
(4) |
Aug
(6) |
Sep
(22) |
Oct
(8) |
Nov
(9) |
Dec
(5) |
| 2017 |
Jan
(11) |
Feb
(12) |
Mar
(27) |
Apr
(9) |
May
(1) |
Jun
(5) |
Jul
(11) |
Aug
(10) |
Sep
(6) |
Oct
(10) |
Nov
(4) |
Dec
(6) |
| 2018 |
Jan
(6) |
Feb
(13) |
Mar
(9) |
Apr
(7) |
May
(10) |
Jun
(9) |
Jul
(21) |
Aug
(13) |
Sep
(10) |
Oct
(4) |
Nov
(6) |
Dec
(1) |
| 2019 |
Jan
(6) |
Feb
(2) |
Mar
(5) |
Apr
(6) |
May
(19) |
Jun
(14) |
Jul
(18) |
Aug
(3) |
Sep
(5) |
Oct
(7) |
Nov
(8) |
Dec
(4) |
| 2020 |
Jan
(10) |
Feb
(3) |
Mar
(9) |
Apr
(7) |
May
(2) |
Jun
(18) |
Jul
(3) |
Aug
|
Sep
|
Oct
(7) |
Nov
|
Dec
(1) |
| 2021 |
Jan
(9) |
Feb
(6) |
Mar
(4) |
Apr
(11) |
May
(7) |
Jun
(5) |
Jul
(2) |
Aug
(4) |
Sep
(10) |
Oct
(9) |
Nov
(5) |
Dec
|
| 2022 |
Jan
(2) |
Feb
(12) |
Mar
(3) |
Apr
(5) |
May
(1) |
Jun
(3) |
Jul
(2) |
Aug
(1) |
Sep
(4) |
Oct
(4) |
Nov
(1) |
Dec
(3) |
| 2023 |
Jan
(5) |
Feb
(3) |
Mar
(3) |
Apr
(2) |
May
(1) |
Jun
(3) |
Jul
(3) |
Aug
(2) |
Sep
(1) |
Oct
(1) |
Nov
|
Dec
(4) |
| 2024 |
Jan
(2) |
Feb
(3) |
Mar
(8) |
Apr
(4) |
May
(1) |
Jun
(13) |
Jul
(7) |
Aug
(1) |
Sep
(6) |
Oct
(5) |
Nov
(11) |
Dec
(7) |
| 2025 |
Jan
(3) |
Feb
(1) |
Mar
(6) |
Apr
(4) |
May
(4) |
Jun
(1) |
Jul
(1) |
Aug
(7) |
Sep
(4) |
Oct
(4) |
Nov
(4) |
Dec
(1) |
| 2026 |
Jan
(3) |
Feb
(7) |
Mar
(3) |
Apr
(1) |
May
(6) |
Jun
(3) |
Jul
(1) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: Sébastien S. <ss...@us...> - 2017-01-04 15:12:48
|
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "armadeus".
The branch, buildroot-update has been updated
via e92343e5e2ae295c0e3fc2ffb1b19fd07288b571 (commit)
from 060b35187a35e9806a81e0c4f5a7c6ce7c7235f5 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit e92343e5e2ae295c0e3fc2ffb1b19fd07288b571
Author: Sébastien Szymanski <seb...@ar...>
Date: Wed Jan 4 16:14:14 2017 +0100
[LINUX] 4.8: opos6uldev: select CONFIG_CFG80211_WEXT
This option is needed to make iwconfig command work.
-----------------------------------------------------------------------
Summary of changes:
.../armadeus/opos6ul/opos6ul-linux-4.8.config | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/buildroot/target/device/armadeus/opos6ul/opos6ul-linux-4.8.config b/buildroot/target/device/armadeus/opos6ul/opos6ul-linux-4.8.config
index 6678f96..092c535 100644
--- a/buildroot/target/device/armadeus/opos6ul/opos6ul-linux-4.8.config
+++ b/buildroot/target/device/armadeus/opos6ul/opos6ul-linux-4.8.config
@@ -58,6 +58,7 @@ CONFIG_BT_HCIUART=y
CONFIG_BT_HCIUART_H4=y
CONFIG_BT_HCIUART_LL=y
CONFIG_CFG80211=y
+CONFIG_CFG80211_WEXT=y
CONFIG_MAC80211=y
CONFIG_RFKILL=y
CONFIG_RFKILL_INPUT=y
hooks/post-receive
--
armadeus
|
|
From: Julien B a. A. <ar...@us...> - 2016-12-29 16:16:10
|
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "armadeus".
The branch, buildroot-update has been updated
via 060b35187a35e9806a81e0c4f5a7c6ce7c7235f5 (commit)
from fa87f70035b3a704b4b484c9139ed2505c046261 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 060b35187a35e9806a81e0c4f5a7c6ce7c7235f5
Author: Julien BOIBESSOT <jul...@ar...>
Date: Thu Dec 29 17:15:39 2016 +0100
[LINUX] 4.8: opos6uldev: add 1-wire (bitbanging) support on GPIO5_IO01 (RPi2 connector pin 40)
-----------------------------------------------------------------------
Summary of changes:
...pos6ul-and-opos6uldev-add-initial-support.patch | 17 +++++++++++++++--
1 files changed, 15 insertions(+), 2 deletions(-)
diff --git a/patches/linux/4.8/0800-ARM-dts-opos6ul-and-opos6uldev-add-initial-support.patch b/patches/linux/4.8/0800-ARM-dts-opos6ul-and-opos6uldev-add-initial-support.patch
index 6b292d1..24e95c1 100644
--- a/patches/linux/4.8/0800-ARM-dts-opos6ul-and-opos6uldev-add-initial-support.patch
+++ b/patches/linux/4.8/0800-ARM-dts-opos6ul-and-opos6uldev-add-initial-support.patch
@@ -229,7 +229,7 @@ Index: linux-4.8.10/arch/arm/boot/dts/imx6ul-opos6uldev.dts
===================================================================
--- /dev/null
+++ linux-4.8.10/arch/arm/boot/dts/imx6ul-opos6uldev.dts
-@@ -0,0 +1,403 @@
+@@ -0,0 +1,416 @@
+/*
+ * Copyright 2016 Armadeus Systems <su...@ar...>
+ *
@@ -321,6 +321,14 @@ Index: linux-4.8.10/arch/arm/boot/dts/imx6ul-opos6uldev.dts
+ };
+ };
+
++ onewire {
++ compatible = "w1-gpio";
++ pinctrl-names = "default";
++ pinctrl-0 = <&pinctrl_w1>;
++ status = "okay";
++ gpios = <&gpio5 1 0>;
++ };
++
+ reg_5v: regulator-5v {
+ compatible = "regulator-fixed";
+ regulator-name = "5V";
@@ -528,7 +536,6 @@ Index: linux-4.8.10/arch/arm/boot/dts/imx6ul-opos6uldev.dts
+ MX6UL_PAD_UART1_RTS_B__GPIO1_IO19 0x0b0b0
+ MX6UL_PAD_NAND_WE_B__GPIO4_IO01 0x0b0b0
+ MX6UL_PAD_SNVS_TAMPER0__GPIO5_IO00 0x0b0b0
-+ MX6UL_PAD_SNVS_TAMPER1__GPIO5_IO01 0x0b0b0
+ MX6UL_PAD_SNVS_TAMPER2__GPIO5_IO02 0x0b0b0
+ MX6UL_PAD_SNVS_TAMPER3__GPIO5_IO03 0x0b0b0
+ MX6UL_PAD_SNVS_TAMPER4__GPIO5_IO04 0x0b0b0
@@ -539,6 +546,12 @@ Index: linux-4.8.10/arch/arm/boot/dts/imx6ul-opos6uldev.dts
+ >;
+ };
+
++ pinctrl_w1: w1grp {
++ fsl,pins = <
++ MX6UL_PAD_SNVS_TAMPER1__GPIO5_IO01 0x0b0b0
++ >;
++ };
++
+ pinctrl_gpio_keys: gpio_keysgrp {
+ fsl,pins = <
+ MX6UL_PAD_ENET2_TX_DATA0__GPIO2_IO11 0x0b0b0
hooks/post-receive
--
armadeus
|
|
From: Julien B a. A. <ar...@us...> - 2016-12-23 16:08:26
|
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "armadeus".
The branch, buildroot-update has been updated
via fa87f70035b3a704b4b484c9139ed2505c046261 (commit)
via a702a78cbff82031bfc97eeb5d5c6dd56c5ff584 (commit)
from e68b904e463c4d31b65f0b59a79c567861766411 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit fa87f70035b3a704b4b484c9139ed2505c046261
Author: Julien BOIBESSOT <jul...@ar...>
Date: Fri Dec 23 17:07:50 2016 +0100
[TEST] Add OPOS6UL support to test_backlight.sh
commit a702a78cbff82031bfc97eeb5d5c6dd56c5ff584
Author: Julien BOIBESSOT <jul...@ar...>
Date: Fri Dec 23 17:06:47 2016 +0100
[LINUX] 4.8: opos6ul: rename LCD's backlight to be more /sys/ coherent
-----------------------------------------------------------------------
Summary of changes:
...pos6ul-and-opos6uldev-add-initial-support.patch | 2 +-
target/test/test_backlight.sh | 15 ++++++++++++++-
target/test/test_helpers.sh | 2 ++
3 files changed, 17 insertions(+), 2 deletions(-)
diff --git a/patches/linux/4.8/0800-ARM-dts-opos6ul-and-opos6uldev-add-initial-support.patch b/patches/linux/4.8/0800-ARM-dts-opos6ul-and-opos6uldev-add-initial-support.patch
index af76ec4..6b292d1 100644
--- a/patches/linux/4.8/0800-ARM-dts-opos6ul-and-opos6uldev-add-initial-support.patch
+++ b/patches/linux/4.8/0800-ARM-dts-opos6ul-and-opos6uldev-add-initial-support.patch
@@ -288,7 +288,7 @@ Index: linux-4.8.10/arch/arm/boot/dts/imx6ul-opos6uldev.dts
+ stdout-path = &uart1;
+ };
+
-+ backlight {
++ lcd {
+ compatible = "pwm-backlight";
+ pwms = <&pwm3 0 191000>;
+ brightness-levels = <0 4 8 16 32 64 128 255>;
diff --git a/target/test/test_backlight.sh b/target/test/test_backlight.sh
index a353e08..70553a5 100755
--- a/target/test/test_backlight.sh
+++ b/target/test/test_backlight.sh
@@ -3,7 +3,7 @@
#
# Script to test Armadeus Software release
#
-# Copyright (C) 2008-2015 The Armadeus Project - Armadeus Systems
+# Copyright (C) 2008-2016 The Armadeus Project - Armadeus Systems
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -47,6 +47,13 @@ load_driver()
max_bright=0 # inverted polarity
LOOP=`seq 1 1 8`
LOOP_DELAY=500000
+ elif [ "$1" == "OPOS6UL" ]; then
+ SYS_DIR=/sys/class/backlight/lcd/
+ min_bright=0
+ mid_bright=4
+ max_bright=7
+ LOOP=`seq 1 1 8`
+ LOOP_DELAY=500000
else
echo "Platform not supported by this test"
exit 0
@@ -70,6 +77,12 @@ test_backlight()
exit_failed
fi
fi
+
+ if [ ! -d $SYS_DIR ]; then
+ echo "$SYS_DIR doesn't exist... exiting."
+ exit 1
+ fi
+
current=`cat $SYS_DIR/actual_brightness`
if [ "$max_bright" == "" ]; then
max_bright=`cat $SYS_DIR/max_brightness`
diff --git a/target/test/test_helpers.sh b/target/test/test_helpers.sh
index d40494f..ff73b32 100755
--- a/target/test/test_helpers.sh
+++ b/target/test/test_helpers.sh
@@ -175,6 +175,8 @@ execute_for_target()
$1 $BOARD $2
elif [ "$BOARD" == "APF6" ]; then
$1 $BOARD $2
+ elif [ "$BOARD" == "OPOS6UL" ]; then
+ $1 $BOARD $2
fi
fi
}
hooks/post-receive
--
armadeus
|
|
From: Julien B a. A. <ar...@us...> - 2016-12-15 15:58:01
|
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "armadeus".
The branch, buildroot-update has been updated
via e68b904e463c4d31b65f0b59a79c567861766411 (commit)
from 1dbe78264c658eee490d0992e2bc997b103b88be (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit e68b904e463c4d31b65f0b59a79c567861766411
Author: Julien BOIBESSOT <jul...@ar...>
Date: Thu Dec 15 16:57:16 2016 +0100
[LINUX] 4.8: opos6ul: makes LCD backlight drived by PWM instead of 2 state GPIO
-----------------------------------------------------------------------
Summary of changes:
...pos6ul-and-opos6uldev-add-initial-support.patch | 37 ++++++++++++--------
1 files changed, 22 insertions(+), 15 deletions(-)
diff --git a/patches/linux/4.8/0800-ARM-dts-opos6ul-and-opos6uldev-add-initial-support.patch b/patches/linux/4.8/0800-ARM-dts-opos6ul-and-opos6uldev-add-initial-support.patch
index 70bf7a5..af76ec4 100644
--- a/patches/linux/4.8/0800-ARM-dts-opos6ul-and-opos6uldev-add-initial-support.patch
+++ b/patches/linux/4.8/0800-ARM-dts-opos6ul-and-opos6uldev-add-initial-support.patch
@@ -16,10 +16,10 @@ Signed-off-by: Sébastien Szymanski <seb...@ar...>
create mode 100644 arch/arm/boot/dts/imx6ul-opos6ul.dtsi
create mode 100644 arch/arm/boot/dts/imx6ul-opos6uldev.dts
-Index: linux-4.8.4/arch/arm/boot/dts/Makefile
+Index: linux-4.8.10/arch/arm/boot/dts/Makefile
===================================================================
---- linux-4.8.4.orig/arch/arm/boot/dts/Makefile
-+++ linux-4.8.4/arch/arm/boot/dts/Makefile
+--- linux-4.8.10.orig/arch/arm/boot/dts/Makefile
++++ linux-4.8.10/arch/arm/boot/dts/Makefile
@@ -407,6 +407,7 @@ dtb-$(CONFIG_SOC_IMX6SX) += \
imx6sx-sdb.dtb
dtb-$(CONFIG_SOC_IMX6UL) += \
@@ -28,10 +28,10 @@ Index: linux-4.8.4/arch/arm/boot/dts/Makefile
imx6ul-pico-hobbit.dtb \
imx6ul-tx6ul-0010.dtb \
imx6ul-tx6ul-0011.dtb \
-Index: linux-4.8.4/arch/arm/boot/dts/imx6ul-opos6ul.dtsi
+Index: linux-4.8.10/arch/arm/boot/dts/imx6ul-opos6ul.dtsi
===================================================================
--- /dev/null
-+++ linux-4.8.4/arch/arm/boot/dts/imx6ul-opos6ul.dtsi
++++ linux-4.8.10/arch/arm/boot/dts/imx6ul-opos6ul.dtsi
@@ -0,0 +1,192 @@
+/*
+ * Copyright 2016 Armadeus Systems <su...@ar...>
@@ -225,11 +225,11 @@ Index: linux-4.8.4/arch/arm/boot/dts/imx6ul-opos6ul.dtsi
+ >;
+ };
+};
-Index: linux-4.8.4/arch/arm/boot/dts/imx6ul-opos6uldev.dts
+Index: linux-4.8.10/arch/arm/boot/dts/imx6ul-opos6uldev.dts
===================================================================
--- /dev/null
-+++ linux-4.8.4/arch/arm/boot/dts/imx6ul-opos6uldev.dts
-@@ -0,0 +1,396 @@
++++ linux-4.8.10/arch/arm/boot/dts/imx6ul-opos6uldev.dts
+@@ -0,0 +1,403 @@
+/*
+ * Copyright 2016 Armadeus Systems <su...@ar...>
+ *
@@ -289,11 +289,11 @@ Index: linux-4.8.4/arch/arm/boot/dts/imx6ul-opos6uldev.dts
+ };
+
+ backlight {
-+ compatible = "gpio-backlight";
-+ pinctrl-names = "default";
-+ pinctrl-0 = <&pinctrl_backlight>;
-+ gpios = <&gpio4 10 GPIO_ACTIVE_HIGH>;
-+ default-on;
++ compatible = "pwm-backlight";
++ pwms = <&pwm3 0 191000>;
++ brightness-levels = <0 4 8 16 32 64 128 255>;
++ default-brightness-level = <7>;
++ status = "okay";
+ };
+
+ gpio-keys {
@@ -351,6 +351,12 @@ Index: linux-4.8.4/arch/arm/boot/dts/imx6ul-opos6uldev.dts
+ };
+};
+
++&pwm3 {
++ pinctrl-names = "default";
++ pinctrl-0 = <&pinctrl_pwm3>;
++ status = "okay";
++};
++
+&adc1 {
+ vref-supply = <®_3v3>;
+ status = "okay";
@@ -480,9 +486,10 @@ Index: linux-4.8.4/arch/arm/boot/dts/imx6ul-opos6uldev.dts
+ pinctrl-names = "default";
+ pinctrl-0 = <&pinctrl_gpios>;
+
-+ pinctrl_backlight: backlightgrp {
++
++ pinctrl_pwm3: pwm3grp {
+ fsl,pins = <
-+ MX6UL_PAD_NAND_ALE__GPIO4_IO10 0x1b0b0
++ MX6UL_PAD_NAND_ALE__PWM3_OUT 0x1b0b0
+ >;
+ };
+
hooks/post-receive
--
armadeus
|
|
From: Julien B a. A. <ar...@us...> - 2016-12-15 15:35:47
|
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "armadeus".
The branch, buildroot-update has been updated
via 1dbe78264c658eee490d0992e2bc997b103b88be (commit)
from aec5dcd295ea00244db41343aaadd9182bb894a3 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 1dbe78264c658eee490d0992e2bc997b103b88be
Author: Julien BOIBESSOT <jul...@ar...>
Date: Thu Dec 15 16:35:28 2016 +0100
[LINUX] 4.8: add mcp7940x RTC driver (from 4.4)
-----------------------------------------------------------------------
Summary of changes:
.../0505-armadeus-add_mcp7940x_rtc_driver.patch | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
create mode 120000 patches/linux/4.8/0505-armadeus-add_mcp7940x_rtc_driver.patch
diff --git a/patches/linux/4.8/0505-armadeus-add_mcp7940x_rtc_driver.patch b/patches/linux/4.8/0505-armadeus-add_mcp7940x_rtc_driver.patch
new file mode 120000
index 0000000..4b419e8
--- /dev/null
+++ b/patches/linux/4.8/0505-armadeus-add_mcp7940x_rtc_driver.patch
@@ -0,0 +1 @@
+../4.4/0505-armadeus-add_mcp7940x_rtc_driver.patch
\ No newline at end of file
hooks/post-receive
--
armadeus
|
|
From: Julien B a. A. <ar...@us...> - 2016-12-15 15:23:35
|
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "armadeus".
The branch, buildroot-update has been updated
via aec5dcd295ea00244db41343aaadd9182bb894a3 (commit)
from fcc11a399b21c7d882f24db86f24b7c0ff621ec0 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit aec5dcd295ea00244db41343aaadd9182bb894a3
Author: Julien BOIBESSOT <jul...@ar...>
Date: Thu Dec 15 16:23:13 2016 +0100
[LINUX] 4.8: add device tree support to si7020 (temp+humidity sensor)
-----------------------------------------------------------------------
Summary of changes:
...d-devicetree-support-and-trivial-bindings.patch | 48 ++++++++++++++++++++
1 files changed, 48 insertions(+), 0 deletions(-)
create mode 100644 patches/linux/4.8/0802-mainline-iio-si7020-add-devicetree-support-and-trivial-bindings.patch
diff --git a/patches/linux/4.8/0802-mainline-iio-si7020-add-devicetree-support-and-trivial-bindings.patch b/patches/linux/4.8/0802-mainline-iio-si7020-add-devicetree-support-and-trivial-bindings.patch
new file mode 100644
index 0000000..2d6d899
--- /dev/null
+++ b/patches/linux/4.8/0802-mainline-iio-si7020-add-devicetree-support-and-trivial-bindings.patch
@@ -0,0 +1,48 @@
+This adds devicetree support for the si7020 iio driver. Since it works
+well without requiring any additional property, its compatible string is
+added to the trivial i2c devices bindings list.
+
+Signed-off-by: Paul Kocialkowski <contact@xxxxxxxx>
+---
+ Documentation/devicetree/bindings/i2c/trivial-devices.txt | 1 +
+ drivers/iio/humidity/si7020.c | 11 ++++++++++-
+ 2 files changed, 11 insertions(+), 1 deletion(-)
+
+diff --git a/Documentation/devicetree/bindings/i2c/trivial-devices.txt b/Documentation/devicetree/bindings/i2c/trivial-devices.txt
+index 5c70ce9..6afba26 100644
+--- a/Documentation/devicetree/bindings/i2c/trivial-devices.txt
++++ b/Documentation/devicetree/bindings/i2c/trivial-devices.txt
+@@ -145,6 +145,7 @@ ricoh,rv5c387a I2C bus SERIAL INTERFACE REAL-TIME CLOCK IC
+ samsung,24ad0xd1 S524AD0XF1 (128K/256K-bit Serial EEPROM for Low Power)
+ sgx,vz89x SGX Sensortech VZ89X Sensors
+ sii,s35390a 2-wire CMOS real-time clock
++silabs,si7020 Relative Humidity and Temperature Sensors
+ skyworks,sky81452 Skyworks SKY81452: Six-Channel White LED Driver with Touch Panel Bias Supply
+ st,24c256 i2c serial eeprom (24cxx)
+ st,m41t00 Serial real-time clock (RTC)
+diff --git a/drivers/iio/humidity/si7020.c b/drivers/iio/humidity/si7020.c
+index ffc2ccf..345a765 100644
+--- a/drivers/iio/humidity/si7020.c
++++ b/drivers/iio/humidity/si7020.c
+@@ -154,8 +154,17 @@ static const struct i2c_device_id si7020_id[] = {
+ };
+ MODULE_DEVICE_TABLE(i2c, si7020_id);
+
++static const struct of_device_id si7020_dt_ids[] = {
++ { .compatible = "silabs,si7020" },
++ { }
++};
++MODULE_DEVICE_TABLE(of, si7020_dt_ids);
++
+ static struct i2c_driver si7020_driver = {
+- .driver.name = "si7020",
++ .driver = {
++ .name = "si7020",
++ .of_match_table = of_match_ptr(si7020_dt_ids),
++ },
+ .probe = si7020_probe,
+ .id_table = si7020_id,
+ };
+--
+2.10.0
+
hooks/post-receive
--
armadeus
|
|
From: Julien B a. A. <ar...@us...> - 2016-11-22 18:16:01
|
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "armadeus".
The branch, buildroot-update has been updated
via fcc11a399b21c7d882f24db86f24b7c0ff621ec0 (commit)
from 2fa4caa0ed550a4ab3521c8651557565cc3898c3 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit fcc11a399b21c7d882f24db86f24b7c0ff621ec0
Author: Julien BOIBESSOT <jul...@ar...>
Date: Tue Nov 22 19:08:46 2016 +0100
[BUILDROOT] opos6ul: add Python3 and some useful modules to default rootfs
-----------------------------------------------------------------------
Summary of changes:
buildroot/configs/opos6ul_defconfig | 15 +++++++++++++++
1 files changed, 15 insertions(+), 0 deletions(-)
diff --git a/buildroot/configs/opos6ul_defconfig b/buildroot/configs/opos6ul_defconfig
index 77dc6ac..1c48ad7 100644
--- a/buildroot/configs/opos6ul_defconfig
+++ b/buildroot/configs/opos6ul_defconfig
@@ -62,6 +62,21 @@ BR2_PACKAGE_I2C_TOOLS=y
BR2_PACKAGE_KBD=y
BR2_PACKAGE_SPI_TOOLS=y
BR2_PACKAGE_UBOOT_TOOLS=y
+BR2_PACKAGE_PYTHON3=y
+BR2_PACKAGE_PYTHON3_CURSES=y
+BR2_PACKAGE_PYTHON3_DECIMAL=y
+BR2_PACKAGE_PYTHON3_READLINE=y
+BR2_PACKAGE_PYTHON3_SSL=y
+BR2_PACKAGE_PYTHON3_SQLITE=y
+BR2_PACKAGE_PYTHON3_PYEXPAT=y
+BR2_PACKAGE_PYTHON3_ZLIB=y
+BR2_PACKAGE_PYTHON_CAN=y
+BR2_PACKAGE_PYTHON_NUMPY=y
+BR2_PACKAGE_PYTHON_PAHO_MQTT=y
+BR2_PACKAGE_PYTHON_PYCLI=y
+BR2_PACKAGE_PYTHON_SERIAL=y
+BR2_PACKAGE_PYTHON_SMBUS_CFFI=y
+BR2_PACKAGE_PYTHON_SPIDEV=y
BR2_PACKAGE_LIBVORBIS=y
BR2_PACKAGE_LIBUSB=y
BR2_PACKAGE_LIBV4L=y
hooks/post-receive
--
armadeus
|
|
From: Sébastien S. <ss...@us...> - 2016-11-21 13:12:36
|
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "armadeus".
The branch, buildroot-update has been updated
via 2fa4caa0ed550a4ab3521c8651557565cc3898c3 (commit)
via 2fd315f8828d7548337296d900f0eb2fbef9fadb (commit)
from 1d53afe97730d7d9be4d9ae27ea8cbb8ea9f1d3b (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 2fa4caa0ed550a4ab3521c8651557565cc3898c3
Author: Sébastien Szymanski <seb...@ar...>
Date: Mon Nov 21 14:12:07 2016 +0100
[LINUX] opos6ul: backport mainline patch to fix fb corruption
commit 2fd315f8828d7548337296d900f0eb2fbef9fadb
Author: Sébastien Szymanski <seb...@ar...>
Date: Mon Nov 21 14:11:40 2016 +0100
[LINUX] opos6ul and opos6ul_recovery: bump to 4.8.10
-----------------------------------------------------------------------
Summary of changes:
buildroot/configs/opos6ul_defconfig | 2 +-
buildroot/configs/opos6ul_recovery_defconfig | 2 +-
...ux-4.8.9.config => opos6ul-linux-4.8.10.config} | 0
patches/linux/{4.8.9 => 4.8.10} | 0
...mxsfb-Fix-framebuffer-corruption-on-mx6sx.patch | 62 ++++++++++++++++++++
5 files changed, 64 insertions(+), 2 deletions(-)
rename buildroot/target/device/armadeus/opos6ul/{opos6ul-linux-4.8.9.config => opos6ul-linux-4.8.10.config} (100%)
rename patches/linux/{4.8.9 => 4.8.10} (100%)
create mode 100644 patches/linux/4.8/0801-video-mxsfb-Fix-framebuffer-corruption-on-mx6sx.patch
diff --git a/buildroot/configs/opos6ul_defconfig b/buildroot/configs/opos6ul_defconfig
index c799aa5..77dc6ac 100644
--- a/buildroot/configs/opos6ul_defconfig
+++ b/buildroot/configs/opos6ul_defconfig
@@ -23,7 +23,7 @@ BR2_CPU_NAME="imx6ul"
BR2_TARGET_ARMADEUS_SDRAM_SIZE="256"
BR2_LINUX_KERNEL=y
BR2_LINUX_KERNEL_CUSTOM_VERSION=y
-BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="4.8.9"
+BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="4.8.10"
BR2_LINUX_KERNEL_PATCH="../patches/linux/$(BR2_LINUX_KERNEL_VERSION)"
BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y
BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="$(BR2_BOARD_PATH)/$(BR2_BOARD_NAME)-linux-$(BR2_LINUX_KERNEL_VERSION).config"
diff --git a/buildroot/configs/opos6ul_recovery_defconfig b/buildroot/configs/opos6ul_recovery_defconfig
index 160c9c5..6235067 100644
--- a/buildroot/configs/opos6ul_recovery_defconfig
+++ b/buildroot/configs/opos6ul_recovery_defconfig
@@ -23,7 +23,7 @@ BR2_CPU_NAME="imx6ul"
BR2_TARGET_ARMADEUS_SDRAM_SIZE="256"
BR2_LINUX_KERNEL=y
BR2_LINUX_KERNEL_CUSTOM_VERSION=y
-BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="4.8.9"
+BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="4.8.10"
BR2_LINUX_KERNEL_PATCH="../patches/linux/$(BR2_LINUX_KERNEL_VERSION)"
BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y
BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="$(BR2_BOARD_PATH)/$(BR2_BOARD_NAME)-linux-$(BR2_LINUX_KERNEL_VERSION).config"
diff --git a/buildroot/target/device/armadeus/opos6ul/opos6ul-linux-4.8.9.config b/buildroot/target/device/armadeus/opos6ul/opos6ul-linux-4.8.10.config
similarity index 100%
rename from buildroot/target/device/armadeus/opos6ul/opos6ul-linux-4.8.9.config
rename to buildroot/target/device/armadeus/opos6ul/opos6ul-linux-4.8.10.config
diff --git a/patches/linux/4.8.9 b/patches/linux/4.8.10
similarity index 100%
rename from patches/linux/4.8.9
rename to patches/linux/4.8.10
diff --git a/patches/linux/4.8/0801-video-mxsfb-Fix-framebuffer-corruption-on-mx6sx.patch b/patches/linux/4.8/0801-video-mxsfb-Fix-framebuffer-corruption-on-mx6sx.patch
new file mode 100644
index 0000000..7d2f9a3
--- /dev/null
+++ b/patches/linux/4.8/0801-video-mxsfb-Fix-framebuffer-corruption-on-mx6sx.patch
@@ -0,0 +1,62 @@
+From 03577d6a0beff2aded55d4ae40d1058905233536 Mon Sep 17 00:00:00 2001
+From: Marek Vasut <ma...@de...>
+Date: Fri, 26 Aug 2016 17:53:35 +0200
+Subject: [PATCH] video: mxsfb: Fix framebuffer corruption on mx6sx
+
+Allocate the framebuffer memory as coherent, otherwise the framebuffer
+will suffer from artifacts when displaying scrolling text or video.
+This can be replicated on i.MX6SX (armv7), which has more complex memory
+architecture compared to the i.MX23/28 (armv5).
+
+Signed-off-by: Marek Vasut <ma...@de...>
+Cc: Tomi Valkeinen <tom...@ti...>
+Cc: Fabio Estevam <fab...@nx...>
+Cc: Lucas Stach <l....@pe...>
+Cc: Shawn Guo <sha...@ke...>
+Signed-off-by: Tomi Valkeinen <tom...@ti...>
+---
+ drivers/video/fbdev/mxsfb.c | 9 +++++----
+ 1 file changed, 5 insertions(+), 4 deletions(-)
+
+diff --git a/drivers/video/fbdev/mxsfb.c b/drivers/video/fbdev/mxsfb.c
+index 4e6608c..7846f0e 100644
+--- a/drivers/video/fbdev/mxsfb.c
++++ b/drivers/video/fbdev/mxsfb.c
+@@ -800,6 +800,7 @@ static int mxsfb_init_fbinfo(struct mxsfb_info *host,
+ struct fb_videomode *vmode)
+ {
+ int ret;
++ struct device *dev = &host->pdev->dev;
+ struct fb_info *fb_info = &host->fb_info;
+ struct fb_var_screeninfo *var = &fb_info->var;
+ dma_addr_t fb_phys;
+@@ -825,12 +826,10 @@ static int mxsfb_init_fbinfo(struct mxsfb_info *host,
+
+ /* Memory allocation for framebuffer */
+ fb_size = SZ_2M;
+- fb_virt = alloc_pages_exact(fb_size, GFP_DMA);
++ fb_virt = dma_alloc_wc(dev, PAGE_ALIGN(fb_size), &fb_phys, GFP_KERNEL);
+ if (!fb_virt)
+ return -ENOMEM;
+
+- fb_phys = virt_to_phys(fb_virt);
+-
+ fb_info->fix.smem_start = fb_phys;
+ fb_info->screen_base = fb_virt;
+ fb_info->screen_size = fb_info->fix.smem_len = fb_size;
+@@ -843,9 +842,11 @@ static int mxsfb_init_fbinfo(struct mxsfb_info *host,
+
+ static void mxsfb_free_videomem(struct mxsfb_info *host)
+ {
++ struct device *dev = &host->pdev->dev;
+ struct fb_info *fb_info = &host->fb_info;
+
+- free_pages_exact(fb_info->screen_base, fb_info->fix.smem_len);
++ dma_free_wc(dev, fb_info->screen_size, fb_info->screen_base,
++ fb_info->fix.smem_start);
+ }
+
+ static const struct platform_device_id mxsfb_devtype[] = {
+--
+2.3.6
+
hooks/post-receive
--
armadeus
|
|
From: Sébastien S. <ss...@us...> - 2016-11-21 09:49:49
|
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "armadeus".
The branch, buildroot-update has been updated
via 1d53afe97730d7d9be4d9ae27ea8cbb8ea9f1d3b (commit)
via 8fbe0508297a3bd1cd57f83ee518b6964ab38eb8 (commit)
from 60e1cb3d98f105e6011a5524dc4d4a29a180c7d4 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 1d53afe97730d7d9be4d9ae27ea8cbb8ea9f1d3b
Author: Sébastien Szymanski <seb...@ar...>
Date: Mon Nov 21 10:51:15 2016 +0100
[BSP] opos6ul: don't create opos6ul-linux.bin -> zImage symlink
U-Boot doesn't like it... so rename zImage to opos6ul-linux.bin
commit 8fbe0508297a3bd1cd57f83ee518b6964ab38eb8
Author: Sébastien Szymanski <seb...@ar...>
Date: Mon Nov 21 09:59:59 2016 +0100
[LINUX] opos6ul and opos6ul_recovery: bump to 4.8.9
-----------------------------------------------------------------------
Summary of changes:
buildroot/configs/opos6ul_defconfig | 2 +-
buildroot/configs/opos6ul_recovery_defconfig | 2 +-
...nux-4.8.6.config => opos6ul-linux-4.8.9.config} | 0
.../target/device/armadeus/rootfs/post_build.sh | 8 +++++++-
patches/linux/{4.8.6 => 4.8.9} | 0
5 files changed, 9 insertions(+), 3 deletions(-)
rename buildroot/target/device/armadeus/opos6ul/{opos6ul-linux-4.8.6.config => opos6ul-linux-4.8.9.config} (100%)
rename patches/linux/{4.8.6 => 4.8.9} (100%)
diff --git a/buildroot/configs/opos6ul_defconfig b/buildroot/configs/opos6ul_defconfig
index 48c6d7b..c799aa5 100644
--- a/buildroot/configs/opos6ul_defconfig
+++ b/buildroot/configs/opos6ul_defconfig
@@ -23,7 +23,7 @@ BR2_CPU_NAME="imx6ul"
BR2_TARGET_ARMADEUS_SDRAM_SIZE="256"
BR2_LINUX_KERNEL=y
BR2_LINUX_KERNEL_CUSTOM_VERSION=y
-BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="4.8.6"
+BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="4.8.9"
BR2_LINUX_KERNEL_PATCH="../patches/linux/$(BR2_LINUX_KERNEL_VERSION)"
BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y
BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="$(BR2_BOARD_PATH)/$(BR2_BOARD_NAME)-linux-$(BR2_LINUX_KERNEL_VERSION).config"
diff --git a/buildroot/configs/opos6ul_recovery_defconfig b/buildroot/configs/opos6ul_recovery_defconfig
index dd94aef..160c9c5 100644
--- a/buildroot/configs/opos6ul_recovery_defconfig
+++ b/buildroot/configs/opos6ul_recovery_defconfig
@@ -23,7 +23,7 @@ BR2_CPU_NAME="imx6ul"
BR2_TARGET_ARMADEUS_SDRAM_SIZE="256"
BR2_LINUX_KERNEL=y
BR2_LINUX_KERNEL_CUSTOM_VERSION=y
-BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="4.8.6"
+BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="4.8.9"
BR2_LINUX_KERNEL_PATCH="../patches/linux/$(BR2_LINUX_KERNEL_VERSION)"
BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y
BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="$(BR2_BOARD_PATH)/$(BR2_BOARD_NAME)-linux-$(BR2_LINUX_KERNEL_VERSION).config"
diff --git a/buildroot/target/device/armadeus/opos6ul/opos6ul-linux-4.8.6.config b/buildroot/target/device/armadeus/opos6ul/opos6ul-linux-4.8.9.config
similarity index 100%
rename from buildroot/target/device/armadeus/opos6ul/opos6ul-linux-4.8.6.config
rename to buildroot/target/device/armadeus/opos6ul/opos6ul-linux-4.8.9.config
diff --git a/buildroot/target/device/armadeus/rootfs/post_build.sh b/buildroot/target/device/armadeus/rootfs/post_build.sh
index c59a811..ed0a392 100755
--- a/buildroot/target/device/armadeus/rootfs/post_build.sh
+++ b/buildroot/target/device/armadeus/rootfs/post_build.sh
@@ -21,7 +21,13 @@ symlink_image()
mkdir -p $1/boot
ln -sfn . $1/boot/dtbs # to keep compat with pre-6.0 APF6 U-Boots
symlink_image $1/boot uImage $2-linux.bin
-symlink_image $1/boot zImage $2-linux.bin
+if [ "$3" != "imx6ul" ]; then
+ symlink_image $1/boot zImage $2-linux.bin
+else
+ if [ -f "$1/boot/zImage" ]; then
+ mv $1/boot/zImage $1/boot/$2-linux.bin
+ fi
+fi
# Not using $2 because it can be changed for customers' BSP
if [ "$3" != "imxl" ]; then
diff --git a/patches/linux/4.8.6 b/patches/linux/4.8.9
similarity index 100%
rename from patches/linux/4.8.6
rename to patches/linux/4.8.9
hooks/post-receive
--
armadeus
|
|
From: Julien B a. A. <ar...@us...> - 2016-11-18 17:38:41
|
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "armadeus".
The branch, buildroot-update has been updated
via 60e1cb3d98f105e6011a5524dc4d4a29a180c7d4 (commit)
via 43623fd8862e41717c174dda7bb24fd77d85ea69 (commit)
from 448bb9d3d975f1f8f1b4d6b45e1d808db7601cbe (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 60e1cb3d98f105e6011a5524dc4d4a29a180c7d4
Author: Julien BOIBESSOT <jul...@ar...>
Date: Fri Nov 18 18:32:06 2016 +0100
[BUILDROOT] 2016.08: lora-forwarder: add possibility to choose server IP at runtime
commit 43623fd8862e41717c174dda7bb24fd77d85ea69
Author: Julien BOIBESSOT <jul...@ar...>
Date: Fri Nov 18 17:43:37 2016 +0100
[BUILDROOT] 030-lmic-pi-add-package.patch -> 030-armadeus-lmic-pi-add-package.patch
-----------------------------------------------------------------------
Summary of changes:
.../029-armadeus-lora-forwarder-add-package.patch | 81 +++++++++++++++++++-
...atch => 030-armadeus-lmic-pi-add-package.patch} | 0
patches/buildroot/2016.08/cleanup_buildroot.sh | 1 +
3 files changed, 81 insertions(+), 1 deletions(-)
rename patches/buildroot/2016.08/{030-lmic-pi-add-package.patch => 030-armadeus-lmic-pi-add-package.patch} (100%)
diff --git a/patches/buildroot/2016.08/029-armadeus-lora-forwarder-add-package.patch b/patches/buildroot/2016.08/029-armadeus-lora-forwarder-add-package.patch
index 65600eb..da18eaf 100644
--- a/patches/buildroot/2016.08/029-armadeus-lora-forwarder-add-package.patch
+++ b/patches/buildroot/2016.08/029-armadeus-lora-forwarder-add-package.patch
@@ -48,7 +48,7 @@ Index: buildroot/package/Config.in
===================================================================
--- buildroot.orig/package/Config.in
+++ buildroot/package/Config.in
-@@ -1524,6 +1524,7 @@ menu "Networking applications"
+@@ -1508,6 +1508,7 @@ menu "Networking applications"
source "package/linphone/Config.in"
source "package/linux-zigbee/Config.in"
source "package/lldpd/Config.in"
@@ -90,3 +90,82 @@ Index: buildroot/package/lora-forwarder/0001-fix-cross-compiling.patch
+- rm *.o single_chan_pkt_fwd
+\ Pas de fin de ligne à la fin du fichier
++ rm -f *.o single_chan_pkt_fwd
+Index: buildroot/package/lora-forwarder/0002-add-server-ip-runtime-option.patch
+===================================================================
+--- /dev/null
++++ buildroot/package/lora-forwarder/0002-add-server-ip-runtime-option.patch
+@@ -0,0 +1,74 @@
++Signed-off-by: Julien Boibessot <jul...@ar...>
++
++diff -urN lora-forwarder-a29921789bc5b63d6a7c51e46dd6314aca06b99e/main.cpp lora-forwarder-a29921789bc5b63d6a7c51e46dd6314aca06b99e.mod2/main.cpp
++--- lora-forwarder-a29921789bc5b63d6a7c51e46dd6314aca06b99e/main.cpp 2016-01-06 12:06:08.000000000 +0100
+++++ lora-forwarder-a29921789bc5b63d6a7c51e46dd6314aca06b99e.mod2/main.cpp 2016-11-09 18:10:38.599323414 +0100
++@@ -88,6 +88,8 @@
++ #define SERVER1 "54.72.145.119" // The Things Network: croft.thethings.girovito.nl
++ //#define SERVER2 "192.168.1.10" // local
++ #define PORT 1700 // The port on which to send data
+++static char *server_ip = SERVER1;
+++static int server_port = PORT;
++
++ // #############################################
++ // #############################################
++@@ -317,7 +319,7 @@
++
++ //send the update
++ #ifdef SERVER1
++- inet_aton(SERVER1 , &si_other.sin_addr);
+++ inet_aton(server_ip, &si_other.sin_addr);
++ if (sendto(s, (char *)msg, length, 0 , (struct sockaddr *) &si_other, slen)==-1)
++ {
++ die("sendto()");
++@@ -325,7 +327,7 @@
++ #endif
++
++ #ifdef SERVER2
++- inet_aton(SERVER2 , &si_other.sin_addr);
+++ inet_aton(server_ip, &si_other.sin_addr);
++ if (sendto(s, (char *)msg, length , 0 , (struct sockaddr *) &si_other, slen)==-1)
++ {
++ die("sendto()");
++@@ -531,10 +533,31 @@
++ } // dio0=1
++ }
++
++-int main () {
+++#include <unistd.h>
+++int main (int argc, char *argv[])
+++{
++
++ struct timeval nowtime;
++ uint32_t lasttime;
+++ int option = -1;
+++
+++ while ((option = getopt (argc, argv, "i:p:")) != -1)
+++ {
+++ switch (option)
+++ {
+++ case 'i':
+++ server_ip = strdup(optarg);
+++ break;
+++ case 'p':
+++ server_port = atoi(strdup(optarg));
+++ break;
+++ default:
+++ fprintf(stderr, "Usage: %s [-i addr] [-p port]\n",
+++ argv[0]);
+++ exit(EXIT_FAILURE);
+++ break;
+++ }
+++ }
++
++ wiringPiSetup () ;
++ pinMode(ssPin, OUTPUT);
++@@ -553,7 +576,7 @@
++ }
++ memset((char *) &si_other, 0, sizeof(si_other));
++ si_other.sin_family = AF_INET;
++- si_other.sin_port = htons(PORT);
+++ si_other.sin_port = htons(server_port);
++
++ ifr.ifr_addr.sa_family = AF_INET;
++ strncpy(ifr.ifr_name, "eth0", IFNAMSIZ-1); // can we rely on eth0?
diff --git a/patches/buildroot/2016.08/030-lmic-pi-add-package.patch b/patches/buildroot/2016.08/030-armadeus-lmic-pi-add-package.patch
similarity index 100%
rename from patches/buildroot/2016.08/030-lmic-pi-add-package.patch
rename to patches/buildroot/2016.08/030-armadeus-lmic-pi-add-package.patch
diff --git a/patches/buildroot/2016.08/cleanup_buildroot.sh b/patches/buildroot/2016.08/cleanup_buildroot.sh
index d5ae4a7..8c0fef8 100755
--- a/patches/buildroot/2016.08/cleanup_buildroot.sh
+++ b/patches/buildroot/2016.08/cleanup_buildroot.sh
@@ -67,6 +67,7 @@ rm -rf buildroot/package/linux-headers/2.6.35.3/368-redhat-types_h-define-__alig
rm -rf buildroot/package/lmic-pi/Config.in
rm -rf buildroot/package/lmic-pi/lmic-pi.mk
rm -rf buildroot/package/lora-forwarder/0001-fix-cross-compiling.patch
+rm -rf buildroot/package/lora-forwarder/0002-add-server-ip-runtime-option.patch
rm -rf buildroot/package/lora-forwarder/Config.in
rm -rf buildroot/package/lora-forwarder/lora-forwarder.mk
rm -rf buildroot/package/ltrace/Config.in
hooks/post-receive
--
armadeus
|
|
From: Julien B a. A. <ar...@us...> - 2016-11-14 15:53:46
|
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "armadeus".
The branch, buildroot-update has been updated
via 448bb9d3d975f1f8f1b4d6b45e1d808db7601cbe (commit)
from e816e6a6f0239485908a8377ca4076ee909f70ca (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 448bb9d3d975f1f8f1b4d6b45e1d808db7601cbe
Author: Julien BOIBESSOT <jul...@ar...>
Date: Mon Nov 14 16:47:39 2016 +0100
[BUILDROOT] 2016.08+: Add lmic-pi package (LoRa node)
-----------------------------------------------------------------------
Summary of changes:
.../2016.08/030-lmic-pi-add-package.patch | 67 ++++++++++++++++++++
patches/buildroot/2016.08/cleanup_buildroot.sh | 2 +
2 files changed, 69 insertions(+), 0 deletions(-)
create mode 100644 patches/buildroot/2016.08/030-lmic-pi-add-package.patch
diff --git a/patches/buildroot/2016.08/030-lmic-pi-add-package.patch b/patches/buildroot/2016.08/030-lmic-pi-add-package.patch
new file mode 100644
index 0000000..5a8874b
--- /dev/null
+++ b/patches/buildroot/2016.08/030-lmic-pi-add-package.patch
@@ -0,0 +1,67 @@
+Signed-off-by: Julien Boibessot <jul...@ar...>
+
+Index: buildroot/package/lmic-pi/lmic-pi.mk
+===================================================================
+--- /dev/null
++++ buildroot/package/lmic-pi/lmic-pi.mk
+@@ -0,0 +1,33 @@
++################################################################################
++#
++# lmic-pi
++#
++################################################################################
++
++LMIC_PI_VERSION = c4a7c2080faf3fb76277f78b6d035c284a5eec9c
++LMIC_PI_SITE = $(call github,ernstdevreede,lmic_pi,$(LMIC_PI_VERSION))
++# LMIC <- Eclipse, examples <- Freeware
++LMIC_PI_LICENSE = Eclipse Public License v1.0 Freeware
++LMIC_PI_LICENSE_FILES = lmic/hal.h examples/thethingsnetwork-send-v1/thethingsnetwork-send-v1.cpp
++# as_devices provides wiringPi interface:
++LMIC_PI_DEPENDENCIES = as_devices
++
++define LMIC_PI_BUILD_CMDS
++ $(TARGET_MAKE_ENV) $(MAKE) \
++ CC="$(TARGET_CXX)" \
++ CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include/as_devices/" \
++ LD="$(TARGET_LD)" \
++ LIBS="-L$(STAGING_DIR)/usr/lib/ -las_devices" \
++ -C $(@D)/lmic
++ $(TARGET_MAKE_ENV) $(MAKE) \
++ CC="$(TARGET_CXX)" \
++ CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include/as_devices/ -I../../lmic" \
++ LDFLAGS="$(TARGET_LDFLASG) -L$(STAGING_DIR)/usr/lib/ -las_devices" \
++ -C $(@D)/examples/thethingsnetwork-send-v1
++endef
++
++define LMIC_PI_INSTALL_TARGET_CMDS
++ $(INSTALL) -D -m 755 $(@D)/examples/thethingsnetwork-send-v1/thethingsnetwork-send-v1 $(TARGET_DIR)/usr/bin/
++endef
++
++$(eval $(generic-package))
+Index: buildroot/package/Config.in
+===================================================================
+--- buildroot.orig/package/Config.in
++++ buildroot/package/Config.in
+@@ -1251,6 +1251,7 @@ menu "Networking"
+ source "package/libwebsock/Config.in"
+ source "package/libwebsockets/Config.in"
+ source "package/lksctp-tools/Config.in"
++ source "package/lmic-pi/Config.in"
+ source "package/mongoose/Config.in"
+ source "package/neon/Config.in"
+ source "package/norm/Config.in"
+Index: buildroot/package/lmic-pi/Config.in
+===================================================================
+--- /dev/null
++++ buildroot/package/lmic-pi/Config.in
+@@ -0,0 +1,10 @@
++config BR2_PACKAGE_LMIC_PI
++ bool "lmic-pi"
++ select BR2_PACKAGE_AS_DEVICES
++ help
++ Raspberry Pi port of IBM's LMCI 1.5 (LoRaMAC in C / LoRaWAN in C:
++ http://www.research.ibm.com/labs/zurich/ics/lrsc/lmic.html), using
++ the wiringPi library for GPIO/SPI.
++ It is adapted for TTN (http://thethingsnetwork.org).
++
++ https://github.com/ernstdevreede/lmic_pi/
diff --git a/patches/buildroot/2016.08/cleanup_buildroot.sh b/patches/buildroot/2016.08/cleanup_buildroot.sh
index 0bc616f..d5ae4a7 100755
--- a/patches/buildroot/2016.08/cleanup_buildroot.sh
+++ b/patches/buildroot/2016.08/cleanup_buildroot.sh
@@ -64,6 +64,8 @@ rm -rf buildroot/package/linux-firmware/linux-firmware.mk
rm -rf buildroot/package/linux-headers/2.6.29.6/0001-net-Support-inclusion-of-linux-socket.h-before-sys-s.patch
rm -rf buildroot/package/linux-headers/2.6.29.6/368-redhat-types_h-define-__aligned_u64-and-expose-to-userspace.patch
rm -rf buildroot/package/linux-headers/2.6.35.3/368-redhat-types_h-define-__aligned_u64-and-expose-to-userspace.patch
+rm -rf buildroot/package/lmic-pi/Config.in
+rm -rf buildroot/package/lmic-pi/lmic-pi.mk
rm -rf buildroot/package/lora-forwarder/0001-fix-cross-compiling.patch
rm -rf buildroot/package/lora-forwarder/Config.in
rm -rf buildroot/package/lora-forwarder/lora-forwarder.mk
hooks/post-receive
--
armadeus
|
|
From: Julien B a. A. <ar...@us...> - 2016-11-10 18:41:28
|
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "armadeus".
The branch, buildroot-update has been updated
via e816e6a6f0239485908a8377ca4076ee909f70ca (commit)
via ffc813ebed48e76dc86c7d7000ff7d5fa3610811 (commit)
via 414e9ae58097ae030555d76275fa3169addf7eae (commit)
via 0a5db3288fa58cab9faf043a39720de546145bf4 (commit)
via d9a6e99824a4495309691520601f433fff7d4114 (commit)
via f9dacd9ebc7b00c1d6a2f4e25f770c0252dd369a (commit)
via 70dd67a19575a792940d67ac3e08782601c1e81c (commit)
via 05d303d961ba13eabe98657333dd1da6c7b8f8fe (commit)
via 6a025547a6fe3b520e6d3afbc4ee07c705370548 (commit)
from b1a6f2157c4e62867ef6b30fe1235110a4dc3972 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit e816e6a6f0239485908a8377ca4076ee909f70ca
Author: Julien BOIBESSOT <jul...@ar...>
Date: Thu Nov 10 19:35:02 2016 +0100
[AS_DEVICES]: wiringPi: add userspace irq handling (with pthreads)
commit ffc813ebed48e76dc86c7d7000ff7d5fa3610811
Author: Julien BOIBESSOT <jul...@ar...>
Date: Thu Nov 10 19:33:29 2016 +0100
[AS_DEVICES]: as_gpio: add internal helper as_gpio_set_pin_irq_mode() to allow pin irq mode selection directly with its gpio number
commit 414e9ae58097ae030555d76275fa3169addf7eae
Author: Julien BOIBESSOT <jul...@ar...>
Date: Thu Nov 10 19:30:28 2016 +0100
[AS_DEVICES]: as_gpio: don't open/close /sys/class/gpio/gpioxx/value file each time as_gpio_set_pin_value() is called, but instead remember which gpio was requested and associated value file descriptor.
commit 0a5db3288fa58cab9faf043a39720de546145bf4
Author: Julien BOIBESSOT <jul...@ar...>
Date: Thu Nov 10 19:26:20 2016 +0100
[AS_DEVICES]: as_gpio: rename as_gpio_open() to as_gpio_request() to better match what is done in Linux kernel
commit d9a6e99824a4495309691520601f433fff7d4114
Author: Julien BOIBESSOT <jul...@ar...>
Date: Thu Nov 10 19:09:44 2016 +0100
[AS_DEVICES] wiringPi: don't quit program when wiringPiSetupSys() is called several time. Just signal it.
commit f9dacd9ebc7b00c1d6a2f4e25f770c0252dd369a
Author: Julien BOIBESSOT <jul...@ar...>
Date: Thu Nov 10 19:08:01 2016 +0100
[AS_DEVICES] wiringPi: add some comments
commit 70dd67a19575a792940d67ac3e08782601c1e81c
Author: Julien BOIBESSOT <jul...@ar...>
Date: Thu Nov 10 19:05:53 2016 +0100
[AS_DEVICES] wiringPi: add some more supported pins to GPIO mapping
commit 05d303d961ba13eabe98657333dd1da6c7b8f8fe
Author: Julien BOIBESSOT <jul...@ar...>
Date: Thu Nov 10 18:57:42 2016 +0100
[TOOLS] opos6ul_recovery: improve comment for BOOT jumpers
commit 6a025547a6fe3b520e6d3afbc4ee07c705370548
Author: Julien BOIBESSOT <jul...@ar...>
Date: Mon Nov 7 16:18:43 2016 +0100
typos
-----------------------------------------------------------------------
Summary of changes:
patches/u-boot/2015.01/403-apf51-nand-spl-NG.patch | 4 +-
software/uboot_recover/opos6ul_recovery.py | 2 +-
target/packages/as_devices/c/Makefile | 2 +-
target/packages/as_devices/c/as_gpio.c | 122 +++++++++++++-----
target/packages/as_devices/c/as_gpio.h | 19 +++-
target/packages/as_devices/c/wiringPi/wiringPi.c | 134 +++++++++++++++++++-
target/packages/as_devices/c/wiringPi/wiringPi.h | 4 +-
7 files changed, 241 insertions(+), 46 deletions(-)
diff --git a/patches/u-boot/2015.01/403-apf51-nand-spl-NG.patch b/patches/u-boot/2015.01/403-apf51-nand-spl-NG.patch
index 63201b7..203ca20 100644
--- a/patches/u-boot/2015.01/403-apf51-nand-spl-NG.patch
+++ b/patches/u-boot/2015.01/403-apf51-nand-spl-NG.patch
@@ -4,8 +4,8 @@ Add APF51 new NAND SPL:
- run SPL from IRAM
- intialize SDRAM from SPL instead of DCD: cf imx51 chip errata
- use regular U-Boot mxc_nand driver
-- add nand loch/unlock feature
-- final binary may be launch from NAND, IRAM or SDRAM
+- add nand lock/unlock feature
+- final binary may be launched from NAND, IRAM or SDRAM
- use make u-boot-with-nand-spl.imx to build U-Boot with NAND SPL
Signed-off-by: Eric Jarrige <eri...@ar...>
diff --git a/software/uboot_recover/opos6ul_recovery.py b/software/uboot_recover/opos6ul_recovery.py
index 4d70284..ada6b56 100644
--- a/software/uboot_recover/opos6ul_recovery.py
+++ b/software/uboot_recover/opos6ul_recovery.py
@@ -95,7 +95,7 @@ if __name__ == "__main__":
print " * have \"sb\" tool installed on your PC (on Ubuntu: sudo apt-get install lrzsz),"
print " * have launched this script as root (sudo)."
print "2] Power off your board, close all serial terminal sessions, remove all USB cables"
- print "3] Take jumper off BOOT1 pins and put it on BOOT0 pins."
+ print "3] Take jumper off BOOT1 pins (if any) and put a jumper on BOOT0 pins."
print "4] Power on your board"
print "5] Connect a USB cable from your PC to the OPOS6ULDev OTG miniUSB connector"
print "6] Connect a USB cable from your PC to the OPOS6ULDev console/debug miniUSB connector"
diff --git a/target/packages/as_devices/c/Makefile b/target/packages/as_devices/c/Makefile
index ebaa128..cb78c32 100644
--- a/target/packages/as_devices/c/Makefile
+++ b/target/packages/as_devices/c/Makefile
@@ -43,7 +43,7 @@ ARCHIVE_OPTS = -cvq
$(LIBNAME): $(OBJ)
@echo " LNK $@"
- @$(CC) -shared -Wl,-soname,$(SONAME) -o $(SONAME) $(OBJ)
+ @$(CC) -shared -Wl,-soname,$(SONAME) -o $(SONAME) $(OBJ) -lpthread
@ln -sf $(SONAME) $(LIBNAME)
$(STAT_LIB): $(OBJ)
diff --git a/target/packages/as_devices/c/as_gpio.c b/target/packages/as_devices/c/as_gpio.c
index 11eddcd..c5e9a70 100644
--- a/target/packages/as_devices/c/as_gpio.c
+++ b/target/packages/as_devices/c/as_gpio.c
@@ -37,38 +37,69 @@
#undef ERROR
#define ERROR(fmt, ...) printf(fmt, ##__VA_ARGS__)
+static int gpio_fds [256] = {
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+};
+
/*------------------------------------------------------------------------------*/
-struct as_gpio_device *as_gpio_open(int aGpioNum)
+/* For Compat: */
+struct as_gpio_device *as_gpio_open(int gpio_num)
+{
+ return as_gpio_request(gpio_num);
+}
+
+struct as_gpio_device *as_gpio_request(int gpio_num)
{
struct as_gpio_device *dev;
- int pin_file;
- int export_file;
+ int value_fd;
+ int export_fd;
int retval;
char buf[BUFF_SIZE];
- export_file = open("/sys/class/gpio/export", O_WRONLY);
- if (export_file < 0) {
- ERROR
- ("Can't open /sys/class/gpio/export\nBe sure that gpiolib is under your kernel\n");
+ if (gpio_num >= 256) {
+ ERROR("GPIO number (%d) is to high !\n", gpio_num);
+ return NULL;
+ }
+
+ export_fd = open("/sys/class/gpio/export", O_WRONLY);
+ if (export_fd < 0) {
+ ERROR("Can't open /sys/class/gpio/export\nBe sure that gpiolib"
+ " interface is supported by your kernel !\n");
return NULL;
}
- retval = as_write_buffer(export_file, aGpioNum);
+ retval = as_write_buffer(export_fd, gpio_num);
if (retval < 0) {
ERROR("/sys/class/gpio/export can't be written\n");
- close(export_file);
+ close(export_fd);
return NULL;
}
- close(export_file);
+ close(export_fd);
- snprintf(buf, BUFF_SIZE, "/sys/class/gpio/gpio%d/value", aGpioNum);
- pin_file = open(buf, O_RDWR);
- if (pin_file < 0) {
- ERROR("Can't export gpio number %d\n", aGpioNum);
+ snprintf(buf, BUFF_SIZE, "/sys/class/gpio/gpio%d/value", gpio_num);
+ value_fd = open(buf, O_RDWR);
+ if (value_fd < 0) {
+ ERROR("Can't export gpio number %d\n", gpio_num);
return NULL;
+ } else {
+ gpio_fds[gpio_num] = value_fd;
}
- close(pin_file);
dev = malloc(sizeof(struct as_gpio_device));
if (dev == NULL) {
@@ -76,7 +107,7 @@ struct as_gpio_device *as_gpio_open(int aGpioNum)
return NULL;
}
- dev->port_num = aGpioNum;
+ dev->port_num = gpio_num;
return dev;
}
@@ -143,36 +174,48 @@ const char *as_gpio_get_pin_direction(struct as_gpio_device *aDev)
return direction;
}
+static int CHECK(struct as_gpio_device * dev)
+{
+ if (dev == NULL) {
+ ERROR("device is NULL\n");
+ return -1;
+ }
+
+ if (dev->port_num > 256) {
+ ERROR("gpio pin number (%d) is not supported !\n", dev->port_num);
+ return -1;
+ }
+
+ return 0;
+}
+
/*------------------------------------------------------------------------------*/
-int32_t as_gpio_set_pin_value(struct as_gpio_device * aDev, int aValue)
+int32_t as_gpio_set_pin_value(struct as_gpio_device * dev, int value)
{
char buf[BUFF_SIZE];
- int pin_file;
int retval;
+ int value_fd;
- if (aDev == NULL) {
- ERROR("device is NULL\n");
- return -1;
- }
+ retval = CHECK(dev);
+ if(retval != 0)
+ return retval;
- snprintf(buf, BUFF_SIZE, "/sys/class/gpio/gpio%d/value",
- aDev->port_num);
- pin_file = open(buf, O_WRONLY);
- if (pin_file < 0) {
- ERROR("Can't open gpio%d direction\n", aDev->port_num);
+ value_fd = gpio_fds[dev->port_num];
+ if (value_fd < 0) {
+ ERROR("gpio%d not initialized\n", dev->port_num);
return -1;
}
+ snprintf(buf, BUFF_SIZE, "/sys/class/gpio/gpio%d/value",
+ dev->port_num);
- retval = as_write_buffer(pin_file, aValue);
+ retval = as_write_buffer(value_fd, value);
if (retval < 0) {
- ERROR("Can't write value\n");
- close(pin_file);
+ ERROR("Can't set gpio %d value\n", dev->port_num);
return -1;
}
- close(pin_file);
- return aValue;
+ return value;
}
/*------------------------------------------------------------------------------*/
@@ -315,6 +358,21 @@ int32_t as_gpio_set_irq_mode(struct as_gpio_device * aDev, char *mode)
}
/*------------------------------------------------------------------------------*/
+/* FOR AS_DEVICES INTERNAL USE ONLY !! */
+
+int32_t as_gpio_set_pin_irq_mode(int pin, char *mode)
+{
+ struct as_gpio_device dev;
+ int ret;
+
+ dev.port_num = pin;
+
+ ret = as_gpio_set_irq_mode(&dev, mode);
+ return ret;
+}
+
+/*------------------------------------------------------------------------------*/
+/*------------------------------------------------------------------------------*/
int32_t as_gpio_get_pin_num(struct as_gpio_device * aDev)
{
diff --git a/target/packages/as_devices/c/as_gpio.h b/target/packages/as_devices/c/as_gpio.h
index 594fb2b..9b02bd8 100644
--- a/target/packages/as_devices/c/as_gpio.h
+++ b/target/packages/as_devices/c/as_gpio.h
@@ -53,13 +53,21 @@ struct as_gpio_device {
int irq_mode;
};
-/** @brief Initialize port access
+/** @brief Initialize port access (deprecated, use as_gpio_request() instead)
*
- * @param aGpioNum int pin number
+ * @param gpio_num int pin number
*
- * @return error if negative value
+ * @return error if negative value otherwise pointer to as_gpio_device structure
+ */
+struct as_gpio_device *as_gpio_open(int gpio_num);
+
+/** @brief Request GPIO access
+ *
+ * @param gpio_num int pin number
+ *
+ * @return error if negative value otherwise pointer to as_gpio_device structure
*/
-struct as_gpio_device *as_gpio_open(int aGpioNum);
+struct as_gpio_device *as_gpio_request(int gpio_num);
/** @brief Set pin direction
*
@@ -117,6 +125,9 @@ int32_t as_gpio_wait_event(struct as_gpio_device *aDev, int aDelay_ms);
int32_t as_gpio_set_irq_mode(struct as_gpio_device *gpio_dev,
char *mode);
+/* FOR AS_DEVICES INTERNAL USE ONLY !! */
+int32_t as_gpio_set_pin_irq_mode(int pin, char *mode);
+
/** @brief Get pin irq mode value
*
* @param gpio_dev as_gpio_device pointer structure
diff --git a/target/packages/as_devices/c/wiringPi/wiringPi.c b/target/packages/as_devices/c/wiringPi/wiringPi.c
index a24baaf..8a728da 100644
--- a/target/packages/as_devices/c/wiringPi/wiringPi.c
+++ b/target/packages/as_devices/c/wiringPi/wiringPi.c
@@ -38,8 +38,12 @@
#include <sys/time.h> /* gettimeofday() */
#include <time.h> /* nanosleep() */
#include <fcntl.h> /* open() */
+#include <errno.h> /* errno */
+#include <sys/ioctl.h> /* ioctl() / FIONREAD */
+#include <pthread.h> /* pthread_xx() */
#include "wiringPi.h"
+#include "../as_gpio.h"
// Environment Variables
@@ -48,9 +52,16 @@
#define ENV_GPIOMEM "WIRINGPI_GPIOMEM"
+// Time for easy calculations
+
static uint64_t epochMilli, epochMicro ;
+// Misc
+
static int wiringPiMode = WPI_MODE_UNINITIALISED ;
+static volatile int pinPass = -1 ;
+static pthread_mutex_t pinMutex ;
+
// Debugging & Return codes
int wiringPiDebug = FALSE ;
@@ -70,9 +81,20 @@ static int sysFds [GPIO_NUMBER] =
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
} ;
+// ISR Data
+
+static void (*isrFunctions [64])(void) ;
+
+// Doing it the Arduino way with lookup tables...
+// Yes, it's probably more inefficient than all the bit-twidling, but it
+// does tend to make it all a bit clearer. At least to me!
+
+// pinToGpio:
+// Take a Wiring pin (0 through X) and re-map it to the MX6UL pin
+
static int pinToGpio [] =
{
- 24, -1, -1, -1, -1, -1, 97, 10,
+ 24, -1, 25, -1, 18, 19, 97, 9,
-1, -1, -1, -1, -1, -1, -1, -1,
// Padding:
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, // ... 31
@@ -126,7 +148,7 @@ int wpiPinToGpio (int wpiPin)
void pinMode (int pin, int mode)
{
fprintf(stderr, "wiringPi emulation in as_devices: your software is calling pinMode(%d, %d) which is not implemented. \n"
- "I hope you did the corresponding echo %d > /sys/class/gpio/export + echo in/out > /sys/class/gpio/gpio%d/direction !\n",
+ "I hope you did the corresponding echo %d > /sys/class/gpio/export + echo in/out > /sys/class/gpio/gpio%d/direction !\n\n",
pin, mode, wpiPinToGpio(pin), wpiPinToGpio(pin));
}
@@ -225,6 +247,106 @@ int waitForInterrupt (int pin, int mS)
/*
+ * interruptHandler:
+ * This is a thread and gets started to wait for the interrupt we're
+ * hoping to catch. It will call the user-function when the interrupt
+ * fires.
+ *********************************************************************************
+ */
+
+static void *interruptHandler (void *arg)
+{
+ int myPin ;
+
+// (void)piHiPri (55) ; // Only effective if we run as root
+
+ myPin = pinPass ;
+ pinPass = -1 ;
+
+ for (;;)
+ if (waitForInterrupt(myPin, -1) > 0)
+ isrFunctions [myPin] () ;
+
+ return NULL ;
+}
+
+
+/*
+ * wiringPiISR:
+ * Pi Specific.
+ * Take the details and create an interrupt handler that will do a call-
+ * back to the user supplied function.
+ *********************************************************************************
+ */
+
+int wiringPiISR (int pin, int mode, void (*function)(void))
+{
+ pthread_t threadId ;
+ char *modeS ;
+ char fName [64] ;
+ char pinS [8] ;
+ int count, i ;
+ char c ;
+ int bcmGpioPin ;
+
+ if ((pin < 0) || (pin > 63))
+ return wiringPiFailure (WPI_FATAL, "wiringPiISR: pin must be 0-63 (%d)\n", pin) ;
+
+ /**/ if (wiringPiMode == WPI_MODE_UNINITIALISED)
+ return wiringPiFailure (WPI_FATAL, "wiringPiISR: wiringPi has not been initialised. Unable to continue.\n") ;
+ else if (wiringPiMode == WPI_MODE_PINS)
+ bcmGpioPin = pinToGpio [pin] ;
+ else
+ bcmGpioPin = pin ;
+
+// Now export the pin and set the right edge
+// Contrary to what is done on original wiringPi, we don't use
+// an external executable (gpio) to do the job.
+
+ if (mode != INT_EDGE_SETUP)
+ {
+ /**/ if (mode == INT_EDGE_FALLING)
+ modeS = "falling" ;
+ else if (mode == INT_EDGE_RISING)
+ modeS = "rising" ;
+ else
+ modeS = "both" ;
+
+ sprintf (pinS, "%d", bcmGpioPin) ;
+
+ printf("%s: setting irq mode on gpio %d\n", __func__, bcmGpioPin);
+ as_gpio_set_pin_irq_mode(bcmGpioPin, modeS);
+ }
+
+// Now pre-open the /sys/class node - but it may already be open if
+// we are in Sys mode...
+
+ if (sysFds [bcmGpioPin] == -1) {
+ sprintf (fName, "/sys/class/gpio/gpio%d/value", bcmGpioPin) ;
+ if ((sysFds [bcmGpioPin] = open (fName, O_RDWR)) < 0)
+ return wiringPiFailure (WPI_FATAL, "wiringPiISR: unable to open %s: %s\n", fName, strerror (errno)) ;
+ }
+
+// Clear any initial pending interrupt
+
+ ioctl (sysFds [bcmGpioPin], FIONREAD, &count) ;
+ for (i = 0 ; i < count ; ++i)
+ read (sysFds [bcmGpioPin], &c, 1) ;
+
+ isrFunctions [pin] = function ;
+
+ pthread_mutex_lock (&pinMutex) ;
+ pinPass = pin ;
+ pthread_create (&threadId, NULL, interruptHandler, NULL) ;
+ while (pinPass != -1)
+ delay (1) ;
+ pthread_mutex_unlock (&pinMutex) ;
+
+ return 0 ;
+}
+
+
+/*
* initialiseEpoch:
* Initialise our start-of-time variable to be the current unix
* time in milliseconds and microseconds.
@@ -363,8 +485,12 @@ int wiringPiSetupSys (void)
// This is here to trap the unwary - those who's program appears to work then fails some
// time later with a weird error message because you run out of file-handles.
- if (alreadyCalled)
- (void)wiringPiFailure (WPI_FATAL, "wiringPiSetupSys: You must only call this once per program run. This is a fatal error. Please fix your code.\n") ;
+ if (alreadyCalled) {
+ //(void)wiringPiFailure (WPI_FATAL,
+ printf(
+ "wiringPiSetupSys: You must only call this once per program run. This is a fatal error. Please fix your code.\n") ;
+ return 0;
+ }
alreadyCalled = TRUE ;
diff --git a/target/packages/as_devices/c/wiringPi/wiringPi.h b/target/packages/as_devices/c/wiringPi/wiringPi.h
index e51e397..4222fe9 100644
--- a/target/packages/as_devices/c/wiringPi/wiringPi.h
+++ b/target/packages/as_devices/c/wiringPi/wiringPi.h
@@ -67,7 +67,7 @@
#define PWM_MODE_MS 0
#define PWM_MODE_BAL 1
-
+*/
// Interrupt levels
#define INT_EDGE_SETUP 0
@@ -77,7 +77,7 @@
// Pi model types and version numbers
// Intended for the GPIO program Use at your own risk.
-
+/*
#define PI_MODEL_A 0
#define PI_MODEL_B 1
#define PI_MODEL_AP 2
hooks/post-receive
--
armadeus
|
|
From: Sébastien S. <ss...@us...> - 2016-11-10 10:23:53
|
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "armadeus".
The branch, buildroot-update has been updated
via b1a6f2157c4e62867ef6b30fe1235110a4dc3972 (commit)
from 934a738c7d6e0c3b3f92c9c5ad5e0147b66eea00 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit b1a6f2157c4e62867ef6b30fe1235110a4dc3972
Author: Sébastien Szymanski <seb...@ar...>
Date: Thu Nov 10 11:08:16 2016 +0100
[LINUX] opos6ul and opos6ul_recovery: bump to 4.8.6
-----------------------------------------------------------------------
Summary of changes:
buildroot/configs/opos6ul_defconfig | 2 +-
buildroot/configs/opos6ul_recovery_defconfig | 2 +-
...nux-4.8.4.config => opos6ul-linux-4.8.6.config} | 0
patches/linux/{4.8.4 => 4.8.6} | 0
4 files changed, 2 insertions(+), 2 deletions(-)
rename buildroot/target/device/armadeus/opos6ul/{opos6ul-linux-4.8.4.config => opos6ul-linux-4.8.6.config} (100%)
rename patches/linux/{4.8.4 => 4.8.6} (100%)
diff --git a/buildroot/configs/opos6ul_defconfig b/buildroot/configs/opos6ul_defconfig
index 0ade81b..48c6d7b 100644
--- a/buildroot/configs/opos6ul_defconfig
+++ b/buildroot/configs/opos6ul_defconfig
@@ -23,7 +23,7 @@ BR2_CPU_NAME="imx6ul"
BR2_TARGET_ARMADEUS_SDRAM_SIZE="256"
BR2_LINUX_KERNEL=y
BR2_LINUX_KERNEL_CUSTOM_VERSION=y
-BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="4.8.4"
+BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="4.8.6"
BR2_LINUX_KERNEL_PATCH="../patches/linux/$(BR2_LINUX_KERNEL_VERSION)"
BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y
BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="$(BR2_BOARD_PATH)/$(BR2_BOARD_NAME)-linux-$(BR2_LINUX_KERNEL_VERSION).config"
diff --git a/buildroot/configs/opos6ul_recovery_defconfig b/buildroot/configs/opos6ul_recovery_defconfig
index 37e8141..dd94aef 100644
--- a/buildroot/configs/opos6ul_recovery_defconfig
+++ b/buildroot/configs/opos6ul_recovery_defconfig
@@ -23,7 +23,7 @@ BR2_CPU_NAME="imx6ul"
BR2_TARGET_ARMADEUS_SDRAM_SIZE="256"
BR2_LINUX_KERNEL=y
BR2_LINUX_KERNEL_CUSTOM_VERSION=y
-BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="4.7.3"
+BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="4.8.6"
BR2_LINUX_KERNEL_PATCH="../patches/linux/$(BR2_LINUX_KERNEL_VERSION)"
BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y
BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="$(BR2_BOARD_PATH)/$(BR2_BOARD_NAME)-linux-$(BR2_LINUX_KERNEL_VERSION).config"
diff --git a/buildroot/target/device/armadeus/opos6ul/opos6ul-linux-4.8.4.config b/buildroot/target/device/armadeus/opos6ul/opos6ul-linux-4.8.6.config
similarity index 100%
rename from buildroot/target/device/armadeus/opos6ul/opos6ul-linux-4.8.4.config
rename to buildroot/target/device/armadeus/opos6ul/opos6ul-linux-4.8.6.config
diff --git a/patches/linux/4.8.4 b/patches/linux/4.8.6
similarity index 100%
rename from patches/linux/4.8.4
rename to patches/linux/4.8.6
hooks/post-receive
--
armadeus
|
|
From: Sébastien S. <ss...@us...> - 2016-11-09 10:28:03
|
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "armadeus".
The branch, buildroot-update has been updated
via 934a738c7d6e0c3b3f92c9c5ad5e0147b66eea00 (commit)
from 9a703e247dcfae8b6dcc6550f2b190368c1a6ee6 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 934a738c7d6e0c3b3f92c9c5ad5e0147b66eea00
Author: Sébastien Szymanski <seb...@ar...>
Date: Wed Nov 9 11:25:47 2016 +0100
[LINUX] 4.8+: opos6ul: update dts files
* move memory node in imx6ul-opos6ul.dtsi file
* move 3v3 regulator in imx6ul-opos6ul.dtsi file
* add su...@ar... in comments
-----------------------------------------------------------------------
Summary of changes:
...pos6ul-and-opos6uldev-add-initial-support.patch | 30 ++++++++++----------
1 files changed, 15 insertions(+), 15 deletions(-)
diff --git a/patches/linux/4.8/0800-ARM-dts-opos6ul-and-opos6uldev-add-initial-support.patch b/patches/linux/4.8/0800-ARM-dts-opos6ul-and-opos6uldev-add-initial-support.patch
index 0206567..70bf7a5 100644
--- a/patches/linux/4.8/0800-ARM-dts-opos6ul-and-opos6uldev-add-initial-support.patch
+++ b/patches/linux/4.8/0800-ARM-dts-opos6ul-and-opos6uldev-add-initial-support.patch
@@ -32,9 +32,9 @@ Index: linux-4.8.4/arch/arm/boot/dts/imx6ul-opos6ul.dtsi
===================================================================
--- /dev/null
+++ linux-4.8.4/arch/arm/boot/dts/imx6ul-opos6ul.dtsi
-@@ -0,0 +1,181 @@
+@@ -0,0 +1,192 @@
+/*
-+ * Copyright 2016 Armadeus Systems
++ * Copyright 2016 Armadeus Systems <su...@ar...>
+ *
+ * This file is dual-licensed: you can use it either under the terms
+ * of the GPL or the X11 license, at your option. Note that this dual
@@ -83,6 +83,17 @@ Index: linux-4.8.4/arch/arm/boot/dts/imx6ul-opos6ul.dtsi
+#include "imx6ul.dtsi"
+
+/ {
++ memory {
++ reg = <0x80000000 0>; /* will be filled by U-Boot */
++ };
++
++ reg_3v3: regulator-3v3 {
++ compatible = "regulator-fixed";
++ regulator-name = "3V3";
++ regulator-min-microvolt = <3300000>;
++ regulator-max-microvolt = <3300000>;
++ };
++
+ usdhc3_pwrseq: usdhc3_pwrseq {
+ compatible = "mmc-pwrseq-simple";
+ reset-gpios = <&gpio2 9 GPIO_ACTIVE_LOW>;
@@ -218,9 +229,9 @@ Index: linux-4.8.4/arch/arm/boot/dts/imx6ul-opos6uldev.dts
===================================================================
--- /dev/null
+++ linux-4.8.4/arch/arm/boot/dts/imx6ul-opos6uldev.dts
-@@ -0,0 +1,407 @@
+@@ -0,0 +1,396 @@
+/*
-+ * Copyright 2016 Armadeus Systems
++ * Copyright 2016 Armadeus Systems <su...@ar...>
+ *
+ * This file is dual-licensed: you can use it either under the terms
+ * of the GPL or the X11 license, at your option. Note that this dual
@@ -277,10 +288,6 @@ Index: linux-4.8.4/arch/arm/boot/dts/imx6ul-opos6uldev.dts
+ stdout-path = &uart1;
+ };
+
-+ memory {
-+ reg = <0x80000000 0>; /* will be filled by U-Boot */
-+ };
-+
+ backlight {
+ compatible = "gpio-backlight";
+ pinctrl-names = "default";
@@ -314,13 +321,6 @@ Index: linux-4.8.4/arch/arm/boot/dts/imx6ul-opos6uldev.dts
+ };
+ };
+
-+ reg_3v3: regulator-3v3 {
-+ compatible = "regulator-fixed";
-+ regulator-name = "3V3";
-+ regulator-min-microvolt = <3300000>;
-+ regulator-max-microvolt = <3300000>;
-+ };
-+
+ reg_5v: regulator-5v {
+ compatible = "regulator-fixed";
+ regulator-name = "5V";
hooks/post-receive
--
armadeus
|
|
From: Sébastien S. <ss...@us...> - 2016-11-02 09:41:17
|
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "armadeus".
The branch, buildroot-update has been updated
via 9a703e247dcfae8b6dcc6550f2b190368c1a6ee6 (commit)
from bdf3e7e0c13f1a97bf3d278d4ee59685912af3a4 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 9a703e247dcfae8b6dcc6550f2b190368c1a6ee6
Author: Sébastien Szymanski <seb...@ar...>
Date: Wed Nov 2 10:44:31 2016 +0100
[LINUX] 4.7: opos6ul: dts: add adc support
-----------------------------------------------------------------------
Summary of changes:
...pos6ul-and-opos6uldev-add-initial-support.patch | 23 ++++++++++++-------
1 files changed, 14 insertions(+), 9 deletions(-)
diff --git a/patches/linux/4.8/0800-ARM-dts-opos6ul-and-opos6uldev-add-initial-support.patch b/patches/linux/4.8/0800-ARM-dts-opos6ul-and-opos6uldev-add-initial-support.patch
index 7de0f6a..0206567 100644
--- a/patches/linux/4.8/0800-ARM-dts-opos6ul-and-opos6uldev-add-initial-support.patch
+++ b/patches/linux/4.8/0800-ARM-dts-opos6ul-and-opos6uldev-add-initial-support.patch
@@ -16,11 +16,11 @@ Signed-off-by: Sébastien Szymanski <seb...@ar...>
create mode 100644 arch/arm/boot/dts/imx6ul-opos6ul.dtsi
create mode 100644 arch/arm/boot/dts/imx6ul-opos6uldev.dts
-Index: linux-4.7.10/arch/arm/boot/dts/Makefile
+Index: linux-4.8.4/arch/arm/boot/dts/Makefile
===================================================================
---- linux-4.7.10.orig/arch/arm/boot/dts/Makefile
-+++ linux-4.7.10/arch/arm/boot/dts/Makefile
-@@ -393,6 +393,7 @@ dtb-$(CONFIG_SOC_IMX6SX) += \
+--- linux-4.8.4.orig/arch/arm/boot/dts/Makefile
++++ linux-4.8.4/arch/arm/boot/dts/Makefile
+@@ -407,6 +407,7 @@ dtb-$(CONFIG_SOC_IMX6SX) += \
imx6sx-sdb.dtb
dtb-$(CONFIG_SOC_IMX6UL) += \
imx6ul-14x14-evk.dtb \
@@ -28,10 +28,10 @@ Index: linux-4.7.10/arch/arm/boot/dts/Makefile
imx6ul-pico-hobbit.dtb \
imx6ul-tx6ul-0010.dtb \
imx6ul-tx6ul-0011.dtb \
-Index: linux-4.7.10/arch/arm/boot/dts/imx6ul-opos6ul.dtsi
+Index: linux-4.8.4/arch/arm/boot/dts/imx6ul-opos6ul.dtsi
===================================================================
--- /dev/null
-+++ linux-4.7.10/arch/arm/boot/dts/imx6ul-opos6ul.dtsi
++++ linux-4.8.4/arch/arm/boot/dts/imx6ul-opos6ul.dtsi
@@ -0,0 +1,181 @@
+/*
+ * Copyright 2016 Armadeus Systems
@@ -214,11 +214,11 @@ Index: linux-4.7.10/arch/arm/boot/dts/imx6ul-opos6ul.dtsi
+ >;
+ };
+};
-Index: linux-4.7.10/arch/arm/boot/dts/imx6ul-opos6uldev.dts
+Index: linux-4.8.4/arch/arm/boot/dts/imx6ul-opos6uldev.dts
===================================================================
--- /dev/null
-+++ linux-4.7.10/arch/arm/boot/dts/imx6ul-opos6uldev.dts
-@@ -0,0 +1,402 @@
++++ linux-4.8.4/arch/arm/boot/dts/imx6ul-opos6uldev.dts
+@@ -0,0 +1,407 @@
+/*
+ * Copyright 2016 Armadeus Systems
+ *
@@ -351,6 +351,11 @@ Index: linux-4.7.10/arch/arm/boot/dts/imx6ul-opos6uldev.dts
+ };
+};
+
++&adc1 {
++ vref-supply = <®_3v3>;
++ status = "okay";
++};
++
+&can1 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&pinctrl_flexcan1>;
hooks/post-receive
--
armadeus
|
|
From: Julien B a. A. <ar...@us...> - 2016-10-31 16:16:10
|
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "armadeus".
The branch, buildroot-update has been updated
via bdf3e7e0c13f1a97bf3d278d4ee59685912af3a4 (commit)
from 3509f9d688481ad3b3031ef7db72a9ae6dd7151b (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit bdf3e7e0c13f1a97bf3d278d4ee59685912af3a4
Author: Julien BOIBESSOT <jul...@ar...>
Date: Mon Oct 31 17:10:11 2016 +0100
[LINUX] 4.8+: opos6ul: add some commonly available sensors drivers (ADS1015, MCP4725, HMC5843, BMP180)
-----------------------------------------------------------------------
Summary of changes:
.../armadeus/opos6ul/opos6ul-linux-4.8.config | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/buildroot/target/device/armadeus/opos6ul/opos6ul-linux-4.8.config b/buildroot/target/device/armadeus/opos6ul/opos6ul-linux-4.8.config
index 2f662ea..6678f96 100644
--- a/buildroot/target/device/armadeus/opos6ul/opos6ul-linux-4.8.config
+++ b/buildroot/target/device/armadeus/opos6ul/opos6ul-linux-4.8.config
@@ -180,6 +180,7 @@ CONFIG_POWER_RESET_SYSCON=y
CONFIG_POWER_RESET_SYSCON_POWEROFF=y
CONFIG_SENSORS_GPIO_FAN=y
CONFIG_SENSORS_IIO_HWMON=y
+CONFIG_SENSORS_ADS1015=m
CONFIG_THERMAL=y
CONFIG_CPU_THERMAL=y
CONFIG_IMX_THERMAL=y
@@ -294,7 +295,11 @@ CONFIG_MXS_DMA=y
CONFIG_STAGING=y
# CONFIG_IOMMU_SUPPORT is not set
CONFIG_IIO=y
+CONFIG_TI_ADS1015=m
CONFIG_VF610_ADC=y
+CONFIG_MCP4725=m
+CONFIG_SENSORS_HMC5843_I2C=m
+CONFIG_BMP280=m
CONFIG_PWM=y
CONFIG_PWM_FSL_FTM=y
CONFIG_PWM_IMX=y
hooks/post-receive
--
armadeus
|
|
From: Julien B a. A. <ar...@us...> - 2016-10-31 11:55:41
|
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "armadeus".
The branch, buildroot-update has been updated
via 3509f9d688481ad3b3031ef7db72a9ae6dd7151b (commit)
from 1f14c01b8c3fc4d4fb6054d547fbecb43746ea1c (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 3509f9d688481ad3b3031ef7db72a9ae6dd7151b
Author: Sébastien Szymanski <seb...@ar...>
Date: Mon Oct 31 12:49:25 2016 +0100
[LINUX] 4.8+: opos6ul: improve touchsreen on LW700
-----------------------------------------------------------------------
Summary of changes:
...pos6ul-and-opos6uldev-add-initial-support.patch | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/patches/linux/4.8/0800-ARM-dts-opos6ul-and-opos6uldev-add-initial-support.patch b/patches/linux/4.8/0800-ARM-dts-opos6ul-and-opos6uldev-add-initial-support.patch
index 28d1943..7de0f6a 100644
--- a/patches/linux/4.8/0800-ARM-dts-opos6ul-and-opos6uldev-add-initial-support.patch
+++ b/patches/linux/4.8/0800-ARM-dts-opos6ul-and-opos6uldev-add-initial-support.patch
@@ -439,7 +439,7 @@ Index: linux-4.7.10/arch/arm/boot/dts/imx6ul-opos6uldev.dts
+ pinctrl-0 = <&pinctrl_tsc>;
+ xnur-gpio = <&gpio1 3 GPIO_ACTIVE_LOW>;
+ measure-delay-time = <0xffff>;
-+ pre-charge-time = <0xfff>;
++ pre-charge-time = <0xffff>;
+ status = "okay";
+};
+
hooks/post-receive
--
armadeus
|
|
From: Julien B a. A. <ar...@us...> - 2016-10-31 11:52:00
|
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "armadeus".
The branch, buildroot-update has been updated
via 1f14c01b8c3fc4d4fb6054d547fbecb43746ea1c (commit)
via d8a4bd3c3a587e72b2d6d9251a3a8293b457edcd (commit)
from fd9c1f676e700128a8a16ee247b0e6630274b349 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 1f14c01b8c3fc4d4fb6054d547fbecb43746ea1c
Author: Julien BOIBESSOT <jul...@ar...>
Date: Mon Oct 31 12:45:51 2016 +0100
[BUILDROOT] 2016.08: add a simple LoRa gateway (packet forwarder)
commit d8a4bd3c3a587e72b2d6d9251a3a8293b457edcd
Author: Julien BOIBESSOT <jul...@ar...>
Date: Mon Oct 31 12:40:34 2016 +0100
[AS_DEVICES] add wiringPi compatibility layer
-----------------------------------------------------------------------
Summary of changes:
.../package/armadeus/as_devices/as_devices.mk | 2 +-
.../029-armadeus-lora-forwarder-add-package.patch | 92 +++++
patches/buildroot/2016.08/cleanup_buildroot.sh | 3 +
target/packages/as_devices/Makefile | 1 +
target/packages/as_devices/c/Makefile | 9 +-
.../packages/as_devices/c/wiringPi/COPYING.LESSER | 165 ++++++++
target/packages/as_devices/c/wiringPi/wiringPi.c | 405 ++++++++++++++++++++
target/packages/as_devices/c/wiringPi/wiringPi.h | 181 +++++++++
.../packages/as_devices/c/wiringPi/wiringPiI2C.c | 232 +++++++++++
.../packages/as_devices/c/wiringPi/wiringPiI2C.h | 42 ++
.../packages/as_devices/c/wiringPi/wiringPiSPI.c | 136 +++++++
.../packages/as_devices/c/wiringPi/wiringPiSPI.h | 36 ++
.../packages/as_devices/c/wiringPi/wiringSerial.c | 213 ++++++++++
.../packages/as_devices/c/wiringPi/wiringSerial.h | 38 ++
14 files changed, 1552 insertions(+), 3 deletions(-)
create mode 100644 patches/buildroot/2016.08/029-armadeus-lora-forwarder-add-package.patch
create mode 100644 target/packages/as_devices/c/wiringPi/COPYING.LESSER
create mode 100644 target/packages/as_devices/c/wiringPi/wiringPi.c
create mode 100644 target/packages/as_devices/c/wiringPi/wiringPi.h
create mode 100644 target/packages/as_devices/c/wiringPi/wiringPiI2C.c
create mode 100644 target/packages/as_devices/c/wiringPi/wiringPiI2C.h
create mode 100644 target/packages/as_devices/c/wiringPi/wiringPiSPI.c
create mode 100644 target/packages/as_devices/c/wiringPi/wiringPiSPI.h
create mode 100644 target/packages/as_devices/c/wiringPi/wiringSerial.c
create mode 100644 target/packages/as_devices/c/wiringPi/wiringSerial.h
diff --git a/buildroot/package/armadeus/as_devices/as_devices.mk b/buildroot/package/armadeus/as_devices/as_devices.mk
index f6a3c6b..a3d4d97 100644
--- a/buildroot/package/armadeus/as_devices/as_devices.mk
+++ b/buildroot/package/armadeus/as_devices/as_devices.mk
@@ -4,7 +4,7 @@
#
################################################################################
-AS_DEVICES_VERSION = 0.17
+AS_DEVICES_VERSION = 0.18
AS_DEVICES_SITE = $(TOPDIR)/../target/packages/as_devices
ifeq ($(generic-package), )
AS_DEVICES_SITE_METHOD = copy
diff --git a/patches/buildroot/2016.08/029-armadeus-lora-forwarder-add-package.patch b/patches/buildroot/2016.08/029-armadeus-lora-forwarder-add-package.patch
new file mode 100644
index 0000000..65600eb
--- /dev/null
+++ b/patches/buildroot/2016.08/029-armadeus-lora-forwarder-add-package.patch
@@ -0,0 +1,92 @@
+Signed-off-by: Julien Boibessot <jul...@ar...>
+
+Index: buildroot/package/lora-forwarder/lora-forwarder.mk
+===================================================================
+--- /dev/null
++++ buildroot/package/lora-forwarder/lora-forwarder.mk
+@@ -0,0 +1,27 @@
++################################################################################
++#
++# lora-forwarder
++#
++################################################################################
++
++LORA_FORWARDER_VERSION = a29921789bc5b63d6a7c51e46dd6314aca06b99e
++LORA_FORWARDER_SITE = $(call github,tftelkamp,single_chan_pkt_fwd,$(LORA_FORWARDER_VERSION))
++LORA_FORWARDER_LICENSE = Eclipse Public License v1.0 + Semtech
++LORA_FORWARDER_LICENSE_FILES = main.cpp LICENSE
++# as_devices provides wiringPi interface:
++LORA_FORWARDER_DEPENDENCIES = as_devices
++
++define LORA_FORWARDER_BUILD_CMDS
++ $(TARGET_MAKE_ENV) $(MAKE) \
++ CC="$(TARGET_CXX)" \
++ CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include/as_devices/" \
++ LD="$(TARGET_LD)" \
++ LIBS="-L$(STAGING_DIR)/usr/lib/ -las_devices" \
++ -C $(@D)
++endef
++
++define LORA_FORWARDER_INSTALL_TARGET_CMDS
++ $(INSTALL) -D -m 755 $(@D)/single_chan_pkt_fwd $(TARGET_DIR)/usr/bin/
++endef
++
++$(eval $(generic-package))
+Index: buildroot/package/lora-forwarder/Config.in
+===================================================================
+--- /dev/null
++++ buildroot/package/lora-forwarder/Config.in
+@@ -0,0 +1,7 @@
++config BR2_PACKAGE_LORA_FORWARDER
++ bool "LoRa packet forwarder"
++ help
++ Forward LoRa packets received from SX1276/RFM95W transceivers to a
++ fixed IP network server.
++
++ https://github.com/tftelkamp/single_chan_pkt_fwd
+Index: buildroot/package/Config.in
+===================================================================
+--- buildroot.orig/package/Config.in
++++ buildroot/package/Config.in
+@@ -1524,6 +1524,7 @@ menu "Networking applications"
+ source "package/linphone/Config.in"
+ source "package/linux-zigbee/Config.in"
+ source "package/lldpd/Config.in"
++ source "package/lora-forwarder/Config.in"
+ source "package/lrzsz/Config.in"
+ source "package/macchanger/Config.in"
+ source "package/memcached/Config.in"
+Index: buildroot/package/lora-forwarder/0001-fix-cross-compiling.patch
+===================================================================
+--- /dev/null
++++ buildroot/package/lora-forwarder/0001-fix-cross-compiling.patch
+@@ -0,0 +1,29 @@
++Signed-off-by: Julien Boibessot <jul...@ar...>
++
++diff -urN lora-forwarder-a29921789bc5b63d6a7c51e46dd6314aca06b99e/Makefile lora-forwarder-a29921789bc5b63d6a7c51e46dd6314aca06b99e.mod/Makefile
++--- lora-forwarder-a29921789bc5b63d6a7c51e46dd6314aca06b99e/Makefile 2016-01-06 12:06:08.000000000 +0100
+++++ lora-forwarder-a29921789bc5b63d6a7c51e46dd6314aca06b99e.mod/Makefile 2016-10-28 18:38:25.527840090 +0200
++@@ -7,14 +7,14 @@
++
++ all: single_chan_pkt_fwd
++
++-single_chan_pkt_fwd: base64.o main.o
++- $(CC) main.o base64.o $(LIBS) -o single_chan_pkt_fwd
+++single_chan_pkt_fwd: base64.c main.cpp
+++ $(CC) $(CFLAGS) main.cpp base64.c $(LIBS) -o single_chan_pkt_fwd
++
++-main.o: main.cpp
++- $(CC) $(CFLAGS) main.cpp
++-
++-base64.o: base64.c
++- $(CC) $(CFLAGS) base64.c
+++#main.o: main.cpp
+++# $(CC) $(CFLAGS) main.cpp
+++#
+++#base64.o: base64.c
+++# $(CC) $(CFLAGS) base64.c
++
++ clean:
++- rm *.o single_chan_pkt_fwd
++\ Pas de fin de ligne à la fin du fichier
+++ rm -f *.o single_chan_pkt_fwd
diff --git a/patches/buildroot/2016.08/cleanup_buildroot.sh b/patches/buildroot/2016.08/cleanup_buildroot.sh
index fd36984..0bc616f 100755
--- a/patches/buildroot/2016.08/cleanup_buildroot.sh
+++ b/patches/buildroot/2016.08/cleanup_buildroot.sh
@@ -64,6 +64,9 @@ rm -rf buildroot/package/linux-firmware/linux-firmware.mk
rm -rf buildroot/package/linux-headers/2.6.29.6/0001-net-Support-inclusion-of-linux-socket.h-before-sys-s.patch
rm -rf buildroot/package/linux-headers/2.6.29.6/368-redhat-types_h-define-__aligned_u64-and-expose-to-userspace.patch
rm -rf buildroot/package/linux-headers/2.6.35.3/368-redhat-types_h-define-__aligned_u64-and-expose-to-userspace.patch
+rm -rf buildroot/package/lora-forwarder/0001-fix-cross-compiling.patch
+rm -rf buildroot/package/lora-forwarder/Config.in
+rm -rf buildroot/package/lora-forwarder/lora-forwarder.mk
rm -rf buildroot/package/ltrace/Config.in
rm -rf buildroot/package/marble/Config.in
rm -rf buildroot/package/marble/marble.mk
diff --git a/target/packages/as_devices/Makefile b/target/packages/as_devices/Makefile
index f4248d1..22e5a7b 100644
--- a/target/packages/as_devices/Makefile
+++ b/target/packages/as_devices/Makefile
@@ -51,6 +51,7 @@ install:
install -D $(C_LIB) $(INSTALL_DIR)/usr/lib/$(C_LIBNAME)
mkdir -p $(INSTALL_DIR)/usr/include/as_devices/
cp $(C_INCLUDE)/*.h $(INSTALL_DIR)/usr/include/as_devices/
+ cp $(C_INCLUDE)/wiringPi/*.h $(INSTALL_DIR)/usr/include/as_devices/
install-exe:
install -D $(C_LIB) $(INSTALL_DIR)/usr/lib/$(C_LIBNAME)
diff --git a/target/packages/as_devices/c/Makefile b/target/packages/as_devices/c/Makefile
index 2e373d3..ebaa128 100644
--- a/target/packages/as_devices/c/Makefile
+++ b/target/packages/as_devices/c/Makefile
@@ -28,6 +28,11 @@ OBJ += as_helpers.o
OBJ += as_power_supply.o
OBJ += as_tcs3472.o
+OBJ += wiringPi/wiringPi.o
+OBJ += wiringPi/wiringPiI2C.o
+OBJ += wiringPi/wiringPiSPI.o
+OBJ += wiringPi/wiringSerial.o
+
LIBRARY = as_devices
LIB_VERS = 1
STAT_LIB = $(LIBRARY).a
@@ -37,16 +42,16 @@ ARCHIVE_CMD = ar
ARCHIVE_OPTS = -cvq
$(LIBNAME): $(OBJ)
+ @echo " LNK $@"
@$(CC) -shared -Wl,-soname,$(SONAME) -o $(SONAME) $(OBJ)
@ln -sf $(SONAME) $(LIBNAME)
- @echo " LNK $@"
$(STAT_LIB): $(OBJ)
$(ARCHIVE_CMD) $(ARCHIVE_OPTS) $(STAT_LIB) $(OBJ)
%.o: %.c
- @$(CC) -fPIC -o $@ -c $< $(CFLAGS)
@echo " CC $@"
+ @$(CC) -fPIC -o $@ -c $< $(CFLAGS) -I./wiringPi/
clean:
rm -f $(OBJ) $(BINARY) $(LIBNAME) $(SONAME)
diff --git a/target/packages/as_devices/c/wiringPi/COPYING.LESSER b/target/packages/as_devices/c/wiringPi/COPYING.LESSER
new file mode 100644
index 0000000..65c5ca8
--- /dev/null
+++ b/target/packages/as_devices/c/wiringPi/COPYING.LESSER
@@ -0,0 +1,165 @@
+ GNU LESSER GENERAL PUBLIC LICENSE
+ Version 3, 29 June 2007
+
+ Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+
+ This version of the GNU Lesser General Public License incorporates
+the terms and conditions of version 3 of the GNU General Public
+License, supplemented by the additional permissions listed below.
+
+ 0. Additional Definitions.
+
+ As used herein, "this License" refers to version 3 of the GNU Lesser
+General Public License, and the "GNU GPL" refers to version 3 of the GNU
+General Public License.
+
+ "The Library" refers to a covered work governed by this License,
+other than an Application or a Combined Work as defined below.
+
+ An "Application" is any work that makes use of an interface provided
+by the Library, but which is not otherwise based on the Library.
+Defining a subclass of a class defined by the Library is deemed a mode
+of using an interface provided by the Library.
+
+ A "Combined Work" is a work produced by combining or linking an
+Application with the Library. The particular version of the Library
+with which the Combined Work was made is also called the "Linked
+Version".
+
+ The "Minimal Corresponding Source" for a Combined Work means the
+Corresponding Source for the Combined Work, excluding any source code
+for portions of the Combined Work that, considered in isolation, are
+based on the Application, and not on the Linked Version.
+
+ The "Corresponding Application Code" for a Combined Work means the
+object code and/or source code for the Application, including any data
+and utility programs needed for reproducing the Combined Work from the
+Application, but excluding the System Libraries of the Combined Work.
+
+ 1. Exception to Section 3 of the GNU GPL.
+
+ You may convey a covered work under sections 3 and 4 of this License
+without being bound by section 3 of the GNU GPL.
+
+ 2. Conveying Modified Versions.
+
+ If you modify a copy of the Library, and, in your modifications, a
+facility refers to a function or data to be supplied by an Application
+that uses the facility (other than as an argument passed when the
+facility is invoked), then you may convey a copy of the modified
+version:
+
+ a) under this License, provided that you make a good faith effort to
+ ensure that, in the event an Application does not supply the
+ function or data, the facility still operates, and performs
+ whatever part of its purpose remains meaningful, or
+
+ b) under the GNU GPL, with none of the additional permissions of
+ this License applicable to that copy.
+
+ 3. Object Code Incorporating Material from Library Header Files.
+
+ The object code form of an Application may incorporate material from
+a header file that is part of the Library. You may convey such object
+code under terms of your choice, provided that, if the incorporated
+material is not limited to numerical parameters, data structure
+layouts and accessors, or small macros, inline functions and templates
+(ten or fewer lines in length), you do both of the following:
+
+ a) Give prominent notice with each copy of the object code that the
+ Library is used in it and that the Library and its use are
+ covered by this License.
+
+ b) Accompany the object code with a copy of the GNU GPL and this license
+ document.
+
+ 4. Combined Works.
+
+ You may convey a Combined Work under terms of your choice that,
+taken together, effectively do not restrict modification of the
+portions of the Library contained in the Combined Work and reverse
+engineering for debugging such modifications, if you also do each of
+the following:
+
+ a) Give prominent notice with each copy of the Combined Work that
+ the Library is used in it and that the Library and its use are
+ covered by this License.
+
+ b) Accompany the Combined Work with a copy of the GNU GPL and this license
+ document.
+
+ c) For a Combined Work that displays copyright notices during
+ execution, include the copyright notice for the Library among
+ these notices, as well as a reference directing the user to the
+ copies of the GNU GPL and this license document.
+
+ d) Do one of the following:
+
+ 0) Convey the Minimal Corresponding Source under the terms of this
+ License, and the Corresponding Application Code in a form
+ suitable for, and under terms that permit, the user to
+ recombine or relink the Application with a modified version of
+ the Linked Version to produce a modified Combined Work, in the
+ manner specified by section 6 of the GNU GPL for conveying
+ Corresponding Source.
+
+ 1) Use a suitable shared library mechanism for linking with the
+ Library. A suitable mechanism is one that (a) uses at run time
+ a copy of the Library already present on the user's computer
+ system, and (b) will operate properly with a modified version
+ of the Library that is interface-compatible with the Linked
+ Version.
+
+ e) Provide Installation Information, but only if you would otherwise
+ be required to provide such information under section 6 of the
+ GNU GPL, and only to the extent that such information is
+ necessary to install and execute a modified version of the
+ Combined Work produced by recombining or relinking the
+ Application with a modified version of the Linked Version. (If
+ you use option 4d0, the Installation Information must accompany
+ the Minimal Corresponding Source and Corresponding Application
+ Code. If you use option 4d1, you must provide the Installation
+ Information in the manner specified by section 6 of the GNU GPL
+ for conveying Corresponding Source.)
+
+ 5. Combined Libraries.
+
+ You may place library facilities that are a work based on the
+Library side by side in a single library together with other library
+facilities that are not Applications and are not covered by this
+License, and convey such a combined library under terms of your
+choice, if you do both of the following:
+
+ a) Accompany the combined library with a copy of the same work based
+ on the Library, uncombined with any other library facilities,
+ conveyed under the terms of this License.
+
+ b) Give prominent notice with the combined library that part of it
+ is a work based on the Library, and explaining where to find the
+ accompanying uncombined form of the same work.
+
+ 6. Revised Versions of the GNU Lesser General Public License.
+
+ The Free Software Foundation may publish revised and/or new versions
+of the GNU Lesser General Public License from time to time. Such new
+versions will be similar in spirit to the present version, but may
+differ in detail to address new problems or concerns.
+
+ Each version is given a distinguishing version number. If the
+Library as you received it specifies that a certain numbered version
+of the GNU Lesser General Public License "or any later version"
+applies to it, you have the option of following the terms and
+conditions either of that published version or of any later version
+published by the Free Software Foundation. If the Library as you
+received it does not specify a version number of the GNU Lesser
+General Public License, you may choose any version of the GNU Lesser
+General Public License ever published by the Free Software Foundation.
+
+ If the Library as you received it specifies that a proxy can decide
+whether future versions of the GNU Lesser General Public License shall
+apply, that proxy's public statement of acceptance of any version is
+permanent authorization for you to choose that version for the
+Library.
diff --git a/target/packages/as_devices/c/wiringPi/wiringPi.c b/target/packages/as_devices/c/wiringPi/wiringPi.c
new file mode 100644
index 0000000..a24baaf
--- /dev/null
+++ b/target/packages/as_devices/c/wiringPi/wiringPi.c
@@ -0,0 +1,405 @@
+/*
+ * wiringPi:
+ * Arduino look-a-like Wiring library for the Raspberry Pi
+ * Copyright (c) 2012-2015 Gordon Henderson
+ * Additional code for pwmSetClock by Chris Hall <ch...@kc...>
+ *
+ * Thanks to code samples from Gert Jan van Loo and the
+ * BCM2835 ARM Peripherals manual, however it's missing
+ * the clock section /grr/mutter/
+ ***********************************************************************
+ * This file is an adaptation to Armadeus SOM of wiringPi:
+ * https://projects.drogon.net/raspberry-pi/wiringpi/
+ *
+ * wiringPi is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * wiringPi is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with wiringPi.
+ * If not, see <http://www.gnu.org/licenses/>.
+ ***********************************************************************
+ */
+
+#include <stdio.h>
+#include <stdlib.h>
+#include <stdarg.h>
+#include <stdint.h>
+#include <string.h>
+#include <sys/types.h>
+#include <unistd.h> /* lseek() */
+#include <poll.h> /* poll() */
+#include <sys/time.h> /* gettimeofday() */
+#include <time.h> /* nanosleep() */
+#include <fcntl.h> /* open() */
+
+#include "wiringPi.h"
+
+// Environment Variables
+
+#define ENV_DEBUG "WIRINGPI_DEBUG"
+#define ENV_CODES "WIRINGPI_CODES"
+#define ENV_GPIOMEM "WIRINGPI_GPIOMEM"
+
+
+static uint64_t epochMilli, epochMicro ;
+
+static int wiringPiMode = WPI_MODE_UNINITIALISED ;
+// Debugging & Return codes
+
+int wiringPiDebug = FALSE ;
+int wiringPiReturnCodes = FALSE ;
+
+#define GPIO_NUMBER 128
+
+static int sysFds [GPIO_NUMBER] =
+{
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+} ;
+
+static int pinToGpio [] =
+{
+ 24, -1, -1, -1, -1, -1, 97, 10,
+ -1, -1, -1, -1, -1, -1, -1, -1,
+// Padding:
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, // ... 31
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, // ... 47
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, // ... 63
+} ;
+
+/*
+ * wiringPiFailure:
+ * Fail. Or not.
+ *********************************************************************************
+ */
+
+int wiringPiFailure (int fatal, const char *message, ...)
+{
+ va_list argp ;
+ char buffer [1024] ;
+
+ if (!fatal && wiringPiReturnCodes)
+ return -1 ;
+
+ va_start (argp, message) ;
+ vsnprintf (buffer, 1023, message, argp) ;
+ va_end (argp) ;
+
+ fprintf (stderr, "%s", buffer) ;
+ exit (EXIT_FAILURE) ;
+
+ return 0 ;
+}
+
+
+/*
+ * wpiPinToGpio:
+ * Translate a wiringPi Pin number to native GPIO pin number.
+ * Provided for external support.
+ *********************************************************************************
+ */
+
+int wpiPinToGpio (int wpiPin)
+{
+ return pinToGpio [wpiPin & 63] ;
+}
+
+/*
+ * pinMode:
+ * Sets the mode of a pin to be input, output or PWM output
+ *********************************************************************************
+ */
+
+void pinMode (int pin, int mode)
+{
+ fprintf(stderr, "wiringPi emulation in as_devices: your software is calling pinMode(%d, %d) which is not implemented. \n"
+ "I hope you did the corresponding echo %d > /sys/class/gpio/export + echo in/out > /sys/class/gpio/gpio%d/direction !\n",
+ pin, mode, wpiPinToGpio(pin), wpiPinToGpio(pin));
+}
+
+
+/*
+ * digitalRead:
+ * Read the value of a given Pin, returning HIGH or LOW
+ *********************************************************************************
+ */
+
+int digitalRead (int pin)
+{
+ char c ;
+
+ // WiringPi N° -> Linux GPIO N°
+ if (wiringPiMode == WPI_MODE_PINS)
+ pin = wpiPinToGpio(pin);
+
+ //printf("%s(%d)\n", __func__, pin);
+
+ if (sysFds [pin] == -1) {
+ fprintf(stderr, "%s: gpio%d not exported !\n", __func__ ,pin);
+ return LOW ;
+ }
+
+ lseek (sysFds [pin], 0L, SEEK_SET) ;
+ read (sysFds [pin], &c, 1) ;
+ return (c == '0') ? LOW : HIGH ;
+}
+
+
+/*
+ * digitalWrite:
+ * Set an output bit
+ *********************************************************************************
+ */
+
+void digitalWrite (int pin, int value)
+{
+ // WiringPi N° -> Linux GPIO N°
+ if (wiringPiMode == WPI_MODE_PINS)
+ pin = wpiPinToGpio(pin);
+
+ //printf("%s(%d, %d)\n", __func__, pin, value);
+ if (sysFds [pin] != -1)
+ {
+ if (value == LOW)
+ write (sysFds [pin], "0\n", 2) ;
+ else
+ write (sysFds [pin], "1\n", 2) ;
+ } else {
+ fprintf(stderr, "%s: gpio%d not exported !\n", __func__ ,pin);
+ }
+
+ return ;
+}
+
+
+/*
+ * waitForInterrupt:
+ * Pi Specific.
+ * Wait for Interrupt on a GPIO pin.
+ * This is actually done via the /sys/class/gpio interface regardless of
+ * the wiringPi access mode in-use. Maybe sometime it might get a better
+ * way for a bit more efficiency.
+ *********************************************************************************
+ */
+
+int waitForInterrupt (int pin, int mS)
+{
+ int fd, x ;
+ uint8_t c ;
+ struct pollfd polls ;
+
+ if ((fd = sysFds [pin]) == -1)
+ return -2 ;
+
+// Setup poll structure
+
+ polls.fd = fd ;
+ polls.events = POLLPRI ; // Urgent data!
+
+// Wait for it ...
+
+ x = poll (&polls, 1, mS) ;
+
+// Do a dummy read to clear the interrupt
+// A one character read appars to be enough.
+// Followed by a seek to reset it.
+
+ (void)read (fd, &c, 1) ;
+ lseek (fd, 0, SEEK_SET) ;
+
+ return x ;
+}
+
+
+/*
+ * initialiseEpoch:
+ * Initialise our start-of-time variable to be the current unix
+ * time in milliseconds and microseconds.
+ *********************************************************************************
+ */
+
+static void initialiseEpoch (void)
+{
+ struct timeval tv ;
+
+ gettimeofday (&tv, NULL) ;
+ epochMilli = (uint64_t)tv.tv_sec * (uint64_t)1000 + (uint64_t)(tv.tv_usec / 1000) ;
+ epochMicro = (uint64_t)tv.tv_sec * (uint64_t)1000000 + (uint64_t)(tv.tv_usec) ;
+}
+
+
+/*
+ * delay:
+ * Wait for some number of milliseconds
+ *********************************************************************************
+ */
+
+void delay (unsigned int howLong)
+{
+ struct timespec sleeper, dummy ;
+
+ sleeper.tv_sec = (time_t)(howLong / 1000) ;
+ sleeper.tv_nsec = (long)(howLong % 1000) * 1000000 ;
+
+ nanosleep (&sleeper, &dummy) ;
+}
+
+
+/*
+ * delayMicroseconds:
+ * This is somewhat intersting. It seems that on the Pi, a single call
+ * to nanosleep takes some 80 to 130 microseconds anyway, so while
+ * obeying the standards (may take longer), it's not always what we
+ * want!
+ *
+ * So what I'll do now is if the delay is less than 100uS we'll do it
+ * in a hard loop, watching a built-in counter on the ARM chip. This is
+ * somewhat sub-optimal in that it uses 100% CPU, something not an issue
+ * in a microcontroller, but under a multi-tasking, multi-user OS, it's
+ * wastefull, however we've no real choice )-:
+ *
+ * Plan B: It seems all might not be well with that plan, so changing it
+ * to use gettimeofday () and poll on that instead...
+ *********************************************************************************
+ */
+
+void delayMicrosecondsHard (unsigned int howLong)
+{
+ struct timeval tNow, tLong, tEnd ;
+
+ gettimeofday (&tNow, NULL) ;
+ tLong.tv_sec = howLong / 1000000 ;
+ tLong.tv_usec = howLong % 1000000 ;
+ timeradd (&tNow, &tLong, &tEnd) ;
+
+ while (timercmp (&tNow, &tEnd, <))
+ gettimeofday (&tNow, NULL) ;
+}
+
+void delayMicroseconds (unsigned int howLong)
+{
+ struct timespec sleeper ;
+ unsigned int uSecs = howLong % 1000000 ;
+ unsigned int wSecs = howLong / 1000000 ;
+
+ /**/ if (howLong == 0)
+ return ;
+ else if (howLong < 100)
+ delayMicrosecondsHard (howLong) ;
+ else
+ {
+ sleeper.tv_sec = wSecs ;
+ sleeper.tv_nsec = (long)(uSecs * 1000L) ;
+ nanosleep (&sleeper, NULL) ;
+ }
+}
+
+
+/*
+ * millis:
+ * Return a number of milliseconds as an unsigned int.
+ *********************************************************************************
+ */
+
+unsigned int millis (void)
+{
+ struct timeval tv ;
+ uint64_t now ;
+
+ gettimeofday (&tv, NULL) ;
+ now = (uint64_t)tv.tv_sec * (uint64_t)1000 + (uint64_t)(tv.tv_usec / 1000) ;
+
+ return (uint32_t)(now - epochMilli) ;
+}
+
+
+/*
+ * micros:
+ * Return a number of microseconds as an unsigned int.
+ *********************************************************************************
+ */
+
+unsigned int micros (void)
+{
+ struct timeval tv ;
+ uint64_t now ;
+
+ gettimeofday (&tv, NULL) ;
+ now = (uint64_t)tv.tv_sec * (uint64_t)1000000 + (uint64_t)tv.tv_usec ;
+
+ return (uint32_t)(now - epochMicro) ;
+}
+
+
+/*
+ * wiringPiSetupSys:
+ * Must be called once at the start of your program execution.
+ *
+ * Initialisation (again), however this time we are using the /sys/class/gpio
+ * interface to the GPIO systems - slightly slower, but always usable as
+ * a non-root user, assuming the devices are already exported and setup correctly.
+ */
+
+int wiringPiSetupSys (void)
+{
+// int boardRev ;
+ int pin ;
+ char fName [128] ;
+ static int alreadyCalled = FALSE ;
+
+// This is here to trap the unwary - those who's program appears to work then fails some
+// time later with a weird error message because you run out of file-handles.
+
+ if (alreadyCalled)
+ (void)wiringPiFailure (WPI_FATAL, "wiringPiSetupSys: You must only call this once per program run. This is a fatal error. Please fix your code.\n") ;
+
+ alreadyCalled = TRUE ;
+
+ if (getenv (ENV_DEBUG) != NULL)
+ wiringPiDebug = TRUE ;
+
+ if (getenv (ENV_CODES) != NULL)
+ wiringPiReturnCodes = TRUE ;
+
+ if (wiringPiDebug)
+ printf ("wiringPi: wiringPiSetupSys called\n") ;
+
+// Open and scan the directory, looking for exported GPIOs, and pre-open
+// the 'value' interface to speed things up for later
+
+ for (pin = 0 ; pin < GPIO_NUMBER ; ++pin)
+ {
+ sprintf (fName, "/sys/class/gpio/gpio%d/value", pin) ;
+ sysFds [pin] = open (fName, O_RDWR) ;
+ }
+
+ initialiseEpoch () ;
+
+ wiringPiMode = WPI_MODE_GPIO_SYS ;
+
+ return 0 ;
+}
+
+
+int wiringPiSetup(void)
+{
+ int res;
+
+ // On Armadeus we always use /sys/class/gpio interface
+ res = wiringPiSetupSys();
+ wiringPiMode = WPI_MODE_PINS;
+ return res;
+}
diff --git a/target/packages/as_devices/c/wiringPi/wiringPi.h b/target/packages/as_devices/c/wiringPi/wiringPi.h
new file mode 100644
index 0000000..e51e397
--- /dev/null
+++ b/target/packages/as_devices/c/wiringPi/wiringPi.h
@@ -0,0 +1,181 @@
+/*
+ * wiringPi.h:
+ * Arduino like Wiring library for the Raspberry Pi.
+ * Copyright (c) 2012-2016 Gordon Henderson
+ ***********************************************************************
+ * This file is an adaptation to Armadeus SOM of wiringPi:
+ * https://projects.drogon.net/raspberry-pi/wiringpi/
+ *
+ * wiringPi is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * wiringPi is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with wiringPi. If not, see <http://www.gnu.org/licenses/>.
+ ***********************************************************************
+ */
+
+#ifndef __WIRING_PI_H__
+#define __WIRING_PI_H__
+
+// C doesn't have true/false by default and I can never remember which
+// way round they are, so ...
+
+#ifndef TRUE
+# define TRUE (1==1)
+# define FALSE (!TRUE)
+#endif
+
+// Handy defines
+
+// wiringPi modes
+
+#define WPI_MODE_PINS 0
+//#define WPI_MODE_GPIO 1
+#define WPI_MODE_GPIO_SYS 2
+//#define WPI_MODE_PHYS 3
+//#define WPI_MODE_PIFACE 4
+#define WPI_MODE_UNINITIALISED -1
+
+// Pin modes
+
+#define INPUT 0
+#define OUTPUT 1
+/*
+#define PWM_OUTPUT 2
+#define GPIO_CLOCK 3
+#define SOFT_PWM_OUTPUT 4
+#define SOFT_TONE_OUTPUT 5
+#define PWM_TONE_OUTPUT 6
+*/
+#define LOW 0
+#define HIGH 1
+/*
+// Pull up/down/none
+
+#define PUD_OFF 0
+#define PUD_DOWN 1
+#define PUD_UP 2
+
+// PWM
+
+#define PWM_MODE_MS 0
+#define PWM_MODE_BAL 1
+
+// Interrupt levels
+
+#define INT_EDGE_SETUP 0
+#define INT_EDGE_FALLING 1
+#define INT_EDGE_RISING 2
+#define INT_EDGE_BOTH 3
+
+// Pi model types and version numbers
+// Intended for the GPIO program Use at your own risk.
+
+#define PI_MODEL_A 0
+#define PI_MODEL_B 1
+#define PI_MODEL_AP 2
+#define PI_MODEL_BP 3
+#define PI_MODEL_2 4
+#define PI_ALPHA 5
+#define PI_MODEL_CM 6
+#define PI_MODEL_07 7
+#define PI_MODEL_3 8
+#define PI_MODEL_ZERO 9
+
+#define PI_VERSION_1 0
+#define PI_VERSION_1_1 1
+#define PI_VERSION_1_2 2
+#define PI_VERSION_2 3
+
+#define PI_MAKER_SONY 0
+#define PI_MAKER_EGOMAN 1
+#define PI_MAKER_MBEST 2
+#define PI_MAKER_UNKNOWN 3
+
+extern const char *piModelNames [16] ;
+extern const char *piRevisionNames [16] ;
+extern const char *piMakerNames [16] ;
+extern const int piMemorySize [ 8] ;
+
+
+// Intended for the GPIO program Use at your own risk.
+
+// Threads
+
+#define PI_THREAD(X) void *X (void *dummy)
+*/
+// Failure modes
+
+#define WPI_FATAL (1==1)
+#define WPI_ALMOST (1==2)
+
+// Function prototypes
+// c++ wrappers thanks to a comment by Nick Lott
+// (and others on the Raspberry Pi forums)
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+// Data
+
+// Internal
+
+extern int wiringPiFailure (int fatal, const char *message, ...) ;
+
+// Core wiringPi functions
+
+extern struct wiringPiNodeStruct *wiringPiFindNode (int pin) ;
+extern struct wiringPiNodeStruct *wiringPiNewNode (int pinBase, int numPins) ;
+
+extern int wiringPiSetup (void) ;
+extern int wiringPiSetupSys (void) ;
+
+//extern void pinModeAlt (int pin, int mode) ;
+extern void pinMode (int pin, int mode) ;
+//extern void pullUpDnControl (int pin, int pud) ;
+extern int digitalRead (int pin) ;
+extern void digitalWrite (int pin, int value) ;
+//extern void pwmWrite (int pin, int value) ;
+//extern int analogRead (int pin) ;
+//extern void analogWrite (int pin, int value) ;
+
+// On-Board Raspberry Pi hardware specific stuff
+
+extern int wpiPinToGpio (int wpiPin) ;
+
+// Interrupts
+// (Also Pi hardware specific)
+
+extern int waitForInterrupt (int pin, int mS) ;
+extern int wiringPiISR (int pin, int mode, void (*function)(void)) ;
+
+// Threads
+
+extern int piThreadCreate (void *(*fn)(void *)) ;
+extern void piLock (int key) ;
+extern void piUnlock (int key) ;
+
+// Schedulling priority
+
+extern int piHiPri (const int pri) ;
+
+// Extras from arduino land
+
+extern void delay (unsigned int howLong) ;
+extern void delayMicroseconds (unsigned int howLong) ;
+extern unsigned int millis (void) ;
+extern unsigned int micros (void) ;
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
diff --git a/target/packages/as_devices/c/wiringPi/wiringPiI2C.c b/target/packages/as_devices/c/wiringPi/wiringPiI2C.c
new file mode 100644
index 0000000..92f570f
--- /dev/null
+++ b/target/packages/as_devices/c/wiringPi/wiringPiI2C.c
@@ -0,0 +1,232 @@
+/*
+ * wiringPiI2C.c:
+ * Simplified I2C access routines
+ * Copyright (c) 2013 Gordon Henderson
+ ***********************************************************************
+ * This file is an adaptation to Armadeus SOM of wiringPi:
+ * https://projects.drogon.net/raspberry-pi/wiringpi/
+ *
+ * wiringPi is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * wiringPi is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with wiringPi.
+ * If not, see <http://www.gnu.org/licenses/>.
+ ***********************************************************************
+ */
+
+/*
+ * Notes:
+ * The Linux I2C code is actually the same (almost) as the SMBus code.
+ * SMBus is System Management Bus - and in essentially I2C with some
+ * additional functionality added, and stricter controls on the electrical
+ * specifications, etc. however I2C does work well with it and the
+ * protocols work over both.
+ *
+ * I'm directly including the SMBus functions here as some Linux distros
+ * lack the correct header files, and also some header files are GPLv2
+ * rather than the LGPL that wiringPi is released under - presumably because
+ * originally no-one expected I2C/SMBus to be used outside the kernel -
+ * however enter the Raspberry Pi with people now taking directly to I2C
+ * devices without going via the kernel...
+ *
+ * This may ultimately reduce the flexibility of this code, but it won't be
+ * hard to maintain it and keep it current, should things change.
+ *
+ * Information here gained from: kernel/Documentation/i2c/dev-interface
+ * as well as other online resources.
+ *********************************************************************************
+ */
+
+#include <stdio.h>
+#include <stdlib.h>
+#include <stdint.h>
+#include <errno.h>
+#include <string.h>
+#include <fcntl.h>
+#include <sys/ioctl.h>
+
+#include "wiringPi.h"
+#include "wiringPiI2C.h"
+
+// I2C definitions
+
+#define I2C_SLAVE 0x0703
+#define I2C_SMBUS 0x0720 /* SMBus-level access */
+
+#define I2C_SMBUS_READ 1
+#define I2C_SMBUS_WRITE 0
+
+// SMBus transaction types
+
+#define I2C_SMBUS_QUICK 0
+#define I2C_SMBUS_BYTE 1
+#define I2C_SMBUS_BYTE_DATA 2
+#define I2C_SMBUS_WORD_DATA 3
+#define I2C_SMBUS_PROC_CALL 4
+#define I2C_SMBUS_BLOCK_DATA 5
+#define I2C_SMBUS_I2C_BLOCK_BROKEN 6
+#define I2C_SMBUS_BLOCK_PROC_CALL 7 /* SMBus 2.0 */
+#define I2C_SMBUS_I2C_BLOCK_DATA 8
+
+// SMBus messages
+
+#define I2C_SMBUS_BLOCK_MAX 32 /* As specified in SMBus standard */
+#define I2C_SMBUS_I2C_BLOCK_MAX 32 /* Not specified but we use same structure */
+
+// Structures used in the ioctl() calls
+
+union i2c_smbus_data
+{
+ uint8_t byte ;
+ uint16_t word ;
+ uint8_t block [I2C_SMBUS_BLOCK_MAX + 2] ; // block [0] is used for length + one more for PEC
+} ;
+
+struct i2c_smbus_ioctl_data
+{
+ char read_write ;
+ uint8_t command ;
+ int size ;
+ union i2c_smbus_data *data ;
+} ;
+
+static inline int i2c_smbus_access (int fd, char rw, uint8_t command, int size, union i2c_smbus_data *data)
+{
+ struct i2c_smbus_ioctl_data args ;
+
+ args.read_write = rw ;
+ args.command = command ;
+ args.size = size ;
+ args.data = data ;
+ return ioctl (fd, I2C_SMBUS, &args) ;
+}
+
+
+/*
+ * wiringPiI2CRead:
+ * Simple device read
+ *********************************************************************************
+ */
+
+int wiringPiI2CRead (int fd)
+{
+ union i2c_smbus_data data ;
+
+ if (i2c_smbus_access (fd, I2C_SMBUS_READ, 0, I2C_SMBUS_BYTE, &data))
+ return -1 ;
+ else
+ return data.byte & 0xFF ;
+}
+
+
+/*
+ * wiringPiI2CReadReg8: wiringPiI2CReadReg16:
+ * Read an 8 or 16-bit value from a regsiter on the device
+ *********************************************************************************
+ */
+
+int wiringPiI2CReadReg8 (int fd, int reg)
+{
+ union i2c_smbus_data data;
+
+ if (i2c_smbus_access (fd, I2C_SMBUS_READ, reg, I2C_SMBUS_BYTE_DATA, &data))
+ return -1 ;
+ else
+ return data.byte & 0xFF ;
+}
+
+int wiringPiI2CReadReg16 (int fd, int reg)
+{
+ union i2c_smbus_data data;
+
+ if (i2c_smbus_access (fd, I2C_SMBUS_READ, reg, I2C_SMBUS_WORD_DATA, &data))
+ return -1 ;
+ else
+ return data.word & 0xFFFF ;
+}
+
+
+/*
+ * wiringPiI2CWrite:
+ * Simple device write
+ *********************************************************************************
+ */
+
+int wiringPiI2CWrite (int fd, int data)
+{
+ return i2c_smbus_access (fd, I2C_SMBUS_WRITE, data, I2C_SMBUS_BYTE, NULL) ;
+}
+
+
+/*
+ * wiringPiI2CWriteReg8: wiringPiI2CWriteReg16:
+ * Write an 8 or 16-bit value to the given register
+ *********************************************************************************
+ */
+
+int wiringPiI2CWriteReg8 (int fd, int reg, int value)
+{
+ union i2c_smbus_data data ;
+
+ data.byte = value ;
+ return i2c_smbus_access (fd, I2C_SMBUS_WRITE, reg, I2C_SMBUS_BYTE_DATA, &data) ;
+}
+
+int wiringPiI2CWriteReg16 (int fd, int reg, int value)
+{
+ union i2c_smbus_data data ;
+
+ data.word = value ;
+ return i2c_smbus_access (fd, I2C_SMBUS_WRITE, reg, I2C_SMBUS_WORD_DATA, &data) ;
+}
+
+
+/*
+ * wiringPiI2CSetupInterface:
+ * Undocumented access to set the interface explicitly - might be used
+ * for the Pi's 2nd I2C interface...
+ *********************************************************************************
+ */
+
+int wiringPiI2CSetupInterface (const char *device, int devId)
+{
+ int fd ;
+
+ if ((fd = open (device, O_RDWR)) < 0)
+ return wiringPiFailure (WPI_ALMOST, "Unable to open I2C device: %s\n", strerror (errno)) ;
+
+ if (ioctl (fd, I2C_SLAVE, devId) < 0)
+ return wiringPiFailure (WPI_ALMOST, "Unable to select I2C device: %s\n", strerror (errno)) ;
+
+ return fd ;
+}
+
+
+/*
+ * wiringPiI2CSetup:
+ * Open the I2C device, and register the target device
+ *********************************************************************************
+ */
+
+int wiringPiI2CSetup (const int devId)
+{
+// int rev ;
+ const char *device ;
+
+/* rev = piBoardRev () ;
+
+ if (rev == 1)
+ device = "/dev/i2c-0" ;
+ else */
+ device = "/dev/i2c-1" ;
+
+ return wiringPiI2CSetupInterface (device, devId) ;
+}
diff --git a/target/packages/as_devices/c/wiringPi/wiringPiI2C.h b/target/packages/as_devices/c/wiringPi/wiringPiI2C.h
new file mode 100644
index 0000000..11cbee4
--- /dev/null
+++ b/target/packages/as_devices/c/wiringPi/wiringPiI2C.h
@@ -0,0 +1,42 @@
+/*
+ * wiringPiI2C.h:
+ * Simplified I2C access routines
+ * Copyright (c) 2013 Gordon Henderson
+ ***********************************************************************
+ * This file is an adaptation to Armadeus SOM of wiringPi:
+ * https://projects.drogon.net/raspberry-pi/wiringpi/
+ *
+ * wiringPi is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * wiringPi is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with wiringPi.
+ * If not, see <http://www.gnu.org/licenses/>.
+ ***********************************************************************
+ */
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+extern int wiringPiI2CRead (int fd) ;
+extern int wiringPiI2CReadReg8 (int fd, int reg) ;
+extern int wiringPiI2CReadReg16 (int fd, int reg) ;
+
+extern int wiringPiI2CWrite (int fd, int data) ;
+extern int wiringPiI2CWriteReg8 (int fd, int reg, int data) ;
+extern int wiringPiI2CWriteReg16 (int fd, int reg, int data) ;
+
+extern int wiringPiI2CSetupInterface (const char *device, int devId) ;
+extern int wiringPiI2CSetup (const int devId) ;
+
+#ifdef __cplusplus
+}
+#endif
diff --git a/target/packages/as_devices/c/wiringPi/wiringPiSPI.c b/target/packages/as_devices/c/wiringPi/wiringPiSPI.c
new file mode 100644
index 0000000..94539c1
--- /dev/null
+++ b/target/packages/as_devices/c/wiringPi/wiringPiSPI.c
@@ -0,0 +1,136 @@
+/*
+ * wiringPiSPI.c:
+ * Simplified SPI access routines
+ * Copyright (c) 2012-2015 Gordon Henderson
+ ***********************************************************************
+ * This file is an adaptation to Armadeus SOM of wiringPi:
+ * https://projects.drogon.net/raspberry-pi/wiringpi/
+ *
+ * wiringPi is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * wiringPi is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with wiringPi.
+ * If not, see <http://www.gnu.org/licenses/>.
+ ***********************************************************************
+ */
+
+
+#include <stdint.h>
+#include <fcntl.h>
+#include <errno.h>
+#include <string.h>
+#include <sys/ioctl.h>
+#include <linux/spi/spidev.h>
+
+#include "wiringPi.h"
+
+#include "wiringPiSPI.h"
+
+
+// The SPI bus parameters
+// Variables as they need to be passed as pointers later on
+
+const static char *spiDev0 = "/dev/spidev3.0" ; // OPOS6ULDev
+const static char *spiDev1 = "/dev/spidev3.1" ; // OPOS6ULDev
+const static uint8_t spiBPW = 8 ;
+const static uint16_t spiDelay = 0 ;
+
+static uint32_t spiSpeeds [2] ;
+static int spiFds [2] ;
+
+
+/*
+ * wiringPiSPIGetFd:
+ * Return the file-descriptor for the given channel
+ *********************************************************************************
+ */
+
+int wiringPiSPIGetFd (int channel)
+{
+ return spiFds [channel & 1] ;
+}
+
+
+/*
+ * wiringPiSPIDataRW:
+ * Write and Read a block of data over the SPI bus.
+ * Note the data ia being read into the transmit buffer, so will
+ * overwrite it!
+ * This is also a full-duplex operation.
+ *********************************************************************************
+ */
+
+int wiringPiSPIDataRW (int channel, unsigned char *data, int len)
+{
+ struct spi_ioc_transfer spi ;
+
+ channel &= 1 ;
+
+// Mentioned in spidev.h but not used in the original kernel documentation
+// test program )-:
+
+ memset (&spi, 0, sizeof (spi)) ;
+
+ spi.tx_buf = (unsigned long)data ;
+ spi.rx_buf = (unsigned long)data ;
+ spi.len = len ;
+ spi.delay_usecs = spiDelay ;
+ spi.speed_hz = spiSpeeds [channel] ;
+ spi.bits_per_word = spiBPW ;
+
+ return ioctl (spiFds [channel], SPI_IOC_MESSAGE(1), &spi) ;
+}
+
+
+/*
+ * wiringPiSPISetupMode:
+ * Open the SPI device, and set it up, with the mode, etc.
+ *********************************************************************************
+ */
+
+int wiringPiSPISetupMode (int channel, int speed, int mode)
+{
+ int fd ;
+
+ mode &= 3 ; // Mode is 0, 1, 2 or 3
+ channel &= 1 ; // Channel is 0 or 1
+
+ if ((fd = open (channel == 0 ? spiDev0 : spiDev1, O_RDWR)) < 0)
+ return wiringPiFailure (WPI_ALMOST, "Unable to open SPI device: %s (forgot to modprobe spidev ?)\n", strerror (errno)) ;
+
+ spiSpeeds [channel] = speed ;
+ spiFds [channel] = fd ;
+
+// Set SPI parameters.
+
+ if (ioctl (fd, SPI_IOC_WR_MODE, &mode) < 0)
+ return wiringPiFailure (WPI_ALMOST, "SPI Mode Change failure: %s\n", strerror (errno)) ;
+
+ if (ioctl (fd, SPI_IOC_WR_BITS_PER_WORD, &spiBPW) < 0)
+ return wiringPiFailure (WPI_ALMOST, "SPI BPW Change failure: %s\n", strerror (errno)) ;
+
+ if (ioctl (fd, SPI_IOC_WR_MAX_SPEED_HZ, &speed) < 0)
+ return wiringPiFailure (WPI_ALMOST, "SPI Speed Change failure: %s\n", strerror (errno)) ;
+
+ return fd ;
+}
+
+
+/*
+ * wiringPiSPISetup:
+ * Open the SPI device, and set it up, etc. in the default MODE 0
+ *********************************************************************************
+ */
+
+int wiringPiSPISetup (int channel, int speed)
+{
+ return wiringPiSPISetupMode (channel, speed, 0) ;
+}
diff --git a/target/packages/as_devices/c/wiringPi/wiringPiSPI.h b/target/packages/as_devices/c/wiringPi/wiringPiSPI.h
new file mode 100644
index 0000000..4d2e16b
--- /dev/null
+++ b/target/packages/as_devices/c/wiringPi/wiringPiSPI.h
@@ -0,0 +1,36 @@
+/*
+ * wiringPiSPI.h:
+ * Simplified SPI access routines
+ * Copyright (c) 2012-2015 Gordon Henderson
+ ***********************************************************************
+ * This file is an adaptation to Armadeus SOM of wiringPi:
+ * https://projects.drogon.net/raspberry-pi/wiringpi/
+ *
+ * wiringPi is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * wiringPi is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with wiringPi.
+ * If not, see <http://www.gnu.org/licenses/>.
+ ***********************************************************************
+ */
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+int wiringPiSPIGetFd (int channel) ;
+int wiringPiSPIDataRW (int channel, unsigned char *data, int len) ;
+int wiringPiSPISetupMode (int channel, int speed, int mode) ;
+int wiringPiSPISetup (int channel, int speed) ;
+
+#ifdef __cplusplus
+}
+#endif
diff --git a/target/packages/as_devices/c/wiringPi/wiringSerial.c b/target/packages/as_devices/c/wiringPi/wiringSerial.c
new file mode 100644
index 0000000..410f42e
--- /dev/null
+++ b/target/packages/as_devices/c/wiringPi/wiringSerial.c
@@ -0,0 +1,213 @@
+/*
+ * wiringSerial.c:
+ * Handle a serial port
+ ***********************************************************************
+ * This file is an adaptation to Armadeus SOM of wiringPi:
+ * https://projects.drogon.net/raspberry-pi/wiringpi/
+ *
+ * wiringPi is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * wiringPi is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with wiringPi. If not, see <http://www.gnu.org/licenses/>.
+ ***********************************************************************
+ */
+
+#include <stdio.h>
+#include <stdlib.h>
+#include <stdint.h>
+#include <stdarg.h>
+#include <string.h>
+#include <termios.h>
+#include <unistd.h>
+#include <fcntl.h>
+#include <sys/ioctl.h>
+#include <sys/types.h>
+#include <sys/stat.h>
+
+#include "wiringSerial.h"
+
+/*
+ * serialOpen:
+ * Open and initialise the serial port, setting all the right
+ * port parameters - or as many as are required - hopefully!
+ *********************************************************************************
+ */
+
+int serialOpen (const char *device, const int baud)
+{
+ struct termios options ;
+ speed_t myBaud ;
+ int status, fd ;
+
+ switch (baud)
+ {
+ case 50: myBaud = B50 ; break ;
+ case 75: myBaud = B75 ; break ;
+ case 110: myBaud = B110 ; break ;
+ case 134: myBaud = B134 ; break ;
+ case 150: myBaud = B150 ; break ;
+ case 200: myBaud = B200 ; break ;
+ case 300: myBaud = B300 ; break ;
+ case 600: myBaud = B600 ; break ;
+ case 1200: myBaud = B1200 ; break ;
+ case 1800: myBaud = B1800 ; break ;
+ case 2400: myBaud = B2400 ; break ;
+ case 4800: myBaud = B4800 ; break ;
+ case 9600: myBaud = B9600 ; break ;
+ case 19200: myBaud = B19200 ; break ;
+ case 38400: myBaud = B38400 ; break ;
+ case 57600: myBaud = B57600 ; break ;
+ case 115200: myBaud = B115200 ; break ;
+ case 230400: myBaud = B230400 ; break ;
+
+ default:
+ return -2 ;
+ }
+
+ if ((fd = open (device, O_RDWR | O_NOCTTY | O_NDELAY | O_NONBLOCK)) == -1)
+ return -1 ;
+
+ fcntl (fd, F_SETFL, O_RDWR) ;
+
+// Get and modify current options:
+
+ tcgetattr (fd, &options) ;
+
+ cfmakeraw (&options) ;
+ cfsetispeed (&options, myBaud) ;
+ cfsetospeed (&options, myBaud) ;
+
+ options.c_cflag |= (CLOCAL | CREAD) ;
+ options.c_cflag &= ~PARENB ;
+ options.c_cflag &= ~CSTOPB ;
+ options.c_cflag &= ~CSIZE ;
+ options.c_cflag |= CS8 ;
+ options.c_lflag &= ~(ICANON | ECHO | ECHOE | ISIG) ;
+ options.c_oflag &= ~OPOST ;
+
+ options.c_cc [VMIN] = 0 ;
+ options.c_cc [VTIME] = 100 ; // Ten seconds (100 deciseconds)
+
+ tcsetattr (fd, TCSANOW | TCSAFLUSH, &options) ;
+
+ ioctl (fd, TIOCMGET, &status);
+
+ status |= TIOCM_DTR ;
+ status |= TIOCM_RTS ;
+
+ ioctl (fd, TIOCMSET, &status);
+
+ usleep (10000) ; // 10mS
+
+ return fd ;
+}
+
+
+/*
+ * serialFlush:
+ * Flush the serial buffers (both tx & rx)
+ *********************************************************************************
+ */
+
+void serialFlush (const int fd)
+{
+ tcflush (fd, TCIOFLUSH) ;
+}
+
+
+/*
+ * serialClose:
+ * Release the serial port
+ *********************************************************************************
+ */
+
+void serialClose (const int fd)
+{
+ close (fd) ;
+}
+
+
+/*
+ * serialPutchar:
+ * Send a single character to the serial port
+ *********************************************************************************
+ */
+
+void serialPutchar (const int fd, const unsigned char c)
+{
+ write (fd, &c, 1) ;
+}
+
+
+/*
+ * serialPuts:
+ * Send a string to the serial port
+ *********************************************************************************
+ */
+
+void serialPuts (const int fd, const char *s)
+{
+ write (fd, s, strlen (s)) ;
+}
+
+/*
+ * serialPrintf:
+ * Printf over Serial
+ *********************************************************************************
+ */
+
+void serialPrintf (const int fd, const char *message, ...)
+{
+ va_list argp ;
+ char buffer [1024] ;
+
+ va_start (argp, message) ;
+ vsnprintf (buffer, 1023, message, argp) ;
+ va_end (argp) ;
+
+ serialPuts (fd, buffer) ;
+}
+
+
+/*
+ * serialDataAvail:
+ * Return the number of bytes of data avalable to be read in the serial port
+ *********************************************************************************
+ */
+
+int serialDataAvail (const int fd)
+{
+ int result ;
+
+ if (ioctl (fd, FIONREAD, &result) == -1)
+ return -1 ;
+
+ return result ;
+}
+
+
+/*
+ * serialGetchar:
+ * Get a single character from the serial device.
+ * Note: Zero is a valid character and this function will time-out after
+ * 10 seconds.
+ *********************************************************************************
+ */
+
+int serialGetchar (const int fd)
+{
+ uint8_t x ;
+
+ if (read (fd, &x, 1) != 1)
+ return -1 ;
+
+ return ((int)x) & 0xFF ;
+}
diff --git a/target/packages/as_devices/c/wiringPi/wiringSerial.h b/target/packages/as_devices/c/wiringPi/wiringSerial.h
new file mode 100644
index 0000000..09efe27
--- /dev/null
+++ b/target/packages/as_devices/c/wiringPi/wiringSerial.h
@@ -0,0 +1,38 @@
+/*
+ * wiringSerial.h:
+ * Handle a serial port
+ ***********************************************************************
+ * This file is an adaptation to Armadeus SOM of wiringPi:
+ * https://projects.drogon.net/raspberry-pi/wiringpi/
+ *
+ * wiringPi is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * wiringPi is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with wiringPi. If not, see <http://www.gnu.org/licenses/>.
+ ***********************************************************************
+ */
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+extern int serialOpen (const char *device, const int baud) ;
+extern void serialClose (const int fd) ;
+extern void serialFlush (const int fd) ;
+extern void serialPutchar (const int fd, const unsigned char c) ;
+extern void serialPuts (const int fd, const char *s) ;
+extern void serialPrintf (const int fd, const char *message, ...) ;
+extern int serialDataAvail (const int fd) ;
+extern int serialGetchar (const int fd) ;
+
+#ifdef __cplusplus
+}
+#endif
hooks/post-receive
--
armadeus
|
|
From: Julien B a. A. <ar...@us...> - 2016-10-28 18:12:24
|
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "armadeus".
The branch, buildroot-update has been updated
via fd9c1f676e700128a8a16ee247b0e6630274b349 (commit)
via ab43b6c9acb74176c2e7fad5446363e6f3221b3e (commit)
via 1534dbd24ec150b249bcf83762aa5a639323d4ff (commit)
from 26f2614f84f30834db73268ed6f6b4f9106c888a (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit fd9c1f676e700128a8a16ee247b0e6630274b349
Author: Julien BOIBESSOT <jul...@ar...>
Date: Fri Oct 28 19:41:27 2016 +0200
[AS_DEVICES] fixes compilation warnings
commit ab43b6c9acb74176c2e7fad5446363e6f3221b3e
Author: Julien BOIBESSOT <jul...@ar...>
Date: Thu Oct 27 17:53:11 2016 +0200
[BUILDROOT] apf-config: bump to latest version and remove lua dependency
commit 1534dbd24ec150b249bcf83762aa5a639323d4ff
Author: Julien BOIBESSOT <jul...@ar...>
Date: Thu Oct 27 11:39:45 2016 +0200
[BUILDROOT] opos6ul: fill in genimage.cfg to generate user data partition image
-----------------------------------------------------------------------
Summary of changes:
.../target/device/armadeus/opos6ul/genimage.cfg | 28 +++++++++++++++++++-
.../025-armadeus-apf-config-add-package.patch | 7 ++---
target/packages/as_devices/c/as_tcs3472.c | 1 +
target/packages/as_devices/python/Makefile | 3 +-
4 files changed, 33 insertions(+), 6 deletions(-)
diff --git a/buildroot/target/device/armadeus/opos6ul/genimage.cfg b/buildroot/target/device/armadeus/opos6ul/genimage.cfg
index cfe009f..41d8f3a 100644
--- a/buildroot/target/device/armadeus/opos6ul/genimage.cfg
+++ b/buildroot/target/device/armadeus/opos6ul/genimage.cfg
@@ -1 +1,27 @@
-# OPOS6UL image format
+# Image for the OPOS6UL eMMC "User Data" partition
+#
+# For details about the layout, see:
+# http://www.armadeus.org/wiki/index.php?title=EMMC_OPOS6UL
+
+image opos6ul-user_data.ext4 {
+ hdimage {
+ }
+
+ partition failsafe {
+ partition-type = 0x83
+ offset = 1M
+ image = "rootfs.ext4"
+ size = 128M
+ }
+
+ partition rootfs {
+ partition-type = 0x83
+ image = "rootfs.ext4"
+ size = 2G
+ }
+
+ partition home {
+ partition-type = 0x83
+ size = 1540M
+ }
+}
diff --git a/patches/buildroot/2016.08/025-armadeus-apf-config-add-package.patch b/patches/buildroot/2016.08/025-armadeus-apf-config-add-package.patch
index fdda3c3..05349b9 100644
--- a/patches/buildroot/2016.08/025-armadeus-apf-config-add-package.patch
+++ b/patches/buildroot/2016.08/025-armadeus-apf-config-add-package.patch
@@ -4,7 +4,7 @@ Index: buildroot/package/apf-config/Config.in
===================================================================
--- /dev/null
+++ buildroot/package/apf-config/Config.in
-@@ -0,0 +1,20 @@
+@@ -0,0 +1,19 @@
+config BR2_PACKAGE_APF_CONFIG
+ bool "apf-config"
+ depends on BR2_USE_WCHAR # e2fsprogs
@@ -16,7 +16,6 @@ Index: buildroot/package/apf-config/Config.in
+ select BR2_PACKAGE_E2FSPROGS_E2FSCK
+ select BR2_PACKAGE_E2FSPROGS_RESIZE2FS
+ select BR2_PACKAGE_UTIL_LINUX # fdisk
-+ select BR2_PACKAGE_LUA
+ help
+ Configuration tool for Armadeus APF6 modules
+ (Ã la raspi-config).
@@ -36,11 +35,11 @@ Index: buildroot/package/apf-config/apf-config.mk
+#
+################################################################################
+
-+APF_CONFIG_VERSION = 044378fc0f7b66bb6c66910f75abd49a9a29dfbc
++APF_CONFIG_VERSION = 38daba82d7dfe0caee523417609a5525303147c4
+APF_CONFIG_SITE = $(call github,artemysfr,raspi-config,$(APF_CONFIG_VERSION))
+APF_CONFIG_LICENSE = MIT
+APF_CONFIG_LICENSE_FILES = LICENSE
-+APF_CONFIG_DEPENDENCIES = e2fsprogs lua newt ncurses util-linux
++APF_CONFIG_DEPENDENCIES = e2fsprogs newt ncurses util-linux
+
+define APF_CONFIG_INSTALL_TARGET_CMDS
+ $(INSTALL) -D -m 755 $(@D)/apf-config $(TARGET_DIR)/usr/sbin/apf-config
diff --git a/target/packages/as_devices/c/as_tcs3472.c b/target/packages/as_devices/c/as_tcs3472.c
index 001b95e..ee7e088 100644
--- a/target/packages/as_devices/c/as_tcs3472.c
+++ b/target/packages/as_devices/c/as_tcs3472.c
@@ -20,6 +20,7 @@
#include <stdio.h>
#include <stdlib.h>
+#include <time.h> /* nanosleep */
#include "as_tcs3472.h"
diff --git a/target/packages/as_devices/python/Makefile b/target/packages/as_devices/python/Makefile
index 1171e6b..b81b252 100644
--- a/target/packages/as_devices/python/Makefile
+++ b/target/packages/as_devices/python/Makefile
@@ -22,10 +22,11 @@ WRAPPER_LIBS += AsI2c_wrap.so
WRAPPER_LIBS += AsSpi_wrap.so
WRAPPER_DIR = src
+STAGING_DIR = $(ARMADEUS_STAGING_DIR)
PYTHON_VERS = 2.7
PYTHON_SUBVERS = 5
PYINC = $(STAGING_DIR)/usr/include/python$(PYTHON_VERS)/
-PYLIB = $(ARMADEUS_TARGET_DIR)/usr/lib/python$(PYTHON_VERS)
+PYLIB = $(STAGING_DIR)/usr/lib/python$(PYTHON_VERS)
.PHONY: all
hooks/post-receive
--
armadeus
|
|
From: Sébastien S. <ss...@us...> - 2016-10-26 15:51:10
|
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "armadeus".
The branch, buildroot-update has been updated
via 26f2614f84f30834db73268ed6f6b4f9106c888a (commit)
via c5d6056d97606d7f07b958fe471014bc0e1ab475 (commit)
from 364955c4a9b344fd33ff99b5fabca6bf4aed04cb (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 26f2614f84f30834db73268ed6f6b4f9106c888a
Author: Sébastien Szymanski <seb...@ar...>
Date: Wed Oct 26 17:52:11 2016 +0200
[LINUX] opos6ul: bump to 4.8.4
commit c5d6056d97606d7f07b958fe471014bc0e1ab475
Author: Sébastien Szymanski <seb...@ar...>
Date: Wed Oct 26 17:40:13 2016 +0200
[LINUX] 4.7: opos6ul: update dts files
-----------------------------------------------------------------------
Summary of changes:
buildroot/configs/opos6ul_defconfig | 2 +-
.../armadeus/opos6ul/opos6ul-linux-4.8.4.config | 1 +
...l-linux-4.7.config => opos6ul-linux-4.8.config} | 0
...pos6ul-and-opos6uldev-add-initial-support.patch | 147 +++++++++-----------
patches/linux/4.8.4 | 1 +
...pos6ul-and-opos6uldev-add-initial-support.patch | 147 +++++++++-----------
6 files changed, 129 insertions(+), 169 deletions(-)
create mode 120000 buildroot/target/device/armadeus/opos6ul/opos6ul-linux-4.8.4.config
copy buildroot/target/device/armadeus/opos6ul/{opos6ul-linux-4.7.config => opos6ul-linux-4.8.config} (100%)
create mode 120000 patches/linux/4.8.4
copy patches/linux/{4.7 => 4.8}/0800-ARM-dts-opos6ul-and-opos6uldev-add-initial-support.patch (86%)
diff --git a/buildroot/configs/opos6ul_defconfig b/buildroot/configs/opos6ul_defconfig
index 5a1371c..0ade81b 100644
--- a/buildroot/configs/opos6ul_defconfig
+++ b/buildroot/configs/opos6ul_defconfig
@@ -23,7 +23,7 @@ BR2_CPU_NAME="imx6ul"
BR2_TARGET_ARMADEUS_SDRAM_SIZE="256"
BR2_LINUX_KERNEL=y
BR2_LINUX_KERNEL_CUSTOM_VERSION=y
-BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="4.7.4"
+BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="4.8.4"
BR2_LINUX_KERNEL_PATCH="../patches/linux/$(BR2_LINUX_KERNEL_VERSION)"
BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y
BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="$(BR2_BOARD_PATH)/$(BR2_BOARD_NAME)-linux-$(BR2_LINUX_KERNEL_VERSION).config"
diff --git a/buildroot/target/device/armadeus/opos6ul/opos6ul-linux-4.8.4.config b/buildroot/target/device/armadeus/opos6ul/opos6ul-linux-4.8.4.config
new file mode 120000
index 0000000..81956c0
--- /dev/null
+++ b/buildroot/target/device/armadeus/opos6ul/opos6ul-linux-4.8.4.config
@@ -0,0 +1 @@
+opos6ul-linux-4.8.config
\ No newline at end of file
diff --git a/buildroot/target/device/armadeus/opos6ul/opos6ul-linux-4.7.config b/buildroot/target/device/armadeus/opos6ul/opos6ul-linux-4.8.config
similarity index 100%
copy from buildroot/target/device/armadeus/opos6ul/opos6ul-linux-4.7.config
copy to buildroot/target/device/armadeus/opos6ul/opos6ul-linux-4.8.config
diff --git a/patches/linux/4.7/0800-ARM-dts-opos6ul-and-opos6uldev-add-initial-support.patch b/patches/linux/4.7/0800-ARM-dts-opos6ul-and-opos6uldev-add-initial-support.patch
index df56369..28d1943 100644
--- a/patches/linux/4.7/0800-ARM-dts-opos6ul-and-opos6uldev-add-initial-support.patch
+++ b/patches/linux/4.7/0800-ARM-dts-opos6ul-and-opos6uldev-add-initial-support.patch
@@ -16,23 +16,22 @@ Signed-off-by: Sébastien Szymanski <seb...@ar...>
create mode 100644 arch/arm/boot/dts/imx6ul-opos6ul.dtsi
create mode 100644 arch/arm/boot/dts/imx6ul-opos6uldev.dts
-diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
-index 414b427..db9729f 100644
---- a/arch/arm/boot/dts/Makefile
-+++ b/arch/arm/boot/dts/Makefile
+Index: linux-4.7.10/arch/arm/boot/dts/Makefile
+===================================================================
+--- linux-4.7.10.orig/arch/arm/boot/dts/Makefile
++++ linux-4.7.10/arch/arm/boot/dts/Makefile
@@ -393,6 +393,7 @@ dtb-$(CONFIG_SOC_IMX6SX) += \
- imx6sx-sdb.dtb
+ imx6sx-sdb.dtb
dtb-$(CONFIG_SOC_IMX6UL) += \
- imx6ul-14x14-evk.dtb \
+ imx6ul-14x14-evk.dtb \
+ imx6ul-opos6uldev.dtb \
- imx6ul-pico-hobbit.dtb \
- imx6ul-tx6ul-0010.dtb \
- imx6ul-tx6ul-0011.dtb \
-diff --git a/arch/arm/boot/dts/imx6ul-opos6ul.dtsi b/arch/arm/boot/dts/imx6ul-opos6ul.dtsi
-new file mode 100644
-index 0000000..cd7ff48
+ imx6ul-pico-hobbit.dtb \
+ imx6ul-tx6ul-0010.dtb \
+ imx6ul-tx6ul-0011.dtb \
+Index: linux-4.7.10/arch/arm/boot/dts/imx6ul-opos6ul.dtsi
+===================================================================
--- /dev/null
-+++ b/arch/arm/boot/dts/imx6ul-opos6ul.dtsi
++++ linux-4.7.10/arch/arm/boot/dts/imx6ul-opos6ul.dtsi
@@ -0,0 +1,181 @@
+/*
+ * Copyright 2016 Armadeus Systems
@@ -84,11 +83,9 @@ index 0000000..cd7ff48
+#include "imx6ul.dtsi"
+
+/ {
-+ reg_3v3: regulator-3v3 {
-+ compatible = "regulator-fixed";
-+ regulator-name = "3V3";
-+ regulator-min-microvolt = <3300000>;
-+ regulator-max-microvolt = <3300000>;
++ usdhc3_pwrseq: usdhc3_pwrseq {
++ compatible = "mmc-pwrseq-simple";
++ reset-gpios = <&gpio2 9 GPIO_ACTIVE_LOW>;
+ };
+};
+
@@ -121,7 +118,7 @@ index 0000000..cd7ff48
+ pinctrl-names = "default";
+ pinctrl-0 = <&pinctrl_uart8>;
+ fsl,uart-has-rtscts;
-+ //status = "okay";
++ status = "okay";
+};
+
+/* eMMC */
@@ -140,7 +137,9 @@ index 0000000..cd7ff48
+ pinctrl-0 = <&pinctrl_usdhc2>;
+ bus-width = <4>;
+ no-1-8-v;
-+ //status = "okay";
++ non-removable;
++ mmc-pwrseq = <&usdhc3_pwrseq>;
++ status = "okay";
+
+ #address-cells = <1>;
+ #size-cells = <0>;
@@ -215,12 +214,11 @@ index 0000000..cd7ff48
+ >;
+ };
+};
-diff --git a/arch/arm/boot/dts/imx6ul-opos6uldev.dts b/arch/arm/boot/dts/imx6ul-opos6uldev.dts
-new file mode 100644
-index 0000000..5e786bf
+Index: linux-4.7.10/arch/arm/boot/dts/imx6ul-opos6uldev.dts
+===================================================================
--- /dev/null
-+++ b/arch/arm/boot/dts/imx6ul-opos6uldev.dts
-@@ -0,0 +1,419 @@
++++ linux-4.7.10/arch/arm/boot/dts/imx6ul-opos6uldev.dts
+@@ -0,0 +1,402 @@
+/*
+ * Copyright 2016 Armadeus Systems
+ *
@@ -272,7 +270,7 @@ index 0000000..5e786bf
+#include "imx6ul-opos6ul.dtsi"
+
+/ {
-+ model = "Armadeus Systems OPOS6UL Module on OPOS6UL Dev board";
++ model = "Armadeus Systems OPOS6UL SoM on OPOS6ULDev board";
+ compatible = "armadeus,opos6uldev", "armadeus,opos6ul", "fsl,imx6ul";
+
+ chosen {
@@ -280,14 +278,14 @@ index 0000000..5e786bf
+ };
+
+ memory {
-+ reg = <0 0>; /* will be filled by U-Boot */
++ reg = <0x80000000 0>; /* will be filled by U-Boot */
+ };
+
+ backlight {
+ compatible = "gpio-backlight";
+ pinctrl-names = "default";
-+ pinctrl-0 = <&pinctrl_lcd_backlight>;
-+ gpios = <&gpio3 23 GPIO_ACTIVE_HIGH>;
++ pinctrl-0 = <&pinctrl_backlight>;
++ gpios = <&gpio4 10 GPIO_ACTIVE_HIGH>;
+ default-on;
+ };
+
@@ -298,7 +296,7 @@ index 0000000..5e786bf
+
+ user-button {
+ label = "User button";
-+ gpios = <&gpio4 7 GPIO_ACTIVE_LOW>;
++ gpios = <&gpio2 11 GPIO_ACTIVE_LOW>;
+ linux,code = <BTN_MISC>;
+ wakeup-source;
+ };
@@ -311,11 +309,18 @@ index 0000000..5e786bf
+ label = "User";
+ pinctrl-names = "default";
+ pinctrl-0 = <&pinctrl_led>;
-+ gpios = <&gpio4 6 GPIO_ACTIVE_HIGH>;
++ gpios = <&gpio3 4 GPIO_ACTIVE_HIGH>;
+ linux,default-trigger = "heartbeat";
+ };
+ };
+
++ reg_3v3: regulator-3v3 {
++ compatible = "regulator-fixed";
++ regulator-name = "3V3";
++ regulator-min-microvolt = <3300000>;
++ regulator-max-microvolt = <3300000>;
++ };
++
+ reg_5v: regulator-5v {
+ compatible = "regulator-fixed";
+ regulator-name = "5V";
@@ -360,11 +365,11 @@ index 0000000..5e786bf
+ status = "okay";
+};
+
-+&ecspi1 {
++&ecspi4 {
+ pinctrl-names = "default";
-+ pinctrl-0 = <&pinctrl_ecspi1>;
++ pinctrl-0 = <&pinctrl_ecspi4>;
+ fsl,spi-num-chipselects = <2>;
-+ cs-gpios = <&gpio3 26 GPIO_ACTIVE_LOW>, <&gpio4 3 GPIO_ACTIVE_LOW>;
++ cs-gpios = <&gpio4 9 GPIO_ACTIVE_LOW>, <&gpio4 3 GPIO_ACTIVE_LOW>;
+ status = "okay";
+
+ spidev0: spi@0 {
@@ -380,21 +385,17 @@ index 0000000..5e786bf
+ };
+};
+
-+&fec2 {
++&i2c1 {
+ pinctrl-names = "default";
-+ pinctrl-0 = <&pinctrl_enet2>;
-+ phy-mode = "rmii";
-+ phy-reset-duration = <1>;
-+ phy-reset-gpios = <&gpio4 1 GPIO_ACTIVE_LOW>;
-+ phy-handle = <ðphy2>;
-+ phy-supply = <®_3v3>;
-+ status = "disabled";
++ pinctrl-0 = <&pinctrl_i2c1>;
++ clock_frequency = <400000>;
++ status = "okay";
+};
+
+&i2c2 {
-+ clock_frequency = <400000>;
+ pinctrl-names = "default";
+ pinctrl-0 = <&pinctrl_i2c2>;
++ clock_frequency = <400000>;
+ status = "okay";
+};
+
@@ -429,16 +430,6 @@ index 0000000..5e786bf
+ };
+};
+
-+&mdio {
-+ ethphy2: ethernet-phy@2 {
-+ compatible = "ethernet-phy-ieee802.3-c22";
-+ reg = <2>;
-+ interrupt-parent = <&gpio4>;
-+ interrupts = <10 IRQ_TYPE_LEVEL_LOW>;
-+ status = "okay";
-+ };
-+};
-+
+&snvs_pwrkey {
+ status = "disabled";
+};
@@ -484,30 +475,19 @@ index 0000000..5e786bf
+ pinctrl-names = "default";
+ pinctrl-0 = <&pinctrl_gpios>;
+
-+ pinctrl_ecspi1: ecspi1grp {
++ pinctrl_backlight: backlightgrp {
+ fsl,pins = <
-+ MX6UL_PAD_LCD_DATA20__ECSPI1_SCLK 0x1b0b0
-+ MX6UL_PAD_LCD_DATA21__GPIO3_IO26 0x1b0b0
-+ MX6UL_PAD_LCD_DATA22__ECSPI1_MOSI 0x1b0b0
-+ MX6UL_PAD_LCD_DATA23__ECSPI1_MISO 0x1b0b0
-+ MX6UL_PAD_NAND_DATA01__GPIO4_IO03 0x1b0b0
++ MX6UL_PAD_NAND_ALE__GPIO4_IO10 0x1b0b0
+ >;
+ };
+
-+ pinctrl_enet2: enet2grp {
++ pinctrl_ecspi4: ecspi4grp {
+ fsl,pins = <
-+ MX6UL_PAD_ENET2_RX_ER__ENET2_RX_ER 0x130b0
-+ MX6UL_PAD_ENET2_RX_EN__ENET2_RX_EN 0x130b0
-+ MX6UL_PAD_ENET2_RX_DATA1__ENET2_RDATA01 0x130b0
-+ MX6UL_PAD_ENET2_RX_DATA0__ENET2_RDATA00 0x130b0
-+ MX6UL_PAD_ENET2_TX_DATA0__ENET2_TDATA00 0x1b0b0
-+ MX6UL_PAD_ENET2_TX_DATA1__ENET2_TDATA01 0x1b0b0
-+ MX6UL_PAD_ENET2_TX_EN__ENET2_TX_EN 0x1b0b0
-+ /* INT# */
-+ MX6UL_PAD_NAND_ALE__GPIO4_IO10 0x1b0b0
-+ /* RST# */
-+ MX6UL_PAD_NAND_WE_B__GPIO4_IO01 0x130b0
-+ MX6UL_PAD_ENET2_TX_CLK__ENET2_REF_CLK2 0x4001b031
++ MX6UL_PAD_NAND_DATA04__ECSPI4_SCLK 0x1b0b0
++ MX6UL_PAD_NAND_DATA05__ECSPI4_MOSI 0x1b0b0
++ MX6UL_PAD_NAND_DATA06__ECSPI4_MISO 0x1b0b0
++ MX6UL_PAD_NAND_DATA01__GPIO4_IO03 0x1b0b0
++ MX6UL_PAD_NAND_DATA07__GPIO4_IO09 0x1b0b0
+ >;
+ };
+
@@ -527,14 +507,14 @@ index 0000000..5e786bf
+
+ pinctrl_gpios: gpiosgrp {
+ fsl,pins = <
-+ MX6UL_PAD_LCD_DATA19__GPIO3_IO24 0x0b0b0
-+ MX6UL_PAD_UART3_TX_DATA__GPIO1_IO24 0x0b0b0
++ MX6UL_PAD_GPIO1_IO09__GPIO1_IO09 0x0b0b0
+ MX6UL_PAD_UART3_RX_DATA__GPIO1_IO25 0x0b0b0
++ MX6UL_PAD_UART3_TX_DATA__GPIO1_IO24 0x0b0b0
+ MX6UL_PAD_NAND_RE_B__GPIO4_IO00 0x0b0b0
+ MX6UL_PAD_GPIO1_IO08__GPIO1_IO08 0x0b0b0
+ MX6UL_PAD_UART1_CTS_B__GPIO1_IO18 0x0b0b0
+ MX6UL_PAD_UART1_RTS_B__GPIO1_IO19 0x0b0b0
-+ MX6UL_PAD_GPIO1_IO09__GPIO1_IO09 0x0b0b0
++ MX6UL_PAD_NAND_WE_B__GPIO4_IO01 0x0b0b0
+ MX6UL_PAD_SNVS_TAMPER0__GPIO5_IO00 0x0b0b0
+ MX6UL_PAD_SNVS_TAMPER1__GPIO5_IO01 0x0b0b0
+ MX6UL_PAD_SNVS_TAMPER2__GPIO5_IO02 0x0b0b0
@@ -549,20 +529,21 @@ index 0000000..5e786bf
+
+ pinctrl_gpio_keys: gpio_keysgrp {
+ fsl,pins = <
-+ MX6UL_PAD_NAND_DATA05__GPIO4_IO07 0x0b0b0
++ MX6UL_PAD_ENET2_TX_DATA0__GPIO2_IO11 0x0b0b0
+ >;
+ };
+
-+ pinctrl_i2c2: i2c2grp {
++ pinctrl_i2c1: i2c1grp {
+ fsl,pins = <
-+ MX6UL_PAD_UART5_RX_DATA__I2C2_SDA 0x4001b8b0
-+ MX6UL_PAD_UART5_TX_DATA__I2C2_SCL 0x4001b8b0
++ MX6UL_PAD_UART4_RX_DATA__I2C1_SDA 0x4001b8b0
++ MX6UL_PAD_UART4_TX_DATA__I2C1_SCL 0x4001b8b0
+ >;
+ };
+
-+ pinctrl_lcd_backlight: lcd_backlightgrp {
++ pinctrl_i2c2: i2c2grp {
+ fsl,pins = <
-+ MX6UL_PAD_LCD_DATA18__GPIO3_IO23 0x0b0b0
++ MX6UL_PAD_UART5_RX_DATA__I2C2_SDA 0x4001b8b0
++ MX6UL_PAD_UART5_TX_DATA__I2C2_SCL 0x4001b8b0
+ >;
+ };
+
@@ -595,7 +576,7 @@ index 0000000..5e786bf
+
+ pinctrl_led: ledgrp {
+ fsl,pins = <
-+ MX6UL_PAD_NAND_DATA04__GPIO4_IO06 0x0b0b0
++ MX6UL_PAD_LCD_RESET__GPIO3_IO04 0x0b0b0
+ >;
+ };
+
@@ -640,5 +621,3 @@ index 0000000..5e786bf
+ >;
+ };
+};
---
-2.3.6
diff --git a/patches/linux/4.8.4 b/patches/linux/4.8.4
new file mode 120000
index 0000000..b6afe80
--- /dev/null
+++ b/patches/linux/4.8.4
@@ -0,0 +1 @@
+4.8
\ No newline at end of file
diff --git a/patches/linux/4.7/0800-ARM-dts-opos6ul-and-opos6uldev-add-initial-support.patch b/patches/linux/4.8/0800-ARM-dts-opos6ul-and-opos6uldev-add-initial-support.patch
similarity index 86%
copy from patches/linux/4.7/0800-ARM-dts-opos6ul-and-opos6uldev-add-initial-support.patch
copy to patches/linux/4.8/0800-ARM-dts-opos6ul-and-opos6uldev-add-initial-support.patch
index df56369..28d1943 100644
--- a/patches/linux/4.7/0800-ARM-dts-opos6ul-and-opos6uldev-add-initial-support.patch
+++ b/patches/linux/4.8/0800-ARM-dts-opos6ul-and-opos6uldev-add-initial-support.patch
@@ -16,23 +16,22 @@ Signed-off-by: Sébastien Szymanski <seb...@ar...>
create mode 100644 arch/arm/boot/dts/imx6ul-opos6ul.dtsi
create mode 100644 arch/arm/boot/dts/imx6ul-opos6uldev.dts
-diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
-index 414b427..db9729f 100644
---- a/arch/arm/boot/dts/Makefile
-+++ b/arch/arm/boot/dts/Makefile
+Index: linux-4.7.10/arch/arm/boot/dts/Makefile
+===================================================================
+--- linux-4.7.10.orig/arch/arm/boot/dts/Makefile
++++ linux-4.7.10/arch/arm/boot/dts/Makefile
@@ -393,6 +393,7 @@ dtb-$(CONFIG_SOC_IMX6SX) += \
- imx6sx-sdb.dtb
+ imx6sx-sdb.dtb
dtb-$(CONFIG_SOC_IMX6UL) += \
- imx6ul-14x14-evk.dtb \
+ imx6ul-14x14-evk.dtb \
+ imx6ul-opos6uldev.dtb \
- imx6ul-pico-hobbit.dtb \
- imx6ul-tx6ul-0010.dtb \
- imx6ul-tx6ul-0011.dtb \
-diff --git a/arch/arm/boot/dts/imx6ul-opos6ul.dtsi b/arch/arm/boot/dts/imx6ul-opos6ul.dtsi
-new file mode 100644
-index 0000000..cd7ff48
+ imx6ul-pico-hobbit.dtb \
+ imx6ul-tx6ul-0010.dtb \
+ imx6ul-tx6ul-0011.dtb \
+Index: linux-4.7.10/arch/arm/boot/dts/imx6ul-opos6ul.dtsi
+===================================================================
--- /dev/null
-+++ b/arch/arm/boot/dts/imx6ul-opos6ul.dtsi
++++ linux-4.7.10/arch/arm/boot/dts/imx6ul-opos6ul.dtsi
@@ -0,0 +1,181 @@
+/*
+ * Copyright 2016 Armadeus Systems
@@ -84,11 +83,9 @@ index 0000000..cd7ff48
+#include "imx6ul.dtsi"
+
+/ {
-+ reg_3v3: regulator-3v3 {
-+ compatible = "regulator-fixed";
-+ regulator-name = "3V3";
-+ regulator-min-microvolt = <3300000>;
-+ regulator-max-microvolt = <3300000>;
++ usdhc3_pwrseq: usdhc3_pwrseq {
++ compatible = "mmc-pwrseq-simple";
++ reset-gpios = <&gpio2 9 GPIO_ACTIVE_LOW>;
+ };
+};
+
@@ -121,7 +118,7 @@ index 0000000..cd7ff48
+ pinctrl-names = "default";
+ pinctrl-0 = <&pinctrl_uart8>;
+ fsl,uart-has-rtscts;
-+ //status = "okay";
++ status = "okay";
+};
+
+/* eMMC */
@@ -140,7 +137,9 @@ index 0000000..cd7ff48
+ pinctrl-0 = <&pinctrl_usdhc2>;
+ bus-width = <4>;
+ no-1-8-v;
-+ //status = "okay";
++ non-removable;
++ mmc-pwrseq = <&usdhc3_pwrseq>;
++ status = "okay";
+
+ #address-cells = <1>;
+ #size-cells = <0>;
@@ -215,12 +214,11 @@ index 0000000..cd7ff48
+ >;
+ };
+};
-diff --git a/arch/arm/boot/dts/imx6ul-opos6uldev.dts b/arch/arm/boot/dts/imx6ul-opos6uldev.dts
-new file mode 100644
-index 0000000..5e786bf
+Index: linux-4.7.10/arch/arm/boot/dts/imx6ul-opos6uldev.dts
+===================================================================
--- /dev/null
-+++ b/arch/arm/boot/dts/imx6ul-opos6uldev.dts
-@@ -0,0 +1,419 @@
++++ linux-4.7.10/arch/arm/boot/dts/imx6ul-opos6uldev.dts
+@@ -0,0 +1,402 @@
+/*
+ * Copyright 2016 Armadeus Systems
+ *
@@ -272,7 +270,7 @@ index 0000000..5e786bf
+#include "imx6ul-opos6ul.dtsi"
+
+/ {
-+ model = "Armadeus Systems OPOS6UL Module on OPOS6UL Dev board";
++ model = "Armadeus Systems OPOS6UL SoM on OPOS6ULDev board";
+ compatible = "armadeus,opos6uldev", "armadeus,opos6ul", "fsl,imx6ul";
+
+ chosen {
@@ -280,14 +278,14 @@ index 0000000..5e786bf
+ };
+
+ memory {
-+ reg = <0 0>; /* will be filled by U-Boot */
++ reg = <0x80000000 0>; /* will be filled by U-Boot */
+ };
+
+ backlight {
+ compatible = "gpio-backlight";
+ pinctrl-names = "default";
-+ pinctrl-0 = <&pinctrl_lcd_backlight>;
-+ gpios = <&gpio3 23 GPIO_ACTIVE_HIGH>;
++ pinctrl-0 = <&pinctrl_backlight>;
++ gpios = <&gpio4 10 GPIO_ACTIVE_HIGH>;
+ default-on;
+ };
+
@@ -298,7 +296,7 @@ index 0000000..5e786bf
+
+ user-button {
+ label = "User button";
-+ gpios = <&gpio4 7 GPIO_ACTIVE_LOW>;
++ gpios = <&gpio2 11 GPIO_ACTIVE_LOW>;
+ linux,code = <BTN_MISC>;
+ wakeup-source;
+ };
@@ -311,11 +309,18 @@ index 0000000..5e786bf
+ label = "User";
+ pinctrl-names = "default";
+ pinctrl-0 = <&pinctrl_led>;
-+ gpios = <&gpio4 6 GPIO_ACTIVE_HIGH>;
++ gpios = <&gpio3 4 GPIO_ACTIVE_HIGH>;
+ linux,default-trigger = "heartbeat";
+ };
+ };
+
++ reg_3v3: regulator-3v3 {
++ compatible = "regulator-fixed";
++ regulator-name = "3V3";
++ regulator-min-microvolt = <3300000>;
++ regulator-max-microvolt = <3300000>;
++ };
++
+ reg_5v: regulator-5v {
+ compatible = "regulator-fixed";
+ regulator-name = "5V";
@@ -360,11 +365,11 @@ index 0000000..5e786bf
+ status = "okay";
+};
+
-+&ecspi1 {
++&ecspi4 {
+ pinctrl-names = "default";
-+ pinctrl-0 = <&pinctrl_ecspi1>;
++ pinctrl-0 = <&pinctrl_ecspi4>;
+ fsl,spi-num-chipselects = <2>;
-+ cs-gpios = <&gpio3 26 GPIO_ACTIVE_LOW>, <&gpio4 3 GPIO_ACTIVE_LOW>;
++ cs-gpios = <&gpio4 9 GPIO_ACTIVE_LOW>, <&gpio4 3 GPIO_ACTIVE_LOW>;
+ status = "okay";
+
+ spidev0: spi@0 {
@@ -380,21 +385,17 @@ index 0000000..5e786bf
+ };
+};
+
-+&fec2 {
++&i2c1 {
+ pinctrl-names = "default";
-+ pinctrl-0 = <&pinctrl_enet2>;
-+ phy-mode = "rmii";
-+ phy-reset-duration = <1>;
-+ phy-reset-gpios = <&gpio4 1 GPIO_ACTIVE_LOW>;
-+ phy-handle = <ðphy2>;
-+ phy-supply = <®_3v3>;
-+ status = "disabled";
++ pinctrl-0 = <&pinctrl_i2c1>;
++ clock_frequency = <400000>;
++ status = "okay";
+};
+
+&i2c2 {
-+ clock_frequency = <400000>;
+ pinctrl-names = "default";
+ pinctrl-0 = <&pinctrl_i2c2>;
++ clock_frequency = <400000>;
+ status = "okay";
+};
+
@@ -429,16 +430,6 @@ index 0000000..5e786bf
+ };
+};
+
-+&mdio {
-+ ethphy2: ethernet-phy@2 {
-+ compatible = "ethernet-phy-ieee802.3-c22";
-+ reg = <2>;
-+ interrupt-parent = <&gpio4>;
-+ interrupts = <10 IRQ_TYPE_LEVEL_LOW>;
-+ status = "okay";
-+ };
-+};
-+
+&snvs_pwrkey {
+ status = "disabled";
+};
@@ -484,30 +475,19 @@ index 0000000..5e786bf
+ pinctrl-names = "default";
+ pinctrl-0 = <&pinctrl_gpios>;
+
-+ pinctrl_ecspi1: ecspi1grp {
++ pinctrl_backlight: backlightgrp {
+ fsl,pins = <
-+ MX6UL_PAD_LCD_DATA20__ECSPI1_SCLK 0x1b0b0
-+ MX6UL_PAD_LCD_DATA21__GPIO3_IO26 0x1b0b0
-+ MX6UL_PAD_LCD_DATA22__ECSPI1_MOSI 0x1b0b0
-+ MX6UL_PAD_LCD_DATA23__ECSPI1_MISO 0x1b0b0
-+ MX6UL_PAD_NAND_DATA01__GPIO4_IO03 0x1b0b0
++ MX6UL_PAD_NAND_ALE__GPIO4_IO10 0x1b0b0
+ >;
+ };
+
-+ pinctrl_enet2: enet2grp {
++ pinctrl_ecspi4: ecspi4grp {
+ fsl,pins = <
-+ MX6UL_PAD_ENET2_RX_ER__ENET2_RX_ER 0x130b0
-+ MX6UL_PAD_ENET2_RX_EN__ENET2_RX_EN 0x130b0
-+ MX6UL_PAD_ENET2_RX_DATA1__ENET2_RDATA01 0x130b0
-+ MX6UL_PAD_ENET2_RX_DATA0__ENET2_RDATA00 0x130b0
-+ MX6UL_PAD_ENET2_TX_DATA0__ENET2_TDATA00 0x1b0b0
-+ MX6UL_PAD_ENET2_TX_DATA1__ENET2_TDATA01 0x1b0b0
-+ MX6UL_PAD_ENET2_TX_EN__ENET2_TX_EN 0x1b0b0
-+ /* INT# */
-+ MX6UL_PAD_NAND_ALE__GPIO4_IO10 0x1b0b0
-+ /* RST# */
-+ MX6UL_PAD_NAND_WE_B__GPIO4_IO01 0x130b0
-+ MX6UL_PAD_ENET2_TX_CLK__ENET2_REF_CLK2 0x4001b031
++ MX6UL_PAD_NAND_DATA04__ECSPI4_SCLK 0x1b0b0
++ MX6UL_PAD_NAND_DATA05__ECSPI4_MOSI 0x1b0b0
++ MX6UL_PAD_NAND_DATA06__ECSPI4_MISO 0x1b0b0
++ MX6UL_PAD_NAND_DATA01__GPIO4_IO03 0x1b0b0
++ MX6UL_PAD_NAND_DATA07__GPIO4_IO09 0x1b0b0
+ >;
+ };
+
@@ -527,14 +507,14 @@ index 0000000..5e786bf
+
+ pinctrl_gpios: gpiosgrp {
+ fsl,pins = <
-+ MX6UL_PAD_LCD_DATA19__GPIO3_IO24 0x0b0b0
-+ MX6UL_PAD_UART3_TX_DATA__GPIO1_IO24 0x0b0b0
++ MX6UL_PAD_GPIO1_IO09__GPIO1_IO09 0x0b0b0
+ MX6UL_PAD_UART3_RX_DATA__GPIO1_IO25 0x0b0b0
++ MX6UL_PAD_UART3_TX_DATA__GPIO1_IO24 0x0b0b0
+ MX6UL_PAD_NAND_RE_B__GPIO4_IO00 0x0b0b0
+ MX6UL_PAD_GPIO1_IO08__GPIO1_IO08 0x0b0b0
+ MX6UL_PAD_UART1_CTS_B__GPIO1_IO18 0x0b0b0
+ MX6UL_PAD_UART1_RTS_B__GPIO1_IO19 0x0b0b0
-+ MX6UL_PAD_GPIO1_IO09__GPIO1_IO09 0x0b0b0
++ MX6UL_PAD_NAND_WE_B__GPIO4_IO01 0x0b0b0
+ MX6UL_PAD_SNVS_TAMPER0__GPIO5_IO00 0x0b0b0
+ MX6UL_PAD_SNVS_TAMPER1__GPIO5_IO01 0x0b0b0
+ MX6UL_PAD_SNVS_TAMPER2__GPIO5_IO02 0x0b0b0
@@ -549,20 +529,21 @@ index 0000000..5e786bf
+
+ pinctrl_gpio_keys: gpio_keysgrp {
+ fsl,pins = <
-+ MX6UL_PAD_NAND_DATA05__GPIO4_IO07 0x0b0b0
++ MX6UL_PAD_ENET2_TX_DATA0__GPIO2_IO11 0x0b0b0
+ >;
+ };
+
-+ pinctrl_i2c2: i2c2grp {
++ pinctrl_i2c1: i2c1grp {
+ fsl,pins = <
-+ MX6UL_PAD_UART5_RX_DATA__I2C2_SDA 0x4001b8b0
-+ MX6UL_PAD_UART5_TX_DATA__I2C2_SCL 0x4001b8b0
++ MX6UL_PAD_UART4_RX_DATA__I2C1_SDA 0x4001b8b0
++ MX6UL_PAD_UART4_TX_DATA__I2C1_SCL 0x4001b8b0
+ >;
+ };
+
-+ pinctrl_lcd_backlight: lcd_backlightgrp {
++ pinctrl_i2c2: i2c2grp {
+ fsl,pins = <
-+ MX6UL_PAD_LCD_DATA18__GPIO3_IO23 0x0b0b0
++ MX6UL_PAD_UART5_RX_DATA__I2C2_SDA 0x4001b8b0
++ MX6UL_PAD_UART5_TX_DATA__I2C2_SCL 0x4001b8b0
+ >;
+ };
+
@@ -595,7 +576,7 @@ index 0000000..5e786bf
+
+ pinctrl_led: ledgrp {
+ fsl,pins = <
-+ MX6UL_PAD_NAND_DATA04__GPIO4_IO06 0x0b0b0
++ MX6UL_PAD_LCD_RESET__GPIO3_IO04 0x0b0b0
+ >;
+ };
+
@@ -640,5 +621,3 @@ index 0000000..5e786bf
+ >;
+ };
+};
---
-2.3.6
hooks/post-receive
--
armadeus
|
|
From: Sébastien S. <ss...@us...> - 2016-10-12 12:51:43
|
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "armadeus".
The branch, buildroot-update has been updated
via 364955c4a9b344fd33ff99b5fabca6bf4aed04cb (commit)
from 397f9a6cf4abf6ba92bda7bf12495b60224d27eb (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 364955c4a9b344fd33ff99b5fabca6bf4aed04cb
Author: Sébastien Szymanski <seb...@ar...>
Date: Wed Oct 12 14:54:22 2016 +0200
[TOOLS] opos6ul: update uboot binaries
Bump to commit 100d243d1775fd16e37f81286d439d4b4c907738 (opos6ul: envt:
(re)change eMMC partitions layout and add scripts to flash/boot failsafe
partition)
-----------------------------------------------------------------------
Summary of changes:
software/uboot_recover/opos6ul-u-boot.img | Bin 266520 -> 267528 bytes
software/uboot_recover/opos6ul-u-boot.spl | Bin 39936 -> 39936 bytes
2 files changed, 0 insertions(+), 0 deletions(-)
diff --git a/software/uboot_recover/opos6ul-u-boot.img b/software/uboot_recover/opos6ul-u-boot.img
index 913c6c7..dfa97f6 100644
Binary files a/software/uboot_recover/opos6ul-u-boot.img and b/software/uboot_recover/opos6ul-u-boot.img differ
diff --git a/software/uboot_recover/opos6ul-u-boot.spl b/software/uboot_recover/opos6ul-u-boot.spl
index 4a2624c..3af985b 100644
Binary files a/software/uboot_recover/opos6ul-u-boot.spl and b/software/uboot_recover/opos6ul-u-boot.spl differ
hooks/post-receive
--
armadeus
|
|
From: Julien B a. A. <ar...@us...> - 2016-10-11 17:21:05
|
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "armadeus".
The branch, buildroot-update has been updated
via 397f9a6cf4abf6ba92bda7bf12495b60224d27eb (commit)
via c96af9e526177186a2cc7ec0d149b43314daa569 (commit)
from ce9622b9ebc113ac6d8734754ef243bf96c05f70 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 397f9a6cf4abf6ba92bda7bf12495b60224d27eb
Author: Julien BOIBESSOT <jul...@ar...>
Date: Tue Oct 11 19:10:51 2016 +0200
[BUILDROOT] (quite) all board defconfigs: add mdev for /dev handling to mimic 6.0 and older BSPs
commit c96af9e526177186a2cc7ec0d149b43314daa569
Author: Julien BOIBESSOT <jul...@ar...>
Date: Tue Oct 11 18:38:54 2016 +0200
[BUILDROOT] opos6ul: fixes /etc/machine infos
-----------------------------------------------------------------------
Summary of changes:
buildroot/configs/apf27mainline_defconfig | 1 +
.../configs/apf27preempt-rtmainline_defconfig | 1 +
buildroot/configs/apf27xenomaimainline_defconfig | 1 +
buildroot/configs/apf28_defconfig | 1 +
buildroot/configs/apf28mainline_defconfig | 1 +
buildroot/configs/apf28mainlinetest_defconfig | 1 +
buildroot/configs/apf28test_defconfig | 1 +
buildroot/configs/apf51_defconfig | 1 +
buildroot/configs/apf51mainline_defconfig | 1 +
buildroot/configs/apf51test_defconfig | 1 +
buildroot/configs/apf6_defconfig | 1 +
buildroot/configs/apf6failsafe_defconfig | 1 +
buildroot/configs/apf6legacy-preempt-rt_defconfig | 1 +
buildroot/configs/apf6legacy_defconfig | 1 +
buildroot/configs/apf6mediacenter_defconfig | 1 +
buildroot/configs/apf6test_defconfig | 1 +
buildroot/configs/apf6xenomai_defconfig | 1 +
buildroot/configs/opos6ul_defconfig | 1 +
buildroot/configs/opos6ul_legacy_defconfig | 1 +
buildroot/configs/opos6ul_recovery_defconfig | 1 +
.../target/device/armadeus/rootfs/post_build.sh | 6 +++++-
21 files changed, 25 insertions(+), 1 deletions(-)
diff --git a/buildroot/configs/apf27mainline_defconfig b/buildroot/configs/apf27mainline_defconfig
index b8094a6..fd79d3e 100644
--- a/buildroot/configs/apf27mainline_defconfig
+++ b/buildroot/configs/apf27mainline_defconfig
@@ -18,6 +18,7 @@ BR2_ENABLE_LOCALE_WHITELIST="C en_US"
BR2_TARGET_OPTIMIZATION="-Os -pipe"
BR2_TARGET_GENERIC_HOSTNAME="apf27"
BR2_TARGET_GENERIC_ISSUE="Welcome to Armadeus development platform !"
+BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_MDEV=y
BR2_TARGET_GENERIC_GETTY_PORT="ttymxc0"
BR2_ROOTFS_OVERLAY="$(ARMADEUS_PATH)/rootfs/target_overlay"
BR2_ROOTFS_POST_BUILD_SCRIPT="$(ARMADEUS_PATH)/rootfs/post_build.sh"
diff --git a/buildroot/configs/apf27preempt-rtmainline_defconfig b/buildroot/configs/apf27preempt-rtmainline_defconfig
index 318e7f0..d376792 100644
--- a/buildroot/configs/apf27preempt-rtmainline_defconfig
+++ b/buildroot/configs/apf27preempt-rtmainline_defconfig
@@ -18,6 +18,7 @@ BR2_ENABLE_LOCALE_WHITELIST="C en_US"
BR2_TARGET_OPTIMIZATION="-Os -pipe"
BR2_TARGET_GENERIC_HOSTNAME="apf27"
BR2_TARGET_GENERIC_ISSUE="Welcome to Armadeus development platform !"
+BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_MDEV=y
BR2_TARGET_GENERIC_GETTY_PORT="ttymxc0"
BR2_ROOTFS_OVERLAY="$(ARMADEUS_PATH)/rootfs/target_overlay"
BR2_ROOTFS_POST_BUILD_SCRIPT="$(ARMADEUS_PATH)/rootfs/post_build.sh"
diff --git a/buildroot/configs/apf27xenomaimainline_defconfig b/buildroot/configs/apf27xenomaimainline_defconfig
index 66ab06d..b7fd5c9 100644
--- a/buildroot/configs/apf27xenomaimainline_defconfig
+++ b/buildroot/configs/apf27xenomaimainline_defconfig
@@ -16,6 +16,7 @@ BR2_ENABLE_LOCALE_WHITELIST="C en_US"
BR2_TARGET_OPTIMIZATION="-Os -pipe"
BR2_TARGET_GENERIC_HOSTNAME="apf27"
BR2_TARGET_GENERIC_ISSUE="Welcome to Armadeus development platform !"
+BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_MDEV=y
BR2_TARGET_GENERIC_GETTY_PORT="ttymxc0"
BR2_ROOTFS_OVERLAY="$(ARMADEUS_PATH)/rootfs/target_overlay"
BR2_ROOTFS_POST_BUILD_SCRIPT="$(ARMADEUS_PATH)/rootfs/post_build.sh"
diff --git a/buildroot/configs/apf28_defconfig b/buildroot/configs/apf28_defconfig
index 6951ef0..11498b9 100644
--- a/buildroot/configs/apf28_defconfig
+++ b/buildroot/configs/apf28_defconfig
@@ -17,6 +17,7 @@ BR2_ENABLE_LOCALE_WHITELIST="C en_US"
BR2_TARGET_OPTIMIZATION="-Os -pipe"
BR2_TARGET_GENERIC_HOSTNAME="apf28"
BR2_TARGET_GENERIC_ISSUE="Welcome to Armadeus development platform !"
+BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_MDEV=y
BR2_TARGET_GENERIC_GETTY_PORT="ttyAM0"
BR2_ROOTFS_OVERLAY="$(ARMADEUS_PATH)/rootfs/target_overlay"
BR2_ROOTFS_POST_BUILD_SCRIPT="$(ARMADEUS_PATH)/rootfs/post_build.sh"
diff --git a/buildroot/configs/apf28mainline_defconfig b/buildroot/configs/apf28mainline_defconfig
index de8dada..0a2063a 100644
--- a/buildroot/configs/apf28mainline_defconfig
+++ b/buildroot/configs/apf28mainline_defconfig
@@ -18,6 +18,7 @@ BR2_ENABLE_LOCALE_WHITELIST="C en_US"
BR2_TARGET_OPTIMIZATION="-Os -pipe"
BR2_TARGET_GENERIC_HOSTNAME="apf28"
BR2_TARGET_GENERIC_ISSUE="Welcome to Armadeus development platform !"
+BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_MDEV=y
BR2_TARGET_GENERIC_GETTY_PORT="ttyAMA0"
BR2_ROOTFS_OVERLAY="$(ARMADEUS_PATH)/rootfs/target_overlay"
BR2_ROOTFS_POST_BUILD_SCRIPT="$(ARMADEUS_PATH)/rootfs/post_build.sh"
diff --git a/buildroot/configs/apf28mainlinetest_defconfig b/buildroot/configs/apf28mainlinetest_defconfig
index 9341856..a7f08e1 100644
--- a/buildroot/configs/apf28mainlinetest_defconfig
+++ b/buildroot/configs/apf28mainlinetest_defconfig
@@ -18,6 +18,7 @@ BR2_ENABLE_LOCALE_WHITELIST="C en_US"
BR2_TARGET_OPTIMIZATION="-Os -pipe"
BR2_TARGET_GENERIC_HOSTNAME="apf28"
BR2_TARGET_GENERIC_ISSUE="Welcome to Armadeus development platform !"
+BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_MDEV=y
BR2_TARGET_GENERIC_GETTY_PORT="ttyAMA0"
BR2_ROOTFS_OVERLAY="$(ARMADEUS_PATH)/rootfs/target_overlay"
BR2_ROOTFS_POST_BUILD_SCRIPT="$(ARMADEUS_PATH)/rootfs/post_build.sh"
diff --git a/buildroot/configs/apf28test_defconfig b/buildroot/configs/apf28test_defconfig
index 8f02bf2..5963851 100644
--- a/buildroot/configs/apf28test_defconfig
+++ b/buildroot/configs/apf28test_defconfig
@@ -17,6 +17,7 @@ BR2_ENABLE_LOCALE_WHITELIST="C en_US"
BR2_TARGET_OPTIMIZATION="-Os -pipe"
BR2_TARGET_GENERIC_HOSTNAME="apf28"
BR2_TARGET_GENERIC_ISSUE="Welcome to Armadeus development platform !"
+BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_MDEV=y
BR2_TARGET_GENERIC_GETTY_PORT="ttyAM0"
BR2_ROOTFS_OVERLAY="$(ARMADEUS_PATH)/rootfs/target_overlay"
BR2_ROOTFS_POST_BUILD_SCRIPT="$(ARMADEUS_PATH)/rootfs/post_build.sh"
diff --git a/buildroot/configs/apf51_defconfig b/buildroot/configs/apf51_defconfig
index 0380e1b..41a170d 100644
--- a/buildroot/configs/apf51_defconfig
+++ b/buildroot/configs/apf51_defconfig
@@ -18,6 +18,7 @@ BR2_ENABLE_LOCALE_WHITELIST="C en_US"
BR2_TARGET_OPTIMIZATION="-Os -pipe"
BR2_TARGET_GENERIC_HOSTNAME="apf51"
BR2_TARGET_GENERIC_ISSUE="Welcome to Armadeus development platform !"
+BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_MDEV=y
BR2_TARGET_GENERIC_GETTY_PORT="ttymxc2"
BR2_ROOTFS_OVERLAY="$(ARMADEUS_PATH)/rootfs/target_overlay"
BR2_ROOTFS_POST_BUILD_SCRIPT="$(ARMADEUS_PATH)/rootfs/post_build.sh"
diff --git a/buildroot/configs/apf51mainline_defconfig b/buildroot/configs/apf51mainline_defconfig
index 188b3be..0570ac3 100644
--- a/buildroot/configs/apf51mainline_defconfig
+++ b/buildroot/configs/apf51mainline_defconfig
@@ -19,6 +19,7 @@ BR2_ENABLE_LOCALE_WHITELIST="C en_US"
BR2_TARGET_OPTIMIZATION="-Os -pipe"
BR2_TARGET_GENERIC_HOSTNAME="apf51"
BR2_TARGET_GENERIC_ISSUE="Welcome to Armadeus development platform !"
+BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_MDEV=y
BR2_TARGET_GENERIC_GETTY_PORT="ttymxc2"
BR2_ROOTFS_OVERLAY="$(ARMADEUS_PATH)/rootfs/target_overlay"
BR2_ROOTFS_POST_BUILD_SCRIPT="$(ARMADEUS_PATH)/rootfs/post_build.sh"
diff --git a/buildroot/configs/apf51test_defconfig b/buildroot/configs/apf51test_defconfig
index 1d2ce85..deaa4b4 100644
--- a/buildroot/configs/apf51test_defconfig
+++ b/buildroot/configs/apf51test_defconfig
@@ -18,6 +18,7 @@ BR2_ENABLE_LOCALE_WHITELIST="C en_US"
BR2_TARGET_OPTIMIZATION="-Os -pipe"
BR2_TARGET_GENERIC_HOSTNAME="apf51"
BR2_TARGET_GENERIC_ISSUE="Welcome to Armadeus development platform !"
+BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_MDEV=y
BR2_TARGET_GENERIC_GETTY_PORT="ttymxc2"
BR2_ROOTFS_OVERLAY="$(ARMADEUS_PATH)/rootfs/target_overlay"
BR2_ROOTFS_POST_BUILD_SCRIPT="$(ARMADEUS_PATH)/rootfs/post_build.sh"
diff --git a/buildroot/configs/apf6_defconfig b/buildroot/configs/apf6_defconfig
index 70908b4..6435f01 100644
--- a/buildroot/configs/apf6_defconfig
+++ b/buildroot/configs/apf6_defconfig
@@ -10,6 +10,7 @@ BR2_TOOLCHAIN_EXTERNAL=y
BR2_ENABLE_LOCALE_PURGE=y
BR2_TARGET_GENERIC_HOSTNAME="apf6"
BR2_TARGET_GENERIC_ISSUE="Welcome to Armadeus development platform !"
+BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_MDEV=y
BR2_TARGET_GENERIC_GETTY_PORT="ttymxc3"
BR2_ROOTFS_OVERLAY="$(ARMADEUS_PATH)/rootfs/target_overlay"
BR2_TARGET_TZ_INFO=y
diff --git a/buildroot/configs/apf6failsafe_defconfig b/buildroot/configs/apf6failsafe_defconfig
index 2850d9a..55f4c8d 100644
--- a/buildroot/configs/apf6failsafe_defconfig
+++ b/buildroot/configs/apf6failsafe_defconfig
@@ -10,6 +10,7 @@ BR2_TOOLCHAIN_EXTERNAL=y
BR2_ENABLE_LOCALE_PURGE=y
BR2_TARGET_GENERIC_HOSTNAME="apf6"
BR2_TARGET_GENERIC_ISSUE="Welcome to APF6 rescue/failsafe system !"
+BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_MDEV=y
BR2_TARGET_GENERIC_GETTY_PORT="ttymxc3"
BR2_ROOTFS_OVERLAY="$(ARMADEUS_PATH)/rootfs/target_overlay"
BR2_TARGET_TZ_INFO=y
diff --git a/buildroot/configs/apf6legacy-preempt-rt_defconfig b/buildroot/configs/apf6legacy-preempt-rt_defconfig
index da8d151..4c45148 100644
--- a/buildroot/configs/apf6legacy-preempt-rt_defconfig
+++ b/buildroot/configs/apf6legacy-preempt-rt_defconfig
@@ -10,6 +10,7 @@ BR2_TOOLCHAIN_EXTERNAL=y
BR2_ENABLE_LOCALE_PURGE=y
BR2_TARGET_GENERIC_HOSTNAME="apf6"
BR2_TARGET_GENERIC_ISSUE="Welcome to Armadeus development platform !"
+BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_MDEV=y
BR2_TARGET_GENERIC_GETTY_PORT="ttymxc3"
BR2_ROOTFS_OVERLAY="$(ARMADEUS_PATH)/rootfs/target_overlay"
BR2_TARGET_TZ_INFO=y
diff --git a/buildroot/configs/apf6legacy_defconfig b/buildroot/configs/apf6legacy_defconfig
index 0b9369c..71f7d79 100644
--- a/buildroot/configs/apf6legacy_defconfig
+++ b/buildroot/configs/apf6legacy_defconfig
@@ -10,6 +10,7 @@ BR2_TOOLCHAIN_EXTERNAL=y
BR2_ENABLE_LOCALE_PURGE=y
BR2_TARGET_GENERIC_HOSTNAME="apf6"
BR2_TARGET_GENERIC_ISSUE="Welcome to Armadeus development platform !"
+BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_MDEV=y
BR2_TARGET_GENERIC_GETTY_PORT="ttymxc3"
BR2_ROOTFS_OVERLAY="$(ARMADEUS_PATH)/rootfs/target_overlay"
BR2_TARGET_TZ_INFO=y
diff --git a/buildroot/configs/apf6mediacenter_defconfig b/buildroot/configs/apf6mediacenter_defconfig
index d0fe51f..735b5f2 100644
--- a/buildroot/configs/apf6mediacenter_defconfig
+++ b/buildroot/configs/apf6mediacenter_defconfig
@@ -10,6 +10,7 @@ BR2_TOOLCHAIN_EXTERNAL=y
BR2_ENABLE_LOCALE_PURGE=y
BR2_TARGET_GENERIC_HOSTNAME="apf6"
BR2_TARGET_GENERIC_ISSUE="Welcome to Armadeus development platform !"
+BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_MDEV=y
BR2_TARGET_GENERIC_GETTY_PORT="ttymxc3"
BR2_TARGET_TZ_INFO=y
BR2_TARGET_TZ_ZONELIST="europe"
diff --git a/buildroot/configs/apf6test_defconfig b/buildroot/configs/apf6test_defconfig
index aac0821..383829b 100644
--- a/buildroot/configs/apf6test_defconfig
+++ b/buildroot/configs/apf6test_defconfig
@@ -10,6 +10,7 @@ BR2_TOOLCHAIN_EXTERNAL=y
BR2_ENABLE_LOCALE_PURGE=y
BR2_TARGET_GENERIC_HOSTNAME="apf6"
BR2_TARGET_GENERIC_ISSUE="Welcome to Armadeus development platform !"
+BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_MDEV=y
BR2_TARGET_GENERIC_GETTY_PORT="ttymxc3"
BR2_ROOTFS_OVERLAY="$(ARMADEUS_PATH)/rootfs/target_overlay"
BR2_TARGET_TZ_INFO=y
diff --git a/buildroot/configs/apf6xenomai_defconfig b/buildroot/configs/apf6xenomai_defconfig
index dfb9475..af3594d 100644
--- a/buildroot/configs/apf6xenomai_defconfig
+++ b/buildroot/configs/apf6xenomai_defconfig
@@ -10,6 +10,7 @@ BR2_TOOLCHAIN_EXTERNAL=y
BR2_ENABLE_LOCALE_PURGE=y
BR2_TARGET_GENERIC_HOSTNAME="apf6"
BR2_TARGET_GENERIC_ISSUE="Welcome to Armadeus development platform !"
+BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_MDEV=y
BR2_TARGET_GENERIC_GETTY_PORT="ttymxc3"
BR2_ROOTFS_OVERLAY="$(ARMADEUS_PATH)/rootfs/target_overlay"
BR2_TARGET_TZ_INFO=y
diff --git a/buildroot/configs/opos6ul_defconfig b/buildroot/configs/opos6ul_defconfig
index dc238a4..5a1371c 100644
--- a/buildroot/configs/opos6ul_defconfig
+++ b/buildroot/configs/opos6ul_defconfig
@@ -8,6 +8,7 @@ BR2_TOOLCHAIN_EXTERNAL=y
BR2_ENABLE_LOCALE_PURGE=y
BR2_TARGET_GENERIC_HOSTNAME="opos6ul"
BR2_TARGET_GENERIC_ISSUE="Welcome to Armadeus development platform !"
+BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_MDEV=y
BR2_TARGET_GENERIC_GETTY_PORT="ttymxc0"
BR2_TARGET_TZ_INFO=y
BR2_TARGET_TZ_ZONELIST="europe"
diff --git a/buildroot/configs/opos6ul_legacy_defconfig b/buildroot/configs/opos6ul_legacy_defconfig
index c274d63..3fc6dde 100644
--- a/buildroot/configs/opos6ul_legacy_defconfig
+++ b/buildroot/configs/opos6ul_legacy_defconfig
@@ -8,6 +8,7 @@ BR2_TOOLCHAIN_EXTERNAL=y
BR2_ENABLE_LOCALE_PURGE=y
BR2_TARGET_GENERIC_HOSTNAME="opos6ul"
BR2_TARGET_GENERIC_ISSUE="Welcome to Armadeus development platform !"
+BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_MDEV=y
BR2_TARGET_GENERIC_GETTY_PORT="ttymxc0"
BR2_TARGET_TZ_INFO=y
BR2_TARGET_TZ_ZONELIST="europe"
diff --git a/buildroot/configs/opos6ul_recovery_defconfig b/buildroot/configs/opos6ul_recovery_defconfig
index d36d781..37e8141 100644
--- a/buildroot/configs/opos6ul_recovery_defconfig
+++ b/buildroot/configs/opos6ul_recovery_defconfig
@@ -8,6 +8,7 @@ BR2_TOOLCHAIN_EXTERNAL=y
BR2_ENABLE_LOCALE_PURGE=y
BR2_TARGET_GENERIC_HOSTNAME="opos6ul"
BR2_TARGET_GENERIC_ISSUE="Welcome to OPOS6UL rescue/failsafe system !"
+BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_MDEV=y
BR2_TARGET_GENERIC_GETTY_PORT="ttymxc0"
BR2_ROOTFS_OVERLAY="$(ARMADEUS_PATH)/rootfs/target_overlay"
BR2_TARGET_TZ_INFO=y
diff --git a/buildroot/target/device/armadeus/rootfs/post_build.sh b/buildroot/target/device/armadeus/rootfs/post_build.sh
index 21c1f6a..c59a811 100755
--- a/buildroot/target/device/armadeus/rootfs/post_build.sh
+++ b/buildroot/target/device/armadeus/rootfs/post_build.sh
@@ -25,7 +25,11 @@ symlink_image $1/boot zImage $2-linux.bin
# Not using $2 because it can be changed for customers' BSP
if [ "$3" != "imxl" ]; then
- echo "APF"${3//[!0-9]/} > $1/etc/machine
+ if [ "$3" != "imx6ul" ]; then
+ echo "APF"${3//[!0-9]/} > $1/etc/machine
+ else
+ echo "OPOS6UL" > $1/etc/machine
+ fi
else
echo "APF9328" > $1/etc/machine
fi
hooks/post-receive
--
armadeus
|
|
From: Julien B a. A. <ar...@us...> - 2016-10-10 13:10:02
|
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "armadeus".
The branch, buildroot-update has been updated
via ce9622b9ebc113ac6d8734754ef243bf96c05f70 (commit)
via e48e7de35ccd7111a4c7e3ead23f08eed8a3aded (commit)
via 69741676613080447ae0b7aa356b9ec6d0358eda (commit)
via faddf8dc2b4a5453c00caa13dcc706e656385ede (commit)
from db53ae09f6da3f0c062c57d9a25bf8f15fda412c (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit ce9622b9ebc113ac6d8734754ef243bf96c05f70
Author: Julien BOIBESSOT <jul...@ar...>
Date: Mon Oct 10 15:03:38 2016 +0200
[BUILDROOT] Rename opos6ulfailsafe_defconfig to opos6ul_recovery_defconfig
commit e48e7de35ccd7111a4c7e3ead23f08eed8a3aded
Author: Julien BOIBESSOT <jul...@ar...>
Date: Thu Oct 6 16:33:39 2016 +0200
[ASDEVICES] Add drivers for BMP180 (pressure) & HMC5883L (accelerometer) I2C sensors
commit 69741676613080447ae0b7aa356b9ec6d0358eda
Author: Julien BOIBESSOT <jul...@ar...>
Date: Wed Sep 28 19:05:07 2016 +0200
[BUILDROOT] post_build.sh: remove unneeded brcm firmwares on OPOS6UL
commit faddf8dc2b4a5453c00caa13dcc706e656385ede
Author: Julien BOIBESSOT <jul...@ar...>
Date: Wed Sep 28 19:03:55 2016 +0200
[BUILDROOT] post_image_creation.sh: no need for boot.ext4 on OPOS6UL
-----------------------------------------------------------------------
Summary of changes:
...ilsafe_defconfig => opos6ul_recovery_defconfig} | 0
.../target/device/armadeus/rootfs/post_build.sh | 10 ++
.../device/armadeus/rootfs/post_image_creation.sh | 5 +-
.../packages/as_devices/python/AsDevices/bmp180.py | 159 ++++++++++++++++++++
.../as_devices/python/AsDevices/hmc5883l.py | 86 +++++++++++
5 files changed, 257 insertions(+), 3 deletions(-)
rename buildroot/configs/{opos6ulfailsafe_defconfig => opos6ul_recovery_defconfig} (100%)
create mode 100644 target/packages/as_devices/python/AsDevices/bmp180.py
create mode 100644 target/packages/as_devices/python/AsDevices/hmc5883l.py
diff --git a/buildroot/configs/opos6ulfailsafe_defconfig b/buildroot/configs/opos6ul_recovery_defconfig
similarity index 100%
rename from buildroot/configs/opos6ulfailsafe_defconfig
rename to buildroot/configs/opos6ul_recovery_defconfig
diff --git a/buildroot/target/device/armadeus/rootfs/post_build.sh b/buildroot/target/device/armadeus/rootfs/post_build.sh
index 3b06084..21c1f6a 100755
--- a/buildroot/target/device/armadeus/rootfs/post_build.sh
+++ b/buildroot/target/device/armadeus/rootfs/post_build.sh
@@ -35,4 +35,14 @@ if [ "$3" != "imx6" ]; then
rm -rf $1/etc/init.d/S30wifi
fi
+# Remove unneeded firmware on OPOS6UL:
+if [ "$3" == "imx6ul" ]; then
+ UNNEEDED_FIRM=`ls -ad $1/lib/firmware/brcm/* | grep -v brcmfmac43430`
+ for firmware in $UNNEEDED_FIRM; do
+ if [ -f "$firmware" ]; then
+ rm -rf "$firmware"
+ fi
+ done
+fi
+
exit 0
diff --git a/buildroot/target/device/armadeus/rootfs/post_image_creation.sh b/buildroot/target/device/armadeus/rootfs/post_image_creation.sh
index a477a99..f89a763 100755
--- a/buildroot/target/device/armadeus/rootfs/post_image_creation.sh
+++ b/buildroot/target/device/armadeus/rootfs/post_image_creation.sh
@@ -40,7 +40,6 @@ if [ "$2" != "" ]; then
# APF6
symlink_image $1 SPL $2-u-boot.spl
symlink_image $1 u-boot.img $2-u-boot.img
-
else
# Old BR compat
BOARD_NAME=`grep 'BR2_BOARD_NAME=' $BUILDROOT_CONFIG | cut -d = -f 2 | sed s/\"//g`
@@ -49,8 +48,8 @@ else
fi
fi
-# if target uses ext4 for rootfs,
-if [ -f "$1/rootfs.ext4" ]; then
+# if target uses ext4 for rootfs and is not an opos6ul,
+if [ -f "$1/rootfs.ext4" ] && [ "$3" != "imx6ul" ]; then
# generate also boot.ext4:
mke2img -d $1/../target/boot/ -G 4 -R 1 -l BOOT -b 49152 -o $1/boot.ext4
symlink_image $1 boot.ext4 $2-boot.ext4
diff --git a/target/packages/as_devices/python/AsDevices/bmp180.py b/target/packages/as_devices/python/AsDevices/bmp180.py
new file mode 100644
index 0000000..7828095
--- /dev/null
+++ b/target/packages/as_devices/python/AsDevices/bmp180.py
@@ -0,0 +1,159 @@
+#!/usr/bin/python
+# -*- coding: utf-8 -*-
+#
+# License: GNU LESSER GENERAL PUBLIC LICENSE, see COPYING.
+#
+
+__doc__ = "This class drives BMP180 digital pressure sensor"
+__version__ = "0.1.0"
+__versionTime__ = "06/10/2016"
+__author__ = "Julien Boibessot <jul...@ar...>"
+
+import smbus
+import time
+
+BMP_I2C_ADDR = 0x77
+
+class BMP180(object):
+ def __init__(self, bus_id, address):
+ self._bus = smbus.SMBus(bus_id)
+ if address is not None:
+ self._address = address
+ else:
+ self._address = BMP_I2C_ADDR
+ self._get_id()
+ self._load_calibration_coeffs()
+ self.display_calibration_coeffs()
+
+ def _get_id(self):
+ id = self._bus.read_byte_data(self._address, 0xd0)
+ if id != 0x55:
+ print "No valid BMP180 ID found ! (0x%02x != 0x55)" % id
+ return id
+
+ def _be_conv(self, le):
+ """little endian -> big endian"""
+ be = ((le << 8) & 0xFF00) + (le >> 8)
+ return be
+
+ def _get_unsigned_calib_coeff(self, reg_addr):
+ result = self._bus.read_word_data(self._address, reg_addr)
+ result = self._be_conv(result)
+ return result
+
+ def _get_signed_calib_coeff(self, reg_addr):
+ result = self._get_unsigned_calib_coeff(reg_addr)
+ if result > 32767:
+ result -= 65536
+ return result
+
+ def _load_calibration_coeffs(self):
+ self._AC1 = self._get_signed_calib_coeff(0xaa)
+ self._AC2 = self._get_signed_calib_coeff(0xac)
+ self._AC3 = self._get_signed_calib_coeff(0xae)
+ self._AC4 = self._get_unsigned_calib_coeff(0xb0)
+ self._AC5 = self._get_unsigned_calib_coeff(0xb2)
+ self._AC6 = self._get_unsigned_calib_coeff(0xb4)
+ self._B1 = self._get_signed_calib_coeff(0xb6)
+ self._B2 = self._get_signed_calib_coeff(0xb8)
+ self._MB = self._get_signed_calib_coeff(0xba)
+ self._MC = self._get_signed_calib_coeff(0xbc)
+ self._MD = self._get_signed_calib_coeff(0xbe)
+
+ def _load_datasheet_calibration_coeffs(self):
+ self._AC1 = 408
+ self._AC2 = -72
+ self._AC3 = -14383
+ self._AC4 = 32741
+ self._AC5 = 32757
+ self._AC6 = 23153
+ self._B1 = 6190
+ self._B2 = 4
+ self._MB = -32767
+ self._MC = -8711
+ self._MD = 2868
+
+ def display_calibration_coeffs(self):
+ """Printout calibration coefficients of chips. Mainly
+ for debug purpose."""
+ print "AC1 = %d" % self._AC1
+ print "AC2 = %d" % self._AC2
+ print "AC3 = %d" % self._AC3
+ print "AC4 = %d" % self._AC4
+ print "AC5 = %d" % self._AC5
+ print "AC6 = %d" % self._AC6
+ print "B1 = %d" % self._B1
+ print "B2 = %d" % self._B2
+ print "MB = %d" % self._MB
+ print "MC = %d" % self._MC
+ print "MD = %d" % self._MD
+
+ def get_temperature(self):
+ """Return temperature measured by BMP180 in Celsius degrees"""
+ # read uncompensated temperature value:
+ self._bus.write_byte_data(self._address, 0xf4, 0x2e)
+ time.sleep(0.005)
+ MSB = self._bus.read_byte_data(self._address, 0xf6)
+ LSB = self._bus.read_byte_data(self._address, 0xf7)
+ UT = (MSB << 8) + LSB
+ #
+# UT = 27898
+ #
+ # calculate true temperature:
+ X1 = (UT-self._AC6)*(self._AC5 / 32768.0)
+ X2 = (self._MC * 2048.0) / (X1 + self._MD)
+ self._B5 = int(X1) + int(X2)
+ print "UT = %d\nX1 = %d\nX2 = %d\nB5 = %d" % (UT, X1, X2, self._B5)
+ T = (self._B5 + 8) / 16
+ T = T / 10.0
+ return T
+
+ def get_pressure(self, oss=0):
+ """Return pressure measured by BMP180 in HPa"""
+ self.get_temperature() # -> B5
+ # read uncompensated pressure value:
+ self._bus.write_byte_data(self._address, 0xf4, (0x34+(oss<<6)))
+ time.sleep(0.03) # 30ms, should depend on mode
+ MSB = self._bus.read_byte_data(self._address, 0xf6)
+ LSB = self._bus.read_byte_data(self._address, 0xf7)
+ XLSB = self._bus.read_byte_data(self._address, 0xf8)
+ UP = ((MSB << 16) + (LSB << 8) + XLSB) >> (8 - oss)
+ #
+# self._load_datasheet_calibration_coeffs()
+# self._B5 = 2399
+# UP = 23843
+# oss = 0
+ #
+ print "UP = %d" % UP
+ # calculate true pressure:
+ B6 = self._B5 - 4000
+ X1 = int(self._B2 * (B6 * B6 >> 12)) >> 11
+ X2 = (self._AC2 * B6) >> 11
+ X3 = X1 + X2
+ B3 = ((int(self._AC1 * 4 + X3) << oss) + 2) >> 2
+ print "B6 = %d\nX1 = %d\nX2 = %d\nX3 = %d\nB3 = %d" % (B6, X1, X2, X3, B3)
+ X1 = self._AC3 * B6 / 8192
+ X2 = (self._B1 * ((B6 * B6 >> 12))) >> 16
+ X3 = ((X1+X2)+2)/4
+ B4 = self._AC4 * (X3+32768) >> 15
+ B7 = (UP-B3)*(50000>>oss)
+ print "X1 = %d\nX2 = %d\nX3 = %d\nB4 = %d\nB7 = %d" % (X1, X2, X3, B4, B7)
+ if B7 < 0x80000000:
+ p = (B7 * 2) / B4
+ else:
+ p = (B7 / B4) * 2
+ X1 = (p >> 8) * (p >> 8)
+ print "X1 = %d" % X1
+ X1 = (X1*3038) >> 16
+ X2 = (-7357*p) >> 16
+ print "X1 = %d\nX2 = %d" % (X1, X2)
+ p = p+((X1+X2+3791) >> 4)
+ p = p / 100.0
+ return p
+
+# For test purpose:
+bmp = BMP180(bus_id=1, address=0x77)
+temp = bmp.get_temperature()
+print ">>> Temperature = %02.02f oC" % temp
+pressure = bmp.get_pressure(3)
+print ">>> Pressure = %04.02f HPa" % pressure
diff --git a/target/packages/as_devices/python/AsDevices/hmc5883l.py b/target/packages/as_devices/python/AsDevices/hmc5883l.py
new file mode 100644
index 0000000..a4874b7
--- /dev/null
+++ b/target/packages/as_devices/python/AsDevices/hmc5883l.py
@@ -0,0 +1,86 @@
+#!/usr/bin/python
+# -*- coding: utf-8 -*-
+#
+# License: GNU LESSER GENERAL PUBLIC LICENSE, see COPYING.
+#
+
+__doc__ = "This class drives HMC5883L 3-axis digital compass"
+__version__ = "0.1.0"
+__versionTime__ = "06/10/2016"
+__author__ = "Julien Boibessot <jul...@ar...>"
+
+import smbus
+import time
+
+HMC_I2C_ADDR = 0x1e
+
+class HMC5883L(object):
+ def __init__(self, bus_id, address):
+ self._bus = smbus.SMBus(bus_id)
+ if address is not None:
+ self._address = address
+ else:
+ self._address = HMC_I2C_ADDR
+ self._get_id()
+# self._dump_regs()
+
+ def _read_reg(self, id):
+ self._bus.write_byte(self._address, id)
+ reg = self._bus.read_byte(self._address)
+ return reg
+
+ def _get_id(self):
+ self._bus.write_byte(self._address, 10)
+ id_a = self._read_reg(10)
+ id_b = self._read_reg(11)
+ id_c = self._read_reg(12)
+ if id_a != 0x48 or id_b != 0x34 or id_c != 0x33:
+ print "No valid HMC5883L IDs found ! (0x%02x 0x%02x 0x%02x != 0x48 0x34 0x33)" % (id_a, id_b, id_c)
+ return id
+
+ def _dump_regs(self):
+ for i in range(0,13):
+ self._bus.write_byte(self._address, i)
+ reg = self._bus.read_byte(self._address)
+ print "reg%d = 0x%02x" % (i, reg)
+
+ def _twos_comp(self, val, bits):
+ """compute the 2's compliment of int value val"""
+ if (val & (1 << (bits - 1))) != 0: # if sign bit is set e.g., 8bit: 128-255
+ val = val - (1 << bits) # compute negative value
+ return val
+
+ def _be_conv(self, le):
+ be = ((le << 8) & 0xFF00) + (le >> 8)
+ return be
+
+ def _get_unsigned_calib_coeff(self, reg_addr):
+ result = self._bus.read_word_data(self._address, reg_addr)
+ result = self._be_conv(result)
+ return result
+
+ def _get_signed_calib_coeff(self, reg_addr):
+ result = self._get_unsigned_calib_coeff(reg_addr)
+ if result > 32767:
+ result -= 65536
+ return result
+
+ def start_single_measurement(self):
+ data = [0, 0, 0]
+ self._bus.write_byte_data(self._address, 0, 0x70)
+ self._bus.write_byte_data(self._address, 1, 0xe0)
+ self._bus.write_byte_data(self._address, 2, 0x01)
+ time.sleep(0.006) # 6ms
+# reg = self._bus.read_block_data(self._address, 6)
+ for i in (0, 2, 4):
+ MSB = self._read_reg(3+i)
+ LSB = self._read_reg(4+i)
+ print "MSB = 0x%02x LSB = 0x%02x" % (MSB, LSB)
+ val = (MSB << 8) + LSB
+ val = self._twos_comp(val, 16)
+ data[i/2] = val
+ print data
+
+# For test purpose:
+hmc = HMC5883L(bus_id=1, address=0x1e)
+hmc.start_single_measurement()
hooks/post-receive
--
armadeus
|
|
From: Sébastien S. <ss...@us...> - 2016-09-30 13:36:45
|
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "armadeus".
The branch, buildroot-update has been updated
via db53ae09f6da3f0c062c57d9a25bf8f15fda412c (commit)
from 0d2a390a6cec4299a355ac5d14b41db5ed48041d (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit db53ae09f6da3f0c062c57d9a25bf8f15fda412c
Author: Sébastien Szymanski <seb...@ar...>
Date: Fri Sep 30 15:39:37 2016 +0200
[LINUX] 3.10.mx6_legacy: fix compilation with gcc 5
-----------------------------------------------------------------------
Summary of changes:
...LLVMLinux-use-static-inline-in-ARM-ftrace.patch | 52 ++++++++++++++++++++
...drop-warning-about-return_address-not-usi.patch | 40 +++++++++++++++
2 files changed, 92 insertions(+), 0 deletions(-)
create mode 100644 patches/linux/3.10.mx6_legacy/0459-ARM-8158-1-LLVMLinux-use-static-inline-in-ARM-ftrace.patch
create mode 100644 patches/linux/3.10.mx6_legacy/0460-ARM-8160-1-drop-warning-about-return_address-not-usi.patch
diff --git a/patches/linux/3.10.mx6_legacy/0459-ARM-8158-1-LLVMLinux-use-static-inline-in-ARM-ftrace.patch b/patches/linux/3.10.mx6_legacy/0459-ARM-8158-1-LLVMLinux-use-static-inline-in-ARM-ftrace.patch
new file mode 100644
index 0000000..1449a47
--- /dev/null
+++ b/patches/linux/3.10.mx6_legacy/0459-ARM-8158-1-LLVMLinux-use-static-inline-in-ARM-ftrace.patch
@@ -0,0 +1,52 @@
+From aeea3592a13bf12861943e44fc48f1f270941f8d Mon Sep 17 00:00:00 2001
+From: Behan Webster <be...@co...>
+Date: Wed, 24 Sep 2014 01:06:46 +0100
+Subject: [PATCH] ARM: 8158/1: LLVMLinux: use static inline in ARM ftrace.h
+
+With compilers which follow the C99 standard (like modern versions of gcc and
+clang), "extern inline" does the wrong thing (emits code for an externally
+linkable version of the inline function). In this case using static inline
+and removing the NULL version of return_address in return_address.c does
+the right thing.
+
+Signed-off-by: Behan Webster <be...@co...>
+Reviewed-by: Mark Charlebois <cha...@gm...>
+Acked-by: Steven Rostedt <ro...@go...>
+Signed-off-by: Russell King <rmk...@ar...>
+---
+ arch/arm/include/asm/ftrace.h | 2 +-
+ arch/arm/kernel/return_address.c | 5 -----
+ 2 files changed, 1 insertion(+), 6 deletions(-)
+
+diff --git a/arch/arm/include/asm/ftrace.h b/arch/arm/include/asm/ftrace.h
+index 39eb16b..bfe2a2f 100644
+--- a/arch/arm/include/asm/ftrace.h
++++ b/arch/arm/include/asm/ftrace.h
+@@ -45,7 +45,7 @@ void *return_address(unsigned int);
+
+ #else
+
+-extern inline void *return_address(unsigned int level)
++static inline void *return_address(unsigned int level)
+ {
+ return NULL;
+ }
+diff --git a/arch/arm/kernel/return_address.c b/arch/arm/kernel/return_address.c
+index fafedd8..f6aa84d 100644
+--- a/arch/arm/kernel/return_address.c
++++ b/arch/arm/kernel/return_address.c
+@@ -63,11 +63,6 @@ void *return_address(unsigned int level)
+ #warning "TODO: return_address should use unwind tables"
+ #endif
+
+-void *return_address(unsigned int level)
+-{
+- return NULL;
+-}
+-
+ #endif /* if defined(CONFIG_FRAME_POINTER) && !defined(CONFIG_ARM_UNWIND) / else */
+
+ EXPORT_SYMBOL_GPL(return_address);
+--
+2.3.6
+
diff --git a/patches/linux/3.10.mx6_legacy/0460-ARM-8160-1-drop-warning-about-return_address-not-usi.patch b/patches/linux/3.10.mx6_legacy/0460-ARM-8160-1-drop-warning-about-return_address-not-usi.patch
new file mode 100644
index 0000000..c8fe5e6
--- /dev/null
+++ b/patches/linux/3.10.mx6_legacy/0460-ARM-8160-1-drop-warning-about-return_address-not-usi.patch
@@ -0,0 +1,40 @@
+From e16343c47e4276f5ebc77ca16feb5e50ca1918f9 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= <u.k...@pe...>
+Date: Wed, 24 Sep 2014 08:51:57 +0100
+Subject: [PATCH] ARM: 8160/1: drop warning about return_address not using
+ unwind tables
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+The warning was introduced in 2009 (commit 4bf1fa5a34aa ([ARM] 5613/1:
+implement CALLER_ADDRESSx)). The only "problem" here is that
+CALLER_ADDRESSx for x > 1 returns NULL which doesn't do much harm.
+
+The drawback of implementing a fix (i.e. use unwind tables to implement CALLER_ADDRESSx) is that much of the unwinder code would need to be marked as not
+traceable.
+
+Signed-off-by: Uwe Kleine-König <u.k...@pe...>
+Signed-off-by: Russell King <rmk...@ar...>
+---
+ arch/arm/kernel/return_address.c | 4 ----
+ 1 file changed, 4 deletions(-)
+
+diff --git a/arch/arm/kernel/return_address.c b/arch/arm/kernel/return_address.c
+index f6aa84d..98ea4b7 100644
+--- a/arch/arm/kernel/return_address.c
++++ b/arch/arm/kernel/return_address.c
+@@ -59,10 +59,6 @@ void *return_address(unsigned int level)
+
+ #else /* if defined(CONFIG_FRAME_POINTER) && !defined(CONFIG_ARM_UNWIND) */
+
+-#if defined(CONFIG_ARM_UNWIND)
+-#warning "TODO: return_address should use unwind tables"
+-#endif
+-
+ #endif /* if defined(CONFIG_FRAME_POINTER) && !defined(CONFIG_ARM_UNWIND) / else */
+
+ EXPORT_SYMBOL_GPL(return_address);
+--
+2.3.6
+
hooks/post-receive
--
armadeus
|
|
From: Sébastien S. <ss...@us...> - 2016-09-28 07:38:51
|
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "armadeus".
The branch, buildroot-update has been updated
via 0d2a390a6cec4299a355ac5d14b41db5ed48041d (commit)
from ec2974c29fcc6101daf76d4f67ed0fa5e63a5c1c (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 0d2a390a6cec4299a355ac5d14b41db5ed48041d
Author: Sébastien Szymanski <seb...@ar...>
Date: Wed Sep 28 09:41:53 2016 +0200
[BUILDROOT] 2016.08: cleanup_buildroot.sh: add linux-firmware
-----------------------------------------------------------------------
Summary of changes:
patches/buildroot/2016.08/cleanup_buildroot.sh | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/patches/buildroot/2016.08/cleanup_buildroot.sh b/patches/buildroot/2016.08/cleanup_buildroot.sh
index ac8c065..fd36984 100755
--- a/patches/buildroot/2016.08/cleanup_buildroot.sh
+++ b/patches/buildroot/2016.08/cleanup_buildroot.sh
@@ -60,6 +60,7 @@ rm -rf buildroot/package/libpng/0001-Disable-pngfix-and-png-fix-itxt.patch
rm -rf buildroot/package/libpng/0002-Don-t-append-prefix-to-symbol-names-in-version-script.patch
rm -rf buildroot/package/libpng/libpng.hash
rm -rf buildroot/package/libpng/libpng.mk
+rm -rf buildroot/package/linux-firmware/linux-firmware.mk
rm -rf buildroot/package/linux-headers/2.6.29.6/0001-net-Support-inclusion-of-linux-socket.h-before-sys-s.patch
rm -rf buildroot/package/linux-headers/2.6.29.6/368-redhat-types_h-define-__aligned_u64-and-expose-to-userspace.patch
rm -rf buildroot/package/linux-headers/2.6.35.3/368-redhat-types_h-define-__aligned_u64-and-expose-to-userspace.patch
hooks/post-receive
--
armadeus
|