[OpenWrt-Devel] Compile error : Lamobo_R1
Hi, I tried to compile openwrt for the BananaPi using chaos calmer and trunk. When i try to compile it, i get the following compilerror. How do i fix this compile error ? Greeting from Amsterdam, Perry arm-openwrt-linux-muslgnueabi-g++ -I/home/openwrt/build-4.2/build/sunxi/Lamobo_R1/openwrt-src/staging_dir/target-arm_cortex-a8+vfpv3_musl-1.1.11_eabi/usr/include -I/home/openwrt/build-4.2/build/sunxi/Lamobo_R1/openwrt-src/staging_dir/target-arm_cortex-a8+vfpv3_musl-1.1.11_eabi/usr/include/libxml2 -I/home/openwrt/build-4.2/build/sunxi/Lamobo_R1/openwrt-src/staging_dir/target-arm_cortex-a8+vfpv3_musl-1.1.11_eabi/usr/include -g -DOPENWRT_BUILD -nodefaultlibs -fno-exceptions functions_killpids.o functions_lock.o functions_search.o functions_curl.o functions_xmlreader.o functions_provisioning.o functions_polling.o functions_xml2array.o functions.o functions_openwrt.o functions_network.o functions_routing.o functions_tinc.o functions_dhcrelay.o functions_switch.o functions_argv.o functions_sqlite.o functions_password.o functions_reboot.o functions_logging.o functions_online_status.o functions_base64.o functions_zabbix.o provcl.o -o provcl.exe -lssl -lcrypto -L/home/openwrt/build-4.2/build/sunxi/Lamobo_R1/openwrt-src/staging_dir/target-arm_cortex-a8+vfpv3_musl-1.1.11_eabi/usr/lib -lxml2 -L/home/openwrt/build-4.2/build/sunxi/Lamobo_R1/openwrt-src/staging_dir/target-arm_cortex-a8+vfpv3_musl-1.1.11_eabi/usr/lib -lz -lm -lcurl -lpolarssl -L/home/openwrt/build-4.2/build/sunxi/Lamobo_R1/openwrt-src/staging_dir/target-arm_cortex-a8+vfpv3_musl-1.1.11_eabi/usr/lib -lmcrypt -lc -lsqlite3 /home/openwrt/build-4.2/build/sunxi/Lamobo_R1/openwrt-src/staging_dir/toolchain-arm_cortex-a8+vfpv3_gcc-5.2.0_musl-1.1.11_eabi/lib/gcc/arm-openwrt-linux-muslgnueabi/5.2.0/../../../../arm-openwrt-linux-muslgnueabi/bin/ld: functions_provisioning.o: undefined reference to symbol '__aeabi_uidiv@@GCC_3.5' /home/openwrt/build-4.2/build/sunxi/Lamobo_R1/openwrt-src/staging_dir/toolchain-arm_cortex-a8+vfpv3_gcc-5.2.0_musl-1.1.11_eabi/arm-openwrt-linux-muslgnueabi/bin/../../../toolchain-arm_cortex-a8+vfpv3_gcc-5.2.0_musl-1.1.11_eabi/lib/libgcc_s.so.1: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status make[4]: *** [provcl.exe] Error 1 make[4]: Leaving directory `/home/openwrt/build-4.2/build/sunxi/Lamobo_R1/openwrt-src/build_dir/target-arm_cortex-a8+vfpv3_musl-1.1.11_eabi/ipcs/ipcs-4.2/src/ipcs/c++' make[3]: *** [/home/openwrt/build-4.2/build/sunxi/Lamobo_R1/openwrt-src/build_dir/target-arm_cortex-a8+vfpv3_musl-1.1.11_eabi/ipcs//ipcs-4.2//.built] Error 2 make[3]: Leaving directory `/home/openwrt/build-4.2/build/sunxi/Lamobo_R1/openwrt-src/feeds/ipcs/ipcs' make[2]: *** [package/feeds/ipcs/ipcs/compile] Error 2 make[2]: Leaving directory `/home/openwrt/build-4.2/build/sunxi/Lamobo_R1/openwrt-src' make[1]: *** [/home/openwrt/build-4.2/build/sunxi/Lamobo_R1/openwrt-src/staging_dir/target-arm_cortex-a8+vfpv3_musl-1.1.11_eabi/stamp/.package_compile] Error 2 make[1]: Leaving directory `/home/openwrt/build-4.2/build/sunxi/Lamobo_R1/openwrt-src' make: *** [world] Error 2 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH] Restore AP scan patch
Hi Dimitry, Does this patch, fix the problem that when a router is a wifi access client and access point. The local access point does not work when de wifi access client is not connected ? Greeting from Amsterdam, Perry On 31-07-15 11:01, Dmitry Ivanov wrote: Restore AP scan patch. Signed-off-by: Dmitry Ivanov --- package/kernel/mac80211/patches/210-ap_scan.patch | 11 +++ 1 file changed, 11 insertions(+) create mode 100644 package/kernel/mac80211/patches/210-ap_scan.patch diff --git a/package/kernel/mac80211/patches/210-ap_scan.patch b/package/kernel/mac80211/patches/210-ap_scan.patch new file mode 100644 index 000..29f05c4 --- /dev/null +++ b/package/kernel/mac80211/patches/210-ap_scan.patch @@ -0,0 +1,11 @@ +--- a/net/mac80211/cfg.c b/net/mac80211/cfg.c +@@ -2008,7 +2008,7 @@ static int ieee80211_scan(struct wiphy * +* the frames sent while scanning on other channel will be +* lost) +*/ +- if (sdata->u.ap.beacon && ++ if (0 && sdata->u.ap.beacon && + (!(wiphy->features & NL80211_FEATURE_AP_SCAN) || +!(req->flags & NL80211_SCAN_FLAG_AP))) + return -EOPNOTSUPP; ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] Build ERRORS : Ubiquiti EdgeRouter Lite
Hi, I am tried to build the firmware for Ubiquiti EdgeRouter Lite. CONFIG_HAVE_DOT_CONFIG=y CONFIG_TARGET_octeon=y CONFIG_TARGET_octeon_generic=y CONFIG_TARGET_BOARD="octeon" CONFIG_TARGET_ARCH_PACKAGES="octeon" When compiling the images, i get the following build error. How can i fix this ? Perry LINKvmlinux LD vmlinux.o MODPOST vmlinux.o GEN .version CHK include/generated/compile.h UPD include/generated/compile.h CC init/version.o LD init/built-in.o KSYM.tmp_kallsyms1.o KSYM.tmp_kallsyms2.o LD vmlinux SORTEX vmlinux SYSMAP System.map Building modules, stage 2. MODPOST 130 modules ERROR: "param_ops_int" [net/sched/sch_teql.ko] undefined! ERROR: "unregister_qdisc" [net/sched/sch_teql.ko] undefined! ERROR: "free_netdev" [net/sched/sch_teql.ko] undefined! ERROR: "unregister_netdev" [net/sched/sch_teql.ko] undefined! ERROR: "register_qdisc" [net/sched/sch_teql.ko] undefined! ERROR: "strlcpy" [net/sched/sch_teql.ko] undefined! ERROR: "register_netdev" [net/sched/sch_teql.ko] undefined! ERROR: "alloc_netdev_mqs" [net/sched/sch_teql.ko] undefined! ERROR: "consume_skb" [net/sched/sch_teql.ko] undefined! ERROR: "warn_slowpath_null" [net/sched/sch_teql.ko] undefined! ERROR: "_raw_spin_unlock" [net/sched/sch_teql.ko] undefined! ERROR: "_raw_spin_trylock" [net/sched/sch_teql.ko] undefined! ERROR: "memcpy" [net/sched/sch_teql.ko] undefined! ERROR: "__neigh_event_send" [net/sched/sch_teql.ko] undefined! ERROR: "jiffies" [net/sched/sch_teql.ko] undefined! ERROR: "neigh_destroy" [net/sched/sch_teql.ko] undefined! ERROR: "__neigh_create" [net/sched/sch_teql.ko] undefined! ERROR: "neigh_lookup" [net/sched/sch_teql.ko] undefined! ERROR: "noop_qdisc" [net/sched/sch_teql.ko] undefined! ERROR: "kfree_skb" [net/sched/sch_teql.ko] undefined! ERROR: "__raw_spin_lock_init" [net/sched/sch_teql.ko] undefined! ERROR: "_raw_spin_unlock_bh" [net/sched/sch_teql.ko] undefined! ERROR: "qdisc_reset" [net/sched/sch_teql.ko] undefined! ERROR: "_raw_spin_lock_bh" [net/sched/sch_teql.ko] undefined! ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] tinc protocol handler
Hi, I am working to create a protocol handler for tinc (chaos calmer). I do not understand the following lines ? proto_init_update "*" 1 proto_send_update "$iface" Can someone take a look at the code below and give me some advice :-) or point me to documentation. Perry #!/bin/sh . /lib/functions.sh . ../netifd-proto.sh init_proto "$@" proto_tinc_init_config() { no_device=1 available=1 proto_config_add_string "ipaddr" proto_config_add_string "netmask" proto_config_add_string "ifname" } proto_tinc_setup() { local config="$1" local iface="$2" # Code to start tinc interface. /usr/sbin/tincd --net=$iface --pidfile=/var/run/tinc.$iface.pid logger -p daemon.info -t "Tinc interface started" proto_init_update "*" 1 proto_send_update "$iface" return 0 } proto_tinc_teardown() { local iface="$1" # Code to stop tinc interface. if [ -f /var/run/tinc.$iface.pid ] then pid=`cat /var/run/tinc.$iface.pid` kill $pid fi proto_init_update "*" 0 proto_send_update "$iface" return 0 } add_protocol tinc ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] dnsmasq and --dhcp-relay option ?
The diff is for /etc/init.d/dnsmasq This diff works for me, it puts the following change in /var/etc/dnsmasq.conf dhcp-relay=192.168.200.1,10.255.255.225 What do i need to change to submit it as a patch ? Comments are welome :-) Perry On 24-04-15 13:21, Kevin Darbyshire-Bryant wrote: On 24/04/2015 11:17, Perry Couprie wrote: And something like this ? --- dnsmasq.orig2015-04-24 12:14:51.453093251 +0200 +++ dnsmasq2015-04-24 12:15:15.121092827 +0200 @@ -416,6 +416,10 @@ xappend "--dhcp-range=$networkid,$START,$END,$NETMASK,$leasetime${options:+ $options}" dhcp_option_add "$cfg" "$networkid" + +config_get relay "$cfg" relay +network_get_ipaddr interface_ip "$networkid" +xappend "--dhcp-relay=$interface_ip,$relay" } dhcp_option_add() { Perry That syntax won't work in /etc/dnsmasq.conf - it only understands dnsmasq options, not .init/uci script options which would then be passed to dnsmasq by /var/etc/dnsmasq.conf. If you were talking about extending uci so that it understood additional dnsmasq options then I'm afraid you're beyond my level of knowledge. Stuff that uci doesn't know about and is relatively static I've put into /etc/dnsmasq.conf manually as /var/etc/dnsmasq.conf references /etc/dnsmasq.conf for just such user customisation purposes. I hope that helps. Kevin On 24-04-15 07:48, Kevin Darbyshire-Bryant wrote: Hi Perry, The /etc/dnsmasq.conf file is outside of uci control, so it doesn't get rebuilt at process start/stop and gets preserved across reboots/upgrades. It's an ideal place for tweaks and options that the uci interface is not yet aware. I use it all the time. Edit with your favourite text editor. Kevin -- Cheers, ke...@darbyshire-bryant.me.uk <mailto:ke...@darbyshire-bryant.me.uk> On 24 Apr 2015, at 00:10, Perry Couprie <mailto:pe...@couprie.net>> wrote: Can this be done by using uci commands ? Perry On 23-04-15 23:20, Kevin Darbyshire-Bryant wrote: On 23/04/2015 21:55, openwrt-de...@couprie.net wrote: Hi, I need the dnsmasq --dhcp-relay option, how do i add this option to the dnsmasq script ? Perry You could edit '/etc/dnsmasq.conf' and add your option/s directly to it. Does that achieve your aim? Kevin ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] dnsmasq and --dhcp-relay option ?
Could something likes this be added ? --- dnsmasq.orig2015-04-24 12:14:51.453093251 +0200 +++ dnsmasq2015-04-24 12:15:15.121092827 +0200 @@ -416,6 +416,10 @@ xappend "--dhcp-range=$networkid,$START,$END,$NETMASK,$leasetime${options:+ $options}" dhcp_option_add "$cfg" "$networkid" + +config_get relay "$cfg" relay +network_get_ipaddr interface_ip "$networkid" +xappend "--dhcp-relay=$interface_ip,$relay" } dhcp_option_add() { Perry On 23-04-15 23:20, Kevin Darbyshire-Bryant wrote: On 23/04/2015 21:55, openwrt-de...@couprie.net wrote: Hi, I need the dnsmasq --dhcp-relay option, how do i add this option to the dnsmasq script ? Perry You could edit '/etc/dnsmasq.conf' and add your option/s directly to it. Does that achieve your aim? Kevin ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] dnsmasq and --dhcp-relay option ?
Hi, I need the dnsmasq --dhcp-relay option, how do i add this option to the dnsmasq script ? Perry --dhcp-relay=,[,dnsmasq to do DHCP relay. The local address is an address allocated to an interface on the host running dnsmasq. All DHCP requests arriving on that interface will we relayed to a remote DHCP server at the server address. It is possible to relay from a single local address to multiple remote servers by using multiple dhcp-relay configs with the same local address and different server addresses. A server address must be an IP literal address, not a domain name. In the case of DHCPv6, the server address may be the ALL_SERVERS multicast address, ff05::1:3. In this case the interface must be given, not be wildcard, and is used to direct the multicast to the correct interface to reach the DHCP server. Access control for DHCP clients has the same rules as for the DHCP server, see --interface, --except-interface, etc. The optional interface name in the dhcp-relay config has a different function: it controls on which interface DHCP replies from the server will be accepted. This is intended for configurations which have three interfaces: one being relayed from, a second connecting the DHCP server, and a third untrusted network, typically the wider internet. It avoids the possibility of spoof replies arriving via this third interface. It is allowed to have dnsmasq act as a DHCP server on one set of interfaces and relay from a disjoint set of interfaces. Note that whilst it is quite possible to write configurations which appear to act as a server and a relay on the same interface, this is not supported: the relay function will take precedence. Both DHCPv4 and DHCPv6 relay is supported. It's not possible to relay DHCPv4 to a DHCPv6 server or vice-versa. ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] how to depend on a busybox option / was: how to set busybox's some options now ?
Hi, I have a private openwrt package with the folowing line: select BUSYBOX_CONFIG_CHPASSWD After the busybox change it is not selected anymore. Perry On Tue, 17 Dec 2013 21:41:17 +0100, Felix Fietkau wrote: On 2013-12-17 20:23, Michael Heimpold wrote: Hi, Am Dienstag, 17. Dezember 2013, 18:54:27 schrieb xinglp: There's some usefull options for me, such as SAVEHISTORY, REVERSE_SEARCH, WGET_TIMEOUT, netcat and TRACEROUTE6. But the recent commit disabled the busybox configure memu. How to set somethings for busybox now ? ... and another question is: how to depend on a specific busybox option. I used to depend in various (private) packages on several busybox options and could so ensure that the relevant commands are available in the firmware. Is there a way, which I don't see at the moment? With the commit that I just made (r39125), you can add extra symbols to the Config.in file of your package, similar to how NFS mount support is now handled. - Felix ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] how to set busybox's some options now ?
Hi yousong, Can you give a example how to call menuconfig for busybox ? Perry On 12/17/2013 02:42 PM, Yousong Zhou wrote: Hi, On 17 December 2013 18:54, xinglp wrote: There's some usefull options for me, such as SAVEHISTORY, REVERSE_SEARCH, WGET_TIMEOUT, netcat and TRACEROUTE6. But the recent commit disabled the busybox configure memu. How to set somethings for busybox now ? The config for busybox can be overridden via `env/busybox-config'. See r39107. Do a `make menuconfig' for busybox, then save the necessary part to `env/busybox-config' should work. yousong ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] firewall rules and BARRIER BREAKER (Bleeding Edge, r38994)
Hi, I am using a script that uses uci to add firewall zones and rules. With this script i also want to remove these firewall rules again if needed. Can i add a label to these zone/rules so that i can use this to remove these rules. Greeting from Amsterdam, Perry ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel