mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-07-25 20:37:02 +08:00
brcm47xx mips:use kernel 4.9 by default
This commit is contained in:
parent
e073563928
commit
9b76c3a241
@ -1,14 +1,15 @@
|
|||||||
--- a/driver/nvram_stub.c
|
--- a/driver/nvram_stub.c
|
||||||
+++ b/driver/nvram_stub.c
|
+++ b/driver/nvram_stub.c
|
||||||
@@ -5,6 +5,7 @@
|
@@ -5,6 +5,8 @@
|
||||||
#include <siutils.h>
|
#include <siutils.h>
|
||||||
#include <bcmendian.h>
|
#include <bcmendian.h>
|
||||||
#include <bcmnvram.h>
|
#include <bcmnvram.h>
|
||||||
+#include <proto/ethernet.h>
|
+#include <proto/ethernet.h>
|
||||||
|
+#include <linux/errno.h>
|
||||||
|
|
||||||
#ifdef BCMDBG_ERR
|
#ifdef BCMDBG_ERR
|
||||||
#define NVR_MSG(x) printf x
|
#define NVR_MSG(x) printf x
|
||||||
@@ -24,6 +25,7 @@ typedef struct _vars {
|
@@ -24,6 +26,7 @@ typedef struct _vars {
|
||||||
static vars_t *vars = NULL;
|
static vars_t *vars = NULL;
|
||||||
static int nvram_init_done = 0;
|
static int nvram_init_done = 0;
|
||||||
extern char *nvram_buf[];
|
extern char *nvram_buf[];
|
||||||
@ -16,7 +17,7 @@
|
|||||||
|
|
||||||
int
|
int
|
||||||
BCMATTACHFN(nvram_init)(void *si)
|
BCMATTACHFN(nvram_init)(void *si)
|
||||||
@@ -55,6 +57,7 @@ BCMATTACHFN(nvram_init)(void *si)
|
@@ -55,6 +58,7 @@ BCMATTACHFN(nvram_init)(void *si)
|
||||||
vars = new;
|
vars = new;
|
||||||
|
|
||||||
bcopy((char *)(&nvh[1]), new->vars, nvs);
|
bcopy((char *)(&nvh[1]), new->vars, nvs);
|
||||||
@ -24,7 +25,7 @@
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -164,3 +167,65 @@ nvram_getall(char *buf, int count)
|
@@ -164,3 +168,65 @@ nvram_getall(char *buf, int count)
|
||||||
*buf = '\0';
|
*buf = '\0';
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -13,7 +13,7 @@ FEATURES:=squashfs usb
|
|||||||
SUBTARGETS:=generic mips74k legacy
|
SUBTARGETS:=generic mips74k legacy
|
||||||
MAINTAINER:=Hauke Mehrtens <hauke@hauke-m.de>
|
MAINTAINER:=Hauke Mehrtens <hauke@hauke-m.de>
|
||||||
|
|
||||||
KERNEL_PATCHVER:=4.4
|
KERNEL_PATCHVER:=4.9
|
||||||
|
|
||||||
define Target/Description
|
define Target/Description
|
||||||
Build firmware images for Broadcom based BCM47xx/53xx routers with MIPS CPU, *not* ARM.
|
Build firmware images for Broadcom based BCM47xx/53xx routers with MIPS CPU, *not* ARM.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user