[OpenWrt-Devel] [PATCH] kernel-build: fix STRIP_KERNEL_EXPORTS for recent kernels

2014-09-03 Thread Daniel Golle
Recent kernels started to mark exported symbols as global.
Adapt expressions in kernel-build.mk to also match global symbols
when grep'ing through nm output.

Signed-off-by: Daniel Golle 
---
 include/kernel-build.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/kernel-build.mk b/include/kernel-build.mk
index 2bf6392..fd117d5 100644
--- a/include/kernel-build.mk
+++ b/include/kernel-build.mk
@@ -76,7 +76,7 @@ define BuildKernel
xargs $(TARGET_CROSS)nm | \
awk '1 == "U" { print 2 } ' | \
sort -u > $(KERNEL_BUILD_DIR)/mod_symtab.txt
-   $(TARGET_CROSS)nm -n $(LINUX_DIR)/vmlinux.o | grep -F ' r __ksymtab' | 
sed -e 's, r __ksymtab_,,' > $(KERNEL_BUILD_DIR)/kernel_symtab.txt
+   $(TARGET_CROSS)nm -n $(LINUX_DIR)/vmlinux.o | grep ' [rR] __ksymtab' | 
sed -e 's, [rR] __ksymtab_,,' > $(KERNEL_BUILD_DIR)/kernel_symtab.txt
grep -Ff $(KERNEL_BUILD_DIR)/mod_symtab.txt 
$(KERNEL_BUILD_DIR)/kernel_symtab.txt > $(KERNEL_BUILD_DIR)/sym_include.txt
grep -Fvf $(KERNEL_BUILD_DIR)/mod_symtab.txt 
$(KERNEL_BUILD_DIR)/kernel_symtab.txt > $(KERNEL_BUILD_DIR)/sym_exclude.txt
( \
-- 
2.1.0
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] Feeds on Trunk version

2014-09-03 Thread Aaron Z
On Wed, Sep 3, 2014 at 3:52 PM, William Haynes
 wrote:
> It appears to me that feeds.conf.default has been changed to exclude
> oldpackages, many of which have not been moved yet to the new package
> location.

See: https://forum.openwrt.org/viewtopic.php?id=52219 for the full
whys and wherefores of what packages will be available in the next
versions.

> I'm new at this but I had to delete the # in front of oldpackages in the
> feeds.conf.default to get all the packages needed.  I know I saw snort in
> there...
That is intentional. See the forum link above for the whys and the wherefores.

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
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] Feeds on Trunk version

2014-09-03 Thread William Haynes
It appears to me that feeds.conf.default has been changed to exclude
oldpackages, many of which have not been moved yet to the new package
location.

I'm new at this but I had to delete the # in front of oldpackages in the
feeds.conf.default to get all the packages needed.  I know I saw snort in
there...

Sincerely,

William Haynes
Sabai Technology
--
Technology for the People
--
p - 864-962-4072
f - 919-590-1929
e - will...@sabaitechnology.com
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH]other.mk: update configuration for ad799x

2014-09-03 Thread Hartmut Knaack
The ad799x driver moved out of staging since kernel 3.16, so update filepath,
config elements and description.

Signed-off-by: Hartmut Knaack 
---
diff --git a/package/kernel/linux/modules/other.mk 
b/package/kernel/linux/modules/other.mk
index 2f6f774..6afcbb6 100644
--- a/package/kernel/linux/modules/other.mk
+++ b/package/kernel/linux/modules/other.mk
@@ -239,17 +239,22 @@ define KernelPackage/iio-ad799x
   SUBMENU:=$(OTHER_MENU)
   DEPENDS:=kmod-i2c-core kmod-iio-core
   TITLE:=Analog Devices AD799x ADC driver
+ifeq ($(strip $(call CompareKernelPatchVer,$(KERNEL_PATCHVER),ge,3.16.0)),1)
+  KCONFIG:=CONFIG_AD799X
+  FILES:=$(LINUX_DIR)/drivers/iio/adc/ad799x.ko
+else
   KCONFIG:= \
