[OpenWrt-Devel] OpenWrt and TDD

2015-05-21 Thread Ronaldo Afonso
  Hi all,

  I'm a big fan of OpenWrt and now I just started my studies of TDD.

  I'm facing some difficulties with TDD in the embedded world and I was
wondering if or how OpenWrt developer use TDD and which CI (Continuous
Integration) system is applied to OpenWrt builds.

  Any information (libs or framework used, how every test case could be
done using the OpenWrt Makefiles scheme, etc) would be appreciated.

  Thanks in advance

-- 
Ronaldo Afonso
11 9 5252 0484
www.ronaldoafonso.com.br
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] Registering an ubus namespace using Lua

2015-08-28 Thread Ronaldo Afonso
  Hi all,

  Can anyone provide me with an example of registering an ubus namespace
using Lua?

  Thanks in advance.

-- 
Ronaldo Afonso
11 9 5252 0484
www.ronaldoafonso.com.br
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] Registering an ubus namespace using Lua

2015-08-28 Thread Ronaldo Afonso
  Hi all,

  Can anyone provide me with an example of registering an ubus namespace
using Lua?

  Thanks in advance.

-- 
Ronaldo Afonso
11 9 5252 0484
www.ronaldoafonso.com.br
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] Registering an ubus namespace using Lua

2015-08-28 Thread Ronaldo Afonso
 Thanks Jonh

2015-08-28 16:12 GMT-03:00 John Crispin :

> Hi,
>
> have a look here please -->
> http://git.openwrt.org/?p=project/ubus.git;a=tree;f=lua;
> John
>
>
>
> On 28/08/2015 21:09, Ronaldo Afonso wrote:
> >   Hi all,
> >
> >   Can anyone provide me with an example of registering an ubus namespace
> > using Lua?
> >
> >   Thanks in advance.
> >
> > --
> > Ronaldo Afonso
> > 11 9 5252 0484
> > www.ronaldoafonso.com.br <http://www.ronaldoafonso.com.br>
> >
> >
> > ___
> > 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
>



-- 
Ronaldo Afonso
11 9 5252 0484
www.ronaldoafonso.com.br
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH 1/5] [package] iptables: Disable IPv6 support

2016-03-08 Thread Ronaldo Afonso
I was trying to disable IPv6 support when compiling OpenWrt for
TP-Link tl-wr3040
router and got some errors compiling the iptables package.

It seems that iptables package cannot be compiled if IPv6 support was
disabled.

Checking the Makefile for iptables package I think I found something wrong
with the "--disable-ipv6" configure argument option.

The patch that follows solved the problem.

Signed-off-by: Ronaldo Afonso 

diff --git a/package/network/utils/iptables/Makefile b/package/network/utils
/iptables/Makefile
index 6f7529c..4e2c4c8 100644
--- a/package/network/utils/iptables/Makefile
+++ b/package/network/utils/iptables/Makefile
@@ -434,8 +434,11 @@ CONFIGURE_ARGS += \
--enable-devel \
--with-kernel="$(LINUX_DIR)/user_headers" \
--with-xtlibdir=/usr/lib/iptables \
-   --enable-static \
-   $(if $(CONFIG_IPV6),,--disable-ipv6)
+   --enable-static
+
+ifndef ($(CONFIG_IPV6))
+   CONFIGURE_ARGS += --disable-ipv6
+endif

 MAKE_FLAGS := \
$(TARGET_CONFIGURE_OPTS) \
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] How to check if its the first boot ever?

2016-07-13 Thread Ronaldo Afonso
  Hi all,

  I'm doing a customized OpenWrt firmware and I need to know at boot time
if its the first time my OpenWrt firmware has been booted.

  More specifically, my scripts at "/etc/uci-defaults" need to know if they
are being executed by flashing over a "router original firmware"
(factory.bin) or a previews OpenWrt firmware (sysupgrade.bin).

  For example:

  I need to set the network.lan.ipaddr to the IP address "192.168.120.1" if
it is the first time I'm flashing my router, otherwise I need to preserve
the IP address the was configured before.

  Any help would be appreciated.

  Thanks in advance ...

-- 
Ronaldo Afonso
11 9 5252 0484
www.ronaldoafonso.com.br
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] How to check if its the first boot ever?

2016-07-14 Thread Ronaldo Afonso
  Hi,

  Thanks very much for all your replies.

  I'll try to do some like that. Maybe an "uci get system.@system
[0].fistboot".

[]s
Ronaldo

2016-07-14 3:41 GMT-03:00 Rafał Miłecki :

> On 13 July 2016 at 22:27, Ronaldo Afonso 
> wrote:
> >   More specifically, my scripts at "/etc/uci-defaults" need to know if
> they
> > are being executed by flashing over a "router original firmware"
> > (factory.bin) or a previews OpenWrt firmware (sysupgrade.bin).
>
> What about using something like /etc/config/ronaldo with some option
> like "firstboot"? Of course you should add this file to the list of
> preserved config files.
>



-- 
Ronaldo Afonso
11 9 5252 0484
www.ronaldoafonso.com.br
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] How to add ubus users?

2015-09-25 Thread Ronaldo Afonso
  Hi Rudiger,

  I would add another question on your question ...

  I'd like to have some kind of JSON-RPC with no user authentication.

  So, how can I remove user authentication at all?

Thanks in advance ...

2015-09-25 9:20 GMT-03:00 Rüdiger, Christoph <
christoph.ruedi...@thyssenkrupp.com>:

> Hi!
>
> I've seen that there is an ACL concept for the ubus available [1], which
> fits very nice to my plan making our system services available as ubus
> calls instead of maintaining a REST API structure in parallel. However, I
> was not able to figure out how to add additional users to the ubus. There
> is a login method available where you typically login with the root user
> and its password. This can be changed in /etc/config/rpcd, which is working
> fine. But there is only one user available.
>
> So my question is, where do I define the additional users and map them to
> my groups in the ACL files?
>
> Best regards,
> Christoph
>
> [1] http://wiki.openwrt.org/doc/techref/ubus#acls
>
> --
> ThyssenKrupp Elevator Innovation GmbH
> PDC Neuhausen
> TKEI Elevator Control
> Bernhaeuser Straße 45
> 73765 Neuhausen, Germany
>
> Phone +49 7158 12-2615
> christoph.ruedi...@thyssenkrupp.com
>
> Company domicile: Essen  Commercial register: Essen HRB 20 839
> Postal address: ThyssenKrupp Allee 1, 45143 Essen, Germany
> Executive Board: Gerhard Thumm, Katrin Huenger, Philippe Choleau
>
>
> ___
> openwrt-devel mailing list
> openwrt-devel@lists.openwrt.org
> https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
>



