OpenWrt Forum Archive

Topic: Optimized and feature rich trunk build for select routers

The content of this topic has been archived between 20 Aug 2014 and 5 May 2018. Unfortunately there are posts – most likely complete pages – missing.

exrwagon wrote:

arokh

Any thoughts on this issue that ezarlive and I are having?

ezarlive wrote:

Same problem here with latest version.
I open an issue in luci github.

exrwagon wrote:

When trying to edit my Dynamic DNS service (myddns_ipv4) I get the following when I try to "Save & Apply"

/usr/lib/lua/luci/dispatcher.lua:452: Failed to execute cbi dispatcher target for entry '/admin/services/ddns/detail/myddns_ipv4'.

I got the same error from my build. Nothing to with arokh.

Likely a bug in the current Luci DDNS code.
Better to discuss that at the Luci bug tracker instead of here.
https://github.com/openwrt/luci/issues/620

Like I commented in #620:
I found at least one culprit: "Use HTTP Secure" option.
    That option disabled --> save fails, the error above
    That option enabled, valid cert path --> save works
    That option enabled, invalid cert path --> validation error
    That option enabled, empty cert path --> save fails, the error above

(Last edited by hnyman on 13 Jan 2016, 19:39)

Re /etc/collectd.conf on mvebu build:
This is left as a file after a new image is flashed, no matter the build tried. Manually attempting to 'mv' file in-place (i.e. rename) fails with 'invalid argument', so I assume the luci setup script outlined earlier is erring out with same. You can 'rm' the file and you can 'mv' the file somewhere (i.e.  ~). The file itself has attributes '644' and the /etc dir has '755'. Do not encounter this on any builds flashed to wnd3700v1 or c7v2.

Very strange. I would almost suggest maybe the flash or fs was corrupt somehow, except for others seem to have the same issue. What's the latest build without this issue?

WNDR3800 and r48196.

These are working well for me.

list bad_hosts '[url]http://pgl.yoyo.org/as/serverlist.php?hostformat=hosts&showintro=1&mimetype=plaintext[/url]'
list bad_hosts '[url]http://www.mvps.org/winhelp2002/hosts.txt[/url]'
list bad_hosts '[url]http://www.malwaredomainlist.com/hostslist/hosts.txt[/url]'
list bad_hosts '[url]http://hosts-file.net/.\ad_servers.txt[/url]'
list bad_hosts '[url]http://sysctl.org/cameleon/hosts.win[/url]'
list bad_hosts '[url]http://adaway.org/hosts.txt[/url]'
list bad_hosts '[url]http://hostsfile.mine.nu/Hosts[/url]'
list bad_hosts '[url]http://support.it-mate.co.uk/downloads/hosts.txt[/url]'

list bad_hosts '[url]http://someonewhocares.org/hosts[/url]'

Causes my hosts.bad to be corrupted as is it was not a flat ascii text file.  So, if you get some weirdness, try taking it out see if it helps.  dnsmasq-dhcp was matching some of my computers' names in hosts.bad resulting a refusal in giving out an ip address.

I also got to try out enabling swap as including the one from support.it-make.co.uk ran me out of memory during the cleaning up hosts phase.  :)  Swap worked just great.

Thanks for that list of bad_hosts!

r48233 working excellent, on my WRT1900ACv2 !

Thanks very much for your images arokh !

Hey could you check if you have the same issue with collectd as mentioned above?

This?

Thu Jan 14 13:07:45 2016 daemon.notice dnscrypt-proxy[1797]: mv: can't rename '/etc/collectd.conf': Invalid argument
Thu Jan 14 13:07:45 2016 daemon.notice dnscrypt-proxy[1797]: ln: /etc/collectd.conf: File exists

r48233 working on my Archer C2600. Very good performance comparing to stock firmware.

Arokh
Is any possibility that you include kmod-usb-printer, p910nd and luci-app-p910nd in your build?

Thanks!


mojolacerator wrote:

r48233 working excellent, on my WRT1900ACv2 !

Thanks very much for your images arokh !

(Last edited by matheos on 14 Jan 2016, 23:47)

Just to be clear on the /etc/collectd.conf issue, this is not unique to your build. DD/trunk(with the commensurate luci install, I have not flashed DD since November), my build and your build all yield the same result for me on initial flash. The first time I remember encountering the issue was when I posted on this thread 151128 #2766. Only an issue on a new install though, restoring ones config backup clears issue. Assuming one has rectified the issue before generating the archive of course.

(Last edited by anomeome on 15 Jan 2016, 00:17)

royo wrote:

WNDR3800 and r48196.

