[OpenWrt-Devel] How to set mac address for ethernet, wifi and 6lowpan interface

2016-06-29 Thread Pratik Prajapati
Hi, I want to set mac address for ethernet, wifi and 6lowpan interfaces. I tried to add macaddr option in each lan, sta and wpan interface in /etc/config/network and then restarted network (/etc/init.d/network restart) but no luck. I found that there is macaddr_add() in

[OpenWrt-Devel] How to pass argument while autoloading kernel module/driver

2016-06-28 Thread Pratik Prajapati
content: I tried adding argument in modules.mk flle like this, but no luck AUTOLOAD:=$(call AutoLoad,31,/"=") Please share How can I fix this or some useful links. Best Regards, Pratik Prajapati ___ openwrt-devel mailing list openwrt-devel@lists.o

Re: [OpenWrt-Devel] API documentation of ubus

2015-11-21 Thread Pratik Prajapati
nwrt.org/doc/techref/ubus > > Apart from that, you can read procd, rpcd, uhttpd, netifd and ubus itself > to see how to use it. I had plans on further documenting it but still > didn't have time. You are welcome to further document it. > > On Sat, Nov 21, 2015 at 11:53 AM Pratik

Re: [OpenWrt-Devel] API documentation of ubus

2015-11-21 Thread Pratik Prajapati
Gentle Reminder On Fri, Nov 20, 2015 at 6:29 PM, Pratik Prajapati < pratik.prajapat...@gmail.com> wrote: > Hi, > > Is there any API documentation of ubus available? > > If yes, where can i found those? > > ___ openwrt-devel

Re: [OpenWrt-Devel] Syntax to call ubus registered function (having arguments) from lua

2015-11-20 Thread Pratik Prajapati
conn = ubus.connect(1000) gives me following error: attempt to index local 'conn' (a nil value) On Fri, Nov 20, 2015 at 6:58 PM, Jo-Philipp Wich wrote: > Hi. > > > I am trying to call a function registered on ubus from lua script. I > > know how to call a argument less

[OpenWrt-Devel] API documentation of ubus

2015-11-20 Thread Pratik Prajapati
Hi, Is there any API documentation of ubus available? If yes, where can i found those? ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

[OpenWrt-Devel] Syntax to call ubus registered function (having arguments) from lua

2015-11-20 Thread Pratik Prajapati
Hi, I am trying to call a function registered on ubus from lua script. I know how to call a argument less function but don't know the syntax of a function with args (also how to add ubus timeout). My lua script snippet: require "ubus" local conn = ubus.connect() local status_1 =

[OpenWrt-Devel] Copy file to target filesystem

2015-10-29 Thread Pratik Prajapati
Hi, How to copy binary to target filesystem (openwrt/staging_dir/target-xxx/root-xxx/usr/bin)? I have tried following code but it copies that file into 'openwrt/build_dir/target-xxx/my_package/ipkg-install/usr/bin/' snippet from my_package Makefile: define Package/my_package/install

Re: [OpenWrt-Devel] Copy file to target filesystem

2015-10-29 Thread Pratik Prajapati
; > > Hope that helps! > Joseph > > ----- Original Message - > From: "Pratik Prajapati" <pratik.prajapat...@gmail.com> > To: "OpenWrt Development List" <openwrt-devel@lists.openwrt.org> > Sent: Thursday, October 29, 2015 9:41:28 AM >

Re: [OpenWrt-Devel] How to get uhttpd logs

2015-10-29 Thread Pratik Prajapati
One more thing, cgilua's makefile in buildroot is having luarocks rule to compile it but on openwrt i have just copied its makefile ( https://github.com/keplerproject/cgilua/blob/master/Makefile) changes (not used luarocks) On Thu, Oct 29, 2015 at 4:51 PM, Pratik Prajapati < pratik.praja

[OpenWrt-Devel] How to build some package using luarocks

2015-10-29 Thread Pratik Prajapati
Hi, I want to compile cgilua package using luarocks (like this https://github.com/maximeh/buildroot/blob/master/package/cgilua/cgilua.mk). How to write makefile for that (means how to write 'eval BuildPackage')? ___ openwrt-devel mailing list

[OpenWrt-Devel] How to get uhttpd logs

2015-10-29 Thread Pratik Prajapati
Hi, I am trying to access a lua web page (.lp) hosted using uhttpd server in openwrt installed on embedded board but i am getting following error: Bad GatewayThe process did not produce any response I checked on internet and there is no information for this error, i think may be i can get some

Re: [OpenWrt-Devel] How to get uhttpd logs

2015-10-29 Thread Pratik Prajapati
Running .lp on shell gave me following error: ./index.lp: line1: can't open ?lua: no such file ./index.lp: line2: syntax error: unexpected word (expecting ")") How to support LuaPages in uhttpd ? Same lua page is working on buildroot using uhttpd. On Thu, Oct 29, 2015 at 4:29 PM, Jo-Philipp

Re: [OpenWrt-Devel] How to get uhttpd logs

2015-10-29 Thread Pratik Prajapati
> > As expected, so its not actually a standalone CGI program but a script > similar to a PHP file. I have .lua for backend operation of .lp You need to associate an interpreter with the *.lp extension which is > able to process LuaPages. Not sure if such an interpreter exist, consult > the

[OpenWrt-Devel] package makefile help

2015-07-31 Thread Pratik Prajapati
Hi, I we write makefile using this approach https://dev.openwrt.org/browser/packages/ipv6/radvd/Makefile make package/radvd/compile V=s works but make package/radvdump/compile V=s doesn't work Why? How to correct this? ___ openwrt-devel

Re: [OpenWrt-Devel] Syntax error in radvd.conf

2015-07-26 Thread Pratik Prajapati
is the logical openwrt interface (lan, wan), not Linux devices. http://wiki.openwrt.org/doc/uci/radvd Regards, Em sex, 24 de jul de 2015 09:36, Pratik Prajapati pratik.prajapat...@gmail.com escreveu: Hi, I want to run radvd on OpenWrt but its giving me syntax error in radvd.conf

Re: [OpenWrt-Devel] Not able to get ipv6 address on OpenWrt ported embedded target

2015-07-24 Thread Pratik Prajapati
, Steven Am 24.07.2015 um 14:27 schrieb Pratik Prajapati: I have added that section on target's /etc/config/network file but still ipv6 is not assigned to it ifconfig on target: eth0 Link encap:Ethernet HWaddr E2:AB:C0:A8:5F:38 inet6 addr: fe80::e0ab:c0ff:fea8:5f38/64

[OpenWrt-Devel] Not able to get ipv6 address on OpenWrt ported embedded target

2015-07-24 Thread Pratik Prajapati
Hi, I was trying radvd (2.11) with two machines but my target couldn't assign ipv6 address. Setup: Both machines (linux machine and OpenWrt ported embedded board) are connected directly with LAN cable. /etc/radvd.conf interface eth0 { AdvSendAdvert on; MinRtrAdvInterval 3;

Re: [OpenWrt-Devel] Not able to get ipv6 address on OpenWrt ported embedded target

2015-07-24 Thread Pratik Prajapati
I have added that section on target's /etc/config/network file but still ipv6 is not assigned to it ifconfig on target: eth0 Link encap:Ethernet HWaddr E2:AB:C0:A8:5F:38 inet6 addr: fe80::e0ab:c0ff:fea8:5f38/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500

[OpenWrt-Devel] Syntax error in radvd.conf

2015-07-24 Thread Pratik Prajapati
Hi, I want to run radvd on OpenWrt but its giving me syntax error in radvd.conf radvd.conf: config 'interface' option 'interface' 'eth0' option 'AdvSendAdvert' '1' option 'AdvManagedFlag' '0' option 'AdvOtherConfigFlag' '0' config 'prefix'

Re: [OpenWrt-Devel] How to download 3rd party package from git in OpenWrt

2015-07-14 Thread Pratik Prajapati
I was able to download radvd-2.11 using your changes. I was just worrying about those git logs. Thanks. On Tue, Jul 14, 2015 at 12:28 PM, Yousong Zhou yszhou4t...@gmail.com wrote: On 14 July 2015 at 14:32, Pratik Prajapati pratik.prajapat...@gmail.com wrote: It worked but still i got some

Re: [OpenWrt-Devel] How to download 3rd party package from git in OpenWrt

2015-07-14 Thread Pratik Prajapati
at e3e2b38... Makefile.am: add --with-check to packages target On Mon, Jul 13, 2015 at 8:05 PM, Yousong Zhou yszhou4t...@gmail.com wrote: On Jul 13, 2015 6:53 PM, Pratik Prajapati pratik.prajapat...@gmail.com wrote: Hi, I want to build radvd-2.11 package in OpenWrt but i am unable to download

[OpenWrt-Devel] How to download 3rd party package from git in OpenWrt

2015-07-13 Thread Pratik Prajapati
Hi, I want to build radvd-2.11 package in OpenWrt but i am unable to download it using Makefile rules. Makefile: include $(TOPDIR)/rules.mk PKG_NAME:=radvd PKG_VERSION:=2.11 PKG_SOURCE_PROTO:=git PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).zip

[OpenWrt-Devel] How to install 3rd party package in OpenWrt

2015-07-13 Thread Pratik Prajapati
Hi, What's the difference between following 2 methods in package makefile: 1) PKG_INSTALL:=1 logs: make[2]: Leaving directory `/home/pratik.prajapati/work/openwrt-radvd/openwrt-tip/openwrt/package/libs/toolchain' make[2]: Entering directory

[OpenWrt-Devel] How to get higher version (2.0) of radvd package

2015-07-09 Thread Pratik Prajapati
Hi, I want to build radvd (2.0 version) on OpenWrt but it supports radvd 1.9 version. I have two options: 1) either configure OpenWrt to download radvd's 2.0 version instead of 1.9 or 2) disable radvd in oldpackages and create a new package for 2.0 version under /openwrt/package/ (like this