-- 
Ronaldo Afonso
11 9 5252 0484
www.ronaldoafonso.com.br
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] Fwd: OpenVSwitch 2.5.0 for Linux kernel 4.3

2015-12-29 Thread Ronaldo Afonso
  Hi all,

  I'd like to take advantage of that thread and ask you guys if there is
someone working on porting "netifd package" to support Open vSwitch.

  Jeroen,

  How are you planning to configure your /etc/config/network file in order
for it to work with Open vSwitch?

  Thanks in advance ...


2015-12-29 0:34 GMT-02:00 Yousong Zhou :

> On 29 December 2015 at 04:33, Jeroen van Bemmel  wrote:
> > All,
> >
> > For a Xiaomi Mini WiFi router I wanted to try OpenVSwitch, but the
> > 2.4.0 version available in the feeds only supports Linux kernels up to
> > 4.1. The ramips target uses kernel 4.3, and downgrading to 4.1 didn't
> work
> > for me.
> >
> > OpenVSwitch 2.5.0 does support kernel 4.3, so I made some
> > modifications to the package Makefile to build the newer version. Most
> > of the patches are no longer needed, and with some minor patch the
> > code builds now
> > ( though I haven't tested it on the target )
> >
> > Is anyone else interested in these changes, and if so what would be
> > the proper way to add a second version of the existing package ( with
> > its own source code URL + patches )? Would it be a delta on the
> > existing package, or a new "openvswitch-2.5.0" package?
> >
>
> I think we can just move to 2.5.0.  Use the newest version or the LTS
> version (2.3.2).
>
> Open vSwitch is provided through the packages feed, so opening
> issue/pr there should be better.
>
> yousong
>
> > Thanks,
> > Jeroen van Bemmel
> > ___
> > 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
>



-- 
Ronaldo Afonso
11 9 5252 0484
www.ronaldoafonso.com.br
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] ubus: extending ubus over network to allow devices in the same network to exchange messages on a single common bus

2016-10-05 Thread Ronaldo Afonso
  Hi Sukru,

  It seems very interesting 

  I have some C programming experience and I would like to contribute/help.

  So, how can I help?


2016-10-05 10:57 GMT-03:00 Sukru Senli :

> Dear OpenWrt developers,
>
> We, developers of IOPSYS (an OpenWrt based platform for residential
> gateways) at Inteno, believe that extending ubus over network so that
> multiple devices which are on the same network and running OpenWrt could
> communicate, expose objects and exchange messages on a common bus would be
> a very useful and worthwhile enhancement.
>
> For example, in a network scenario where multiple REPEATERs are connected
> to a MASTER gateway, REPEATERs could create objects, create events and
> listen/subscribe to events on the ubus which is exposed to network by
> MASTER, and that would facilitate:
> - keeping configuration synced between the devices
> - exchaning information about clients between the devices
> - devices notifying each other about specific actions, and so on
>
> So far we have envisioned the networked ubus system having the following
> components and properties:
>
> 1) Advertisement + Discovery: The devices on the same network become aware
> of each other and acknowledge that they support ubus. Here we believe a
> multicast solution is feasible.
>
> 2) Authentication + Connection: The devices choose to connect after
> verifying each other:
> Trust can be originated from a trusted third party such as a cloud
> service, or there can be a manual secure pairing method. Another option
> could be using TR069 and pushing keys down to devices to be used in
> verifying each other.
>
> 3) Networked ubus communication: ubus clients access remote or local ubus
> objects in a similar fashion:
> The intention is to either not change ubus API at all, or to change it as
> little as possible. However we see changing the ubus API as a better
> approach than changing ubusd daemon or message format significantly.
> In our initial design idea, a proxy component would take care of the
> communication and connection setup.
>
> 4) Centralized ubus on MASTER:
> We believe it is appropriate to centralize control, so, for example,
> REPEATERs would expose (a subset of) their own ubus objects on MASTER's
> ubus.
>
> Developing an access control mechanism that operates on ubus directly in
> order to limit both local and remote access using the same method would be
> a good idea. ACL could be based on different parameters such as user/group,
> application, IP address etc.
>
> We will be moving forward with the design and implementation of a
> networked ubus, and we take this opportunity to invite participation and
> discussion so that a better solution where more OpenWrt developers/users
> benefit from can be developed.
>
> Regards,
> Sukru Senli
> Inteno Broadband Technology AB
> ___________
> openwrt-devel mailing list
> openwrt-devel@lists.openwrt.org
> https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
>



-- 
Ronaldo Afonso
11 9 5252 0484
www.ronaldoafonso.com.br
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] How to get VPN interface IP address using ubus command line?

2016-11-11 Thread Ronaldo Afonso
  Hi all,

  Is it possible to get VPN interface IP address using ubus command line
"call"?

  Like I do using my WAN interface, as:

root@oi-eng-03:~# ubus call network.interface.wan status
{
"up": true,
"pending": false,
"available": true,
"autostart": true,
"dynamic": false,
"uptime": 3203,
"l3_device": "eth1",
"proto": "dhcp",
"device": "eth1",
"updated": [
"addresses",
"routes",
"data"
],
"metric": 0,
"delegation": true,
"ipv4-address": [
{
"address": "192.168.11.106",
"mask": 24
}
],
"ipv6-address": [
],
"ipv6-prefix": [
],
"ipv6-prefix-assignment": [
],
"route": [
{
"target": "192.168.11.1",
"mask": 32,
"nexthop": "0.0.0.0",
"source": "192.168.11.106\/32"
},
{
"target": "0.0.0.0",
"mask": 0,
"nexthop": "192.168.11.1",
"source": "192.168.11.106\/32"
}
],
"dns-server": [
],
"dns-search": [
],
"inactive": {
"ipv4-address": [
],
"ipv6-address": [
],
"route": [
],
"dns-server": [
"192.168.11.1"
],
"dns-search": [
]
},
"data": {
"leasetime": 86400
}
}


   That's how I configured my VPN interface:

root@oi-eng-03:~# uci show network.vpn
network.vpn=interface
network.vpn.ifname='tun0'
network.vpn.proto='none'

   So it get its IP address dynamically.

   It seems that I need to do some bash netifd script programming?

   Thanks in advance ...

-- 
Ronaldo Afonso
11 9 5252 0484
www.ronaldoafonso.com.br
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] "ubus call network.interface dump" doesnt report the ip of tun0 interface, despite being there. Bug?

2016-11-16 Thread Ronaldo Afonso
  Hi Alberto,

  I have the same issue and I'm using OpenVPN ... take a look:

root@oi-eng-03:~# ip addr show dev tun0
5: tun0:  mtu 1500 qdisc fq_codel
state UNKNOWN group default qlen 100
link/none
inet 10.100.15.198 peer 10.100.15.199/32 scope global tun0
   valid_lft forever preferred_lft forever
root@oi-eng-03:~#
root@oi-eng-03:~#
root@oi-eng-03:~# uci show network.vpn
network.vpn=interface
network.vpn.ifname='tun0'
network.vpn.proto='none'
root@oi-eng-03:~#
root@oi-eng-03:~#
root@oi-eng-03:~# ubus call network.interface.vpn status
{
"up": true,
"pending": false,
"available": true,
"autostart": true,
"dynamic": false,
"uptime": 191392,
"l3_device": "tun0",
"proto": "none",
"device": "tun0",
"metric": 0,
"delegation": true,
"ipv4-address": [
],
"ipv6-address": [
],
"ipv6-prefix": [
],
"ipv6-prefix-assignment": [
],
"route": [
],
"dns-server": [
],
"dns-search": [
],
"inactive": {
"ipv4-address": [
],
"ipv6-address": [
],
"route": [
],
"dns-server": [
],
"dns-search": [
]
},
"data": {
}
}


2016-11-15 15:17 GMT-02:00 alberto fuentes :

> Should i open a bug?
>
> tun0 interface created and ip assigned by openvpn
>
> root@router:~# ifconfig tun0
> tun0  Link encap:UNSPEC  HWaddr 
> 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
>
>   inet addr:10.19.3.33  P-t-P:10.19.3.1  Mask:255.255.255.255
>   UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1
>   RX packets:7 errors:0 dropped:0 overruns:0 frame:0
>   TX packets:7 errors:0 dropped:0 overruns:0 carrier:0
>   collisions:0 txqueuelen:100
>   RX bytes:492 (492.0 B)  TX bytes:412 (412.0 B)
>
> root@router:~# /etc/init.d/dropbear start
> interface tun0 has no physdev or physdev has no suitable ip
>
> root@router:~# ubus call network.interface dump
> [...]
> {
> "interface": "tun0",
> "up": true,
> "pending": false,
> "available": true,
> "autostart": true,
> "dynamic": false,
> "uptime": 20815,
> "l3_device": "tun0",
> "proto": "none",
> "device": "tun0",
> "metric": 0,
> "delegation": true,
> "ipv4-address": [
>
> ],
> "ipv6-address": [
>
> ],
> "ipv6-prefix": [
>
> ],
> "ipv6-prefix-assignment": [
>
> ],
> "route": [
>
> ],
> "dns-server": [
>
> ],
> "dns-search": [
>
> ],
> "inactive": {
> "ipv4-address": [
>
> ],
> "ipv6-address": [
>
> ],
> "route": [
>
> ],
> "dns-server": [
>
> ],
> "dns-search": [
>
> ]
> },
> "data": {
>
> }
> },
> [...]
>
> ___
> openwrt-devel mailing list
> openwrt-devel@lists.openwrt.org
> https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
>
>


-- 
Ronaldo Afonso
11 9 5252 0484
www.ronaldoafonso.com.br
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] Does "uci commit" really write to flash?

2016-12-07 Thread Ronaldo Afonso
  Hi,

  I would like to know if an uci commit system really writes to flash even
if there were no modifications to the /etc/config/system file?

  The thing is ... if I constantly issue the following commands:

uci set system.@system[0].key=value
uci commit system

  Will I reducing my flash lifetime more than the "normal"?

  Does it have any difference if I do the code using uci LUA binding?

  Any information would be appreciated.

  Thanks ...

-- 
Ronaldo Afonso
11 9 5252 0484
www.ronaldoafonso.com.br
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] Does "uci commit" really write to flash?

2016-12-14 Thread Ronaldo Afonso
  Ok Vincent,

  Thanks for your reply.

[]s


2016-12-10 0:44 GMT-02:00 Vincent Wiemann :

> Hi Ronaldo,
>
> >   I would like to know if an uci commit system really writes to flash
> > even if there were no modifications to the /etc/config/system file?
>
> „uci set“ will only make temporary changes which can be found in
> /tmp/.uci. That dir acts as some kind of overlay...
> "uci commit" will write those changes to the filesystem/flash.
> It doesn't matter whether you use the command line tool or lua
> bindings... „Commit“ will kill your flashchip in the long run :D.
> Ordinarily OpenWrt doesn't do any write to flash without user interaction.
>
> Regards,
> CodeFetch
> ___
> openwrt-devel mailing list
> openwrt-devel@lists.openwrt.org
> https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
>



-- 
Ronaldo Afonso
11 9 5252 0484
www.ronaldoafonso.com.br
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] Building own kernel in OpenWRT

2017-11-28 Thread Ronaldo Afonso
 Hi Phani,

 Take a look at the "make kernel_menuconfig" or this link:
https://wiki.openwrt.org/doc/howto/build#kernel_configuration_optional

 Regards ...

2017-11-27 19:03 GMT-02:00 Phani Siriki :

> Dear All
>
> I want to change the linux kernel in my OpenWrt build.
>
> I made changes to the kernel and committed to my github account.
>
> Could someone let me know the makefiles I need to change to get the kernel
> of my own?
>
> Thanks in Advance.
>
> Best Regards
> Phani
>
> ___
> openwrt-devel mailing list
> openwrt-devel@lists.openwrt.org
> https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
>
>


-- 
Ronaldo Afonso
11 9 5252 0484
www.ronaldoafonso.com.br
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] How can I help TL-WR842N Hardware version 3 be merged into Chaos Calmer

2017-11-28 Thread Ronaldo Afonso
  Hi all,

  What does it take for a commit to be merged into a stable branch?

  The thing is ... I really would like to have TL-WR842N Hardware version 3
running on CC. I noticed that this hardware is already working on trunk
(master) since last year but not merged into CC yet.

  How can I help that merge being done?

  Thanks in advance.

-- 
Ronaldo Afonso
11 9 5252 0484
www.ronaldoafonso.com.br
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] How can I help TL-WR842N Hardware version 3 be merged into Chaos Calmer