These are working well for me.

list bad_hosts '[url]http://pgl.yoyo.org/as/serverlist.php?hostformat=hosts&showintro=1&mimetype=plaintext[/url]'
list bad_hosts '[url]http://www.mvps.org/winhelp2002/hosts.txt[/url]'
list bad_hosts '[url]http://www.malwaredomainlist.com/hostslist/hosts.txt[/url]'
list bad_hosts '[url]http://hosts-file.net/.\ad_servers.txt[/url]'
list bad_hosts '[url]http://sysctl.org/cameleon/hosts.win[/url]'
list bad_hosts '[url]http://adaway.org/hosts.txt[/url]'
list bad_hosts '[url]http://hostsfile.mine.nu/Hosts[/url]'
list bad_hosts '[url]http://support.it-mate.co.uk/downloads/hosts.txt[/url]'

list bad_hosts '[url]http://someonewhocares.org/hosts[/url]'

Causes my hosts.bad to be corrupted as is it was not a flat ascii text file.  So, if you get some weirdness, try taking it out see if it helps.  dnsmasq-dhcp was matching some of my computers' names in hosts.bad resulting a refusal in giving out an ip address.

I also got to try out enabling swap as including the one from support.it-make.co.uk ran me out of memory during the cleaning up hosts phase.  smile  Swap worked just great.

Thanks for that list of bad_hosts!

Wrong URL, should be http://someonewhocares.org/hosts/hosts

@stangri  Most excellent!
Works great now.  It helps to have the correct url.  :)

stangri wrote:

Wrong URL, should be http://someonewhocares.org/hosts/hosts


So, the host list I'm using now is:
    list bad_hosts 'http://pgl.yoyo.org/as/serverlist.php?h … =plaintext'
    list bad_hosts 'http://www.mvps.org/winhelp2002/hosts.txt'
    list bad_hosts 'http://www.malwaredomainlist.com/hostslist/hosts.txt'
    list bad_hosts 'http://hosts-file.net/.\ad_servers.txt'
    list bad_hosts 'http://sysctl.org/cameleon/hosts.win'
    list bad_hosts 'http://adaway.org/hosts.txt'
    list bad_hosts 'http://someonewhocares.org/hosts/hosts'
    list bad_hosts 'http://hostsfile.mine.nu/Hosts'
    list bad_hosts 'http://support.it-mate.co.uk/downloads/hosts.txt'

(Last edited by royo on 15 Jan 2016, 06:46)

@matheos

People still use USB printers? smile I'll see about including it in the next build, looks quite small.

Thanks
My old HP Deskjet doesn't want to break...
I prefer buying new router or GPU than printer ;-)

I've tried to install these packages from main repository

https://downloads.openwrt.org/snapshots … /packages/

Both luci-app-p910nd and p910nd installed without problem, but kmod-usb-printer not... kernel module must be build with whole image (by you? :-)

PS. Had new sugestion, please enable lsusb and lspci in busybox

Several lines from dmesg (r48233 r48132)

[   25.008269] ath10k_pci 0001:01:00.0: qca99x0 hw2.0 target 0x01000000 chip_id 0x003b01ff sub 168c:0002
[   25.008302] ath10k_pci 0001:01:00.0: kconfig debug 0 debugfs 1 tracing 0 dfs 1 testmode 1
[   25.019692] ath10k_pci 0001:01:00.0: firmware ver 10.4.1.00030-1 api 5 features no-p2p crc32 d2901e01
[   27.062497] ath10k_pci 0001:01:00.0: unable to read from the device
[   27.062528] ath10k_pci 0001:01:00.0: could not execute otp for board id check: -110
[   27.067566] ath10k_pci 0001:01:00.0: failed to get board id from otp: -110, ignoring
[   27.075392] ath10k_pci 0001:01:00.0: failed to fetch board data for bus=pci,vendor=168c,device=0040,subsystem-vendor=168c,subsystem-device=0002 from ath10k/QCA99X0/hw2.0/board-2.bin
[   27.083358] ath10k_pci 0001:01:00.0: board_file api 1 bmi_id N/A crc32 7e56fd07
[   28.489527] ath10k_pci 0001:01:00.0: htt-ver 2.2 wmi-op 6 htt-op 4 cal file max-sta 512 raw 0 hwcrypto 1