CONFIG_AD799X_RING_BUFFER=y \
CONFIG_AD799X
   FILES:=$(LINUX_DIR)/drivers/staging/iio/adc/ad799x.ko
+endif
   AUTOLOAD:=$(call AutoLoad,56,ad799x)
 endef
 
 define KernelPackage/iio-ad799x/description
  support for Analog Devices:
  ad7991, ad7995, ad7999, ad7992, ad7993, ad7994, ad7997, ad7998
- i2c analog to digital converters (ADC). WARNING! This driver is still staging!
+ i2c analog to digital converters (ADC).
 endef
 
 $(eval $(call KernelPackage,iio-ad799x))
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH] Backport essential fixes for ad799x

2014-09-03 Thread Hartmut Knaack

Any objections, or everybody just working on the stable release?

Hartmut Knaack schrieb:
> This series of patches ports back some fixes of the ad799x driver, which were
> commited between 3.10 and 3.15.
>
> Signed-off-by: Hartmut Knaack 
> ---
> diff --git 
> a/target/linux/generic/patches-3.10/065-iio_ad799x_backport_fixes.patch 
> b/target/linux/generic/patches-3.10/065-iio_ad799x_backport_fixes.patch
> new file mode 100644
> index 000..4368ec7
> --- /dev/null
> +++ b/target/linux/generic/patches-3.10/065-iio_ad799x_backport_fixes.patch
> @@ -0,0 +1,159 @@
> +Backport essential fixes from 3.15
> +
> +From Linux 3.10 on this driver required platform data to load, which makes it
> +unusable in OpenWRT. This commit backports the following fixes:
> +  * Move to regulator framework for scaling
> +  * Set endianness of the ADC to Big endian
> +  * Fix device-removal path
> +This commit should not be moved to newer kernel versions!
> +
> +Signed-off-by: Hartmut Knaack 
> +---
> +diff -uprN a/drivers/staging/iio/adc/ad799x_core.c 
> b/drivers/staging/iio/adc/ad799x_core.c
> +--- a/drivers/staging/iio/adc/ad799x_core.c
>  b/drivers/staging/iio/adc/ad799x_core.c
> +@@ -163,7 +163,6 @@ static int ad799x_read_raw(struct iio_de
> + {
> + int ret;
> + struct ad799x_state *st = iio_priv(indio_dev);
> +-unsigned int scale_uv;
> + 
> + switch (m) {
> + case IIO_CHAN_INFO_RAW:
> +@@ -180,10 +179,12 @@ static int ad799x_read_raw(struct iio_de
> + RES_MASK(chan->scan_type.realbits);
> + return IIO_VAL_INT;
> + case IIO_CHAN_INFO_SCALE:
> +-scale_uv = (st->int_vref_mv * 1000) >> chan->scan_type.realbits;
> +-*val =  scale_uv / 1000;
> +-*val2 = (scale_uv % 1000) * 1000;
> +-return IIO_VAL_INT_PLUS_MICRO;
> ++ret = regulator_get_voltage(st->vref);
> ++if (ret < 0)
> ++return ret;
> ++*val =  ret / 1000;
> ++*val2 = chan->scan_type.realbits;
> ++return IIO_VAL_FRACTIONAL_LOG2;
> + }
> + return -EINVAL;
> + }
> +@@ -474,7 +475,13 @@ static const struct iio_info ad7993_4_7_
> + .info_mask_separate = BIT(IIO_CHAN_INFO_RAW), \
> + .info_mask_shared_by_type = BIT(IIO_CHAN_INFO_SCALE), \
> + .scan_index = (_index), \
> +-.scan_type = IIO_ST('u', _realbits, 16, 12 - (_realbits)), \
> ++.scan_type = { \
> ++.sign = 'u', \
> ++.realbits = (_realbits), \
> ++.storagebits = 16, \
> ++.shift = 12 - (_realbits), \
> ++.endianness = IIO_BE, \
> ++}, \
> + .event_mask = (_evmask), \
> + }
> + 
> +@@ -584,7 +591,6 @@ static int ad799x_probe(struct i2c_clien
> +const struct i2c_device_id *id)
> + {
> + int ret;
> +-struct ad799x_platform_data *pdata = client->dev.platform_data;
> + struct ad799x_state *st;
> + struct iio_dev *indio_dev = iio_device_alloc(sizeof(*st));
> + 
> +@@ -601,17 +607,21 @@ static int ad799x_probe(struct i2c_clien
> + 
> + /* TODO: Add pdata options for filtering and bit delay */
> + 
> +-if (!pdata)
> +-return -EINVAL;
> +-
> +-st->int_vref_mv = pdata->vref_mv;
> +-
> +-st->reg = regulator_get(&client->dev, "vcc");
> +-if (!IS_ERR(st->reg)) {
> +-ret = regulator_enable(st->reg);
> +-if (ret)
> +-goto error_put_reg;
> ++st->reg = devm_regulator_get(&client->dev, "vcc");
> ++if (IS_ERR(st->reg))
> ++return PTR_ERR(st->reg);
> ++ret = regulator_enable(st->reg);
> ++if (ret)
> ++return ret;
> ++st->vref = devm_regulator_get(&client->dev, "vref");
> ++if (IS_ERR(st->vref)) {
> ++ret = PTR_ERR(st->vref);
> ++goto error_disable_reg;
> + }
> ++ret = regulator_enable(st->vref);
> ++if (ret)
> ++goto error_disable_reg;
> ++
> + st->client = client;
> + 
> + indio_dev->dev.parent = &client->dev;
> +@@ -624,7 +634,7 @@ static int ad799x_probe(struct i2c_clien
> + 
> + ret = ad799x_register_ring_funcs_and_init(indio_dev);
> + if (ret)
> +-goto error_disable_reg;
> ++goto error_disable_vref;
> + 
> + if (client->irq > 0) {
> + ret = request_threaded_irq(client->irq,
> +@@ -648,12 +658,10 @@ error_free_irq:
> + free_irq(client->irq, indio_dev);
> + error_cleanup_ring:
> + ad799x_ring_cleanup(indio_dev);
> ++error_disable_vref:
> ++regulator_disable(st->vref);
> + error_disable_reg:
> +-if (!IS_ERR(st->reg))
> +-regulator_disable(st->reg);
> +-error_put_reg:
> +-if (!IS_ERR(st->reg))
> +-regulator_put(st->reg);
> ++regulator_disable(st->reg);
> + iio_device_free(indio_dev);
> + 
> + return ret;
> +@@ -669,10 +677,8 @@ static int ad799x_remove(struct i2c_clie
> + free_irq(client->irq, indio_dev);
>

[OpenWrt-Devel] seems like outdated link on devel page

2014-09-03 Thread Robert P. J. Day

  wandering thru the openwrt pages, getting back up to speed, and on
the development page:

 https://dev.openwrt.org/

the link labelled "Developer and User Documentation" takes one to a
kamikaze-related page, which seems kind of old.

 and, yes, i know it's a wiki but i don't have the street cred to
start messing around in some places. :-)

rday

-- 


Robert P. J. Day Ottawa, Ontario, CANADA
http://crashcourse.ca

Twitter:   http://twitter.com/rpjday
LinkedIn:   http://ca.linkedin.com/in/rpjday

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] Feeds on Trunk version

2014-09-03 Thread Edison Figueira Junior
I am not able to download some feeds in trunk version eg snort and
multiwan.

They were removed?

,

Edison
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] Changing repositories

2014-09-03 Thread William Haynes
I am developing on the x86_64 build using php/javascript/jquery...  I
updated my build server with the latest development repository and php /
javascript are now missing from the Languages area.  If I try the 14.07
repository, x86_64 is missing.

How do I get a repository setup with all the options that were available a
few weeks ago on the development git repository?

Also, will x86_64 be part of the final barrier breaker set?

First post on here, so let me say in advance "Thank you"!
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] Does anyone have pspboot source code?

2014-09-03 Thread 蔡振军
The following link found on openwrt page is broken. I search the 
WAG54GV2_V1.00.19.tgz package on google, but no link is valid.

Source code

The source code of PSPBoot 1.2 and the PSPBoot user guide can be found inside 
WAG54GV2_V1.00.19.tgz 
(ftp://ftp.linksys.com/opensourcecode/wrt54gv2/1.00.19/WAG54GV2_V1.00.19_GPL.tgz).
 Note that the RTP300 uses PSPBoot 1.3.3.11, which includes additional features 
such as dual images.


 
 
-- Original --
From:  "蔡振军";
Date:  Wed, Sep 3, 2014 09:44 PM
To:  "José Vázqu"; 
"openwrt-devel"; 

Subject:  Re: [OpenWrt-Devel] Does anyone have pspboot source code?

 
Hi,
Yes, TI AR7 pspboot source
 
 
-- Original --
From:  "José Vázqu";
Date:  Wed, Sep 3, 2014 08:43 PM
To:  "zhenjun_...@icloudaegis.com"; 
Cc:  "openwrt-devel"; 
Subject:  Re: [OpenWrt-Devel] Does anyone have pspboot source code?

 
Are you looking for the AR7 or Puma5 pspboot sources?

2014-09-03 11:58 GMT+02:00, zhenjun_...@icloudaegis.com
:
> Hi,
> I can't find valid link to download TI pspboot  source code.
> Any one can help me?
>
>
>
> zhenjun_...@icloudaegis.com
>___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] Does anyone have pspboot source code?

2014-09-03 Thread 蔡振军
Hi,
Yes, TI AR7 pspboot source
 
 
-- Original --
From:  "José Vázqu";
Date:  Wed, Sep 3, 2014 08:43 PM
To:  "zhenjun_...@icloudaegis.com"; 
Cc:  "openwrt-devel"; 
Subject:  Re: [OpenWrt-Devel] Does anyone have pspboot source code?

 
Are you looking for the AR7 or Puma5 pspboot sources?

2014-09-03 11:58 GMT+02:00, zhenjun_...@icloudaegis.com
:
> Hi,
> I can't find valid link to download TI pspboot  source code.
> Any one can help me?
>
>
>
> zhenjun_...@icloudaegis.com
>___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] Does anyone have pspboot source code?

2014-09-03 Thread José Vázquez
Are you looking for the AR7 or Puma5 pspboot sources?

2014-09-03 11:58 GMT+02:00, zhenjun_...@icloudaegis.com
:
> Hi,
> I can't find valid link to download TI pspboot  source code.
> Any one can help me?
>
>
>
> zhenjun_...@icloudaegis.com
>
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] Missing packages from packages feed on GitHub repository

2014-09-03 Thread Jiří Šlachta
Hi Federico,

I would say you can take over maintainership without asking anyone. There
is no formal maintainer for this package and git history shows that this
package was maintained by almost all devs through the time. Just create
pull request against the packages repository in github and it will be merged
by devs or maintainers if it complies the "Contributing Guidelines".

Please see following:
https://github.com/openwrt/packages/blob/master/CONTRIBUTING.md

Jiri

Dne 03/09/2014 v 11:56 Federico Di Marco napsal(a):
> :) Ok got it, just to be sure before "stealing" others' work is there
> anybody willing to maintain neon library ? From SVN jow (I do not know
> his/her email) is the last one who modified neon package, could
> someone please ask him/her if he/she is willing sooner or later to
> upload neon library to Git ?
> 
> Federico
> 
> On Wed, Sep 3, 2014 at 11:17 AM, Weedy  wrote:
>>
>> On 3 Sep 2014 04:21, "Federico Di Marco"  wrote:
>>>
>>> Well shouldn't there already be assigned a maintaner ?
>>
>> They were never set in stone.
>> This is why we started over.
> ___
> openwrt-devel mailing list
> openwrt-devel@lists.openwrt.org
> https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
> 

---
This email is free from viruses and malware because avast! Antivirus protection 
is active.
http://www.avast.com
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] toolchain size increase - 40MB vs 160MB

2014-09-03 Thread Weedy
On 25 Aug 2014 15:40, "valent.turko...@gmail.com" 
wrote:
>
> Hmm, I just noticed that BB RC3 has enormus toolchain file for mips (the
one I use most often) [1] when compared to AA 12.09 toolchain [2]
>
> 40MB vs 160MB
>
> Should I be worried that something is broken or is this quadruple size
increase planed?
>
>
> [1]
http://downloads.openwrt.org/barrier_breaker/14.07-rc3/ar71xx/generic/OpenWrt-Toolchain-ar71xx-for-mips_34kc-gcc-4.8-linaro_uClibc-0.9.33.2.tar.bz2
>
> [2]
http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/OpenWrt-Toolchain-ar71xx-for-mips_r2-gcc-4.6-linaro_uClibc-0.9.33.2.tar.bz2

I'm 90% sure 4.8 is just fat.
It added a bunch of optimization libs and I don't know offhand what OpenWRT
has enabled in the GCC build.
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] Does anyone have pspboot source code?

2014-09-03 Thread zhenjun_...@icloudaegis.com
Hi, 
I can't find valid link to download TI pspboot  source code.
Any one can help me?



zhenjun_...@icloudaegis.com
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] Missing packages from packages feed on GitHub repository

2014-09-03 Thread Federico Di Marco
:) Ok got it, just to be sure before "stealing" others' work is there
anybody willing to maintain neon library ? From SVN jow (I do not know
his/her email) is the last one who modified neon package, could
someone please ask him/her if he/she is willing sooner or later to
upload neon library to Git ?

