Skip to content

Commit

Permalink
update kernel 4.4/4.9 to the lastest version
Browse files Browse the repository at this point in the history
  • Loading branch information
coolsnowwolf committed Dec 25, 2017
1 parent 761ccf5 commit 03e969f
Show file tree
Hide file tree
Showing 314 changed files with 13,183 additions and 885 deletions.
Binary file modified README
Binary file not shown.
8 changes: 4 additions & 4 deletions include/kernel-version.mk
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
LINUX_RELEASE?=1

LINUX_VERSION-3.18 = .71
LINUX_VERSION-4.4 = .100
LINUX_VERSION-4.9 = .67
LINUX_VERSION-4.4 = .107
LINUX_VERSION-4.9 = .70
LINUX_VERSION-4.14 = .6

LINUX_KERNEL_HASH-3.18.71 = 5abc9778ad44ce02ed6c8ab52ece8a21c6d20d21f6ed8a19287b4a38a50c1240
LINUX_KERNEL_HASH-4.4.100 = 9936cd99c4bd35f6bc6962c9acdd1fa2ac8999e07a9be6a94a03b5492f1bd14f
LINUX_KERNEL_HASH-4.9.67 = 7fbaa7dcc17877dfa0c96fb9a7d2f4ffed20ceeb13cbbeb18d77213c6cf75f7d
LINUX_KERNEL_HASH-4.4.107 = d25dc23c8b05d34518ede68f03668cd344f805049a16bc4f189da90533881a17
LINUX_KERNEL_HASH-4.9.70 = baaf45f3826fa0d257a42005240cced402a12c99adf2a8d77402738304d5300a
LINUX_KERNEL_HASH-4.14.6 = 0907678ba9ea146ddbdecd0a0b6363f56b896b5c61c9a15e809effb3ea346ccc

ifdef KERNEL_PATCHVER
Expand Down
2 changes: 1 addition & 1 deletion package/libs/libiconv-full/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ define Package/iconv
TITLE+= utility
endef

TARGET_CFLAGS += $(FPIC) -DUSE_DOS
TARGET_CFLAGS += $(FPIC) -DUSE_DOS -std=gnu89

CONFIGURE_ARGS += \
--enable-shared \
Expand Down
2 changes: 1 addition & 1 deletion target/linux/ar7/patches-4.9/300-add-ac49x-platform.patch
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@

config ATH25
bool "Atheros AR231x/AR531x SoC support"
@@ -1002,6 +1002,7 @@ config MIPS_PARAVIRT
@@ -1004,6 +1004,7 @@ config MIPS_PARAVIRT
endchoice

source "arch/mips/alchemy/Kconfig"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
--- a/drivers/spi/Kconfig
+++ b/drivers/spi/Kconfig
@@ -534,6 +534,12 @@ config SPI_QUP
@@ -533,6 +533,12 @@ config SPI_QUP
This driver can also be built as a module. If so, the module
will be called spi_qup.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
--- a/drivers/spi/Kconfig
+++ b/drivers/spi/Kconfig
@@ -762,6 +762,13 @@ config SPI_TLE62X0
@@ -761,6 +761,13 @@ config SPI_TLE62X0
sysfs interface, with each line presented as a kind of GPIO
exposing both switch control and diagnostic feedback.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
--- a/drivers/spi/Kconfig
+++ b/drivers/spi/Kconfig
@@ -769,6 +769,11 @@ config SPI_RB4XX_CPLD
@@ -768,6 +768,11 @@ config SPI_RB4XX_CPLD
SPI driver for the Xilinx CPLD chip present on the
MikroTik RB4xx boards.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

--- a/drivers/net/phy/b53/b53_common.c
+++ b/drivers/net/phy/b53/b53_common.c
@@ -27,6 +27,7 @@
@@ -28,6 +28,7 @@
#include <linux/of.h>
#include <linux/of_net.h>
#include <linux/platform_data/b53.h>
+#include <linux/of.h>

#include "b53_regs.h"
#include "b53_priv.h"
@@ -1578,6 +1579,28 @@ static int b53_switch_init(struct b53_de
@@ -1579,6 +1580,28 @@ static int b53_switch_init(struct b53_de
return ret;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -696,7 +696,7 @@ Signed-off-by: Noralf Trønnes <noralf@tronnes.org>
}
--- a/drivers/usb/core/hub.c
+++ b/drivers/usb/core/hub.c
@@ -5045,7 +5045,7 @@ static void port_event(struct usb_hub *h
@@ -5054,7 +5054,7 @@ static void port_event(struct usb_hub *h
if (portchange & USB_PORT_STAT_C_OVERCURRENT) {
u16 status = 0, unused;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ Signed-off-by: Phil Elwell <phil@raspberrypi.org>
+__copy_from_user_std(void *to, const void __user *from, unsigned long n);
+
static inline unsigned long __must_check
__copy_from_user(void *to, const void __user *from, unsigned long n)
__arch_copy_from_user(void *to, const void __user *from, unsigned long n)
{
--- a/arch/arm/lib/Makefile
+++ b/arch/arm/lib/Makefile
Expand Down
3 changes: 3 additions & 0 deletions target/linux/brcm63xx/base-files/etc/board.d/01_leds
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ a4001n1)
a4001n)
ucidef_set_led_usbdev "usb" "USB" "A4001N:green:usb" "1-1"
;;
ad1018-nor)
ucidef_set_led_netdev "wlan0" "WLAN" "AD1018:green:wifi" "wlan0"
;;
ar-5315u)
ucidef_set_led_usbdev "usb" "USB" "AR-5315u:green:usb" "1-1"
;;
Expand Down
1 change: 1 addition & 0 deletions target/linux/brcm63xx/base-files/etc/board.d/02_network
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ vr-3026e)
"0:lan:1" "1:lan:2" "2:lan:3" "3:lan:4" "8t@eth0"
;;

ad1018-nor|\
ar-5315u |\
vh4032n)
ucidef_add_switch "switch0" \
Expand Down
3 changes: 3 additions & 0 deletions target/linux/brcm63xx/base-files/etc/diag.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ set_state() {
a4001n)
status_led="A4001N:green:power"
;;
ad1018-nor)
status_led="AD1018:green:power"
;;
ar-5315u)
status_led="AR-5315u:green:power"
;;
Expand Down
3 changes: 3 additions & 0 deletions target/linux/brcm63xx/base-files/lib/brcm63xx.sh
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,9 @@ brcm63xx_dt_detect() {
"Sagem F@ST2704V2")
board_name="fast2704v2"
;;
"Sercomm AD1018 (SPI flash mod)")
board_name="ad1018-nor"
;;
"SFR Neuf Box 4"*)
board_name="neufbox4"
;;
Expand Down
1 change: 1 addition & 0 deletions target/linux/brcm63xx/config-4.4
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ CONFIG_BOARD_BCM963XX=y
CONFIG_BOARD_LIVEBOX=y
CONFIG_CC_OPTIMIZE_FOR_SIZE=y
CONFIG_CEVT_R4K=y
CONFIG_CLKDEV_LOOKUP=y
CONFIG_CLONE_BACKWARDS=y
CONFIG_CPU_BIG_ENDIAN=y
CONFIG_CPU_BMIPS=y
Expand Down
5 changes: 5 additions & 0 deletions target/linux/brcm63xx/dts/a226g.dts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

chosen {
bootargs = "root=/dev/mtdblock2 rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200";
stdout-path = "serial0:115200n8";
};

gpio-keys-polled {
Expand Down Expand Up @@ -111,3 +112,7 @@
reg = <0x7f0000 0x010000>;
};
};

&uart0 {
status = "ok";
};
5 changes: 5 additions & 0 deletions target/linux/brcm63xx/dts/a226m-fwb.dts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

chosen {
bootargs = "root=/dev/mtdblock2 rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200";
stdout-path = "serial0:115200n8";
};

gpio-keys-polled {
Expand Down Expand Up @@ -111,3 +112,7 @@
reg = <0xfe0000 0x020000>;
};
};

&uart0 {
status = "ok";
};
5 changes: 5 additions & 0 deletions target/linux/brcm63xx/dts/a226m.dts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

chosen {
bootargs = "root=/dev/mtdblock2 rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200";
stdout-path = "serial0:115200n8";
};

gpio-keys-polled {
Expand Down Expand Up @@ -111,3 +112,7 @@
reg = <0x7f0000 0x010000>;
};
};

&uart0 {
status = "ok";
};
5 changes: 5 additions & 0 deletions target/linux/brcm63xx/dts/a4001n.dts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

chosen {
bootargs = "root=/dev/mtdblock2 rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200";
stdout-path = "serial0:115200n8";
};

gpio-keys-polled {
Expand Down Expand Up @@ -90,3 +91,7 @@
};
};
};