[ 5562.467475] ath10k_pci 0000:01:00.0: Unknown eventid: 36898
[ 6460.702581] ath10k_pci 0000:01:00.0: Unknown eventid: 36898
[ 6477.098595] ath10k_pci 0000:01:00.0: Unknown eventid: 36898
[ 6478.095554] ath10k_pci 0000:01:00.0: Unknown eventid: 36898
[ 6478.418556] ath10k_pci 0000:01:00.0: Unknown eventid: 36898
[ 6480.363780] ath10k_pci 0000:01:00.0: Unknown eventid: 36898
[ 6594.745929] ath10k_pci 0000:01:00.0: Unknown eventid: 36898
[ 6595.746972] ath10k_pci 0000:01:00.0: Unknown eventid: 36898
[ 6595.756407] ath10k_pci 0000:01:00.0: Unknown eventid: 36898
[ 6595.768163] ath10k_pci 0000:01:00.0: Unknown eventid: 36898
[ 6595.770117] ath10k_pci 0000:01:00.0: Unknown eventid: 36898
[ 6595.774830] ath10k_pci 0000:01:00.0: Unknown eventid: 36898
[ 6595.779240] ath10k_pci 0000:01:00.0: Unknown eventid: 36898
[ 6600.379826] ath10k_pci 0000:01:00.0: Unknown eventid: 36898
[ 7308.782179] ath10k_pci 0000:01:00.0: Unknown eventid: 36898
[ 7531.293517] ath10k_pci 0001:01:00.0: Unknown eventid: 36898
[14802.065560] ath10k_pci 0001:01:00.0: Unknown eventid: 36898
[30815.349836] ath10k_pci 0001:01:00.0: Unknown eventid: 36898
[35902.487557] ath10k_pci 0001:01:00.0: Unknown eventid: 36898


arokh wrote:

@matheos

People still use USB printers? smile I'll see about including it in the next build, looks quite small.

(Last edited by matheos on 15 Jan 2016, 08:51)

Hi all,

I have a WNDR3700 v1 and used extroot to use a USB memory stick as extra memory, can i just update the firmware with a newer version while keeping the settings?

Thanks, Eric

arokh wrote:

Actually I already build kmod-usb-printer: opkg install http://luci.subsignal.org/~trondah/c260 … pq806x.ipk

Could you explain to me the relation of lspci/lsusb and the ath10k driver messages?

It's not related.
lspci and lsusb are sometimes needed and including it in image would be helpful


ath10k messages are the only one with error in my dmesg, pasted it here for informational purpose

The c2600 thread would probably a better place, as I'm not a developer. I just build smile

royo wrote:

WNDR3800 and r48196.

These are working well for me.

list bad_hosts '[url]http://pgl.yoyo.org/as/serverlist.php?hostformat=hosts&showintro=1&mimetype=plaintext[/url]'
list bad_hosts '[url]http://www.mvps.org/winhelp2002/hosts.txt[/url]'
list bad_hosts '[url]http://www.malwaredomainlist.com/hostslist/hosts.txt[/url]'
list bad_hosts '[url]http://hosts-file.net/.\ad_servers.txt[/url]'
list bad_hosts '[url]http://sysctl.org/cameleon/hosts.win[/url]'
list bad_hosts '[url]http://adaway.org/hosts.txt[/url]'
list bad_hosts '[url]http://hostsfile.mine.nu/Hosts[/url]'
list bad_hosts '[url]http://support.it-mate.co.uk/downloads/hosts.txt[/url]'

list bad_hosts '[url]http://someonewhocares.org/hosts[/url]'

Causes my hosts.bad to be corrupted as is it was not a flat ascii text file.  So, if you get some weirdness, try taking it out see if it helps.  dnsmasq-dhcp was matching some of my computers' names in hosts.bad resulting a refusal in giving out an ip address.

I also got to try out enabling swap as including the one from support.it-make.co.uk ran me out of memory during the cleaning up hosts phase.  smile  Swap worked just great.

Thanks for that list of bad_hosts!

Aha! Thank you.  This is what was making adblocking not working for my WNDR3700v1.

edit - that said I had to exclude a couple of those hosts lists, as the poor wndr3700 kept running out of memory building the bad hosts list.

(Last edited by lukano on 16 Jan 2016, 02:42)

It appears in log file:

Sat Jan 16 12:51:04 2016 user.notice transmission: Starting with 62816000 virt mem
Sat Jan 16 12:51:05 2016 kern.info kernel: [  130.921400] 
Sat Jan 16 12:51:05 2016 kern.info kernel: [  130.921400] do_page_fault(): sending SIGSEGV to nzbget for invalid read access from 00000000
Sat Jan 16 12:51:05 2016 kern.info kernel: [  130.930134] epc = 774121d4 in libc.so[77396000+9f000]
Sat Jan 16 12:51:05 2016 kern.info kernel: [  130.935348] ra  = 0043b64b in nzbget[400000+c3000]
Sat Jan 16 12:51:05 2016 kern.info kernel: [  130.940244] 
Sat Jan 16 12:51:05 2016 daemon.info procd: - init complete -

(Last edited by ezarlive on 16 Jan 2016, 13:01)

Hi,

i take my first steps with adblocking on the router. Per Default im using uBlock....
I try to take that lists from uBlock. But here i get an 404....

root@OpenWrt # ./etc/init.d/adblock reload
Downloading...
wget: server returned error: HTTP/1.1 400 Bad Request

Is that an https wget problem? Problem is - i need that Easylist-Filters

config adblock config
    option 'enabled' '1'
    option 'pixel_server_ip' '192.168.3.254'
    option 'hosts_file' '/tmp/hosts/hosts.bad'
    list whitelist_domains 'www.golem.de www.bild.de ads.hulu.com tc.tradetracker.net www.econda-monitor.de'
    list bad_hosts 'https://easylist-downloads.adblockplus.org/easylist_noelemhide.txt'
    list bad_hosts 'https://github.com/gorhill/uBlock/blob/master/assets/ublock/filters.txt'
    list bad_hosts 'https://easylist-downloads.adblockplus.org/easylist.txt'

(Last edited by Hexxer2 on 16 Jan 2016, 14:06)

This seems to be an issue with wget on openwrt.  I can wget from github on other linux boxes just fine, but when I try to do so on openwrt (manually, for testing purposes) I get 400 Bad Requests or Resource Temporarily Unavailable responses.

edit - for example, here's a 6mb hosts file compiled by another person.  Raw file link from github, I can wget it on my Jessie box just fine, but the same url on openwrt gives me the 'Resource temporarily unavailable' response.

https://raw.githubusercontent.com/Steve … ster/hosts

(Last edited by lukano on 16 Jan 2016, 15:46)

@lukano, I had a similar problem with wget. I updated wget and installed the necessary certificates:

opkg update
opkg install wget ca-certificates

After that I could successfully download from https-URL's.

(Last edited by bouwew on 16 Jan 2016, 17:56)

lukano wrote:

for example, here's a 6mb hosts file compiled by another person.  Raw file link from github, I can wget it on my Jessie box just fine, but the same url on openwrt gives me the 'Resource temporarily unavailable' response.

I assume that you have GNU wget installed (as it supports https while the standard Busybox wget does not fully support https).

An alternative to installing ca-certificates is to tell wget to skip checking certificates with "--no-check-certificate" parameter:

root@OpenWrt2:~# wget https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts
--2016-01-16 18:32:18--  https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts
Resolving raw.githubusercontent.com... 23.235.43.133
Connecting to raw.githubusercontent.com|23.235.43.133|:443... connected.
ERROR: cannot verify raw.githubusercontent.com's certificate, issued by 'CN=DigiCert SHA2 High Assurance Server CA,OU=www.digicert.com,O=DigiCert Inc,C=US':
  Unable to locally verify the issuer's authority.
To connect to raw.githubusercontent.com insecurely, use `--no-check-certificate'.

root@OpenWrt2:~# wget --no-check-certificate https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts
--2016-01-16 18:32:26--  https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts
Resolving raw.githubusercontent.com... 23.235.43.133
Connecting to raw.githubusercontent.com|23.235.43.133|:443... connected.
WARNING: cannot verify raw.githubusercontent.com's certificate, issued by 'CN=DigiCert SHA2 High Assurance Server CA,OU=www.digicert.com,O=DigiCert Inc,C=US':
  Unable to locally verify the issuer's authority.
HTTP request sent, awaiting response... 200 OK
...
2016-01-16 18:32:33 (125 KB/s) - 'hosts.1' saved [864206/864206]

(Last edited by hnyman on 16 Jan 2016, 17:39)

Hi,

dosent help to change -> vi ./etc/init.d/adblock

wget  -qO- "${hf}" >> $H_TMP

to

wget --no-check-certificate -qO- "${hf}" >> $H_TMP

These change with "opkg install wget ca-certificates" let me download these files. Perfect

But there is an other problem. I, better my collegua, need www.bild.de and they have a adblock warning if you use adblock. You will redirect. As you see above, www.bild.de is in the whitelist - but i dosent work. The ural tell me that i have adblock active

(Last edited by Hexxer2 on 16 Jan 2016, 19:47)

Installing ca-certificates isn't going to do much, wget is compiled without ssl support by default. Been meaning to fix that but forgot, will rebuild with that enabled.