Federico

On Wed, Sep 3, 2014 at 11:17 AM, Weedy  wrote:
>
> On 3 Sep 2014 04:21, "Federico Di Marco"  wrote:
>>
>> Well shouldn't there already be assigned a maintaner ?
>
> They were never set in stone.
> This is why we started over.
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] Missing packages from packages feed on GitHub repository

2014-09-03 Thread Weedy
On 3 Sep 2014 04:21, "Federico Di Marco"  wrote:
>
> Well shouldn't there already be assigned a maintaner ?

They were never set in stone.
This is why we started over.
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] Missing packages from packages feed on GitHub repository

2014-09-03 Thread Federico Di Marco
Well shouldn't there already be assigned a maintaner ?

On Tue, Sep 2, 2014 14:54:20 CEST, Hannu Nyman  wrote:

To my knowledge those packages (e.g. neon) have never been imported to the
new "packages" in Github.
They are still in the old packages repo in svn, better known now as
"oldpackages".

None of the packages have been imported automatically. Transferring any
package from oldpackages to Github requires somebody to be active, to create
a pull request and to assume maintainership.

If you need other packages, you need to import also them (and to become the
maintainer for them).


On Tue, Sep 2, 2014 at 12:57 PM, Federico Di Marco  wrote:
> Hi,
>
> I have noticed that the GITHUB repository of package feed (
> https://github.com/openwrt/packages ) some packages which had already
> been ported to Openwrt are missing (e.g. libs/neon, net/lftp,
> net/sshfs, etc.) and instead they are present in the SVN repository (
> https://dev.openwrt.org/browser/packages ). Can anybody explain me why
> ? I would like to add Davfs2 to github, yet I can't due to missing
> neon library.
>
> Federico
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel