[LEDE-DEV] [PATCH] ARC: use -mcpu=XXX instead of obsolete -mXXX
-mXXX option is deprecated already in arc-2016.03 toolchain and removed completely starting from arc-2016.09. Direct replacement is -mcpu=XXX which is already supported by arc-2016.03 used today in Lede. With that change we'll be ready for ARC toolchain update still keeping everything working with current tools. Signed-off-by: Alexey BrodkinCc: John Crispin --- include/target.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/target.mk b/include/target.mk index 3099448..5490d48 100644 --- a/include/target.mk +++ b/include/target.mk @@ -215,8 +215,8 @@ ifeq ($(DUMP),1) ifeq ($(ARCH),arc) CPU_TYPE ?= arc700 CPU_CFLAGS += -matomic -CPU_CFLAGS_arc700 = -marc700 -CPU_CFLAGS_archs = -marchs +CPU_CFLAGS_arc700 = -mcpu=arc700 +CPU_CFLAGS_archs = -mcpu=archs endif DEFAULT_CFLAGS=$(strip $(CPU_CFLAGS) $(CPU_CFLAGS_$(CPU_TYPE)) $(CPU_CFLAGS_$(CPU_SUBTYPE))) -- 2.10.2 ___ Lede-dev mailing list Lede-dev@lists.infradead.org http://lists.infradead.org/mailman/listinfo/lede-dev
Re: [LEDE-DEV] make fail for x86 geode target - 17.01
On Wed, 2017-02-08 at 16:30 +0530, Nishant Sharma wrote: > > I was able to buid images successfully for x86_64 (APU2) and ar71xx > (mikrotik). But no joy with x86 geode. It worked for me with the config at http://david.woodhou.se/geos.config (building on x86_64 Fedora 25). At least, it builds an image. I haven't found the time to do anything other than that. I do note that I don't expect it to even boot though, as the grub config seems to say 'root=/dev/sda3' but the rootfs is /dev/sda2... smime.p7s Description: S/MIME cryptographic signature ___ Lede-dev mailing list Lede-dev@lists.infradead.org http://lists.infradead.org/mailman/listinfo/lede-dev
[LEDE-DEV] [PATCH mdns] Don't call dns_reply_a from service_reply
From: Rafał MiłeckiThis simplifies code without changing any behavior. Having this call in service_reply required checking two conditions and was making code flow harder to follow. There are 2 more service_reply calls in the project: 1) In service_announce_services where we iterate over and every element of this list has "service" field filled. It means match argument was never NULL and dns_reply_a was never called from there. 2) In parse_question which also receives some name (there is a proper check in the dns_handle_packet). No call there neither. So after all there was only 1 place that was indeed calling dns_reply_a. Signed-off-by: Rafał Miłecki --- dns.c | 4 +++- service.c | 6 -- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/dns.c b/dns.c index 7ca705e..aac1de1 100644 --- a/dns.c +++ b/dns.c @@ -360,8 +360,10 @@ parse_question(struct interface *iface, char *name, struct dns_question *q) switch (q->type) { case TYPE_ANY: - if (!strcmp(name, mdns_hostname_local)) + if (!strcmp(name, mdns_hostname_local)) { service_reply(iface, NULL, announce_ttl); + dns_reply_a(iface, announce_ttl); + } break; case TYPE_PTR: diff --git a/service.c b/service.c index a3a5bb4..f45784b 100644 --- a/service.c +++ b/service.c @@ -153,12 +153,6 @@ service_reply(struct interface *iface, const char *match, int ttl) vlist_for_each_element(, s, node) service_reply_single(iface, s, match, ttl, 0); - - if (match) - return; - - if (ttl) - dns_reply_a(iface, ttl); } void -- 2.11.0 ___ Lede-dev mailing list Lede-dev@lists.infradead.org http://lists.infradead.org/mailman/listinfo/lede-dev
Re: [LEDE-DEV] [PATCH mdns] Rename service_reply_a to dns_reply_a and move it to proper file
On 08/02/2017 16:47, Rafał Miłecki wrote: > From: Rafał Miłecki> > This function doesn't really do anything service specify, it just sends > an A(AAA) records. It could probably be used even without any services > registered. > > Signed-off-by: Rafał Miłecki Acked-by: John Crispin feel free to push the changes to the repo > --- > dns.c | 32 +++- > dns.h | 1 + > interface.c | 2 +- > service.c | 32 +--- > service.h | 1 - > 5 files changed, 34 insertions(+), 34 deletions(-) > > diff --git a/dns.c b/dns.c > index 63788f7..7ca705e 100644 > --- a/dns.c > +++ b/dns.c > @@ -15,6 +15,7 @@ > #include > > #include > +#include > #include > #include > #include > @@ -180,6 +181,35 @@ dns_send_answer(struct interface *iface, const char > *answer) > fprintf(stderr, "failed to send question\n"); > } > > +void > +dns_reply_a(struct interface *iface, int ttl) > +{ > + struct ifaddrs *ifap, *ifa; > + struct sockaddr_in *sa; > + struct sockaddr_in6 *sa6; > + > + getifaddrs(); > + > + dns_init_answer(); > + for (ifa = ifap; ifa; ifa = ifa->ifa_next) { > + if (strcmp(ifa->ifa_name, iface->name)) > + continue; > + if (ifa->ifa_addr->sa_family == AF_INET) { > + sa = (struct sockaddr_in *) ifa->ifa_addr; > + dns_add_answer(TYPE_A, (uint8_t *) >sin_addr, 4, > ttl); > + } > + if (ifa->ifa_addr->sa_family == AF_INET6) { > + uint8_t ll_prefix[] = {0xfe, 0x80 }; > + sa6 = (struct sockaddr_in6 *) ifa->ifa_addr; > + if (!memcmp(>sin6_addr, _prefix, 2)) > + dns_add_answer(TYPE_, (uint8_t *) > >sin6_addr, 16, ttl); > + } > + } > + dns_send_answer(iface, mdns_hostname_local); > + > + freeifaddrs(ifap); > +} > + > static int > scan_name(const uint8_t *buffer, int len) > { > @@ -345,7 +375,7 @@ parse_question(struct interface *iface, char *name, > struct dns_question *q) > if (host) > *host = '\0'; > if (!strcmp(mdns_hostname, name)) > - service_reply_a(iface, announce_ttl); > + dns_reply_a(iface, announce_ttl); > break; > }; > } > diff --git a/dns.h b/dns.h > index 6210e0e..7f3cbe1 100644 > --- a/dns.h > +++ b/dns.h > @@ -77,6 +77,7 @@ void dns_send_question(struct interface *iface, const char > *question, int type, > void dns_init_answer(void); > void dns_add_answer(int type, const uint8_t *rdata, uint16_t rdlength, int > ttl); > void dns_send_answer(struct interface *iface, const char *answer); > +void dns_reply_a(struct interface *iface, int ttl); > const char* dns_type_string(uint16_t type); > void dns_handle_packet(struct interface *iface, struct sockaddr *s, uint16_t > port, uint8_t *buf, int len); > > diff --git a/interface.c b/interface.c > index f09329b..463335a 100644 > --- a/interface.c > +++ b/interface.c > @@ -621,7 +621,7 @@ void interface_shutdown(void) > vlist_for_each_element(, iface, node) > if (iface->fd.fd > 0 && iface->multicast) { > service_announce(iface, 0); > - service_reply_a(iface, 0); > + dns_reply_a(iface, 0); > } > vlist_for_each_element(, iface, node) > interface_close(iface); > diff --git a/service.c b/service.c > index 8d514c2..a3a5bb4 100644 > --- a/service.c > +++ b/service.c > @@ -15,7 +15,6 @@ > #include > #include > > -#include > #include > #include > #include > @@ -118,35 +117,6 @@ service_timeout(struct service *s) > return t; > } > > -void > -service_reply_a(struct interface *iface, int ttl) > -{ > - struct ifaddrs *ifap, *ifa; > - struct sockaddr_in *sa; > - struct sockaddr_in6 *sa6; > - > - getifaddrs(); > - > - dns_init_answer(); > - for (ifa = ifap; ifa; ifa = ifa->ifa_next) { > - if (strcmp(ifa->ifa_name, iface->name)) > - continue; > - if (ifa->ifa_addr->sa_family == AF_INET) { > - sa = (struct sockaddr_in *) ifa->ifa_addr; > - dns_add_answer(TYPE_A, (uint8_t *) >sin_addr, 4, > ttl); > - } > - if (ifa->ifa_addr->sa_family == AF_INET6) { > - uint8_t ll_prefix[] = {0xfe, 0x80 }; > - sa6 = (struct sockaddr_in6 *) ifa->ifa_addr; > - if (!memcmp(>sin6_addr, _prefix, 2)) > - dns_add_answer(TYPE_, (uint8_t *) > >sin6_addr, 16, ttl); > - } > - } > - dns_send_answer(iface, mdns_hostname_local); > - > - freeifaddrs(ifap); > -} > - > static void > service_reply_single(struct
[LEDE-DEV] [PATCH netifd] wireless: fix _wireless_add_process
The pid is in $1, not $pid. Use proper test condition for nonmatching exe warning. Signed-off-by: Günther Kelleter--- scripts/netifd-wireless.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/netifd-wireless.sh b/scripts/netifd-wireless.sh index 87d13ca..106c49d 100644 --- a/scripts/netifd-wireless.sh +++ b/scripts/netifd-wireless.sh @@ -163,8 +163,8 @@ _wireless_add_process() { json_add_int pid "$1" json_add_string exe "$exe" [ -n "$3" ] && json_add_boolean required 1 - exe2="$(readlink -f /proc/$pid/exe)" - [ "$exe" = "$exe2" ] && echo "WARNING (wireless_add_process): executable path $exe does not match process $1 path ($exe2)" + exe2="$(readlink -f /proc/$1/exe)" + [ "$exe" != "$exe2" ] && echo "WARNING (wireless_add_process): executable path $exe does not match process $1 path ($exe2)" _wdev_notify } -- 2.10.2.101.g2cc9ff1 ___ Lede-dev mailing list Lede-dev@lists.infradead.org http://lists.infradead.org/mailman/listinfo/lede-dev
[LEDE-DEV] [PATCH mdns] Rename service_reply_a to dns_reply_a and move it to proper file
From: Rafał MiłeckiThis function doesn't really do anything service specify, it just sends an A(AAA) records. It could probably be used even without any services registered. Signed-off-by: Rafał Miłecki --- dns.c | 32 +++- dns.h | 1 + interface.c | 2 +- service.c | 32 +--- service.h | 1 - 5 files changed, 34 insertions(+), 34 deletions(-) diff --git a/dns.c b/dns.c index 63788f7..7ca705e 100644 --- a/dns.c +++ b/dns.c @@ -15,6 +15,7 @@ #include #include +#include #include #include #include @@ -180,6 +181,35 @@ dns_send_answer(struct interface *iface, const char *answer) fprintf(stderr, "failed to send question\n"); } +void +dns_reply_a(struct interface *iface, int ttl) +{ + struct ifaddrs *ifap, *ifa; + struct sockaddr_in *sa; + struct sockaddr_in6 *sa6; + + getifaddrs(); + + dns_init_answer(); + for (ifa = ifap; ifa; ifa = ifa->ifa_next) { + if (strcmp(ifa->ifa_name, iface->name)) + continue; + if (ifa->ifa_addr->sa_family == AF_INET) { + sa = (struct sockaddr_in *) ifa->ifa_addr; + dns_add_answer(TYPE_A, (uint8_t *) >sin_addr, 4, ttl); + } + if (ifa->ifa_addr->sa_family == AF_INET6) { + uint8_t ll_prefix[] = {0xfe, 0x80 }; + sa6 = (struct sockaddr_in6 *) ifa->ifa_addr; + if (!memcmp(>sin6_addr, _prefix, 2)) + dns_add_answer(TYPE_, (uint8_t *) >sin6_addr, 16, ttl); + } + } + dns_send_answer(iface, mdns_hostname_local); + + freeifaddrs(ifap); +} + static int scan_name(const uint8_t *buffer, int len) { @@ -345,7 +375,7 @@ parse_question(struct interface *iface, char *name, struct dns_question *q) if (host) *host = '\0'; if (!strcmp(mdns_hostname, name)) - service_reply_a(iface, announce_ttl); + dns_reply_a(iface, announce_ttl); break; }; } diff --git a/dns.h b/dns.h index 6210e0e..7f3cbe1 100644 --- a/dns.h +++ b/dns.h @@ -77,6 +77,7 @@ void dns_send_question(struct interface *iface, const char *question, int type, void dns_init_answer(void); void dns_add_answer(int type, const uint8_t *rdata, uint16_t rdlength, int ttl); void dns_send_answer(struct interface *iface, const char *answer); +void dns_reply_a(struct interface *iface, int ttl); const char* dns_type_string(uint16_t type); void dns_handle_packet(struct interface *iface, struct sockaddr *s, uint16_t port, uint8_t *buf, int len); diff --git a/interface.c b/interface.c index f09329b..463335a 100644 --- a/interface.c +++ b/interface.c @@ -621,7 +621,7 @@ void interface_shutdown(void) vlist_for_each_element(, iface, node) if (iface->fd.fd > 0 && iface->multicast) { service_announce(iface, 0); - service_reply_a(iface, 0); + dns_reply_a(iface, 0); } vlist_for_each_element(, iface, node) interface_close(iface); diff --git a/service.c b/service.c index 8d514c2..a3a5bb4 100644 --- a/service.c +++ b/service.c @@ -15,7 +15,6 @@ #include #include -#include #include #include #include @@ -118,35 +117,6 @@ service_timeout(struct service *s) return t; } -void -service_reply_a(struct interface *iface, int ttl) -{ - struct ifaddrs *ifap, *ifa; - struct sockaddr_in *sa; - struct sockaddr_in6 *sa6; - - getifaddrs(); - - dns_init_answer(); - for (ifa = ifap; ifa; ifa = ifa->ifa_next) { - if (strcmp(ifa->ifa_name, iface->name)) - continue; - if (ifa->ifa_addr->sa_family == AF_INET) { - sa = (struct sockaddr_in *) ifa->ifa_addr; - dns_add_answer(TYPE_A, (uint8_t *) >sin_addr, 4, ttl); - } - if (ifa->ifa_addr->sa_family == AF_INET6) { - uint8_t ll_prefix[] = {0xfe, 0x80 }; - sa6 = (struct sockaddr_in6 *) ifa->ifa_addr; - if (!memcmp(>sin6_addr, _prefix, 2)) - dns_add_answer(TYPE_, (uint8_t *) >sin6_addr, 16, ttl); - } - } - dns_send_answer(iface, mdns_hostname_local); - - freeifaddrs(ifap); -} - static void service_reply_single(struct interface *iface, struct service *s, const char *match, int ttl, int force) { @@ -188,7 +158,7 @@ service_reply(struct interface *iface, const char *match, int ttl) return; if (ttl) - service_reply_a(iface, ttl); + dns_reply_a(iface, ttl); } void diff --git
Re: [LEDE-DEV] [LEDE 17.01] ubox: update hash for ubox-2017-01-15-5649c028.tar.xz
On 08/02/2017 16:22, Alexey Brodkin wrote: > Hi John, > > On Wed, 2017-02-08 at 16:20 +0100, John Crispin wrote: >> Hi, >> >> superseded by a procd update in my staging tree. > > Ok I just wanted to make sure we may build reliably everything from > the very scratch (i.e. after "make distclean") for 2017.01 release. > > -Alexey > i have a patch queued here that bumps procd and updates the sha256sum to the latest version. should be fixed when i push tonight John ___ Lede-dev mailing list Lede-dev@lists.infradead.org http://lists.infradead.org/mailman/listinfo/lede-dev
Re: [LEDE-DEV] [PATCH mdns] Add simple "Fall through" comment to the announce_timer function switch
On 08/02/2017 15:20, Rafał Miłecki wrote: > From: Rafał Miłecki> > It's a common practice to add such comments to make it clear break > instruction was skipped on purpose. > > Signed-off-by: Rafał Miłecki Acked-by: John Crispin feel free to push the changes to the repo > --- > announce.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/announce.c b/announce.c > index d1aca5b..03c7b8f 100644 > --- a/announce.c > +++ b/announce.c > @@ -62,6 +62,7 @@ announce_timer(struct uloop_timeout *timeout) > return; > } > iface->announce_state++; > + /* Fall through */ > > case STATE_ANNOUNCE: > service_announce(iface, announce_ttl); > ___ Lede-dev mailing list Lede-dev@lists.infradead.org http://lists.infradead.org/mailman/listinfo/lede-dev
Re: [LEDE-DEV] [PATCH mdns] Change dns_send_question function arg from unicast to multicast
On 08/02/2017 14:04, Rafał Miłecki wrote: > From: Rafał Miłecki> > This trivial patch just reverses argument logic to make it a bit more > consistent with struct interface which contains "multicast" field. This > hopefully will make typos less likely and code easier to follow. > > Signed-off-by: Rafał Miłecki Acked-by: John Crispin feel free to push the changes to the repo > --- > announce.c | 2 +- > cache.c | 6 +++--- > dns.c | 4 ++-- > dns.h | 2 +- > interface.c | 4 ++-- > ubus.c | 4 ++-- > 6 files changed, 11 insertions(+), 11 deletions(-) > > diff --git a/announce.c b/announce.c > index 3ff64b2..d1aca5b 100644 > --- a/announce.c > +++ b/announce.c > @@ -46,7 +46,7 @@ announce_timer(struct uloop_timeout *timeout) > case STATE_PROBE1: > case STATE_PROBE2: > case STATE_PROBE3: > - dns_send_question(iface, mdns_hostname_local, TYPE_ANY, > 0); > + dns_send_question(iface, mdns_hostname_local, TYPE_ANY, > 1); > uloop_timeout_set(timeout, 250); > iface->announce_state++; > break; > diff --git a/cache.c b/cache.c > index 07d4f20..fa32465 100644 > --- a/cache.c > +++ b/cache.c > @@ -89,7 +89,7 @@ cache_gc_timer(struct uloop_timeout *timeout) > continue; > } > s->refresh += 50; > - dns_send_question(s->iface, s->entry, TYPE_PTR, 1); > + dns_send_question(s->iface, s->entry, TYPE_PTR, 0); > } > > uloop_timeout_set(timeout, 1); > @@ -128,7 +128,7 @@ cache_scan(void) > > vlist_for_each_element(, iface, node) > avl_for_each_element(, s, avl) > - dns_send_question(iface, s->entry, TYPE_PTR, 1); > + dns_send_question(iface, s->entry, TYPE_PTR, 0); > } > > static struct cache_service* > @@ -167,7 +167,7 @@ cache_service(struct interface *iface, char *entry, int > hlen, int ttl) > avl_insert(, >avl); > > if (!hlen) > - dns_send_question(iface, entry, TYPE_PTR, !iface->multicast); > + dns_send_question(iface, entry, TYPE_PTR, iface->multicast); > > return s; > } > diff --git a/dns.c b/dns.c > index 89cd4ce..63788f7 100644 > --- a/dns.c > +++ b/dns.c > @@ -67,7 +67,7 @@ dns_type_string(uint16_t type) > } > > void > -dns_send_question(struct interface *iface, const char *question, int type, > int unicast) > +dns_send_question(struct interface *iface, const char *question, int type, > int multicast) > { > static struct dns_header h; > static struct dns_question q; > @@ -87,7 +87,7 @@ dns_send_question(struct interface *iface, const char > *question, int type, int u > int len; > > h.questions = cpu_to_be16(1); > - q.class = cpu_to_be16(((unicast) ? (CLASS_UNICAST) : (0)) | 1); > + q.class = cpu_to_be16((multicast ? 0 : CLASS_UNICAST) | 1); > q.type = cpu_to_be16(type); > > len = dn_comp(question, (void *) dns_buffer, sizeof(dns_buffer), NULL, > NULL); > diff --git a/dns.h b/dns.h > index 4425d4c..6210e0e 100644 > --- a/dns.h > +++ b/dns.h > @@ -73,7 +73,7 @@ struct interface; > extern int cfg_proto; > extern int cfg_no_subnet; > > -void dns_send_question(struct interface *iface, const char *question, int > type, int unicast); > +void dns_send_question(struct interface *iface, const char *question, int > type, int multicast); > void dns_init_answer(void); > void dns_add_answer(int type, const uint8_t *rdata, uint16_t rdlength, int > ttl); > void dns_send_answer(struct interface *iface, const char *answer); > diff --git a/interface.c b/interface.c > index 4dfeace..f09329b 100644 > --- a/interface.c > +++ b/interface.c > @@ -417,7 +417,7 @@ reconnect_socket4(struct uloop_timeout *timeout) > > uloop_fd_add(>fd, ULOOP_READ); > if (iface->multicast) { > - dns_send_question(iface, "_services._dns-sd._udp.local", > TYPE_PTR, 1); > + dns_send_question(iface, "_services._dns-sd._udp.local", > TYPE_PTR, 0); > announce_init(iface); > } > > @@ -465,7 +465,7 @@ reconnect_socket6(struct uloop_timeout *timeout) > uloop_fd_add(>fd, ULOOP_READ); > > if (iface->multicast) { > - dns_send_question(iface, "_services._dns-sd._udp.local", > TYPE_PTR, 1); > + dns_send_question(iface, "_services._dns-sd._udp.local", > TYPE_PTR, 0); > announce_init(iface); > } > > diff --git a/ubus.c b/ubus.c > index 3cf2313..19bc33f 100644 > --- a/ubus.c > +++ b/ubus.c > @@ -205,10 +205,10 @@ mdns_query(struct ubus_context *ctx, struct ubus_object > *obj, > > if (!strcmp(method, "query")) { > if (iface_v4) > - dns_send_question(iface_v4, question, type, 0); > +
Re: [LEDE-DEV] [LEDE 17.01] ubox: update hash for ubox-2017-01-15-5649c028.tar.xz
Hi John, On Wed, 2017-02-08 at 16:20 +0100, John Crispin wrote: > Hi, > > superseded by a procd update in my staging tree. Ok I just wanted to make sure we may build reliably everything from the very scratch (i.e. after "make distclean") for 2017.01 release. -Alexey ___ Lede-dev mailing list Lede-dev@lists.infradead.org http://lists.infradead.org/mailman/listinfo/lede-dev
Re: [LEDE-DEV] [LEDE 17.01] ubox: update hash for ubox-2017-01-15-5649c028.tar.xz
Hi, superseded by a procd update in my staging tree. John On 08/02/2017 14:34, Alexey Brodkin wrote: > sha256sum for both > http://sources.lede-project.org/ubox-2017-01-15-5649c028.tar.xz > and locally created archive from git doesn't match expected > ae77504a4397f92173a7646fa3555e5b51abd7ff1dd1c419770223359e41937a > > So we update checksum. > > Signed-off-by: Alexey Brodkin> Cc: John Crispin > --- > package/system/ubox/Makefile | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/package/system/ubox/Makefile b/package/system/ubox/Makefile > index e833cac..cdf9265 100644 > --- a/package/system/ubox/Makefile > +++ b/package/system/ubox/Makefile > @@ -7,7 +7,7 @@ PKG_SOURCE_PROTO:=git > PKG_SOURCE_URL=$(LEDE_GIT)/project/ubox.git > PKG_SOURCE_DATE:=2017-01-15 > PKG_SOURCE_VERSION:=5649c028c426060616e2bd4e7ea83271cd333d21 > -PKG_MIRROR_HASH:=ae77504a4397f92173a7646fa3555e5b51abd7ff1dd1c419770223359e41937a > +PKG_MIRROR_HASH:=28e5580d481a415697fbca46c160177bab6dc47a04ba7ddb73537827632b2dd6 > CMAKE_INSTALL:=1 > > PKG_LICENSE:=GPL-2.0 > ___ Lede-dev mailing list Lede-dev@lists.infradead.org http://lists.infradead.org/mailman/listinfo/lede-dev
[LEDE-DEV] [PATCH 1/2] mac80211: backport upstream fix for CSA in IBSS mode
Allows to change channels on-the-fly using CSA when using IBSS. Signed-off-by: Koen Vandeputte--- fyi: Fix is still awaiting upstream approval .../320-mac80211-fix-CSA-in-IBSS-mode.patch| 34 ++ 1 file changed, 34 insertions(+) create mode 100644 package/kernel/mac80211/patches/320-mac80211-fix-CSA-in-IBSS-mode.patch diff --git a/package/kernel/mac80211/patches/320-mac80211-fix-CSA-in-IBSS-mode.patch b/package/kernel/mac80211/patches/320-mac80211-fix-CSA-in-IBSS-mode.patch new file mode 100644 index 000..13765b2 --- /dev/null +++ b/package/kernel/mac80211/patches/320-mac80211-fix-CSA-in-IBSS-mode.patch @@ -0,0 +1,34 @@ +From: Koen Vandeputte +Date: Wed, 8 Feb 2017 15:29:45 +0100 +Subject: [PATCH] mac80211: fix CSA in IBSS mode +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Add the missing IBSS capability flag during capability init as it needs +to be inserted into the generated beacon in order for CSA to work. + +Signed-off-by: Piotr Gawlowicz +Signed-off-by: Mikołaj Chwalisz +Tested-by: Koen Vandeputte +--- + +--- a/net/mac80211/ibss.c b/net/mac80211/ibss.c +@@ -487,14 +487,14 @@ int ieee80211_ibss_csa_beacon(struct iee + struct beacon_data *presp, *old_presp; + struct cfg80211_bss *cbss; + const struct cfg80211_bss_ies *ies; +- u16 capability = 0; ++ u16 capability = WLAN_CAPABILITY_IBSS; + u64 tsf; + int ret = 0; + + sdata_assert_lock(sdata); + + if (ifibss->privacy) +- capability = WLAN_CAPABILITY_PRIVACY; ++ capability |= WLAN_CAPABILITY_PRIVACY; + + cbss = cfg80211_get_bss(sdata->local->hw.wiphy, ifibss->chandef.chan, + ifibss->bssid, ifibss->ssid, -- 2.7.4 ___ Lede-dev mailing list Lede-dev@lists.infradead.org http://lists.infradead.org/mailman/listinfo/lede-dev
[LEDE-DEV] [PATCH 2/2] mac80211: refresh patches
Signed-off-by: Koen Vandeputte--- .../100-remove-cryptoapi-dependencies.patch| 124 +++-- ...ath9k_hw-issue-external-reset-for-QCA955x.patch | 51 + .../mac80211/patches/530-ath9k_extra_leds.patch| 12 +- .../621-rt2x00-add-support-for-mt7620.patch| 6 +- 4 files changed, 102 insertions(+), 91 deletions(-) diff --git a/package/kernel/mac80211/patches/100-remove-cryptoapi-dependencies.patch b/package/kernel/mac80211/patches/100-remove-cryptoapi-dependencies.patch index 7eb3d99..95fea44 100644 --- a/package/kernel/mac80211/patches/100-remove-cryptoapi-dependencies.patch +++ b/package/kernel/mac80211/patches/100-remove-cryptoapi-dependencies.patch @@ -43,118 +43,122 @@ - struct aead_request *aead_req; - int reqsize = sizeof(*aead_req) + crypto_aead_reqsize(tfm); - u8 *__aad; -+ int i; - +- - aead_req = kzalloc(reqsize + CCM_AAD_LEN, GFP_ATOMIC); - if (!aead_req) - return -ENOMEM; -+ crypto_cipher_encrypt_one(tfm, b, b_0); - +- - __aad = (u8 *)aead_req + reqsize; - memcpy(__aad, aad, CCM_AAD_LEN); -+ /* Extra Authenticate-only data (always two AES blocks) */ -+ for (i = 0; i < AES_BLOCK_SIZE; i++) -+ aad[i] ^= b[i]; -+ crypto_cipher_encrypt_one(tfm, b, aad); - +- - sg_init_table(sg, 3); - sg_set_buf([0], &__aad[2], be16_to_cpup((__be16 *)__aad)); - sg_set_buf([1], data, data_len); - sg_set_buf([2], mic, mic_len); -+ aad += AES_BLOCK_SIZE; - +- - aead_request_set_tfm(aead_req, tfm); - aead_request_set_crypt(aead_req, sg, sg, data_len, b_0); - aead_request_set_ad(aead_req, sg[0].length); -+ for (i = 0; i < AES_BLOCK_SIZE; i++) -+ aad[i] ^= b[i]; -+ crypto_cipher_encrypt_one(tfm, a, aad); ++ int i; - crypto_aead_encrypt(aead_req); - kzfree(aead_req); -+ /* Mask out bits from auth-only-b_0 */ -+ b_0[0] &= 0x07; ++ crypto_cipher_encrypt_one(tfm, b, b_0); - return 0; ++ /* Extra Authenticate-only data (always two AES blocks) */ ++ for (i = 0; i < AES_BLOCK_SIZE; i++) ++ aad[i] ^= b[i]; ++ crypto_cipher_encrypt_one(tfm, b, aad); ++ ++ aad += AES_BLOCK_SIZE; ++ ++ for (i = 0; i < AES_BLOCK_SIZE; i++) ++ aad[i] ^= b[i]; ++ crypto_cipher_encrypt_one(tfm, a, aad); ++ ++ /* Mask out bits from auth-only-b_0 */ ++ b_0[0] &= 0x07; ++ + /* S_0 is used to encrypt T (= MIC) */ + b_0[14] = 0; + b_0[15] = 0; + crypto_cipher_encrypt_one(tfm, s_0, b_0); - } - --int ieee80211_aes_ccm_decrypt(struct crypto_aead *tfm, u8 *b_0, u8 *aad, --u8 *data, size_t data_len, u8 *mic, --size_t mic_len) ++} ++ + +void ieee80211_aes_ccm_encrypt(struct crypto_cipher *tfm, u8 *b_0, u8 *aad, + u8 *data, size_t data_len, u8 *mic, + size_t mic_len) - { -- struct scatterlist sg[3]; -- struct aead_request *aead_req; -- int reqsize = sizeof(*aead_req) + crypto_aead_reqsize(tfm); -- u8 *__aad; -- int err; ++{ + int i, j, last_len, num_blocks; + u8 b[AES_BLOCK_SIZE]; + u8 s_0[AES_BLOCK_SIZE]; + u8 e[AES_BLOCK_SIZE]; + u8 *pos, *cpos; - -- if (data_len == 0) -- return -EINVAL; ++ + num_blocks = DIV_ROUND_UP(data_len, AES_BLOCK_SIZE); + last_len = data_len % AES_BLOCK_SIZE; + aes_ccm_prepare(tfm, b_0, aad, s_0, b, b); - -- aead_req = kzalloc(reqsize + CCM_AAD_LEN, GFP_ATOMIC); -- if (!aead_req) -- return -ENOMEM; ++ + /* Process payload blocks */ + pos = data; + cpos = data; + for (j = 1; j <= num_blocks; j++) { + int blen = (j == num_blocks && last_len) ? + last_len : AES_BLOCK_SIZE; - -- __aad = (u8 *)aead_req + reqsize; -- memcpy(__aad, aad, CCM_AAD_LEN); ++ + /* Authentication followed by encryption */ + for (i = 0; i < blen; i++) + b[i] ^= pos[i]; + crypto_cipher_encrypt_one(tfm, b, b); - -- sg_init_table(sg, 3); -- sg_set_buf([0], &__aad[2], be16_to_cpup((__be16 *)__aad)); -- sg_set_buf([1], data, data_len); -- sg_set_buf([2], mic, mic_len); ++ + b_0[14] = (j >> 8) & 0xff; + b_0[15] = j & 0xff; + crypto_cipher_encrypt_one(tfm, e, b_0); + for (i = 0; i < blen; i++) + *cpos++ = *pos++ ^ e[i]; + } - -- aead_request_set_tfm(aead_req, tfm); -- aead_request_set_crypt(aead_req, sg, sg, data_len + mic_len, b_0); -- aead_request_set_ad(aead_req, sg[0].length); ++ + for (i = 0; i < mic_len; i++) + mic[i] = b[i] ^ s_0[i]; -+} + } -- err = crypto_aead_decrypt(aead_req); --
[LEDE-DEV] [lede] Patch notification: 1 patch updated
Hello, The following patch (submitted by you) has been updated in patchwork: * lede: [LEDE-DEV] iperf3: update to version 3.1.5 and download via git - http://patchwork.ozlabs.org/patch/715468/ - for: LEDE development was: New now: Superseded This email is a notification only - you do not need to respond. Happy patchworking. -- This is an automated mail sent by the patchwork system at patchwork.ozlabs.org. To stop receiving these notifications, edit your mail settings at: http://patchwork.ozlabs.org/mail/ ___ Lede-dev mailing list Lede-dev@lists.infradead.org http://lists.infradead.org/mailman/listinfo/lede-dev
Re: [LEDE-DEV] procd: service instance restart does not wait for old process to be closed before lanching the new one
Hi John, One of the daemons I use takes sometime a couple of seconds to close after receiving SIGTERM, so when I issue "/etc/init.d/mydaemon restart" there will be 2 instances of that service running in parallel until the initial instance will finally manage to handle the SIGTERM signal. This daemon registers its own ubus object, but new instance will fail to register its object due to name conflict with an object that is already existing. The root cause of this defect is the way procd restarts a service by issuing a service_stop followed immediately by a service_start: 1) service_stop call translates to - instance_stop() -> send SIGTERM signal to the old instance - instance_free() -> call uloop_process_delete(), which means in->proc.pending will be set to 0 2) sevice_start will launch the new instance becaise previous process has been already deleted Shouldn't uloop_process_delete() be called only when process was closed, as it is the case in uloop.c? If so, instance_start() should at least set restart to 1 when (in->proc.pending && in->halt). And isn't a bit too optimistic to assume all daemons will be stopped by SIGTERM? BR, Alin ___ Lede-dev mailing list Lede-dev@lists.infradead.org http://lists.infradead.org/mailman/listinfo/lede-dev
[LEDE-DEV] procd: service instance restart does not wait for old process to be closed before lanching the new one
Hi John, One of the daemons I use takes sometime a couple of seconds to close after receiving SIGTERM, so when I issue "/etc/init.d/mydaemon restart" there will be 2 instances of that service running in parallel until the initial instance will finally manage to handle the SIGTERM signal. This daemon registers its own ubus object, but new instance will fail to register its object due to name conflict with an object that is already existing. The root cause of this defect is the way procd restarts a service by issuing a service_stop followed immediately by a service_start: 1) service_stop call translates to - instance_stop() -> send SIGTERM signal to the old instance - instance_free() -> call uloop_process_delete(), which means in->proc.pending will be set to 0 2) sevice_start will launch the new instance becaise previous process has been already deleted Shouldn't uloop_process_delete() be called only when process was closed, as it is the case in uloop.c? If so, instance_start() should at least set restart to 1 when (in->proc.pending && in->halt). And isn't a bit too optimistic to assume all daemons will be stopped by SIGTERM? BR, Alin ___ Lede-dev mailing list Lede-dev@lists.infradead.org http://lists.infradead.org/mailman/listinfo/lede-dev
[LEDE-DEV] [PATCH mdns] Add simple "Fall through" comment to the announce_timer function switch
From: Rafał MiłeckiIt's a common practice to add such comments to make it clear break instruction was skipped on purpose. Signed-off-by: Rafał Miłecki --- announce.c | 1 + 1 file changed, 1 insertion(+) diff --git a/announce.c b/announce.c index d1aca5b..03c7b8f 100644 --- a/announce.c +++ b/announce.c @@ -62,6 +62,7 @@ announce_timer(struct uloop_timeout *timeout) return; } iface->announce_state++; + /* Fall through */ case STATE_ANNOUNCE: service_announce(iface, announce_ttl); -- 2.11.0 ___ Lede-dev mailing list Lede-dev@lists.infradead.org http://lists.infradead.org/mailman/listinfo/lede-dev
[LEDE-DEV] [LEDE 17.01] ubox: update hash for ubox-2017-01-15-5649c028.tar.xz
sha256sum for both http://sources.lede-project.org/ubox-2017-01-15-5649c028.tar.xz and locally created archive from git doesn't match expected ae77504a4397f92173a7646fa3555e5b51abd7ff1dd1c419770223359e41937a So we update checksum. Signed-off-by: Alexey BrodkinCc: John Crispin --- package/system/ubox/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/system/ubox/Makefile b/package/system/ubox/Makefile index e833cac..cdf9265 100644 --- a/package/system/ubox/Makefile +++ b/package/system/ubox/Makefile @@ -7,7 +7,7 @@ PKG_SOURCE_PROTO:=git PKG_SOURCE_URL=$(LEDE_GIT)/project/ubox.git PKG_SOURCE_DATE:=2017-01-15 PKG_SOURCE_VERSION:=5649c028c426060616e2bd4e7ea83271cd333d21 -PKG_MIRROR_HASH:=ae77504a4397f92173a7646fa3555e5b51abd7ff1dd1c419770223359e41937a +PKG_MIRROR_HASH:=28e5580d481a415697fbca46c160177bab6dc47a04ba7ddb73537827632b2dd6 CMAKE_INSTALL:=1 PKG_LICENSE:=GPL-2.0 -- 2.10.2 ___ Lede-dev mailing list Lede-dev@lists.infradead.org http://lists.infradead.org/mailman/listinfo/lede-dev
[LEDE-DEV] [PATCH mdns] Change dns_send_question function arg from unicast to multicast
From: Rafał MiłeckiThis trivial patch just reverses argument logic to make it a bit more consistent with struct interface which contains "multicast" field. This hopefully will make typos less likely and code easier to follow. Signed-off-by: Rafał Miłecki --- announce.c | 2 +- cache.c | 6 +++--- dns.c | 4 ++-- dns.h | 2 +- interface.c | 4 ++-- ubus.c | 4 ++-- 6 files changed, 11 insertions(+), 11 deletions(-) diff --git a/announce.c b/announce.c index 3ff64b2..d1aca5b 100644 --- a/announce.c +++ b/announce.c @@ -46,7 +46,7 @@ announce_timer(struct uloop_timeout *timeout) case STATE_PROBE1: case STATE_PROBE2: case STATE_PROBE3: - dns_send_question(iface, mdns_hostname_local, TYPE_ANY, 0); + dns_send_question(iface, mdns_hostname_local, TYPE_ANY, 1); uloop_timeout_set(timeout, 250); iface->announce_state++; break; diff --git a/cache.c b/cache.c index 07d4f20..fa32465 100644 --- a/cache.c +++ b/cache.c @@ -89,7 +89,7 @@ cache_gc_timer(struct uloop_timeout *timeout) continue; } s->refresh += 50; - dns_send_question(s->iface, s->entry, TYPE_PTR, 1); + dns_send_question(s->iface, s->entry, TYPE_PTR, 0); } uloop_timeout_set(timeout, 1); @@ -128,7 +128,7 @@ cache_scan(void) vlist_for_each_element(, iface, node) avl_for_each_element(, s, avl) - dns_send_question(iface, s->entry, TYPE_PTR, 1); + dns_send_question(iface, s->entry, TYPE_PTR, 0); } static struct cache_service* @@ -167,7 +167,7 @@ cache_service(struct interface *iface, char *entry, int hlen, int ttl) avl_insert(, >avl); if (!hlen) - dns_send_question(iface, entry, TYPE_PTR, !iface->multicast); + dns_send_question(iface, entry, TYPE_PTR, iface->multicast); return s; } diff --git a/dns.c b/dns.c index 89cd4ce..63788f7 100644 --- a/dns.c +++ b/dns.c @@ -67,7 +67,7 @@ dns_type_string(uint16_t type) } void -dns_send_question(struct interface *iface, const char *question, int type, int unicast) +dns_send_question(struct interface *iface, const char *question, int type, int multicast) { static struct dns_header h; static struct dns_question q; @@ -87,7 +87,7 @@ dns_send_question(struct interface *iface, const char *question, int type, int u int len; h.questions = cpu_to_be16(1); - q.class = cpu_to_be16(((unicast) ? (CLASS_UNICAST) : (0)) | 1); + q.class = cpu_to_be16((multicast ? 0 : CLASS_UNICAST) | 1); q.type = cpu_to_be16(type); len = dn_comp(question, (void *) dns_buffer, sizeof(dns_buffer), NULL, NULL); diff --git a/dns.h b/dns.h index 4425d4c..6210e0e 100644 --- a/dns.h +++ b/dns.h @@ -73,7 +73,7 @@ struct interface; extern int cfg_proto; extern int cfg_no_subnet; -void dns_send_question(struct interface *iface, const char *question, int type, int unicast); +void dns_send_question(struct interface *iface, const char *question, int type, int multicast); void dns_init_answer(void); void dns_add_answer(int type, const uint8_t *rdata, uint16_t rdlength, int ttl); void dns_send_answer(struct interface *iface, const char *answer); diff --git a/interface.c b/interface.c index 4dfeace..f09329b 100644 --- a/interface.c +++ b/interface.c @@ -417,7 +417,7 @@ reconnect_socket4(struct uloop_timeout *timeout) uloop_fd_add(>fd, ULOOP_READ); if (iface->multicast) { - dns_send_question(iface, "_services._dns-sd._udp.local", TYPE_PTR, 1); + dns_send_question(iface, "_services._dns-sd._udp.local", TYPE_PTR, 0); announce_init(iface); } @@ -465,7 +465,7 @@ reconnect_socket6(struct uloop_timeout *timeout) uloop_fd_add(>fd, ULOOP_READ); if (iface->multicast) { - dns_send_question(iface, "_services._dns-sd._udp.local", TYPE_PTR, 1); + dns_send_question(iface, "_services._dns-sd._udp.local", TYPE_PTR, 0); announce_init(iface); } diff --git a/ubus.c b/ubus.c index 3cf2313..19bc33f 100644 --- a/ubus.c +++ b/ubus.c @@ -205,10 +205,10 @@ mdns_query(struct ubus_context *ctx, struct ubus_object *obj, if (!strcmp(method, "query")) { if (iface_v4) - dns_send_question(iface_v4, question, type, 0); + dns_send_question(iface_v4, question, type, 1); if (iface_v6) - dns_send_question(iface_v6, question, type, 0); + dns_send_question(iface_v6, question, type, 1); return UBUS_STATUS_OK; } else if (!strcmp(method, "fetch")) { -- 2.11.0
[LEDE-DEV] make fail for x86 geode target - 17.01
Hi, I am trying to build 17.01 for x86 Geode target but it is failing to build luasocket. My build environment is Debian 8, x86_64. git branch * lede-17.01 master git status On branch lede-17.01 Your branch is up-to-date with 'origin/lede-17.01'. nothing to commit, working directory clean I was able to buid images successfully for x86_64 (APU2) and ar71xx (mikrotik). But no joy with x86 geode. Any pointers would be much appreciated. Thanks in advance. Regards, Nishant Below is the relevant "make -j1 V=s" output: make[3]: Entering directory '/data/openwrt/lede/x86_geode/source/feeds/packages/lang/luasocket' make -C /data/openwrt/lede/x86_geode/source/build_dir/target-i386_pentium_musl-1.1.15/luasocket-3.0-rc1-20130909/ LIBDIR="-L/data/openwrt/lede/x86_geode/source/staging_dir/target-i386_pentium_musl-1.1.15/usr/lib -L/data/openwrt/lede/x86_geode/source/staging_dir/target-i386_pentium_musl-1.1.15/lib -L/data/openwrt/lede/x86_geode/source/staging_dir/toolchain-i386_pentium_gcc-5.4.0_musl-1.1.15/usr/lib -L/data/openwrt/lede/x86_geode/source/staging_dir/toolchain-i386_pentium_gcc-5.4.0_musl-1.1.15/lib -znow -zrelro" CC="i486-openwrt-linux-musl-gcc -Os -pipe -march=pentium-mmx -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -iremap /data/openwrt/lede/x86_geode/source/build_dir/target-i386_pentium_musl-1.1.15/luasocket-3.0-rc1-20130909:luasocket-3.0-rc1-20130909 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/data/openwrt/lede/x86_geode/source/staging_dir/target-i386_pentium_musl-1.1.15/usr/include -I/data/openwrt/lede/x86_geode/source/staging_dir/target-i386_pentium_musl-1.1.15/include -I/data/openwrt/lede/x86_geode/source/staging_dir/toolchain-i386_pentium_gcc-5.4.0_musl-1.1.15/usr/include -I/data/openwrt/lede/x86_geode/source/staging_dir/toolchain-i386_pentium_gcc-5.4.0_musl-1.1.15/include/fortify -I/data/openwrt/lede/x86_geode/source/staging_dir/toolchain-i386_pentium_gcc-5.4.0_musl-1.1.15/include -std=gnu99" LD="i486-openwrt-linux-musl-ld -shared" all make[4]: Entering directory '/data/openwrt/lede/x86_geode/source/build_dir/target-i386_pentium_musl-1.1.15/luasocket-3.0-rc1-20130909' make -C src linux make[5]: Entering directory '/data/openwrt/lede/x86_geode/source/build_dir/target-i386_pentium_musl-1.1.15/luasocket-3.0-rc1-20130909/src' make all-unix PLAT=linux make[6]: Entering directory '/data/openwrt/lede/x86_geode/source/build_dir/target-i386_pentium_musl-1.1.15/luasocket-3.0-rc1-20130909/src' i486-openwrt-linux-musl-ld -shared luasocket.o timeout.o buffer.o io.o auxiliar.o options.o inet.o if.o usocket.o except.o select.o tcp.o udp.o -O -shared -fpic -o socket.so.3.0-rc1 buffer.o: In function `buffer_meth_receive': /data/openwrt/lede/x86_geode/source/build_dir/target-i386_pentium_musl-1.1.15/luasocket-3.0-rc1-20130909/src/buffer.c:151: undefined reference to `__stack_chk_fail_local' auxiliar.o: In function `auxiliar_tostring': /data/openwrt/lede/x86_geode/source/build_dir/target-i386_pentium_musl-1.1.15/luasocket-3.0-rc1-20130909/src/auxiliar.c:64: undefined reference to `__stack_chk_fail_local' auxiliar.o: In function `auxiliar_checkclass': /data/openwrt/lede/x86_geode/source/build_dir/target-i386_pentium_musl-1.1.15/luasocket-3.0-rc1-20130909/src/auxiliar.c:98: undefined reference to `__stack_chk_fail_local' auxiliar.o: In function `auxiliar_checkgroup': /data/openwrt/lede/x86_geode/source/build_dir/target-i386_pentium_musl-1.1.15/luasocket-3.0-rc1-20130909/src/auxiliar.c:112: undefined reference to `__stack_chk_fail_local' options.o: In function `opt_ip6_setmembership': /data/openwrt/lede/x86_geode/source/build_dir/target-i386_pentium_musl-1.1.15/luasocket-3.0-rc1-20130909/src/options.c:301: undefined reference to `__stack_chk_fail_local' options.o:/data/openwrt/lede/x86_geode/source/build_dir/target-i386_pentium_musl-1.1.15/luasocket-3.0-rc1-20130909/src/options.c:61: more undefined references to `__stack_chk_fail_local' follow makefile:348: recipe for target 'socket.so.3.0-rc1' failed make[6]: *** [socket.so.3.0-rc1] Error 1 make[6]: Leaving directory '/data/openwrt/lede/x86_geode/source/build_dir/target-i386_pentium_musl-1.1.15/luasocket-3.0-rc1-20130909/src' makefile:334: recipe for target 'linux' failed make[5]: *** [linux] Error 2 make[5]: Leaving directory '/data/openwrt/lede/x86_geode/source/build_dir/target-i386_pentium_musl-1.1.15/luasocket-3.0-rc1-20130909/src' makefile:18: recipe for target 'linux' failed make[4]: *** [linux] Error 2 make[4]: Leaving directory '/data/openwrt/lede/x86_geode/source/build_dir/target-i386_pentium_musl-1.1.15/luasocket-3.0-rc1-20130909' Makefile:63: recipe for target '/data/openwrt/lede/x86_geode/source/build_dir/target-i386_pentium_musl-1.1.15/luasocket-3.0-rc1-20130909/.built' failed make[3]: ***
[LEDE-DEV] [PATCH 1/2] cns3xxx: switch to linux 4.9
Signed-off-by: Koen Vandeputte--- Depends on patch: "cns3xxx: add preliminary 4.9 support" target/linux/cns3xxx/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/linux/cns3xxx/Makefile b/target/linux/cns3xxx/Makefile index c8d6251..817bb31 100644 --- a/target/linux/cns3xxx/Makefile +++ b/target/linux/cns3xxx/Makefile @@ -14,7 +14,7 @@ CPU_TYPE:=mpcore CPU_SUBTYPE:=vfp MAINTAINER:=Felix Fietkau -KERNEL_PATCHVER:=4.4 +KERNEL_PATCHVER:=4.9 define Target/Description Build images for Cavium Networks Econa CNS3xxx based boards, -- 2.7.4 ___ Lede-dev mailing list Lede-dev@lists.infradead.org http://lists.infradead.org/mailman/listinfo/lede-dev
[LEDE-DEV] [PATCH 2/2] cns3xxx: remove linux 4.4 support
Signed-off-by: Koen Vandeputte--- target/linux/cns3xxx/config-4.4| 291 - .../patches-4.4/000-cns3xxx_arch_include.patch | 8 - .../patches-4.4/001-arm_openwrt_machtypes.patch| 7 - .../010-arm_introduce-dma-fiq-irq-broadcast.patch | 80 -- .../cns3xxx/patches-4.4/020-watchdog_support.patch | 59 - .../cns3xxx/patches-4.4/025-smp_support.patch | 30 --- .../linux/cns3xxx/patches-4.4/030-pcie_clock.patch | 11 - .../cns3xxx/patches-4.4/040-fiq_support.patch | 40 --- .../linux/cns3xxx/patches-4.4/045-twd_base.patch | 43 --- target/linux/cns3xxx/patches-4.4/055-pcie_io.patch | 19 -- .../linux/cns3xxx/patches-4.4/060-pcie_abort.patch | 109 .../patches-4.4/065-pcie_skip_inactive.patch | 11 - .../cns3xxx/patches-4.4/070-i2c_support.patch | 31 --- .../cns3xxx/patches-4.4/075-spi_support.patch | 51 .../cns3xxx/patches-4.4/080-sata_support.patch | 26 -- target/linux/cns3xxx/patches-4.4/090-timers.patch | 103 .../cns3xxx/patches-4.4/095-gpio_support.patch | 67 - .../patches-4.4/097-l2x0_cmdline_disable.patch | 69 - .../cns3xxx/patches-4.4/100-laguna_support.patch | 46 .../patches-4.4/101-laguna_sdhci_card_detect.patch | 14 - .../patches-4.4/110-pci_isolated_interrupts.patch | 95 --- ...ER-to-set-MRSS-128-to-fix-CNS3xxx-BM-DMA..patch | 23 -- .../patches-4.4/200-broadcom_phy_reinit.patch | 14 - .../cns3xxx/patches-4.4/210-dwc2_defaults.patch| 47 24 files changed, 1294 deletions(-) delete mode 100644 target/linux/cns3xxx/config-4.4 delete mode 100644 target/linux/cns3xxx/patches-4.4/000-cns3xxx_arch_include.patch delete mode 100644 target/linux/cns3xxx/patches-4.4/001-arm_openwrt_machtypes.patch delete mode 100644 target/linux/cns3xxx/patches-4.4/010-arm_introduce-dma-fiq-irq-broadcast.patch delete mode 100644 target/linux/cns3xxx/patches-4.4/020-watchdog_support.patch delete mode 100644 target/linux/cns3xxx/patches-4.4/025-smp_support.patch delete mode 100644 target/linux/cns3xxx/patches-4.4/030-pcie_clock.patch delete mode 100644 target/linux/cns3xxx/patches-4.4/040-fiq_support.patch delete mode 100644 target/linux/cns3xxx/patches-4.4/045-twd_base.patch delete mode 100644 target/linux/cns3xxx/patches-4.4/055-pcie_io.patch delete mode 100644 target/linux/cns3xxx/patches-4.4/060-pcie_abort.patch delete mode 100644 target/linux/cns3xxx/patches-4.4/065-pcie_skip_inactive.patch delete mode 100644 target/linux/cns3xxx/patches-4.4/070-i2c_support.patch delete mode 100644 target/linux/cns3xxx/patches-4.4/075-spi_support.patch delete mode 100644 target/linux/cns3xxx/patches-4.4/080-sata_support.patch delete mode 100644 target/linux/cns3xxx/patches-4.4/090-timers.patch delete mode 100644 target/linux/cns3xxx/patches-4.4/095-gpio_support.patch delete mode 100644 target/linux/cns3xxx/patches-4.4/097-l2x0_cmdline_disable.patch delete mode 100644 target/linux/cns3xxx/patches-4.4/100-laguna_support.patch delete mode 100644 target/linux/cns3xxx/patches-4.4/101-laguna_sdhci_card_detect.patch delete mode 100644 target/linux/cns3xxx/patches-4.4/110-pci_isolated_interrupts.patch delete mode 100644 target/linux/cns3xxx/patches-4.4/130-Extend-PCIE_BUS_PEER2PEER-to-set-MRSS-128-to-fix-CNS3xxx-BM-DMA..patch delete mode 100644 target/linux/cns3xxx/patches-4.4/200-broadcom_phy_reinit.patch delete mode 100644 target/linux/cns3xxx/patches-4.4/210-dwc2_defaults.patch diff --git a/target/linux/cns3xxx/config-4.4 b/target/linux/cns3xxx/config-4.4 deleted file mode 100644 index 4745f4e..000 --- a/target/linux/cns3xxx/config-4.4 +++ /dev/null @@ -1,291 +0,0 @@ -CONFIG_ALIGNMENT_TRAP=y -CONFIG_ARCH_CNS3XXX=y -CONFIG_ARCH_HAS_ATOMIC64_DEC_IF_POSITIVE=y -CONFIG_ARCH_HAS_ELF_RANDOMIZE=y -CONFIG_ARCH_HAS_GCOV_PROFILE_ALL=y -CONFIG_ARCH_HAS_SG_CHAIN=y -CONFIG_ARCH_HAS_TICK_BROADCAST=y -CONFIG_ARCH_HAVE_CUSTOM_GPIO_H=y -CONFIG_ARCH_HIBERNATION_POSSIBLE=y -CONFIG_ARCH_MIGHT_HAVE_PC_PARPORT=y -CONFIG_ARCH_MULTIPLATFORM=y -# CONFIG_ARCH_MULTI_CPU_AUTO is not set -CONFIG_ARCH_MULTI_V6=y -CONFIG_ARCH_MULTI_V6_V7=y -CONFIG_ARCH_NR_GPIO=0 -# CONFIG_ARCH_OMAP2 is not set -CONFIG_ARCH_REQUIRE_GPIOLIB=y -# CONFIG_ARCH_SELECT_MEMORY_MODEL is not set -# CONFIG_ARCH_SPARSEMEM_DEFAULT is not set -CONFIG_ARCH_SUPPORTS_ATOMIC_RMW=y -CONFIG_ARCH_SUPPORTS_UPROBES=y -CONFIG_ARCH_SUSPEND_POSSIBLE=y -CONFIG_ARCH_USE_BUILTIN_BSWAP=y -CONFIG_ARCH_USE_CMPXCHG_LOCKREF=y -CONFIG_ARCH_WANT_GENERAL_HUGETLB=y -CONFIG_ARCH_WANT_IPC_PARSE_VERSION=y -CONFIG_ARCH_WANT_OPTIONAL_GPIOLIB=y -# CONFIG_ARCH_WM8750 is not set -CONFIG_ARM=y -# CONFIG_ARM_CPU_SUSPEND is not set -CONFIG_ARM_GIC=y -CONFIG_ARM_HAS_SG_CHAIN=y -CONFIG_ARM_HEAVY_MB=y -CONFIG_ARM_L1_CACHE_SHIFT=5 -CONFIG_ARM_PATCH_PHYS_VIRT=y -CONFIG_ARM_THUMB=y -CONFIG_ATA=y -CONFIG_ATAGS=y -# CONFIG_ATA_SFF is not set -CONFIG_ATA_VERBOSE_ERROR=y -CONFIG_AUTO_ZRELADDR=y