2017-11-28 Thread Ronaldo Afonso
r71xx_generic/linux-3.18.84/.configured
rm -f
/home/ronaldo/Linux/OpenWrt/src/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/root-ar71xx/init
make -C
/home/ronaldo/Linux/OpenWrt/src/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/linux-3.18.84
HOSTCFLAGS="-O2
-I/home/ronaldo/Linux/OpenWrt/src/openwrt/staging_dir/host/include
-I/home/ronaldo/Linux/OpenWrt/src/openwrt/staging_dir/host/usr/include
-Wall -Wmissing-prototypes -Wstrict-prototypes"
CROSS_COMPILE="mips-openwrt-linux-uclibc-" ARCH="mips" KBUILD_HAVE_NLS=no
CONFIG_SHELL="bash" V='' CC="mips-openwrt-linux-uclibc-gcc" all modules
make[5]: Entering directory
'/home/ronaldo/Linux/OpenWrt/src/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/linux-3.18.84'
scripts/kconfig/conf --silentoldconfig Kconfig
net/sched/Kconfig:43: warning: menuconfig statement without prompt
#
# configuration written to .config
#
  CHK include/config/kernel.release
  CHK include/generated/uapi/linux/version.h
  CHK include/generated/utsrelease.h
  CALLscripts/checksyscalls.sh
  CHK include/generated/compile.h
  CC  arch/mips/ath79/mach-tl-wr841n-v9.o
In file included from arch/mips/ath79/machtypes.h:15:0,
 from arch/mips/ath79/mach-tl-wr841n-v9.c:26:
arch/mips/ath79/mach-tl-wr841n-v9.c:277:14: error: ''' undeclared here (not
in a function)
 MIPS_MACHINE(ATH79_MACH_TL_WR842N_V3, "TL-WR842N-v3", "TP-LINK
TL-WR842N/ND v3",
  ^
./arch/mips/include/asm/mips_machine.h:33:15: note: in definition of macro
'MIPS_MACHINE'
  .mach_type = _type,\
   ^
scripts/Makefile.build:257: recipe for target
'arch/mips/ath79/mach-tl-wr841n-v9.o' failed
make[7]: *** [arch/mips/ath79/mach-tl-wr841n-v9.o] Error 1
scripts/Makefile.build:402: recipe for target 'arch/mips/ath79' failed
make[6]: *** [arch/mips/ath79] Error 2
Makefile:944: recipe for target 'arch/mips' failed
make[5]: *** [arch/mips] Error 2
make[5]: Leaving directory
'/home/ronaldo/Linux/OpenWrt/src/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/linux-3.18.84'
Makefile:24: recipe for target
'/home/ronaldo/Linux/OpenWrt/src/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/linux-3.18.84/.image'
failed
make[4]: ***
[/home/ronaldo/Linux/OpenWrt/src/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/linux-3.18.84/.image]
Error 2
make[4]: Leaving directory
'/home/ronaldo/Linux/OpenWrt/src/openwrt/target/linux/ar71xx'
Makefile:13: recipe for target 'install' failed
make[3]: *** [install] Error 2
make[3]: Leaving directory
'/home/ronaldo/Linux/OpenWrt/src/openwrt/target/linux'
target/Makefile:21: recipe for target 'target/linux/install' failed
make[2]: *** [target/linux/install] Error 2
make[2]: Leaving directory '/home/ronaldo/Linux/OpenWrt/src/openwrt'
target/Makefile:17: recipe for target
'/home/ronaldo/Linux/OpenWrt/src/openwrt/staging_dir/target-mips_34kc_uClibc-0.9.33.2/stamp/.target_install'
failed
make[1]: ***
[/home/ronaldo/Linux/OpenWrt/src/openwrt/staging_dir/target-mips_34kc_uClibc-0.9.33.2/stamp/.target_install]
Error 2
make[1]: Leaving directory '/home/ronaldo/Linux/OpenWrt/src/openwrt'
/home/ronaldo/Linux/OpenWrt/src/openwrt/include/toplevel.mk:181: recipe for
target 'world' failed
make: *** [world] Error 2


  So, it seems that I have to create a patch that incluces
'ATH79_MACH_TL_WR842N_V3' in the file 'arch/mips/ath79/machtypes.h'.

  Does it make any sense?
  Am I in the right direction?
  Can you please help me with that?

  Thanks ...

2017-11-28 12:38 GMT-02:00 Zoltan HERPAI :

> On Tue, 28 Nov 2017, Ronaldo Afonso wrote:
>
>   Hi all,
>>
>>   What does it take for a commit to be merged into a stable branch?
>>
>>   The thing is ... I really would like to have TL-WR842N Hardware version
>> 3 running on CC. I noticed that this hardware is already working on trunk
>> (master) since
>> last year but not merged into CC yet.
>>
>>   How can I help that merge being done?
>>
>>   Thanks in advance.
>>
>
> You can try to merge this commit [1] into CC, test it out and open a
> pull-request on github against the chaos_calmer branch - expect some
> differences that'll need to be worked out manually in image/Makefile. (If
> you run into problems let me know and will try to help.)
>
> Thanks,
> -w-
>
> [1] https://github.com/openwrt/openwrt/commit/d42ccc9f28aca96bdd
> 7c83cfac43ae81d24bc5a2
> ___
> openwrt-devel mailing list
> openwrt-devel@lists.openwrt.org
> https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
>
>


-- 
Ronaldo Afonso
11 9 5252 0484
www.ronaldoafonso.com.br
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] How can I help TL-WR842N Hardware version 3 be merged into Chaos Calmer

2017-11-29 Thread Ronaldo Afonso
  Ok, Aaron,

  I'll take a look at the LEDE part of it.

  I have a "private OpenWrt feed" where I develop some "private OpenWrt
application"...

  If a have to port this feed to the LEDE platform, should I expect a lot
of changes?



2017-11-28 21:00 GMT-02:00 Aaron Z :

> On Tue, Nov 28, 2017 at 9:20 AM, Ronaldo Afonso
>  wrote:
> >   Hi all,
> >   What does it take for a commit to be merged into a stable branch?
> >   The thing is ... I really would like to have TL-WR842N Hardware
> version 3
> > running on CC. I noticed that this hardware is already working on trunk
> > (master) since last year but not merged into CC yet.
> >   How can I help that merge being done?
> Unless it is a security fix (such as the recent Krack vunerability),
> updates such as adding a new hardware build are not backported into a
> stable release.
> That platform should be there in the next stable release of OpenWrt
> (presumably the first post-remerge release).
> It will probbaly not be backported to CC, but it is currently
> available in LEDE's 17.0.4 stable release (see:
> https://lede-project.org/toh/hwdata/tp-link/tp-link_tl-wr842n_v3 for
> links).
> If you don't know, LEDE is a fork of OpenWrt which is in the process
> of re-merging with OpenWrt. That is where most of the recent
> development has happened.
>
> Aaron Z
> A human being should be able to change a diaper, plan an invasion,
> butcher a hog, conn a ship, design a building, write a sonnet, balance
> accounts, build a wall, set a bone, comfort the dying, take orders,
> give orders, cooperate, act alone, solve equations, analyze a new
> problem, pitch manure, program a computer, cook a tasty meal, fight
> efficiently, die gallantly. Specialization is for insects.
> — Robert Heinlein, Time Enough for Love
>



-- 
Ronaldo Afonso
11 9 5252 0484
www.ronaldoafonso.com.br
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] LXC 2.1.1 generating a ipk package with no file inside it

2018-02-28 Thread Ronaldo Afonso
  Hi all,

  I'm trying to build LXC 2.1.1 using OpenWrt package's feed but the result
is an ipk package file with no "useful" file inside it.

  Following is the commands running from my x86_64 router.

root@OpenWrt:~# opkg status lxc
Package: lxc
Version: 2.1.1-1
Depends: libc
Status: install user installed
Architecture: x86_64
Installed-Time: 1519749033

root@OpenWrt:~# opkg files lxc
Package lxc (2.1.1-1) is installed on root and has the following files:

  I compiled OpenWrt using the "master" branch from:
ronaldo@fox:~/Linux/OpenWrt/src/openwrt$ git remote -v
originhttps://git.openwrt.org/openwrt/openwrt.git (fetch)
originhttps://git.openwrt.org/openwrt/openwrt.git (push)

  And I used the feeds from:

ronaldo@fox:~/Linux/OpenWrt/src/openwrt$ ./scripts/feeds list -s
packages   src-git  345420f  https://git.openwrt.org/feed/packages.git
routingsrc-git  2f74073  https://git.openwrt.org/feed/routing.git
luci   src-git  088b92c  https://git.openwrt.org/project/luci.git

  I tried to compile the package alone and noted that make
package/lxc/install is issuing and error:

ronaldo@fox:~/Linux/OpenWrt/src/openwrt$ make -j1 V=s package/lxc/install
make[1]: Entering directory '/home/ronaldo/Linux/OpenWrt/src/openwrt'
make[1]: *** No rule to make target 'package/lxc/install'.  Stop.
make[1]: Leaving directory '/home/ronaldo/Linux/OpenWrt/src/openwrt'
/home/ronaldo/Linux/OpenWrt/src/openwrt/include/toplevel.mk:216: recipe for
target 'package/lxc/install' failed
make: *** [package/lxc/install] Error 2

  Even though there are files inside the build_dir LXC directory:

ronaldo@fox:~/Linux/OpenWrt/src/openwrt$ ls
build_dir/target-x86_64_musl/lxc-2.1.1/src/lxc/lxc-*
build_dir/target-x86_64_musl/lxc-2.1.1/src/lxc/lxc-attach
build_dir/target-x86_64_musl/lxc-2.1.1/src/lxc/lxc-device
build_dir/target-x86_64_musl/lxc-2.1.1/src/lxc/lxc-stop
build_dir/target-x86_64_musl/lxc-2.1.1/src/lxc/lxc-autostart
build_dir/target-x86_64_musl/lxc-2.1.1/src/lxc/lxc-execute
build_dir/target-x86_64_musl/lxc-2.1.1/src/lxc/lxc-top
build_dir/target-x86_64_musl/lxc-2.1.1/src/lxc/lxc-cgroup
build_dir/target-x86_64_musl/lxc-2.1.1/src/lxc/lxc-freeze
build_dir/target-x86_64_musl/lxc-2.1.1/src/lxc/lxc-unfreeze
build_dir/target-x86_64_musl/lxc-2.1.1/src/lxc/lxc-checkpoint
build_dir/target-x86_64_musl/lxc-2.1.1/src/lxc/lxc-info
build_dir/target-x86_64_musl/lxc-2.1.1/src/lxc/lxc-unshare
build_dir/target-x86_64_musl/lxc-2.1.1/src/lxc/lxc-config
build_dir/target-x86_64_musl/lxc-2.1.1/src/lxc/lxc-ls
build_dir/target-x86_64_musl/lxc-2.1.1/src/lxc/lxc-user-nic
build_dir/target-x86_64_musl/lxc-2.1.1/src/lxc/lxc-console
build_dir/target-x86_64_musl/lxc-2.1.1/src/lxc/lxc-monitor
build_dir/target-x86_64_musl/lxc-2.1.1/src/lxc/lxc-usernsexec
build_dir/target-x86_64_musl/lxc-2.1.1/src/lxc/lxc-copy
build_dir/target-x86_64_musl/lxc-2.1.1/src/lxc/lxc-monitord
build_dir/target-x86_64_musl/lxc-2.1.1/src/lxc/lxc-wait
build_dir/target-x86_64_musl/lxc-2.1.1/src/lxc/lxc-create
build_dir/target-x86_64_musl/lxc-2.1.1/src/lxc/lxc-snapshot
build_dir/target-x86_64_musl/lxc-2.1.1/src/lxc/lxc-destroy
build_dir/target-x86_64_musl/lxc-2.1.1/src/lxc/lxc-start

  Can anyone give any help?

  Thanks in advance ...


-- 
Ronaldo Afonso
11 9 5252 0484
www.ronaldoafonso.com.br
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] Reducing the root file system in openwrt

2018-03-07 Thread Ronaldo Afonso
  Hi Arjav,

  Which kind of firmware are you using? An OpenWrt prebuilt (from
https://downloads.openwrt.org/releases/) or a firmware build by yourself?

  Well, in or case, I suggest you build your firmware ... using "make
menuconfig" is the first thing to try for removing unnecessary binaries.



2018-03-07 8:02 GMT-03:00 Arjav Parikh :

> Hi,
>
> I want to reduce the root file system size for my project. Till now
> after removing the unnecessary kernel modules, libraries and using
> strip binary the file system size has been reduced to 8.3 MB. Bu there
> are still some files which are not required and I am unaware of how to
> prvent these files from being included in my file system using
> openwrt.
>
> For Ex: there are multiple binaries in /lib/firmware which are not
> required. This folder itself contains size of 4.4 MB, apart from these
> there are many libraries in /lib as well as /usr/lib which are not
> required.
>
> Can anyone please guide of how to remove firmware binaries and
> libraries in openwrt.
>
> --
> Thanks & Regards,
> Arjav Parikh
> ___
> openwrt-devel mailing list
> openwrt-devel@lists.openwrt.org
> https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
>



-- 
Ronaldo Afonso
11 9 5252 0484
www.ronaldoafonso.com.br
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] Reducing the root file system in openwrt

2018-03-07 Thread Ronaldo Afonso
  Arjav,

  I'm not 100% sure of that, but if I were you I would take a look at the
Makefiles that generate those packages whose files you don't want to be
included in the final build image.

  Often the "install" directive of an OpenWrt Makefile is where developers
"include" the files they want to be include in the final image.

  Here is an example of libbz2 package:

 77 define Package/libbz2/install
 78 $(INSTALL_DIR) $(1)/usr/lib/
 79 $(CP) $(PKG_BUILD_DIR)/libbz2.so.$(PKG_VERSION) $(1)/usr/lib/
 80 $(LN) libbz2.so.$(PKG_VERSION) $(1)/usr/lib/libbz2.so.1.0
 81 endef

  For example, if you don't want the "libbz2.so" to be included, you can
remove lines 79 and 80.





2018-03-07 9:00 GMT-03:00 Arjav Parikh :

> Hi Ronaldo,
>
> I am building firmware for IPQ806x platform. I have been able to
> reduce my firmware image from 22 MB to 10 MB  by disabling unwanted
> kernel modules and libraries using make menuconfig.
>
> But there are files in root-ipq806x/lib/fimrware directory of approx
> size 4.4 MB. I do not require any of the files present in this
> directory. I tried to remove those files by removing its entry from
> root-ipq806x/usr/lib/opkg/info/wigig-firmware.list assuming that on
> next build these files wont appear but still the files are there in
> /lib/firmware directory.
> By removing these files I can further reduce filesystem by 4 MB.
>
>
> On Wed, Mar 7, 2018 at 5:07 PM, Ronaldo Afonso
>  wrote:
> >   Hi Arjav,
> >
> >   Which kind of firmware are you using? An OpenWrt prebuilt (from
> > https://downloads.openwrt.org/releases/) or a firmware build by
> yourself?
> >
> >   Well, in or case, I suggest you build your firmware ... using "make
> > menuconfig" is the first thing to try for removing unnecessary binaries.
> >
> >
> >
> > 2018-03-07 8:02 GMT-03:00 Arjav Parikh :
> >>
> >> Hi,
> >>
> >> I want to reduce the root file system size for my project. Till now
> >> after removing the unnecessary kernel modules, libraries and using
> >> strip binary the file system size has been reduced to 8.3 MB. Bu there
> >> are still some files which are not required and I am unaware of how to
> >> prvent these files from being included in my file system using
> >> openwrt.
> >>
> >> For Ex: there are multiple binaries in /lib/firmware which are not
> >> required. This folder itself contains size of 4.4 MB, apart from these
> >> there are many libraries in /lib as well as /usr/lib which are not
> >> required.
> >>
> >> Can anyone please guide of how to remove firmware binaries and
> >> libraries in openwrt.
> >>
> >> --
> >> Thanks & Regards,
> >> Arjav Parikh
> >> ___
> >> openwrt-devel mailing list
> >> openwrt-devel@lists.openwrt.org
> >> https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
> >
> >
> >
> >
> > --
> > Ronaldo Afonso
> > 11 9 5252 0484
> > www.ronaldoafonso.com.br
>
>
>
> --
> Thanks & Regards,
> Arjav Parikh
>



-- 
Ronaldo Afonso
11 9 5252 0484
www.ronaldoafonso.com.br
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] Reducing the root file system in openwrt

2018-03-07 Thread Ronaldo Afonso
  Arjav,

  As far as I know, the final package will end up in the "staging_dir"
directory, not the build_dir. Inside the build_dir will be all the binaries
compiled by the package.

  Try doing something like:

   1) Edit the Makefile(s) and remove the lines that install binaries you
don't want.
   2) Issue: make V=s package/"the package you are compiling"/{clen,install}
   3) Check the bin and staging_dir directories (the bin directory is where
the final package will be, in the staging_dir, you can check what was put
inside the package)



2018-03-07 10:24 GMT-03:00 Arjav Parikh :

> Hi Ronaldo,
>
> I tried doing that by removing the copy line in Makefile but anyhow those
> files come into build_dir.
>
> I suspect that those files get included from dl directory. Is my
> understanding in this correct?
>
> If I remove packages from dl directory then I get compilation errors.
>
>
> Thanks & Regards,
> Arjav Parikh
>
> On Mar 7, 2018 6:49 PM, "Ronaldo Afonso" 
> wrote:
>
>>   Arjav,
>>
>>   I'm not 100% sure of that, but if I were you I would take a look at the
>> Makefiles that generate those packages whose files you don't want to be
>> included in the final build image.
>>
>>   Often the "install" directive of an OpenWrt Makefile is where
>> developers "include" the files they want to be include in the final image.
>>
>>   Here is an example of libbz2 package:
>>
>>  77 define Package/libbz2/install
>>  78 $(INSTALL_DIR) $(1)/usr/lib/
>>  79 $(CP) $(PKG_BUILD_DIR)/libbz2.so.$(PKG_VERSION) $(1)/usr/lib/
>>  80 $(LN) libbz2.so.$(PKG_VERSION) $(1)/usr/lib/libbz2.so.1.0
>>  81 endef
>>
>>   For example, if you don't want the "libbz2.so" to be included, you can
>> remove lines 79 and 80.
>>
>>
>>
>>
>>
>> 2018-03-07 9:00 GMT-03:00 Arjav Parikh :
>>
>>> Hi Ronaldo,
>>>
>>> I am building firmware for IPQ806x platform. I have been able to
>>> reduce my firmware image from 22 MB to 10 MB  by disabling unwanted
>>> kernel modules and libraries using make menuconfig.
>>>
>>> But there are files in root-ipq806x/lib/fimrware directory of approx
>>> size 4.4 MB. I do not require any of the files present in this
>>> directory. I tried to remove those files by removing its entry from
>>> root-ipq806x/usr/lib/opkg/info/wigig-firmware.list assuming that on
>>> next build these files wont appear but still the files are there in
>>> /lib/firmware directory.
>>> By removing these files I can further reduce filesystem by 4 MB.
>>>
>>>
>>> On Wed, Mar 7, 2018 at 5:07 PM, Ronaldo Afonso
>>>  wrote:
>>> >   Hi Arjav,
>>> >
>>> >   Which kind of firmware are you using? An OpenWrt prebuilt (from
>>> > https://downloads.openwrt.org/releases/) or a firmware build by
>>> yourself?
>>> >
>>> >   Well, in or case, I suggest you build your firmware ... using "make
>>> > menuconfig" is the first thing to try for removing unnecessary
>>> binaries.
>>> >
>>> >
>>> >
>>> > 2018-03-07 8:02 GMT-03:00 Arjav Parikh :
>>> >>
>>> >> Hi,
>>> >>
>>> >> I want to reduce the root file system size for my project. Till now
>>> >> after removing the unnecessary kernel modules, libraries and using
>>> >> strip binary the file system size has been reduced to 8.3 MB. Bu there
>>> >> are still some files which are not required and I am unaware of how to
>>> >> prvent these files from being included in my file system using
>>> >> openwrt.
>>> >>
>>> >> For Ex: there are multiple binaries in /lib/firmware which are not
>>> >> required. This folder itself contains size of 4.4 MB, apart from these
>>> >> there are many libraries in /lib as well as /usr/lib which are not
>>> >> required.
>>> >>
>>> >> Can anyone please guide of how to remove firmware binaries and
>>> >> libraries in openwrt.
>>> >>
>>> >> --
>>> >> Thanks & Regards,
>>> >> Arjav Parikh
>>> >> ___
>>> >> openwrt-devel mailing list
>>> >> openwrt-devel@lists.openwrt.org
>>> >> https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
>>> >
>>> >
>>> >
>>> >
>>> > --
>>> > Ronaldo Afonso
>>> > 11 9 5252 0484
>>> > www.ronaldoafonso.com.br
>>>
>>>
>>>
>>> --
>>> Thanks & Regards,
>>> Arjav Parikh
>>>
>>
>>
>>
>> --
>> Ronaldo Afonso
>> 11 9 5252 0484
>> www.ronaldoafonso.com.br
>>
>


-- 
Ronaldo Afonso
11 9 5252 0484
www.ronaldoafonso.com.br
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] Porting OpenWRT to Buffalo WZR-1750DHP

2014-07-10 Thread Ronaldo Afonso
  Hi all,

  I have a Buffalo WZR-1750DHP and I would like some one to help me porting
OpenWRT to this hardware.

  Any help would be appreciated.

  If someone has already started doing the port, I can help doing some
tests too.

Regards

-- 
Ronaldo Afonso
11 9 5252 0484
www.ronaldoafonso.com.br
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] Porting OpenWRT to Buffalo WZR-1750DHP

2014-08-04 Thread Ronaldo Afonso
; taints kernel.
Disabling lock debugging due to kernel taint
et_module_init: passivemode set to 0x0
et_module_init: txworkq set to 0x0
et_module_init: et_txq_thresh set to 0x400
et0: online cpus 2
eth0: Broadcom BCM47XX 10/100/1000 Mbps Ethernet Controller 6.37.14.86
(r456083)
roboswitch: Probing device 'eth0'
roboswitch: trying a 53011! at eth0
roboswitch: found a 53011! at eth0
PCI: Enabling device 0002:02:00.0 (0140 -> 0142)
eth0: mixed HW and IP checksum settings.

4) root@DD-WRT:~# uname -a
Linux DD-WRT 3.10.34-rc1 #2005 SMP Mon Mar 24 07:49:09 CET 2014 armv7l
GNU/Linux




2014-07-10 16:45 GMT-03:00 Rafał Miłecki :

> On 10 July 2014 21:30, Ronaldo Afonso 
> wrote:
> >   I have a Buffalo WZR-1750DHP and I would like some one to help me
> porting
> > OpenWRT to this hardware.
>
> It's not too kind to don't even post info about SoC. Well, it's BCM4708A0.
>
> What kind of help do you need? Specify.
>



-- 
Ronaldo Afonso
11 9 5252 0484
www.ronaldoafonso.com.br
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] 4g NCM modem huawei e3276

2014-09-15 Thread Ronaldo Afonso
  Hi John,

  I have a e3276 4g modem and can help you in your tests.

  Just tell me what I need to do, ok?


2014-09-15 7:35 GMT-03:00 John Crispin :

> Hi,
>
> i would like to add 4g ncm support. there are a few version of a patc
> floating around that don't make use of dynamic_interface yet.
>
> anyone around that wants to
> 1) donate a huawei e3276
> 2) has a huawei e3276 and wants to help testing ?
>
> John
> ___
> openwrt-devel mailing list
> openwrt-devel@lists.openwrt.org
> https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
>



-- 
Ronaldo Afonso
11 9 5252 0484
www.ronaldoafonso.com.br
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] Squid: Configuring Intercept Mode

2015-03-12 Thread Ronaldo Afonso
  Hi,

  I'm trying to configure my Squid with the intercept mode in OpenWRT, but
I checked the "/etc/init.d/squid" init script and it's preventing me from
inserting a string for option "http_port" ...


validate_squid_section() {
uci_validate_section squid squid "${1}" \
'config_file:string' \
'http_port:port:3128' \
'coredump_dir:string' \
'visible_hostname:string:OpenWrt' \
'pinger_enable:string:off'
}

  How can I configure Squid for "intercepting" HTTP requests without
clients configuration ?

  I have tried changing 'http_port:port:3128' for 'http_port:string:3128',
but I'm not sure if that is the best or right way to do that.

  Thanks in advance ...

-- 
Ronaldo Afonso
11 9 5252 0484
www.ronaldoafonso.com.br
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] Automated Hotspot Testing Tool

2015-03-23 Thread Ronaldo Afonso
  Hi all,

  I was wondering if some of you guys know about any "automated hotspot
testing tool"?

  The thing is:

  I have a bunch of hotspots running a crafted OpenWRT firmware that I
compile myself.

  Prior each firmware release I manually do a lot of tests like:

 - try to get an IP address via DHCP
 - ssh into the hospot
 - ping some Internet hosts
 - try to navigate in the Internet
 - check if my crafted firewall is running fine
 - etc ..

   I would like to automate all of those tests and I'd like to know if the
OpenWRT community already have or use a tool for that.

  Any help or suggestion would be appreciated.

  Thanks in advance ...

-- 
Ronaldo Afonso
11 9 5252 0484
www.ronaldoafonso.com.br
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] Is PPPoE broken in Barrier Breaker?

2015-03-25 Thread Ronaldo Afonso
  Just to be documented ...

  I have a bunch of OpenWRT hotspots using PPPoE.

2015-03-25 8:23 GMT-03:00 Yousong Zhou :

> >>> Here is a link to this issue on the forum (it is not only me):
> >>> https://forum.openwrt.org/viewtopic.php?pid=269850
> >>>
> >>> It looks like pppd after sending request for IP address instead
> >>> getting response with IP data instead  package to terminate LCP is
> >>> received. Does somebody have ideas why is this happening?
> >>>
> >>
> >> I think the following line in that post more relevant here.
> >>
> >> rcvd [LCP ConfReq id=0x1   ]
> >> No auth is possible
> >>
> >> You may want to know the arguments passed to pppd on the command line
> >> with `ps ww | grep pppd`.
> >>
> >> Cheers,
> >>
> >> yousong
> >>
> >
> >
> > Thanks, I didn't mention but current ppp options are:
> >
> > # cat /etc/ppp/options
> > debug
> > logfile /tmp/ppp
> > noipdefault
> > defaultroute
> > noaccomp
> > nopcomp
> > nocrtscts
> > lock
> > maxfail 0
> > lcp-echo-failure 15
> > lcp-echo-interval 30
> > lcp-restart 25
> > pap-restart 25
> >
> > and pppd starts with:
> > /usr/sbin/pppd nodetach ipparam ppp0 ifname pppoe-ppp0 nodefaultroute
> > usepeerdns persist maxfail 1 ip-up-script /lib/netifd/ppp-up
> > ipv6-up-script /lib/netifd/ppp-up ip-down-script /lib/netifd/ppp-dow
>
> No username or password is present on the command line.  I Just saw
> your update on the forum post.  You need to specify username with the
> option "username", not "user".  That should be it.
>
> Cheers.
>
> yousong
> ___
> openwrt-devel mailing list
> openwrt-devel@lists.openwrt.org
> https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
>



-- 
Ronaldo Afonso
11 9 5252 0484
www.ronaldoafonso.com.br
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] Patch: usb-modeswitch-data update url/version

2014-06-09 Thread Ronaldo Afonso
  Hi Mark,

  Don't you have to update the package too? Not only the data files.

  Please, check this out:
http://www.draisberghof.de/usb_modeswitch/#download



2014-06-06 13:03 GMT-03:00 Mark Janssen :

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA256
>
> Hello,
>
> Package/utils/usbmode is referring to a file that no longer exists.
> I've updated the filename and md5sum to the latest version.
>
> Signed-off-by: Mark Janssen 
>
> - ---
>  package/utils/usbmode/Makefile | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/package/utils/usbmode/Makefile
> b/package/utils/usbmode/Makefile
> index 36459a6..c2a54a8 100644
> - --- a/package/utils/usbmode/Makefile
> +++ b/package/utils/usbmode/Makefile
> @@ -16,7 +16,7 @@ PKG_LICENSE_FILES:=
>
>  PKG_MAINTAINER:=Felix Fietkau 
>
> - -PKG_DATA_VERSION:=20131113
> +PKG_DATA_VERSION:=20140529
>  PKG_DATA_URL:=http://www.draisberghof.de/usb_modeswitch
>  PKG_DATA_PATH:=usb-modeswitch-data-$(PKG_DATA_VERSION)
>  PKG_DATA_FILENAME:=$(PKG_DATA_PATH).tar.bz2
> @@ -27,7 +27,7 @@ include $(INCLUDE_DIR)/cmake.mk
>  define Download/data
>FILE:=$(PKG_DATA_FILENAME)
>URL:=$(PKG_DATA_URL)
> - -  MD5SUM:=7b5ac1226b360ddc366c286e62b3c3a4
> +  MD5SUM:=dff94177781298aaf0b3c2a3c3dea6b2
>  endef
>  $(eval $(call Download,data))
>
> - --
> Mark Janssen -- Sig-I/O Automatisering
> m...@sig-io.nl  http://sig-io.nl  Phone: +31-6-5886.7992
> Linux/Unix System Administration, DevOps, Ansible, Networking
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.12 (GNU/Linux)
>
> iQIcBAEBCAAGBQJTkeZsAAoJENhnTY/E9pvSIEcP/1kvrFkbTc7QPnkvuZbKaq2w
> X5tTRUL61WgFH7ecz1lSlO4wzj4NgA6jMiAIbieOjvjvWgCzWfI1bqyEiWDcuLcK
> 8ICeL+Ky2IjQi+C+z+T4YlZ3khXxFjuEhZf/+rv2BGsc6tEcFBDvPU6E1vwOT1eT
> Rs0Whox/X3XbJR1rtJpKxrqOz2EjMCGMlbH8S+ZsDEwk3L0Viqkjnb72g+zyIM2a
> 7q4dOtA/++itirxi7md/jJm4pyY7A5jWVJrqUcG3Y1hCuUGDTEXXzU8zCduxtqhm
> 6OunTSE9O0CwbnfcsmGZr7Qx1osCGg+wb40XWpqYIaNvA6cqlrrGVevPWyzvhEhX
> 2fWXxQos0iMtyqn2G8r0p1aJ6V5tUhmCt8iVe7zhjCaeMr2A7POQZLwJhOcUq1Mn
> EvxyuES8QLxjvcmdFxecPTpd4taGyYVJ0eTtsWzPwBKhKPefLlYag6MJXGIv8ngd
> ugzXuBevLEV8WMo5zENeGhWdURKbiPVlKToARG/v/6Lvj/kGxXoEbrkv+Jrn8m5Q
> WpznxAgurltjAn1Gfj7DQiAwml6oXy0t/wU6M3Fft4c2q689XRuN8w2s1PGVbFD0
> mXnFj2BQR1w17+oNopo+/vpewoTJ8DMwKlqY6Dz0T1avDsPZ1tvYHkFucadvIwDD
> f7Y+uuMQt1CDtwzzFnnv
> =6CBJ
> -END PGP SIGNATURE-
> _______
> openwrt-devel mailing list
> openwrt-devel@lists.openwrt.org
> https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
>



-- 
Ronaldo Afonso
11 9 5252 0484
www.ronaldoafonso.com.br
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel