armadeus-commitlog Mailing List for armadeus (Page 62)
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: jorasse <jo...@us...> - 2013-05-22 17:14:34
|
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, master has been updated
via 54997a0cd2a92ac5394ed42fb0dbe2cdaa7764f0 (commit)
from 1e27a26a888f77c2f3668f8b0e4c2e771941b851 (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 54997a0cd2a92ac5394ed42fb0dbe2cdaa7764f0
Author: Eric Jarrige <eri...@ar...>
Date: Wed May 22 19:21:47 2013 +0200
[OTHER] Busybox: cleanup obsolete patch
-----------------------------------------------------------------------
Summary of changes:
...usybox-1.19.4_stty_add_rs485_config.patch.tofix | 336 --------------------
1 files changed, 0 insertions(+), 336 deletions(-)
delete mode 100644 buildroot/package/busybox/busybox-1.19.4/001_busybox-1.19.4_stty_add_rs485_config.patch.tofix
diff --git a/buildroot/package/busybox/busybox-1.19.4/001_busybox-1.19.4_stty_add_rs485_config.patch.tofix b/buildroot/package/busybox/busybox-1.19.4/001_busybox-1.19.4_stty_add_rs485_config.patch.tofix
deleted file mode 100644
index 9f1f282..0000000
--- a/buildroot/package/busybox/busybox-1.19.4/001_busybox-1.19.4_stty_add_rs485_config.patch.tofix
+++ /dev/null
@@ -1,336 +0,0 @@
-BusyBox stty: Add RS485 config options
-
-The patch adds RS485 config options for serial devices/drivers
-which are supporting the ioctl based configurations documented in:
-https://www.kernel.org/doc/Documentation/serial/serial-rs485.txt
-
-New config parameters:
-rs485 - Switch on/off the RS485 mode
-rs485rtsonsend - Set logical level for RTS pin when sending
-rs485rtsaftersend - Set logical level for RTS pin after sent
-rs485rxduringtx - Switch on/off Rx enable during packet transmit
-rs485delaybefore 0 - Set delay between RTS signaling and the
- transmission of the first bit
-rs485delayafter 0 - Set delay between the transmission of the last
- bit and the RTS state change
-
-New read only parameter:
-rs485delaylastchartx 0 - Shows the automatically calculated delay
- between the serial port Tx FIFO empty
- state and the last bit transmission
-
-Currently the following serial drivers supports the RS485 options:
-- crisv10.c ETRAX 100LX
-- atmel_serial.c Atmel AT91 / AT32
-- mxs-auart.c Freescale STMP37XX/STMP378X iMX28
-
-Signed-off-by: Janos Angeli <an...@an...>
----
-Index: busybox-1.19.4/coreutils/stty.c
-===================================================================
---- busybox-1.19.4.orig/coreutils/stty.c
-+++ busybox-1.19.4/coreutils/stty.c
-@@ -19,6 +19,8 @@
-
- Special for busybox ported by Vladimir Oleynik <dz...@si...> 2001
-
-+ RS485 options added by Janos Angeli <an...@an...> 2013
-+
- */
-
- //usage:#define stty_trivial_usage
-@@ -32,6 +34,27 @@
- //usage: "\n [SETTING] See manpage"
-
- #include "libbb.h"
-+#include <asm-generic/ioctls.h>
-+#include <linux/ioctl.h>
-+
-+//#include <linux/serial.h>
-+//We don't include <linux/serial.h> now, because it is missing some RS485 definitions.
-+//We need only the serial_rs485 struct from it and the __u32 def from <linux/types.h>
-+//In later versions we will be able to switch back to the original include.
-+#include <linux/types.h>
-+struct serial_rs485 {
-+ __u32 flags; /* RS485 feature flags */
-+#define SER_RS485_ENABLED (1 << 0) /* If enabled */
-+#define SER_RS485_RTS_ON_SEND (1 << 1) /* Logical level for RTS pin when sending */
-+#define SER_RS485_RTS_AFTER_SEND (1 << 2) /* Logical level for RTS pin after sent */
-+#define SER_RS485_RX_DURING_TX (1 << 4)
-+ __u32 delay_rts_before_send; /* Delay before send */
-+ __u32 delay_rts_after_send; /* Delay after send */
-+ __u32 delay_rts_last_char_tx; /* Delay for last char Tx from FIFO (microseconds)
-+ This delay is automatically calculated from baudrate */
-+ __u32 padding[4]; /* Memory is cheap, new structs are a royal PITA .. */
-+};
-+//End of temporally include <linux/serial.h>
-
- #ifndef _POSIX_VDISABLE
- # define _POSIX_VDISABLE ((unsigned char) 0)
-@@ -966,11 +989,27 @@ static int find_param(const char *name)
- return i;
- }
-
--static int recover_mode(const char *arg, struct termios *mode)
-+static int find_rs485config(const char *name)
-+{
-+ static const char params[] ALIGN1 =
-+ "rs485\0" /* 1 */
-+ "rs485rtsonsend\0" /* 2 */
-+ "rs485rtsaftersend\0" /* 3 */
-+ "rs485rxduringtx\0" /* 4 */
-+ "rs485delaybefore\0" /* 5 */
-+ "rs485delayafter\0"; /* 6 */
-+ int i = index_in_strings(params, name) + 1;
-+ if ((i == 5) || (i == 6))
-+ i |= 0x80;
-+ return i;
-+}
-+
-+static int recover_mode(const char *arg, struct termios *mode, struct serial_rs485 *rs485conf, int paramcheck, int rs485)
- {
- int i, n;
- unsigned chr;
- unsigned long iflag, oflag, cflag, lflag;
-+ unsigned long rsflags, rsdelaybefore, rsdelayafter;
-
- /* Scan into temporaries since it is too much trouble to figure out
- the right format for 'tcflag_t' */
-@@ -989,15 +1028,28 @@ static int recover_mode(const char *arg,
- arg += n;
- }
-
-+ if (rs485 >= 0) {
-+ if (sscanf(arg, ":%lx:%lx:%lx%n", &rsflags, &rsdelaybefore, &rsdelayafter, &n) != 3)
-+ return 0;
-+ rs485conf->flags = rsflags;
-+ rs485conf->delay_rts_before_send = rsdelaybefore;
-+ rs485conf->delay_rts_after_send = rsdelayafter;
-+ arg += n;
-+ }
-+
- /* Fail if there are too many fields */
-- if (*arg != '\0')
-+ if (*arg != '\0') {
-+ /* In the first pass of params verify we don't know the port device
-+ have RS485 support or not, so give a try for the extra RS485 params */
-+ if ((paramcheck) && (sscanf(arg, ":%lx:%lx:%lx%n", &rsflags, &rsdelaybefore, &rsdelayafter, &n) == 3))
-+ return 1;
- return 0;
--
-+ }
- return 1;
- }
-
--static void display_recoverable(const struct termios *mode,
-- int UNUSED_PARAM dummy)
-+static void display_recoverable(const struct termios *mode, const struct serial_rs485 *rs485conf,
-+ int UNUSED_PARAM dummy, int rs485)
- {
- int i;
- printf("%lx:%lx:%lx:%lx",
-@@ -1005,6 +1057,12 @@ static void display_recoverable(const st
- (unsigned long) mode->c_cflag, (unsigned long) mode->c_lflag);
- for (i = 0; i < NCCS; ++i)
- printf(":%x", (unsigned int) mode->c_cc[i]);
-+ if (rs485 >= 0) {
-+ printf(":%lx:%lx:%lx",
-+ (unsigned long) rs485conf->flags,
-+ (unsigned long) rs485conf->delay_rts_before_send,
-+ (unsigned long) rs485conf->delay_rts_after_send);
-+ }
- bb_putchar('\n');
- }
-
-@@ -1025,7 +1083,7 @@ static void display_speed(const struct t
- wrapf(fmt_str, tty_baud_to_value(ispeed), tty_baud_to_value(ospeed));
- }
-
--static void do_display(const struct termios *mode, int all)
-+static void do_display(const struct termios *mode, const struct serial_rs485 *rs485conf, int all, int rs485)
- {
- int i;
- tcflag_t *bitsp;
-@@ -1086,6 +1144,25 @@ static void do_display(const struct term
- }
- }
- newline();
-+
-+ if (rs485 < 0) {
-+ if (all) {
-+ wrapf("RS485 not supported");
-+ newline();
-+ }
-+ } else {
-+ wrapf("%srs485 %srs485rtsonsend %srs485rtsaftersend %srs485rxduringtx",
-+ (rs485conf->flags & SER_RS485_ENABLED) ? "" : "-",
-+ (rs485conf->flags & SER_RS485_RTS_ON_SEND) ? "" : "-",
-+ (rs485conf->flags & SER_RS485_RTS_AFTER_SEND) ? "" : "-",
-+ (rs485conf->flags & SER_RS485_RX_DURING_TX) ? "" : "-");
-+ newline();
-+ wrapf("rs485delaybefore = %d; rs485delayafter = %d; rs485delaylastchartx = %d;\n",
-+ rs485conf->delay_rts_before_send,
-+ rs485conf->delay_rts_after_send,
-+ rs485conf->delay_rts_last_char_tx);
-+ newline();
-+ }
- }
-
- static void sane_mode(struct termios *mode)
-@@ -1277,11 +1354,14 @@ int stty_main(int argc, char **argv) MAI
- int stty_main(int argc UNUSED_PARAM, char **argv)
- {
- struct termios mode;
-- void (*output_func)(const struct termios *, int);
-+ struct serial_rs485 rs485conf;
-+ void (*output_func)(const struct termios *, const struct serial_rs485 *, int, int);
- const char *file_name = NULL;
- int display_all = 0;
- int stty_state;
- int k;
-+ int rs485_supported;
-+ int rs485_setconfig;
-
- INIT_G();
-
-@@ -1306,6 +1386,11 @@ int stty_main(int argc UNUSED_PARAM, cha
- stty_state &= ~STTY_noargs;
- continue;
- }
-+ param = find_rs485config(arg+1);
-+ if ((param) && ((param & param_need_arg) == 0)) {
-+ stty_state &= ~STTY_noargs;
-+ continue;
-+ }
- /* It is an option - parse it */
- i = 0;
- while (arg[++i]) {
-@@ -1360,6 +1445,17 @@ int stty_main(int argc UNUSED_PARAM, cha
- continue;
- }
-
-+ param = find_rs485config(arg);
-+ if (param & param_need_arg) {
-+ if (!argnext)
-+ bb_error_msg_and_die(bb_msg_requires_arg, arg);
-+ ++k;
-+ }
-+ if (param) {
-+ stty_state &= ~STTY_noargs;
-+ continue;
-+ }
-+
- param = find_param(arg);
- if (param & param_need_arg) {
- if (!argnext)
-@@ -1394,7 +1490,7 @@ int stty_main(int argc UNUSED_PARAM, cha
- set_speed_or_die(output_speed, argnext, &mode);
- break;
- default:
-- if (recover_mode(arg, &mode) == 1) break;
-+ if (recover_mode(arg, &mode, &rs485conf, 1, -1) == 1) break;
- if (tty_value_to_baud(xatou(arg)) != (speed_t) -1) break;
- invalid_argument:
- bb_error_msg_and_die("invalid argument '%s'", arg);
-@@ -1425,15 +1521,17 @@ int stty_main(int argc UNUSED_PARAM, cha
- memset(&mode, 0, sizeof(mode));
- if (tcgetattr(STDIN_FILENO, &mode))
- perror_on_device_and_die("%s");
-+ rs485_supported = ioctl(STDIN_FILENO, TIOCGRS485, &rs485conf);
-
- if (stty_state & (STTY_verbose_output | STTY_recoverable_output | STTY_noargs)) {
- get_terminal_width_height(STDOUT_FILENO, &G.max_col, NULL);
-- output_func(&mode, display_all);
-+ output_func(&mode, &rs485conf, display_all, rs485_supported);
- return EXIT_SUCCESS;
- }
-
- /* Second pass: perform actions */
- k = 0;
-+ rs485_setconfig = 0;
- while (argv[++k]) {
- const struct mode_info *mp;
- const struct control_info *cp;
-@@ -1447,6 +1545,23 @@ int stty_main(int argc UNUSED_PARAM, cha
- set_mode(mp, 1 /* reversed */, &mode);
- stty_state |= STTY_require_set_attr;
- }
-+ param = find_rs485config(arg+1);
-+ if ((param) && ((param & param_need_arg) == 0)) {
-+ rs485_setconfig = 1;
-+ switch (param) {
-+ case 1:
-+ rs485conf.flags &= ~SER_RS485_ENABLED;
-+ break;
-+ case 2:
-+ rs485conf.flags &= ~SER_RS485_RTS_ON_SEND;
-+ break;
-+ case 3:
-+ rs485conf.flags &= ~SER_RS485_RTS_AFTER_SEND;
-+ break;
-+ case 4:
-+ rs485conf.flags &= ~SER_RS485_RX_DURING_TX;
-+ }
-+ }
- /* It is an option - already parsed. Skip it */
- continue;
- }
-@@ -1466,6 +1581,33 @@ int stty_main(int argc UNUSED_PARAM, cha
- continue;
- }
-
-+ param = find_rs485config(arg);
-+ if (param) {
-+ rs485_setconfig = 1;
-+ if (param & param_need_arg)
-+ ++k;
-+ switch (param & 0x7F) {
-+ case 1:
-+ rs485conf.flags |= SER_RS485_ENABLED;
-+ break;
-+ case 2:
-+ rs485conf.flags |= SER_RS485_RTS_ON_SEND;
-+ break;
-+ case 3:
-+ rs485conf.flags |= SER_RS485_RTS_AFTER_SEND;
-+ break;
-+ case 4:
-+ rs485conf.flags |= SER_RS485_RX_DURING_TX;
-+ break;
-+ case 5:
-+ rs485conf.delay_rts_before_send = xatoul_sfx(argnext, stty_suffixes);
-+ break;
-+ case 6:
-+ rs485conf.delay_rts_after_send = xatoul_sfx(argnext, stty_suffixes);
-+ }
-+ continue;
-+ }
-+
- param = find_param(arg);
- if (param & param_need_arg) {
- ++k;
-@@ -1502,9 +1644,11 @@ int stty_main(int argc UNUSED_PARAM, cha
- stty_state |= (STTY_require_set_attr | STTY_speed_was_set);
- break;
- default:
-- if (recover_mode(arg, &mode) == 1)
-+ if (recover_mode(arg, &mode, &rs485conf, 0, rs485_supported) == 1) {
- stty_state |= STTY_require_set_attr;
-- else /* true: if (tty_value_to_baud(xatou(arg)) != (speed_t) -1) */{
-+ if (rs485_supported >= 0)
-+ rs485_setconfig = 1;
-+ } else /* true: if (tty_value_to_baud(xatou(arg)) != (speed_t) -1) */{
- set_speed_or_die(both_speeds, arg, &mode);
- stty_state |= (STTY_require_set_attr | STTY_speed_was_set);
- } /* else - impossible (caught in the first pass):
-@@ -1550,5 +1694,10 @@ int stty_main(int argc UNUSED_PARAM, cha
- }
- }
-
-+ if (rs485_setconfig) {
-+ if (ioctl (STDIN_FILENO, TIOCSRS485, &rs485conf) < 0)
-+ perror_on_device_and_die("%s: cannot set RS485 options");
-+ }
-+
- return EXIT_SUCCESS;
- }
hooks/post-receive
--
armadeus
|
|
From: jorasse <jo...@us...> - 2013-05-21 18:17: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, master has been updated
via 1e27a26a888f77c2f3668f8b0e4c2e771941b851 (commit)
via abc97460b1106366d676f05390327c335e54ea5a (commit)
from 23faf4f8e5690ebe944bdf009233650f8ea14747 (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 1e27a26a888f77c2f3668f8b0e4c2e771941b851
Author: Philippe Reynes <tr...@ya...>
Date: Mon May 20 21:00:58 2013 +0200
[LINUX] 3.9: add support of the 3.9.3
Signed-off-by: Philippe Reynes <tr...@ya...>
commit abc97460b1106366d676f05390327c335e54ea5a
Author: Philippe Reynes <tr...@ya...>
Date: Mon May 20 21:00:57 2013 +0200
[LINUX] port 3.8 patches to 3.9
Patches removed:
- 0202-armadeus-mx27_add_clk_gate_to_enable_sspl.patch
- 0205-armadeus-mx27-clk-imx27-rename_spi_ipg_and_add_spi_per_clk.patch
- 0206-armadeus-mxs-gpio-mxs-add_support_for_both_edge_interrupt.patch
- 0207-armadeus-apf27-move-ethernet-to-aipi2-on-dts.patch
- 0400-Add-apf51-basic-dt-support.patch
- 0401-armadeus-add_apf51dev_baseboard.patch
- 0421-linaro-mxs-iio-implement_support_for_touchscreen.patch
Patches added:
- 0208-armadeus-apf27-update-init-timer-to-new-api.patch
Signed-off-by: Philippe Reynes <tr...@ya...>
-----------------------------------------------------------------------
Summary of changes:
...nux-3.9-rc4.config => apf27-linux-3.9.3.config} | 0
patches/linux/3.9.3 | 1 +
...15-armadeus-logo-add_armadeus-project_tux.patch | 0
.../linux/{3.8 => 3.9}/0021-armadeus-apf9328.patch | 0
...s-apf9328-add_board_to_linux_build_system.patch | 0
.../0025-armadeus-imx-correct_dma_shift.patch | 0
.../0029-armadeus-add_csi_and_spi_registers.patch | 0
.../0029b-armadeus-add_csi_registers.patch | 0
...rmadeus-devices-imx1-add_udc_registration.patch | 0
.../0030-armadeus-imx_udc-change_clk_get.patch | 0
...35-armadeus-re_add_pwm_and_correct_driver.tofix | 0
...7-armadeus-imx_udc-add_printk_when_probed.patch | 0
...s-imx_udc-prevent_crash_after_soft_reboot.patch | 0
...50-armadeus-add_custom_drivers_to_kconfig.patch | 0
.../linux/{3.8 => 3.9}/0073-armadeus-tsc2102.patch | 0
...02_integrate_driver_to_linux_build_system.patch | 0
...chscreen-add_driver_to_linux_build_system.patch | 0
.../0074-armadeus-tsc2102-touchscreen.patch | 0
.../0075-armadeus-spi2-reg-defines.patch | 0
...eus-clock_correct_mxc_decode_pll_for_imx1.tofix | 0
...madeus-clock-imx1_avoid_crash_with_module.tofix | 0
.../0200-armadeus-add_apf27_module.patch | 0
.../0201-armadeus-add_apf27dev_baseboard.patch | 0
...armadeus-mx27-ehci-mxc-add_per_clk_enable.patch | 0
...rmadeus-mx27-imxfb-fix_pwm_contrast_issue.patch | 0
...madeus-apf27-update-init-timer-to-new-api.patch | 38 ++++++++++++++++++++
.../0322-armadeus-add_mach_fpga_h.patch | 0
.../0404-armadeus-fix_nand_ecc_oob.patch | 0
..._possibility_to_deactivate_SDIO_interrupt.patch | 0
...0406-armadeus-imx51-dtb-add_ecspi2_pinmux.patch | 0
...mx51-dt-add_second_pinctrl_group_for_i2c2.patch | 0
.../0420-armadeus-Add-apf28dev-dts.patch | 0
..._star_completion_for_source_in_menuconfig.patch | 0
...low_to_use_the_wakeupalarm_functionnality.patch | 0
34 files changed, 39 insertions(+), 0 deletions(-)
copy buildroot/target/device/armadeus/apf27/{apf27-linux-3.9-rc4.config => apf27-linux-3.9.3.config} (100%)
create mode 120000 patches/linux/3.9.3
copy patches/linux/{3.7 => 3.9}/0015-armadeus-logo-add_armadeus-project_tux.patch (100%)
copy patches/linux/{3.8 => 3.9}/0021-armadeus-apf9328.patch (100%)
copy patches/linux/{3.8 => 3.9}/0024-armadeus-apf9328-add_board_to_linux_build_system.patch (100%)
copy patches/linux/{3.8 => 3.9}/0025-armadeus-imx-correct_dma_shift.patch (100%)
copy patches/linux/{3.8 => 3.9}/0029-armadeus-add_csi_and_spi_registers.patch (100%)
copy patches/linux/{3.8 => 3.9}/0029b-armadeus-add_csi_registers.patch (100%)
copy patches/linux/{3.8 => 3.9}/0030-armadeus-devices-imx1-add_udc_registration.patch (100%)
copy patches/linux/{3.8 => 3.9}/0030-armadeus-imx_udc-change_clk_get.patch (100%)
copy patches/linux/{3.7 => 3.9}/0035-armadeus-re_add_pwm_and_correct_driver.tofix (100%)
copy patches/linux/{3.8 => 3.9}/0037-armadeus-imx_udc-add_printk_when_probed.patch (100%)
copy patches/linux/{3.8 => 3.9}/0038-armadeus-imx_udc-prevent_crash_after_soft_reboot.patch (100%)
copy patches/linux/{3.8 => 3.9}/0050-armadeus-add_custom_drivers_to_kconfig.patch (100%)
copy patches/linux/{3.8 => 3.9}/0073-armadeus-tsc2102.patch (100%)
copy patches/linux/{3.8 => 3.9}/0073-armadeus-tsc2102_integrate_driver_to_linux_build_system.patch (100%)
copy patches/linux/{3.8 => 3.9}/0074-armadeus-tsc2102-touchscreen-add_driver_to_linux_build_system.patch (100%)
copy patches/linux/{3.8 => 3.9}/0074-armadeus-tsc2102-touchscreen.patch (100%)
copy patches/linux/{3.8 => 3.9}/0075-armadeus-spi2-reg-defines.patch (100%)
copy patches/linux/{3.7 => 3.9}/0100-armadeus-clock_correct_mxc_decode_pll_for_imx1.tofix (100%)
copy patches/linux/{3.7 => 3.9}/0101-armadeus-clock-imx1_avoid_crash_with_module.tofix (100%)
copy patches/linux/{3.8 => 3.9}/0200-armadeus-add_apf27_module.patch (100%)
copy patches/linux/{3.8 => 3.9}/0201-armadeus-add_apf27dev_baseboard.patch (100%)
copy patches/linux/{3.8 => 3.9}/0203-armadeus-mx27-ehci-mxc-add_per_clk_enable.patch (100%)
copy patches/linux/{3.8 => 3.9}/0204-armadeus-mx27-imxfb-fix_pwm_contrast_issue.patch (100%)
create mode 100644 patches/linux/3.9/0208-armadeus-apf27-update-init-timer-to-new-api.patch
copy patches/linux/{3.8 => 3.9}/0322-armadeus-add_mach_fpga_h.patch (100%)
copy patches/linux/{3.8 => 3.9}/0404-armadeus-fix_nand_ecc_oob.patch (100%)
copy patches/linux/{3.8 => 3.9}/0405-armadeus-esdhc-imx-add_possibility_to_deactivate_SDIO_interrupt.patch (100%)
copy patches/linux/{3.8 => 3.9}/0406-armadeus-imx51-dtb-add_ecspi2_pinmux.patch (100%)
copy patches/linux/{3.8 => 3.9}/0407-armadeus-imx51-dt-add_second_pinctrl_group_for_i2c2.patch (100%)
copy patches/linux/{3.8 => 3.9}/0420-armadeus-Add-apf28dev-dts.patch (100%)
copy patches/linux/{3.8 => 3.9}/0441-armadeus-adding_star_completion_for_source_in_menuconfig.patch (100%)
copy patches/linux/{3.8 => 3.9}/0442-armadeus-rtc-mxs-allow_to_use_the_wakeupalarm_functionnality.patch (100%)
diff --git a/buildroot/target/device/armadeus/apf27/apf27-linux-3.9-rc4.config b/buildroot/target/device/armadeus/apf27/apf27-linux-3.9.3.config
similarity index 100%
copy from buildroot/target/device/armadeus/apf27/apf27-linux-3.9-rc4.config
copy to buildroot/target/device/armadeus/apf27/apf27-linux-3.9.3.config
diff --git a/patches/linux/3.9.3 b/patches/linux/3.9.3
new file mode 120000
index 0000000..a02597f
--- /dev/null
+++ b/patches/linux/3.9.3
@@ -0,0 +1 @@
+3.9
\ No newline at end of file
diff --git a/patches/linux/3.7/0015-armadeus-logo-add_armadeus-project_tux.patch b/patches/linux/3.9/0015-armadeus-logo-add_armadeus-project_tux.patch
similarity index 100%
copy from patches/linux/3.7/0015-armadeus-logo-add_armadeus-project_tux.patch
copy to patches/linux/3.9/0015-armadeus-logo-add_armadeus-project_tux.patch
diff --git a/patches/linux/3.8/0021-armadeus-apf9328.patch b/patches/linux/3.9/0021-armadeus-apf9328.patch
similarity index 100%
copy from patches/linux/3.8/0021-armadeus-apf9328.patch
copy to patches/linux/3.9/0021-armadeus-apf9328.patch
diff --git a/patches/linux/3.8/0024-armadeus-apf9328-add_board_to_linux_build_system.patch b/patches/linux/3.9/0024-armadeus-apf9328-add_board_to_linux_build_system.patch
similarity index 100%
copy from patches/linux/3.8/0024-armadeus-apf9328-add_board_to_linux_build_system.patch
copy to patches/linux/3.9/0024-armadeus-apf9328-add_board_to_linux_build_system.patch
diff --git a/patches/linux/3.8/0025-armadeus-imx-correct_dma_shift.patch b/patches/linux/3.9/0025-armadeus-imx-correct_dma_shift.patch
similarity index 100%
copy from patches/linux/3.8/0025-armadeus-imx-correct_dma_shift.patch
copy to patches/linux/3.9/0025-armadeus-imx-correct_dma_shift.patch
diff --git a/patches/linux/3.8/0029-armadeus-add_csi_and_spi_registers.patch b/patches/linux/3.9/0029-armadeus-add_csi_and_spi_registers.patch
similarity index 100%
copy from patches/linux/3.8/0029-armadeus-add_csi_and_spi_registers.patch
copy to patches/linux/3.9/0029-armadeus-add_csi_and_spi_registers.patch
diff --git a/patches/linux/3.8/0029b-armadeus-add_csi_registers.patch b/patches/linux/3.9/0029b-armadeus-add_csi_registers.patch
similarity index 100%
copy from patches/linux/3.8/0029b-armadeus-add_csi_registers.patch
copy to patches/linux/3.9/0029b-armadeus-add_csi_registers.patch
diff --git a/patches/linux/3.8/0030-armadeus-devices-imx1-add_udc_registration.patch b/patches/linux/3.9/0030-armadeus-devices-imx1-add_udc_registration.patch
similarity index 100%
copy from patches/linux/3.8/0030-armadeus-devices-imx1-add_udc_registration.patch
copy to patches/linux/3.9/0030-armadeus-devices-imx1-add_udc_registration.patch
diff --git a/patches/linux/3.8/0030-armadeus-imx_udc-change_clk_get.patch b/patches/linux/3.9/0030-armadeus-imx_udc-change_clk_get.patch
similarity index 100%
copy from patches/linux/3.8/0030-armadeus-imx_udc-change_clk_get.patch
copy to patches/linux/3.9/0030-armadeus-imx_udc-change_clk_get.patch
diff --git a/patches/linux/3.7/0035-armadeus-re_add_pwm_and_correct_driver.tofix b/patches/linux/3.9/0035-armadeus-re_add_pwm_and_correct_driver.tofix
similarity index 100%
copy from patches/linux/3.7/0035-armadeus-re_add_pwm_and_correct_driver.tofix
copy to patches/linux/3.9/0035-armadeus-re_add_pwm_and_correct_driver.tofix
diff --git a/patches/linux/3.8/0037-armadeus-imx_udc-add_printk_when_probed.patch b/patches/linux/3.9/0037-armadeus-imx_udc-add_printk_when_probed.patch
similarity index 100%
copy from patches/linux/3.8/0037-armadeus-imx_udc-add_printk_when_probed.patch
copy to patches/linux/3.9/0037-armadeus-imx_udc-add_printk_when_probed.patch
diff --git a/patches/linux/3.8/0038-armadeus-imx_udc-prevent_crash_after_soft_reboot.patch b/patches/linux/3.9/0038-armadeus-imx_udc-prevent_crash_after_soft_reboot.patch
similarity index 100%
copy from patches/linux/3.8/0038-armadeus-imx_udc-prevent_crash_after_soft_reboot.patch
copy to patches/linux/3.9/0038-armadeus-imx_udc-prevent_crash_after_soft_reboot.patch
diff --git a/patches/linux/3.8/0050-armadeus-add_custom_drivers_to_kconfig.patch b/patches/linux/3.9/0050-armadeus-add_custom_drivers_to_kconfig.patch
similarity index 100%
copy from patches/linux/3.8/0050-armadeus-add_custom_drivers_to_kconfig.patch
copy to patches/linux/3.9/0050-armadeus-add_custom_drivers_to_kconfig.patch
diff --git a/patches/linux/3.8/0073-armadeus-tsc2102.patch b/patches/linux/3.9/0073-armadeus-tsc2102.patch
similarity index 100%
copy from patches/linux/3.8/0073-armadeus-tsc2102.patch
copy to patches/linux/3.9/0073-armadeus-tsc2102.patch
diff --git a/patches/linux/3.8/0073-armadeus-tsc2102_integrate_driver_to_linux_build_system.patch b/patches/linux/3.9/0073-armadeus-tsc2102_integrate_driver_to_linux_build_system.patch
similarity index 100%
copy from patches/linux/3.8/0073-armadeus-tsc2102_integrate_driver_to_linux_build_system.patch
copy to patches/linux/3.9/0073-armadeus-tsc2102_integrate_driver_to_linux_build_system.patch
diff --git a/patches/linux/3.8/0074-armadeus-tsc2102-touchscreen-add_driver_to_linux_build_system.patch b/patches/linux/3.9/0074-armadeus-tsc2102-touchscreen-add_driver_to_linux_build_system.patch
similarity index 100%
copy from patches/linux/3.8/0074-armadeus-tsc2102-touchscreen-add_driver_to_linux_build_system.patch
copy to patches/linux/3.9/0074-armadeus-tsc2102-touchscreen-add_driver_to_linux_build_system.patch
diff --git a/patches/linux/3.8/0074-armadeus-tsc2102-touchscreen.patch b/patches/linux/3.9/0074-armadeus-tsc2102-touchscreen.patch
similarity index 100%
copy from patches/linux/3.8/0074-armadeus-tsc2102-touchscreen.patch
copy to patches/linux/3.9/0074-armadeus-tsc2102-touchscreen.patch
diff --git a/patches/linux/3.8/0075-armadeus-spi2-reg-defines.patch b/patches/linux/3.9/0075-armadeus-spi2-reg-defines.patch
similarity index 100%
copy from patches/linux/3.8/0075-armadeus-spi2-reg-defines.patch
copy to patches/linux/3.9/0075-armadeus-spi2-reg-defines.patch
diff --git a/patches/linux/3.7/0100-armadeus-clock_correct_mxc_decode_pll_for_imx1.tofix b/patches/linux/3.9/0100-armadeus-clock_correct_mxc_decode_pll_for_imx1.tofix
similarity index 100%
copy from patches/linux/3.7/0100-armadeus-clock_correct_mxc_decode_pll_for_imx1.tofix
copy to patches/linux/3.9/0100-armadeus-clock_correct_mxc_decode_pll_for_imx1.tofix
diff --git a/patches/linux/3.7/0101-armadeus-clock-imx1_avoid_crash_with_module.tofix b/patches/linux/3.9/0101-armadeus-clock-imx1_avoid_crash_with_module.tofix
similarity index 100%
copy from patches/linux/3.7/0101-armadeus-clock-imx1_avoid_crash_with_module.tofix
copy to patches/linux/3.9/0101-armadeus-clock-imx1_avoid_crash_with_module.tofix
diff --git a/patches/linux/3.8/0200-armadeus-add_apf27_module.patch b/patches/linux/3.9/0200-armadeus-add_apf27_module.patch
similarity index 100%
copy from patches/linux/3.8/0200-armadeus-add_apf27_module.patch
copy to patches/linux/3.9/0200-armadeus-add_apf27_module.patch
diff --git a/patches/linux/3.8/0201-armadeus-add_apf27dev_baseboard.patch b/patches/linux/3.9/0201-armadeus-add_apf27dev_baseboard.patch
similarity index 100%
copy from patches/linux/3.8/0201-armadeus-add_apf27dev_baseboard.patch
copy to patches/linux/3.9/0201-armadeus-add_apf27dev_baseboard.patch
diff --git a/patches/linux/3.8/0203-armadeus-mx27-ehci-mxc-add_per_clk_enable.patch b/patches/linux/3.9/0203-armadeus-mx27-ehci-mxc-add_per_clk_enable.patch
similarity index 100%
copy from patches/linux/3.8/0203-armadeus-mx27-ehci-mxc-add_per_clk_enable.patch
copy to patches/linux/3.9/0203-armadeus-mx27-ehci-mxc-add_per_clk_enable.patch
diff --git a/patches/linux/3.8/0204-armadeus-mx27-imxfb-fix_pwm_contrast_issue.patch b/patches/linux/3.9/0204-armadeus-mx27-imxfb-fix_pwm_contrast_issue.patch
similarity index 100%
copy from patches/linux/3.8/0204-armadeus-mx27-imxfb-fix_pwm_contrast_issue.patch
copy to patches/linux/3.9/0204-armadeus-mx27-imxfb-fix_pwm_contrast_issue.patch
diff --git a/patches/linux/3.9/0208-armadeus-apf27-update-init-timer-to-new-api.patch b/patches/linux/3.9/0208-armadeus-apf27-update-init-timer-to-new-api.patch
new file mode 100644
index 0000000..cc2c1b6
--- /dev/null
+++ b/patches/linux/3.9/0208-armadeus-apf27-update-init-timer-to-new-api.patch
@@ -0,0 +1,38 @@
+From 0e849cd5272155e375152c7da52156d532d74183 Mon Sep 17 00:00:00 2001
+From: Philippe Reynes <tr...@ya...>
+Date: Mon, 20 May 2013 18:41:50 +0200
+Subject: [PATCH] apf27: update init timer to new api
+
+
+Signed-off-by: Philippe Reynes <tr...@ya...>
+---
+ arch/arm/mach-imx/mach-apf27.c | 6 +-----
+ 1 files changed, 1 insertions(+), 5 deletions(-)
+
+diff --git a/arch/arm/mach-imx/mach-apf27.c b/arch/arm/mach-imx/mach-apf27.c
+index 5b5020c..bf9fe47 100644
+--- a/arch/arm/mach-imx/mach-apf27.c
++++ b/arch/arm/mach-imx/mach-apf27.c
+@@ -282,10 +282,6 @@ static void __init apf27_timer_init(void)
+ mx27_clocks_init(26000000); /* init ext ref, even if not used */
+ }
+
+-static struct sys_timer apf27_timer = {
+- .init = apf27_timer_init,
+-};
+-
+ MACHINE_START(APF27, "Armadeus APF27")
+ /* Maintainer: Julien Boibessot <jul...@ar...> */
+ .atag_offset = 0x100,
+@@ -293,7 +289,7 @@ MACHINE_START(APF27, "Armadeus APF27")
+ .init_early = imx27_init_early,
+ .init_irq = mx27_init_irq,
+ .handle_irq = imx27_handle_irq,
+- .timer = &apf27_timer,
++ .init_time = apf27_timer_init,
+ .init_machine = apf27_init,
+ .restart = mxc_restart,
+ MACHINE_END
+--
+1.7.4.4
+
diff --git a/patches/linux/3.8/0322-armadeus-add_mach_fpga_h.patch b/patches/linux/3.9/0322-armadeus-add_mach_fpga_h.patch
similarity index 100%
copy from patches/linux/3.8/0322-armadeus-add_mach_fpga_h.patch
copy to patches/linux/3.9/0322-armadeus-add_mach_fpga_h.patch
diff --git a/patches/linux/3.8/0404-armadeus-fix_nand_ecc_oob.patch b/patches/linux/3.9/0404-armadeus-fix_nand_ecc_oob.patch
similarity index 100%
copy from patches/linux/3.8/0404-armadeus-fix_nand_ecc_oob.patch
copy to patches/linux/3.9/0404-armadeus-fix_nand_ecc_oob.patch
diff --git a/patches/linux/3.8/0405-armadeus-esdhc-imx-add_possibility_to_deactivate_SDIO_interrupt.patch b/patches/linux/3.9/0405-armadeus-esdhc-imx-add_possibility_to_deactivate_SDIO_interrupt.patch
similarity index 100%
copy from patches/linux/3.8/0405-armadeus-esdhc-imx-add_possibility_to_deactivate_SDIO_interrupt.patch
copy to patches/linux/3.9/0405-armadeus-esdhc-imx-add_possibility_to_deactivate_SDIO_interrupt.patch
diff --git a/patches/linux/3.8/0406-armadeus-imx51-dtb-add_ecspi2_pinmux.patch b/patches/linux/3.9/0406-armadeus-imx51-dtb-add_ecspi2_pinmux.patch
similarity index 100%
copy from patches/linux/3.8/0406-armadeus-imx51-dtb-add_ecspi2_pinmux.patch
copy to patches/linux/3.9/0406-armadeus-imx51-dtb-add_ecspi2_pinmux.patch
diff --git a/patches/linux/3.8/0407-armadeus-imx51-dt-add_second_pinctrl_group_for_i2c2.patch b/patches/linux/3.9/0407-armadeus-imx51-dt-add_second_pinctrl_group_for_i2c2.patch
similarity index 100%
copy from patches/linux/3.8/0407-armadeus-imx51-dt-add_second_pinctrl_group_for_i2c2.patch
copy to patches/linux/3.9/0407-armadeus-imx51-dt-add_second_pinctrl_group_for_i2c2.patch
diff --git a/patches/linux/3.8/0420-armadeus-Add-apf28dev-dts.patch b/patches/linux/3.9/0420-armadeus-Add-apf28dev-dts.patch
similarity index 100%
copy from patches/linux/3.8/0420-armadeus-Add-apf28dev-dts.patch
copy to patches/linux/3.9/0420-armadeus-Add-apf28dev-dts.patch
diff --git a/patches/linux/3.8/0441-armadeus-adding_star_completion_for_source_in_menuconfig.patch b/patches/linux/3.9/0441-armadeus-adding_star_completion_for_source_in_menuconfig.patch
similarity index 100%
copy from patches/linux/3.8/0441-armadeus-adding_star_completion_for_source_in_menuconfig.patch
copy to patches/linux/3.9/0441-armadeus-adding_star_completion_for_source_in_menuconfig.patch
diff --git a/patches/linux/3.8/0442-armadeus-rtc-mxs-allow_to_use_the_wakeupalarm_functionnality.patch b/patches/linux/3.9/0442-armadeus-rtc-mxs-allow_to_use_the_wakeupalarm_functionnality.patch
similarity index 100%
copy from patches/linux/3.8/0442-armadeus-rtc-mxs-allow_to_use_the_wakeupalarm_functionnality.patch
copy to patches/linux/3.9/0442-armadeus-rtc-mxs-allow_to_use_the_wakeupalarm_functionnality.patch
hooks/post-receive
--
armadeus
|
|
From: jorasse <jo...@us...> - 2013-05-21 17:49:59
|
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, master has been updated
via 23faf4f8e5690ebe944bdf009233650f8ea14747 (commit)
from c4fd7cb014c121613fcc4f17ebfdf5f5d6f15d1b (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 23faf4f8e5690ebe944bdf009233650f8ea14747
Author: Eric Jarrige <eri...@ar...>
Date: Tue May 21 19:57:13 2013 +0200
[BUILDROOT] 2013.02: update apf51 and apf28 config to support management frame protection (IEEE 802.11W)
-----------------------------------------------------------------------
Summary of changes:
buildroot/configs/apf28_defconfig | 1 +
buildroot/configs/apf28test_defconfig | 1 +
buildroot/configs/apf51_defconfig | 1 +
buildroot/configs/apf51test_defconfig | 1 +
4 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/buildroot/configs/apf28_defconfig b/buildroot/configs/apf28_defconfig
index 886cdbc..38de70e 100644
--- a/buildroot/configs/apf28_defconfig
+++ b/buildroot/configs/apf28_defconfig
@@ -64,6 +64,7 @@ BR2_PACKAGE_WPA_SUPPLICANT_CLI=y
BR2_PACKAGE_WPA_SUPPLICANT_PASSPHRASE=y
BR2_PACKAGE_WPA_SUPPLICANT_AP_SUPPORT=y
BR2_PACKAGE_WPA_SUPPLICANT_WPS=y
+BR2_PACKAGE_WPA_SUPPLICANT_IEEE80211W=y
BR2_PACKAGE_NANO=y
BR2_TARGET_ROOTFS_UBIFS=y
BR2_TARGET_ROOTFS_UBIFS_LEBSIZE=0x1f000
diff --git a/buildroot/configs/apf28test_defconfig b/buildroot/configs/apf28test_defconfig
index f6835ff..b91b3f5 100644
--- a/buildroot/configs/apf28test_defconfig
+++ b/buildroot/configs/apf28test_defconfig
@@ -91,6 +91,7 @@ BR2_PACKAGE_WPA_SUPPLICANT_CLI=y
BR2_PACKAGE_WPA_SUPPLICANT_PASSPHRASE=y
BR2_PACKAGE_WPA_SUPPLICANT_AP_SUPPORT=y
BR2_PACKAGE_WPA_SUPPLICANT_WPS=y
+BR2_PACKAGE_WPA_SUPPLICANT_IEEE80211W=y
BR2_PACKAGE_NANO=y
BR2_TARGET_ROOTFS_UBIFS=y
BR2_TARGET_ROOTFS_UBIFS_LEBSIZE=0x1f000
diff --git a/buildroot/configs/apf51_defconfig b/buildroot/configs/apf51_defconfig
index dd5f629..1ea4695 100644
--- a/buildroot/configs/apf51_defconfig
+++ b/buildroot/configs/apf51_defconfig
@@ -73,6 +73,7 @@ BR2_PACKAGE_WPA_SUPPLICANT_CLI=y
BR2_PACKAGE_WPA_SUPPLICANT_PASSPHRASE=y
BR2_PACKAGE_WPA_SUPPLICANT_AP_SUPPORT=y
BR2_PACKAGE_WPA_SUPPLICANT_WPS=y
+BR2_PACKAGE_WPA_SUPPLICANT_IEEE80211W=y
BR2_PACKAGE_NANO=y
BR2_TARGET_ROOTFS_UBIFS=y
BR2_TARGET_ROOTFS_UBIFS_MAXLEBCNT=135301
diff --git a/buildroot/configs/apf51test_defconfig b/buildroot/configs/apf51test_defconfig
index 2adc84b..5888309 100644
--- a/buildroot/configs/apf51test_defconfig
+++ b/buildroot/configs/apf51test_defconfig
@@ -141,6 +141,7 @@ BR2_PACKAGE_WPA_SUPPLICANT_CLI=y
BR2_PACKAGE_WPA_SUPPLICANT_PASSPHRASE=y
BR2_PACKAGE_WPA_SUPPLICANT_AP_SUPPORT=y
BR2_PACKAGE_WPA_SUPPLICANT_WPS=y
+BR2_PACKAGE_WPA_SUPPLICANT_IEEE80211W=y
BR2_PACKAGE_NANO=y
BR2_TARGET_ROOTFS_UBIFS=y
BR2_TARGET_ROOTFS_UBIFS_MAXLEBCNT=135301
hooks/post-receive
--
armadeus
|
|
From: jorasse <jo...@us...> - 2013-05-21 15:41:55
|
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, master has been updated
via c4fd7cb014c121613fcc4f17ebfdf5f5d6f15d1b (commit)
via 4c2e61f3c4a3d26f7a1590274b3a142a8239c09b (commit)
via 97f40ed6f42d05d77faa089a222d22f0636f63b6 (commit)
from 48e3c61a229b21da1ba6e186d2b326a40cb3fd8f (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 c4fd7cb014c121613fcc4f17ebfdf5f5d6f15d1b
Author: Janos Angeli <an...@an...>
Date: Sun May 19 01:52:13 2013 +0200
[BUILDROOT] 2013.02: update Buildroot cleanuop script
This is the fixed version of the BusyBox coreutils stty patch.
Older Linux Kernels don't have the required RS485 definitions, and this caused compilation errors
with APF27 and APF9328 configurations. Now this definitions are included in the source code.
This patch is for buildroot 2013.02 and all BusyBox versions from 1.19.4
Signed-off-by: Janos Angeli <an...@an...>
commit 4c2e61f3c4a3d26f7a1590274b3a142a8239c09b
Author: Janos Angeli <an...@an...>
Date: Sun May 19 01:52:13 2013 +0200
[BUILDROOT] 2013.02: BusyBox coreutils stty: Add RS485 config options
This is the fixed version of the BusyBox coreutils stty patch.
Older Linux Kernels don't have the required RS485 definitions, and this caused compilation errors
with APF27 and APF9328 configurations. Now this definitions are included in the source code.
This patch is for buildroot 2013.02 and all BusyBox versions from 1.19.4
Signed-off-by: Janos Angeli <an...@an...>
commit 97f40ed6f42d05d77faa089a222d22f0636f63b6
Author: Janos Angeli <an...@an...>
Date: Sun May 19 01:51:56 2013 +0200
[BUILDROOT] 2013.02: BusyBox: Fix daily snapshot config file
The default configuration file was missing, and we got compilation error.
Now the latest stable config file (1.21.0) is used with a symlink.
Signed-off-by: Janos Angeli <an...@an...>
-----------------------------------------------------------------------
Summary of changes:
...sybox-1.21.0.config => busybox-snapshot.config} | 0
.../2013.02/204-busybox-fix-snapshot.patch | 17 +
...x-coreutils-stty-add-rs485-config-options.patch | 1397 ++++++++++++++++++++
patches/buildroot/2013.02/cleanup_buildroot.sh | 4 +
4 files changed, 1418 insertions(+), 0 deletions(-)
copy buildroot/target/device/armadeus/{busybox-1.21.0.config => busybox-snapshot.config} (100%)
create mode 100644 patches/buildroot/2013.02/204-busybox-fix-snapshot.patch
create mode 100644 patches/buildroot/2013.02/205-busybox-coreutils-stty-add-rs485-config-options.patch
diff --git a/buildroot/target/device/armadeus/busybox-1.21.0.config b/buildroot/target/device/armadeus/busybox-snapshot.config
similarity index 100%
copy from buildroot/target/device/armadeus/busybox-1.21.0.config
copy to buildroot/target/device/armadeus/busybox-snapshot.config
diff --git a/patches/buildroot/2013.02/204-busybox-fix-snapshot.patch b/patches/buildroot/2013.02/204-busybox-fix-snapshot.patch
new file mode 100644
index 0000000..eca18d8
--- /dev/null
+++ b/patches/buildroot/2013.02/204-busybox-fix-snapshot.patch
@@ -0,0 +1,17 @@
+BusyBox: Fix daily snapshot config file
+
+Signed-off-by: Janos Angeli <an...@an...>
+---
+
+Index: buildroot/package/busybox/Config.in
+===================================================================
+--- buildroot.orig/package/busybox/Config.in
++++ buildroot/package/busybox/Config.in
+@@ -33,6 +33,7 @@ endchoice
+
+ config BR2_BUSYBOX_VERSION
+ string
++ default "snapshot" if BR2_PACKAGE_BUSYBOX_SNAPSHOT
+ default "1.19.4" if BR2_BUSYBOX_VERSION_1_19_X
+ default "1.20.2" if BR2_BUSYBOX_VERSION_1_20_X
+ default "1.21.0" if BR2_BUSYBOX_VERSION_1_21_X
diff --git a/patches/buildroot/2013.02/205-busybox-coreutils-stty-add-rs485-config-options.patch b/patches/buildroot/2013.02/205-busybox-coreutils-stty-add-rs485-config-options.patch
new file mode 100644
index 0000000..d2651dc
--- /dev/null
+++ b/patches/buildroot/2013.02/205-busybox-coreutils-stty-add-rs485-config-options.patch
@@ -0,0 +1,1397 @@
+BusyBox coreutils stty: Add RS485 config options
+
+Armadeus Buildroot 2013.02 version.
+Patch for BusyBox v1.19.4 , 1.20.2 , 1.21.0 and daily snapshot
+
+
+Signed-off-by: Janos Angeli <an...@an...>
+---
+
+Index: buildroot/package/busybox/busybox-1.19.4/001_busybox-1.19.4_stty_add_rs485_config.patch
+===================================================================
+--- /dev/null
++++ buildroot/package/busybox/busybox-1.19.4/001_busybox-1.19.4_stty_add_rs485_config.patch
+@@ -0,0 +1,342 @@
++BusyBox coreutils stty: Add RS485 config options
++
++The patch adds RS485 config options for serial devices/drivers
++which are supporting the ioctl based configurations documented in:
++https://www.kernel.org/doc/Documentation/serial/serial-rs485.txt
++
++New config parameters:
++rs485 - Switch on/off the RS485 mode
++rs485rtsonsend - Set logical level for RTS pin when sending
++rs485rtsaftersend - Set logical level for RTS pin after sent
++rs485rxduringtx - Switch on/off Rx enable during packet transmit
++rs485delaybefore 0 - Set delay between RTS signaling and the
++ transmission of the first bit
++rs485delayafter 0 - Set delay between the transmission of the last
++ bit and the RTS state change
++
++New read only parameter:
++rs485delaylastchartx 0 - Shows the automatically calculated delay
++ between the serial port Tx FIFO empty
++ state and the last bit transmission
++
++Currently the following serial drivers supports the RS485 options:
++- crisv10.c ETRAX 100LX
++- atmel_serial.c Atmel AT91 / AT32
++- mxs-auart.c Freescale STMP37XX/STMP378X iMX28
++
++Signed-off-by: Janos Angeli <an...@an...>
++---
++Index: busybox-1.19.4/coreutils/stty.c
++===================================================================
++--- busybox-1.19.4.orig/coreutils/stty.c
+++++ busybox-1.19.4/coreutils/stty.c
++@@ -19,6 +19,8 @@
++
++ Special for busybox ported by Vladimir Oleynik <dz...@si...> 2001
++
+++ RS485 options added by Janos Angeli <an...@an...> 2013
+++
++ */
++
++ //usage:#define stty_trivial_usage
++@@ -33,6 +35,33 @@
++
++ #include "libbb.h"
++
+++//#include <asm/ioctls.h>
+++//We don't include <asm/ioctls.h> now, because older Linux kernels are missing the
+++//required RS485 definitions. We need only the TIOCGRS485 and TIOCSRS485 definition.
+++//In later versions we will be able to switch back to the original include.
+++#define TIOCGRS485 0x542E
+++#define TIOCSRS485 0x542F
+++//End of temporally include <asm/ioctls.h>
+++
+++//#include <linux/serial.h>
+++//We don't include <linux/serial.h> now, because it is missing some RS485 definitions.
+++//We need only the serial_rs485 struct from it and the __u32 def from <linux/types.h>
+++//In later versions we will be able to switch back to the original include.
+++#include <linux/types.h>
+++struct serial_rs485 {
+++ __u32 flags; /* RS485 feature flags */
+++#define SER_RS485_ENABLED (1 << 0) /* If enabled */
+++#define SER_RS485_RTS_ON_SEND (1 << 1) /* Logical level for RTS pin when sending */
+++#define SER_RS485_RTS_AFTER_SEND (1 << 2) /* Logical level for RTS pin after sent */
+++#define SER_RS485_RX_DURING_TX (1 << 4)
+++ __u32 delay_rts_before_send; /* Delay before send */
+++ __u32 delay_rts_after_send; /* Delay after send */
+++ __u32 delay_rts_last_char_tx; /* Delay for last char Tx from FIFO (microseconds)
+++ This delay is automatically calculated from baudrate */
+++ __u32 padding[4]; /* Memory is cheap, new structs are a royal PITA .. */
+++};
+++//End of temporally include <linux/serial.h>
+++
++ #ifndef _POSIX_VDISABLE
++ # define _POSIX_VDISABLE ((unsigned char) 0)
++ #endif
++@@ -966,11 +995,27 @@ static int find_param(const char *name)
++ return i;
++ }
++
++-static int recover_mode(const char *arg, struct termios *mode)
+++static int find_rs485config(const char *name)
+++{
+++ static const char params[] ALIGN1 =
+++ "rs485\0" /* 1 */
+++ "rs485rtsonsend\0" /* 2 */
+++ "rs485rtsaftersend\0" /* 3 */
+++ "rs485rxduringtx\0" /* 4 */
+++ "rs485delaybefore\0" /* 5 */
+++ "rs485delayafter\0"; /* 6 */
+++ int i = index_in_strings(params, name) + 1;
+++ if ((i == 5) || (i == 6))
+++ i |= 0x80;
+++ return i;
+++}
+++
+++static int recover_mode(const char *arg, struct termios *mode, struct serial_rs485 *rs485conf, int paramcheck, int rs485)
++ {
++ int i, n;
++ unsigned chr;
++ unsigned long iflag, oflag, cflag, lflag;
+++ unsigned long rsflags, rsdelaybefore, rsdelayafter;
++
++ /* Scan into temporaries since it is too much trouble to figure out
++ the right format for 'tcflag_t' */
++@@ -989,15 +1034,28 @@ static int recover_mode(const char *arg,
++ arg += n;
++ }
++
+++ if (rs485 >= 0) {
+++ if (sscanf(arg, ":%lx:%lx:%lx%n", &rsflags, &rsdelaybefore, &rsdelayafter, &n) != 3)
+++ return 0;
+++ rs485conf->flags = rsflags;
+++ rs485conf->delay_rts_before_send = rsdelaybefore;
+++ rs485conf->delay_rts_after_send = rsdelayafter;
+++ arg += n;
+++ }
+++
++ /* Fail if there are too many fields */
++- if (*arg != '\0')
+++ if (*arg != '\0') {
+++ /* In the first pass of params verify we don't know the port device
+++ have RS485 support or not, so give a try for the extra RS485 params */
+++ if ((paramcheck) && (sscanf(arg, ":%lx:%lx:%lx%n", &rsflags, &rsdelaybefore, &rsdelayafter, &n) == 3))
+++ return 1;
++ return 0;
++-
+++ }
++ return 1;
++ }
++
++-static void display_recoverable(const struct termios *mode,
++- int UNUSED_PARAM dummy)
+++static void display_recoverable(const struct termios *mode, const struct serial_rs485 *rs485conf,
+++ int UNUSED_PARAM dummy, int rs485)
++ {
++ int i;
++ printf("%lx:%lx:%lx:%lx",
++@@ -1005,6 +1063,12 @@ static void display_recoverable(const st
++ (unsigned long) mode->c_cflag, (unsigned long) mode->c_lflag);
++ for (i = 0; i < NCCS; ++i)
++ printf(":%x", (unsigned int) mode->c_cc[i]);
+++ if (rs485 >= 0) {
+++ printf(":%lx:%lx:%lx",
+++ (unsigned long) rs485conf->flags,
+++ (unsigned long) rs485conf->delay_rts_before_send,
+++ (unsigned long) rs485conf->delay_rts_after_send);
+++ }
++ bb_putchar('\n');
++ }
++
++@@ -1025,7 +1089,7 @@ static void display_speed(const struct t
++ wrapf(fmt_str, tty_baud_to_value(ispeed), tty_baud_to_value(ospeed));
++ }
++
++-static void do_display(const struct termios *mode, int all)
+++static void do_display(const struct termios *mode, const struct serial_rs485 *rs485conf, int all, int rs485)
++ {
++ int i;
++ tcflag_t *bitsp;
++@@ -1086,6 +1150,25 @@ static void do_display(const struct term
++ }
++ }
++ newline();
+++
+++ if (rs485 < 0) {
+++ if (all) {
+++ wrapf("RS485 not supported");
+++ newline();
+++ }
+++ } else {
+++ wrapf("%srs485 %srs485rtsonsend %srs485rtsaftersend %srs485rxduringtx",
+++ (rs485conf->flags & SER_RS485_ENABLED) ? "" : "-",
+++ (rs485conf->flags & SER_RS485_RTS_ON_SEND) ? "" : "-",
+++ (rs485conf->flags & SER_RS485_RTS_AFTER_SEND) ? "" : "-",
+++ (rs485conf->flags & SER_RS485_RX_DURING_TX) ? "" : "-");
+++ newline();
+++ wrapf("rs485delaybefore = %d; rs485delayafter = %d; rs485delaylastchartx = %d;\n",
+++ rs485conf->delay_rts_before_send,
+++ rs485conf->delay_rts_after_send,
+++ rs485conf->delay_rts_last_char_tx);
+++ newline();
+++ }
++ }
++
++ static void sane_mode(struct termios *mode)
++@@ -1277,11 +1360,14 @@ int stty_main(int argc, char **argv) MAI
++ int stty_main(int argc UNUSED_PARAM, char **argv)
++ {
++ struct termios mode;
++- void (*output_func)(const struct termios *, int);
+++ struct serial_rs485 rs485conf;
+++ void (*output_func)(const struct termios *, const struct serial_rs485 *, int, int);
++ const char *file_name = NULL;
++ int display_all = 0;
++ int stty_state;
++ int k;
+++ int rs485_supported;
+++ int rs485_setconfig;
++
++ INIT_G();
++
++@@ -1306,6 +1392,11 @@ int stty_main(int argc UNUSED_PARAM, cha
++ stty_state &= ~STTY_noargs;
++ continue;
++ }
+++ param = find_rs485config(arg+1);
+++ if ((param) && ((param & param_need_arg) == 0)) {
+++ stty_state &= ~STTY_noargs;
+++ continue;
+++ }
++ /* It is an option - parse it */
++ i = 0;
++ while (arg[++i]) {
++@@ -1360,6 +1451,17 @@ int stty_main(int argc UNUSED_PARAM, cha
++ continue;
++ }
++
+++ param = find_rs485config(arg);
+++ if (param & param_need_arg) {
+++ if (!argnext)
+++ bb_error_msg_and_die(bb_msg_requires_arg, arg);
+++ ++k;
+++ }
+++ if (param) {
+++ stty_state &= ~STTY_noargs;
+++ continue;
+++ }
+++
++ param = find_param(arg);
++ if (param & param_need_arg) {
++ if (!argnext)
++@@ -1394,7 +1496,7 @@ int stty_main(int argc UNUSED_PARAM, cha
++ set_speed_or_die(output_speed, argnext, &mode);
++ break;
++ default:
++- if (recover_mode(arg, &mode) == 1) break;
+++ if (recover_mode(arg, &mode, &rs485conf, 1, -1) == 1) break;
++ if (tty_value_to_baud(xatou(arg)) != (speed_t) -1) break;
++ invalid_argument:
++ bb_error_msg_and_die("invalid argument '%s'", arg);
++@@ -1425,15 +1527,17 @@ int stty_main(int argc UNUSED_PARAM, cha
++ memset(&mode, 0, sizeof(mode));
++ if (tcgetattr(STDIN_FILENO, &mode))
++ perror_on_device_and_die("%s");
+++ rs485_supported = ioctl(STDIN_FILENO, TIOCGRS485, &rs485conf);
++
++ if (stty_state & (STTY_verbose_output | STTY_recoverable_output | STTY_noargs)) {
++ get_terminal_width_height(STDOUT_FILENO, &G.max_col, NULL);
++- output_func(&mode, display_all);
+++ output_func(&mode, &rs485conf, display_all, rs485_supported);
++ return EXIT_SUCCESS;
++ }
++
++ /* Second pass: perform actions */
++ k = 0;
+++ rs485_setconfig = 0;
++ while (argv[++k]) {
++ const struct mode_info *mp;
++ const struct control_info *cp;
++@@ -1447,6 +1551,23 @@ int stty_main(int argc UNUSED_PARAM, cha
++ set_mode(mp, 1 /* reversed */, &mode);
++ stty_state |= STTY_require_set_attr;
++ }
+++ param = find_rs485config(arg+1);
+++ if ((param) && ((param & param_need_arg) == 0)) {
+++ rs485_setconfig = 1;
+++ switch (param) {
+++ case 1:
+++ rs485conf.flags &= ~SER_RS485_ENABLED;
+++ break;
+++ case 2:
+++ rs485conf.flags &= ~SER_RS485_RTS_ON_SEND;
+++ break;
+++ case 3:
+++ rs485conf.flags &= ~SER_RS485_RTS_AFTER_SEND;
+++ break;
+++ case 4:
+++ rs485conf.flags &= ~SER_RS485_RX_DURING_TX;
+++ }
+++ }
++ /* It is an option - already parsed. Skip it */
++ continue;
++ }
++@@ -1466,6 +1587,33 @@ int stty_main(int argc UNUSED_PARAM, cha
++ continue;
++ }
++
+++ param = find_rs485config(arg);
+++ if (param) {
+++ rs485_setconfig = 1;
+++ if (param & param_need_arg)
+++ ++k;
+++ switch (param & 0x7F) {
+++ case 1:
+++ rs485conf.flags |= SER_RS485_ENABLED;
+++ break;
+++ case 2:
+++ rs485conf.flags |= SER_RS485_RTS_ON_SEND;
+++ break;
+++ case 3:
+++ rs485conf.flags |= SER_RS485_RTS_AFTER_SEND;
+++ break;
+++ case 4:
+++ rs485conf.flags |= SER_RS485_RX_DURING_TX;
+++ break;
+++ case 5:
+++ rs485conf.delay_rts_before_send = xatoul_sfx(argnext, stty_suffixes);
+++ break;
+++ case 6:
+++ rs485conf.delay_rts_after_send = xatoul_sfx(argnext, stty_suffixes);
+++ }
+++ continue;
+++ }
+++
++ param = find_param(arg);
++ if (param & param_need_arg) {
++ ++k;
++@@ -1502,9 +1650,11 @@ int stty_main(int argc UNUSED_PARAM, cha
++ stty_state |= (STTY_require_set_attr | STTY_speed_was_set);
++ break;
++ default:
++- if (recover_mode(arg, &mode) == 1)
+++ if (recover_mode(arg, &mode, &rs485conf, 0, rs485_supported) == 1) {
++ stty_state |= STTY_require_set_attr;
++- else /* true: if (tty_value_to_baud(xatou(arg)) != (speed_t) -1) */{
+++ if (rs485_supported >= 0)
+++ rs485_setconfig = 1;
+++ } else /* true: if (tty_value_to_baud(xatou(arg)) != (speed_t) -1) */{
++ set_speed_or_die(both_speeds, arg, &mode);
++ stty_state |= (STTY_require_set_attr | STTY_speed_was_set);
++ } /* else - impossible (caught in the first pass):
++@@ -1550,5 +1700,10 @@ int stty_main(int argc UNUSED_PARAM, cha
++ }
++ }
++
+++ if (rs485_setconfig) {
+++ if (ioctl (STDIN_FILENO, TIOCSRS485, &rs485conf) < 0)
+++ perror_on_device_and_die("%s: cannot set RS485 options");
+++ }
+++
++ return EXIT_SUCCESS;
++ }
+Index: buildroot/package/busybox/busybox-1.20.2/001_busybox-1.20.2_stty_add_rs485_config.patch
+===================================================================
+--- /dev/null
++++ buildroot/package/busybox/busybox-1.20.2/001_busybox-1.20.2_stty_add_rs485_config.patch
+@@ -0,0 +1,342 @@
++BusyBox coreutils stty: Add RS485 config options
++
++The patch adds RS485 config options for serial devices/drivers
++which are supporting the ioctl based configurations documented in:
++https://www.kernel.org/doc/Documentation/serial/serial-rs485.txt
++
++New config parameters:
++rs485 - Switch on/off the RS485 mode
++rs485rtsonsend - Set logical level for RTS pin when sending
++rs485rtsaftersend - Set logical level for RTS pin after sent
++rs485rxduringtx - Switch on/off Rx enable during packet transmit
++rs485delaybefore 0 - Set delay between RTS signaling and the
++ transmission of the first bit
++rs485delayafter 0 - Set delay between the transmission of the last
++ bit and the RTS state change
++
++New read only parameter:
++rs485delaylastchartx 0 - Shows the automatically calculated delay
++ between the serial port Tx FIFO empty
++ state and the last bit transmission
++
++Currently the following serial drivers supports the RS485 options:
++- crisv10.c ETRAX 100LX
++- atmel_serial.c Atmel AT91 / AT32
++- mxs-auart.c Freescale STMP37XX/STMP378X iMX28
++
++Signed-off-by: Janos Angeli <an...@an...>
++---
++Index: busybox-1.20.2/coreutils/stty.c
++===================================================================
++--- busybox-1.20.2.orig/coreutils/stty.c
+++++ busybox-1.20.2/coreutils/stty.c
++@@ -19,6 +19,8 @@
++
++ Special for busybox ported by Vladimir Oleynik <dz...@si...> 2001
++
+++ RS485 options added by Janos Angeli <an...@an...> 2013
+++
++ */
++
++ //usage:#define stty_trivial_usage
++@@ -33,6 +35,33 @@
++
++ #include "libbb.h"
++
+++//#include <asm/ioctls.h>
+++//We don't include <asm/ioctls.h> now, because older Linux kernels are missing the
+++//required RS485 definitions. We need only the TIOCGRS485 and TIOCSRS485 definition.
+++//In later versions we will be able to switch back to the original include.
+++#define TIOCGRS485 0x542E
+++#define TIOCSRS485 0x542F
+++//End of temporally include <asm/ioctls.h>
+++
+++//#include <linux/serial.h>
+++//We don't include <linux/serial.h> now, because it is missing some RS485 definitions.
+++//We need only the serial_rs485 struct from it and the __u32 def from <linux/types.h>
+++//In later versions we will be able to switch back to the original include.
+++#include <linux/types.h>
+++struct serial_rs485 {
+++ __u32 flags; /* RS485 feature flags */
+++#define SER_RS485_ENABLED (1 << 0) /* If enabled */
+++#define SER_RS485_RTS_ON_SEND (1 << 1) /* Logical level for RTS pin when sending */
+++#define SER_RS485_RTS_AFTER_SEND (1 << 2) /* Logical level for RTS pin after sent */
+++#define SER_RS485_RX_DURING_TX (1 << 4)
+++ __u32 delay_rts_before_send; /* Delay before send */
+++ __u32 delay_rts_after_send; /* Delay after send */
+++ __u32 delay_rts_last_char_tx; /* Delay for last char Tx from FIFO (microseconds)
+++ This delay is automatically calculated from baudrate */
+++ __u32 padding[4]; /* Memory is cheap, new structs are a royal PITA .. */
+++};
+++//End of temporally include <linux/serial.h>
+++
++ #ifndef _POSIX_VDISABLE
++ # define _POSIX_VDISABLE ((unsigned char) 0)
++ #endif
++@@ -966,11 +995,27 @@ static int find_param(const char *name)
++ return i;
++ }
++
++-static int recover_mode(const char *arg, struct termios *mode)
+++static int find_rs485config(const char *name)
+++{
+++ static const char params[] ALIGN1 =
+++ "rs485\0" /* 1 */
+++ "rs485rtsonsend\0" /* 2 */
+++ "rs485rtsaftersend\0" /* 3 */
+++ "rs485rxduringtx\0" /* 4 */
+++ "rs485delaybefore\0" /* 5 */
+++ "rs485delayafter\0"; /* 6 */
+++ int i = index_in_strings(params, name) + 1;
+++ if ((i == 5) || (i == 6))
+++ i |= 0x80;
+++ return i;
+++}
+++
+++static int recover_mode(const char *arg, struct termios *mode, struct serial_rs485 *rs485conf, int paramcheck, int rs485)
++ {
++ int i, n;
++ unsigned chr;
++ unsigned long iflag, oflag, cflag, lflag;
+++ unsigned long rsflags, rsdelaybefore, rsdelayafter;
++
++ /* Scan into temporaries since it is too much trouble to figure out
++ the right format for 'tcflag_t' */
++@@ -989,15 +1034,28 @@ static int recover_mode(const char *arg,
++ arg += n;
++ }
++
+++ if (rs485 >= 0) {
+++ if (sscanf(arg, ":%lx:%lx:%lx%n", &rsflags, &rsdelaybefore, &rsdelayafter, &n) != 3)
+++ return 0;
+++ rs485conf->flags = rsflags;
+++ rs485conf->delay_rts_before_send = rsdelaybefore;
+++ rs485conf->delay_rts_after_send = rsdelayafter;
+++ arg += n;
+++ }
+++
++ /* Fail if there are too many fields */
++- if (*arg != '\0')
+++ if (*arg != '\0') {
+++ /* In the first pass of params verify we don't know the port device
+++ have RS485 support or not, so give a try for the extra RS485 params */
+++ if ((paramcheck) && (sscanf(arg, ":%lx:%lx:%lx%n", &rsflags, &rsdelaybefore, &rsdelayafter, &n) == 3))
+++ return 1;
++ return 0;
++-
+++ }
++ return 1;
++ }
++
++-static void display_recoverable(const struct termios *mode,
++- int UNUSED_PARAM dummy)
+++static void display_recoverable(const struct termios *mode, const struct serial_rs485 *rs485conf,
+++ int UNUSED_PARAM dummy, int rs485)
++ {
++ int i;
++ printf("%lx:%lx:%lx:%lx",
++@@ -1005,6 +1063,12 @@ static void display_recoverable(const st
++ (unsigned long) mode->c_cflag, (unsigned long) mode->c_lflag);
++ for (i = 0; i < NCCS; ++i)
++ printf(":%x", (unsigned int) mode->c_cc[i]);
+++ if (rs485 >= 0) {
+++ printf(":%lx:%lx:%lx",
+++ (unsigned long) rs485conf->flags,
+++ (unsigned long) rs485conf->delay_rts_before_send,
+++ (unsigned long) rs485conf->delay_rts_after_send);
+++ }
++ bb_putchar('\n');
++ }
++
++@@ -1025,7 +1089,7 @@ static void display_speed(const struct t
++ wrapf(fmt_str, tty_baud_to_value(ispeed), tty_baud_to_value(ospeed));
++ }
++
++-static void do_display(const struct termios *mode, int all)
+++static void do_display(const struct termios *mode, const struct serial_rs485 *rs485conf, int all, int rs485)
++ {
++ int i;
++ tcflag_t *bitsp;
++@@ -1086,6 +1150,25 @@ static void do_display(const struct term
++ }
++ }
++ newline();
+++
+++ if (rs485 < 0) {
+++ if (all) {
+++ wrapf("RS485 not supported");
+++ newline();
+++ }
+++ } else {
+++ wrapf("%srs485 %srs485rtsonsend %srs485rtsaftersend %srs485rxduringtx",
+++ (rs485conf->flags & SER_RS485_ENABLED) ? "" : "-",
+++ (rs485conf->flags & SER_RS485_RTS_ON_SEND) ? "" : "-",
+++ (rs485conf->flags & SER_RS485_RTS_AFTER_SEND) ? "" : "-",
+++ (rs485conf->flags & SER_RS485_RX_DURING_TX) ? "" : "-");
+++ newline();
+++ wrapf("rs485delaybefore = %d; rs485delayafter = %d; rs485delaylastchartx = %d;\n",
+++ rs485conf->delay_rts_before_send,
+++ rs485conf->delay_rts_after_send,
+++ rs485conf->delay_rts_last_char_tx);
+++ newline();
+++ }
++ }
++
++ static void sane_mode(struct termios *mode)
++@@ -1277,11 +1360,14 @@ int stty_main(int argc, char **argv) MAI
++ int stty_main(int argc UNUSED_PARAM, char **argv)
++ {
++ struct termios mode;
++- void (*output_func)(const struct termios *, int);
+++ struct serial_rs485 rs485conf;
+++ void (*output_func)(const struct termios *, const struct serial_rs485 *, int, int);
++ const char *file_name = NULL;
++ int display_all = 0;
++ int stty_state;
++ int k;
+++ int rs485_supported;
+++ int rs485_setconfig;
++
++ INIT_G();
++
++@@ -1306,6 +1392,11 @@ int stty_main(int argc UNUSED_PARAM, cha
++ stty_state &= ~STTY_noargs;
++ continue;
++ }
+++ param = find_rs485config(arg+1);
+++ if ((param) && ((param & param_need_arg) == 0)) {
+++ stty_state &= ~STTY_noargs;
+++ continue;
+++ }
++ /* It is an option - parse it */
++ i = 0;
++ while (arg[++i]) {
++@@ -1360,6 +1451,17 @@ int stty_main(int argc UNUSED_PARAM, cha
++ continue;
++ }
++
+++ param = find_rs485config(arg);
+++ if (param & param_need_arg) {
+++ if (!argnext)
+++ bb_error_msg_and_die(bb_msg_requires_arg, arg);
+++ ++k;
+++ }
+++ if (param) {
+++ stty_state &= ~STTY_noargs;
+++ continue;
+++ }
+++
++ param = find_param(arg);
++ if (param & param_need_arg) {
++ if (!argnext)
++@@ -1394,7 +1496,7 @@ int stty_main(int argc UNUSED_PARAM, cha
++ set_speed_or_die(output_speed, argnext, &mode);
++ break;
++ default:
++- if (recover_mode(arg, &mode) == 1) break;
+++ if (recover_mode(arg, &mode, &rs485conf, 1, -1) == 1) break;
++ if (tty_value_to_baud(xatou(arg)) != (speed_t) -1) break;
++ invalid_argument:
++ bb_error_msg_and_die("invalid argument '%s'", arg);
++@@ -1427,15 +1529,17 @@ int stty_main(int argc UNUSED_PARAM, cha
++ memset(&mode, 0, sizeof(mode));
++ if (tcgetattr(STDIN_FILENO, &mode))
++ perror_on_device_and_die("%s");
+++ rs485_supported = ioctl(STDIN_FILENO, TIOCGRS485, &rs485conf);
++
++ if (stty_state & (STTY_verbose_output | STTY_recoverable_output | STTY_noargs)) {
++ get_terminal_width_height(STDOUT_FILENO, &G.max_col, NULL);
++- output_func(&mode, display_all);
+++ output_func(&mode, &rs485conf, display_all, rs485_supported);
++ return EXIT_SUCCESS;
++ }
++
++ /* Second pass: perform actions */
++ k = 0;
+++ rs485_setconfig = 0;
++ while (argv[++k]) {
++ const struct mode_info *mp;
++ const struct control_info *cp;
++@@ -1449,6 +1553,23 @@ int stty_main(int argc UNUSED_PARAM, cha
++ set_mode(mp, 1 /* reversed */, &mode);
++ stty_state |= STTY_require_set_attr;
++ }
+++ param = find_rs485config(arg+1);
+++ if ((param) && ((param & param_need_arg) == 0)) {
+++ rs485_setconfig = 1;
+++ switch (param) {
+++ case 1:
+++ rs485conf.flags &= ~SER_RS485_ENABLED;
+++ break;
+++ case 2:
+++ rs485conf.flags &= ~SER_RS485_RTS_ON_SEND;
+++ break;
+++ case 3:
+++ rs485conf.flags &= ~SER_RS485_RTS_AFTER_SEND;
+++ break;
+++ case 4:
+++ rs485conf.flags &= ~SER_RS485_RX_DURING_TX;
+++ }
+++ }
++ /* It is an option - already parsed. Skip it */
++ continue;
++ }
++@@ -1468,6 +1589,33 @@ int stty_main(int argc UNUSED_PARAM, cha
++ continue;
++ }
++
+++ param = find_rs485config(arg);
+++ if (param) {
+++ rs485_setconfig = 1;
+++ if (param & param_need_arg)
+++ ++k;
+++ switch (param & 0x7F) {
+++ case 1:
+++ rs485conf.flags |= SER_RS485_ENABLED;
+++ break;
+++ case 2:
+++ rs485conf.flags |= SER_RS485_RTS_ON_SEND;
+++ break;
+++ case 3:
+++ rs485conf.flags |= SER_RS485_RTS_AFTER_SEND;
+++ break;
+++ case 4:
+++ rs485conf.flags |= SER_RS485_RX_DURING_TX;
+++ break;
+++ case 5:
+++ rs485conf.delay_rts_before_send = xatoul_sfx(argnext, stty_suffixes);
+++ break;
+++ case 6:
+++ rs485conf.delay_rts_after_send = xatoul_sfx(argnext, stty_suffixes);
+++ }
+++ continue;
+++ }
+++
++ param = find_param(arg);
++ if (param & param_need_arg) {
++ ++k;
++@@ -1504,9 +1652,11 @@ int stty_main(int argc UNUSED_PARAM, cha
++ stty_state |= (STTY_require_set_attr | STTY_speed_was_set);
++ break;
++ default:
++- if (recover_mode(arg, &mode) == 1)
+++ if (recover_mode(arg, &mode, &rs485conf, 0, rs485_supported) == 1) {
++ stty_state |= STTY_require_set_attr;
++- else /* true: if (tty_value_to_baud(xatou(arg)) != (speed_t) -1) */{
+++ if (rs485_supported >= 0)
+++ rs485_setconfig = 1;
+++ } else /* true: if (tty_value_to_baud(xatou(arg)) != (speed_t) -1) */{
++ set_speed_or_die(both_speeds, arg, &mode);
++ stty_state |= (STTY_require_set_attr | STTY_speed_was_set);
++ } /* else - impossible (caught in the first pass):
++@@ -1552,5 +1702,10 @@ int stty_main(int argc UNUSED_PARAM, cha
++ }
++ }
++
+++ if (rs485_setconfig) {
+++ if (ioctl (STDIN_FILENO, TIOCSRS485, &rs485conf) < 0)
+++ perror_on_device_and_die("%s: cannot set RS485 options");
+++ }
+++
++ return EXIT_SUCCESS;
++ }
+Index: buildroot/package/busybox/busybox-1.21.0/001_busybox-1.21.0_stty_add_rs485_config.patch
+===================================================================
+--- /dev/null
++++ buildroot/package/busybox/busybox-1.21.0/001_busybox-1.21.0_stty_add_rs485_config.patch
+@@ -0,0 +1,342 @@
++BusyBox coreutils stty: Add RS485 config options
++
++The patch adds RS485 config options for serial devices/drivers
++which are supporting the ioctl based configurations documented in:
++https://www.kernel.org/doc/Documentation/serial/serial-rs485.txt
++
++New config parameters:
++rs485 - Switch on/off the RS485 mode
++rs485rtsonsend - Set logical level for RTS pin when sending
++rs485rtsaftersend - Set logical level for RTS pin after sent
++rs485rxduringtx - Switch on/off Rx enable during packet transmit
++rs485delaybefore 0 - Set delay between RTS signaling and the
++ transmission of the first bit
++rs485delayafter 0 - Set delay between the transmission of the last
++ bit and the RTS state change
++
++New read only parameter:
++rs485delaylastchartx 0 - Shows the automatically calculated delay
++ between the serial port Tx FIFO empty
++ state and the last bit transmission
++
++Currently the following serial drivers supports the RS485 options:
++- crisv10.c ETRAX 100LX
++- atmel_serial.c Atmel AT91 / AT32
++- mxs-auart.c Freescale STMP37XX/STMP378X iMX28
++
++Signed-off-by: Janos Angeli <an...@an...>
++---
++Index: busybox-1.21.0/coreutils/stty.c
++===================================================================
++--- busybox-1.21.0.orig/coreutils/stty.c
+++++ busybox-1.21.0/coreutils/stty.c
++@@ -19,6 +19,8 @@
++
++ Special for busybox ported by Vladimir Oleynik <dz...@si...> 2001
++
+++ RS485 options added by Janos Angeli <an...@an...> 2013
+++
++ */
++
++ //usage:#define stty_trivial_usage
++@@ -33,6 +35,33 @@
++
++ #include "libbb.h"
++
+++//#include <asm/ioctls.h>
+++//We don't include <asm/ioctls.h> now, because older Linux kernels are missing the
+++//required RS485 definitions. We need only the TIOCGRS485 and TIOCSRS485 definition.
+++//In later versions we will be able to switch back to the original include.
+++#define TIOCGRS485 0x542E
+++#define TIOCSRS485 0x542F
+++//End of temporally include <asm/ioctls.h>
+++
+++//#include <linux/serial.h>
+++//We don't include <linux/serial.h> now, because it is missing some RS485 definitions.
+++//We need only the serial_rs485 struct from it and the __u32 def from <linux/types.h>
+++//In later versions we will be able to switch back to the original include.
+++#include <linux/types.h>
+++struct serial_rs485 {
+++ __u32 flags; /* RS485 feature flags */
+++#define SER_RS485_ENABLED (1 << 0) /* If enabled */
+++#define SER_RS485_RTS_ON_SEND (1 << 1) /* Logical level for RTS pin when sending */
+++#define SER_RS485_RTS_AFTER_SEND (1 << 2) /* Logical level for RTS pin after sent */
+++#define SER_RS485_RX_DURING_TX (1 << 4)
+++ __u32 delay_rts_before_send; /* Delay before send */
+++ __u32 delay_rts_after_send; /* Delay after send */
+++ __u32 delay_rts_last_char_tx; /* Delay for last char Tx from FIFO (microseconds)
+++ This delay is automatically calculated from baudrate */
+++ __u32 padding[4]; /* Memory is cheap, new structs are a royal PITA .. */
+++};
+++//End of temporally include <linux/serial.h>
+++
++ #ifndef _POSIX_VDISABLE
++ # define _POSIX_VDISABLE ((unsigned char) 0)
++ #endif
++@@ -966,11 +995,27 @@ static int find_param(const char *name)
++ return i;
++ }
++
++-static int recover_mode(const char *arg, struct termios *mode)
+++static int find_rs485config(const char *name)
+++{
+++ static const char params[] ALIGN1 =
+++ "rs485\0" /* 1 */
+++ "rs485rtsonsend\0" /* 2 */
+++ "rs485rtsaftersend\0" /* 3 */
+++ "rs485rxduringtx\0" /* 4 */
+++ "rs485delaybefore\0" /* 5 */
+++ "rs485delayafter\0"; /* 6 */
+++ int i = index_in_strings(params, name) + 1;
+++ if ((i == 5) || (i == 6))
+++ i |= 0x80;
+++ return i;
+++}
+++
+++static int recover_mode(const char *arg, struct termios *mode, struct serial_rs485 *rs485conf, int paramcheck, int rs485)
++ {
++ int i, n;
++ unsigned chr;
++ unsigned long iflag, oflag, cflag, lflag;
+++ unsigned long rsflags, rsdelaybefore, rsdelayafter;
++
++ /* Scan into temporaries since it is too much trouble to figure out
++ the right format for 'tcflag_t' */
++@@ -989,15 +1034,28 @@ static int recover_mode(const char *arg,
++ arg += n;
++ }
++
+++ if (rs485 >= 0) {
+++ if (sscanf(arg, ":%lx:%lx:%lx%n", &rsflags, &rsdelaybefore, &rsdelayafter, &n) != 3)
+++ return 0;
+++ rs485conf->flags = rsflags;
+++ rs485conf->delay_rts_before_send = rsdelaybefore;
+++ rs485conf->delay_rts_after_send = rsdelayafter;
+++ arg += n;
+++ }
+++
++ /* Fail if there are too many fields */
++- if (*arg != '\0')
+++ if (*arg != '\0') {
+++ /* In the first pass of params verify we don't know the port device
+++ have RS485 support or not, so give a try for the extra RS485 params */
+++ if ((paramcheck) && (sscanf(arg, ":%lx:%lx:%lx%n", &rsflags, &rsdelaybefore, &rsdelayafter, &n) == 3))
+++ return 1;
++ return 0;
++-
+++ }
++ return 1;
++ }
++
++-static void display_recoverable(const struct termios *mode,
++- int UNUSED_PARAM dummy)
+++static void display_recoverable(const struct termios *mode, const struct serial_rs485 *rs485conf,
+++ int UNUSED_PARAM dummy, int rs485)
++ {
++ int i;
++ printf("%lx:%lx:%lx:%lx",
++@@ -1005,6 +1063,12 @@ static void display_recoverable(const st
++ (unsigned long) mode->c_cflag, (unsigned long) mode->c_lflag);
++ for (i = 0; i < NCCS; ++i)
++ printf(":%x", (unsigned int) mode->c_cc[i]);
+++ if (rs485 >= 0) {
+++ printf(":%lx:%lx:%lx",
+++ (unsigned long) rs485conf->flags,
+++ (unsigned long) rs485conf->delay_rts_before_send,
+++ (unsigned long) rs485conf->delay_rts_after_send);
+++ }
++ bb_putchar('\n');
++ }
++
++@@ -1025,7 +1089,7 @@ static void display_speed(const struct t
++ wrapf(fmt_str, tty_baud_to_value(ispeed), tty_baud_to_value(ospeed));
++ }
++
++-static void do_display(const struct termios *mode, int all)
+++static void do_display(const struct termios *mode, const struct serial_rs485 *rs485conf, int all, int rs485)
++ {
++ int i;
++ tcflag_t *bitsp;
++@@ -1086,6 +1150,25 @@ static void do_display(const struct term
++ }
++ }
++ newline();
+++
+++ if (rs485 < 0) {
+++ if (all) {
+++ wrapf("RS485 not supported");
+++ newline();
+++ }
+++ } else {
+++ wrapf("%srs485 %srs485rtsonsend %srs485rtsaftersend %srs485rxduringtx",
+++ (rs485conf->flags & SER_RS485_ENABLED) ? "" : "-",
+++ (rs485conf->flags & SER_RS485_RTS_ON_SEND) ? "" : "-",
+++ (rs485conf->flags & SER_RS485_RTS_AFTER_SEND) ? "" : "-",
+++ (rs485conf->flags & SER_RS485_RX_DURING_TX) ? "" : "-");
+++ newline();
+++ wrapf("rs485delaybefore = %d; rs485delayafter = %d; rs485delaylastchartx = %d;\n",
+++ rs485conf->delay_rts_before_send,
+++ rs485conf->delay_rts_after_send,
+++ rs485conf->delay_rts_last_char_tx);
+++ newline();
+++ }
++ }
++
++ static void sane_mode(struct termios *mode)
++@@ -1277,11 +1360,14 @@ int stty_main(int argc, char **argv) MAI
++ int stty_main(int argc UNUSED_PARAM, char **argv)
++ {
++ struct termios mode;
++- void (*output_func)(const struct termios *, int);
+++ struct serial_rs485 rs485conf;
+++ void (*output_func)(const struct termios *, const struct serial_rs485 *, int, int);
++ const char *file_name = NULL;
++ int display_all = 0;
++ int stty_state;
++ int k;
+++ int rs485_supported;
+++ int rs485_setconfig;
++
++ INIT_G();
++
++@@ -1306,6 +1392,11 @@ int stty_main(int argc UNUSED_PARAM, cha
++ stty_state &= ~STTY_noargs;
++ continue;
++ }
+++ param = find_rs485config(arg+1);
+++ if ((param) && ((param & param_need_arg) == 0)) {
+++ stty_state &= ~STTY_noargs;
+++ continue;
+++ }
++ /* It is an option - parse it */
++ i = 0;
++ while (arg[++i]) {
++@@ -1360,6 +1451,17 @@ int stty_main(int argc UNUSED_PARAM, cha
++ continue;
++ }
++
+++ param = find_rs485config(arg);
+++ if (param & param_need_arg) {
+++ if (!argnext)
+++ bb_error_msg_and_die(bb_msg_requires_arg, arg);
+++ ++k;
+++ }
+++ if (param) {
+++ stty_state &= ~STTY_noargs;
+++ continue;
+++ }
+++
++ param = find_param(arg);
++ if (param & param_need_arg) {
++ if (!argnext)
++@@ -1394,7 +1496,7 @@ int stty_main(int argc UNUSED_PARAM, cha
++ set_speed_or_die(output_speed, argnext, &mode);
++ break;
++ default:
++- if (recover_mode(arg, &mode) == 1) break;
+++ if (recover_mode(arg, &mode, &rs485conf, 1, -1) == 1) break;
++ if (tty_value_to_baud(xatou(arg)) != (speed_t) -1) break;
++ invalid_argument:
++ bb_error_msg_and_die("invalid argument '%s'", arg);
++@@ -1427,15 +1529,17 @@ int stty_main(int argc UNUSED_PARAM, cha
++ memset(&mode, 0, sizeof(mode));
++ if (tcgetattr(STDIN_FILENO, &mode))
++ perror_on_device_and_die("%s");
+++ rs485_supported = ioctl(STDIN_FILENO, TIOCGRS485, &rs485conf);
++
++ if (stty_state & (STTY_verbose_output | STTY_recoverable_output | STTY_noargs)) {
++ get_terminal_width_height(STDOUT_FILENO, &G.max_col, NULL);
++- output_func(&mode, display_all);
+++ output_func(&mode, &rs485conf, display_all, rs485_supported);
++ return EXIT_SUCCESS;
++ }
++
++ /* Second pass: perform actions */
++ k = 0;
+++ rs485_setconfig = 0;
++ while (argv[++k]) {
++ const struct mode_info *mp;
++ const struct control_info *cp;
++@@ -1449,6 +1553,23 @@ int stty_main(int argc UNUSED_PARAM, cha
++ set_mode(mp, 1 /* reversed */, &mode);
++ stty_state |= STTY_require_set_attr;
++ }
+++ param = find_rs485config(arg+1);
+++ if ((param) && ((param & param_need_arg) == 0)) {
+++ rs485_setconfig = 1;
+++ switch (param) {
+++ case 1:
+++ rs485conf.flags &= ~SER_RS485_ENABLED;
+++ break;
+++ case 2:
+++ rs485conf.flags &= ~SER_RS485_RTS_ON_SEND;
+++ break;
+++ case 3:
+++ rs485conf.flags &= ~SER_RS485_RTS_AFTER_SEND;
+++ break;
+++ case 4:
+++ rs485conf.flags &= ~SER_RS485_RX_DURING_TX;
+++ }
+++ }
++ /* It is an option - already parsed. Skip it */
++ continue;
++ }
++@@ -1468,6 +1589,33 @@ int stty_main(int argc UNUSED_PARAM, cha
++ continue;
++ }
++
+++ param = find_rs485config(arg);
+++ if (param) {
+++ rs485_setconfig = 1;
+++ if (param & param_need_arg)
+++ ++k;
+++ switch (param & 0x7F) {
+++ case 1:
+++ rs485conf.flags |= SER_RS485_ENABLED;
+++ break;
+++ case 2:
+++ rs485conf.flags |= SER_RS485_RTS_ON_SEND;
+++ break;
+++ case 3:
+++ rs485conf.flags |= SER_RS485_RTS_AFTER_SEND;
+++ break;
+++ case 4:
+++ rs485conf.flags |= SER_RS485_RX_DURING_TX;
+++ break;
+++ case 5:
+++ rs485conf.delay_rts_before_send = xatoul_sfx(argnext, stty_suffixes);
+++ break;
+++ case 6:
+++ rs485conf.delay_rts_after_send = xatoul_sfx(argnext, stty_suffixes);
+++ }
+++ continue;
+++ }
+++
++ param = find_param(arg);
++ if (param & param_need_arg) {
++ ++k;
++@@ -1504,9 +1652,11 @@ int stty_main(int argc UNUSED_PARAM, cha
++ stty_state |= (STTY_require_set_attr | STTY_speed_was_set);
++ break;
++ default:
++- if (recover_mode(arg, &mode) == 1)
+++ if (recover_mode(arg, &mode, &rs485conf, 0, rs485_supported) == 1) {
++ stty_state |= STTY_require_set_attr;
++- else /* true: if (tty_value_to_baud(xatou(arg)) != (speed_t) -1) */{
+++ if (rs485_supported >= 0)
+++ rs485_setconfig = 1;
+++ } else /* true: if (tty_value_to_baud(xatou(arg)) != (speed_t) -1) */{
++ set_speed_or_die(both_speeds, arg, &mode);
++ stty_state |= (STTY_require_set_attr | STTY_speed_was_set);
++ } /* else - impossible (caught in the first pass):
++@@ -1552,5 +1702,10 @@ int stty_main(int argc UNUSED_PARAM, cha
++ }
++ }
++
+++ if (rs485_setconfig) {
+++ if (ioctl (STDIN_FILENO, TIOCSRS485, &rs485conf) < 0)
+++ perror_on_device_and_die("%s: cannot set RS485 options");
+++ }
+++
++ return EXIT_SUCCESS;
++ }
+Index: buildroot/package/busybox/busybox-snapshot/001_busybox_stty_add_rs485_config.patch
+===================================================================
+--- /dev/null
++++ buildroot/package/busybox/busybox-snapshot/001_busybox_stty_add_rs485_config.patch
+@@ -0,0 +1,342 @@
++BusyBox coreutils stty: Add RS485 config options
++
++The patch adds RS485 config options for serial devices/drivers
++which are supporting the ioctl based configurations documented in:
++https://www.kernel.org/doc/Documentation/serial/serial-rs485.txt
++
++New config parameters:
++rs485 - Switch on/off the RS485 mode
++rs485rtsonsend - Set logical level for RTS pin when sending
++rs485rtsaftersend - Set logical level for RTS pin after sent
++rs485rxduringtx - Switch on/off Rx enable during packet transmit
++rs485delaybefore 0 - Set delay between RTS signaling and the
++ transmission of the first bit
++rs485delayafter 0 - Set delay between the transmission of the last
++ bit and the RTS state change
++
++New read only parameter:
++rs485delaylastchartx 0 - Shows the automatically calculated delay
++ between the serial port Tx FIFO empty
++ state and the last bit transmission
++
++Currently the following serial drivers supports the RS485 options:
++- crisv10.c ETRAX 100LX
++- atmel_serial.c Atmel AT91 / AT32
++- mxs-auart.c Freescale STMP37XX/STMP378X iMX28
++
++Signed-off-by: Janos Angeli <an...@an...>
++---
++Index: busybox/coreutils/stty.c
++===================================================================
++--- busybox.orig/coreutils/stty.c
+++++ busybox/coreutils/stty.c
++@@ -19,6 +19,8 @@
++
++ Special for busybox ported by Vladimir Oleynik <dz...@si...> 2001
++
+++ RS485 options added by Janos Angeli <an...@an...> 2013
+++
++ */
++
++ //usage:#define stty_trivial_usage
++@@ -33,6 +35,33 @@
++
++ #include "libbb.h"
++
+++//#include <asm/ioctls.h>
+++//We don't include <asm/ioctls.h> now, because older Linux kernels are missing the
+++//required RS485 definitions. We need only the TIOCGRS485 and TIOCSRS485 definition.
+++//In later versions we will be able to switch back to the original include.
+++#define TIOCGRS485 0x542E
+++#define TIOCSRS485 0x542F
+++//End of temporally include <asm/ioctls.h>
+++
+++//#include <linux/serial.h>
+++//We don't include <linux/serial.h> now, because it is missing some RS485 definitions.
+++//We need only the serial_rs485 struct from it and the __u32 def from <linux/types.h>
+++//In later versions we will be able to switch back to the original include.
+++#include <linux/types.h>
+++struct serial_rs485 {
+++ __u32 flags; /* RS485 feature flags */
+++#define SER_RS485_ENABLED (1 << 0) /* If enabled */
+++#define SER_RS485_RTS_ON_SEND (1 << 1) /* Logical level for RTS pin when sending */
+++#define SER_RS485_RTS_AFTER_SEND (1 << 2) /* Logical level for RTS pin after sent */
+++#define SER_RS485_RX_DURING_TX (1 << 4)
+++ __u32 delay_rts_before_send; /* Delay before send */
+++ __u32 delay_rts_after_send; /* Delay after send */
+++ __u32 delay_rts_last_char_tx; /* Delay for last char Tx from FIFO (microseconds)
+++ This delay is automatically calculated from baudrate */
+++ __u32 padding[4]; /* Memory is cheap, new structs are a royal PITA .. */
+++};
+++//End of temporally include <linux/serial.h>
+++
++ #ifndef _POSIX_VDISABLE
++ # define _POSIX_VDISABLE ((unsigned char) 0)
++ #endif
++@@ -962,11 +991,27 @@ static int find_param(const char *name)
++ return i;
++ }
++
++-static int recover_mode(const char *arg, struct termios *mode)
+++static int find_rs485config(const char *name)
+++{
+++ static const char params[] ALIGN1 =
+++ "rs485\0" /* 1 */
+++ "rs485rtsonsend\0" /* 2 */
+++ "rs485rtsaftersend\0" /* 3 */
+++ "rs485rxduringtx\0" /* 4 */
+++ "rs485delaybefore\0" /* 5 */
+++ "rs485delayafter\0"; /* 6 */
+++ int i = index_in_strings(params, name) + 1;
+++ if ((i == 5) || (i == 6))
+++ i |= 0x80;
+++ return i;
+++}
+++
+++static int recover_mode(const char *arg, struct termios *mode, struct serial_rs485 *rs485conf, int paramcheck, int rs485)
++ {
++ int i, n;
++ unsigned chr;
++ unsigned long iflag, oflag, cflag, lflag;
+++ unsigned long rsflags, rsdelaybefore, rsdelayafter;
++
++ /* Scan into temporaries since it is too much trouble to figure out
++ the right format for 'tcflag_t' */
++@@ -985,15 +1030,28 @@ static int recover_mode(const char *arg,
++ arg += n;
++ }
++
+++ if (rs485 >= 0) {
+++ if (sscanf(arg, ":%lx:%lx:%lx%n", &rsflags, &rsdelaybefore, &rsdelayafter, &n) != 3)
+++ return 0;
+++ rs485conf->flags = rsflags;
+++ rs485conf->delay_rts_before_send = rsdelaybefore;
+++ rs485conf->delay_rts_after_send = rsdelayafter;
+++ arg += n;
+++ }
+++
++ /* Fail if there are too many fields */
++- if (*arg != '\0')
+++ if (*arg != '\0') {
+++ /* In the first pass of params verify we don't know the port device
+++ have RS485 support or not, so give a try for the extra RS485 params */
+++ if ((paramcheck) && (sscanf(arg, ":%lx:%lx:%lx%n", &rsflags, &rsdelaybefore, &rsdelayafter, &n) == 3))
+++ return 1;
++ return 0;
++-
+++ }
++ return 1;
++ }
++
++-static void display_recoverable(const struct termios *mode,
++- int UNUSED_PARAM dummy)
+++static void display_recoverable(const struct termios *mode, const struct serial_rs485 *rs485conf,
+++ int UNUSED_PARAM dummy, int rs485)
++ {
++ int i;
++ printf("%lx:%lx:%lx:%lx",
++@@ -1001,6 +1059,12 @@ static void display_recoverable(const st
++ (unsigned long) mode->c_cflag, (unsigned long) mode->c_lflag);
++ for (i = 0; i < NCCS; ++i)
++ printf(":%x", (unsigned int) mode->c_cc[i]);
+++ if (rs485 >= 0) {
+++ printf(":%lx:%lx:%lx",
+++ (unsigned long) rs485conf->flags,
+++ (unsigned long) rs485conf->delay_rts_before_send,
+++ (unsigned long) rs485conf->delay_rts_after_send);
+++ }
++ bb_putchar('\n');
++ }
++
++@@ -1021,7 +1085,7 @@ static void display_speed(const struct t
++ wrapf(fmt_str, tty_baud_to_value(ispeed), tty_baud_to_value(ospeed));
++ }
++
++-static void do_display(const struct termios *mode, int all)
+++static void do_display(const struct termios *mode, const struct serial_rs485 *rs485conf, int all, int rs485)
++ {
++ int i;
++ tcflag_t *bitsp;
++@@ -1082,6 +1146,25 @@ static void do_display(const struct term
++ }
++ }
++ newline();
+++
+++ if (rs485 < 0) {
+++ if (all) {
+++ wrapf("RS485 not supported");
+++ newline();
+++ }
+++ } else {
+++ wrapf("%srs485 %srs485rtsonsend %srs485rtsaftersend %srs485rxduringtx",
+++ (rs485conf->flags & SER_RS485_ENABLED) ? "" : "-",
+++ (rs485conf->flags & SER_RS485_RTS_ON_SEND) ? "" : "-",
+++ (rs485conf->flags & SER_RS485_RTS_AFTER_SEND) ? "" : "-",
+++ (rs485conf->flags & SER_RS485_RX_DURING_TX) ? "" : "-");
+++ newline();
+++ wrapf("rs485delaybefore = %d; rs485delayafter = %d; rs485delaylastchartx = %d;\n",
+++ rs485conf->delay_rts_before_send,
+++ rs485conf->delay_rts_after_send,
+++ rs485conf->delay_rts_last_char_tx);
+++ newline();
+++ }
++ }
++
++ static void sane_mode(struct termios *mode)
++@@ -1276,11 +1359,14 @@ int stty_main(int argc, char **argv) MAI
++ int stty_main(int argc UNUSED_PARAM, char **argv)
++ {
++ struct termios mode;
++- void (*output_func)(const struct termios *, int);
+++ struct serial_rs485 rs485conf;
+++ void (*output_func)(const struct termios *, const struct serial_rs485 *, int, int);
++ const char *file_name = NULL;
++ int display_all = 0;
++ int stty_state;
++ int k;
+++ int rs485_supported;
+++ int rs485_setconfig;
++
++ INIT_G();
++
++@@ -1305,6 +1391,11 @@ int stty_main(int argc UNUSED_PARAM, cha
++ stty_state &= ~STTY_noargs;
++ continue;
++ }
+++ param = find_rs485config(arg+1);
+++ if ((param) && ((param & param_need_arg) == 0)) {
+++ stty_state &= ~STTY_noargs;
+++ continue;
+++ }
++ /* It is an option - parse it */
++ i = 0;
++ while (arg[++i]) {
++@@ -1359,6 +1450,17 @@ int stty_main(int argc UNUSED_PARAM, cha
++ continue;
++ }
++
+++ param = find_rs485config(arg);
+++ if (param & param_need_arg) {
+++ if (!argnext)
+++ bb_error_msg_and_die(bb_msg_requires_arg, arg);
+++ ++k;
+++ }
+++ if (param) {
+++ stty_state &= ~STTY_noargs;
+++ continue;
+++ }
+++
++ param = find_param(arg);
++ if (param & param_need_arg) {
++ if (!argnext)
++@@ -1393,7 +1495,7 @@ int stty_main(int argc UNUSED_PARAM, cha
++ set_speed_or_die(output_speed, argnext, &mode);
++ break;
++ default:
++- if (recover_mode(arg, &mode) == 1) break;
+++ if (recover_mode(arg, &mode, &rs485conf, 1, -1) == 1) break;
++ if (tty_value_to_baud(xatou(arg)) != (speed_t) -1) break;
++ invalid_argument:
++ bb_error_msg_and_die("invalid argument '%s'", arg);
++@@ -1426,15 +1528,17 @@ int stty_main(int argc UNUSED_PARAM, cha
++ memset(&mode, 0, sizeof(mode));
++ if (tcgetattr(STDIN_FILENO, &mode))
++ perror_on_device_and_die("%s");
+++ rs485_supported = ioctl(STDIN_FILENO, TIOCGRS485, &rs485conf);
++
++ if (stty_state & (STTY_verbose_output | STTY_recoverable_output | STTY_noargs)) {
++ get_terminal_width_height(STDOUT_FILENO, &G.max_col, NULL);
++- output_func(&mode, display_all);
+++ output_func(&mode, &rs485conf, display_all, rs485_supported);
++ return EXIT_SUCCESS;
++ }
++
++ /* Second pass: perform actions */
++ k = 0;
+++ rs485_setconfig = 0;
++ while (argv[++k]) {
++ const struct mode_info *mp;
++ const struct control_info *cp;
++@@ -1448,6 +1552,23 @@ int stty_main(int argc UNUSED_PARAM, cha
++ set_mode(mp, 1 /* reversed */, &mode);
++ stty_state |= STTY_require_set_attr;
++ }
+++ param = find_rs485config(arg+1);
+++ if ((param) && ((param & param_need_arg) == 0)) {
+++ rs485_setconfig = 1;
+++ switch (param) {
+++ case 1:
+++ rs485conf.flags &= ~SER_RS485_ENABLED;
+++ break;
+++ case 2:
+++ rs485conf.flags &= ~SER_RS485_RTS_ON_SEND;
+++ break;
+++ case 3:
+++ rs485conf.flags &= ~SER_RS485_RTS_AFTER_SEND;
+++ break;
+++ case 4:
+++ rs485conf.flags &= ~SER_RS485_RX_DURING_TX;
+++ }
+++ }
++ /* It is an option - already parsed. Skip it */
++ continue;
++ }
++@@ -1467,6 +1588,33 @@ int stty_main(int argc UNUSED_PARAM, cha
++ continue;
++ }
++
+++ param = find_rs485config(arg);
+++ if (param) {
+++ rs485_setconfig = 1;
+++ if (param & param_need_arg)
+++ ++k;
+++ switch (param & 0x7F) {
+++ case 1:
+++ rs485conf.flags |= SER_RS485_ENABLED;
+++ break;
+++ case 2:
+++ rs485conf.flags |= SER_RS485_RTS_ON_SEND;
+++ break;
+++ case 3:
+++ rs485conf.flags |= SER_RS485_RTS_AFTER_SEND;
+++ break;
+++ case 4:
+++ rs485conf.flags |= SER_RS485_RX_DURING_TX;
+++ break;
+++ case 5:
+++ rs485conf.delay_rts_before_send = xatoul_sfx(argnext, stty_suffixes);
+++ break;
+++ case 6:
+++ rs485conf.delay_rts_after_send = xatoul_sfx(argnext, stty_suffixes);
+++ }
+++ continue;
+++ }
+++
++ param = find_param(arg);
++ if (param & param_need_arg) {
++ ++k;
++@@ -1503,9 +1651,11 @@ int stty_main(int argc UNUSED_PARAM, cha
++ stty_state |= (STTY_require_set_attr | STTY_speed_was_set);
++ break;
++ default:
++- if (recover_mode(arg, &mode) == 1)
+++ if (recover_mode(arg, &mode, &rs485conf, 0, rs485_supported) == 1) {
++ stty_state |= STTY_require_set_attr;
++- else /* true: if (tty_value_to_baud(xatou(arg)) != (speed_t) -1) */{
+++ if (rs485_supported >= 0)
+++ rs485_setconfig = 1;
+++ } else /* true: if (tty_value_to_baud(xatou(arg)) != (speed_t) -1) */{
++ set_speed_or_die(both_speeds, arg, &mode);
++ stty_state |= (STTY_require_set_attr | STTY_speed_was_set);
++ } /* else - impossible (caught in the first pass):
++@@ -1556,5 +1706,10 @@ int stty_main(int argc UNUSED_PARAM, cha
++ }
++ }
++
+++ if (rs485_setconfig) {
+++ if (ioctl (STDIN_FILENO, TIOCSRS485, &rs485conf) < 0)
+++ perror_on_device_and_die("%s: cannot set RS485 options");
+++ }
+++
++ return EXIT_SUCCESS;
++ }
diff --git a/patches/buildroot/2013.02/cleanup_buildroot.sh b/patches/buildroot/2013.02/cleanup_buildroot.sh
index c86024c..cd6798c 100755
--- a/patches/buildroot/2013.02/cleanup_buildroot.sh
+++ b/patches/buildroot/2013.02/cleanup_buildroot.sh
@@ -72,3 +72,7 @@ rm -rf buildroot/package/marble/
rm -rf buildroot/package/cunit/
rm -rf buildroot/package/gnokii/
rm -rf buildroot/package/wpa_supplicant/
+rm -f buildroot/package/busybox/busybox-1.19.4/*.patch
+rm -f buildroot/package/busybox/busybox-1.20.2/*.patch
+rm -f buildroot/package/busybox/busybox-1.21.0/*.patch
+rm -f buildroot/package/busybox/busybox-snapshot/*.patch
hooks/post-receive
--
armadeus
|
|
From: jorasse <jo...@us...> - 2013-05-21 13:52: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, master has been updated
via 48e3c61a229b21da1ba6e186d2b326a40cb3fd8f (commit)
from 777bc9f02f55eb5d6d545930b6366b0988de1b49 (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 48e3c61a229b21da1ba6e186d2b326a40cb3fd8f
Author: Eric Jarrige <eri...@ar...>
Date: Tue May 21 15:59:57 2013 +0200
[BUILDROOT] 2013.02: Add option to disable management frame protection (IEEE 802.11w)
-----------------------------------------------------------------------
Summary of changes:
.../204-wpa-supplicant-add-option-ieee80211w.patch | 45 ++++++++++++++++++++
patches/buildroot/2013.02/cleanup_buildroot.sh | 1 +
2 files changed, 46 insertions(+), 0 deletions(-)
create mode 100644 patches/buildroot/2013.02/204-wpa-supplicant-add-option-ieee80211w.patch
diff --git a/patches/buildroot/2013.02/204-wpa-supplicant-add-option-ieee80211w.patch b/patches/buildroot/2013.02/204-wpa-supplicant-add-option-ieee80211w.patch
new file mode 100644
index 0000000..c55f84f
--- /dev/null
+++ b/patches/buildroot/2013.02/204-wpa-supplicant-add-option-ieee80211w.patch
@@ -0,0 +1,45 @@
+Add option to disable management frame protection (IEEE 802.11w) not.supported
+by legacy Linux kernel
+
+Signed-off-by: Eric Jarrige <eri...@ar...>
+
+diff -purN buildroot/package/wpa_supplicant/Config.in buildroot/package/wpa_supplicant/Config.in
+--- buildroot/package/wpa_supplicant/Config.in
++++ buildroot/package/wpa_supplicant/Config.in
+@@ -54,4 +54,9 @@ config BR2_PACKAGE_WPA_SUPPLICANT_WPS
+ help
+ Enable support for Wi-Fi Protected Setup (WPS)
+
++config BR2_PACKAGE_WPA_SUPPLICANT_IEEE80211W
++ bool "Enable support for management frame protection"
++ help
++ Enable support for management frame protection (IEEE 802.11w)
++
+ endif
+diff -purN buildroot/package/wpa_supplicant/wpa_supplicant.mk buildroot/package/wpa_supplicant/wpa_supplicant.mk
+--- buildroot/package/wpa_supplicant/wpa_supplicant.mk
++++ buildroot/package/wpa_supplicant/wpa_supplicant.mk
+@@ -116,16 +116,22 @@ endef
+
+ endif
+
++ifeq ($(BR2_PACKAGE_WPA_SUPPLICANT_IEEE80211W),y)
++define WPA_SUPPLICANT_IEEE80211W_CONFIG
++ $(SED) 's/\(#\)\(CONFIG_IEEE80211W.*\)/\2/' $(WPA_SUPPLICANT_CONFIG)
++endef
++endif
++
+ define WPA_SUPPLICANT_CONFIGURE_CMDS
+ cp $(@D)/wpa_supplicant/defconfig $(WPA_SUPPLICANT_CONFIG)
+ $(SED) 's/\(#\)\(CONFIG_HS20.*\)/\2/' $(WPA_SUPPLICANT_CONFIG)
+ $(SED) 's/\(#\)\(CONFIG_IEEE80211N.*\)/\2/' $(WPA_SUPPLICANT_CONFIG)
+ $(SED) 's/\(#\)\(CONFIG_IEEE80211R.*\)/\2/' $(WPA_SUPPLICANT_CONFIG)
+- $(SED) 's/\(#\)\(CONFIG_IEEE80211W.*\)/\2/' $(WPA_SUPPLICANT_CONFIG)
+ $(SED) 's/\(#\)\(CONFIG_INTERWORKING.*\)/\2/' $(WPA_SUPPLICANT_CONFIG)
+ $(SED) 's/\(#\)\(CONFIG_DELAYED_MIC.*\)/\2/' $(WPA_SUPPLICANT_CONFIG)
+ $(SED) 's/\(CONFIG_DRIVER_ATMEL\)/#\1/' $(WPA_SUPPLICANT_CONFIG)
+ $(SED) 's/\(CONFIG_SMARTCARD\)/#\1/' $(WPA_SUPPLICANT_CONFIG)
++ $(WPA_SUPPLICANT_IEEE80211W_CONFIG)
+ $(WPA_SUPPLICANT_LIBTOMMATH_CONFIG)
+ $(WPA_SUPPLICANT_TLS_CONFIG)
+ $(WPA_SUPPLICANT_EAP_CONFIG)
diff --git a/patches/buildroot/2013.02/cleanup_buildroot.sh b/patches/buildroot/2013.02/cleanup_buildroot.sh
index b2cbd46..c86024c 100755
--- a/patches/buildroot/2013.02/cleanup_buildroot.sh
+++ b/patches/buildroot/2013.02/cleanup_buildroot.sh
@@ -71,3 +71,4 @@ rm -rf buildroot/package/qtcreator/
rm -rf buildroot/package/marble/
rm -rf buildroot/package/cunit/
rm -rf buildroot/package/gnokii/
+rm -rf buildroot/package/wpa_supplicant/
hooks/post-receive
--
armadeus
|
|
From: Fabien M <fa...@us...> - 2013-05-21 13:06: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, master has been updated
via 777bc9f02f55eb5d6d545930b6366b0988de1b49 (commit)
via 47027dcf078bd56bf1666e1a7475a4b05ed80972 (commit)
from 3a2592e28baae64eaab2b02cf2881b5362525d92 (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 777bc9f02f55eb5d6d545930b6366b0988de1b49
Merge: 47027dc 3a2592e
Author: Fabien Marteau <fab...@ar...>
Date: Tue May 21 15:06:12 2013 +0200
Merge branch 'master' of ssh://git.code.sf.net/p/armadeus/code
commit 47027dcf078bd56bf1666e1a7475a4b05ed80972
Author: Fabien Marteau <fab...@ar...>
Date: Tue May 21 15:05:47 2013 +0200
[kernel][module][fpga][virtual_component][irq_ocore] remove properly
-----------------------------------------------------------------------
Summary of changes:
.../twin_uart/irq_mngr/twin_uarts_irq_mng.c | 3 ++-
.../fpga/virtual_components/irq_mngr/main.c | 3 ++-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/target/linux/modules/fpga/board_designs/twin_uart/irq_mngr/twin_uarts_irq_mng.c b/target/linux/modules/fpga/board_designs/twin_uart/irq_mngr/twin_uarts_irq_mng.c
index 0727225..9d81129 100644
--- a/target/linux/modules/fpga/board_designs/twin_uart/irq_mngr/twin_uarts_irq_mng.c
+++ b/target/linux/modules/fpga/board_designs/twin_uart/irq_mngr/twin_uarts_irq_mng.c
@@ -55,7 +55,7 @@ static struct ocore_irq_mng_pdata irq_mng0_data = {
.idoffset = 0x06,
};
-void irq_mng0_release(struct device *dev)
+static void irq_mng0_release(struct device *dev)
{
dev_dbg(dev, "released\n");
}
@@ -87,6 +87,7 @@ static int __init board_irq_mng_init(void)
return -EINVAL;
#endif
set_irq_type(ARMADEUS_FPGA_IRQ, IRQ_TYPE_EDGE_RISING);
+
return platform_device_register(&irq_mng0_device);
}
diff --git a/target/linux/modules/fpga/virtual_components/irq_mngr/main.c b/target/linux/modules/fpga/virtual_components/irq_mngr/main.c
index 26fa3d4..d57af34 100644
--- a/target/linux/modules/fpga/virtual_components/irq_mngr/main.c
+++ b/target/linux/modules/fpga/virtual_components/irq_mngr/main.c
@@ -260,6 +260,7 @@ static int __devinit ocore_irq_mng_probe(struct platform_device *pdev)
ret = -ENOMEM;
goto out_release_mem;
}
+ pdata->mng = mng;
mng->membase = ioremap(mem_res->start, resource_size(mem_res));
if (!mng->membase) {
@@ -330,7 +331,7 @@ out_release_mem:
static int __devexit ocore_irq_mng_remove(struct platform_device *pdev)
{
struct ocore_irq_mng_pdata *pdata = pdev->dev.platform_data;
- struct irq_mng *mng = (*pdata).mng;
+ struct irq_mng *mng = pdata->mng;
unsigned int irq;
for (irq = IRQ_FPGA(0); irq < IRQ_FPGA(NB_IT); irq++) {
hooks/post-receive
--
armadeus
|
|
From: jorasse <jo...@us...> - 2013-05-21 11:33: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, master has been updated
via 3a2592e28baae64eaab2b02cf2881b5362525d92 (commit)
from 2b353aab4d73c9b64ebced3f44cd8380c9dd3b72 (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 3a2592e28baae64eaab2b02cf2881b5362525d92
Author: Janos Angeli <an...@an...>
Date: Sun May 19 01:52:43 2013 +0200
[BUILDROOT] 2012.02: BusyBox coreutils stty: Add RS485 config options
This is the fixed version of the BusyBox coreutils stty patch.
Older Linux Kernels don't have the required RS485 definitions, and this caused compilation errors
with APF27 and APF9328 configurations. Now this definitions are included in the source code.
This patch is for buildroot 2012.02 / BusyBox 1.19.4
Signed-off-by: Janos Angeli <an...@an...>
-----------------------------------------------------------------------
Summary of changes:
...x-coreutils-stty-add-rs485-config-options.patch | 356 ++++++++++++++++++++
patches/buildroot/2012.02/cleanup_buildroot.sh | 1 +
2 files changed, 357 insertions(+), 0 deletions(-)
create mode 100644 patches/buildroot/2012.02/207-busybox-coreutils-stty-add-rs485-config-options.patch
diff --git a/patches/buildroot/2012.02/207-busybox-coreutils-stty-add-rs485-config-options.patch b/patches/buildroot/2012.02/207-busybox-coreutils-stty-add-rs485-config-options.patch
new file mode 100644
index 0000000..dc2c4f9
--- /dev/null
+++ b/patches/buildroot/2012.02/207-busybox-coreutils-stty-add-rs485-config-options.patch
@@ -0,0 +1,356 @@
+BusyBox coreutils stty: Add RS485 config options
+
+Armadeus Buildroot 2012.02 version.
+Patch only for BusyBox v1.19.4
+
+
+Signed-off-by: Janos Angeli <an...@an...>
+---
+
+Index: buildroot/package/busybox/busybox-1.19.4/001_busybox-1.19.4_stty_add_rs485_config.patch
+===================================================================
+--- /dev/null
++++ buildroot/package/busybox/busybox-1.19.4/001_busybox-1.19.4_stty_add_rs485_config.patch
+@@ -0,0 +1,342 @@
++BusyBox coreutils stty: Add RS485 config options
++
++The patch adds RS485 config options for serial devices/drivers
++which are supporting the ioctl based configurations documented in:
++https://www.kernel.org/doc/Documentation/serial/serial-rs485.txt
++
++New config parameters:
++rs485 - Switch on/off the RS485 mode
++rs485rtsonsend - Set logical level for RTS pin when sending
++rs485rtsaftersend - Set logical level for RTS pin after sent
++rs485rxduringtx - Switch on/off Rx enable during packet transmit
++rs485delaybefore 0 - Set delay between RTS signaling and the
++ transmission of the first bit
++rs485delayafter 0 - Set delay between the transmission of the last
++ bit and the RTS state change
++
++New read only parameter:
++rs485delaylastchartx 0 - Shows the automatically calculated delay
++ between the serial port Tx FIFO empty
++ state and the last bit transmission
++
++Currently the following serial drivers supports the RS485 options:
++- crisv10.c ETRAX 100LX
++- atmel_serial.c Atmel AT91 / AT32
++- mxs-auart.c Freescale STMP37XX/STMP378X iMX28
++
++Signed-off-by: Janos Angeli <an...@an...>
++---
++Index: busybox-1.19.4/coreutils/stty.c
++===================================================================
++--- busybox-1.19.4.orig/coreutils/stty.c
+++++ busybox-1.19.4/coreutils/stty.c
++@@ -19,6 +19,8 @@
++
++ Special for busybox ported by Vladimir Oleynik <dz...@si...> 2001
++
+++ RS485 options added by Janos Angeli <an...@an...> 2013
+++
++ */
++
++ //usage:#define stty_trivial_usage
++@@ -33,6 +35,33 @@
++
++ #include "libbb.h"
++
+++//#include <asm/ioctls.h>
+++//We don't include <asm/ioctls.h> now, because older Linux kernels are missing the
+++//required RS485 definitions. We need only the TIOCGRS485 and TIOCSRS485 definition.
+++//In later versions we will be able to switch back to the original include.
+++#define TIOCGRS485 0x542E
+++#define TIOCSRS485 0x542F
+++//End of temporally include <asm/ioctls.h>
+++
+++//#include <linux/serial.h>
+++//We don't include <linux/serial.h> now, because it is missing some RS485 definitions.
+++//We need only the serial_rs485 struct from it and the __u32 def from <linux/types.h>
+++//In later versions we will be able to switch back to the original include.
+++#include <linux/types.h>
+++struct serial_rs485 {
+++ __u32 flags; /* RS485 feature flags */
+++#define SER_RS485_ENABLED (1 << 0) /* If enabled */
+++#define SER_RS485_RTS_ON_SEND (1 << 1) /* Logical level for RTS pin when sending */
+++#define SER_RS485_RTS_AFTER_SEND (1 << 2) /* Logical level for RTS pin after sent */
+++#define SER_RS485_RX_DURING_TX (1 << 4)
+++ __u32 delay_rts_before_send; /* Delay before send */
+++ __u32 delay_rts_after_send; /* Delay after send */
+++ __u32 delay_rts_last_char_tx; /* Delay for last char Tx from FIFO (microseconds)
+++ This delay is automatically calculated from baudrate */
+++ __u32 padding[4]; /* Memory is cheap, new structs are a royal PITA .. */
+++};
+++//End of temporally include <linux/serial.h>
+++
++ #ifndef _POSIX_VDISABLE
++ # define _POSIX_VDISABLE ((unsigned char) 0)
++ #endif
++@@ -966,11 +995,27 @@ static int find_param(const char *name)
++ return i;
++ }
++
++-static int recover_mode(const char *arg, struct termios *mode)
+++static int find_rs485config(const char *name)
+++{
+++ static const char params[] ALIGN1 =
+++ "rs485\0" /* 1 */
+++ "rs485rtsonsend\0" /* 2 */
+++ "rs485rtsaftersend\0" /* 3 */
+++ "rs485rxduringtx\0" /* 4 */
+++ "rs485delaybefore\0" /* 5 */
+++ "rs485delayafter\0"; /* 6 */
+++ int i = index_in_strings(params, name) + 1;
+++ if ((i == 5) || (i == 6))
+++ i |= 0x80;
+++ return i;
+++}
+++
+++static int recover_mode(const char *arg, struct termios *mode, struct serial_rs485 *rs485conf, int paramcheck, int rs485)
++ {
++ int i, n;
++ unsigned chr;
++ unsigned long iflag, oflag, cflag, lflag;
+++ unsigned long rsflags, rsdelaybefore, rsdelayafter;
++
++ /* Scan into temporaries since it is too much trouble to figure out
++ the right format for 'tcflag_t' */
++@@ -989,15 +1034,28 @@ static int recover_mode(const char *arg,
++ arg += n;
++ }
++
+++ if (rs485 >= 0) {
+++ if (sscanf(arg, ":%lx:%lx:%lx%n", &rsflags, &rsdelaybefore, &rsdelayafter, &n) != 3)
+++ return 0;
+++ rs485conf->flags = rsflags;
+++ rs485conf->delay_rts_before_send = rsdelaybefore;
+++ rs485conf->delay_rts_after_send = rsdelayafter;
+++ arg += n;
+++ }
+++
++ /* Fail if there are too many fields */
++- if (*arg != '\0')
+++ if (*arg != '\0') {
+++ /* In the first pass of params verify we don't know the port device
+++ have RS485 support or not, so give a try for the extra RS485 params */
+++ if ((paramcheck) && (sscanf(arg, ":%lx:%lx:%lx%n", &rsflags, &rsdelaybefore, &rsdelayafter, &n) == 3))
+++ return 1;
++ return 0;
++-
+++ }
++ return 1;
++ }
++
++-static void display_recoverable(const struct termios *mode,
++- int UNUSED_PARAM dummy)
+++static void display_recoverable(const struct termios *mode, const struct serial_rs485 *rs485conf,
+++ int UNUSED_PARAM dummy, int rs485)
++ {
++ int i;
++ printf("%lx:%lx:%lx:%lx",
++@@ -1005,6 +1063,12 @@ static void display_recoverable(const st
++ (unsigned long) mode->c_cflag, (unsigned long) mode->c_lflag);
++ for (i = 0; i < NCCS; ++i)
++ printf(":%x", (unsigned int) mode->c_cc[i]);
+++ if (rs485 >= 0) {
+++ printf(":%lx:%lx:%lx",
+++ (unsigned long) rs485conf->flags,
+++ (unsigned long) rs485conf->delay_rts_before_send,
+++ (unsigned long) rs485conf->delay_rts_after_send);
+++ }
++ bb_putchar('\n');
++ }
++
++@@ -1025,7 +1089,7 @@ static void display_speed(const struct t
++ wrapf(fmt_str, tty_baud_to_value(ispeed), tty_baud_to_value(ospeed));
++ }
++
++-static void do_display(const struct termios *mode, int all)
+++static void do_display(const struct termios *mode, const struct serial_rs485 *rs485conf, int all, int rs485)
++ {
++ int i;
++ tcflag_t *bitsp;
++@@ -1086,6 +1150,25 @@ static void do_display(const struct term
++ }
++ }
++ newline();
+++
+++ if (rs485 < 0) {
+++ if (all) {
+++ wrapf("RS485 not supported");
+++ newline();
+++ }
+++ } else {
+++ wrapf("%srs485 %srs485rtsonsend %srs485rtsaftersend %srs485rxduringtx",
+++ (rs485conf->flags & SER_RS485_ENABLED) ? "" : "-",
+++ (rs485conf->flags & SER_RS485_RTS_ON_SEND) ? "" : "-",
+++ (rs485conf->flags & SER_RS485_RTS_AFTER_SEND) ? "" : "-",
+++ (rs485conf->flags & SER_RS485_RX_DURING_TX) ? "" : "-");
+++ newline();
+++ wrapf("rs485delaybefore = %d; rs485delayafter = %d; rs485delaylastchartx = %d;\n",
+++ rs485conf->delay_rts_before_send,
+++ rs485conf->delay_rts_after_send,
+++ rs485conf->delay_rts_last_char_tx);
+++ newline();
+++ }
++ }
++
++ static void sane_mode(struct termios *mode)
++@@ -1277,11 +1360,14 @@ int stty_main(int argc, char **argv) MAI
++ int stty_main(int argc UNUSED_PARAM, char **argv)
++ {
++ struct termios mode;
++- void (*output_func)(const struct termios *, int);
+++ struct serial_rs485 rs485conf;
+++ void (*output_func)(const struct termios *, const struct serial_rs485 *, int, int);
++ const char *file_name = NULL;
++ int display_all = 0;
++ int stty_state;
++ int k;
+++ int rs485_supported;
+++ int rs485_setconfig;
++
++ INIT_G();
++
++@@ -1306,6 +1392,11 @@ int stty_main(int argc UNUSED_PARAM, cha
++ stty_state &= ~STTY_noargs;
++ continue;
++ }
+++ param = find_rs485config(arg+1);
+++ if ((param) && ((param & param_need_arg) == 0)) {
+++ stty_state &= ~STTY_noargs;
+++ continue;
+++ }
++ /* It is an option - parse it */
++ i = 0;
++ while (arg[++i]) {
++@@ -1360,6 +1451,17 @@ int stty_main(int argc UNUSED_PARAM, cha
++ continue;
++ }
++
+++ param = find_rs485config(arg);
+++ if (param & param_need_arg) {
+++ if (!argnext)
+++ bb_error_msg_and_die(bb_msg_requires_arg, arg);
+++ ++k;
+++ }
+++ if (param) {
+++ stty_state &= ~STTY_noargs;
+++ continue;
+++ }
+++
++ param = find_param(arg);
++ if (param & param_need_arg) {
++ if (!argnext)
++@@ -1394,7 +1496,7 @@ int stty_main(int argc UNUSED_PARAM, cha
++ set_speed_or_die(output_speed, argnext, &mode);
++ break;
++ default:
++- if (recover_mode(arg, &mode) == 1) break;
+++ if (recover_mode(arg, &mode, &rs485conf, 1, -1) == 1) break;
++ if (tty_value_to_baud(xatou(arg)) != (speed_t) -1) break;
++ invalid_argument:
++ bb_error_msg_and_die("invalid argument '%s'", arg);
++@@ -1425,15 +1527,17 @@ int stty_main(int argc UNUSED_PARAM, cha
++ memset(&mode, 0, sizeof(mode));
++ if (tcgetattr(STDIN_FILENO, &mode))
++ perror_on_device_and_die("%s");
+++ rs485_supported = ioctl(STDIN_FILENO, TIOCGRS485, &rs485conf);
++
++ if (stty_state & (STTY_verbose_output | STTY_recoverable_output | STTY_noargs)) {
++ get_terminal_width_height(STDOUT_FILENO, &G.max_col, NULL);
++- output_func(&mode, display_all);
+++ output_func(&mode, &rs485conf, display_all, rs485_supported);
++ return EXIT_SUCCESS;
++ }
++
++ /* Second pass: perform actions */
++ k = 0;
+++ rs485_setconfig = 0;
++ while (argv[++k]) {
++ const struct mode_info *mp;
++ const struct control_info *cp;
++@@ -1447,6 +1551,23 @@ int stty_main(int argc UNUSED_PARAM, cha
++ set_mode(mp, 1 /* reversed */, &mode);
++ stty_state |= STTY_require_set_attr;
++ }
+++ param = find_rs485config(arg+1);
+++ if ((param) && ((param & param_need_arg) == 0)) {
+++ rs485_setconfig = 1;
+++ switch (param) {
+++ case 1:
+++ rs485conf.flags &= ~SER_RS485_ENABLED;
+++ break;
+++ case 2:
+++ rs485conf.flags &= ~SER_RS485_RTS_ON_SEND;
+++ break;
+++ case 3:
+++ rs485conf.flags &= ~SER_RS485_RTS_AFTER_SEND;
+++ break;
+++ case 4:
+++ rs485conf.flags &= ~SER_RS485_RX_DURING_TX;
+++ }
+++ }
++ /* It is an option - already parsed. Skip it */
++ continue;
++ }
++@@ -1466,6 +1587,33 @@ int stty_main(int argc UNUSED_PARAM, cha
++ continue;
++ }
++
+++ param = find_rs485config(arg);
+++ if (param) {
+++ rs485_setconfig = 1;
+++ if (param & param_need_arg)
+++ ++k;
+++ switch (param & 0x7F) {
+++ case 1:
+++ rs485conf.flags |= SER_RS485_ENABLED;
+++ break;
+++ case 2:
+++ rs485conf.flags |= SER_RS485_RTS_ON_SEND;
+++ break;
+++ case 3:
+++ rs485conf.flags |= SER_RS485_RTS_AFTER_SEND;
+++ break;
+++ case 4:
+++ rs485conf.flags |= SER_RS485_RX_DURING_TX;
+++ break;
+++ case 5:
+++ rs485conf.delay_rts_before_send = xatoul_sfx(argnext, stty_suffixes);
+++ break;
+++ case 6:
+++ rs485conf.delay_rts_after_send = xatoul_sfx(argnext, stty_suffixes);
+++ }
+++ continue;
+++ }
+++
++ param = find_param(arg);
++ if (param & param_need_arg) {
++ ++k;
++@@ -1502,9 +1650,11 @@ int stty_main(int argc UNUSED_PARAM, cha
++ stty_state |= (STTY_require_set_attr | STTY_speed_was_set);
++ break;
++ default:
++- if (recover_mode(arg, &mode) == 1)
+++ if (recover_mode(arg, &mode, &rs485conf, 0, rs485_supported) == 1) {
++ stty_state |= STTY_require_set_attr;
++- else /* true: if (tty_value_to_baud(xatou(arg)) != (speed_t) -1) */{
+++ if (rs485_supported >= 0)
+++ rs485_setconfig = 1;
+++ } else /* true: if (tty_value_to_baud(xatou(arg)) != (speed_t) -1) */{
++ set_speed_or_die(both_speeds, arg, &mode);
++ stty_state |= (STTY_require_set_attr | STTY_speed_was_set);
++ } /* else - impossible (caught in the first pass):
++@@ -1550,5 +1700,10 @@ int stty_main(int argc UNUSED_PARAM, cha
++ }
++ }
++
+++ if (rs485_setconfig) {
+++ if (ioctl (STDIN_FILENO, TIOCSRS485, &rs485conf) < 0)
+++ perror_on_device_and_die("%s: cannot set RS485 options");
+++ }
+++
++ return EXIT_SUCCESS;
++ }
diff --git a/patches/buildroot/2012.02/cleanup_buildroot.sh b/patches/buildroot/2012.02/cleanup_buildroot.sh
index 30a0af3..f386fa4 100755
--- a/patches/buildroot/2012.02/cleanup_buildroot.sh
+++ b/patches/buildroot/2012.02/cleanup_buildroot.sh
@@ -87,3 +87,4 @@ rm -rf buildroot/package/smstools3/
rm -rf buildroot/package/opkg/
rm -rf buildroot/package/minicom/
rm -rf buildroot/package/joe/
+rm -f buildroot/package/busybox/busybox-1.19.4/*.patch
hooks/post-receive
--
armadeus
|
|
From: jorasse <jo...@us...> - 2013-05-21 11:04:23
|
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, master has been updated
via 2b353aab4d73c9b64ebced3f44cd8380c9dd3b72 (commit)
from efe2defd79b16bd51642553f7b4128e8974fd9b1 (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 2b353aab4d73c9b64ebced3f44cd8380c9dd3b72
Author: Philippe Reynes <tr...@ya...>
Date: Mon May 20 11:44:19 2013 +0200
[LINUX] 3.8: fix network declaration on dts
Signed-off-by: Philippe Reynes <tr...@ya...>
-----------------------------------------------------------------------
Summary of changes:
...adeus-apf27-move-ethernet-to-aipi2-on-dts.patch | 32 ++++++++++++++++++++
1 files changed, 32 insertions(+), 0 deletions(-)
create mode 100644 patches/linux/3.8/0207-armadeus-apf27-move-ethernet-to-aipi2-on-dts.patch
diff --git a/patches/linux/3.8/0207-armadeus-apf27-move-ethernet-to-aipi2-on-dts.patch b/patches/linux/3.8/0207-armadeus-apf27-move-ethernet-to-aipi2-on-dts.patch
new file mode 100644
index 0000000..70c69bf
--- /dev/null
+++ b/patches/linux/3.8/0207-armadeus-apf27-move-ethernet-to-aipi2-on-dts.patch
@@ -0,0 +1,32 @@
+From 5948d826c99ff1acb617f5c0f992a7e0ffe50831 Mon Sep 17 00:00:00 2001
+From: Philippe Reynes <tr...@ya...>
+Date: Mon, 20 May 2013 10:40:19 +0200
+Subject: [PATCH] apf27: move ethernet to aipi2 on dts
+
+In the file imx27.dtsi, aipi was splitted in two
+aipi (aipi1 and aipi2), and ethernet was moved to
+aipi2. So we just update apf27 dts to use the same
+declaration.
+
+Signed-off-by: Philippe Reynes <tr...@ya...>
+---
+ arch/arm/boot/dts/imx27-apf27.dts | 2 ++
+ 1 files changed, 2 insertions(+), 0 deletions(-)
+
+diff --git a/arch/arm/boot/dts/imx27-apf27.dts b/arch/arm/boot/dts/imx27-apf27.dts
+index c0327c0..04087f2 100644
+--- a/arch/arm/boot/dts/imx27-apf27.dts
++++ b/arch/arm/boot/dts/imx27-apf27.dts
+@@ -38,7 +38,9 @@
+ serial@1000a000 {
+ status = "okay";
+ };
++ };
+
++ aipi@10020000 {
+ ethernet@1002b000 {
+ status = "okay";
+ };
+--
+1.7.4.4
+
hooks/post-receive
--
armadeus
|
|
From: Fabien M <fa...@us...> - 2013-05-21 08:30: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, master has been updated
via efe2defd79b16bd51642553f7b4128e8974fd9b1 (commit)
from 82b32b10a1c395fafc12eb2ee4882c0cd2a70ef7 (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 efe2defd79b16bd51642553f7b4128e8974fd9b1
Author: Fabien Marteau <fab...@ar...>
Date: Tue May 21 10:29:55 2013 +0200
[kernel][irq_ocore] Fix irq manager bug for FPGA
-----------------------------------------------------------------------
Summary of changes:
.../fpga/virtual_components/irq_mngr/main.c | 34 +++++++++++---------
1 files changed, 19 insertions(+), 15 deletions(-)
diff --git a/target/linux/modules/fpga/virtual_components/irq_mngr/main.c b/target/linux/modules/fpga/virtual_components/irq_mngr/main.c
index 2d86bbd..26fa3d4 100644
--- a/target/linux/modules/fpga/virtual_components/irq_mngr/main.c
+++ b/target/linux/modules/fpga/virtual_components/irq_mngr/main.c
@@ -143,29 +143,33 @@ static irqreturn_t ocore_irq_mng_interrupt(int irq, void *data)
unsigned int mask;
mask = readw(mng->membase + FPGA_ISR);
- irq = IRQ_FPGA_START;
-
pr_debug("%s: mask:0x%04x\n", __FUNCTION__, mask);
+ do {
+ irq = IRQ_FPGA_START;
+
#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,29)
- desc = irq_to_desc(irq);
+ desc = irq_to_desc(irq);
#else
- desc = irq_desc + irq;
+ desc = irq_desc + irq;
#endif
- /* handle irqs */
- while (mask) {
- if (mask & 1) {
- pr_debug("handling irq %d 0x%08x\n", irq,
- (unsigned int)desc);
+
+ /* handle irqs */
+ while (mask) {
+ if (mask & 1) {
+ pr_debug("handling irq %d 0x%08x\n", irq,
+ (unsigned int)desc);
#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,39)
- desc->handle_irq(irq, desc);
+ desc->handle_irq(irq, desc);
#else
- desc_handle_irq(irq, desc);
+ desc_handle_irq(irq, desc);
#endif
+ }
+ irq++;
+ desc++;
+ mask >>= 1;
}
- irq++;
- desc++;
- mask >>= 1;
- }
+ mask = readw(mng->membase + FPGA_ISR);
+ } while (mask != 0);
return IRQ_HANDLED;
}
hooks/post-receive
--
armadeus
|
|
From: jorasse <jo...@us...> - 2013-05-16 22:27:11
|
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, master has been updated
via 82b32b10a1c395fafc12eb2ee4882c0cd2a70ef7 (commit)
from 8d0001e78f93c0e08356f6f9fef6e64fc60e5f15 (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 82b32b10a1c395fafc12eb2ee4882c0cd2a70ef7
Author: Philippe Reynes <tr...@ya...>
Date: Mon May 13 19:07:10 2013 +0200
[LINUX] 3.8: APF27: move 3.8.6 to 3.8.13
Signed-off-by: Philippe Reynes <tr...@ya...>
-----------------------------------------------------------------------
Summary of changes:
...inux-3.8.6.config => apf27-linux-3.8.13.config} | 0
patches/linux/{3.8.6 => 3.8.13} | 0
2 files changed, 0 insertions(+), 0 deletions(-)
rename buildroot/target/device/armadeus/apf27/{apf27-linux-3.8.6.config => apf27-linux-3.8.13.config} (100%)
rename patches/linux/{3.8.6 => 3.8.13} (100%)
diff --git a/buildroot/target/device/armadeus/apf27/apf27-linux-3.8.6.config b/buildroot/target/device/armadeus/apf27/apf27-linux-3.8.13.config
similarity index 100%
rename from buildroot/target/device/armadeus/apf27/apf27-linux-3.8.6.config
rename to buildroot/target/device/armadeus/apf27/apf27-linux-3.8.13.config
diff --git a/patches/linux/3.8.6 b/patches/linux/3.8.13
similarity index 100%
rename from patches/linux/3.8.6
rename to patches/linux/3.8.13
hooks/post-receive
--
armadeus
|
|
From: jorasse <jo...@us...> - 2013-05-16 21:04: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, master has been updated
via 8d0001e78f93c0e08356f6f9fef6e64fc60e5f15 (commit)
from d5b49e9545d887a3a8521e6f538a58c47f7c16e5 (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 8d0001e78f93c0e08356f6f9fef6e64fc60e5f15
Author: Eric Jarrige <eri...@ar...>
Date: Thu May 16 23:11:02 2013 +0200
[OTHER] Busybox: Disable RS485 path in order to fix APF27 and APF9328 compilation errors
-----------------------------------------------------------------------
Summary of changes:
...sybox-1.19.4_stty_add_rs485_config.patch.tofix} | 0
1 files changed, 0 insertions(+), 0 deletions(-)
rename buildroot/package/busybox/busybox-1.19.4/{001_busybox-1.19.4_stty_add_rs485_config.patch => 001_busybox-1.19.4_stty_add_rs485_config.patch.tofix} (100%)
diff --git a/buildroot/package/busybox/busybox-1.19.4/001_busybox-1.19.4_stty_add_rs485_config.patch b/buildroot/package/busybox/busybox-1.19.4/001_busybox-1.19.4_stty_add_rs485_config.patch.tofix
similarity index 100%
rename from buildroot/package/busybox/busybox-1.19.4/001_busybox-1.19.4_stty_add_rs485_config.patch
rename to buildroot/package/busybox/busybox-1.19.4/001_busybox-1.19.4_stty_add_rs485_config.patch.tofix
hooks/post-receive
--
armadeus
|
|
From: jorasse <jo...@us...> - 2013-05-16 11:50:57
|
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, master has been updated
via d5b49e9545d887a3a8521e6f538a58c47f7c16e5 (commit)
from 3f83827667c952b7677241ec1ff88178cfbef96a (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 d5b49e9545d887a3a8521e6f538a58c47f7c16e5
Author: Janos Angeli <an...@an...>
Date: Thu May 9 23:52:12 2013 +0200
[LINUX] 2.6.35: Add OneWire GPIO Bus Master Device to APF28DEV
This is the fixed version, now it works as static and as compiled module too.
Signed-off-by: Janos Angeli <an...@an...>
-----------------------------------------------------------------------
Summary of changes:
...463-armadeus-add_apf28dev_onewire_support.patch | 56 ++++++++++++++++++++
1 files changed, 56 insertions(+), 0 deletions(-)
create mode 100644 patches/linux/2.6.35/463-armadeus-add_apf28dev_onewire_support.patch
diff --git a/patches/linux/2.6.35/463-armadeus-add_apf28dev_onewire_support.patch b/patches/linux/2.6.35/463-armadeus-add_apf28dev_onewire_support.patch
new file mode 100644
index 0000000..52d262c
--- /dev/null
+++ b/patches/linux/2.6.35/463-armadeus-add_apf28dev_onewire_support.patch
@@ -0,0 +1,56 @@
+Add OneWire GPIO Bus Master Device to APF28_DEV Board.
+(Fixed version, works with driver compiled as module)
+OneWire data pin is PINID_LCD_D18 (GPIO 1_18)
+
+Signed-off-by: Janos Angeli <an...@an...>
+---
+Index: linux-2.6.35.3/arch/arm/mach-mx28/apf28dev.c
+===================================================================
+--- linux-2.6.35.3.orig/arch/arm/mach-mx28/apf28dev.c
++++ linux-2.6.35.3/arch/arm/mach-mx28/apf28dev.c
+@@ -33,6 +33,7 @@
+ #include <linux/mmc/host.h>
+ #include <linux/platform_device.h>
+ #include <linux/i2c.h>
++#include <linux/w1-gpio.h>
+
+ #include <asm/setup.h>
+ #include <asm/mach-types.h>
+@@ -924,6 +925,21 @@ static struct platform_device apf28dev_l
+ #endif /* defined(CONFIG_ARMADEUS_SENSOR_MXS_LRADC) ||
+ defined(CONFIG_ARMADEUS_SENSOR_MXS_LRADC_MODULE) */
+
++#if defined(CONFIG_W1_MASTER_GPIO) || defined(CONFIG_W1_MASTER_GPIO_MODULE)
++static struct w1_gpio_platform_data apf28dev_w1_gpio_data = {
++ .pin = MXS_PIN_TO_GPIO(PINID_LCD_D18),
++ .is_open_drain = 0,
++};
++
++static struct platform_device apf28dev_w1_gpio_dev = {
++ .name = "w1-gpio",
++ .id = -1,
++ .dev = {
++ .platform_data = &apf28dev_w1_gpio_data,
++ },
++};
++#endif /* defined(CONFIG_W1_MASTER_GPIO) || defined(CONFIG_W1_MASTER_GPIO_MODULE) */
++
+ static struct platform_device *apf28dev_platform_devices[] __initdata = {
+ #if defined(CONFIG_KEYBOARD_GPIO) || defined(CONFIG_KEYBOARD_GPIO_MODULE)
+ &apf28dev_gpio_keys_device,
+@@ -934,12 +950,13 @@ static struct platform_device *apf28dev_
+ #if defined(CONFIG_ARMADEUS_MXS_PWM_DRIVER) || \
+ defined(CONFIG_ARMADEUS_MXS_PWM_DRIVER_MODULE)
+ &apf28dev_pwm_dev,
+-
+ #endif
+ #if defined(CONFIG_ARMADEUS_SENSOR_MXS_LRADC) || \
+ defined(CONFIG_ARMADEUS_SENSOR_MXS_LRADC_MODULE)
+ &apf28dev_lradc_dev,
+-
++#endif
++#if defined(CONFIG_W1_MASTER_GPIO) || defined(CONFIG_W1_MASTER_GPIO_MODULE)
++ &apf28dev_w1_gpio_dev,
+ #endif
+ };
+
hooks/post-receive
--
armadeus
|
|
From: jorasse <jo...@us...> - 2013-05-13 19:17: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, master has been updated
via 3f83827667c952b7677241ec1ff88178cfbef96a (commit)
from d208508bb12d42973bd3c8883a87573ac8b93452 (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 3f83827667c952b7677241ec1ff88178cfbef96a
Author: Janos Angeli <an...@an...>
Date: Tue May 7 23:19:48 2013 +0200
[BUILDROOT] BusyBox 1.19.4 stty add RS485 config options
Signed-off-by: Janos Angeli <an...@an...>
-----------------------------------------------------------------------
Summary of changes:
.../001_busybox-1.19.4_stty_add_rs485_config.patch | 336 ++++++++++++++++++++
1 files changed, 336 insertions(+), 0 deletions(-)
create mode 100644 buildroot/package/busybox/busybox-1.19.4/001_busybox-1.19.4_stty_add_rs485_config.patch
diff --git a/buildroot/package/busybox/busybox-1.19.4/001_busybox-1.19.4_stty_add_rs485_config.patch b/buildroot/package/busybox/busybox-1.19.4/001_busybox-1.19.4_stty_add_rs485_config.patch
new file mode 100644
index 0000000..9f1f282
--- /dev/null
+++ b/buildroot/package/busybox/busybox-1.19.4/001_busybox-1.19.4_stty_add_rs485_config.patch
@@ -0,0 +1,336 @@
+BusyBox stty: Add RS485 config options
+
+The patch adds RS485 config options for serial devices/drivers
+which are supporting the ioctl based configurations documented in:
+https://www.kernel.org/doc/Documentation/serial/serial-rs485.txt
+
+New config parameters:
+rs485 - Switch on/off the RS485 mode
+rs485rtsonsend - Set logical level for RTS pin when sending
+rs485rtsaftersend - Set logical level for RTS pin after sent
+rs485rxduringtx - Switch on/off Rx enable during packet transmit
+rs485delaybefore 0 - Set delay between RTS signaling and the
+ transmission of the first bit
+rs485delayafter 0 - Set delay between the transmission of the last
+ bit and the RTS state change
+
+New read only parameter:
+rs485delaylastchartx 0 - Shows the automatically calculated delay
+ between the serial port Tx FIFO empty
+ state and the last bit transmission
+
+Currently the following serial drivers supports the RS485 options:
+- crisv10.c ETRAX 100LX
+- atmel_serial.c Atmel AT91 / AT32
+- mxs-auart.c Freescale STMP37XX/STMP378X iMX28
+
+Signed-off-by: Janos Angeli <an...@an...>
+---
+Index: busybox-1.19.4/coreutils/stty.c
+===================================================================
+--- busybox-1.19.4.orig/coreutils/stty.c
++++ busybox-1.19.4/coreutils/stty.c
+@@ -19,6 +19,8 @@
+
+ Special for busybox ported by Vladimir Oleynik <dz...@si...> 2001
+
++ RS485 options added by Janos Angeli <an...@an...> 2013
++
+ */
+
+ //usage:#define stty_trivial_usage
+@@ -32,6 +34,27 @@
+ //usage: "\n [SETTING] See manpage"
+
+ #include "libbb.h"
++#include <asm-generic/ioctls.h>
++#include <linux/ioctl.h>
++
++//#include <linux/serial.h>
++//We don't include <linux/serial.h> now, because it is missing some RS485 definitions.
++//We need only the serial_rs485 struct from it and the __u32 def from <linux/types.h>
++//In later versions we will be able to switch back to the original include.
++#include <linux/types.h>
++struct serial_rs485 {
++ __u32 flags; /* RS485 feature flags */
++#define SER_RS485_ENABLED (1 << 0) /* If enabled */
++#define SER_RS485_RTS_ON_SEND (1 << 1) /* Logical level for RTS pin when sending */
++#define SER_RS485_RTS_AFTER_SEND (1 << 2) /* Logical level for RTS pin after sent */
++#define SER_RS485_RX_DURING_TX (1 << 4)
++ __u32 delay_rts_before_send; /* Delay before send */
++ __u32 delay_rts_after_send; /* Delay after send */
++ __u32 delay_rts_last_char_tx; /* Delay for last char Tx from FIFO (microseconds)
++ This delay is automatically calculated from baudrate */
++ __u32 padding[4]; /* Memory is cheap, new structs are a royal PITA .. */
++};
++//End of temporally include <linux/serial.h>
+
+ #ifndef _POSIX_VDISABLE
+ # define _POSIX_VDISABLE ((unsigned char) 0)
+@@ -966,11 +989,27 @@ static int find_param(const char *name)
+ return i;
+ }
+
+-static int recover_mode(const char *arg, struct termios *mode)
++static int find_rs485config(const char *name)
++{
++ static const char params[] ALIGN1 =
++ "rs485\0" /* 1 */
++ "rs485rtsonsend\0" /* 2 */
++ "rs485rtsaftersend\0" /* 3 */
++ "rs485rxduringtx\0" /* 4 */
++ "rs485delaybefore\0" /* 5 */
++ "rs485delayafter\0"; /* 6 */
++ int i = index_in_strings(params, name) + 1;
++ if ((i == 5) || (i == 6))
++ i |= 0x80;
++ return i;
++}
++
++static int recover_mode(const char *arg, struct termios *mode, struct serial_rs485 *rs485conf, int paramcheck, int rs485)
+ {
+ int i, n;
+ unsigned chr;
+ unsigned long iflag, oflag, cflag, lflag;
++ unsigned long rsflags, rsdelaybefore, rsdelayafter;
+
+ /* Scan into temporaries since it is too much trouble to figure out
+ the right format for 'tcflag_t' */
+@@ -989,15 +1028,28 @@ static int recover_mode(const char *arg,
+ arg += n;
+ }
+
++ if (rs485 >= 0) {
++ if (sscanf(arg, ":%lx:%lx:%lx%n", &rsflags, &rsdelaybefore, &rsdelayafter, &n) != 3)
++ return 0;
++ rs485conf->flags = rsflags;
++ rs485conf->delay_rts_before_send = rsdelaybefore;
++ rs485conf->delay_rts_after_send = rsdelayafter;
++ arg += n;
++ }
++
+ /* Fail if there are too many fields */
+- if (*arg != '\0')
++ if (*arg != '\0') {
++ /* In the first pass of params verify we don't know the port device
++ have RS485 support or not, so give a try for the extra RS485 params */
++ if ((paramcheck) && (sscanf(arg, ":%lx:%lx:%lx%n", &rsflags, &rsdelaybefore, &rsdelayafter, &n) == 3))
++ return 1;
+ return 0;
+-
++ }
+ return 1;
+ }
+
+-static void display_recoverable(const struct termios *mode,
+- int UNUSED_PARAM dummy)
++static void display_recoverable(const struct termios *mode, const struct serial_rs485 *rs485conf,
++ int UNUSED_PARAM dummy, int rs485)
+ {
+ int i;
+ printf("%lx:%lx:%lx:%lx",
+@@ -1005,6 +1057,12 @@ static void display_recoverable(const st
+ (unsigned long) mode->c_cflag, (unsigned long) mode->c_lflag);
+ for (i = 0; i < NCCS; ++i)
+ printf(":%x", (unsigned int) mode->c_cc[i]);
++ if (rs485 >= 0) {
++ printf(":%lx:%lx:%lx",
++ (unsigned long) rs485conf->flags,
++ (unsigned long) rs485conf->delay_rts_before_send,
++ (unsigned long) rs485conf->delay_rts_after_send);
++ }
+ bb_putchar('\n');
+ }
+
+@@ -1025,7 +1083,7 @@ static void display_speed(const struct t
+ wrapf(fmt_str, tty_baud_to_value(ispeed), tty_baud_to_value(ospeed));
+ }
+
+-static void do_display(const struct termios *mode, int all)
++static void do_display(const struct termios *mode, const struct serial_rs485 *rs485conf, int all, int rs485)
+ {
+ int i;
+ tcflag_t *bitsp;
+@@ -1086,6 +1144,25 @@ static void do_display(const struct term
+ }
+ }
+ newline();
++
++ if (rs485 < 0) {
++ if (all) {
++ wrapf("RS485 not supported");
++ newline();
++ }
++ } else {
++ wrapf("%srs485 %srs485rtsonsend %srs485rtsaftersend %srs485rxduringtx",
++ (rs485conf->flags & SER_RS485_ENABLED) ? "" : "-",
++ (rs485conf->flags & SER_RS485_RTS_ON_SEND) ? "" : "-",
++ (rs485conf->flags & SER_RS485_RTS_AFTER_SEND) ? "" : "-",
++ (rs485conf->flags & SER_RS485_RX_DURING_TX) ? "" : "-");
++ newline();
++ wrapf("rs485delaybefore = %d; rs485delayafter = %d; rs485delaylastchartx = %d;\n",
++ rs485conf->delay_rts_before_send,
++ rs485conf->delay_rts_after_send,
++ rs485conf->delay_rts_last_char_tx);
++ newline();
++ }
+ }
+
+ static void sane_mode(struct termios *mode)
+@@ -1277,11 +1354,14 @@ int stty_main(int argc, char **argv) MAI
+ int stty_main(int argc UNUSED_PARAM, char **argv)
+ {
+ struct termios mode;
+- void (*output_func)(const struct termios *, int);
++ struct serial_rs485 rs485conf;
++ void (*output_func)(const struct termios *, const struct serial_rs485 *, int, int);
+ const char *file_name = NULL;
+ int display_all = 0;
+ int stty_state;
+ int k;
++ int rs485_supported;
++ int rs485_setconfig;
+
+ INIT_G();
+
+@@ -1306,6 +1386,11 @@ int stty_main(int argc UNUSED_PARAM, cha
+ stty_state &= ~STTY_noargs;
+ continue;
+ }
++ param = find_rs485config(arg+1);
++ if ((param) && ((param & param_need_arg) == 0)) {
++ stty_state &= ~STTY_noargs;
++ continue;
++ }
+ /* It is an option - parse it */
+ i = 0;
+ while (arg[++i]) {
+@@ -1360,6 +1445,17 @@ int stty_main(int argc UNUSED_PARAM, cha
+ continue;
+ }
+
++ param = find_rs485config(arg);
++ if (param & param_need_arg) {
++ if (!argnext)
++ bb_error_msg_and_die(bb_msg_requires_arg, arg);
++ ++k;
++ }
++ if (param) {
++ stty_state &= ~STTY_noargs;
++ continue;
++ }
++
+ param = find_param(arg);
+ if (param & param_need_arg) {
+ if (!argnext)
+@@ -1394,7 +1490,7 @@ int stty_main(int argc UNUSED_PARAM, cha
+ set_speed_or_die(output_speed, argnext, &mode);
+ break;
+ default:
+- if (recover_mode(arg, &mode) == 1) break;
++ if (recover_mode(arg, &mode, &rs485conf, 1, -1) == 1) break;
+ if (tty_value_to_baud(xatou(arg)) != (speed_t) -1) break;
+ invalid_argument:
+ bb_error_msg_and_die("invalid argument '%s'", arg);
+@@ -1425,15 +1521,17 @@ int stty_main(int argc UNUSED_PARAM, cha
+ memset(&mode, 0, sizeof(mode));
+ if (tcgetattr(STDIN_FILENO, &mode))
+ perror_on_device_and_die("%s");
++ rs485_supported = ioctl(STDIN_FILENO, TIOCGRS485, &rs485conf);
+
+ if (stty_state & (STTY_verbose_output | STTY_recoverable_output | STTY_noargs)) {
+ get_terminal_width_height(STDOUT_FILENO, &G.max_col, NULL);
+- output_func(&mode, display_all);
++ output_func(&mode, &rs485conf, display_all, rs485_supported);
+ return EXIT_SUCCESS;
+ }
+
+ /* Second pass: perform actions */
+ k = 0;
++ rs485_setconfig = 0;
+ while (argv[++k]) {
+ const struct mode_info *mp;
+ const struct control_info *cp;
+@@ -1447,6 +1545,23 @@ int stty_main(int argc UNUSED_PARAM, cha
+ set_mode(mp, 1 /* reversed */, &mode);
+ stty_state |= STTY_require_set_attr;
+ }
++ param = find_rs485config(arg+1);
++ if ((param) && ((param & param_need_arg) == 0)) {
++ rs485_setconfig = 1;
++ switch (param) {
++ case 1:
++ rs485conf.flags &= ~SER_RS485_ENABLED;
++ break;
++ case 2:
++ rs485conf.flags &= ~SER_RS485_RTS_ON_SEND;
++ break;
++ case 3:
++ rs485conf.flags &= ~SER_RS485_RTS_AFTER_SEND;
++ break;
++ case 4:
++ rs485conf.flags &= ~SER_RS485_RX_DURING_TX;
++ }
++ }
+ /* It is an option - already parsed. Skip it */
+ continue;
+ }
+@@ -1466,6 +1581,33 @@ int stty_main(int argc UNUSED_PARAM, cha
+ continue;
+ }
+
++ param = find_rs485config(arg);
++ if (param) {
++ rs485_setconfig = 1;
++ if (param & param_need_arg)
++ ++k;
++ switch (param & 0x7F) {
++ case 1:
++ rs485conf.flags |= SER_RS485_ENABLED;
++ break;
++ case 2:
++ rs485conf.flags |= SER_RS485_RTS_ON_SEND;
++ break;
++ case 3:
++ rs485conf.flags |= SER_RS485_RTS_AFTER_SEND;
++ break;
++ case 4:
++ rs485conf.flags |= SER_RS485_RX_DURING_TX;
++ break;
++ case 5:
++ rs485conf.delay_rts_before_send = xatoul_sfx(argnext, stty_suffixes);
++ break;
++ case 6:
++ rs485conf.delay_rts_after_send = xatoul_sfx(argnext, stty_suffixes);
++ }
++ continue;
++ }
++
+ param = find_param(arg);
+ if (param & param_need_arg) {
+ ++k;
+@@ -1502,9 +1644,11 @@ int stty_main(int argc UNUSED_PARAM, cha
+ stty_state |= (STTY_require_set_attr | STTY_speed_was_set);
+ break;
+ default:
+- if (recover_mode(arg, &mode) == 1)
++ if (recover_mode(arg, &mode, &rs485conf, 0, rs485_supported) == 1) {
+ stty_state |= STTY_require_set_attr;
+- else /* true: if (tty_value_to_baud(xatou(arg)) != (speed_t) -1) */{
++ if (rs485_supported >= 0)
++ rs485_setconfig = 1;
++ } else /* true: if (tty_value_to_baud(xatou(arg)) != (speed_t) -1) */{
+ set_speed_or_die(both_speeds, arg, &mode);
+ stty_state |= (STTY_require_set_attr | STTY_speed_was_set);
+ } /* else - impossible (caught in the first pass):
+@@ -1550,5 +1694,10 @@ int stty_main(int argc UNUSED_PARAM, cha
+ }
+ }
+
++ if (rs485_setconfig) {
++ if (ioctl (STDIN_FILENO, TIOCSRS485, &rs485conf) < 0)
++ perror_on_device_and_die("%s: cannot set RS485 options");
++ }
++
+ return EXIT_SUCCESS;
+ }
hooks/post-receive
--
armadeus
|
|
From: jorasse <jo...@us...> - 2013-05-13 16:44: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, master has been updated
via d208508bb12d42973bd3c8883a87573ac8b93452 (commit)
from d001b3848773d4bd07b23d578c433b2b2e8277a8 (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 d208508bb12d42973bd3c8883a87573ac8b93452
Author: Janos Angeli <an...@an...>
Date: Sun May 5 02:28:56 2013 +0200
[LINNUX] 2.6.35: APF28/MX28: Add RS485 support to mxs-auart driver
Signed-off-by: Janos Angeli <an...@an...>
-----------------------------------------------------------------------
Summary of changes:
.../462-mx28_mxs-auart_add_rs485_support.patch | 200 ++++++++++++++++++++
1 files changed, 200 insertions(+), 0 deletions(-)
create mode 100644 patches/linux/2.6.35/462-mx28_mxs-auart_add_rs485_support.patch
diff --git a/patches/linux/2.6.35/462-mx28_mxs-auart_add_rs485_support.patch b/patches/linux/2.6.35/462-mx28_mxs-auart_add_rs485_support.patch
new file mode 100644
index 0000000..b9bd1a0
--- /dev/null
+++ b/patches/linux/2.6.35/462-mx28_mxs-auart_add_rs485_support.patch
@@ -0,0 +1,200 @@
+MX28 add RS485 support to mxs-auart driver.
+
+The driver now handle automatically the transmit enable signal
+for RS485 communication lines. The _active low_ TXEN output is
+present on the RTS pin. From user-level the RS485 configuration
+can be set by using ioctls.
+
+Signed-off-by: Janos Angeli <an...@an...>
+---
+Index: linux-2.6.35.3/include/linux/serial.h
+===================================================================
+--- linux-2.6.35.3.orig/include/linux/serial.h
++++ linux-2.6.35.3/include/linux/serial.h
+@@ -210,9 +210,11 @@ struct serial_rs485 {
+ #define SER_RS485_ENABLED (1 << 0)
+ #define SER_RS485_RTS_ON_SEND (1 << 1)
+ #define SER_RS485_RTS_AFTER_SEND (1 << 2)
+- __u32 delay_rts_before_send; /* Milliseconds */
+- __u32 padding[6]; /* Memory is cheap, new structs
+- are a royal PITA .. */
++ __u32 delay_rts_before_send; /* Delay before send (microseconds) */
++ __u32 delay_rts_after_send; /* Delay after send (microseconds) */
++ __u32 delay_rts_last_char_tx; /* Delay for last char Tx from FIFO (microseconds)
++ This delay is automatically calculated from baudrate */
++ __u32 padding[4]; /* Memory is cheap, new structs are a royal PITA .. */
+ };
+
+ #ifdef __KERNEL__
+Index: linux-2.6.35.3/drivers/serial/mxs-auart.c
+===================================================================
+--- linux-2.6.35.3.orig/drivers/serial/mxs-auart.c
++++ linux-2.6.35.3/drivers/serial/mxs-auart.c
+@@ -5,6 +5,8 @@
+ *
+ * Copyright 2008-2011 Freescale Semiconductor, Inc.
+ * Copyright 2008 Embedded Alley Solutions, Inc All Rights Reserved.
++ *
++ * RS485 support added by Janos Angeli <an...@an...>
+ */
+
+ /*
+@@ -38,6 +40,7 @@
+ #include <linux/uaccess.h>
+
+ #include <asm/cacheflush.h>
++#include <asm/ioctls.h>
+
+ #include <mach/hardware.h>
+ #include <mach/device.h>
+@@ -69,6 +72,7 @@ struct mxs_auart_port {
+ struct list_head free;
+ struct mxs_dma_desc *tx;
+ struct tasklet_struct rx_task;
++ struct serial_rs485 rs485;
+ };
+
+ static void mxs_auart_stop_tx(struct uart_port *u);
+@@ -111,6 +115,11 @@ static inline void mxs_auart_tx_chars(st
+ if (i)
+ mxs_auart_submit_tx(s, i);
+ else {
++ if (s->rs485.flags & SER_RS485_ENABLED) {
++ if (s->rs485.delay_rts_after_send)
++ udelay(s->rs485.delay_rts_after_send);
++ __raw_writel(BM_UARTAPP_CTRL2_RTS, s->port.membase + HW_UARTAPP_CTRL2_CLR);
++ }
+ if (uart_tx_stopped(&s->port))
+ mxs_auart_stop_tx(&s->port);
+ }
+@@ -141,6 +150,19 @@ static inline void mxs_auart_tx_chars(st
+ __raw_writel(BM_UARTAPP_INTR_TXIEN,
+ s->port.membase + HW_UARTAPP_INTR_SET);
+
++ if (s->rs485.flags & SER_RS485_ENABLED) {
++ while(!(__raw_readl(s->port.membase + HW_UARTAPP_STAT) & BM_UARTAPP_STAT_TXFE)) {
++ /* Just wait for TX FIFO empty state */
++ }
++ if (s->rs485.delay_rts_last_char_tx)
++ /* If FIFO is empty, we still need to wait the transmit of last char */
++ udelay(s->rs485.delay_rts_last_char_tx);
++ if (s->rs485.delay_rts_after_send)
++ /* User configured extra rts delay after the transmitted packet */
++ udelay(s->rs485.delay_rts_after_send);
++ __raw_writel(BM_UARTAPP_CTRL2_RTS, s->port.membase + HW_UARTAPP_CTRL2_CLR);
++ }
++
+ if (uart_tx_stopped(&s->port))
+ mxs_auart_stop_tx(&s->port);
+ }
+@@ -486,13 +508,16 @@ static void mxs_auart_set_mctrl(struct u
+ {
+ struct mxs_auart_port *s = to_auart_port(u);
+
+- u32 ctrl = __raw_readl(u->membase + HW_UARTAPP_CTRL2);
++ if ((s->rs485.flags & SER_RS485_ENABLED) == 0) {
++ u32 ctrl = __raw_readl(u->membase + HW_UARTAPP_CTRL2);
++
++ ctrl &= ~BM_UARTAPP_CTRL2_RTS;
++ if (mctrl & TIOCM_RTS)
++ ctrl |= BM_UARTAPP_CTRL2_RTS;
++ s->ctrl = mctrl;
+
+- ctrl &= ~BM_UARTAPP_CTRL2_RTS;
+- if (mctrl & TIOCM_RTS)
+- ctrl |= BM_UARTAPP_CTRL2_RTS;
+- s->ctrl = mctrl;
+- __raw_writel(ctrl, u->membase + HW_UARTAPP_CTRL2);
++ __raw_writel(ctrl, u->membase + HW_UARTAPP_CTRL2);
++ }
+ }
+
+ static u32 mxs_auart_get_mctrl(struct uart_port *u)
+@@ -516,6 +541,7 @@ static void mxs_auart_settermios(struct
+ struct ktermios *termios,
+ struct ktermios *old)
+ {
++ struct mxs_auart_port *s = to_auart_port(u);
+ u32 bm, ctrl, ctrl2, div;
+ unsigned int cflag, baud;
+
+@@ -561,16 +587,25 @@ static void mxs_auart_settermios(struct
+ ctrl |= BM_UARTAPP_LINECTRL_STP2;
+
+ /* figure out the hardware flow control settings */
+- if (cflag & CRTSCTS)
++ if ((cflag & CRTSCTS) && ((s->rs485.flags & SER_RS485_ENABLED) == 0))
+ ctrl2 |= BM_UARTAPP_CTRL2_CTSEN | BM_UARTAPP_CTRL2_RTSEN;
+ else
+ ctrl2 &= ~BM_UARTAPP_CTRL2_CTSEN;
+
++ /* initialize RS485 RTS (TXEN) line */
++ if (s->rs485.flags & SER_RS485_ENABLED) {
++ ctrl2 &= ~BM_UARTAPP_CTRL2_RTSEN;
++ ctrl2 &= ~BM_UARTAPP_CTRL2_RTS;
++ }
++
+ /* set baud rate */
+ baud = uart_get_baud_rate(u, termios, old, 0, u->uartclk);
+ div = u->uartclk * 32 / baud;
+ ctrl |= BF_UARTAPP_LINECTRL_BAUD_DIVFRAC(div & 0x3F);
+ ctrl |= BF_UARTAPP_LINECTRL_BAUD_DIVINT(div >> 6);
++ /* set RS485 last char Tx delay in usec - worst case 12 bits */
++ div = 12000000 / baud;
++ s->rs485.delay_rts_last_char_tx = div;
+
+ if ((cflag & CREAD) != 0)
+ ctrl2 |= BM_UARTAPP_CTRL2_RXE;
+@@ -773,6 +808,12 @@ static void mxs_auart_start_tx(struct ua
+ {
+ struct mxs_auart_port *s = to_auart_port(u);
+
++ if (s->rs485.flags & SER_RS485_ENABLED) {
++ __raw_writel(BM_UARTAPP_CTRL2_RTS, u->membase + HW_UARTAPP_CTRL2_SET);
++ if (s->rs485.delay_rts_before_send)
++ udelay(s->rs485.delay_rts_before_send);
++ }
++
+ /* enable transmitter */
+ __raw_writel(BM_UARTAPP_CTRL2_TXE, u->membase + HW_UARTAPP_CTRL2_SET);
+
+@@ -804,6 +845,31 @@ static void mxs_auart_enable_ms(struct u
+ /* just empty */
+ }
+
++static int mxs_auart_ioctl(struct uart_port *u, unsigned int cmd, unsigned long arg)
++{
++ struct mxs_auart_port *s = to_auart_port(u);
++ struct serial_rs485 rs485conf;
++
++ switch (cmd) {
++ case TIOCSRS485:
++ if (copy_from_user(&rs485conf, (struct serial_rs485 *) arg, sizeof(rs485conf)))
++ return -EFAULT;
++
++ s->rs485 = *&rs485conf;
++ break;
++
++ case TIOCGRS485:
++ if (copy_to_user((struct serial_rs485 *) arg, &(s->rs485), sizeof(rs485conf)))
++ return -EFAULT;
++ break;
++
++ default:
++ return -ENOIOCTLCMD;
++ }
++
++ return 0;
++}
++
+ static struct uart_ops mxs_auart_ops = {
+ .tx_empty = mxs_auart_tx_empty,
+ .start_tx = mxs_auart_start_tx,
+@@ -821,6 +887,7 @@ static struct uart_ops mxs_auart_ops = {
+ .request_port = mxs_auart_request_port,
+ .config_port = mxs_auart_config_port,
+ .verify_port = mxs_auart_verify_port,
++ .ioctl = mxs_auart_ioctl,
+ };
+ #ifdef CONFIG_SERIAL_MXS_AUART_CONSOLE
+ static struct mxs_auart_port auart_port[CONFIG_MXS_AUART_PORTS] = {};
hooks/post-receive
--
armadeus
|
|
From: jorasse <jo...@us...> - 2013-05-13 16:10:21
|
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, master has been updated
via d001b3848773d4bd07b23d578c433b2b2e8277a8 (commit)
from 23b7a90ad37032fd86f4f8c12f0f1b828985c8a7 (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 d001b3848773d4bd07b23d578c433b2b2e8277a8
Author: Janos Angeli <an...@an...>
Date: Sun May 5 01:17:30 2013 +0200
[BUILDROOT] Add Joe's Own Editor program
Signed-off-by: Janos Angeli <an...@an...>
-----------------------------------------------------------------------
Summary of changes:
.../buildroot/2012.02/206-joe-add_package.patch | 1249 ++++++++++++++++++++
patches/buildroot/2012.02/cleanup_buildroot.sh | 1 +
2 files changed, 1250 insertions(+), 0 deletions(-)
create mode 100644 patches/buildroot/2012.02/206-joe-add_package.patch
diff --git a/patches/buildroot/2012.02/206-joe-add_package.patch b/patches/buildroot/2012.02/206-joe-add_package.patch
new file mode 100644
index 0000000..6ee2b10
--- /dev/null
+++ b/patches/buildroot/2012.02/206-joe-add_package.patch
@@ -0,0 +1,1249 @@
+Joe: Add Joe's Own Editor program.
+
+Signed-off-by: Janos Angeli <an...@an...>
+---
+
+Index: buildroot/package/Config.in
+===================================================================
+--- buildroot.orig/package/Config.in
++++ buildroot/package/Config.in
+@@ -627,6 +627,7 @@
+
+ menu "Text editors and viewers"
+ source "package/ed/Config.in"
++source "package/joe/Config.in"
+ if BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
+ source "package/less/Config.in"
+ endif
+Index: buildroot/package/joe/Config.in
+===================================================================
+--- /dev/null
++++ buildroot/package/joe/Config.in
+@@ -0,0 +1,6 @@
++config BR2_PACKAGE_JOE
++ bool "joe"
++ help
++ Joe's Own Editor.
++
++ http://joe-editor.sourceforge.net
+Index: buildroot/package/joe/joe.mk
+===================================================================
+--- /dev/null
++++ buildroot/package/joe/joe.mk
+@@ -0,0 +1,21 @@
++#############################################################
++#
++# Joe
++#
++#############################################################
++JOE_VERSION = 3.7
++JOE_SOURCE = joe-$(JOE_VERSION).tar.gz
++JOE_SITE = http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/joe-editor
++JOE_INSTALL_STAGING = NO
++JOE_INSTALL_TARGET = YES
++JOE_DEPENDENCIES = ncurses
++
++JOE_CONF_OPT += --program-transform-name=''
++
++define JOE_INSTALL_ETC
++ cp -rf package/joe/joerc $(TARGET_DIR)/etc/joe/.
++endef
++
++JOE_POST_INSTALL_TARGET_HOOKS += JOE_INSTALL_ETC
++
++$(eval $(call AUTOTARGETS))
+Index: buildroot/package/joe/joe-3.7-disable-j0-j1-y0-y1-math-functions.patch
+===================================================================
+--- /dev/null
++++ buildroot/package/joe/joe-3.7-disable-j0-j1-y0-y1-math-functions.patch
+@@ -0,0 +1,32 @@
++--- joe-3.7.orig/umath.c
+++++ joe-3.7/umath.c
++@@ -396,10 +396,10 @@ double m_ceil(double n) { return ceil(n)
++ double m_fabs(double n) { return fabs(n); }
++ double m_erf(double n) { return erf(n); }
++ double m_erfc(double n) { return erfc(n); }
++-double m_j0(double n) { return j0(n); }
++-double m_j1(double n) { return j1(n); }
++-double m_y0(double n) { return y0(n); }
++-double m_y1(double n) { return y1(n); }
+++//double m_j0(double n) { return j0(n); }
+++//double m_j1(double n) { return j1(n); }
+++//double m_y0(double n) { return y0(n); }
+++//double m_y1(double n) { return y1(n); }
++
++ double calc(BW *bw, unsigned char *s)
++ {
++@@ -434,10 +434,10 @@ double calc(BW *bw, unsigned char *s)
++ v = get(USTR "abs"); v->func = m_fabs;
++ v = get(USTR "erf"); v->func = m_erf;
++ v = get(USTR "erfc"); v->func = m_erfc;
++- v = get(USTR "j0"); v->func = m_j0;
++- v = get(USTR "j1"); v->func = m_j1;
++- v = get(USTR "y0"); v->func = m_y0;
++- v = get(USTR "y1"); v->func = m_y1;
+++// v = get(USTR "j0"); v->func = m_j0;
+++// v = get(USTR "j1"); v->func = m_j1;
+++// v = get(USTR "y0"); v->func = m_y0;
+++// v = get(USTR "y1"); v->func = m_y1;
++ }
++
++ v = get(USTR "top");
+Index: buildroot/package/joe/joerc
+===================================================================
+--- /dev/null
++++ buildroot/package/joe/joerc
+@@ -0,0 +1,1153 @@
++ Initialization file for JOE
++ Standard Joe
++
++ JOE looks for this file in:
++ 1 - $HOME/.joerc
++ 2 - /etc/joe/joerc
++
++ This file can include other files by placing the following include command
++ in the first column:
++
++ :include filename
++
++ FIRST SECTION: Default global options (these options can also be specified
++ on the command line. Also the NOXON, LINES, COLUMNS, DOPADDING and BAUD
++ options can be specified in environment variables):
++
++ Override colors of lexical classes specified in syntax files:
++ Put each color override you want in the first column.
++
++ Valid colors:
++ bold inverse blink dim underline
++ white cyan magenta blue yellow green red black
++ bg_white bg_cyan bg_magenta bg_blue bg_yellow bg_green bg_red bg_black
++
++ Other colors are available: see syntax/c.jsf for documentation.
++
++ Override all instances of class Idle:
++ =Idle red
++
++ Override Idle only for c syntax file:
++ =c.Idle red
++
++ The following list is from c.jsf. Look at other syntax files for more classes.
++
++ =Idle
++ =Bad bold red
++ =Preproc blue
++ =Define bold blue
++ =IncLocal cyan
++ =IncSystem bold cyan
++ =Constant cyan
++ =Escape bold cyan
++ =Type bold
++ =Keyword bold
++ =CppKeyword bold
++ =Brace magenta
++ =Control
++
++ Put each option you want set in the first column:
++
++ -option Sets the option
++ --option Clears the option
++
++ -help_is_utf8 Set if help text is in UTF-8 format. Leave clear if it's a raw 8-bit format.
++
++ -mid Cursor is recentered when scrolling is necessary
++
++ -marking Text between ^KB and cursor is highlighted (use with -lightoff)
++
++ -asis Characters 128 - 255 shown as-is
++
++ -force Force final newline when files are saved
++
++ -nolocks If you don't want file locks to be used
++
++ -nomodcheck Disable periodic checking of disk file newer than buffer
++ (this checking happens on save even with this option).
++
++ -nocurdir Do not prompt with current directory
++
++-nobackups If you don't want backup files to be created
++
++ -break_hardlinks
++ Delete file before writing, to break hard links
++ (but don't break symbolic links).
++
++ -break_links
++ Delete file before writing, to break hard links
++ and symbolic links.
++
++
++ -lightoff Turn off highlighting after block copy or move
++
++ -exask ^KX always confirms file name
++
++ -beep Beep on errors and when cursor goes past extremes
++
++ -nosta Disable top-most status line
++
++ -keepup %k and %c status line escape sequences updated frequently
++
++ -pg nnn No. lines to keep for PgUp/PgDn
++
++ -undo_keep nnn Number of undo records to keep. 0 for infinite.
++
++ -csmode ^KF after a pervious search does a ^L instead
++
++ -backpath path
++ Directory to store backup files (one space between
++ 'backpath' and the 'path', no trailing spaces or comments
++ after the path).
++
++ -floatmouse Clicking past end of line moves the cursor past the end
++
++ -rtbutton Use the right mouse button for action, instead of the left
++
++ -nonotice Disable copyright notice
++
++ -noxon Attempt to turn off ^S/^Q processing
++
++ -orphan Put extra files given on command line in orphaned buffers
++ instead of in windows
++
++ -dopadding Output pad characters (for when there is no tty handshaking)
++
++ -lines nnn Set no. screen lines
++
++ -baud nnn Set baud rate for terminal optimizations
++
++ -columns nnn Set no. screen columns
++
++ -help Start with help on
++
++ -skiptop nnn Don't use top nnn lines of the screen
++
++-notite Don't send terminal initialization and termination strings:
++ prevents restoration of screen on exit.
++
++ -usetabs Use tabs to help optimize screen update.
++
++-assume_color Assume terminal has ANSI color support even if termcap/terminfo entry
++ says that it doesn't. This only applies if the terminal otherwise
++ looks like an ANSI terminal (support bold and capability starts with
++ ESC [).
++
++-assume_256color
++ Assume terminal has xterm 256 color support (ESC [ 38 ; 5 ; NNN m and
++ ESC [ 48 ; 5 ; NNN m).
++
++-guess_non_utf8 Allow guess of non-UTF-8 file encoding in a UTF-8 locale.
++
++ -guess_utf8 Allow guess of UTF-8 file encoding in non-UTF-8 locale.
++
++-guess_crlf Automatically detect MS-DOS files and set -crlf appropriately
++
++-guess_indent Guess indent character (tab or space).
++
++-menu_above Position menu/list above prompt when enabled. Otherwise position
++ below prompt.
++
++-transpose Transpose rows with columns in all menus.
++
++ -menu_explorer Stay in menu system when a directory is selected (otherwise
++ directory is added to path and menu is closed).
++
++ -menu_jump Jump into file selection menu when tab is hit (otherwise, menu
++ comes up, but cursor stays in file name prompt).
++
++ -icase Search is case insensitive by default.
++
++ -wrap Search wraps
++
++ -autoswap Swap markb with markk when necessary
++
++-joe_state Use ~/.joe_state file
++
++-mouse Enable xterm mouse support. When enabled, left-click will
++ position the cursor and left-click-drag will select blocks
++ For normal xterm cut and paste, hold the shift key down.
++
++ -joexterm If you are using XTerm version 212 or higher, and if it was
++ configured with --enable-paste64, set this flag: it allows
++ mouse cut & paste to work properly (text selected with the
++ mouse can be pasted into other application, and middle
++ button clicks paste into JOE).
++
++ -square Rectangular block mode
++
++ -text_color color
++ Set color for text.
++ -status_color color
++ Set color for status bar.
++ -help_color color
++ Set color for help.
++ -menu_color color
++ Set color for menus.
++ -prompt_color color
++ Set color for prompts.
++ -msg_color color
++ Set color for messages.
++
++ For example: -text_color bg_blue+white
++ Sets the background color to blue and foreground color to white.
++
++-restore Restore previous cursor position when files are opened
++
++-search_prompting
++ Search prompts with previous search request.
++
++ Status line definition strings. -lmsg defines the left-justified string and
++ -rmsg defines the right-justified string. The first character of -rmsg is
++ the background fill character. The following escape sequences can be used
++ in these strings:
++
++ %t 12 hour time
++ %u 24 hour time
++ %T O for overtype mode, I for insert mode
++ %W W if wordwrap is enabled
++ %I A if autoindent is enabled
++ %X Rectangle mode indicator
++ %n File name
++ %m '(Modified)' if file has been changed
++ %* '*' if file has been changed
++ %R Read-only indicator
++ %r Row (line) number
++ %c Column number
++ %o Byte offset into file
++ %O Byte offset into file in hex
++ %a Ascii value of character under cursor
++ %A Ascii value of character under cursor in hex
++ %p Percent of file cursor is at
++ %l No. lines in file
++ %k Entered prefix keys
++ %S '*SHELL*' if there is a shell running in window
++ %M Macro recording message
++ %y Syntax
++ %x Context (first non-indented line going backwards)
++ %dd day
++ %dm month
++ %dY year
++ %Ename% value of environment variable
++ %Tname% value of option (ON or OFF for boolean options)
++
++ These formatting escape sequences may also be given:
++
++ \i Inverse
++ \u Underline
++ \b Bold
++ \d Dim
++ \f Blink
++
++-lmsg \i%k%T%W%I%X %n %m%y%R %M %x
++-rmsg %S Row %r Col %c %t Ctrl-K H for help
++
++ SECOND SECTION: File name dependant local option settings:
++
++ Each line with '*' in the first column indicates the modes which should be
++ set for files whose name matches the regular expression. If more than one
++ regular expression matches the file name, then the last matching one is
++ chosen.
++
++ A file contents regular expression may also be specified on a separate line
++ with '+regex'. If this regular expresssion is given, then both the file name
++ regex and the file contents regex must match for the options to apply.
++
++ Here are the modes which can be set:
++
++ -cpara >#!;*/%
++ Characters which can indent paragraphs.
++
++ -encoding name
++ Set file coding (for example: utf-8, iso-8859-15)
++
++ -syntax name
++ Specify syntax (syntax file called
++ 'name.jsf' will be loaded)
++
++ -hex Hex editor mode
++
++ -highlight Enable highlighting
++
++ -smarthome Home key first moves cursor to beginning of line,
++ then if hit again, to first non-blank character.
++
++ -indentfirst Smart home goes to first non-blank character first,
++ instead of going the beginning of line first.
++
++ -smartbacks Backspace key deletes 'istep' number of
++ 'indentc's if cursor is at first non-space
++ character.
++
++ -tab nnn Tab width
++
++ -indentc nnn Indentation character (32 for space, 9 for tab)
++
++ -istep nnn Number of indentation columns
++
++ -spaces TAB inserts spaces instead of tabs.
++
++ -purify Fix indentation if necessary for rindent, lindent and backs
++ (for example if indentation uses a mix of tabs and spaces,
++ and indentc is space, indentation will be converted to all
++ spaces).
++
++ -crlf File uses CR-LF at ends of lines
++
++ -wordwrap Wordwrap
++
++ -nobackup If you don't want backup file to be created
++
++ -autoindent Auto indent
++
++ -overwrite Overtype mode
++
++ -picture Picture mode (right arrow can go past end of lines)
++
++ -lmargin nnn Left margin
++
++ -rmargin nnn Right margin
++
++ -flowed Put one space after intermediate paragraph lines
++ for support of flowed text.
++
++
++ -french One space after '.', '?' and '!' for wordwrap
++ and paragraph reformat instead of two. Joe
++ does not change the spacing you give, but
++ sometimes it must put spacing in itself. This
++ selects how much is inserted.
++
++ -linums Enable line numbers on each line
++
++ -rdonly File is read-only
++
++ -keymap name
++ Keymap to use if not 'main'
++
++ -lmsg Status line definition strings-
++ -rmsg see previous section for more info.
++
++ -mfirst macro
++ Macro to execute on first modification
++ -mnew macro
++ Macro to execute when new files are loaded
++ -mold macro
++ Macro to execute when existing files are loaded
++ -msnew macro
++ Macro to execute when new files are saved
++ -msold macro
++ Macro to execute when existing files are saved
++
++ Macros for the above options are in the same format as in the key
++ binding section below- but without the key name strings.
++
++ These define the language syntax for ^G (goto matching delimiter):
++
++ -single_quoted Text between ' ' should be ignored (this is
++ not good for regular text since ' is
++ normally used alone as an apostrophe)
++
++ -no_double_quoted Text between " " should not be ignored (useful
++ for TeX).
++
++ -c_comment Text between /* */ should be ignored
++
++ -cpp_comment Text after // should be ignored
++
++ -pound_comment Text after # should be ignored
++
++ -vhdl_comment Text after -- should be ignored
++
++ -semi_comment Text after ; should be ignored
++
++ -text_delimiters begin=end:if=elif=else=endif
++
++ Define word delimiters
++
++ Default local options
++-highlight
++-istep 2
++
++ Perforce macro: use this macro (put in first column) to have joe "p4 edit"
++ a file you're about to change.
++
++ -mfirst if,"rdonly && joe(sys,\"p4 edit \",name,rtn)",then,mode,"o",msg,"executed \"p4 edit ",name,"\"",rtn,endif
++
++ -mfirst if,"rdonly && joe(sys,\"p4 edit \",name,rtn)",then,reload,msg,"executed \"p4 edit ",name,"\"",rtn,endif
++
++ File type table is now in a separate file. You can copy this file to ~/.joe and customize it.
++
++:include ftyperc
++
++ SECOND and 1/2 SECTION: Option menu layout
++
++ :defmenu name Defines a menu.
++
++ macro string comment
++ A menu entry. Macro is any JOE macro- see "Macros:"
++ below. String is the label to be used for the macro
++ in the menu. It is in the same format as the -lmsg
++ and -rmsg options above.
++
++ Two whitespace characters in a row begins a comment.
++ Use '% ' for a leading space in the string.
++
++:defmenu root
++mode,"overwrite",rtn T Overtype %Zoverwrite%
++mode,"hex",rtn % % Hex edit mode
++mode,"autoindent",rtn I Autoindent %Zautoindent%
++mode,"wordwrap",rtn W Word wrap %Zwordwrap%
++mode,"tab",rtn D Tab width %Ztab%
++mode,"lmargin",rtn L Left margin %Zlmargin%
++mode,"rmargin",rtn R Right margin %Zrmargin%
++mode,"square",rtn X Rectangle mode %Zsquare%
++mode,"indentc",rtn % % Indent char %Zindentc%
++mode,"istep",rtn % % Indent step %Zistep%
++mode,"highlight",rtn H Highlighting %Zhighlight%
++mode,"crlf",rtn Z CR-LF (MS-DOS) %Zcrlf%
++mode,"linums",rtn N Line numbers %Zlinums%
++mode,"beep",rtn B Beep %Zbeep%
++mode,"rdonly",rtn O Read only %Zrdonly%
++mode,"syntax",rtn Y Syntax
++mode,"encoding",rtn E Encoding
++mode,"asis",rtn % % Meta chars as-is
++mode,"language",rtn V Language
++mode,"picture",rtn P picture %Zpicture%
++menu,"more-options",rtn % % More options...
++
++:defmenu more-options
++menu,"^G",rtn % % ^G options
++menu,"search",rtn % % search options
++menu,"paragraph",rtn % % paragraph options
++menu,"file",rtn % % file options
++menu,"menu",rtn % % menu options
++menu,"global",rtn % % global options
++menu,"cursor",rtn % % cursor options
++menu,"marking",rtn % % marking options
++menu,"tab",rtn % % tab/indent options
++
++:defmenu menu
++mode,"menu_explorer",rtn % % Menu explorer %Zmenu_explorer%
++mode,"menu_above",rtn % % Menu position %Zmenu_above%
++mode,"menu_jump",rtn % % Jump into menu %Zmenu_jump%
++mode,"transpose",rtn % % Transpose menus %Ztranspose%
++
++:defmenu ^G
++mode,"single_quoted",rtn % % ^G ignores '...' %Zsingle_quoted%
++mode,"no_double_quoted",rtn % % ^G no ignore "..." %Zno_double_quoted%
++mode,"c_comment",rtn % % ^G ignores /*...*/ %Zc_comment%
++mode,"cpp_comment",rtn % % ^G ignores //... %Zcpp_comment%
++mode,"pound_comment",rtn % % ^G ignores #... %Zpound_comment%
++mode,"vhdl_comment",rtn % % ^G ignores --... %Zvhdl_comment%
++mode,"semi_comment",rtn % % ^G ignores ;... %Zsemi_comment%
++mode,"tex_comment",rtn % % ^G ignores %... %Ztex_comment%
++mode,"text_delimiters",rtn % % Text delimiters %Ztext_delimiters%
++
++:defmenu search
++mode,"icase",rtn % % Case insensitivity %Zicase%
++mode,"wrap",rtn % % Search wraps %Zwrap%
++mode,"search_prompting",rtn % % Search prompting %Zsearch_prompting%
++mode,"csmode",rtn % % Continued search %Zcsmode%
++
++:defmenu paragraph
++mode,"french",rtn % % French spacing %Zfrench%
++mode,"flowed",rtn % % Flowed text %Zflowed%
++mode,"cpara",rtn % % Paragraph indent chars %Zcpara%
++
++:defmenu file
++mode,"restore",rtn % % Restore cursor %Zrestore%
++mode,"guess_crlf",rtn % % Auto detect CR-LF %Zguess_crlf%
++mode,"guess_indent",rtn % % Guess indent %Zguess_indent%
++mode,"guess_non_utf8",rtn % % Guess non-UTF-8 %Zguess_non_utf8%
++mode,"guess_utf8",rtn % % Guess UTF-8 %Zguess_utf8%
++mode,"force",rtn % % Force last NL %Zforce%
++mode,"nobackup",rtn % % No backup %Znobackup%
++
++:defmenu global
++mode,"nolocks",rtn % % Disable locks %Znolocks%
++mode,"nobackups",rtn % % Disable backups %Znobackups%
++mode,"nomodcheck",rtn % % Disable mtime check %Znomodcheck%
++mode,"nocurdir",rtn % % Disable current dir %Znocurdir%
++mode,"exask",rtn % % Exit ask %Zexask%
++mode,"nosta",rtn % % Disable status line %Znosta%
++mode,"keepup",rtn % % Fast status line %Zkeepup%
++mode,"break_hardlinks",rtn % % Break hard links %Zbreak_hardlinks%
++mode,"break_links",rtn % % Break links %Zbreak_links%
++mode,"joe_state",rtn % % Joe_state file %Zjoe_state%
++mode,"undo_keep",rtn % % No. undo records %Zundo_keep%
++mode,"backpath",rtn % % Path to backup files %Zbackpath%
++
++:defmenu cursor
++mode,"pg",rtn % % No. PgUp/PgDn lines %Zpg%
++mode,"mid",rtn C Center on scroll %Zmid%
++mode,"floatmouse",rtn % % Click past end %Zfloatmouse%
++mode,"rtbutton",rtn % % Right button %Zrtbutton%
++
++:defmenu marking
++mode,"autoswap",rtn % % Autoswap mode %Zautoswap%
++mode,"marking",rtn % % Marking %Zmarking%
++mode,"lightoff",rtn % % Auto unmask %Zlightoff%
++
++:defmenu tab
++mode,"smarthome",rtn % % Smart home key %Zsmarthome%
++mode,"smartbacks",rtn % % Smart backspace %Zsmartbacks%
++mode,"indentfirst",rtn % % To indent first %Zindentfirst%
++mode,"purify",rtn % % Clean up indents %Zpurify%
++mode,"spaces",rtn % % No tabs %Zspaces%
++
++ THIRD SECTION: Named help screens:
++
++ Use \i to turn on/off inverse video
++ Use \u to turn on/off underline
++ Use \b to turn on/off bold
++ Use \d to turn on/off dim
++ Use \f to turn on/off flash
++
++ Use \| to insert a spring: all springs in a given line are set to the same
++ width such that the entire line exactly fits in the width of the screen (if
++ it's not an exact multiple so that there are N spaces remaining, the
++ rightmost N springs each get one extra space). Hint: if you want vertical
++ alignment, each line should have the same number of springs.
++
++ Use the '-help_is_utf8' global option to allow UTF-8 sequences in the help
++ text. Otherwise, the locale 8-bit character set is assumed.
++
++{Basic
++\i Help Screen \|turn off with ^KH more help with ESC . (^[.) \i
++\i \i\|\uCURSOR\u \|\uGO TO\u \|\uBLOCK\u \|\uDELETE\u \|\uMISC\u \|\uEXIT\u \|\i \i
++\i \i\|^B left ^F right \|^U prev. screen \|^KB begin \|^D char. \|^KJ reformat \|^KX save \|\i \i
++\i \i\|^P up ^N down \|^V next screen \|^KK end \|^Y line \|^KA center \|^C abort \|\i \i
++\i \i\|^Z previous word \|^A beg. of line \|^KM move \|^W >word \|^T options \|^KZ shell \|\i \i
++\i \i\|^X next word \|^E end of line \|^KC copy \|^O word< \|^R refresh \|\uFILE\u \|\i \i
++\i \i\|\uSEARCH\u \|^KU top of file \|^KW file \|^J >line \|\uSPELL\u \|^KE edit \|\i \i
++\i \i\|^KF find text \|^KV end of file \|^KY delete \|^_ undo \|^[N word \|^KR insert\|\i \i
++\i \i\|^L find next \|^KL to line No. \|^K/ filter \|^^ redo \|^[L file \|^KD save \|\i \i
++}
++
++{Windows
++\i Help Screen \|turn off with ^KH prev. screen ^[, next screen ^[. \i
++\i \i\|^KO Split the window in half \|^KE Load file into window \|\i \i
++\i \i\|^KG Make current window bigger \|^KT Make current window smaller \|\i \i
++\i \i\|^KN Go to the window below \|^KP Go to the window above \|\i \i
++\i \i\|^[V Switch to next buffer \|^[U Switch to previous buffer \|\i \i
++\i \i\|^C Eliminate the current window \|^KI Show all windows / Show one window\|\i \i
++}
++
++{Advanced
++\i Help Screen \|turn off with ^KH prev. screen ^[, next screen ^[. \i
++\i \i\|\uMACROS\u \|\uMISC\u \|\uSCROLL\u \|\uSHELL\u \|\uGOTO\u \|\uI-SEARCH\u \|\i \i
++\i \i\|^K[ 0-9 Record \|^K SPACE status \|^[W Up \|^K' Window \|^[B To ^KB \|^[R Backwards\|\i \i
++\i \i\|^K] Stop \|^K\\ Repeat \|^[Z Down \|^[! Command \|^[K To ^KK \|^[S Forwards \|\i \i
++\i \i\|^K 0-9 Play \|\uINSERT\u \|^K< Left \|\uQUOTE\u \|\uDELETE\u \|\uBOOKMARKS\u \|\i \i
++\i \i\|^K? Query \|^] split line \|^K> Right \|^[' Ctrl- \|^[Y yank \|^[ 0-9 Goto \|\i \i
++\i \i\|^[D Dump \|^SPACE ins space\| \|^\\ Meta- \|^[O line< \|^[^[ Set \|\i \i
++}
++
++{Programs
++\i Help Screen \|turn off with ^KH prev. screen ^[, next screen ^[. \i
++\i \i\|\uGOTO\u \|\uINDENT\u \|\uCOMPILING\u \uQUICK\u \|\i \i
++\i \i\|^G Matching ( [ { \|^K, less \|^[C Compile & parse ^G find word under cursor \|\i \i
++\i \i\|^K- Previous place \|^K. more \|^[G Grep & parse ^[ENTER complete word \|\i \i
++\i \i\|^K= Next place \|\uFILE\u \|^[= To next error ^[Y paste deleted text \|\i \i
++\i \i\|^K; Tags file search \|^K ` \|^[- To prev. error ^[^Y cycle through deleted \|\i \i
++\i \i\| \| revert \|^[ SP Jump to error \|\i \i
++}
++
++{Search
++\i Help Screen \|turn off with ^KH prev. screen ^[, next screen ^[. \i
++\i \iSpecial search sequences: \|\i \i
++\i \i \\^ \\$ matches beg./end of line \\? match any single char \|\i \i
++\i \i \\< \\> matches beg./end of word \\* match 0 or more chars \|\i \i
++\i \i \\c matches balanced C expression \\\\ matches a \\ \|\i \i
++\i \i \\[..] matches one of a set \\n matches a newline \|\i \i
++\i \i \\+ matches 0 or more of the character which follows the \\+ \|\i \i
++\i \iSpecial replace sequences: \|\i \i
++\i \i \\& replaced with text which matched search string \|\i \i
++\i \i \\0 - 9 replaced with text which matched Nth \\*, \\?, \\c, \\+, or \\[..] \|\i \i
++\i \i \\\\ replaced with \\ \\n replaced with newline \|\i \i
++}
++
++{SearchOptions
++\i Help Screen \|turn off with ^KH prev. screen ^[, next screen ^[. \i
++\i \iSearch options: \|\i \i
++\i \i r Replace \|\i \i
++\i \i k Restrict search to highlighted block, which can be rectangular \|\i \i
++\i \i b Search backward instead of forward \|\i \i
++\i \i i Ignore case \|\i \i
++\i \i a Search across all loaded files \|\i \i
++\i \i e Search across all files in Grep or Compile error list \|\i \i
++\i \i w Wrap to beginning of file for this search \|\i \i
++\i \i n Do not wrap to beginning of file for this search \|\i \i
++\i \i nnn Perform exaclty nnn replacements \|\i \i
++}
++
++{Math
++\i Help Screen \|turn off with ^KH prev. screen ^[, next screen ^[. \i
++\i \i \uCOMMANDS\u (hit ESC m for math) \uFUNCTIONS\u \|\i \i
++\i \i hex hex display mode sin cos tab asin acos atan \|\i \i
++\i \i dec decimal mode sinh cosh tanh asinh acosh atanh \|\i \i
++\i \i ins type result into file sqrt cbrt exp ln log \|\i \i
++\i \i eval evaluate block int floor ceil abs erg ergc \|\i \i
++\i \i 0xff enter number in hex joe(..macro..) - runs an editor macro \|\i \i
++\i \i 3e-4 floating point decimal \uBLOCK\u \|\i \i
++\i \i a=10 assign a variable sum cnt Sum, count \|\i \i
++\i \i 2+3:ins multiple commands avg dev Average, std. deviation \|\i \i
++\i \i e pi constants \uOPERATORS\u \|\i \i
++\i \i ans previous result ! ^ * / % + - < <= > >= == != && || ? :\|\i \i
++}
++
++{Names
++\i Help Screen \|turn off with ^KH prev. screen ^[, next screen ^[. \i
++\i \i Hit TAB at file name prompts to generate menu of file names \|\i \i
++\i \i Or use up/down keys to access history of previously entered names \|\i \i
++\i \i Special file names: \|\i \i
++\i \i !command Pipe in/out of a shell command \|\i \i
++\i \i >>filename Append to a file \|\i \i
++\i \i - Read/Write to/from standard I/O \|\i \i
++\i \i filename,START,SIZE Read/Write a part of a file/device \|\i \i
++\i \i Give START/SIZE in decimal (255), octal (0377) or hex (0xFF) \|\i \i
++}
++
++{Joe
++\i Help Screen \|turn off with ^KH prev. screen ^[, next screen ^[. \i
++\i \i Send bug reports to: http://sourceforge.net/projects/joe-editor \|\i \i
++\i \i \|\i \i
++\i \i default joerc file is here /etc/joe/joerc \|\i \i
++\i \i default syntax and i18n files are here /usr/share/joe \|\i \i
++\i \i additional documentation can be found here /usr/share/doc/joe \|\i \i
++}
++
++{CharTable
++\i Help Screen \|turn off with ^KH prev. screen ^[, \i
++\i \i\| Dec \u 0123 4567 8901 2345 0123 4567 8901 2345 \u Dec \|\i \i
++\i \i\| | | \|\i \i
++\i \i\| 0 | \u@ABC\u \uDEFG\u \uHIJK\u \uLMNO\u \i\u@ABC\u\i \i\uDEFG\u\i \i\uHIJK\u\i \i\uLMNO\u\i | 128 \|\i \i
++\i \i\| 16 | \uPQRS\u \uTUVW\u \uXYZ[\u \u\\]^_\u \i\uPQRS\u\i \i\uTUVW\u\i \i\uXYZ[\u\i \i\u\\]^_\u\i | 144 \|\i \i
++\i \i\| 32 | !"# $%&' ()*+ ,-./ ¡¢£ ¤¥¦§ ¨©ª« ¬®¯ | 160 \|\i \i
++\i \i\| 48 | 0123 4567 89:; <=>? °±²³ ´µ¶· ¸¹º» ¼½¾¿ | 176 \|\i \i
++\i \i\| 64 | @ABC DEFG HIJK LMNO ÀÁÂÃ ÄÅÆÇ ÈÉÊË ÌÍÎÏ | 192 \|\i \i
++\i \i\| 80 | PQRS TUVW XYZ[ \\]^_ ÐÑÒÓ ÔÕÖ× ØÙÚÛ ÜÝÞß | 208 \|\i \i
++\i \i\| 96 | `abc defg hijk lmno àáâã äåæç èéêë ìíîï | 224 \|\i \i
++\i \i\| 112 | pqrs tuvw xyz{ |}~ ðñòó ôõö÷ øùúû üýþÿ | 240 \|\i \i
++}
++
++ FOURTH SECTION: Key bindings:
++
++ Section names you must provide:
++
++ :main For editing window
++ :prompt For prompt lines
++ :query For single-character query lines
++ :querya Singe-character query for quote
++ :querysr Search & Replace single-character query
++
++ Other sections may be given as well for organization purposes or for
++ use with the '-keymap' option.
++
++ Use:
++ :inherit name To copy the named section into the current one
++ :delete key To delete a key sequence from the current section
++
++ Keys:
++
++ Use ^@ through ^_ and ^? for Ctrl chars
++ Use SP for space
++ Use a TO b to generate a range of characters
++ Use MDOWN, MDRAG, MUP, M2DOWN, M2DRAG, M2UP, M3DOWN, M3DRAG, M3UP for mouse
++ Use MWDOWN, MWUP for wheel mouse motion
++ Use ^# for 0x9B (for Amiga). But warning: this breaks UTF-8 keyboards.
++
++ You can also use termcap string capability names. For example:
++
++ .ku Up
++ .kd Down
++ .kl Left
++ .kr Right
++ .kh Home
++ .kH End
++ .kI Insert
++ .kD Delete
++ .kP PgUp
++ .kN PgDn
++ .k1 - .k9 F1 - F9
++ .k0 F0 or F10
++ .k; F10
++
++ Macros:
++
++ Simple macros can be made by comma seperating 2 or more command names. For
++ example:
++
++ eof,bol ^T Z Goto beginning of last line
++
++ Also quoted matter is typed in literally:
++
++ bol,">",dnarw .k1 Quote news article line
++
++ Macros may cross lines if they end with ,
++
++ Commands or named macros may be created with :def. For example, you can
++ use:
++
++ :def foo eof,bol
++
++ To define a command foo which will goto the beginning of the last line.
++
++:windows Bindings common to all windows
++type ^@ TO ÿ Type a character
++abort ^C Abort window
++abort ^K Q
++abort ^K ^Q
++abort ^K q
++arg ^K \ Repeat next command
++explode ^K I Show all windows or show only one window
++explode ^K ^I
++explode ^K i
++help ^K H Help menu
++help ^K ^H
++help ^K h
++hnext ^[ . Next help window
++hprev ^[ , Previous help window
++math ^[ m Calculator
++math ^[ M Calculator
++ math ^[ ^M Calculator
++msg ^[ h Display a message
++msg ^[ H Display a message
++msg ^[ ^H Display a message
++nextw ^K N Goto next window
++nextw ^K ^N
++nextw ^K n
++nextw ^[ [ 1 ; 3 C alt right in (newer) xterm
++nextw ^[ [ 3 C alt right in gnome-terminal
++pgdn .kN Screen down
++pgdn ^V
++pgdn ^[ [ 6 ~
++ pgdn ^# S
++pgup .kP Screen up
++pgup ^U
++pgup ^[ [ 5 ~
++ pgup ^# T
++play ^K 0 TO 9 Execute macro
++prevw ^K P Goto previous window
++prevw ^K ^P
++prevw ^K p
++prevw ^[ [ 1 ; 3 D alt left in (newer) xterm
++prevw ^[ [ 3 D alt left in gnome-terminal
++query ^K ? Macro query insert
++record ^K [ Record a macro
++retype ^R Refresh screen
++rtn ^M Return
++shell ^K Z Shell escape
++shell ^K ^Z
++shell ^K z
++stop ^K ] Stop recording
++ Mouse handling
++defmdown MDOWN Move the cursor to the mouse location
++defmup MUP
++defmdrag MDRAG Select a region of characters
++defm2down M2DOWN Select the word at the mouse location
++defm2up M2UP
++defm2drag M2DRAG Select a region of words
++defm3down M3DOWN Select the line at the mouse location
++defm3up M3UP
++defm3drag M3DRAG Select a region of lines
++
++xtmouse ^[ [ M Introduces an xterm mouse event
++
++if,"char==65",then,"it's an A",else,"it's not an a",endif ^[ q
++
++:main Text editing window
++:inherit windows
++
++ Spell-check macros
++
++ Ispell
++:def ispellfile filt,"cat >ispell.tmp;ispell ispell.tmp </dev/tty >/dev/tty;cat ispell.tmp;/bin/rm ispell.tmp",rtn,retype
++:def ispellword psh,nextword,markk,prevword,markb,filt,"cat >ispell.tmp;ispell ispell.tmp </dev/tty >/dev/tty;tr -d <ispell.tmp '\\012';/bin/rm ispell.tmp",rtn,retype,nextword
++
++ Aspell
++:def aspellfile filt,"SPLTMP=`mktemp -t joespell.XXXXXXXXXX`;cat >$SPLTMP;aspell --lang=",language,".",charset," -x -c $SPLTMP </dev/tty >/dev/tty;cat $SPLTMP;/bin/rm $SPLTMP",rtn,retype
++:def aspellword psh,nextword,markk,prevword,markb,filt,"SPLTMP=`mktemp -t joespell.XXXXXXXXXX`;cat >$SPLTMP;aspell --lang=",language,".",charset," -x -c $SPLTMP </dev/tty >/dev/tty;tr -d <$SPLTMP '\\012';/bin/rm $SPLTMP",rtn,retype,nextword
++
++
++aspellfile ^[ l
++aspellword ^[ n
++
++ Compile
++
++:def compile mwind!,mfit!,querysave,query,scratch,"* Build Log *",rtn,bof,markb,eof," ",markk,blkdel,build
++
++ Grep
++
++:def grep_find mwind!,mfit!,scratch,"* Grep Log *",rtn,bof,markb,eof," ",markk,blkdel,grep
++
++ Man page
++
++:def man scratch,"* Man Page *",rtn,bof,markb,eof," ",markk,blkdel," ",ltarw,run,"man -P cat -S 2:3 "
++
++ Here we guess some common key sequences which either do not have termcap
++ sequences or which are frequently wrong. Note that if the termcap entry is
++ correct, it will override these later on.
++
++paste ^[ ] 5 2 ; Bracketed paste
++
++insc ^[ [ 2 ~
++insc ^[ [ L SCO
++
++delch ^[ [ 3 ~
++
++pgup ^[ [ I SCO
++
++pgdn ^[ [ G SCO
++
++home ^[ [ 1 ~ Putty, Linux, Cygwin
++home ^[ [ H Xterm, Konsole, SCO
++home ^[ O H gnome-terminal
++home ^[ [ 7 ~ RxVT
++ home ^# SP A Amiga
++
++eol ^[ [ 4 ~ Putty, Linux, Cygwin, ssh
++eol ^[ [ F Xterm, Konsole, SCO
++eol ^[ O F gnome-terminal
++eol ^[ [ 8 ~ RxVT
++ eol ^# SP @ Amiga
++
++rtarw,ltarw,begin_marking,rtarw,toggle_marking ^[ [ 1 ; 5 C Mark right Xterm
++rtarw,ltarw,begin_marking,rtarw,toggle_marking ^[ [ 5 C Mark right Gnome-terminal
++ (Almost all termcap entries have ^[ O C as an arrow key).
++ rtarw,ltarw,begin_marking,rtarw,toggle_marking ^[ O C Mark right Putty Ctrl-rtarw
++rtarw,ltarw,begin_marking,rtarw,toggle_marking ^[ O c Mark right RxVT Ctrl-rtarw
++
++ltarw,rtarw,begin_marking,ltarw,toggle_marking ^[ [ 1 ; 5 D Mark left
++ltarw,rtarw,begin_marking,ltarw,toggle_marking ^[ [ 5 D Mark left
++ ltarw,rtarw,begin_marking,ltarw,toggle_marking ^[ O D Mark left Putty Ctrl-ltarw
++ltarw,rtarw,begin_marking,ltarw,toggle_marking ^[ O d Mark left RxVT Ctrl-ltarw
++
++uparw,dnarw,begin_marking,uparw,toggle_marking ^[ [ 1 ; 5 A Mark up
++uparw,dnarw,begin_marking,uparw,toggle_marking ^[ [ 5 A Mark up
++ uparw,dnarw,begin_marking,uparw,toggle_marking ^[ O A Mark up Putty Ctrl-uparw
++uparw,dnarw,begin_marking,uparw,toggle_marking ^[ O a Mark up RxVT Ctrl-uparw
++
++dnarw,uparw,begin_marking,dnarw,toggle_marking ^[ [ 1 ; 5 B Mark down
++dnarw,uparw,begin_marking,dnarw,toggle_marking ^[ [ 5 B Mark down
++ dnarw,uparw,begin_marking,dnarw,toggle_marking ^[ O B Mark down Putty Ctrl-dnarw
++dnarw,uparw,begin_marking,dnarw,toggle_marking ^[ O b Mark down RxVT Ctrl-dnarw
++
++blkdel,nmark ^[ [ 3 ; 5 - Gnome-terminal Ctrl-Del
++blkdel,nmark ^[ [ 3 ; 5 ~ Xterm Ctrl-Del
++
++yank ^[ [ 2 ; 5 - Gnome-terminal Ctrl-Ins
++yank ^[ [ 2 ; 5 ~ Xterm Ctrl-Ins
++
++ Extra functions not really part of JOE user interface:
++
++delbol ^[ o Delete to beginning of line
++delbol ^[ ^O Delete to beginning of line
++dnslide ^[ z Scroll down one line
++dnslide ^[ Z Scroll down one line
++dnslide ^[ ^Z Scroll down one line
++dnslide,dnslide,dnslide,dnslide MWDOWN
++compile ^[ c Compile
++compile ^[ C
++compile ^[ ^C Compile
++grep_find ^[ g Grep
++grep_find ^[ G Grep
++grep_find ^[ ^G Grep
++execmd ^[ x Prompt for command to execute
++execmd ^[ X Prompt for command to execute
++execmd ^[ ^X Prompt for command to execute
++finish ^[ ^I Complete word in document
++finish ^[ ^M Complete word: used to be math
++mwind,mfit,jump,bol ^[ SP
++isrch ^[ s Forward incremental search
++isrch ^[ S Forward incremental search
++isrch ^[ ^S Forward incremental search
++notmod ^[ ~ Not modified
++mwind,mfit,prevw,nxterr ^[ = To next error
++parserr ^[ e Parse errors in current buffer
++parserr ^[ E Parse errors in current buffer
++parserr ^[ ^E Parse errors in current buffer
++mwind,mfit,prevw,prverr ^[ - To previous error
++rsrch ^[ r Backward incremental search
++rsrch ^[ R Backward incremental search
++rsrch ^[ ^R Backward incremental search
++run ^[ ! Run a program in a window
++tomarkb ^[ b Go to beginning of marked block
++tomarkb ^[ ^B Go to beginning of marked block
++tomarkk ^[ k Go to end of marked block
++tomarkk ^[ ^K Go to end of marked block
++tomarkk ^[ K Go to end of marked block
++txt ^[ i Prompt for text and insert it
++txt ^[ I Prompt for text and insert it
++upslide ^[ w Scroll up one line
++upslide ^[ ^W Scroll up one line
++upslide ^[ W Scroll up one line
++upslide,upslide,upslide,upslide MWUP
++yank ^[ y Undelete text
++yankpop ^[ ^Y Undelete text
++yank ^[ Y Undelete text
++
++ toggle_marking ^@ Ctrl-space block selection method
++insc ^@ Ctrl-space used to insert a space
++
++ bufed ^[ d Menu of buffers
++nbuf ^[ v Next buffer
++nbuf ^[ V Next buffer
++nbuf ^[ ^V Next buffer
++pbuf ^[ u Prev buffer
++pbuf ^[ U Prev buffer
++pbuf ^[ ^U Prev buffer
++ query ^[ q Quoted insert
++ byte ^[ n Goto byte
++ col ^[ c Goto column
++ abortbuf ^[ k Kill current buffer- don't mess with windows
++ ask ^[ a Ask to save current buffer
++ bop ^[ p Backwards paragraph
++ bos ^[ x Bottom of screen
++ copy ^[ ^W Copy block into yank
++ dupw ^[ \ Split window
++ eop ^[ n Forwards paragraph
++ format ^[ j Format paragraph ignore block
++ markl ^[ l Mark line
++ nmark ^[ @ Turn off ^KB ^KK
++ pop ^[ > Pop ^KB ^KK
++ psh ^[ < Push ^KB ^KK
++ swap ^[ x Swap ^KB and cursor
++ tomarkbk ^[ g Switch between beginning and end of marked
++ tos ^[ e Top of screen
++ tw0 ^[ 0 Kill current window (orphans buffer)
++ tw1 ^[ 1 Kill all other windows (orphans buffers)
++ uarg ^[ u Universal argument
++ yank ^[ ^Y Undelete previous text
++ yapp ^[ w Append next delete to previous yank
++
++ Standard JOE user interface
++
++quote8 ^\ Enter Meta chars
++ quote ` Enter Ctrl chars
++quote ^[ ' Enter Ctrl chars
++quote ^Q
++
++backs ^? Backspace
++backs ^H
++backw ^O Backspace word
++bknd ^K ' Shell window
++blkcpy ^K C Copy marked block
++blkcpy ^K ^C
++blkcpy ^K c
++blkdel ^K Y Delete marked block
++blkdel ^K ^Y
++blkdel ^K y
++blkmove ^K M Move marked block
++blkmove ^K ^M
++blkmove ^K m
++blksave ^K W Save marked block
++blksave ^K ^W
++blksave ^K w
++bof ^K U Goto beginning of file
++bof ^K ^U
++bof ^K u
++ bol .kh Goto beginning of line
++ bol ^A
++ bol ^# SP A
++home .kh
++home ^A
++center ^K A Center line
++center ^K ^A
++center ^K a
++crawll ^K < Pan left
++crawlr ^K > Pan right
++delch .kD Delete character
++delch ^D
++deleol ^J Delete to end of line
++dellin ^Y Delete entire line
++delw ^W Delete word to right
++dnarw .kd Go down
++dnarw ^N
++dnarw ^[ O B
++dnarw ^[ [ B
++ dnarw ^# B
++edit ^K E Edit a file
++edit ^K ^E
++edit ^K e
++eof ^K V Go to end of file
++eof ^K ^V
++eof ^K v
++eol .kH Go to end of line
++eol .@7
++eol ^E
++exsave ^K X Save and exit
++exsave ^K ^X
++exsave ^K x
++ffirst ^K F Find first
++ffirst ^K ^F
++ffirst ^K f
++filt ^K / Filter block
++ finish ^K ^M Complete text under cursor
++fnext ^L Find next
++fmtblk ^K J Format paragraphs in block
++fmtblk ^K ^J
++fmtblk ^K j
++gomark ^[ 0 TO 9 Goto bookmark
++groww ^K G Grow window
++groww ^K ^G
++groww ^K g
++insc .kI Insert a space
++ insc ^@
++insf ^K R Insert a file
++insf ^K ^R
++insf ^K r
++lindent ^K , Indent to left
++line ^K L Goto line no.
++line ^K ^L
++line ^K l
++ltarw .kl Go left
++ltarw ^B
++ltarw ^[ O D
++ltarw ^[ [ D
++ ltarw ^# D
++macros ^[ d Dump keyboard macros
++macros ^[ ^D
++markb ^K B Set beginning of marked block
++markb ^K ^B
++markb ^K b
++markk ^K K Set end of marked block
++markk ^K ^K
++markk ^K k
++ mode ^T Options menu
++menu,"root",rtn ^T
++nextpos ^K = Goto next position in position history
++nextword ^X Goto next word
++nextword ^[ [ 1 ; 5 C ctrl right in (newer) xterm
++nextword ^[ [ 5 C ctrl right in gnome-terminal
++open ^] Split line
++prevpos ^K - Previous position in history
++prevword ^Z Previous word
++prevword ^[ [ 1 ; 5 D ctrl left in (newer) xterm
++prevword ^[ [ 5 D ctrl left in gnome-terminal
++reload ^K ` Revert file
++redo ^^ Redo changes
++rindent ^K . Indent to right
++rtarw .kr Go right
++rtarw ^F
++rtarw ^[ O C
++rtarw ^[ [ C
++ rtarw ^# C
++run ^K ! Run a shell command
++save ^K D Save file
++save ^K S
++save ^K ^D
++save ^K ^S
++save ^K d
++save ^K s
++setmark ^[ ^[ Set bookmark
++shrinkw ^K T Shrink window
++shrinkw ^K ^T
++shrinkw ^K t
++splitw ^K O Split window
++splitw ^K ^O
++splitw ^K o
++stat ^K SP Show status
++tag ^K ; Tags file search
++tomatch ^G Goto matching parenthasis
++undo ^_ Undo changes
++uparw .ku Go up
++ uparw ^# A
++uparw ^P
++uparw ^[ O A
++uparw ^[ [ A
++
++:prompt Prompt windows
++:inherit main
++if,"byte>size",then,complete,complete,else,delch,endif ^D
++complete ^I
++dnarw,eol .kd Go down
++dnarw,eol ^N
++dnarw,eol ^[ O B
++dnarw,eol ^[ [ B
++ dnarw,eol ^# B
++uparw,eol .ku Go up
++ uparw,eol ^# A
++uparw,eol ^P
++uparw,eol ^[ O A
++uparw,eol ^[ [ A
++
++:menu Selection menus
++:inherit windows
++
++pgupmenu ^[ [ I
++
++pgdnmenu ^[ [ G
++
++bolmenu ^[ [ 1 ~ Putty, Linux, Cygwin
++bolmenu ^[ [ H Xterm, Konsole
++bolmenu ^[ O H gnome-terminal
++bolmenu ^[ [ 7 ~ RxVT
++ bolmenu ^# SP A Amiga
++
++eolmenu ^[ [ 4 ~ Putty, Linux, Cygwin, ssh
++eolmenu ^[ [ F Xterm, Konsole
++eolmenu ^[ O F gnome-terminal
++eolmenu ^[ [ 8 ~ RxVT
++ eolmenu ^# SP @ Amiga
++
++abort ^[ ^[ Why?
++backsmenu ^?
++backsmenu ^H
++bofmenu ^K U
++bofmenu ^K ^U
++bofmenu ^K u
++bolmenu .kh
++bolmenu ^A
++dnarwmenu .kd
++dnarwmenu ^N
++dnarwmenu ^[ [ B
++dnarwmenu ^[ O B
++ dnarwmenu ^# B
++dnarwmenu MWDOWN
++eofmenu ^K V
++eofmenu ^K ^V
++eofmenu ^K v
++eolmenu .kH
++eolmenu ^E
++ltarwmenu .kl
++ltarwmenu ^B
++ltarwmenu ^[ [ D
++ltarwmenu ^[ O D
++ ltarwmenu ^# D
++pgdnmenu .kN Screen down
++pgdnmenu ^V
++pgdnmenu ^[ [ 6 ~
++ pgdnmenu ^# S
++pgupmenu .kP Screen up
++pgupmenu ^U
++pgupmenu ^[ [ 5 ~
++ pgupmenu ^# T
++rtarwmenu .kr
++rtarwmenu ^F
++rtarwmenu ^[ [ C
++ rtarwmenu ^# C
++rtarwmenu ^[ O C
++rtn SP
++rtn ^I
++rtn ^K H
++rtn ^K h
++rtn ^K ^H
++tabmenu ^I
++uparwmenu .ku
++uparwmenu ^P
++uparwmenu ^[ [ A
++uparwmenu ^[ O A
++ uparwmenu ^# A
++uparwmenu MWUP
++defm2down M2DOWN Hits return key
++
++:query Single-key query window
++:inherit windows
++
++:querya Single-key query window for quoting
++type ^@ TO ÿ
++
++:querysr Search & replace query window
++type ^@ TO ÿ
diff --git a/patches/buildroot/2012.02/cleanup_buildroot.sh b/patches/buildroot/2012.02/cleanup_buildroot.sh
index 4be8877..30a0af3 100755
--- a/patches/buildroot/2012.02/cleanup_buildroot.sh
+++ b/patches/buildroot/2012.02/cleanup_buildroot.sh
@@ -86,3 +86,4 @@ rm -f buildroot/linux/linux.mk
rm -rf buildroot/package/smstools3/
rm -rf buildroot/package/opkg/
rm -rf buildroot/package/minicom/
+rm -rf buildroot/package/joe/
hooks/post-receive
--
armadeus
|
|
From: jorasse <jo...@us...> - 2013-05-07 14:55:09
|
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, master has been updated
via 23b7a90ad37032fd86f4f8c12f0f1b828985c8a7 (commit)
from fe9619d763e116e8305f9e9a48fc70a909dbeea5 (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 23b7a90ad37032fd86f4f8c12f0f1b828985c8a7
Author: Janos Angeli <an...@an...>
Date: Sun May 5 01:10:01 2013 +0200
Add minicom terminal program
Signed-off-by: Janos Angeli <an...@an...>
-----------------------------------------------------------------------
Summary of changes:
.../2012.02/205-minicom-add_package.patch | 61 ++++++++++++++++++++
patches/buildroot/2012.02/cleanup_buildroot.sh | 1 +
2 files changed, 62 insertions(+), 0 deletions(-)
create mode 100644 patches/buildroot/2012.02/205-minicom-add_package.patch
diff --git a/patches/buildroot/2012.02/205-minicom-add_package.patch b/patches/buildroot/2012.02/205-minicom-add_package.patch
new file mode 100644
index 0000000..ff3301b
--- /dev/null
+++ b/patches/buildroot/2012.02/205-minicom-add_package.patch
@@ -0,0 +1,61 @@
+Minicom: Add Minicom terminal program
+
+Signed-off-by: Janos Angeli <an...@an...>
+---
+
+Index: buildroot/package/Config.in
+===================================================================
+--- buildroot.orig/package/Config.in
++++ buildroot/package/Config.in
+@@ -224,6 +224,7 @@
+ source "package/makedevs/Config.in"
+ source "package/mdadm/Config.in"
+ source "package/memtester/Config.in"
++source "package/minicom/Config.in"
+ source "package/mtd/Config.in"
+ source "package/nanocom/Config.in"
+ source "package/ntfs-3g/Config.in"
+Index: buildroot/package/minicom/Config.in
+===================================================================
+--- /dev/null
++++ buildroot/package/minicom/Config.in
+@@ -0,0 +1,14 @@
++config BR2_PACKAGE_MINICOM
++ bool "minicom"
++ depends on BR2_USE_WCHAR
++ select BR2_PACKAGE_LIBICONV if !BR2_ENABLE_LOCALE
++ select BR2_PACKAGE_NCURSES
++ help
++ Minicom is a menu driven communications program.
++ It emulates ANSI and VT102 terminals. It has a
++ dialing directory and auto zmodem download.
++
++ http://alioth.debian.org/projects/minicom
++
++comment "minicom requires a toolchain with WCHAR support"
++ depends on !BR2_USE_WCHAR
+Index: buildroot/package/minicom/minicom.mk
+===================================================================
+--- /dev/null
++++ buildroot/package/minicom/minicom.mk
+@@ -0,0 +1,20 @@
++#############################################################
++#
++# minicom
++#
++#############################################################
++MINICOM_VERSION = 2.6.1
++MINICOM_SOURCE = minicom-$(MINICOM_VERSION).tar.gz
++MINICOM_SITE = http://alioth.debian.org/frs/download.php/3700/
++MINICOM_LICENSE = GPLv2+
++MINICOM_LICENSE_FILES = COPYING
++
++# pkg-config is only used to check for liblockdev, which we don't have
++# in BR, so instead of adding host-pkg-config as a dependency, simply
++# make sure the host version isn't used so we don't end up with problems
++# if people have liblockdev1-dev installed
++MINICOM_CONF_ENV = PKG_CONFIG=/bin/false
++
++MINICOM_DEPENDENCIES = ncurses $(if $(BR2_ENABLE_LOCALE),,libiconv)
++
++$(eval $(call AUTOTARGETS))
diff --git a/patches/buildroot/2012.02/cleanup_buildroot.sh b/patches/buildroot/2012.02/cleanup_buildroot.sh
index 614ce35..4be8877 100755
--- a/patches/buildroot/2012.02/cleanup_buildroot.sh
+++ b/patches/buildroot/2012.02/cleanup_buildroot.sh
@@ -85,3 +85,4 @@ rm -rf buildroot/package/gnokii/
rm -f buildroot/linux/linux.mk
rm -rf buildroot/package/smstools3/
rm -rf buildroot/package/opkg/
+rm -rf buildroot/package/minicom/
hooks/post-receive
--
armadeus
|
|
From: jorasse <jo...@us...> - 2013-05-07 14:40: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, master has been updated
via fe9619d763e116e8305f9e9a48fc70a909dbeea5 (commit)
from c75be74c28ba3b36102e3f82ec6a40ec0d1a09b9 (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 fe9619d763e116e8305f9e9a48fc70a909dbeea5
Author: Janos Angeli <an...@an...>
Date: Sun May 5 01:10:00 2013 +0200
Fix nanocom download URL
Signed-off-by: Janos Angeli <an...@an...>
-----------------------------------------------------------------------
Summary of changes:
.../2012.02/164-nanocom-add_package.patch | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/patches/buildroot/2012.02/164-nanocom-add_package.patch b/patches/buildroot/2012.02/164-nanocom-add_package.patch
index 935ba05..e9ab3f4 100644
--- a/patches/buildroot/2012.02/164-nanocom-add_package.patch
+++ b/patches/buildroot/2012.02/164-nanocom-add_package.patch
@@ -14,7 +14,7 @@ Index: buildroot/package/nanocom/nanocom.mk
+#############################################################
+NANOCOM_VERSION = 1.0
+NANOCOM_SOURCE = nanocom.tar.gz
-+NANOCOM_SITE:=http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/nanocom/
++NANOCOM_SITE:=http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/project/nanocom/nanocom/v1.0
+
+define NANOCOM_BUILD_CMDS
+ $(MAKE) CC="$(TARGET_CC)" LD=$(TARGET_LD) -C $(@D) all
hooks/post-receive
--
armadeus
|
|
From: jorasse <jo...@us...> - 2013-05-07 14:21:58
|
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, master has been updated
via c75be74c28ba3b36102e3f82ec6a40ec0d1a09b9 (commit)
from 9b3c7050bc02dc6b1782e997d629ee81bd82ce64 (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 c75be74c28ba3b36102e3f82ec6a40ec0d1a09b9
Author: Victor Hiairrassary <vic...@gm...>
Date: Mon Apr 22 10:16:57 2013 +0200
xenomai: bump to version 2.6.2.1
Signed-off-by: Victor Hiairrassary <vic...@gm...>
-----------------------------------------------------------------------
Summary of changes:
.../203-xenomai-bump-to-version-2.6.2.1.patch | 201 ++++++++++++++++++++
1 files changed, 201 insertions(+), 0 deletions(-)
create mode 100644 patches/buildroot/2013.02/203-xenomai-bump-to-version-2.6.2.1.patch
diff --git a/patches/buildroot/2013.02/203-xenomai-bump-to-version-2.6.2.1.patch b/patches/buildroot/2013.02/203-xenomai-bump-to-version-2.6.2.1.patch
new file mode 100644
index 0000000..c89ce3c
--- /dev/null
+++ b/patches/buildroot/2013.02/203-xenomai-bump-to-version-2.6.2.1.patch
@@ -0,0 +1,201 @@
+diff -uN buildroot.orig/package/xenomai/Config.in buildroot/package/xenomai/Config.in
+--- buildroot.orig/package/xenomai/Config.in 2013-02-28 22:48:28.000000000 +0100
++++ buildroot/package/xenomai/Config.in 2013-04-21 11:21:42.332518329 +0200
+@@ -39,13 +39,6 @@
+ BR2_LINUX_KERNEL_EXT_XENOMAI_ADEOS_PATCH, in the Linux
+ Kernel -> Linux Kernel Extensions menu.
+
+-config BR2_PACKAGE_XENOMAI_SMP
+- bool "Enable SMP support"
+- depends on BR2_cortex_a9 || !BR2_arm # only A9 has SMP support
+- help
+- This option allows to enable or disable SMP support. It has
+- to match your kernel configuration.
+-
+ config BR2_PACKAGE_XENOMAI_TESTSUITE
+ bool "Install testsuite"
+ help
+diff -uN buildroot.orig/package/xenomai/xenomai-thumb-fix.patch buildroot/package/xenomai/xenomai-thumb-fix.patch
+--- buildroot.orig/package/xenomai/xenomai-thumb-fix.patch 2013-02-28 22:48:28.000000000 +0100
++++ buildroot/package/xenomai/xenomai-thumb-fix.patch 1970-01-01 01:00:00.000000000 +0100
+@@ -1,157 +0,0 @@
+-From ad3714e925f5c6b4ae0e0d31c4bab7f8c5e659db Mon Sep 17 00:00:00 2001
+-From: Gilles Chanteperdrix <gil...@xe...>
+-Date: Fri, 10 Aug 2012 21:55:41 +0200
+-Subject: [PATCH] hal/arm: fix compilation for thumb
+-
+----
+- include/asm-arm/atomic.h | 3 ++
+- ksrc/arch/arm/switch.S | 84 +++++++++++++++++++++++++++------------------
+- 2 files changed, 53 insertions(+), 34 deletions(-)
+-
+-diff --git a/include/asm-arm/atomic.h b/include/asm-arm/atomic.h
+-index 5d55ae8..ae96847 100644
+---- a/include/asm-arm/atomic.h
+-+++ b/include/asm-arm/atomic.h
+-@@ -183,6 +183,9 @@ xnarch_atomic_cmpxchg(xnarch_atomic_t *ptr,
+- "ldrex %1, [%3]\n"
+- "mov %0, #0\n"
+- "teq %1, %4\n"
+-+#ifdef __thumb__
+-+ "it eq\n"
+-+#endif
+- "strexeq %0, %5, [%3]\n"
+- : "=&r" (res), "=&r" (curval), "+Qo" (ptr->counter)
+- : "r" (&ptr->counter), "Ir" (oldval), "r" (newval)
+-diff --git a/ksrc/arch/arm/switch.S b/ksrc/arch/arm/switch.S
+-index 83f4746..95c355f 100644
+---- a/ksrc/arch/arm/switch.S
+-+++ b/ksrc/arch/arm/switch.S
+-@@ -37,6 +37,11 @@
+- .endm
+- #endif
+-
+-+#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 31)
+-+#define ARM(x...) x
+-+#define THUMB(x...)
+-+#endif
+-+
+- #if LINUX_VERSION_CODE <= KERNEL_VERSION(2, 6, 37)
+- #ifdef CONFIG_MMU
+- #define USE_DOMAINS
+-@@ -83,18 +88,19 @@
+- * r0 = pointer to union vfp_state, r1 = fpexc
+- */
+- ENTRY(rthal_vfp_save)
+-- VFPFSTMIA r0, r2 @ save the working registers
+-- VFPFMRX r2, FPSCR @ current status
+-- tst r1, #FPEXC_EX @ is there additional state to save?
+-- beq 1f
+-- VFPFMRX r3, FPINST @ FPINST (only if FPEXC.EX is set)
+-- tst r1, #FPEXC_FP2V @ is there an FPINST2 to read?
+-- beq 1f
+-- VFPFMRX r12, FPINST2 @ FPINST2 if needed (and present)
+-+ VFPFSTMIA r0, r2 @ save the working registers
+-+ VFPFMRX r2, FPSCR @ current status
+-+ tst r1, #FPEXC_EX @ is there additional state to save?
+-+ beq 1f
+-+ VFPFMRX r3, FPINST @ FPINST (only if FPEXC.EX is set)
+-+ tst r1, #FPEXC_FP2V @ is there an FPINST2 to read?
+-+ beq 1f
+-+ VFPFMRX r12, FPINST2 @ FPINST2 if needed (and present)
+- 1:
+-- stmia r0, {r1, r2, r3, r12} @ save FPEXC, FPSCR, FPINST, FPINST2
+-- mov pc, lr
+--
+-+ stmia r0, {r1, r2, r3, r12} @ save FPEXC, FPSCR, FPINST, FPINST2
+-+ mov pc, lr
+-+ENDPROC(rthal_vfp_save)
+-+
+- /* Copied from no_old_VFP_process in arch/arm/vfp/vfphw.S
+- * r0 = pointer to union vfp_state
+- * r1 = current cpu
+-@@ -102,20 +108,21 @@ ENTRY(rthal_vfp_save)
+- ENTRY(rthal_vfp_load)
+- #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 2, 0) \
+- || defined(CONFIG_VFP_3_2_BACKPORT)) && defined(CONFIG_SMP)
+-- str r1, [r0, #VFP_CPU]
+-+ str r1, [r0, #VFP_CPU]
+- #endif
+-- VFPFLDMIA r0, r2 @ reload the working registers while
+-+ VFPFLDMIA r0, r2 @ reload the working registers while
+- @ FPEXC is in a safe state
+-- ldmia r0, {r1, r2, r3, r12} @ load FPEXC, FPSCR, FPINST, FPINST2
+-- tst r1, #FPEXC_EX @ is there additional state to restore?
+-- beq 1f
+-- VFPFMXR FPINST, r3 @ restore FPINST (only if FPEXC.EX is set)
+-- tst r1, #FPEXC_FP2V @ is there an FPINST2 to write?
+-- beq 1f
+-- VFPFMXR FPINST2, r12 @ FPINST2 if needed (and present)
+-+ ldmia r0, {r1, r2, r3, r12} @ load FPEXC, FPSCR, FPINST, FPINST2
+-+ tst r1, #FPEXC_EX @ is there additional state to restore?
+-+ beq 1f
+-+ VFPFMXR FPINST, r3 @ restore FPINST (only if FPEXC.EX is set)
+-+ tst r1, #FPEXC_FP2V @ is there an FPINST2 to write?
+-+ beq 1f
+-+ VFPFMXR FPINST2, r12 @ FPINST2 if needed (and present)
+- 1:
+-- VFPFMXR FPSCR, r2 @ restore status
+-- mov pc, lr
+-+ VFPFMXR FPSCR, r2 @ restore status
+-+ mov pc, lr
+-+ENDPROC(rthal_vfp_load)
+- #endif
+-
+- /*
+-@@ -144,28 +151,37 @@ ENTRY(rthal_vfp_load)
+- * r0 = previous task_struct, r1 = previous thread_info, r2 = next thread_info
+- */
+- ENTRY(rthal_thread_switch)
+-- add ip, r1, #TI_CPU_SAVE
+-- ldr r3, [r2, #TI_TP_VALUE]
+-- stmia ip!, {r4 - sl, fp, sp, lr} @ Store most regs on stack
+-+ add ip, r1, #TI_CPU_SAVE
+-+ ldr r3, [r2, #TI_TP_VALUE]
+-+ ARM( stmia ip!, {r4 - sl, fp, sp, lr} ) @ Store most regs on stack
+-+ THUMB( stmia ip!, {r4 - sl, fp} ) @ Store most regs on stack
+-+ THUMB( str sp, [ip], #4 )
+-+ THUMB( str lr, [ip], #4 )
+- #ifdef USE_DOMAINS
+-- ldr r6, [r2, #TI_CPU_DOMAIN]
+-+ ldr r6, [r2, #TI_CPU_DOMAIN]
+- #endif
+-
+-- clear_exclusive_monitor
+-- set_tls r3, r4, r5
+-+ clear_exclusive_monitor
+-+ set_tls r3, r4, r5
+- #ifdef USE_DOMAINS
+-- mcr p15, 0, r6, c3, c0, 0 @ Set domain register
+-+ mcr p15, 0, r6, c3, c0, 0 @ Set domain register
+- #endif
+-- fpu_switch r4
+-- add r4, r2, #TI_CPU_SAVE
+-- ldmia r4, {r4 - sl, fp, sp, pc} @ Load all regs saved previously
+-+ fpu_switch r4
+-+ ARM( add r4, r2, #TI_CPU_SAVE )
+-+ ARM( ldmia r4, {r4 - sl, fp, sp, pc} ) @ Load all regs saved previously
+-+ THUMB( add ip, r2, #TI_CPU_SAVE )
+-+ THUMB( ldmia ip!, {r4 - sl, fp} ) @ Load all regs saved previously
+-+ THUMB( ldr sp, [ip], #4 )
+-+ THUMB( ldr pc, [ip] )
+-+ENDPROC(rthal_thread_switch)
+-
+- /*
+- * r4 = xnarch_thread_trampoline
+- * r5 = xnarchtcb_t *
+- */
+- ENTRY(rthal_thread_trampoline)
+-- mov r0, r5
+-- mov pc, r4
+-+ mov r0, r5
+-+ mov pc, r4
+-+ENDPROC(rthal_thread_trampoline)
+-
+- // vim: ts=4 et sw=4 sts=4
+---
+-1.7.2.5
+-
+diff -uN buildroot.orig/package/xenomai/xenomai.mk buildroot/package/xenomai/xenomai.mk
+--- buildroot.orig/package/xenomai/xenomai.mk 2013-04-21 11:10:57.959247000 +0200
++++ buildroot/package/xenomai/xenomai.mk 2013-04-21 11:22:13.619157358 +0200
+@@ -7,7 +7,7 @@
+
+ XENOMAI_VERSION = $(call qstrip,$(BR2_PACKAGE_XENOMAI_VERSION))
+ ifeq ($(XENOMAI_VERSION),)
+-XENOMAI_VERSION = 2.6.1
++XENOMAI_VERSION = 2.6.2.1
+ endif
+
+ XENOMAI_SITE = http://download.gna.org/xenomai/stable/
+@@ -26,10 +26,6 @@
+
+ XENOMAI_POST_DOWNLOAD_HOOKS += ADEOS_DOWNLOAD_PATCH
+
+-ifeq ($(BR2_PACKAGE_XENOMAI_SMP),y)
+-XENOMAI_CONF_OPT += --enable-smp
+-endif
+-
+ XENOMAI_CONF_OPT += --includedir=/usr/include/xenomai/
+
+ ifeq ($(BR2_HAVE_DEVFILES),)
hooks/post-receive
--
armadeus
|
|
From: jorasse <jo...@us...> - 2013-05-07 11:51: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, master has been updated
via 9b3c7050bc02dc6b1782e997d629ee81bd82ce64 (commit)
from dab0b2ea64def5c97312ccdd8c321a53bd19cbe1 (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 9b3c7050bc02dc6b1782e997d629ee81bd82ce64
Author: Victor Hiairrassary <vic...@gm...>
Date: Mon Apr 22 10:16:56 2013 +0200
boost: bump version to 1.53.0
Signed-off-by: Victor Hiairrassary <vic...@gm...>
-----------------------------------------------------------------------
Summary of changes:
.../2013.02/202-boost-bump-version-to-1.53.0.patch | 43 ++++++++++++++++++++
1 files changed, 43 insertions(+), 0 deletions(-)
create mode 100644 patches/buildroot/2013.02/202-boost-bump-version-to-1.53.0.patch
diff --git a/patches/buildroot/2013.02/202-boost-bump-version-to-1.53.0.patch b/patches/buildroot/2013.02/202-boost-bump-version-to-1.53.0.patch
new file mode 100644
index 0000000..48f2e0c
--- /dev/null
+++ b/patches/buildroot/2013.02/202-boost-bump-version-to-1.53.0.patch
@@ -0,0 +1,43 @@
+bump boost to 1.53.0
+
+Signed-off-by: Victor Hiairrassary <vic...@gm...>
+
+diff -ru buildroot.orig/package/boost/Config.in buildroot/package/boost/Config.in
+--- buildroot.orig/package/boost/Config.in 2013-03-12 19:51:11.717457000 +0100
++++ buildroot/package/boost/Config.in 2013-04-13 14:30:52.427725732 +0200
+@@ -21,6 +21,9 @@
+ config BR2_PACKAGE_BOOST_CHRONO
+ bool "boost-chrono"
+
++config BR2_PACKAGE_BOOST_CONTEXT
++ bool "boost-context"
++
+ config BR2_PACKAGE_BOOST_DATE_TIME
+ bool "boost-date_time"
+
+diff -ru buildroot.orig/package/boost/boost.mk buildroot/package/boost/boost.mk
+--- buildroot.orig/package/boost/boost.mk 2013-03-12 19:51:11.717457000 +0100
++++ buildroot/package/boost/boost.mk 2013-04-13 14:31:18.794472415 +0200
+@@ -4,7 +4,7 @@
+ #
+ #############################################################
+
+-BOOST_VERSION = 1.52.0
++BOOST_VERSION = 1.53.0
+ BOOST_FILE_VERSION = $(subst .,_,$(BOOST_VERSION))
+ BOOST_SOURCE = boost_$(BOOST_FILE_VERSION).tar.bz2
+ BOOST_SITE = http://downloads.sourceforge.net/project/boost/boost/$(BOOST_VERSION)
+@@ -15,9 +15,12 @@
+ BOOST_DEPENDENCIES = bzip2 zlib
+
+ BOOST_FLAGS =
+-BOOST_WITHOUT_FLAGS = python context
++
++# atomic library compile only with upstream version, wait for next release
++BOOST_WITHOUT_FLAGS = python atomic
+
+ BOOST_WITHOUT_FLAGS += $(if $(BR2_PACKAGE_BOOST_CHRONO),,chrono)
++BOOST_WITHOUT_FLAGS += $(if $(BR2_PACKAGE_BOOST_CONTEXT),,context)
+ BOOST_WITHOUT_FLAGS += $(if $(BR2_PACKAGE_BOOST_DATE_TIME),,date_time)
+ BOOST_WITHOUT_FLAGS += $(if $(BR2_PACKAGE_BOOST_EXCEPTION),,exception)
+ BOOST_WITHOUT_FLAGS += $(if $(BR2_PACKAGE_BOOST_FILESYSTEM),,filesystem)
hooks/post-receive
--
armadeus
|
|
From: jorasse <jo...@us...> - 2013-05-07 11:34: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, master has been updated
via dab0b2ea64def5c97312ccdd8c321a53bd19cbe1 (commit)
from 7cf543897c850a6ebbd390afa0a738dc75bef870 (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 dab0b2ea64def5c97312ccdd8c321a53bd19cbe1
Author: Victor Hiairrassary <vic...@gm...>
Date: Sun Mar 3 15:20:30 2013 +0100
0.9.33: add backtrace support in default config
Signed-off-by: Victor Hiairrassary <vic...@gm...>
-----------------------------------------------------------------------
Summary of changes:
.../target/device/armadeus/uClibc-0.9.33.config | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/buildroot/target/device/armadeus/uClibc-0.9.33.config b/buildroot/target/device/armadeus/uClibc-0.9.33.config
index d592c51..ffe0c2d 100644
--- a/buildroot/target/device/armadeus/uClibc-0.9.33.config
+++ b/buildroot/target/device/armadeus/uClibc-0.9.33.config
@@ -250,7 +250,7 @@ DOSTRIP=y
# SUPPORT_LD_DEBUG is not set
# SUPPORT_LD_DEBUG_EARLY is not set
# UCLIBC_MALLOC_DEBUGGING is not set
-# UCLIBC_HAS_BACKTRACE is not set
+UCLIBC_HAS_BACKTRACE=y
WARNINGS="-Wall"
# EXTRA_WARNINGS is not set
# DOMULTI is not set
hooks/post-receive
--
armadeus
|
|
From: jorasse <jo...@us...> - 2013-05-02 17:03:07
|
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, master has been updated
via 7cf543897c850a6ebbd390afa0a738dc75bef870 (commit)
from 70724e4ccb039f3af5a8f496e601eedf4102de34 (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 7cf543897c850a6ebbd390afa0a738dc75bef870
Author: Eric Jarrige <eri...@ar...>
Date: Thu May 2 19:09:04 2013 +0200
[UBOOT] cleanup obsolete U-Boot version of patches: 2011.12
-----------------------------------------------------------------------
Summary of changes:
buildroot/configs/apf27_webradio_defconfig | 6 +-
buildroot/configs/pps51_defconfig | 6 +-
.../device/armadeus/apf27/apf27-u-boot-2011.12.h | 848 ---------
.../device/armadeus/apf28/apf28-u-boot-2011.12.h | 392 -----
.../device/armadeus/apf51/apf51-u-boot-2011.12.h | 774 ---------
.../armadeus/apf9328/apf9328-u-boot-2011.12.h | 967 -----------
.../device/armadeus/pps/pps-u-boot-2011.12.h | 852 ---------
patches/u-boot/2011.12/101-mx1-gpio-mode.patch | 27 -
patches/u-boot/2011.12/102-mx1-i2c.patch | 42 -
patches/u-boot/2011.12/103-apf9328.patch | 1346 --------------
patches/u-boot/2011.12/104-apf9328-makefile.patch | 38 -
patches/u-boot/2011.12/106-mx1-pllclk.patch | 59 -
patches/u-boot/2011.12/107-mx1-pllclk-debug.patch | 22 -
patches/u-boot/2011.12/108-DM9000.patch | 44 -
patches/u-boot/2011.12/109-mx1-relocation.patch | 29 -
patches/u-boot/2011.12/111-mx1-timer.patch | 16 -
...dule-and-I-O-Multiplexer-constant-for-mx2.patch | 155 --
...-Add-support-for-the-armadeus-apf27-board.patch | 1828 --------------------
.../u-boot/2011.12/311-imx-nand-lock-unlock.patch | 84 -
patches/u-boot/2011.12/320-spartan.patch | 35 -
patches/u-boot/2011.12/321-add_spartan6.patch | 742 --------
patches/u-boot/2011.12/330-arm926-relocation.patch | 24 -
.../u-boot/2011.12/340-apf27-misc-commands.patch | 378 ----
.../2011.12/350-nand_large_file_download.patch | 221 ---
patches/u-boot/2011.12/400-imx51.patch | 497 ------
patches/u-boot/2011.12/401-apf51.patch | 1601 -----------------
patches/u-boot/2011.12/403-apf51-wdog.patch | 21 -
.../u-boot/2011.12/405-remove_extra_printk.patch | 25 -
patches/u-boot/2011.12/407-imx51-nand.patch | 1375 ---------------
patches/u-boot/2011.12/409-apf51-nand-spl.patch | 387 -----
patches/u-boot/2011.12/410-imx-iim.patch | 528 ------
.../2011.12/411-Fix-high-voltage-nand-sd.patch | 15 -
...c_i2c-add_support_for_the_iMX51_processor.patch | 19 -
patches/u-boot/2011.12/425-cortex-relocation.patch | 23 -
.../u-boot/2011.12/501-imx28-update-and-fix.patch | 62 -
patches/u-boot/2011.12/502-add-apf28.patch | 1366 ---------------
.../503-imx28-fix_spl_power_init_IRQ_bit.patch | 44 -
37 files changed, 6 insertions(+), 14892 deletions(-)
delete mode 100644 buildroot/target/device/armadeus/apf27/apf27-u-boot-2011.12.h
delete mode 100644 buildroot/target/device/armadeus/apf28/apf28-u-boot-2011.12.h
delete mode 100644 buildroot/target/device/armadeus/apf51/apf51-u-boot-2011.12.h
delete mode 100644 buildroot/target/device/armadeus/apf9328/apf9328-u-boot-2011.12.h
delete mode 100644 buildroot/target/device/armadeus/pps/pps-u-boot-2011.12.h
delete mode 100644 patches/u-boot/2011.12/101-mx1-gpio-mode.patch
delete mode 100644 patches/u-boot/2011.12/102-mx1-i2c.patch
delete mode 100644 patches/u-boot/2011.12/103-apf9328.patch
delete mode 100644 patches/u-boot/2011.12/104-apf9328-makefile.patch
delete mode 100644 patches/u-boot/2011.12/106-mx1-pllclk.patch
delete mode 100644 patches/u-boot/2011.12/107-mx1-pllclk-debug.patch
delete mode 100644 patches/u-boot/2011.12/108-DM9000.patch
delete mode 100644 patches/u-boot/2011.12/109-mx1-relocation.patch
delete mode 100644 patches/u-boot/2011.12/111-mx1-timer.patch
delete mode 100644 patches/u-boot/2011.12/301-Add-GPIO-Module-and-I-O-Multiplexer-constant-for-mx2.patch
delete mode 100644 patches/u-boot/2011.12/302-Add-support-for-the-armadeus-apf27-board.patch
delete mode 100644 patches/u-boot/2011.12/311-imx-nand-lock-unlock.patch
delete mode 100644 patches/u-boot/2011.12/320-spartan.patch
delete mode 100644 patches/u-boot/2011.12/321-add_spartan6.patch
delete mode 100644 patches/u-boot/2011.12/330-arm926-relocation.patch
delete mode 100644 patches/u-boot/2011.12/340-apf27-misc-commands.patch
delete mode 100644 patches/u-boot/2011.12/350-nand_large_file_download.patch
delete mode 100644 patches/u-boot/2011.12/400-imx51.patch
delete mode 100644 patches/u-boot/2011.12/401-apf51.patch
delete mode 100644 patches/u-boot/2011.12/403-apf51-wdog.patch
delete mode 100644 patches/u-boot/2011.12/405-remove_extra_printk.patch
delete mode 100644 patches/u-boot/2011.12/407-imx51-nand.patch
delete mode 100644 patches/u-boot/2011.12/409-apf51-nand-spl.patch
delete mode 100644 patches/u-boot/2011.12/410-imx-iim.patch
delete mode 100644 patches/u-boot/2011.12/411-Fix-high-voltage-nand-sd.patch
delete mode 100644 patches/u-boot/2011.12/424-armadeus-mxc_i2c-add_support_for_the_iMX51_processor.patch
delete mode 100644 patches/u-boot/2011.12/425-cortex-relocation.patch
delete mode 100644 patches/u-boot/2011.12/501-imx28-update-and-fix.patch
delete mode 100644 patches/u-boot/2011.12/502-add-apf28.patch
delete mode 100644 patches/u-boot/2011.12/503-imx28-fix_spl_power_init_IRQ_bit.patch
diff --git a/buildroot/configs/apf27_webradio_defconfig b/buildroot/configs/apf27_webradio_defconfig
index 2365bdb..1f33963 100644
--- a/buildroot/configs/apf27_webradio_defconfig
+++ b/buildroot/configs/apf27_webradio_defconfig
@@ -79,10 +79,10 @@ BR2_TARGET_ROOTFS_UBIFS_MAXLEBCNT=2047
BR2_TARGET_ROOTFS_UBI=y
BR2_TARGET_UBOOT=y
BR2_TARGET_UBOOT_BOARDNAME="$(BR2_BOARD_NAME)"
-BR2_TARGET_UBOOT_CONFIG_HEADER_FILE="$(BR2_BOARD_PATH)/$(BR2_BOARD_NAME)-u-boot-2011.12.h"
+BR2_TARGET_UBOOT_CONFIG_HEADER_FILE="$(BR2_BOARD_PATH)/$(BR2_BOARD_NAME)-u-boot-2012.04.h"
BR2_TARGET_UBOOT_CUSTOM_TARBALL=y
-BR2_TARGET_UBOOT_CUSTOM_TARBALL_LOCATION="ftp://ftp.denx.de/pub/u-boot/u-boot-2011.12.tar.bz2"
-BR2_TARGET_UBOOT_CUSTOM_PATCH_DIR="../patches/u-boot/2011.12"
+BR2_TARGET_UBOOT_CUSTOM_TARBALL_LOCATION="ftp://ftp.denx.de/pub/u-boot/u-boot-2012.04.01.tar.bz2"
+BR2_TARGET_UBOOT_CUSTOM_PATCH_DIR="../patches/u-boot/2012.04"
BR2_TARGET_UBOOT_FORMAT_NAND_BIN=y
BR2_TARGET_UBOOT_NETWORK=y
BR2_TARGET_UBOOT_SERVERIP="192.168.0.2"
diff --git a/buildroot/configs/pps51_defconfig b/buildroot/configs/pps51_defconfig
index 68b314e..517a92a 100644
--- a/buildroot/configs/pps51_defconfig
+++ b/buildroot/configs/pps51_defconfig
@@ -84,10 +84,10 @@ BR2_TARGET_ROOTFS_UBIFS_MAXLEBCNT=135301
BR2_TARGET_ROOTFS_UBI=y
BR2_TARGET_UBOOT=y
BR2_TARGET_UBOOT_BOARDNAME="apf51"
-BR2_TARGET_UBOOT_CONFIG_HEADER_FILE="$(ARMADEUS_PATH)/apf51/apf51-u-boot-2011.12.h"
+BR2_TARGET_UBOOT_CONFIG_HEADER_FILE="$(ARMADEUS_PATH)/apf51/apf51-u-boot-2012.04.h"
BR2_TARGET_UBOOT_CUSTOM_TARBALL=y
-BR2_TARGET_UBOOT_CUSTOM_TARBALL_LOCATION="ftp://ftp.denx.de/pub/u-boot/u-boot-2011.12.tar.bz2"
-BR2_TARGET_UBOOT_CUSTOM_PATCH_DIR="../patches/u-boot/2011.12"
+BR2_TARGET_UBOOT_CUSTOM_TARBALL_LOCATION="ftp://ftp.denx.de/pub/u-boot/u-boot-2012.04.01.tar.bz2"
+BR2_TARGET_UBOOT_CUSTOM_PATCH_DIR="../patches/u-boot/2012.04"
BR2_TARGET_UBOOT_FORMAT_NAND_BIN=y
BR2_TARGET_UBOOT_NETWORK=y
BR2_TARGET_UBOOT_SERVERIP="192.168.0.2"
diff --git a/buildroot/target/device/armadeus/apf27/apf27-u-boot-2011.12.h b/buildroot/target/device/armadeus/apf27/apf27-u-boot-2011.12.h
deleted file mode 100644
index ead5231..0000000
--- a/buildroot/target/device/armadeus/apf27/apf27-u-boot-2011.12.h
+++ /dev/null
@@ -1,848 +0,0 @@
-/*
- *
- * Configuration settings for the Armadeus Project motherboard APF27
- *
- * Copyright (C) 2008-2012 ej / Armadeus Project <eri...@ar...>
- *
- * 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 the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * This program 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
- * MA 02111-1307 USA
- */
-
-#ifndef __CONFIG_H
-#define __CONFIG_H
-
-#define CONFIG_VERSION_VARIABLE
-#define CONFIG_ENV_VERSION "3.0"
-#define CONFIG_IDENT_STRING " apf27 patch 3.1"
-#define CONFIG_BOARD_NAME apf27
-
-/*
- * SoC configurations
- */
-#define CONFIG_ARM926EJS /* this is an ARM926EJS CPU */
-#define CONFIG_MX27 /* in a Freescale i.MX27 Chip */
-#define CONFIG_MACH_TYPE 1698 /* APF27 */
-
-/*
- * Enable the call to miscellaneous platform dependent initialization.
- */
-#define CONFIG_SYS_NO_FLASH /* to be define before <config_cmd_default.h> */
-#define CONFIG_MISC_INIT_R
-
-/*
- * Board display option
- */
-#define CONFIG_DISPLAY_BOARDINFO
-#define CONFIG_DISPLAY_CPUINFO
-
-/*
- * SPL
- */
-#define CONFIG_NAND_U_BOOT
-/* Copy SPL+U-Boot here */
-#define CONFIG_SYS_NAND_U_BOOT_DST CONFIG_SYS_LOAD_ADDR
-/* Size is the partion size */
-#define CONFIG_SYS_NAND_U_BOOT_SIZE CONFIG_SYS_MONITOR_LEN
-
-/*
- * BOOTP options
- */
-#define CONFIG_BOOTP_SUBNETMASK
-#define CONFIG_BOOTP_GATEWAY
-#define CONFIG_BOOTP_HOSTNAME
-#define CONFIG_BOOTP_BOOTPATH
-#define CONFIG_BOOTP_BOOTFILESIZE
-#define CONFIG_BOOTP_DNS
-#define CONFIG_BOOTP_DNS2
-
-#define CONFIG_HOSTNAME CONFIG_BOARD_NAME
-#define CONFIG_ROOTPATH "/tftpboot/" MK_STR(CONFIG_BOARD_NAME) "-root"
-
-/*
- * U-Boot Commands
- */
-#include <config_cmd_default.h>
-
-#define CONFIG_CMD_ASKENV /* ask for env variable */
-#define CONFIG_CMD_BSP /* Board Specific functions */
-#define CONFIG_CMD_CACHE /* icache, dcache */
-/*#define CONFIG_CMD_DATE */ /* support for RTC, date/time...*/
-#define CONFIG_CMD_DHCP /* DHCP Support */
-#define CONFIG_CMD_DNS
-/*#define CONFIG_CMD_EEPROM */ /* EEPROM read/write support */
-#define CONFIG_CMD_FAT /* FAT support */
-/*#define CONFIG_CMD_I2C */ /* I2C serial bus support */
-#define CONFIG_CMD_IMX_FUSE /* imx iim fuse */
-#define CONFIG_CMD_MII /* MII support */
-#define CONFIG_CMD_MTDPARTS /* MTD partition support */
-#define CONFIG_CMD_NAND /* NAND support */
-#define CONFIG_CMD_NAND_LOCK_UNLOCK
-#define CONFIG_CMD_NAND_TRIMFFS
-#define CONFIG_CMD_NFS /* NFS support */
-#define CONFIG_CMD_PING /* ping support */
-#define CONFIG_CMD_SETEXPR /* setexpr support */
-#define CONFIG_CMD_UBI
-#define CONFIG_CMD_UBIFS
-
-/*
- * Memory configurations
- */
-#define CONFIG_NR_DRAM_POPULATED 1
-#define CONFIG_NR_DRAM_BANKS CONFIG_NR_DRAM_POPULATED
-
-#define CONFIG_SYS_SDRAM_MBYTE_SYZE 64
-
-#define PHYS_SDRAM_1 0xA0000000
-#define PHYS_SDRAM_2 0xB0000000
-#define CONFIG_SYS_SDRAM_BASE PHYS_SDRAM_1
-#define CONFIG_SYS_MALLOC_LEN (CONFIG_ENV_SIZE + (512<<10) )
-#define CONFIG_SYS_GBL_DATA_SIZE 256 /* Initial data */
-#define CONFIG_SYS_MEMTEST_START 0xA0000000 /* memtest test area */
-#define CONFIG_SYS_MEMTEST_END 0xA0300000 /* 3 MiB RAM test */
-
-#define CONFIG_SYS_INIT_SP_ADDR (CONFIG_SYS_SDRAM_BASE \
- + PHYS_SDRAM_1_SIZE - 0x0100000)
-
-#define CONFIG_SYS_TEXT_BASE 0xA1000000
-
-/*
- * FLASH organization
- */
-/*#define CONFIG_SYS_MONITOR_BASE 0xAFF00000*/
-#define CONFIG_SYS_MONITOR_OFFSET 0x00000000
-#define CONFIG_SYS_MONITOR_LEN 0x00100000 /* 1MiB */
-#define CONFIG_ENV_IS_IN_NAND
-#define CONFIG_ENV_OVERWRITE
-#define CONFIG_ENV_OFFSET 0x00100000 /* NAND offset */
-#define CONFIG_ENV_SIZE 0x00020000 /* 128kB */
-#define CONFIG_ENV_RANGE 0X00080000 /* 512kB */
-#define CONFIG_ENV_OFFSET_REDUND \
- (CONFIG_ENV_OFFSET + CONFIG_ENV_RANGE) /* +512kB */
-#define CONFIG_ENV_SIZE_REDUND CONFIG_ENV_SIZE /* 512kB */
-#define CONFIG_FIRMWARE_OFFSET 0x00200000
-#define CONFIG_KERNEL_OFFSET 0x00300000
-#define CONFIG_ROOTFS_OFFSET 0x00800000
-
-#define CONFIG_MTDMAP "mxc_nand.0"
-#define MTDIDS_DEFAULT "nand0=" CONFIG_MTDMAP
-#define MTDPARTS_DEFAULT "mtdparts=" CONFIG_MTDMAP \
- ":1M(u-boot)ro," \
- "512K(env)," \
- "512K(env2)," \
- "512K(firmware)," \
- "512K(dtb)," \
- "5M(kernel)," \
- "-(rootfs)"
-
-/*
- * U-Boot general configurations
- */
-#define CONFIG_SYS_LONGHELP
-#define CONFIG_SYS_PROMPT "BIOS> " /* prompt string */
-#define CONFIG_SYS_CBSIZE 2048 /* console I/O buffer */
-#define CONFIG_SYS_PBSIZE \
- (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16)
- /* Print buffer size */
-#define CONFIG_SYS_MAXARGS 16 /* max command args */
-#define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE
- /* Boot argument buffer size */
-#define CONFIG_AUTO_COMPLETE
-#define CONFIG_CMDLINE_EDITING
-#define CONFIG_SYS_HUSH_PARSER /* enable the "hush" shell */
-#define CONFIG_SYS_PROMPT_HUSH_PS2 "> " /* secondary prompt string */
-
-/*
- * Boot Linux
- */
-#define CONFIG_CMDLINE_TAG /* send commandline to Kernel */
-#define CONFIG_SETUP_MEMORY_TAGS /* send memory definition to kernel */
-#define CONFIG_INITRD_TAG /* send initrd params */
-/*
-#define CONFIG_REVISION_TAG
-#define CONFIG_OF_LIBFDT
-*/
-#define CONFIG_BOOTDELAY 5
-#define CONFIG_ZERO_BOOTDELAY_CHECK
-#define CONFIG_BOOTFILE MK_STR(CONFIG_BOARD_NAME) "-linux.bin"
-#define CONFIG_BOOTARGS "console=" MK_STR(ACFG_CONSOLE_DEV) "," \
- MK_STR(CONFIG_BAUDRATE) " " MTDPARTS_DEFAULT \
- " ubi.mtd=rootfs root=ubi0:rootfs rootfstype=ubifs "
-
-#define ACFG_CONSOLE_DEV ttySMX0
-#define CONFIG_BOOTCOMMAND "run ubifsboot"
-#define CONFIG_SYS_AUTOLOAD "no"
-/*
- * Default load address for user programs and kernel
- */
-#define CONFIG_LOADADDR 0xA0000000
-#define CONFIG_SYS_LOAD_ADDR CONFIG_LOADADDR
-#define CONFIG_SYS_TFTP_LOADADDR CONFIG_LOADADDR
-
-/*
- * Extra Environments
- */
-#define CONFIG_EXTRA_ENV_SETTINGS \
- "env_version=" CONFIG_ENV_VERSION "\0" \
- "consoledev=" MK_STR(ACFG_CONSOLE_DEV) "\0" \
- "mtdparts=" MTDPARTS_DEFAULT "\0" \
- "partition=nand0,6\0" \
- "u-boot_addr=" MK_STR(CONFIG_SYS_MONITOR_OFFSET) "\0" \
- "env_addr=" MK_STR(CONFIG_ENV_OFFSET) "\0" \
- "firmware_addr=" MK_STR(CONFIG_FIRMWARE_OFFSET) "\0" \
- "kernel_addr=" MK_STR(CONFIG_KERNEL_OFFSET) "\0" \
- "rootfs_addr=" MK_STR(CONFIG_ROOTFS_OFFSET) "\0" \
- "board_name=" MK_STR(CONFIG_BOARD_NAME) "\0" \
- "addnfsargs=setenv bootargs ${bootargs} " \
- "root=/dev/nfs rw nfsroot=${serverip}:${rootpath}\0" \
- "addubifsargs=setenv bootargs ${bootargs} " \
- "ubi.mtd=rootfs root=ubi0:rootfs rootfstype=ubifs\0" \
- "addmmcargs=setenv bootargs ${bootargs} " \
- "root=/dev/mmcblk0p1 rootfstype=ext2\0" \
- "addipargs=setenv bootargs ${bootargs} " \
- "ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:" \
- "${hostname}:eth0:off \0" \
- "nfsboot=setenv bootargs console=${consoledev},${baudrate} " \
- "${mtdparts}; run addnfsargs addipargs; setenv autostart yes;" \
- "nboot kernel\0" \
- "nfsboot2=setenv bootargs console=${consoledev},${baudrate} " \
- "${mtdparts}; run addnfsargs addipargs; setenv autostart yes;" \
- "setenv kernel_image ${board_name}-linux.bin;" \
- "nfs ${loadaddr} " \
- "${serverip}:${rootpath}/${kernel_image};" \
- "bootm\0" \
- "ubifsboot=setenv bootargs console=${consoledev},${baudrate} " \
- "${mtdparts};run addubifsargs addipargs; setenv autostart yes;"\
- "nboot kernel\0" \
- "mmcboot=setenv bootargs console=${consoledev},${baudrate} " \
- "${mtdparts}; run addmmcargs addipargs; setenv autostart yes;" \
- "nboot kernel\0" \
- "boot_nfs_fallback_flash=if ping ${serverip};" \
- "then echo Boot over NFS; run nfsboot;" \
- "else echo Boot from the board; run ubifsboot;" \
- "fi\0" \
- "boot_nfs2_fallback_flash=if ping ${serverip};" \
- "then echo Boot over NFS; run nfsboot2;" \
- "else echo Boot from the board; run ubifsboot;" \
- "fi\0" \
- "firmware_autoload=0\0" \
- "flash_uboot=nand unlock ${u-boot_addr} ;" \
- "nand erase.part u-boot;" \
- "if nand write.trimffs ${fileaddr} ${u-boot_addr} ${filesize};"\
- "then nand lock; nand unlock ${env_addr};" \
- "echo Flashing of uboot succeed;" \
- "else echo Flashing of uboot failed;" \
- "fi; \0" \
- "flash_firmware=nand erase.part firmware;" \
- "if nand write.trimffs ${fileaddr} ${firmware_addr} ${filesize};"\
- "then echo Flashing of Firmware succeed;" \
- "else echo Flashing of Firmware failed;" \
- "fi\0" \
- "flash_kernel=nand erase.part kernel;" \
- "if nand write.trimffs ${fileaddr} ${kernel_addr} ${filesize};"\
- "then echo Flashing of kernel succeed;" \
- "else echo Flashing of kernel failed;" \
- "fi\0" \
- "flash_rootfs=nand erase.part rootfs;" \
- "if nand write.trimffs ${fileaddr} ${rootfs_addr} ${filesize};"\
- "then echo Flashing of rootfs succeed;" \
- "else echo Flashing of rootfs failed;" \
- "fi\0" \
- "flash_reset_env=env default -f; saveenv;" \
- "echo Flash environment variables erased!\0" \
- "download_uboot=tftpboot ${loadaddr} ${board_name}-u-boot-nand.bin\0" \
- "download_kernel=tftpboot ${loadaddr} ${board_name}-linux.bin\0" \
- "download_rootfs=tftpboot ${loadaddr} ${board_name}-rootfs.ubi\0" \
- "update_uboot=run download_uboot flash_uboot\0" \
- "update_kernel=run download_kernel flash_kernel\0" \
- "update_rootfs=run download_rootfs flash_rootfs\0" \
- "update_all=run download_kernel flash_kernel download_rootfs " \
- "flash_rootfs download_uboot flash_uboot\0" \
- "unlock_regs=mw 10000008 0; mw 10020008 0\0" \
-
-/*
- * Serial Driver
- */
-#define CONFIG_MXC_UART
-#define CONFIG_SYS_MX27_UART1
-#define CONFIG_CONS_INDEX 1
-#define CONFIG_SYS_BAUDRATE_TABLE { 9600, 19200, 38400, 57600, 115200 }
-#define CONFIG_BAUDRATE 115200
-#define CONFIG_MXC_UART_BASE UART1_BASE
-
-/*
- * GPIO
- */
-
-/*
- * NOR
- */
-
-/*
- * NAND
- */
-#define CONFIG_NAND_MXC
-
-#define CONFIG_MXC_NAND_REGS_BASE 0xD8000000
-#define CONFIG_SYS_NAND_BASE CONFIG_MXC_NAND_REGS_BASE
-#define CONFIG_SYS_MAX_NAND_DEVICE 1
-
-#define CONFIG_MXC_NAND_HWECC
-#define CONFIG_SYS_NAND_LARGEPAGE
-#define IMX27_NAND_16BITS
-#define NAND_MAX_CHIPS 1
-
-#define CONFIG_SYS_DIRECT_FLASH_TFTP
-#define CONFIG_FLASH_SHOW_PROGRESS 45
-#define CONFIG_SYS_NAND_QUIET 1
-
-#define CONFIG_BOOT_TRACE_REG 0xAFFFFFF8 /* Addr to store traces of SPL boot*/
-
-/*
- * Partitions & Filsystems
- */
-#define CONFIG_MTD_DEVICE
-#define CONFIG_MTD_PARTITIONS
-#define CONFIG_DOS_PARTITION
-#define CONFIG_SUPPORT_VFAT
-
-/*
- * UBIFS
- */
-#define CONFIG_RBTREE
-#define CONFIG_LZO
-
-/*
- * Ethernet (on SOC imx FEC)
- */
-#define CONFIG_FEC_MXC
-
-#define CONFIG_NET_MULTI
-#define CONFIG_FEC_MXC_PHYADDR 0x1f
-#define CONFIG_MII 1 /* MII PHY management */
-
-/*
- * FPGA
- */
-#define CONFIG_FPGA CONFIG_SYS_SPARTAN3
-#define CONFIG_FPGA_COUNT 1
-#define CONFIG_FPGA_XILINX
-#define CONFIG_FPGA_SPARTAN3
-#define CONFIG_SYS_FPGA_WAIT 20000 /* 20 ms */
-#define CONFIG_SYS_FPGA_PROG_FEEDBACK
-#define CONFIG_SYS_FPGA_CHECK_CTRLC
-#define CONFIG_SYS_FPGA_CHECK_ERROR
-//#define CONFIG_SYS_FPGA_IS_PROTO /* to be defined with apf27 board prototype*/
-
-/* FPGA program pin configuration */
-#define CONFIG_SYS_FPGA_PWR (GPIO_PORTF | 19) /* FPGA prog pin */
-#define CONFIG_SYS_FPGA_PRG (GPIO_PORTF | 11) /* FPGA prog pin */
-#define CONFIG_SYS_FPGA_CLK (GPIO_PORTF | 15) /* FPGA clk pin */
-#define CONFIG_SYS_FPGA_RDATA 0xD6000000 /* FPGA data addr */
-#define CONFIG_SYS_FPGA_WDATA 0xD6000000 /* FPGA data addr */
-#define CONFIG_SYS_FPGA_INIT (GPIO_PORTF | 12) /* FPGA init pin */
-#define CONFIG_SYS_FPGA_DONE (GPIO_PORTF | 9) /* FPGA done pin */
-#define CONFIG_SYS_FPGA_RW (GPIO_PORTF | 21) /* FPGA done pin */
-#define CONFIG_SYS_FPGA_CS (GPIO_PORTF | 22) /* FPGA done pin */
-#define CONFIG_SYS_FPGA_SUSPEND (GPIO_PORTF | 10) /* FPGA done pin */
-#define CONFIG_SYS_FPGA_RESET (GPIO_PORTF | 7) /* FPGA done pin */
-
-/*
- * Fuses - IIM
- */
-#ifdef CONFIG_CMD_IMX_FUSE
-#define IIM_MAC_BANK 0
-#define IIM_MAC_ROW 5
-#define IIM0_SCC_KEY 11
-#define IIM1_SUID 1
-#endif
-
-/*
- * I2C
- */
-
-#ifdef CONFIG_CMD_I2C
-#define CONFIG_HARD_I2C 1
-
-#define CONFIG_SYS_I2C_SPEED 100000 /* 100 kHz */
-#define CONFIG_SYS_I2C_SLAVE 0x7F
-
-#define CONFIG_I2C_CMD_TREE
-#define CONFIG_I2C_MULTI_BUS 2
-#define CONFIG_SYS_I2C_NOPROBES { }
-
-#ifdef CONFIG_CMD_EEPROM
-# define CONFIG_SYS_I2C_EEPROM_ADDR 0x50 /* EEPROM 24LC02 */
-# define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1 /* bytes of address */
-#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS 3
-#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS 10 /* msec */
-#endif /* CONFIG_CMD_EEPROM */
-#endif /* CONFIG_CMD_I2C */
-
-/*
- * SPI
- */
-
-/*
- * SD/MMC
- */
-#ifdef CONFIG_CMD_MMC
-#define CONFIG_MMC
-#define CONFIG_GENERIC_MMC
-#define CONFIG_MXC_MMC
-#define CONFIG_MXC_MCI_REGS_BASE 0x10014000
-#endif
-
-/*
- * RTC
- */
-#ifdef CONFIG_CMD_DATE
-#define CONFIG_RTC_DS1374
-#define CONFIG_SYS_RTC_BUS_NUM 0
-#endif /* CONFIG_CMD_DATE */
-
-/*
- * Watchdog Config
- */
-
-/*
- * USB
- */
-
-/*
- * Clocks
- */
-#define CONFIG_SYS_HZ 1000 /* Ticks per second */
-
-/*
- * PLL
- *
- * 31 | x |x| x x x x |x x x x x x x x x x |x x|x x x x|x x x x x x x x x x| 0
- * |CPLM|X|----PD---|--------MFD---------|XXX|--MFI--|-----MFN-----------|
- */
-#define CONFIG_MX27_CLK32 32768 /* 32768 or 32000 Hz crystal */
-#undef CONFIG_MX27_CLK26 /* No external 26MHz external clock */
-
-/* MPU CLOCK source before PLL */
-/* CONFIG_SYS_CLK_FREQ (2/3 MPLL clock or ext 266 MHZ) */
-#ifndef CONFIG_MX27_CLK26
-#if (CONFIG_MX27_CLK32 == 32000)
-#define CONFIG_SYS_MPCTL0_VAL 0x00211803 /* 398.998 MHz */
-#define CONFIG_SYS_MPCTL1_VAL 0
-#define CONFIG_MPLL_FREQ 399
-#else /* CONFIG_MX27_CLK32 == 32768*/
-#define CONFIG_SYS_MPCTL0_VAL 0x01EF15D5 /* 399.000 MHz */
-#define CONFIG_SYS_MPCTL1_VAL 0
-#define CONFIG_MPLL_FREQ 399
-#endif /* CONFIG_MX27_CLK32 */
-#else /* CONFIG_MX27_CLK26 in use*/
-#define CONFIG_SYS_MPCTL0_VAL 0x00331C23 /* 399.000 MHz */
-#define CONFIG_SYS_MPCTL1_VAL 0
-#define CONFIG_MPLL_FREQ 399
-#endif /* CONFIG_MX27_CLK26 */
-
-#define CONFIG_SYS_CLK_FREQ (CONFIG_MPLL_FREQ*2/3) /* 266 MHz */
-
-/* Serial clock source before PLL (should be named CONFIG_SYS_SYSPLL_CLK_FREQ)*/
-#ifndef CONFIG_MX27_CLK26
-/*#define CONFIG_SYSPLL_CLK_FREQ (1024*CONFIG_MX27_CLK32)*/
-#if (CONFIG_MX27_CLK32 == 32000)
-#define CONFIG_SYS_SPCTL0_VAL 0x04A02419 /* 300.00020 MHz */
-#define CONFIG_SYS_SPCTL1_VAL 0
-#define CONFIG_SPLL_FREQ 300 /* MHz */
-#else /* CONFIG_MX27_CLK32 == 32768*/
-#define CONFIG_SYS_SPCTL0_VAL 0x0475206F /* 299.99937 MHz */
-#define CONFIG_SYS_SPCTL1_VAL 0
-#define CONFIG_SPLL_FREQ 300 /* MHz */
-#endif /* CONFIG_MX27_CLK32 */
-#else /* CONFIG_MX27_CLK26 in use*/
-/*#define CONFIG_SYSPLL_CLK_FREQ CONFIG_MX27_CLK26*/
-#define CONFIG_SYS_SPCTL0_VAL 0x040C2C07 /* 300 MHz */
-#define CONFIG_SYS_SPCTL1_VAL 0x0
-#define CONFIG_SPLL_FREQ 300 /* MHz */
-#endif /* CONFIG_MX27_CLK26 */
-
-/* ARM bus frequency (have to be a CONFIG_MPLL_FREQ ratio) */
-#define CONFIG_ARM_FREQ 399 /* up to 400 MHz */
-
-/* external bus frequency (have to be a CONFIG_SYS_CLK_FREQ ratio) */
-#define CONFIG_HCLK_FREQ 133 /* (CONFIG_SYS_CLK_FREQ/2) */
-
-#define CONFIG_PERIF1_FREQ 16 /* 16.625 MHz UART, GPT, PWM*/
-#define CONFIG_PERIF2_FREQ 33 /* 33.25 MHz CSPI and SDHC*/
-#define CONFIG_PERIF3_FREQ 33 /* 33.25 MHz LCD*/
-#define CONFIG_PERIF4_FREQ 33 /* 33.25 MHz CSI*/
-#define CONFIG_SSI1_FREQ 66 /* 66.50 MHz SSI1*/
-#define CONFIG_SSI2_FREQ 66 /* 66.50 MHz SSI2*/
-#define CONFIG_MSHC_FREQ 66 /* 66.50 MHz MSHC*/
-#define CONFIG_H264_FREQ 66 /* 66.50 MHz H264*/
-#define CONFIG_CLK0_DIV 3 /* Divide CLK0 by 4 */
-#define CONFIG_CLK0_EN 1 /* CLK0 enabled */
-
-/* external bus frequency (have to be a CONFIG_HCLK_FREQ ratio) */
-#define CONFIG_NFC_FREQ 44 /* NFC Clock up to 44 MHz wh 133MHz*/
-
-/* external serial bus frequency (have to be a CONFIG_SPLL_FREQ ratio) */
-#define CONFIG_USB_FREQ 60 /* 60 MHz */
-
-/*
- * SDRAM
- */
-#if (CONFIG_SYS_SDRAM_MBYTE_SYZE == 64) /* micron MT46H16M32LF -6 */
-/* micron 64MB */
-#define PHYS_SDRAM_1_SIZE 0x04000000 /* 64 MB */
-#define PHYS_SDRAM_2_SIZE 0x04000000 /* 64 MB */
-#define CONFIG_SYS_SDRAM_NUM_COL 9 /* 8, 9, 10 or 11 column address bits */
-#define CONFIG_SYS_SDRAM_NUM_ROW 13 /* 11, 12 or 13 row address bits */
-#define CONFIG_SYS_SDRAM_REFRESH 3 /* 0=OFF 1=2048 2=4096 3=8192 refresh */
-#define CONFIG_SYS_SDRAM_EXIT_PWD 25 /* ns exit power down delay */
-#define CONFIG_SYS_SDRAM_W2R_DELAY 1 /* write to read cycle delay > 0 */
-#define CONFIG_SYS_SDRAM_ROW_PRECHARGE_DELAY 18 /* ns */
-#define CONFIG_SYS_SDRAM_TMRD_DELAY 2 /* Load mode register cycle delay 1..4 */
-#define CONFIG_SYS_SDRAM_TWR_DELAY 1 /* LPDDR: 0=2ck 1=3ck; SDRAM: 0=1ck 1=2ck*/
-#define CONFIG_SYS_SDRAM_RAS_DELAY 42 /* ns ACTIVE-to-PRECHARGE delay */
-#define CONFIG_SYS_SDRAM_RRD_DELAY 12 /* ns ACTIVE-to-ACTIVE delay */
-#define CONFIG_SYS_SDRAM_RCD_DELAY 18 /* ns Row to Column delay */
-#define CONFIG_SYS_SDRAM_RC_DELAY 70 /* ns Row cycle delay (tRFC refresh to command)*/
-#define CONFIG_SYS_SDRAM_CLOCK_CYCLE_CL_1 0 /* ns clock cycle time estimated fo CL=1 0=force 3 for lpddr*/
-#define CONFIG_SYS_SDRAM_PARTIAL_ARRAY_SR 0 /* 0=full 1=half 2=quater 3=Eighth 4=Sixteenth */
-#define CONFIG_SYS_SDRAM_DRIVE_STRENGH 0 /* 0=Full-strength 1=half 2=quater 3=Eighth */
-#define CONFIG_SYS_SDRAM_BURST_LENGTH 3 /* 2^N BYTES (N=0..3) */
-#define CONFIG_SYS_SDRAM_SINGLE_ACCESS 0 /* 1= single access; 0 = Burst mode */
-#endif
-
-#if (CONFIG_SYS_SDRAM_MBYTE_SYZE == 128)
-/* micron 128MB */
-#define PHYS_SDRAM_1_SIZE 0x08000000 /* 128 MB */
-#define PHYS_SDRAM_2_SIZE 0x08000000 /* 128 MB */
-#define CONFIG_SYS_SDRAM_NUM_COL 9 /* 8, 9, 10 or 11 column address bits */
-#define CONFIG_SYS_SDRAM_NUM_ROW 14 /* 11, 12 or 13 row address bits */
-#define CONFIG_SYS_SDRAM_REFRESH 3 /* 0=OFF 1=2048 2=4096 3=8192 refresh */
-#define CONFIG_SYS_SDRAM_EXIT_PWD 25 /* ns exit power down delay */
-#define CONFIG_SYS_SDRAM_W2R_DELAY 1 /* write to read cycle delay > 0 */
-#define CONFIG_SYS_SDRAM_ROW_PRECHARGE_DELAY 18 /* ns */
-#define CONFIG_SYS_SDRAM_TMRD_DELAY 2 /* Load mode register cycle delay 1..4 */
-#define CONFIG_SYS_SDRAM_TWR_DELAY 1 /* LPDDR: 0=2ck 1=3ck; SDRAM: 0=1ck 1=2ck*/
-#define CONFIG_SYS_SDRAM_RAS_DELAY 42 /* ns ACTIVE-to-PRECHARGE delay */
-#define CONFIG_SYS_SDRAM_RRD_DELAY 12 /* ns ACTIVE-to-ACTIVE delay */
-#define CONFIG_SYS_SDRAM_RCD_DELAY 18 /* ns Row to Column delay */
-#define CONFIG_SYS_SDRAM_RC_DELAY 70 /* ns Row cycle delay (tRFC refresh to command)*/
-#define CONFIG_SYS_SDRAM_CLOCK_CYCLE_CL_1 0 /* ns clock cycle time estimated fo CL=1 0=force 3 for lpddr*/
-#define CONFIG_SYS_SDRAM_PARTIAL_ARRAY_SR 0 /* 0=full 1=half 2=quater 3=Eighth 4=Sixteenth */
-#define CONFIG_SYS_SDRAM_DRIVE_STRENGH 0 /* 0=Full-strength 1=half 2=quater 3=Eighth */
-#define CONFIG_SYS_SDRAM_BURST_LENGTH 3 /* 2^N BYTES (N=0..3) */
-#define CONFIG_SYS_SDRAM_SINGLE_ACCESS 0 /* 1= single access; 0 = Burst mode */
-#endif
-
-#if (CONFIG_SYS_SDRAM_MBYTE_SYZE == 256)
-/* micron 256MB */
-#define PHYS_SDRAM_1_SIZE 0x10000000 /* 256 MB */
-#define PHYS_SDRAM_2_SIZE 0x10000000 /* 256 MB */
-#define CONFIG_SYS_SDRAM_NUM_COL 10 /* 8, 9, 10 or 11 column address bits */
-#define CONFIG_SYS_SDRAM_NUM_ROW 14 /* 11, 12 or 13 row address bits */
-#define CONFIG_SYS_SDRAM_REFRESH 3 /* 0=OFF 1=2048 2=4096 3=8192 refresh */
-#define CONFIG_SYS_SDRAM_EXIT_PWD 25 /* ns exit power down delay */
-#define CONFIG_SYS_SDRAM_W2R_DELAY 1 /* write to read cycle delay > 0 */
-#define CONFIG_SYS_SDRAM_ROW_PRECHARGE_DELAY 18 /* ns */
-#define CONFIG_SYS_SDRAM_TMRD_DELAY 2 /* Load mode register cycle delay 1..4 */
-#define CONFIG_SYS_SDRAM_TWR_DELAY 1 /* LPDDR: 0=2ck 1=3ck; SDRAM: 0=1ck 1=2ck*/
-#define CONFIG_SYS_SDRAM_RAS_DELAY 42 /* ns ACTIVE-to-PRECHARGE delay */
-#define CONFIG_SYS_SDRAM_RRD_DELAY 12 /* ns ACTIVE-to-ACTIVE delay */
-#define CONFIG_SYS_SDRAM_RCD_DELAY 18 /* ns Row to Column delay */
-#define CONFIG_SYS_SDRAM_RC_DELAY 70 /* ns Row cycle delay (tRFC refresh to command)*/
-#define CONFIG_SYS_SDRAM_CLOCK_CYCLE_CL_1 0 /* ns clock cycle time estimated fo CL=1 0=force 3 for lpddr*/
-#define CONFIG_SYS_SDRAM_PARTIAL_ARRAY_SR 0 /* 0=full 1=half 2=quater 3=Eighth 4=Sixteenth */
-#define CONFIG_SYS_SDRAM_DRIVE_STRENGH 0 /* 0=Full-strength 1=half 2=quater 3=Eighth */
-#define CONFIG_SYS_SDRAM_BURST_LENGTH 3 /* 2^N BYTES (N=0..3) */
-#define CONFIG_SYS_SDRAM_SINGLE_ACCESS 0 /* 1= single access; 0 = Burst mode */
-#endif
-
-/*
- * External interface
- */
-/*
- * CSCRxU_VAL:
- * 31| x | x | x x |x x x x| x x | x | x |x x x x|16
- * |SP |WP | BCD | BCS | PSZ |PME|SYNC| DOL |
- *
- * 15| x x | x x x x x x | x | x x x x | x x x x |0
- * | CNC | WSC |EW | WWS | EDC |
- *
- * CSCRxL_VAL:
- * 31| x x x x | x x x x | x x x x | x x x x |16
- * | OEA | OEN | EBWA | EBWN |
- * 15|x x x x| x |x x x |x x x x| x | x | x | x | 0
- * | CSA |EBC| DSZ | CSN |PSR|CRE|WRAP|CSEN|
- *
- * CSCRxA_VAL:
- * 31| x x x x | x x x x | x x x x | x x x x |16
- * | EBRA | EBRN | RWA | RWN |
- * 15| x | x x |x x x|x x|x x|x x| x | x | x | x | 0
- * |MUM| LAH | LBN |LBA|DWW|DCT|WWU|AGE|CNC2|FCE|
- */
-
-/* CS0 configuration for 16 bit nor flash */
-#define CONFIG_SYS_CS0U_VAL 0x0000CC03
-#define CONFIG_SYS_CS0L_VAL 0xa0330D01
-#define CONFIG_SYS_CS0A_VAL 0x00220800
-
-#define CONFIG_SYS_CS1U_VAL 0x00000f00
-#define CONFIG_SYS_CS1L_VAL 0x00000D01
-#define CONFIG_SYS_CS1A_VAL 0
-
-#define CONFIG_SYS_CS2U_VAL 0
-#define CONFIG_SYS_CS2L_VAL 0
-#define CONFIG_SYS_CS2A_VAL 0
-
-#define CONFIG_SYS_CS3U_VAL 0
-#define CONFIG_SYS_CS3L_VAL 0
-#define CONFIG_SYS_CS3A_VAL 0
-
-#define CONFIG_SYS_CS4U_VAL 0
-#define CONFIG_SYS_CS4L_VAL 0
-#define CONFIG_SYS_CS4A_VAL 0
-
-/* FPGA 16 bit data bus */
-#define CONFIG_SYS_CS5U_VAL 0x00000600
-#define CONFIG_SYS_CS5L_VAL 0x00000D01
-#define CONFIG_SYS_CS5A_VAL 0
-
-#define CONFIG_SYS_EIM_VAL 0x00002200
-
-/* FPGA specific settings */
-/* CLKO */
-#define CONFIG_SYS_CCSR_VAL 0x00000305
-/* drive strength CLKO set to 2*/
-#define CONFIG_SYS_DSCR10_VAL 0x00020000
-/* drive strength A1..A12 set to 2*/
-#define CONFIG_SYS_DSCR3_VAL 0x02AAAAA8
-/* drive strength ctrl*/
-#define CONFIG_SYS_DSCR7_VAL 0x00020880
-/* drive strength data*/
-#define CONFIG_SYS_DSCR2_VAL 0xAAAAAAAA
-
-
-/*
- * Default configuration for GPIOs and peripherals
- */
-#define CONFIG_SYS_DDIR_A_VAL 0x00000000
-#define CONFIG_SYS_OCR1_A_VAL 0x00000000
-#define CONFIG_SYS_OCR2_A_VAL 0x00000000
-#define CONFIG_SYS_ICFA1_A_VAL 0xFFFFFFFF
-#define CONFIG_SYS_ICFA2_A_VAL 0xFFFFFFFF
-#define CONFIG_SYS_ICFB1_A_VAL 0xFFFFFFFF
-#define CONFIG_SYS_ICFB2_A_VAL 0xFFFFFFFF
-#define CONFIG_SYS_DR_A_VAL 0x00000000
-#define CONFIG_SYS_GIUS_A_VAL 0xFFFFFFFF
-#define CONFIG_SYS_ICR1_A_VAL 0x00000000
-#define CONFIG_SYS_ICR2_A_VAL 0x00000000
-#define CONFIG_SYS_IMR_A_VAL 0x00000000
-#define CONFIG_SYS_GPR_A_VAL 0x00000000
-#define CONFIG_SYS_PUEN_A_VAL 0xFFFFFFFF
-
-#define CONFIG_SYS_DDIR_B_VAL 0x00000000
-#define CONFIG_SYS_OCR1_B_VAL 0x00000000
-#define CONFIG_SYS_OCR2_B_VAL 0x00000000
-#define CONFIG_SYS_ICFA1_B_VAL 0xFFFFFFFF
-#define CONFIG_SYS_ICFA2_B_VAL 0xFFFFFFFF
-#define CONFIG_SYS_ICFB1_B_VAL 0xFFFFFFFF
-#define CONFIG_SYS_ICFB2_B_VAL 0xFFFFFFFF
-#define CONFIG_SYS_DR_B_VAL 0x00000000
-#define CONFIG_SYS_GIUS_B_VAL 0xFF3FFFF0
-#define CONFIG_SYS_ICR1_B_VAL 0x00000000
-#define CONFIG_SYS_ICR2_B_VAL 0x00000000
-#define CONFIG_SYS_IMR_B_VAL 0x00000000
-#define CONFIG_SYS_GPR_B_VAL 0x00000000
-#define CONFIG_SYS_PUEN_B_VAL 0xFFFFFFFF
-
-#define CONFIG_SYS_DDIR_C_VAL 0x00000000
-#define CONFIG_SYS_OCR1_C_VAL 0x00000000
-#define CONFIG_SYS_OCR2_C_VAL 0x00000000
-#define CONFIG_SYS_ICFA1_C_VAL 0xFFFFFFFF
-#define CONFIG_SYS_ICFA2_C_VAL 0xFFFFFFFF
-#define CONFIG_SYS_ICFB1_C_VAL 0xFFFFFFFF
-#define CONFIG_SYS_ICFB2_C_VAL 0xFFFFFFFF
-#define CONFIG_SYS_DR_C_VAL 0x00000000
-#define CONFIG_SYS_GIUS_C_VAL 0xFFFFC07F
-#define CONFIG_SYS_ICR1_C_VAL 0x00000000
-#define CONFIG_SYS_ICR2_C_VAL 0x00000000
-#define CONFIG_SYS_IMR_C_VAL 0x00000000
-#define CONFIG_SYS_GPR_C_VAL 0x00000000
-#define CONFIG_SYS_PUEN_C_VAL 0xFFFFFF87
-
-#define CONFIG_SYS_DDIR_D_VAL 0x00000000
-#define CONFIG_SYS_OCR1_D_VAL 0x00000000
-#define CONFIG_SYS_OCR2_D_VAL 0x00000000
-#define CONFIG_SYS_ICFA1_D_VAL 0xFFFFFFFF
-#define CONFIG_SYS_ICFA2_D_VAL 0xFFFFFFFF
-#define CONFIG_SYS_ICFB1_D_VAL 0xFFFFFFFF
-#define CONFIG_SYS_ICFB2_D_VAL 0xFFFFFFFF
-#define CONFIG_SYS_DR_D_VAL 0x00000000
-#define CONFIG_SYS_GIUS_D_VAL 0xFFFFFFFF
-#define CONFIG_SYS_ICR1_D_VAL 0x00000000
-#define CONFIG_SYS_ICR2_D_VAL 0x00000000
-#define CONFIG_SYS_IMR_D_VAL 0x00000000
-#define CONFIG_SYS_GPR_D_VAL 0x00000000
-#define CONFIG_SYS_PUEN_D_VAL 0xFFFFFFFF
-
-#define CONFIG_SYS_DDIR_E_VAL 0x00000000
-#define CONFIG_SYS_OCR1_E_VAL 0x00000000
-#define CONFIG_SYS_OCR2_E_VAL 0x00000000
-#define CONFIG_SYS_ICFA1_E_VAL 0xFFFFFFFF
-#define CONFIG_SYS_ICFA2_E_VAL 0xFFFFFFFF
-#define CONFIG_SYS_ICFB1_E_VAL 0xFFFFFFFF
-#define CONFIG_SYS_ICFB2_E_VAL 0xFFFFFFFF
-#define CONFIG_SYS_DR_E_VAL 0x00000000
-#define CONFIG_SYS_GIUS_E_VAL 0xFCFFCCF8
-#define CONFIG_SYS_ICR1_E_VAL 0x00000000
-#define CONFIG_SYS_ICR2_E_VAL 0x00000000
-#define CONFIG_SYS_IMR_E_VAL 0x00000000
-#define CONFIG_SYS_GPR_E_VAL 0x00000000
-#define CONFIG_SYS_PUEN_E_VAL 0xFFFFFFFF
-
-#define CONFIG_SYS_DDIR_F_VAL 0x00000000
-#define CONFIG_SYS_OCR1_F_VAL 0x00000000
-#define CONFIG_SYS_OCR2_F_VAL 0x00000000
-#define CONFIG_SYS_ICFA1_F_VAL 0xFFFFFFFF
-#define CONFIG_SYS_ICFA2_F_VAL 0xFFFFFFFF
-#define CONFIG_SYS_ICFB1_F_VAL 0xFFFFFFFF
-#define CONFIG_SYS_ICFB2_F_VAL 0xFFFFFFFF
-#define CONFIG_SYS_DR_F_VAL 0x00000000
-#define CONFIG_SYS_GIUS_F_VAL 0xFF7F8000
-#define CONFIG_SYS_ICR1_F_VAL 0x00000000
-#define CONFIG_SYS_ICR2_F_VAL 0x00000000
-#define CONFIG_SYS_IMR_F_VAL 0x00000000
-#define CONFIG_SYS_GPR_F_VAL 0x00000000
-#define CONFIG_SYS_PUEN_F_VAL 0xFFFFFFFF
-
-/* Enforce DDR signal strengh & enable USB/PP/DMA burst override bits */
-#define CONFIG_SYS_GPCR_VAL 0x0003000F
-
-#define CONFIG_SYS_ESDMISC_VAL ESDMISC_LHD+ESDMISC_MDDREN
-
-/* FMCR select num LPDDR RAMs and nand 16bits, 2KB pages */
-#if (CONFIG_NR_DRAM_BANKS == 1)
-#define CONFIG_SYS_FMCR_VAL 0xFFFFFFF9
-#elif (CONFIG_NR_DRAM_BANKS == 2)
-#define CONFIG_SYS_FMCR_VAL 0xFFFFFFFB
-#endif
-
-#define CONFIG_SYS_AIPI1_PSR0_VAL 0x20040304
-#define CONFIG_SYS_AIPI1_PSR1_VAL 0xDFFBFCFB
-#define CONFIG_SYS_AIPI2_PSR0_VAL 0x00000000
-#define CONFIG_SYS_AIPI2_PSR1_VAL 0xFFFFFFFF
-
-/* PCCR enable DMA FEC I2C1 IIM SDHC1 */
-#define CONFIG_SYS_PCCR0_VAL 0x05070400
-#define CONFIG_SYS_PCCR1_VAL 0xA14A0408
-
-/*
- * From here, there should not be any user configuration.
- * All Equations are automatic
- */
-
-/* fixme none integer value (7.5ns) => 2*hclock = 15ns */
-#define CONFIG_SYS_2XHCLK_LGTH (2000/CONFIG_HCLK_FREQ) /* ns */
-
-/* USB 60 MHz ; ARM up to 400; HClK up to 133MHz*/
-#ifdef CONFIG_MX27_CLK26
-#define CSCR_MASK 0x0303800D
-#else
-#define CSCR_MASK 0x0300800D
-#endif
-#define CONFIG_SYS_CSCR_VAL\
- (CSCR_MASK \
- |((((CONFIG_SPLL_FREQ/CONFIG_USB_FREQ)-1)&0x07)<<28) \
- |((((CONFIG_MPLL_FREQ/CONFIG_ARM_FREQ)-1)&0x03)<<12) \
- |((((CONFIG_SYS_CLK_FREQ/CONFIG_HCLK_FREQ)-1)&0x03)<<8))
-
-/* SSIx CLKO NFC H264 MSHC */
-#define CONFIG_SYS_PCDR0_VAL\
- (((((CONFIG_SYS_CLK_FREQ/CONFIG_MSHC_FREQ)-1)&0x3F)<<0) \
- |((((CONFIG_HCLK_FREQ/CONFIG_NFC_FREQ)-1)&0x0F)<<6) \
- |(((((CONFIG_SYS_CLK_FREQ/CONFIG_H264_FREQ)-2)*2)&0x3F)<<10)\
- |(((((CONFIG_SYS_CLK_FREQ/CONFIG_SSI1_FREQ)-2)*2)&0x3F)<<16)\
- |(((CONFIG_CLK0_DIV)&0x07)<<22)\
- |(((CONFIG_CLK0_EN)&0x01)<<25)\
- |(((((CONFIG_SYS_CLK_FREQ/CONFIG_SSI2_FREQ)-2)*2)&0x3F)<<26))
-
-/* PERCLKx */
-#define CONFIG_SYS_PCDR1_VAL\
- (((((CONFIG_SYS_CLK_FREQ/CONFIG_PERIF1_FREQ)-1)&0x3F)<<0) \
- |((((CONFIG_SYS_CLK_FREQ/CONFIG_PERIF2_FREQ)-1)&0x3F)<<8) \
- |((((CONFIG_SYS_CLK_FREQ/CONFIG_PERIF3_FREQ)-1)&0x3F)<<16) \
- |((((CONFIG_SYS_CLK_FREQ/CONFIG_PERIF4_FREQ)-1)&0x3F)<<24))
-
-/* SDRAM controller programming Values */
-#if (((2*CONFIG_SYS_SDRAM_CLOCK_CYCLE_CL_1)>(3*CONFIG_SYS_2XHCLK_LGTH))\
- ||(CONFIG_SYS_SDRAM_CLOCK_CYCLE_CL_1<1))
-#define REG_FIELD_SCL_VAL 3
-#define REG_FIELD_SCLIMX_VAL 0
-#else
-#define REG_FIELD_SCL_VAL\
- ((2*CONFIG_SYS_SDRAM_CLOCK_CYCLE_CL_1+CONFIG_SYS_2XHCLK_LGTH-1)/CONFIG_SYS_2XHCLK_LGTH)
-#define REG_FIELD_SCLIMX_VAL REG_FIELD_SCL_VAL
-#endif
-
-//#define REG_FIELD_SCL_VAL 3
-//#define REG_FIELD_SCLIMX_VAL 3
-
-#if ((2*CONFIG_SYS_SDRAM_RC_DELAY)>(16*CONFIG_SYS_2XHCLK_LGTH))
-#define REG_FIELD_SRC_VAL 0
-#else
-#define REG_FIELD_SRC_VAL\
- ((2*CONFIG_SYS_SDRAM_RC_DELAY+CONFIG_SYS_2XHCLK_LGTH-1)/CONFIG_SYS_2XHCLK_LGTH)
-#endif
-
-/* TBD Power down timer ; PRCT Bit Field Encoding; burst length 8 ; FP = 0*/
-#define REG_ESDCTL_BASE_CONFIG (0x80020485\
- | (((CONFIG_SYS_SDRAM_NUM_ROW-11)&0x7)<<24)\
- | (((CONFIG_SYS_SDRAM_NUM_COL-8)&0x3)<<20)\
- | (((CONFIG_SYS_SDRAM_REFRESH)&0x7)<<13))
-
-#define CONFIG_SYS_NORMAL_RW_CMD ((0x0<<28)+REG_ESDCTL_BASE_CONFIG)
-#define CONFIG_SYS_PRECHARGE_CMD ((0x1<<28)+REG_ESDCTL_BASE_CONFIG)
-#define CONFIG_SYS_AUTOREFRESH_CMD ((0x2<<28)+REG_ESDCTL_BASE_CONFIG)
-#define CONFIG_SYS_SET_MODE_REG_CMD ((0x3<<28)+REG_ESDCTL_BASE_CONFIG)
-
-/* ESDRAMC Configuration Registers : force CL=3 to lpddr */
-#define CONFIG_SYS_SDRAM_ESDCFG_REGISTER_VAL (0x0\
- | (((((2*CONFIG_SYS_SDRAM_EXIT_PWD+CONFIG_SYS_2XHCLK_LGTH-1)/CONFIG_SYS_2XHCLK_LGTH)-1)&0x3)<<21)\
- | (((CONFIG_SYS_SDRAM_W2R_DELAY-1)&0x1)<<20)\
- | (((((2*CONFIG_SYS_SDRAM_ROW_PRECHARGE_DELAY+CONFIG_SYS_2XHCLK_LGTH-1)/CONFIG_SYS_2XHCLK_LGTH)-1)&0x3)<<18)\
- | (((CONFIG_SYS_SDRAM_TMRD_DELAY-1)&0x3)<<16)\
- | (((CONFIG_SYS_SDRAM_TWR_DELAY)&0x1)<<15)\
- | (((((2*CONFIG_SYS_SDRAM_RAS_DELAY+CONFIG_SYS_2XHCLK_LGTH-1)/CONFIG_SYS_2XHCLK_LGTH)-1)&0x7)<<12)\
- | (((((2*CONFIG_SYS_SDRAM_RRD_DELAY+CONFIG_SYS_2XHCLK_LGTH-1)/CONFIG_SYS_2XHCLK_LGTH)-1)&0x3)<<10)\
- | (((REG_FIELD_SCLIMX_VAL)&0x3)<<8)\
- | (((((2*CONFIG_SYS_SDRAM_RCD_DELAY+CONFIG_SYS_2XHCLK_LGTH-1)/CONFIG_SYS_2XHCLK_LGTH)-1)&0x7)<<4)\
- | (((REG_FIELD_SRC_VAL)&0x0F)<<0))
-
-/* Issue Mode register Command to SDRAM*/
-#define CONFIG_SYS_SDRAM_MODE_REGISTER_VAL\
- ((((CONFIG_SYS_SDRAM_BURST_LENGTH)&0x7)<<(0))\
- | (((REG_FIELD_SCL_VAL)&0x7)<<(4))\
- | ((0)<<(3)) /* sequentiql access */ \
- /*| (((CONFIG_SYS_SDRAM_SINGLE_ACCESS)&0x1)<<(1))*/)
-
-/* Issue Extended Mode register Command to SDRAM*/
-#define CONFIG_SYS_SDRAM_EXT_MODE_REGISTER_VAL\
- ((CONFIG_SYS_SDRAM_PARTIAL_ARRAY_SR<<0)\
- | (CONFIG_SYS_SDRAM_DRIVE_STRENGH<<(5))\
- | (1<<(CONFIG_SYS_SDRAM_NUM_COL+CONFIG_SYS_SDRAM_NUM_ROW+1+2)))
-
-/* Issue Precharge all Command to SDRAM*/
-#define CONFIG_SYS_SDRAM_PRECHARGE_ALL_VAL (1<<10)
-
-#endif /* __CONFIG_H */
diff --git a/buildroot/target/device/armadeus/apf28/apf28-u-boot-2011.12.h b/buildroot/target/device/armadeus/apf28/apf28-u-boot-2011.12.h
deleted file mode 100644
index 5da1a50..0000000
--- a/buildroot/target/device/armadeus/apf28/apf28-u-boot-2011.12.h
+++ /dev/null
@@ -1,392 +0,0 @@
-/*
- * Configuration settings for the Armadeus Project motherboard APF28.
- *
- * Copyright (C) 2011-2012 ej / Armadeus Project <eri...@ar...>
- *
- * 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 the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * This program 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
- * MA 02111-1307 USA
- */
-
-#ifndef __CONFIG_H
-#define __CONFIG_H
-
-#include <asm/arch/regs-base.h>
-
-#define CONFIG_VERSION_VARIABLE
-#define CONFIG_ENV_VERSION "1.0"
-#define CONFIG_IDENT_STRING " apf28 patch 1.0"
-#define CONFIG_BOARD_NAME apf28
-
-/*
- * SoC configurations
- */
-#define CONFIG_MX28 /* i.MX28 SoC */
-#define CONFIG_MACH_TYPE 3845 /* APF9328 */
-
-/*
- * Enable the call to miscellaneous platform dependent initialization.
- */
-#define CONFIG_SYS_NO_FLASH /* to be define before <config_cmd_default.h> */
-#define CONFIG_BOARD_EARLY_INIT_F
-#define CONFIG_BOARD_LATE_INIT
-#define CONFIG_ARCH_CPU_INIT
-#define CONFIG_ARCH_MISC_INIT
-
-/*
- * Board display option
- */
-#define CONFIG_DISPLAY_CPUINFO
-#define CONFIG_DOS_PARTITION
-
-/*
- * SPL
- */
-#define CONFIG_SPL
-#define CONFIG_SPL_NO_CPU_SUPPORT_CODE
-#define CONFIG_SPL_START_S_PATH "arch/arm/cpu/arm926ejs/mx28"
-#define CONFIG_SPL_LDSCRIPT "arch/arm/cpu/arm926ejs/mx28/u-boot-spl.lds"
-#define CONFIG_SPL_LIBCOMMON_SUPPORT
-#define CONFIG_SPL_LIBGENERIC_SUPPORT
-
-/*
- * BOOTP options
- */
-#define CONFIG_BOOTP_SUBNETMASK
-#define CONFIG_BOOTP_GATEWAY
-#define CONFIG_BOOTP_HOSTNAME
-#define CONFIG_BOOTP_BOOTPATH
-#define CONFIG_BOOTP_BOOTFILESIZE
-#define CONFIG_BOOTP_DNS
-#define CONFIG_BOOTP_DNS2
-
-#define CONFIG_HOSTNAME CONFIG_BOARD_NAME
-#define CONFIG_ROOTPATH "/tftpboot/" MK_STR(CONFIG_BOARD_NAME) "-root"
-
-/*
- * U-Boot Commands
- */
-#include <config_cmd_default.h>
-
-#define CONFIG_CMD_ASKENV /* ask for env variable */
-#define CONFIG_CMD_BSP /* Board Specific functions */
-#define CONFIG_CMD_CACHE
-#define CONFIG_CMD_DATE
-#define CONFIG_CMD_DHCP
-#define CONFIG_CMD_DNS
-#define CONFIG_CMD_EXT2
-#define CONFIG_CMD_FAT
-#define CONFIG_CMD_GPIO
-#define CONFIG_CMD_MII
-#define CONFIG_CMD_MMC
-#define CONFIG_CMD_MTDPARTS
-#define CONFIG_CMD_NAND
-#define CONFIG_CMD_NAND_TRIMFFS
-#define CONFIG_CMD_NFS
-#define CONFIG_CMD_PING
-#define CONFIG_CMD_SETEXPR
-#define CONFIG_CMD_USB
-#define CONFIG_CMD_UBI
-#define CONFIG_CMD_UBIFS
-
-/*
- * Memory configurations
- */
-#define CONFIG_NR_DRAM_BANKS 1 /* 1 bank of DRAM */
-#define PHYS_SDRAM_1 0x40000000 /* Base address */
-#define PHYS_SDRAM_1_SIZE 0x20000000 /* Max 512 MiB RAM */
-#define CONFIG_SYS_SDRAM_BASE PHYS_SDRAM_1
-#define CONFIG_SYS_MALLOC_LEN 0x00400000 /* 4 MB for malloc */
-#define CONFIG_SYS_GBL_DATA_SIZE 128 /* Initial data */
-#define CONFIG_SYS_MEMTEST_START 0x40000000 /* Memtest start adr */
-#define CONFIG_SYS_MEMTEST_END 0x40400000 /* 4 MB RAM test */
-/* Point initial SP in SRAM so SPL can use it too. */
-
-#define CONFIG_SYS_INIT_RAM_ADDR 0x00002000
-#define CONFIG_SYS_INIT_RAM_SIZE (128 * 1024)
-#define CONFIG_SYS_INIT_SP_OFFSET \
- (CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE)
-#define CONFIG_SYS_INIT_SP_ADDR \
- (CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_INIT_SP_OFFSET)
-
-#define CONFIG_SYS_TEXT_BASE 0x40000000
-
-/*
- * FLASH organization
- */
-/* First 1 MiB reservered for mx28 NAND BCBÂ tables */
-/* last 2 MiB reservered for 2 copies of U-Boot */
-#define CONFIG_SYS_MONITOR_OFFSET 0x00100000 /* offset in NAND */
-#define CONFIG_SYS_MONITOR_LEN 0x00100000 /* 2 x 1MB */
-#define CONFIG_ENV_IS_IN_NAND
-#define CONFIG_ENV_OFFSET 0x00300000 /* NAND offset */
-#define CONFIG_ENV_SIZE 0x00020000 /* 128kB */
-#define CONFIG_ENV_RANGE 0x00080000 /* 512kB */
-#define CONFIG_ENV_OFFSET_REDUND \
- (CONFIG_ENV_OFFSET + CONFIG_ENV_RANGE) /* +512kB */
-#define CONFIG_ENV_SIZE_REDUND CONFIG_ENV_SIZE /* 512kB */
-#define CONFIG_KERNEL_OFFSET 0x00500000 /* 8MB */
-#define CONFIG_ROOTFS_OFFSET 0x00D00000
-
-#define CONFIG_MTDMAP "gpmi-nfc-main"
-#define MTDIDS_DEFAULT "nand0=" CONFIG_MTDMAP
-#define MTDPARTS_DEFAULT \
- "mtdparts=" CONFIG_MTDMAP \
- ":3M(u-boot)ro," \
- "512K(env)," \
- "512K(env2)," \
- "512K(dtb)," \
- "512K(splash)," \
- "8M(kernel)," \
- "-(rootfs)"
-
-/*
- * U-Boot general configurations
- */
-#define CONFIG_SYS_LONGHELP
-#define CONFIG_SYS_PROMPT "BIOS> "
-#define CONFIG_SYS_CBSIZE 2048 /* Console I/O buffer size */
-#define CONFIG_SYS_PBSIZE \
- (CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT) + 16)
- /* Print buffer size */
-#define CONFIG_SYS_MAXARGS 16 /* Max number of command args */
-#define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE
- /* Boot argument buffer size */
-#define CONFIG_AUTO_COMPLETE /* Command auto complete */
-#define CONFIG_CMDLINE_EDITING /* Command history etc */
-#define CONFIG_SYS_HUSH_PARSER /* enable the "hush" shell */
-#define CONFIG_SYS_PROMPT_HUSH_PS2 "> " /* secondary prompt string */
-
-/*
- * Boot Linux
- */
-#define CONFIG_CMDLINE_TAG /* send commandline to Kernel */
-#define CONFIG_SETUP_MEMORY_TAGS /* send memory definition to kernel */
-#define CONFIG_INITRD_TAG /* send initrd params */
-/*
-#define CONFIG_REVISION_TAG
-#define CONFIG_OF_LIBFDT
-*/
-#define CONFIG_BOOTDELAY 5
-#define CONFIG_ZERO_BOOTDELAY_CHECK
-#define CONFIG_BOOTFILE MK_STR(CONFIG_BOARD_NAME) "-linux.bin"
-#define CONFIG_BOOTARGS "console=" MK_STR(ACFG_CONSOLE_DEV) "," \
- MK_STR(CONFIG_BAUDRATE) " " MTDPARTS_DEFAULT \
- " ubi.mtd=rootfs root=ubi0:rootfs rootfstype=ubifs "
-
-#define ACFG_CONSOLE_DEV ttyAM0
-#define CONFIG_BOOTCOMMAND "run ubifsboot"
-#define CONFIG_SYS_AUTOLOAD "no"
-/*
- * Default load address for user programs and kernel
- */
-#define CONFIG_LOADADDR 0x40000000
-#define CONFIG_SYS_LOAD_ADDR CONFIG_LOADADDR
-#define CONFIG_SYS_TFTP_LOADADDR CONFIG_LOADADDR
-
-/*
- * Extra Environments
- */
-#define CONFIG_EXTRA_ENV_SETTINGS \
- "env_version=" CONFIG_ENV_VERSION "\0" \
- "consoledev=" MK_STR(ACFG_CONSOLE_DEV) "\0" \
- "mtdparts=" MTDPARTS_DEFAULT "\0" \
- "partition=nand0,6\0" \
- "u-boot_addr=" MK_STR(CONFIG_SYS_MONITOR_OFFSET) "\0" \
- "u-boot_len=" MK_STR(CONFIG_SYS_MONITOR_LEN) "\0" \
- "kernel_addr=" MK_STR(CONFIG_KERNEL_OFFSET) "\0" \
- "rootfs_addr=" MK_STR(CONFIG_ROOTFS_OFFSET) "\0" \
- "board_name=" MK_STR(CONFIG_BOARD_NAME) "\0" \
- "addnfsargs=setenv bootargs ${bootargs} " \
- "root=/dev/nfs rw nfsroot=${serverip}:${rootpath}\0" \
- "addubifsargs=setenv bootargs ${bootargs} " \
- "ubi.mtd=rootfs root=ubi0:rootfs rootfstype=ubifs\0" \
- "addmmcargs=setenv bootargs ${bootargs} " \
- "root=/dev/mmcblk0p1 rootfstype=ext2\0" \
- "addipargs=setenv bootargs ${bootargs} " \
- "ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:" \
- "${hostname}:eth0:off\0" \
- "nfsboot=setenv bootargs console=${consoledev},${baudrate} " \
- "${mtdparts}; run addnfsargs addipargs; setenv autostart yes;" \
- "nboot kernel\0" \
- "ubifsboot=setenv bootargs console=${consoledev},${baudrate} " \
- "${mtdparts};run addubifsargs addipargs; setenv autostart yes;"\
- "nboot kernel\0" \
- "mmcboot=setenv bootargs console=${consoledev},${baudrate} " \
- "${mtdparts}; run addmmcargs addipargs; setenv autostart yes;" \
- "nboot kernel\0" \
- "flash_uboot=if bcb nand.write ; then " \
- "nand erase ${u-boot_addr} ${u-boot_len} ; " \
- "nand write.trimffs ${fileaddr} ${u-boot_addr} ${filesize};" \
- "nand erase ${u-boot2_addr} ${u-boot_len};" \
- "if nand write.trimffs ${fileaddr} ${u-boot2_addr} ${filesize};"\
- "then echo Flashing of uboot succeed;" \
- "else echo Flashing of uboot failed;" \
- "fi; " \
- "fi; \0" \
- "flash_kernel=nand erase.part kernel;" \
- "if nand write.trimffs ${fileaddr} ${kernel_addr} ${filesize};"\
- "then echo Flashing of kernel succeed;" \
- "else echo Flashing of kernel failed;" \
- "fi\0" \
- "flash_rootfs=nand erase.part rootfs;" \
- "if nand write.trimffs ${fileaddr} ${rootfs_addr} ${filesize};"\
- "then echo Flashing of rootfs succeed;" \
- "else echo Flashing of rootfs failed;" \
- "fi\0" \
- "flash_reset_env=env default -f; saveenv;" \
- "echo Flash environment variables erased!\0" \
- "download_uboot=tftpboot ${loadaddr} ${board_name}-u-boot.sb\0" \
- "download_kernel=tftpboot ${loadaddr} ${board_name}-linux.bin\0" \
- "download_rootfs=tftpboot ${loadaddr} ${board_name}-rootfs.ubi\0" \
- "update_uboot=run download_uboot flash_uboot\0" \
- "update_kernel=run download_kernel flash_kernel\0" \
- "update_rootfs=run download_rootfs flash_rootfs\0" \
- "update_all=run download_kernel flash_kernel download_rootfs " \
- "flash_rootfs download_uboot flash_uboot\0" \
- "unlock_regs=echo unlock_reg not needed anymore\0"
-
-/*
- * Serial Driver
- */
-#define CONFIG_PL011_SERIAL
-#define CONFIG_PL011_CLOCK 24000000
-#define CONFIG_PL01x_PORTS { (void *)MXS_UARTDBG_BASE }
-#define CONFIG_CONS_INDEX 0
-#define CONFIG_BAUDRATE 115200 /* Default baud rate */
-#define CONFIG_SYS_BAUDRATE_TABLE { 9600, 19200, 38400, 57600, 115200 }
-
-/*
- * GPIO
- */
-#define CONFIG_MXS_GPIO
-
-/*
- * NOR
- */
-
-/*
- * NAND
- */
-#define CONFIG_NAND_MXS
-#define CONFIG_APBH_DMA
-#define CONFIG_SYS_NAND_BASE 0x60000000
-#define CONFIG_SYS_MAX_NAND_DEVICE 1
-
-#define CONFIG_SYS_NAND_5_ADDR_CYCLE
-#define NAND_MAX_CHIPS 1
-
-#define CONFIG_SYS_DIRECT_FLASH_TFTP
-#define CONFIG_FLASH_SHOW_PROGRESS 45
-#define CONFIG_SYS_NAND_QUIET 1
-
-/* Environment is in NAND */
-#define CONFIG_ENV_IS_IN_NAND
-#define CONFIG_ENV_OVERWRITE
-
-/*
- * Partitions & Filsystems
- */
-#define CONFIG_MTD_DEVICE
-#define CONFIG_MTD_PARTITIONS
-#define CONFIG_DOS_PARTITION
-#define CONFIG_SUPPORT_VFAT
-
-/*
- * UBIFS
- */
-#define CONFIG_RBTREE
-#define CONFIG_LZO
-
-/*
- * Ethernet (on SOC mx28 FEC)
- */
-#ifdef CONFIG_CMD_NET
-#define CONFIG_NET_MULTI
-#define CONFIG_ETHPRIME "FEC0"
-#define CONFIG_FEC_MXC
-#define CONFIG_FEC_MXC_MULTI
-#define CONFIG_MII
-#define CONFIG_DISCOVER_PHY
-#define CONFIG_FEC_XCV_TYPE RMII
-#define CONFIG_M28_FEC_MAC_IN_OCOTP
-#define CONFIG_NETCONSOLE 1
-#endif
-#define ACFG_OUI 0x001EAC
-
-/*
- * Fuses - OCOTP
- */
-/* #define CONFIG_IMX_OCOTP */
-#define IMX_OCOTP_BASE MXS_OCOTP_BASE
-
-/*
- * I2C
- */
-#ifdef CONFIG_CMD_I2C
-#define CONFIG_I2C_MXS
-#define CONFIG_HARD_I2C
-#define CONFIG_SYS_I2C_SPEED 400000
-#endif
-
-/*
- * SPI
- */
-#ifdef CONFIG_CMD_SPI
-#define CONFIG_HARD_SPI
-#define CONFIG_MXS_SPI
-#define CONFIG_SPI_HALF_DUPLEX
-#define CONFIG_DEFAULT_SPI_BUS 2
-#define CONFIG_DEFAULT_SPI_MODE SPI_MODE_0
-#endif
-
-/*
- * SD/MMC
- */
-#ifdef CONFIG_CMD_MMC
-#define CONFIG_MMC
-#define CONFIG_GENERIC_MMC
-#define CONFIG_MXS_MMC
-#endif
-
-/*
- * RTC
- */
-#ifdef CONFIG_CMD_DATE
-/* Use the internal RTC in the MXS chip */
-#define CONFIG_RTC_INTERNAL
-#define CONFIG_RTC_MXS
-#endif
-
-/*
- * Watchdog Config
- */
-
-/*
- * USB
- */
-#ifdef CONFIG_CMD_USB
-#define CONFIG_USB_EHCI
-#define CONFIG_USB_EHCI_MXS
-#define CONFIG_EHCI_MXS_PORT 1
-#define CONFIG_EHCI_IS_TDI
-#define CONFIG_USB_STORAGE
-#endif
-
-/*
- * Clocks
- */
-#define CONFIG_SYS_HZ 1000 /* Ticks per second */
-
-#endif /* __CONFIG_H */
diff --git a/buildroot/target/device/armadeus/apf51/apf51-u-boot-2011.12.h b/buildroot/target/device/armadeus/apf51/apf51-u-boot-2011.12.h
deleted file mode 100644
index 4202689..0000000
--- a/buildroot/target/device/armadeus/apf51/apf51-u-boot-2011.12.h
+++ /dev/null
@@ -1,774 +0,0 @@
-/*
- *
- * Configuration settings for the Armadeus Project motherboard APF51
- *
- * Copyright (C) 2010-2012 ej / Armadeus Project <eri...@ar...>
- *
- * 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 the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * This program 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
- * MA 02111-1307 USA
- */
-
-#ifndef __CONFIG_H
-#define __CONFIG_H
-
-#define CONFIG_VERSION_VARIABLE
-#define CONFIG_ENV_VERSION "1.0"
-#define CONFIG_IDENT_STRING " apf51 patch 1.2"
-#define CONFIG_BOARD_NAME apf51
-
-/*
- * SoC configurations
- */
-#define CONFIG_ARMV7 /* This is armv7 Cortex-A8 CPU */
-#define CONFIG_MX51 /* in a Freescale i.MX51 Chip */
-#define CONFIG_MACH_TYPE 2795 /* APF51 */
-
-/*
- * Enable the call to miscellaneous platform dependent initialization.
- */
-#define CONFIG_SYS_NO_FLASH /* to be define before <config_cmd_default.h> */
-#define CONFIG_BOARD_EARLY_INIT_F
-#define CONFIG_MISC_INIT_R
-#define CONFIG_BOARD_LATE_INIT
-
-/*
- * Board display option
- */
-#define CONFIG_DISPLAY_BOARDINFO
-#define CONFIG_DISPLAY_CPUINFO
-
-/*
- * SPL
- */
-#ifndef CONFIG_DOWNLOAD_BY_DEBUGGER
-#define CONFIG_FLASH_HEADER
-#define CONFIG_FLASH_HEADER_OFFSET 0x400
-#define CONFIG_FLASH_HEADER_BARKER 0xB1
-#endif
-
-#define CONFIG_NAND_U_BOOT
-/* APF Copy SPL+U-Boot here */
-#define CONFIG_SYS_NAND_U_BOOT_DST CONFIG_SYS_LOAD_ADDR
-/* APF Size is the partion size */
-#define CONFIG_SYS_NAND_U_BOOT_SIZE CONFIG_SYS_MONITOR_LEN
-
-/*
- * BOOTP options
- */
-#define CONFIG_BOOTP_SUBNETMASK
-#define CONFIG_BOOTP_GATEWAY
-#define CONFIG_BOOTP_HOSTNAME
-#define CONFIG_BOOTP_BOOTPATH
-#define CONFIG_BOOTP_BOOTFILESIZE
-/*
-#define CONFIG_BOOTP_DNS
-#define CONFIG_BOOTP_DNS2
-*/
-
-#define CONFIG_HOSTNAME CONFIG_BOARD_NAME
-#define CONFIG_ROOTPATH "/tftpboot/" MK_STR(CONFIG_BOARD_NAME) "-root"
-
-/*
- * U-Boot Commands
- */
-#include <config_cmd_default.h>
-
-#define CONFIG_CMD_ASKENV /* ask for env variable */
-#define CONFIG_CMD_BSP /* Board Specific functions */
-#define CONFIG_CMD_CACHE /* icache, dcache */
-#define CONFIG_CMD_DHCP /* DHCP Support */
-/*#define CONFIG_CMD_DNS*/
-/*#define CONFIG_CMD_I2C*/ /* I2C serial bus support */
-#define CONFIG_CMD_IIM /* imx iim fuse */
-#define CONFIG_CMD_MTDPARTS /* MTD partition support */
-#define CONFIG_CMD_NAND /* NAND support */
-#define CONFIG_CMD_NAND_LOCK_UNLOCK
-#define CONFIG_CMD_NAND_TRIMFFS
-#define CONFIG_CMD_NFS
-#define CONFIG_CMD_PING /* ping support */
-/*#define CONFIG_CMD_SETEXPR*/ /* setexpr support */
-/*#define CONFIG_CMD_UBI*/
-/*#define CONFIG_CMD_UBIFS*/
-
-/*
- * Memory configurations
- */
-#define CONFIG_NR_DRAM_POPULATED 1
-#define CONFIG_NR_DRAM_BANKS 2
-#define CONFIG_SYS_SDRAM_BASE CSD0_BASE_ADDR /* SDRAM bank #1 */
-#define PHYS_SDRAM_SIZE 256
-#define PHYS_SDRAM_1_SIZE (PHYS_SDRAM_SIZE) * 1024 * 1024
-#define PHYS_SDRAM_2_SIZE (PHYS_SDRAM_SIZE) * 1024 * 1024
-#define CONFIG_SYS_MALLOC_LEN (CONFIG_ENV_SIZE + (2 * 1024 * 1024) )
-#define CONFIG_SYS_MEMTEST_START 0x90000000 /* memtest works on */
-#define CONFIG_SYS_MEMTEST_END 0x90100000 /* 1st MiB in DRAM */
-
-#define CONFIG_SYS_INIT_RAM_ADDR (IRAM_BASE_ADDR)
-#define CONFIG_SYS_INIT_RAM_SIZE (IRAM_SIZE)
-
-#define CONFIG_SYS_INIT_SP_OFFSET \
- (CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE)
-#define CONFIG_SYS_INIT_SP_ADDR \
- (CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_INIT_SP_OFFSET)
-
-#define CONFIG_SYS_TEXT_BASE 0x97000000
-
-/*
- * FLASH organization
- */
-#define CONFIG_SYS_MONITOR_OFFSET 0x00000000 /* offset in NAND */
-#define CONFIG_SYS_MONITOR_LEN 0x00100000 /* 1MB */
-#define CONFIG_ENV_IS_IN_NAND
-#define CONFIG_ENV_OVERWRITE
-#define CONFIG_ENV_OFFSET 0x00100000 /* NAND offset */
-#define CONFIG_ENV_SIZE 0x00020000 /* 128kB */
-#define CONFIG_ENV_RANGE 0x00080000 /* 512kB */
-#define CONFIG_ENV_OFFSET_REDUND \
- (CONFIG_ENV_OFFSET + CONFIG_ENV_RANGE) /* +512kB */
-#define CONFIG_ENV_SIZE_REDUND CONFIG_ENV_SIZE /* 512kB */
-#define CONFIG_FIRMWARE_OFFSET 0x00200000
-#define CONFIG_KERNEL_OFFSET 0x00400000
-#define CONFIG_ROOTFS_OFFSET 0x00C00000
-
-#define CONFIG_MTDMAP "mxc_nand"
-#define MTDIDS_DEFAULT "nand0=" CONFIG_MTDMAP
-#define MTDPARTS_DEFAULT "mtdparts=" CONFIG_MTDMAP \
- ":1M(u-boot)ro," \
- "512K(env)," \
- "512K(env2)," \
- "1M(firmware)," \
- "512K(dtb)," \
- "512K(splash)," \
- "8M(kernel)," \
- "-(rootfs)"
-
-/*
- * U-Boot general configurations
- */
-#define CONFIG_SYS_LONGHELP
-#define CONFIG_SYS_PROMPT "BIOS> " /* prompt string */
-#define CONFIG_SYS_CBSIZE 2048 /* console I/O buffer */
-#define CONFIG_SYS_PBSIZE \
- (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16)
- /* Print buffer size */
-#define CONFIG_SYS_MAXARGS 16 /* max command args */
-#define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE
- /* Boot argument buffer size */
-#define CONFIG_AUTO_COMPLETE
-#define CONFIG_CMDLINE_EDITING
-#define CONFIG_SYS_HUSH_PARSER /* enable the "hush" shell */
-#define CONFIG_SYS_PROMPT_HUSH_PS2 "> " /* secondary prompt string */
-
-/*
- * Boot Linux
- */
-#define CONFIG_CMDLINE_TAG /* send commandline to Kernel */
-#define CONFIG_SETUP_MEMORY_TAGS /* send memory definition to kernel */
-#define CONFIG_INITRD_TAG /* send initrd params */
-/*
-#define CONFIG_REVISION_TAG
-#define CONFIG_OF_LIBFDT
-*/
-
-#define CONFIG_BOOTDELAY 5
-#define CONFIG_ZERO_BOOTDELAY_CHECK
-#define CONFIG_BOOTFILE MK_STR(CONFIG_BOARD_NAME) "-linux.bin"
-#define CONFIG_BOOTARGS "console=" MK_STR(ACFG_CONSOLE_DEV) "," \
- MK_STR(CONFIG_BAUDRATE) " " MTDPARTS_DEFAULT \
- " ubi.mtd=rootfs root=ubi0:rootfs rootfstype=ubifs "
-
-#define ACFG_CONSOLE_DEV ttymxc2
-#define CONFIG_BOOTCOMMAND "run ubifsboot"
-#define CONFIG_SYS_AUTOLOAD "no"
-/*
- * Default load address for user programs and kernel
- */
-#define CONFIG_LOADADDR 0x90000000
-#define CONFIG_SYS_LOAD_ADDR CONFIG_LOADADDR
-#define CONFIG_SYS_TFTP_LOADADDR CONFIG_LOADADDR
-
-/*
- * Extra Environments
- */
-#define CONFIG_EXTRA_ENV_SETTINGS \
- "env_version=" CONFIG_ENV_VERSION "\0" \
- "consoledev=" MK_STR(ACFG_CONSOLE_DEV) "\0" \
- "mtdparts=" MTDPARTS_DEFAULT "\0" \
- "partition=nand0,7\0" \
- "uboot_addr=" MK_STR(CONFIG_SYS_MONITOR_OFFSET) "\0" \
- "env_addr=" MK_STR(CONFIG_ENV_OFFSET) "\0" \
- "firmware_addr=" MK_STR(CONFIG_FIRMWARE_OFFSET) "\0" \
- "kernel_addr=" MK_STR(CONFIG_KERNEL_OFFSET) "\0" \
- "rootfs_addr=" MK_STR(CONFIG_ROOTFS_OFFSET) "\0" \
- "board_name=" MK_STR(CONFIG_BOARD_NAME) "\0" \
- "addnfsargs=setenv bootargs ${bootargs} " \
- "root=/dev/nfs rw nfsroot=${serverip}:${rootpath}\0" \
- "addubifsargs=setenv bootargs ${bootargs} " \
- "ubi.mtd=rootfs root=ubi0:rootfs rootfstype=ubifs\0" \
- "addmmcargs=setenv bootargs ${bootargs} " \
- "root=/dev/mmcblk0p1 rootfstype=ext2\0" \
- "addipargs=setenv bootargs ${bootargs} " \
- "ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:" \
- "${hostname}:eth0:off\0" \
- "nfsboot=setenv bootargs console=${consoledev},${baudrate} " \
- "${mtdparts}; run addnfsargs addipargs; setenv autostart yes;" \
- "nboot 90800000 0 ${kernel_addr}\0" \
- "ubifsboot=setenv bootargs console=${consoledev},${baudrate} " \
- "${mtdparts};run addubifsargs addipargs; setenv autostart yes;"\
- "nboot 90800000 0 ${kernel_addr}\0" \
- "mmcboot=setenv bootargs console=${consoledev},${baudrate} " \
- "${mtdparts}; run addmmcargs addipargs; setenv autostart yes;" \
- "nboot 90800000 0 ${kernel_addr}\0" \
- "firmware_autoload=0\0" \
- "flash_uboot=nand unlock ${uboot_addr} ;" \
- "nand erase.part u-boot;" \
- "if nand write.trimffs ${fileaddr} ${uboot_addr} ${filesize};"\
- "then nand lock; nand unlock ${env_addr};" \
- "echo Flashing of uboot succeed;" \
- "else echo Flashing of uboot failed;" \
- "fi; \0" \
- "flash_firmware=nand erase.pa...
[truncated message content] |
|
From: Julien B a. A. <ar...@us...> - 2013-04-28 14:02:38
|
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, master has been updated
via 70724e4ccb039f3af5a8f496e601eedf4102de34 (commit)
from 3cf36c4872277442202817e379aacfec76faa680 (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 70724e4ccb039f3af5a8f496e601eedf4102de34
Author: Julien Boibessot <jul...@ar...>
Date: Sun Apr 28 16:02:04 2013 +0200
[DEBUG] Add a version number to imxregs
-----------------------------------------------------------------------
Summary of changes:
buildroot/package/armadeus/imxregs/imxregs.mk | 2 +-
target/linux/debug/imxregs/imxregs.c | 14 ++++++++------
2 files changed, 9 insertions(+), 7 deletions(-)
diff --git a/buildroot/package/armadeus/imxregs/imxregs.mk b/buildroot/package/armadeus/imxregs/imxregs.mk
index 51aa11f..bb6c98a 100644
--- a/buildroot/package/armadeus/imxregs/imxregs.mk
+++ b/buildroot/package/armadeus/imxregs/imxregs.mk
@@ -4,7 +4,7 @@
#
#############################################################
-IMXREGS_VERSION = 1.3
+IMXREGS_VERSION = 2013.05
IMXREGS_SITE = $(TOPDIR)/../target/linux/debug/imxregs/
ifeq ($(generic-package), )
IMXREGS_SITE_METHOD = copy
diff --git a/target/linux/debug/imxregs/imxregs.c b/target/linux/debug/imxregs/imxregs.c
index 84c5885..f08eba4 100644
--- a/target/linux/debug/imxregs/imxregs.c
+++ b/target/linux/debug/imxregs/imxregs.c
@@ -41,6 +41,8 @@
#include "imxregs.h"
#endif
+#define VERSION "2013.05"
+
/*#define DEBUG TRUE*/
#ifdef DEBUG
#define debug(fmt, arg...) printf(fmt, ##arg)
@@ -48,10 +50,10 @@
#define debug(fmt, arg...) ({ if (0) printf(fmt, ##arg); 0; })
#endif
-// fd for /dev/mem
+/* fd for /dev/mem */
static int fd = -1;
-// Get value of the register at the given address
+/* Get value of the register at the given address */
static int getmem(u32 addr)
{
void *map, *regaddr;
@@ -144,14 +146,14 @@ static void dumpentry(int i)
shiftdata = (data >> regs[i].shift) & regs[i].mask;
printf("%-25s ", regs[i].name);
switch (regs[i].type) {
- // Hexa printing
+ /* Hexa printing */
case 'x':
printf("%8x", shiftdata);
break;
case '<':
printf("%8u", 1 << shiftdata);
break;
- // Decimal printing
+ /* Decimal printing */
default:
printf("%8u", shiftdata);
break;
@@ -229,11 +231,11 @@ static void setreg(char *name, u32 val)
void usage(char *name)
{
- printf("%s for %s CPU\n"
+ printf("%s for %s CPU (version %s)\n"
"Usage: %s - to dump all known registers\n"
" %s <name> - to dump named register\n"
" %s <name> <value> - to set named register\n",
- name, IMX_TYPE, name, name, name);
+ name, IMX_TYPE, VERSION, name, name, name);
}
int main(int argc, char *argv[])
hooks/post-receive
--
armadeus
|
|
From: Fabien M <fa...@us...> - 2013-04-24 13:26:25
|
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, master has been updated
via 3cf36c4872277442202817e379aacfec76faa680 (commit)
from 3138c748a90ec4d2c0f5792c042286f4f762f064 (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 3cf36c4872277442202817e379aacfec76faa680
Author: Fabien Marteau <fab...@ar...>
Date: Wed Apr 24 15:26:04 2013 +0200
[apf28][kernel] refresh touch status only on touch detection
-----------------------------------------------------------------------
Summary of changes:
.../linux/2.6.35/453-armadeus-mxs-ts-fixes.patch | 61 ++++++++++----------
1 files changed, 30 insertions(+), 31 deletions(-)
diff --git a/patches/linux/2.6.35/453-armadeus-mxs-ts-fixes.patch b/patches/linux/2.6.35/453-armadeus-mxs-ts-fixes.patch
index 979ad1f..3f355a1 100644
--- a/patches/linux/2.6.35/453-armadeus-mxs-ts-fixes.patch
+++ b/patches/linux/2.6.35/453-armadeus-mxs-ts-fixes.patch
@@ -4,8 +4,8 @@ Signed-off-by: Nicolas Colombain <nic...@ar...>
Index: linux-2.6.35.3/drivers/input/touchscreen/mxs-ts.c
===================================================================
---- linux-2.6.35.3.orig/drivers/input/touchscreen/mxs-ts.c 2012-01-31 14:27:22.000000000 +0100
-+++ linux-2.6.35.3/drivers/input/touchscreen/mxs-ts.c 2012-02-03 17:42:26.000000000 +0100
+--- linux-2.6.35.3.orig/drivers/input/touchscreen/mxs-ts.c 2013-04-24 12:56:53.000000000 +0200
++++ linux-2.6.35.3/drivers/input/touchscreen/mxs-ts.c 2013-04-24 15:05:35.000000000 +0200
@@ -1,8 +1,9 @@
/*
- * Freesclae MXS Touchscreen driver
@@ -26,7 +26,7 @@ Index: linux-2.6.35.3/drivers/input/touchscreen/mxs-ts.c
struct mxs_ts_info {
int touch_irq;
-@@ -50,6 +51,8 @@ struct mxs_ts_info {
+@@ -50,6 +51,8 @@
unsigned int y_plus_mask;
unsigned int y_minus_mask;
@@ -35,7 +35,7 @@ Index: linux-2.6.35.3/drivers/input/touchscreen/mxs-ts.c
struct input_dev *idev;
enum {
TS_STATE_DISABLED,
-@@ -60,161 +63,142 @@ struct mxs_ts_info {
+@@ -60,161 +63,141 @@
} state;
u16 x;
u16 y;
@@ -81,7 +81,7 @@ Index: linux-2.6.35.3/drivers/input/touchscreen/mxs-ts.c
info->sample_count = 0;
+ info->x = 0;
+ info->y = 0;
-+
++
+ hw_lradc_set_delay_trigger_kick(LRADC_DELAY_TRIGGER_TOUCHSCREEN, 1);
}
@@ -118,19 +118,23 @@ Index: linux-2.6.35.3/drivers/input/touchscreen/mxs-ts.c
- hw_lradc_set_delay_trigger_kick(LRADC_DELAY_TRIGGER_TOUCHSCREEN, 1);
+ struct mxs_ts_info *info =
+ container_of(to_delayed_work(work), struct mxs_ts_info, activate_touch_detect);
++
info->state = TS_STATE_X_PLANE;
- info->sample_count = 0;
+
+ /* check if the pen is always down */
+ if( __raw_readl(info->base + HW_LRADC_STATUS) & BM_LRADC_STATUS_TOUCH_DETECT_RAW ){
-+ info->pressure = 1;
++ info->pressure = 1;
++ input_report_abs(info->idev, ABS_X, info->x);
++ input_report_abs(info->idev, ABS_Y, info->y);
++ input_report_abs(info->idev, ABS_PRESSURE, 100);
++ input_sync(info->idev);
+ /* if yes, start a new scan */
+ enter_state_x_plane(info);
-+ }
-+ else{
++ } else{
+ if (info->pressure){
-+ info->pressure = 0;
++ info->pressure = 0;
+ /* report touch pen up */
+ input_report_key(info->idev, BTN_TOUCH, 0);
+ input_report_abs(info->idev, ABS_PRESSURE, 0);
@@ -175,7 +179,7 @@ Index: linux-2.6.35.3/drivers/input/touchscreen/mxs-ts.c
- info->sample_count = 0;
+ info->base + HW_LRADC_CTRL0_SET);
+ /* delay touch detect interrupt enable due to touch capacitance and imx28 bug */
-+ schedule_delayed_work(&info->activate_touch_detect, msecs_to_jiffies(5));
++ schedule_delayed_work(&info->activate_touch_detect, msecs_to_jiffies(1));
}
-static inline void enter_state_touch_verify(struct mxs_ts_info *info)
@@ -220,11 +224,11 @@ Index: linux-2.6.35.3/drivers/input/touchscreen/mxs-ts.c
+ info->x += x;
+ info->sample_count++;
+ if (info->sample_count >= FILTER_SIZE){
-+ info->x = info->x >> FILTER_SIZE;
++ info->x = info->x >> (FILTER_SIZE>>1);
enter_state_y_plane(info);
- else
+ }
-+ else{
++ else{
hw_lradc_set_delay_trigger_kick(
LRADC_DELAY_TRIGGER_TOUCHSCREEN, 1);
+ }
@@ -244,22 +248,19 @@ Index: linux-2.6.35.3/drivers/input/touchscreen/mxs-ts.c
- info->y = (y_c + y) / info->sample_count;
- info->sample_count++;
- }
-- }
++ info->y += y;
++ info->sample_count++;
++ if (info->sample_count >= FILTER_SIZE){
++ info->y = info->y >> (FILTER_SIZE>>1);
++ enter_state_touch_detect(info);
+ }
- if (info->sample_count > 4)
- enter_state_touch_verify(info);
- else
- hw_lradc_set_delay_trigger_kick(
- LRADC_DELAY_TRIGGER_TOUCHSCREEN, 1);
- break;
-+ info->y += y;
-+ info->sample_count++;
-+ if (info->sample_count >= FILTER_SIZE){
-+ info->y = info->y >> FILTER_SIZE;
-+ input_report_abs(info->idev, ABS_X, info->x);
-+ input_report_abs(info->idev, ABS_Y, info->y);
-+ input_report_abs(info->idev, ABS_PRESSURE, 100);
-+ input_sync(info->idev);
-
+-
- case TS_STATE_TOUCH_VERIFY:
- pr_debug("%s: touch verify state, sample_count %d\n", __func__,
- info->sample_count);
@@ -275,18 +276,16 @@ Index: linux-2.6.35.3/drivers/input/touchscreen/mxs-ts.c
- if (pressure) {
- input_report_abs(info->idev, ABS_PRESSURE, pressure);
- enter_state_x_plane(info);
-+ enter_state_touch_detect(info);
-+ }
+ else{
hw_lradc_set_delay_trigger_kick(
LRADC_DELAY_TRIGGER_TOUCHSCREEN, 1);
- } else
- enter_state_touch_detect(info);
-+ }
++ }
break;
default:
-@@ -227,30 +211,29 @@ static irqreturn_t ts_handler(int irq, v
+@@ -227,30 +210,29 @@
{
struct mxs_ts_info *info = dev_id;
u16 x_plus, y_plus;
@@ -334,7 +333,7 @@ Index: linux-2.6.35.3/drivers/input/touchscreen/mxs-ts.c
return IRQ_HANDLED;
}
-@@ -278,7 +261,8 @@ static int __devinit mxs_ts_probe(struct
+@@ -278,7 +260,8 @@
}
idev->name = "MXS touchscreen";
@@ -344,7 +343,7 @@ Index: linux-2.6.35.3/drivers/input/touchscreen/mxs-ts.c
input_set_abs_params(idev, ABS_X, 0, 0xFFF, 0, 0);
input_set_abs_params(idev, ABS_Y, 0, 0xFFF, 0, 0);
input_set_abs_params(idev, ABS_PRESSURE, 0, 1, 0, 0);
-@@ -301,6 +285,8 @@ static int __devinit mxs_ts_probe(struct
+@@ -301,6 +284,8 @@
info->y_plus_mask = plat_data->y_plus_mask;
info->y_minus_mask = plat_data->y_minus_mask;
@@ -353,7 +352,7 @@ Index: linux-2.6.35.3/drivers/input/touchscreen/mxs-ts.c
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
if (!res) {
printk(KERN_ERR "%s: couldn't get MEM resource\n", __func__);
-@@ -335,7 +321,6 @@ static int __devinit mxs_ts_probe(struct
+@@ -335,7 +320,6 @@
free_irq(info->touch_irq, info);
goto out_nodev;
}
@@ -361,7 +360,7 @@ Index: linux-2.6.35.3/drivers/input/touchscreen/mxs-ts.c
hw_lradc_use_channel(info->x_plus_chan);
hw_lradc_use_channel(info->x_minus_chan);
-@@ -366,8 +351,8 @@ static int __devinit mxs_ts_probe(struct
+@@ -366,8 +350,8 @@
__raw_writel(BM_LRADC_CTRL1_LRADC0_IRQ_EN << info->y_minus_chan,
info->base + HW_LRADC_CTRL1_SET);
@@ -372,7 +371,7 @@ Index: linux-2.6.35.3/drivers/input/touchscreen/mxs-ts.c
platform_set_drvdata(pdev, info);
device_init_wakeup(&pdev->dev, 1);
-@@ -401,6 +386,7 @@ static int __devexit mxs_ts_remove(struc
+@@ -401,6 +385,7 @@
free_irq(info->device_irq, info);
free_irq(info->touch_irq, info);
hooks/post-receive
--
armadeus
|
|
From: Julien B a. A. <ar...@us...> - 2013-04-22 19:02:25
|
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, master has been updated
via 3138c748a90ec4d2c0f5792c042286f4f762f064 (commit)
via 2904fdb9c0c4a5f196b284adc680f03b7e9957e3 (commit)
from 7fc607673065037f7fdb7a9080d7f72a795e0255 (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 3138c748a90ec4d2c0f5792c042286f4f762f064
Author: Julien Boibessot <jul...@ar...>
Date: Mon Apr 22 21:00:03 2013 +0200
[TEST] Add test helpers to echo in red/green/bold
commit 2904fdb9c0c4a5f196b284adc680f03b7e9957e3
Author: Julien Boibessot <jul...@ar...>
Date: Mon Apr 22 20:59:18 2013 +0200
[TEST] Fixes call to media_perf in test_release
-----------------------------------------------------------------------
Summary of changes:
target/test/test_helpers.sh | 28 ++++++++++++++++++++++++----
target/test/test_release.sh | 2 +-
2 files changed, 25 insertions(+), 5 deletions(-)
diff --git a/target/test/test_helpers.sh b/target/test/test_helpers.sh
index a773ff9..8065d77 100755
--- a/target/test/test_helpers.sh
+++ b/target/test/test_helpers.sh
@@ -3,7 +3,7 @@
#
# Helpers for Armadeus Software release's test scripts
#
-# Copyright (C) 2008-2010 The Armadeus Project
+# Copyright (C) 2008-2013 The Armadeus Project
#
# 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
@@ -20,6 +20,26 @@
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
+GREEN="\033[1;32m"
+NORMAL="\033[0;39m"
+RED="\033[1;31m"
+BOLD="\033[1m"
+
+echo_red()
+{
+ echo -n -e "$RED""$1""$NORMAL"
+}
+
+echo_green()
+{
+ echo -n -e "$GREEN""$1""$NORMAL"
+}
+
+echo_bold()
+{
+ echo -n -e "$BOLD""$1""$NORMAL"
+}
+
debug()
{
if [ "$DEBUG" == "True" ]; then
@@ -100,17 +120,17 @@ ask_user_choice()
show_test_banner()
{
- echo -e "\033[1m******** Testing $1 ********\033[0m"
+ echo_bold "******** Testing $1 ********"; echo
}
echo_test_ok()
{
- echo "Test OK !"
+ echo_green "Test OK !"; echo
}
echo_test_failed()
{
- echo "Test FAILED !"
+ echo_red "Test FAILED !"; echo
}
exit_failed()
diff --git a/target/test/test_release.sh b/target/test/test_release.sh
index 1c897ef..ae7e9a7 100755
--- a/target/test/test_release.sh
+++ b/target/test/test_release.sh
@@ -66,7 +66,7 @@ $THIS_DIR/test_gpio.sh
echo
$THIS_DIR/test_pwm.sh
echo
-$THIS_DIR/media_perf.sh speed
+$THIS_DIR/media_perf.sh --mode=speed
rm /tmp/data.bin
echo
$THIS_DIR/test_wifi.sh
hooks/post-receive
--
armadeus
|
|
From: Nicolas <th...@us...> - 2013-04-21 09:46:55
|
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, master has been updated
via 7fc607673065037f7fdb7a9080d7f72a795e0255 (commit)
from 9ddf377bceb513f575c0b6f2cd44d0bc0d006ab2 (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 7fc607673065037f7fdb7a9080d7f72a795e0255
Author: Nicolas Colombain <nic...@ar...>
Date: Sun Apr 21 11:41:08 2013 +0200
[UBOOT] fix FPGA programming hang up
-----------------------------------------------------------------------
Summary of changes:
.../2012.04/304-Add-FPGA-support-apf27.patch | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/patches/u-boot/2012.04/304-Add-FPGA-support-apf27.patch b/patches/u-boot/2012.04/304-Add-FPGA-support-apf27.patch
index 2d0f7eb..6c90be9 100644
--- a/patches/u-boot/2012.04/304-Add-FPGA-support-apf27.patch
+++ b/patches/u-boot/2012.04/304-Add-FPGA-support-apf27.patch
@@ -173,7 +173,7 @@ index 0000000..9a9e8da
+ GPIO_CLEAR(CONFIG_SYS_FPGA_SUSPEND);
+/* GPIO_CLEAR(CONFIG_SYS_FPGA_RESET); */
+ GPIO_CLEAR(CONFIG_SYS_FPGA_PWR);
-+
++ udelay(30000);
+ return cookie;
+}
+
hooks/post-receive
--
armadeus
|