Page 4 of 17

Re: Openwrt 19.07 based Gargoyle

Posted: Tue Sep 03, 2019 8:49 am
by Lantis
I just had a look and i had the D7800 included already? Are you seeing otherwise?

Re: Openwrt 19.07 based Gargoyle

Posted: Tue Sep 03, 2019 11:14 am
by yabba235
OK, finally my custom build work with full operational wifi !
Simply in default config file for ath79 target missing kernel module owl-loader. If add this module in build image, wifi work.
So now is all ok:
cat /proc/interrupts
CPU0
3: 0 MIPS 3 ehci_hcd:usb1
4: 24063 MIPS 4 19000000.eth
5: 15196 MIPS 5 1a000000.eth
7: 454930 MIPS 7 timer
10: 12 MISC 3 ttyS0
15: 0 gpio-ath79 3 keys
16: 0 gpio-ath79 8 keys
17: 0 gpio-ath79 11 keys
18: 230066 MISC 0 ath9k
19: 219817 MISC 1 ath9k

root@Gargoyle:/etc/config# ls -la
drwxr-xr-x 1 root root 0 Sep 3 15:24 .
drwxr-xr-x 1 root root 0 Sep 3 15:24 ..
-rw-r--r-- 1 root root 3261 Aug 21 10:28 ddns_gargoyle
-rw------- 1 root root 2727 Aug 21 10:54 dhcp
-rw------- 1 root root 104 Sep 3 15:24 dropbear
-rw-r--r-- 1 root root 862 Aug 21 10:28 etherwake
-rw-r--r-- 1 root root 3385 Sep 3 15:24 firewall
-rw-r--r-- 1 root root 151 Aug 21 10:28 fstab
-rw-r--r-- 1 root root 4098 Aug 21 10:53 gargoyle
-rw------- 1 root root 570 Aug 21 10:28 minidlna
-rw-r--r-- 1 root root 354 Aug 21 10:28 mjpg-streamer
-rw-r--r-- 1 root root 1055 Aug 21 10:55 network
-rw-r--r-- 1 root root 263 Aug 21 10:28 nfsd
-rw------- 1 root root 1117 Aug 21 10:28 openvpn
-rw-r--r-- 1 root root 746 Aug 21 10:28 openvpn_gargoyle
-rw-r--r-- 1 root root 839 Aug 21 10:28 p910nd
-rw-r--r-- 1 root root 520 Aug 21 10:55 qos_gargoyle
-rw------- 1 root root 129 Aug 21 10:28 samba
-rw------- 1 root root 431 Aug 21 10:28 share_users
-rw-r--r-- 1 root root 736 Aug 21 10:53 system
-rw------- 1 root root 1070 Aug 21 10:28 tor
-rw-r--r-- 1 root root 0 Aug 21 10:28 ubootenv
-rw-r--r-- 1 root root 600 Sep 3 15:24 uhttpd
-rw------- 1 root root 704 Aug 21 10:28 upnpd
-rw------- 1 root root 246 Aug 21 10:28 vsftpd
-rw-r--r-- 1 root root 369 Aug 21 10:28 webmon_gargoyle
-rw-r--r-- 1 root root 752 Aug 21 10:55 wireless

root@192.168.0.2's password:


BusyBox v1.30.1 () built-in shell (ash)

------------------------------------------------------------------
| _____ _ |
| | __ \ | | |
| | | \/ __ _ _ __ __ _ ___ _ _| | ___ |
| | | __ / _` | '__/ _` |/ _ \| | | | |/ _ \ |
| | |_\ \ (_| | | | (_| | (_) | |_| | | __/ |
| \____/\__,_|_| \__, |\___/ \__, |_|\___| |
| __/ | __/ | |
| |___/ |___/ |
| |
|----------------------------------------------------------------|
| Gargoyle version 1.13.X | OpenWrt 19.07 branch |
| Gargoyle revision 87b005c3| OpenWrt commit 7d30032 |
| Built September 03, 2019 | Target ath79/usb_large |
------------------------------------------------------------------

Thank's Ipsy/Landis for opportunity testing beta Gargoyle 1.13 !!

BTW: compilation ETA app. 4h ?!

Re: Openwrt 19.07 based Gargoyle

Posted: Tue Sep 03, 2019 4:54 pm
by Lantis
I tested similar last night, so thanks for confirming.

Yes 4hrs sound about right depending on how fast your computer is.
A rebuild should be much faster, but if the toolchain changes you have to do the whole thing again.

Re: Openwrt 19.07 based Gargoyle

Posted: Wed Sep 04, 2019 8:24 am
by pythonic
Lantis wrote:I just had a look and i had the D7800 included already? Are you seeing otherwise?
Bah! My apologies, indeed you did! :oops:

I just kept reading it as "R7800" when looking at your custom build list. :roll:

Re: Openwrt 19.07 based Gargoyle

Posted: Wed Oct 09, 2019 11:38 am
by yabba235
Hi !
Just for information:
under gatrgoyle 1.13.x can't possiblle compiling working kernel for spi chip ram eg xiaomi 4a - is only working in 1.11 version.
Under 1.13 kerneldon;t see spi chips:
MediaTek Nand driver init, version v2.1 Fix AHB virt2phys error
[ 9.842946] Enable NFI Clock
[ 9.845817] # MTK NAND # : Use HW ECC
[ 9.849476] Device not found, ID: f0f0
[ 9.853222] Not Support this Device!
[ 9.856950] chip_mode=00000002
[ 9.859987] Support this Device in MTK table! f0f0
[ 9.864963] [NAND]select ecc bit:4, sparesize :64 spare_per_sector=16
[ 9.871438] nand: device found, Manufacturer ID: 0xf0, Chip ID: 0xf0
[ 9.877759] nand: Unknown MT7621-NAND
[ 9.881421] nand: bus width 8 instead of 16 bits
[ 9.886013] nand: No NAND device found
[ 9.889739] # MTK NAND # : nand_scan fail.
[ 9.893827] [NFI] mtk_nand_probe fail, err = -6!

Gragoyle 1.11:

MediaTek Nand driver init, version v2.1 Fix AHB virt2phys error
[ 2.490962] spi-mt7621 1e000b00.spi: sys_freq: 220000000
[ 2.498986] m25p80 spi0.0: gd25q128 (16384 Kbytes)

I use dts file from:
https://patchwork.ozlabs.org/patch/1154310/

Re: Openwrt 19.07 based Gargoyle

Posted: Mon Oct 14, 2019 9:46 am
by boldga
there are some bugs on OpenVPN menu:
1. Set as VPN client and select a zip file, after clicking "save changes" an ERROR " Could not find config file" shows up.

2. Set as VPN Server,Client Internal IP set to 10.8.0.2, Subnet IP set to 192.168.1.0/255.255.255.but the config saved in the zip file is set to 192.168.2.0/255.255.255.

netgear R7800 1.13.x custom build 2019-08-24

Re: Openwrt 19.07 based Gargoyle

Posted: Mon Oct 14, 2019 2:03 pm
by idahorazor
I'm not sure if this is the best spot to post this. However since I was using the packages in OpenWRT 19.07, I figured this thread was Ok.

I ran into a problem ( also seen earlier in this thread in dmesg ) where the bwctl kernel module would segfault and hang:

Code: Select all

[  802.800566] do_page_fault(): sending SIGSEGV to bw_set for invalid read access from 77f28000
[  802.809541] epc = 77eefddc in libc .so[77e7e000+96000]
[  802.814858] ra  = 77e6a903 in libiptbwctl .so .1[77e68000+13000]
This would show up after bw_set was run, trying to restore older usage back into memory.

I worked around this by making the following adjustment to set_bandwidth_data()

Patch:

Code: Select all

--- a/package/libiptbwctl/src/ipt_bwctl.c
+++ b/package/libiptbwctl/src/ipt_bwctl.c
@@ -611,7 +611,7 @@ static int set_bandwidth_data(char* id, unsigned char zero_unset, unsigned char
 	*history_included = set_history;
 	*zero_unset_ips = zero_unset;
 	*last_backup_time = (uint64_t)last_backup;
-	memcpy(set_id, id, BANDWIDTH_MAX_ID_LENGTH);
+	strcpy(set_id, id);
 	set_id[BANDWIDTH_MAX_ID_LENGTH-1] = '\0';
 
 	while(!done && sockfd >= 0 && got_lock)
@@ -637,6 +637,7 @@ static int set_bandwidth_data(char* id, unsigned char zero_unset, unsigned char
 
 		*next_ip_index = ip_index;
 	}
+
 	if(sockfd >= 0)
 	{
 		close(sockfd);
I'm not sure if that's the proper way of addressing this, but it did work for me. I can successfully restore using bw_set without the segfault.

An interesting note, I only saw this on my ar71xx build. My IPQ40xx seemed to work fine, so not exactly sure on the difference then.

Hope this helps,

Re: Openwrt 19.07 based Gargoyle

Posted: Mon Oct 14, 2019 4:29 pm
by Lantis
@idahorazor
Thanks for the note on bw_set. I hadn't bothered looking at that yet, and this saves me a lot of debugging to find where it actually failed.
I thought it might have been an endianness issue given it only effects some targets.

@boldga
Did you build r7800 using custom or the target already defined?
If custom, you might be missing a zip utility for openvpn. Otherwise I will check.

Is the r7800 using the 192.168.1.x subnet? If so you can't have another subnet the same from a client or you will get routing issues. It is autocorrected to prevent this.
If your case is different, please give more detail and I'll check it.

Re: Openwrt 19.07 based Gargoyle

Posted: Tue Oct 15, 2019 12:11 am
by boldga
I downloaded the firmware from
https://lantisproject.com/gargoyle_custom/
and flashed factory.img into R7800 by tftp. the upload zip file function in openvpn menu doesn't work. it shows up an error message "Could not find config file".

about the subnet question, it seems it's my input mistake, I deleted the Configure and set it again, it's OK now.

Re: Openwrt 19.07 based Gargoyle

Posted: Tue Oct 15, 2019 6:11 am
by Lantis
What zip file are you uploading? Did this also come from Gargoyle or is this from a commercial VPN provider?