&uart0 {
status = "ok";
};
5 changes: 5 additions & 0 deletions target/linux/brcm63xx/dts/a4001n1.dts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

chosen {
bootargs = "root=/dev/mtdblock2 rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200";
stdout-path = "serial0:115200n8";
};

gpio-keys-polled {
Expand Down Expand Up @@ -118,3 +119,7 @@
};
};
};

&uart0 {
status = "ok";
};
141 changes: 141 additions & 0 deletions target/linux/brcm63xx/dts/ad1018-nor.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,141 @@
/dts-v1/;

#include "bcm6328.dtsi"

#include <dt-bindings/input/input.h>

/ {
model = "Sercomm AD1018 (SPI flash mod)";
compatible = "sercomm,ad1018-nor", "brcm,bcm6328";

chosen {
bootargs = "root=/dev/mtdblock2 rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200";
stdout-path = "serial0:115200n8";
};

gpio-keys-polled {
compatible = "gpio-keys-polled";
#address-cells = <1>;
#size-cells = <0>;
poll-interval = <20>;
debounce-interval = <60>;

wps {
label = "wps";
gpios = <&pinctrl 24 1>;
linux,code = <KEY_WPS_BUTTON>;
};
wifi {
label = "wifi";
gpios = <&pinctrl 25 1>;
linux,code = <KEY_WLAN>;
};
reset {
label = "reset";
gpios = <&pinctrl 31 1>;
linux,code = <KEY_RESTART>;
};
};

};

&pinctrl {
pinctrl_leds: leds {
function = "led";
pins = "gpio0", "gpio1";
};
};

&leds {
status = "ok";

pinctrl-names = "default";
pinctrl-0 = <&pinctrl_leds &pinctrl_serial_led
&pinctrl_ephy0_spd_led &pinctrl_ephy1_act_led
&pinctrl_ephy2_act_led &pinctrl_ephy3_act_led>;

brcm,serial-leds;
brcm,serial-shift-inv;
brcm,serial-dat-low;

inet_red@0 {
reg = <0>;
active-low;
label = "AD1018:red:internet";
};

inet_green@1 {
reg = <1>;
active-low;
label = "AD1018:green:internet";
};

power_green@8 {
reg = <8>;
active-low;
label = "AD1018:green:power";
default-state = "on";
};

adsl_green@10 {
reg = <10>;
active-low;
label = "AD1018:green:adsl";
};

adsl_red@11 {
reg = <11>;
active-low;
label = "AD1018:red:adsl";
};

phone_green@12 {
reg = <12>;
active-low;
label = "AD1018:green:phone";
};

wps_green@13 {
reg = <13>;
active-low;
label = "AD1018:green:wps";
};

wifi_green@14 {
reg = <14>;
active-low;
label = "AD1018:green:wifi";
};

usb_green@15 {
reg = <15>;
active-low;
label = "AD1018:green:usb";
};

ephy0_spd@17 {
reg = <17>;
brcm,hardware-controlled;
};
};

&hsspi {
status = "ok";

flash@0 {
compatible = "jedec,spi-nor";
spi-max-frequency = <16666667>;
spi-tx-bus-width = <2>;
spi-rx-bus-width = <2>;
reg = <0>;

#address-cells = <1>;
#size-cells = <1>;

linux,part-probe = "bcm63xxpart";
};
};

&uart0 {
status = "ok";
};
5 changes: 5 additions & 0 deletions target/linux/brcm63xx/dts/agpf-s0.dts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

chosen {
bootargs = "root=/dev/mtdblock2 rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200";
stdout-path = "serial0:115200n8";
};

gpio-keys-polled {
Expand Down Expand Up @@ -115,3 +116,7 @@
reg = <0xfe0000 0x020000>;
};
};

&uart0 {
status = "ok";
};
5 changes: 5 additions & 0 deletions target/linux/brcm63xx/dts/ar-5315u.dts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

chosen {
bootargs = "root=/dev/mtdblock2 rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200";
stdout-path = "serial0:115200n8";
};

gpio-keys-polled {
Expand Down Expand Up @@ -104,3 +105,7 @@
pinctrl-0 = <&pinctrl_ephy0_act_led &pinctrl_ephy1_act_led
&pinctrl_ephy2_act_led &pinctrl_ephy3_act_led>;
};

&uart0 {
status = "ok";
};
Loading

0 comments on commit 03e969f

Please sign in to comment.