Compiling Gargoyle for PC Engines Wrap, Alix and Ath5k

Discuss the technical details of Gargoyle and ongoing development

Moderator: Moderators

errikos
Posts: 10
Joined: Thu Dec 08, 2022 5:31 am

Re: Compiling Gargoyle for PC Engines Wrap, Alix and Ath5k

Post by errikos »

So,

wireless card is:
Wistron CM6 (two of them)

image name is:
gargoyle_1.13.x-x86-geode-combined-squashfs.img

1)
Actions:
Login to web interface, connection, device configuration, > Wireless Bridge/Repeater

SSID to Join:
Re-Scan
>No wireless networks found.

Expected
To list wireless networks around.

Result:
No wifi networks found popup.

2)
Actions:
Login to web interface, connection, device configuration, > Gateway (Default)
Wireless> Access Point
Configure AP names for any combination of 5GHZ or 2.4GHz bands.
Save

Expected:
To find the configured APs broadcasted.

Result:
No AP is broadcasted.

In the status page, Wireless infromation says:
Wireless Mode:Access Point (AP) (disabled)
Wireless MAC Address:-
2.4GHz Access Point SSID:Gargoyle
5GHz Access Point SSID:gargoyle5

I don't know if it is (disabled)

The weird think is throu console I manages to scan and find wireless networks around.

Lantis
Moderator
Posts: 6490
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: Compiling Gargoyle for PC Engines Wrap, Alix and Ath5k

Post by Lantis »

Let’s separate the issues.
In client mode, on the GUI, press F12 to open the web console. You should see no errors.
Press scan, wait for it to complete, and see if any errors show in the console (usually highlighted red).
Immediately after, go into a shell and do “iwinfo wlan0 scan”. Post back the results of both. Also out of curiosity, “iwinfo phy0 scan” and check it behaves the same as the above.
It could be that the scan works but the returned results are not able to be interpreted.


For the AP, can you configure it, hit save, wait 20 seconds and then issue a “logread” and paste the contents here. Also please provide the contents of the wifi config /etc/config/wireless.
I’m looking for errors in initialisation.
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

errikos
Posts: 10
Joined: Thu Dec 08, 2022 5:31 am

Re: Compiling Gargoyle for PC Engines Wrap, Alix and Ath5k

Post by errikos »

There is definitely a driver issue.
In the options menu there are the following errors in console during load (no reconfiguration possible)

Code: Select all

VM74 basic.sh:596 Uncaught SyntaxError: Unexpected token '<' (at VM74 basic.sh:596:67)
basic.js?1.13.X--Built-20230104-1100-git-4f6e9c33-:1 Uncaught ReferenceError: wirelessDriver is not defined
    at resetData (basic.js?1.13.X--Built-20230104-1100-git-4f6e9c33-:1:43224)
    at VM76 basic.sh:2053:2
resetData @ basic.js?1.13.X--Built-20230104-1100-git-4f6e9c33-:1
(anonymous) @ VM76 basic.sh:2053
Interface is not found.

Code: Select all


root@Gargoyle:~# iw phy0 info
Wiphy phy0
        max # scan SSIDs: 4
        max scan IEs length: 2285 bytes
        max # sched scan SSIDs: 0
        max # match sets: 0
        max # scan plans: 1
        max scan plan interval: -1
        max scan plan iterations: 0
        Retry short limit: 7
        Retry long limit: 4
        Coverage class: 0 (up to 0m)
        Available Antennas: TX 0x3 RX 0x3
        Configured Antennas: TX 0x3 RX 0x3
        Supported interface modes:
                 * IBSS
                 * managed
                 * AP
                 * AP/VLAN
                 * monitor
                 * mesh point
        Band 1:
                Frequencies:
                        * 2412 MHz [1] (20.0 dBm)
                        * 2417 MHz [2] (20.0 dBm)
                        * 2422 MHz [3] (20.0 dBm)
                        * 2427 MHz [4] (20.0 dBm)
                        * 2432 MHz [5] (20.0 dBm)
                        * 2437 MHz [6] (20.0 dBm)
                        * 2442 MHz [7] (20.0 dBm)
                        * 2447 MHz [8] (20.0 dBm)
                        * 2452 MHz [9] (20.0 dBm)
                        * 2457 MHz [10] (20.0 dBm)
                        * 2462 MHz [11] (20.0 dBm)
                        * 2467 MHz [12] (20.0 dBm)
                        * 2472 MHz [13] (20.0 dBm)
                        * 2484 MHz [14] (disabled)
        Band 2:
                Frequencies:
                        * 5040 MHz [8] (disabled)
                        * 5060 MHz [12] (disabled)
                        * 5080 MHz [16] (disabled)
                        * 5180 MHz [36] (23.0 dBm)
                        * 5200 MHz [40] (23.0 dBm)
                        * 5220 MHz [44] (23.0 dBm)
                        * 5240 MHz [48] (23.0 dBm)
                        * 5260 MHz [52] (20.0 dBm) (radar detection)
                        * 5280 MHz [56] (20.0 dBm) (radar detection)
                        * 5300 MHz [60] (20.0 dBm) (radar detection)
                        * 5320 MHz [64] (20.0 dBm) (radar detection)
                        * 5500 MHz [100] (26.0 dBm) (radar detection)
                        * 5520 MHz [104] (26.0 dBm) (radar detection)
                        * 5540 MHz [108] (26.0 dBm) (radar detection)
                        * 5560 MHz [112] (26.0 dBm) (radar detection)
                        * 5580 MHz [116] (26.0 dBm) (radar detection)
                        * 5600 MHz [120] (26.0 dBm) (radar detection)
                        * 5620 MHz [124] (26.0 dBm) (radar detection)
                        * 5640 MHz [128] (26.0 dBm) (radar detection)
                        * 5660 MHz [132] (26.0 dBm) (radar detection)
                        * 5680 MHz [136] (26.0 dBm) (radar detection)
                        * 5700 MHz [140] (26.0 dBm) (radar detection)
                        * 5745 MHz [149] (13.0 dBm)
                        * 5765 MHz [153] (13.0 dBm)
                        * 5785 MHz [157] (13.0 dBm)
                        * 5805 MHz [161] (13.0 dBm)
                        * 5825 MHz [165] (13.0 dBm)
        valid interface combinations:
                 * #{ managed } <= 2048, #{ AP, mesh point } <= 4, #{ IBSS } <= 1,
                   total <= 2048, #channels <= 1
        HT Capability overrides:
                 * MCS: ff ff ff ff ff ff ff ff ff ff
                 * maximum A-MSDU length
                 * supported channel width
                 * short GI for 40 MHz
                 * max A-MPDU length exponent
                 * min MPDU start spacing
        Supported extended features:
                * [ RRM ]: RRM
                * [ CQM_RSSI_LIST ]: multiple CQM_RSSI_THOLD records
                * [ CONTROL_PORT_OVER_NL80211 ]: control port over nl80211
root@Gargoyle:~# iwinfo phy0 scan
No such wireless device: phy0
root@Gargoyle:~# iwinfo wlan0 scan
No such wireless device: wlan0

Logread shows problems with initialization

Code: Select all

.....
Sat Jan  1 02:01:15 2000 kern.info kernel: [   43.345618] ath5k 0000:00:0d.0: registered as 'phy0'
Sat Jan  1 02:01:15 2000 kern.debug kernel: [   43.983788] ath: EEPROM regdomain: 0x0
Sat Jan  1 02:01:15 2000 kern.debug kernel: [   43.983812] ath: EEPROM indicates default country code should be used
Sat Jan  1 02:01:15 2000 kern.debug kernel: [   43.983824] ath: doing EEPROM country->regdmn map search
Sat Jan  1 02:01:15 2000 kern.debug kernel: [   43.983858] ath: country maps to regdmn code: 0x3a
Sat Jan  1 02:01:15 2000 kern.debug kernel: [   43.983877] ath: Country alpha2 being used: US
Sat Jan  1 02:01:15 2000 kern.debug kernel: [   43.983891] ath: Regpair used: 0x3a
Sat Jan  1 02:01:15 2000 kern.debug kernel: [   43.986423] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
Sat Jan  1 02:01:15 2000 kern.info kernel: [   43.992108] ath5k: phy0: Atheros AR5212 chip found (MAC: 0x56, PHY: 0x41)
Sat Jan  1 02:01:15 2000 kern.info kernel: [   44.012765] ath5k: phy0: RF5111 5GHz radio found (0x17)
Sat Jan  1 02:01:15 2000 kern.info kernel: [   44.028729] ath5k: phy0: RF2111 2GHz radio found (0x23)
Sat Jan  1 02:01:15 2000 kern.info kernel: [   44.147682] usbcore: registered new interface driver cdc_mbim
Sat Jan  1 02:01:15 2000 kern.info kernel: [   44.213886] usbcore: registered new interface driver option
.....

Sat Jan  1 02:02:10 2000 daemon.info dnsmasq[1695]: using 13 more nameservers
Sat Jan  1 02:02:11 2000 daemon.err odhcpd[2528]: Failed to send to ff02::1%lan@br-lan (Address not available)
Sat Jan  1 02:02:11 2000 user.notice firewall: Reloading firewall due to ifup of lan (br-lan)
Mon Jan 16 14:24:41 2023 kern.debug kernel: [  112.990543] ath: EEPROM regdomain: 0x812c
Mon Jan 16 14:24:41 2023 kern.debug kernel: [  112.990570] ath: EEPROM indicates we should expect a country code
Mon Jan 16 14:24:41 2023 kern.debug kernel: [  112.990588] ath: doing EEPROM country->regdmn map search
Mon Jan 16 14:24:41 2023 kern.debug kernel: [  112.990607] ath: country maps to regdmn code: 0x37
Mon Jan 16 14:24:41 2023 kern.debug kernel: [  112.990625] ath: Country alpha2 being used: GR
Mon Jan 16 14:24:41 2023 kern.debug kernel: [  112.990640] ath: Regpair used: 0x37
Mon Jan 16 14:24:41 2023 kern.debug kernel: [  112.990662] ath: regdomain 0x812c dynamically updated by user
Mon Jan 16 14:24:46 2023 daemon.notice netifd: radio1 (2583): ./mac80211.sh: eval: line 812: /usr/sbin/hostapd: not found
Mon Jan 16 14:24:46 2023 daemon.notice netifd: radio1 (2583): cat: can't open '/var/run/wifi-phy0.pid': No such file or directory
Mon Jan 16 14:24:46 2023 daemon.notice netifd: radio1 (2583): WARNING (wireless_add_process): executable path /usr/sbin/hostapd does not match process  path (/proc/exe)
Mon Jan 16 14:24:46 2023 daemon.notice netifd: radio1 (2583): Command failed: Invalid argument
Mon Jan 16 14:24:46 2023 daemon.notice netifd: radio1 (2583): Device setup failed: HOSTAPD_START_FAILED
Mon Jan 16 14:24:51 2023 daemon.info dnsmasq[1695]: exiting on receipt of SIGTERM
Mon Jan 16 14:24:51 2023 daemon.info dnsmasq[3052]: started, version 2.80 cachesize 150
Mon Jan 16 14:24:51 2023 daemon.info dnsmasq[3052]: DNS service limited to local subnets
Mon Jan 16 14:24:51 2023 daemon.info dnsmasq[3052]: compile time options: IPv6 GNU-getopt no-DBus no-i18n no-IDN DHCP no-DHCPv6 no-Lua TFTP no-conntrack no-ipset no-auth no-nettlehash no-DNSSEC no-ID loop-detect inotify dumpfile
Mon Jan 16 14:24:51 2023 daemon.info dnsmasq[3052]: using local addresses only for domain test
Mon Jan 16 14:24:51 2023 daemon.info dnsmasq[3052]: using local addresses only for domain onion
Mon Jan 16 14:24:51 2023 daemon.info dnsmasq[3052]: using local addresses only for domain localhost
Mon Jan 16 14:24:51 2023 daemon.info dnsmasq[3052]: using local addresses only for domain local


....


Are you aware of a way to use the madwifi driver with the proprietary HAL ? Maybe it is more stable that the Ath5K driver.

Thank you very much for your support!

Lantis
Moderator
Posts: 6490
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: Compiling Gargoyle for PC Engines Wrap, Alix and Ath5k

Post by Lantis »

That log looks like you don’t have wpad installed. You’ll need wpad-openssl which provides hostapd.
That will definitely help.
Can you please provide your build config? I’ve asked for it a few times now, and we may have spotted missing wpad earlier if it had been shared.

The next issue will be your card being dualband. The Gargoyle GUI won’t be expecting this, so I need to check what will happen. Will return on this.

Can you also provide the output of
cat /tmp/cached_basic_vars

The message about the wireless driver not being defined is more likely about an unexpected variable in that tmp file, unless you’ve not included mac80211 which shouldn’t be possible with ath5k included.

madwifi is dead, ath5k is it’s replacement.
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

errikos
Posts: 10
Joined: Thu Dec 08, 2022 5:31 am

Re: Compiling Gargoyle for PC Engines Wrap, Alix and Ath5k

Post by errikos »

Apologies for not posting my built config earlier on, I compile on a remote PC that was turned off at the time.
built config:
https://pastebin.com/AuwZyuYG

Code: Select all

root@Gargoyle:~# cat /tmp/cached_basic_vars
var isBcm94704 = false;
var allLanMacs = [];
var isRamips = false;
var wifiDevG=uciWirelessDevs.length > 0 ? uciWirelessDevs[0] : "";
var wifiDevA="";
var wirelessDriver="mac80211";
var mac80211Channels = [];
var mac80211ChFreqs = [];
var mac80211ChPwrs = [];
var nextCh=[];
var dualBandWireless=false;
nextCh     = [];
nextChFreq = [];
nextChPwr  = [];
wifiDevG="radio0";
var GwifiN = false;
var AwifiN = false;
var AwifiAC = false;
nextCh.push(1); nextChFreq[1] = "2412MHz"; nextChPwr[1] = 20;
nextCh.push(2); nextChFreq[2] = "2417MHz"; nextChPwr[2] = 20;
nextCh.push(3); nextChFreq[3] = "2422MHz"; nextChPwr[3] = 20;
nextCh.push(4); nextChFreq[4] = "2427MHz"; nextChPwr[4] = 20;
nextCh.push(5); nextChFreq[5] = "2432MHz"; nextChPwr[5] = 20;
nextCh.push(6); nextChFreq[6] = "2437MHz"; nextChPwr[6] = 20;
nextCh.push(7); nextChFreq[7] = "2442MHz"; nextChPwr[7] = 20;
nextCh.push(8); nextChFreq[8] = "2447MHz"; nextChPwr[8] = 20;
nextCh.push(9); nextChFreq[9] = "2452MHz"; nextChPwr[9] = 20;
nextCh.push(10); nextChFreq[10] = "2457MHz"; nextChPwr[10] = 20;
nextCh.push(11); nextChFreq[11] = "2462MHz"; nextChPwr[11] = 20;
nextCh.push(12); nextChFreq[12] = "2467MHz"; nextChPwr[12] = 20;
nextCh.push(13); nextChFreq[13] = "2472MHz"; nextChPwr[13] = 20;
nextCh.push(36); nextChFreq[36] = "5180MHz"; nextChPwr[36] = 23;
nextCh.push(40); nextChFreq[40] = "5200MHz"; nextChPwr[40] = 23;
nextCh.push(44); nextChFreq[44] = "5220MHz"; nextChPwr[44] = 23;
nextCh.push(48); nextChFreq[48] = "5240MHz"; nextChPwr[48] = 23;
nextCh.push(52); nextChFreq[52] = "5260MHz"; nextChPwr[52] = 20;
nextCh.push(56); nextChFreq[56] = "5280MHz"; nextChPwr[56] = 20;
nextCh.push(60); nextChFreq[60] = "5300MHz"; nextChPwr[60] = 20;
nextCh.push(64); nextChFreq[64] = "5320MHz"; nextChPwr[64] = 20;
nextCh.push(100); nextChFreq[100] = "5500MHz"; nextChPwr[100] = 26;
nextCh.push(104); nextChFreq[104] = "5520MHz"; nextChPwr[104] = 26;
nextCh.push(108); nextChFreq[108] = "5540MHz"; nextChPwr[108] = 26;
nextCh.push(112); nextChFreq[112] = "5560MHz"; nextChPwr[112] = 26;
nextCh.push(116); nextChFreq[116] = "5580MHz"; nextChPwr[116] = 26;
nextCh.push(120); nextChFreq[120] = "5600MHz"; nextChPwr[120] = 26;
nextCh.push(124); nextChFreq[124] = "5620MHz"; nextChPwr[124] = 26;
nextCh.push(128); nextChFreq[128] = "5640MHz"; nextChPwr[128] = 26;
nextCh.push(132); nextChFreq[132] = "5660MHz"; nextChPwr[132] = 26;
nextCh.push(136); nextChFreq[136] = "5680MHz"; nextChPwr[136] = 26;
nextCh.push(140); nextChFreq[140] = "5700MHz"; nextChPwr[140] = 26;
nextCh.push(149); nextChFreq[149] = "5745MHz"; nextChPwr[149] = 13;
nextCh.push(153); nextChFreq[153] = "5765MHz"; nextChPwr[153] = 13;
nextCh.push(157); nextChFreq[157] = "5785MHz"; nextChPwr[157] = 13;
nextCh.push(161); nextChFreq[161] = "5805MHz"; nextChPwr[161] = 13;
nextCh.push(165); nextChFreq[165] = "5825MHz"; nextChPwr[165] = 13;
mac80211Channels["G"] = nextCh ;
mac80211ChFreqs["G"]  = nextChFreq ;
mac80211ChPwrs["G"]   = nextChPwr ;
nextCh     = [];
nextChFreq = [];
nextChPwr  = [];
wifiDevA="radio1";
var AwifiN = false;
var AwifiAC = false;
var GwifiN = false;
var maxACwidth = "0" ;
var AC80P80 = false;
nextCh.push(ibss); nextChFreq[ibss] = "devMHz"; nextChPwr[ibss] = join;
nextCh.push(mesh); nextChFreq[mesh] = "devMHz"; nextChPwr[mesh] = join;
nextCh.push(auth); nextChFreq[auth] = "devMHz"; nextChPwr[auth] = <SSID>;
nextCh.push(connect); nextChFreq[connect] = "devMHz"; nextChPwr[connect] = -w;
nextCh.push(set); nextChFreq[set] = "devMHz"; nextChPwr[set] = channel;
nextCh.push(set); nextChFreq[set] = "phyMHz"; nextChPwr[set] = channel;
nextCh.push(set); nextChFreq[set] = "devMHz"; nextChPwr[set] = freq;
nextCh.push(set); nextChFreq[set] = "phyMHz"; nextChPwr[set] = freq;
mac80211Channels["A"] = nextCh ;
mac80211ChFreqs["A"]  = nextChFreq ;
mac80211ChPwrs["A"]   = nextChPwr ;
var wpad_eap = false;
var wpad_sae = false;
var wpad_owe = false;
var wpad_sb192 = false;
var distribTarget='x86/geode';
var geo_ipaddress = "83.235.186.60"; var geo_countrycode = "GR";
root@Gargoyle:~#

Also

Code: Select all

        
        root@Gargoyle:~# cat /etc/config/wireless

config wifi-device 'radio0'
        option type 'mac80211'
        option path 'pci0000:00/0000:00:11.0'
        option hwmode '11g'
        option country 'GR'
        option channel '6'
        option txpower '10'

config wifi-device 'radio1'
        option type 'mac80211'
        option hwmode '11a'
        option path 'pci0000:00/0000:00:0d.0'
        option htmode 'NONE'
        option channel '48'
        option country 'GR'
        option txpower '10'

config wifi-iface 'ap_g'
        option device 'radio0'
        option mode 'ap'
        option network 'lan'
        option disassoc_low_ack '0'
        option ssid 'Gargoyle24'
        option encryption 'psk2'
        option key '**************'

config wifi-iface 'ap_a'
        option device 'radio1'
        option mode 'ap'
        option network 'lan'
        option disassoc_low_ack '0'
        option ssid 'Gargoyle58'
        option encryption 'psk2'
        option key '**************'



Lantis
Moderator
Posts: 6490
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: Compiling Gargoyle for PC Engines Wrap, Alix and Ath5k

Post by Lantis »

Noted things from your config:
- CONFIG_PACKAGE_gargoyle-i18n should be =y
- CONFIG_PACKAGE_libiwinfo should be =y
- CONFIG_PACKAGE_wpad-openssl should be =y
- CONFIG_PACKAGE_iwinfo should be =y

Can you show the output of

Code: Select all

iw phy1 info
as well? Phy0 is fine and working. Gargoyle is stumbling over the second one it seems.

You can temporarily modify /tmp/cached_basic_vars
Cut the following lines:

Code: Select all

nextCh.push(36); nextChFreq[36] = "5180MHz"; nextChPwr[36] = 23;
nextCh.push(40); nextChFreq[40] = "5200MHz"; nextChPwr[40] = 23;
nextCh.push(44); nextChFreq[44] = "5220MHz"; nextChPwr[44] = 23;
nextCh.push(48); nextChFreq[48] = "5240MHz"; nextChPwr[48] = 23;
nextCh.push(52); nextChFreq[52] = "5260MHz"; nextChPwr[52] = 20;
nextCh.push(56); nextChFreq[56] = "5280MHz"; nextChPwr[56] = 20;
nextCh.push(60); nextChFreq[60] = "5300MHz"; nextChPwr[60] = 20;
nextCh.push(64); nextChFreq[64] = "5320MHz"; nextChPwr[64] = 20;
nextCh.push(100); nextChFreq[100] = "5500MHz"; nextChPwr[100] = 26;
nextCh.push(104); nextChFreq[104] = "5520MHz"; nextChPwr[104] = 26;
nextCh.push(108); nextChFreq[108] = "5540MHz"; nextChPwr[108] = 26;
nextCh.push(112); nextChFreq[112] = "5560MHz"; nextChPwr[112] = 26;
nextCh.push(116); nextChFreq[116] = "5580MHz"; nextChPwr[116] = 26;
nextCh.push(120); nextChFreq[120] = "5600MHz"; nextChPwr[120] = 26;
nextCh.push(124); nextChFreq[124] = "5620MHz"; nextChPwr[124] = 26;
nextCh.push(128); nextChFreq[128] = "5640MHz"; nextChPwr[128] = 26;
nextCh.push(132); nextChFreq[132] = "5660MHz"; nextChPwr[132] = 26;
nextCh.push(136); nextChFreq[136] = "5680MHz"; nextChPwr[136] = 26;
nextCh.push(140); nextChFreq[140] = "5700MHz"; nextChPwr[140] = 26;
nextCh.push(149); nextChFreq[149] = "5745MHz"; nextChPwr[149] = 13;
nextCh.push(153); nextChFreq[153] = "5765MHz"; nextChPwr[153] = 13;
nextCh.push(157); nextChFreq[157] = "5785MHz"; nextChPwr[157] = 13;
nextCh.push(161); nextChFreq[161] = "5805MHz"; nextChPwr[161] = 13;
nextCh.push(165); nextChFreq[165] = "5825MHz"; nextChPwr[165] = 13;
And paste them over the top of these lines which are in error.

Code: Select all

nextCh.push(ibss); nextChFreq[ibss] = "devMHz"; nextChPwr[ibss] = join;
nextCh.push(mesh); nextChFreq[mesh] = "devMHz"; nextChPwr[mesh] = join;
nextCh.push(auth); nextChFreq[auth] = "devMHz"; nextChPwr[auth] = <SSID>;
nextCh.push(connect); nextChFreq[connect] = "devMHz"; nextChPwr[connect] = -w;
nextCh.push(set); nextChFreq[set] = "devMHz"; nextChPwr[set] = channel;
nextCh.push(set); nextChFreq[set] = "phyMHz"; nextChPwr[set] = channel;
nextCh.push(set); nextChFreq[set] = "devMHz"; nextChPwr[set] = freq;
nextCh.push(set); nextChFreq[set] = "phyMHz"; nextChPwr[set] = freq;
This should remove the errors on the GUI, but it will not be persistent.

My recommended steps:
1. Fix your build config and rebuild the image with my recommended package inclusions
2. Try the fixes to the /tmp/cached_basic_vars file as suggested. Remember this won't be persistent, this is just to verify a few things.
3. Do post back your iw phy1 info

I'm still not sure how Gargoyle will handle devices that are dualband capable. My guess is that it won't, so you may be stuck at command line configuration only for wifi at some point.
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

errikos
Posts: 10
Joined: Thu Dec 08, 2022 5:31 am

Re: Compiling Gargoyle for PC Engines Wrap, Alix and Ath5k

Post by errikos »

It works!!
I installed one CM6 and one CM9 cards, they use the same modules.

Scan networks lists networks around

When configuring AP the 5GHz network shows on other devices.

I can provide you access if you want to run any tests on dual band capable cards // dual wifi card board.

So
New built config:
https: // pastebin.com / XG7HDhYV

Code: Select all

root@Gargoyle:~# iw phy1 info
Wiphy phy1
        max # scan SSIDs: 4
        max scan IEs length: 2285 bytes
        max # sched scan SSIDs: 0
        max # match sets: 0
        max # scan plans: 1
        max scan plan interval: -1
        max scan plan iterations: 0
        Retry short limit: 7
        Retry long limit: 4
        Coverage class: 0 (up to 0m)
        Available Antennas: TX 0x3 RX 0x3
        Configured Antennas: TX 0x3 RX 0x3
        Supported interface modes:
                 * IBSS
                 * managed
                 * AP
                 * AP/VLAN
                 * monitor
                 * mesh point
        Band 1:
                Frequencies:
                        * 2412 MHz [1] (30.0 dBm)
                        * 2417 MHz [2] (30.0 dBm)
                        * 2422 MHz [3] (30.0 dBm)
                        * 2427 MHz [4] (30.0 dBm)
                        * 2432 MHz [5] (30.0 dBm)
                        * 2437 MHz [6] (30.0 dBm)
                        * 2442 MHz [7] (30.0 dBm)
                        * 2447 MHz [8] (30.0 dBm)
                        * 2452 MHz [9] (30.0 dBm)
                        * 2457 MHz [10] (30.0 dBm)
                        * 2462 MHz [11] (30.0 dBm)
                        * 2467 MHz [12] (disabled)
                        * 2472 MHz [13] (disabled)
                        * 2484 MHz [14] (disabled)
        Band 2:
                Frequencies:
                        * 5040 MHz [8] (disabled)
                        * 5060 MHz [12] (disabled)
                        * 5080 MHz [16] (disabled)
                        * 5180 MHz [36] (23.0 dBm)
                        * 5200 MHz [40] (23.0 dBm)
                        * 5220 MHz [44] (23.0 dBm)
                        * 5240 MHz [48] (23.0 dBm)
                        * 5260 MHz [52] (23.0 dBm) (radar detection)
                        * 5280 MHz [56] (23.0 dBm) (radar detection)
                        * 5300 MHz [60] (23.0 dBm) (radar detection)
                        * 5320 MHz [64] (23.0 dBm) (radar detection)
                        * 5500 MHz [100] (23.0 dBm) (radar detection)
                        * 5520 MHz [104] (23.0 dBm) (radar detection)
                        * 5540 MHz [108] (23.0 dBm) (radar detection)
                        * 5560 MHz [112] (23.0 dBm) (radar detection)
                        * 5580 MHz [116] (23.0 dBm) (radar detection)
                        * 5600 MHz [120] (23.0 dBm) (radar detection)
                        * 5620 MHz [124] (23.0 dBm) (radar detection)
                        * 5640 MHz [128] (23.0 dBm) (radar detection)
                        * 5660 MHz [132] (23.0 dBm) (radar detection)
                        * 5680 MHz [136] (23.0 dBm) (radar detection)
                        * 5700 MHz [140] (23.0 dBm) (radar detection)
                        * 5745 MHz [149] (30.0 dBm)
                        * 5765 MHz [153] (30.0 dBm)
                        * 5785 MHz [157] (30.0 dBm)
                        * 5805 MHz [161] (30.0 dBm)
                        * 5825 MHz [165] (30.0 dBm)
        valid interface combinations:
                 * #{ managed } <= 2048, #{ AP, mesh point } <= 4, #{ IBSS } <= 1,
                   total <= 2048, #channels <= 1
        HT Capability overrides:
                 * MCS: ff ff ff ff ff ff ff ff ff ff
                 * maximum A-MSDU length
                 * supported channel width
                 * short GI for 40 MHz
                 * max A-MPDU length exponent
                 * min MPDU start spacing
        Supported extended features:
                * [ RRM ]: RRM
                * [ CQM_RSSI_LIST ]: multiple CQM_RSSI_THOLD records
                * [ CONTROL_PORT_OVER_NL80211 ]: control port over nl80211

Code: Select all


root@Gargoyle:~# iw phy0 info
Wiphy phy0
        max # scan SSIDs: 4
        max scan IEs length: 2285 bytes
        max # sched scan SSIDs: 0
        max # match sets: 0
        max # scan plans: 1
        max scan plan interval: -1
        max scan plan iterations: 0
        Retry short limit: 7
        Retry long limit: 4
        Coverage class: 0 (up to 0m)
        Available Antennas: TX 0x3 RX 0x3
        Configured Antennas: TX 0x3 RX 0x3
        Supported interface modes:
                 * IBSS
                 * managed
                 * AP
                 * AP/VLAN
                 * monitor
                 * mesh point
        Band 1:
                Frequencies:
                        * 2412 MHz [1] (30.0 dBm)
                        * 2417 MHz [2] (30.0 dBm)
                        * 2422 MHz [3] (30.0 dBm)
                        * 2427 MHz [4] (30.0 dBm)
                        * 2432 MHz [5] (30.0 dBm)
                        * 2437 MHz [6] (30.0 dBm)
                        * 2442 MHz [7] (30.0 dBm)
                        * 2447 MHz [8] (30.0 dBm)
                        * 2452 MHz [9] (30.0 dBm)
                        * 2457 MHz [10] (30.0 dBm)
                        * 2462 MHz [11] (30.0 dBm)
                        * 2467 MHz [12] (disabled)
                        * 2472 MHz [13] (disabled)
                        * 2484 MHz [14] (disabled)
        Band 2:
                Frequencies:
                        * 5040 MHz [8] (disabled)
                        * 5060 MHz [12] (disabled)
                        * 5080 MHz [16] (disabled)
                        * 5180 MHz [36] (23.0 dBm)
                        * 5200 MHz [40] (23.0 dBm)
                        * 5220 MHz [44] (23.0 dBm)
                        * 5240 MHz [48] (23.0 dBm)
                        * 5260 MHz [52] (23.0 dBm) (radar detection)
                        * 5280 MHz [56] (23.0 dBm) (radar detection)
                        * 5300 MHz [60] (23.0 dBm) (radar detection)
                        * 5320 MHz [64] (23.0 dBm) (radar detection)
                        * 5500 MHz [100] (23.0 dBm) (radar detection)
                        * 5520 MHz [104] (23.0 dBm) (radar detection)
                        * 5540 MHz [108] (23.0 dBm) (radar detection)
                        * 5560 MHz [112] (23.0 dBm) (radar detection)
                        * 5580 MHz [116] (23.0 dBm) (radar detection)
                        * 5600 MHz [120] (23.0 dBm) (radar detection)
                        * 5620 MHz [124] (23.0 dBm) (radar detection)
                        * 5640 MHz [128] (23.0 dBm) (radar detection)
                        * 5660 MHz [132] (23.0 dBm) (radar detection)
                        * 5680 MHz [136] (23.0 dBm) (radar detection)
                        * 5700 MHz [140] (23.0 dBm) (radar detection)
                        * 5745 MHz [149] (30.0 dBm)
                        * 5765 MHz [153] (30.0 dBm)
                        * 5785 MHz [157] (30.0 dBm)
                        * 5805 MHz [161] (30.0 dBm)
                        * 5825 MHz [165] (30.0 dBm)
        valid interface combinations:
                 * #{ managed } <= 2048, #{ AP, mesh point } <= 4, #{ IBSS } <= 1,
                   total <= 2048, #channels <= 1
        HT Capability overrides:
                 * MCS: ff ff ff ff ff ff ff ff ff ff
                 * maximum A-MSDU length
                 * supported channel width
                 * short GI for 40 MHz
                 * max A-MPDU length exponent
                 * min MPDU start spacing
        Supported extended features:
                * [ RRM ]: RRM
                * [ CQM_RSSI_LIST ]: multiple CQM_RSSI_THOLD records
                * [ CONTROL_PORT_OVER_NL80211 ]: control port over nl80211
root@Gargoyle:~#

Code: Select all


root@Gargoyle:~# cat /tmp/cached_basic_vars
var isBcm94704 = false;
var allLanMacs = [];
allLanMacs.push("00:0b:6b:4d:c3:b0");
allLanMacs.push("00:0b:6b:4d:c3:b0");
allLanMacs.push("00:0b:6b:85:1f:37");
allLanMacs.push("00:0b:6b:85:1f:37");
var isRamips = false;
var wifiDevG=uciWirelessDevs.length > 0 ? uciWirelessDevs[0] : "";
var wifiDevA="";
var wirelessDriver="mac80211";
var mac80211Channels = [];
var mac80211ChFreqs = [];
var mac80211ChPwrs = [];
var nextCh=[];
var dualBandWireless=true;
nextCh     = [];
nextChFreq = [];
nextChPwr  = [];
wifiDevG="radio0";
var GwifiN = false;
nextCh.push(1); nextChFreq[1] = "2412MHz"; nextChPwr[1] = 30;
nextCh.push(2); nextChFreq[2] = "2417MHz"; nextChPwr[2] = 30;
nextCh.push(3); nextChFreq[3] = "2422MHz"; nextChPwr[3] = 30;
nextCh.push(4); nextChFreq[4] = "2427MHz"; nextChPwr[4] = 30;
nextCh.push(5); nextChFreq[5] = "2432MHz"; nextChPwr[5] = 30;
nextCh.push(6); nextChFreq[6] = "2437MHz"; nextChPwr[6] = 30;
nextCh.push(7); nextChFreq[7] = "2442MHz"; nextChPwr[7] = 30;
nextCh.push(8); nextChFreq[8] = "2447MHz"; nextChPwr[8] = 30;
nextCh.push(9); nextChFreq[9] = "2452MHz"; nextChPwr[9] = 30;
nextCh.push(10); nextChFreq[10] = "2457MHz"; nextChPwr[10] = 30;
nextCh.push(11); nextChFreq[11] = "2462MHz"; nextChPwr[11] = 30;
nextCh.push(36); nextChFreq[36] = "5180MHz"; nextChPwr[36] = 23;
nextCh.push(40); nextChFreq[40] = "5200MHz"; nextChPwr[40] = 23;
nextCh.push(44); nextChFreq[44] = "5220MHz"; nextChPwr[44] = 23;
nextCh.push(48); nextChFreq[48] = "5240MHz"; nextChPwr[48] = 23;
nextCh.push(52); nextChFreq[52] = "5260MHz"; nextChPwr[52] = 23;
nextCh.push(56); nextChFreq[56] = "5280MHz"; nextChPwr[56] = 23;
nextCh.push(60); nextChFreq[60] = "5300MHz"; nextChPwr[60] = 23;
nextCh.push(64); nextChFreq[64] = "5320MHz"; nextChPwr[64] = 23;
nextCh.push(100); nextChFreq[100] = "5500MHz"; nextChPwr[100] = 23;
nextCh.push(104); nextChFreq[104] = "5520MHz"; nextChPwr[104] = 23;
nextCh.push(108); nextChFreq[108] = "5540MHz"; nextChPwr[108] = 23;
nextCh.push(112); nextChFreq[112] = "5560MHz"; nextChPwr[112] = 23;
nextCh.push(116); nextChFreq[116] = "5580MHz"; nextChPwr[116] = 23;
nextCh.push(120); nextChFreq[120] = "5600MHz"; nextChPwr[120] = 23;
nextCh.push(124); nextChFreq[124] = "5620MHz"; nextChPwr[124] = 23;
nextCh.push(128); nextChFreq[128] = "5640MHz"; nextChPwr[128] = 23;
nextCh.push(132); nextChFreq[132] = "5660MHz"; nextChPwr[132] = 23;
nextCh.push(136); nextChFreq[136] = "5680MHz"; nextChPwr[136] = 23;
nextCh.push(140); nextChFreq[140] = "5700MHz"; nextChPwr[140] = 23;
nextCh.push(149); nextChFreq[149] = "5745MHz"; nextChPwr[149] = 30;
nextCh.push(153); nextChFreq[153] = "5765MHz"; nextChPwr[153] = 30;
nextCh.push(157); nextChFreq[157] = "5785MHz"; nextChPwr[157] = 30;
nextCh.push(161); nextChFreq[161] = "5805MHz"; nextChPwr[161] = 30;
nextCh.push(165); nextChFreq[165] = "5825MHz"; nextChPwr[165] = 30;
mac80211Channels["G"] = nextCh ;
mac80211ChFreqs["G"]  = nextChFreq ;
mac80211ChPwrs["G"]   = nextChPwr ;
nextCh     = [];
nextChFreq = [];
nextChPwr  = [];
wifiDevA="radio1";
var AwifiN = false;
var AwifiAC = false;
var maxACwidth = "0" ;
var AC80P80 = false;
nextCh.push(1); nextChFreq[1] = "2412MHz"; nextChPwr[1] = 30;
nextCh.push(2); nextChFreq[2] = "2417MHz"; nextChPwr[2] = 30;
nextCh.push(3); nextChFreq[3] = "2422MHz"; nextChPwr[3] = 30;
nextCh.push(4); nextChFreq[4] = "2427MHz"; nextChPwr[4] = 30;
nextCh.push(5); nextChFreq[5] = "2432MHz"; nextChPwr[5] = 30;
nextCh.push(6); nextChFreq[6] = "2437MHz"; nextChPwr[6] = 30;
nextCh.push(7); nextChFreq[7] = "2442MHz"; nextChPwr[7] = 30;
nextCh.push(8); nextChFreq[8] = "2447MHz"; nextChPwr[8] = 30;
nextCh.push(9); nextChFreq[9] = "2452MHz"; nextChPwr[9] = 30;
nextCh.push(10); nextChFreq[10] = "2457MHz"; nextChPwr[10] = 30;
nextCh.push(11); nextChFreq[11] = "2462MHz"; nextChPwr[11] = 30;
nextCh.push(36); nextChFreq[36] = "5180MHz"; nextChPwr[36] = 23;
nextCh.push(40); nextChFreq[40] = "5200MHz"; nextChPwr[40] = 23;
nextCh.push(44); nextChFreq[44] = "5220MHz"; nextChPwr[44] = 23;
nextCh.push(48); nextChFreq[48] = "5240MHz"; nextChPwr[48] = 23;
nextCh.push(52); nextChFreq[52] = "5260MHz"; nextChPwr[52] = 23;
nextCh.push(56); nextChFreq[56] = "5280MHz"; nextChPwr[56] = 23;
nextCh.push(60); nextChFreq[60] = "5300MHz"; nextChPwr[60] = 23;
nextCh.push(64); nextChFreq[64] = "5320MHz"; nextChPwr[64] = 23;
nextCh.push(100); nextChFreq[100] = "5500MHz"; nextChPwr[100] = 23;
nextCh.push(104); nextChFreq[104] = "5520MHz"; nextChPwr[104] = 23;
nextCh.push(108); nextChFreq[108] = "5540MHz"; nextChPwr[108] = 23;
nextCh.push(112); nextChFreq[112] = "5560MHz"; nextChPwr[112] = 23;
nextCh.push(116); nextChFreq[116] = "5580MHz"; nextChPwr[116] = 23;
nextCh.push(120); nextChFreq[120] = "5600MHz"; nextChPwr[120] = 23;
nextCh.push(124); nextChFreq[124] = "5620MHz"; nextChPwr[124] = 23;
nextCh.push(128); nextChFreq[128] = "5640MHz"; nextChPwr[128] = 23;
nextCh.push(132); nextChFreq[132] = "5660MHz"; nextChPwr[132] = 23;
nextCh.push(136); nextChFreq[136] = "5680MHz"; nextChPwr[136] = 23;
nextCh.push(140); nextChFreq[140] = "5700MHz"; nextChPwr[140] = 23;
nextCh.push(149); nextChFreq[149] = "5745MHz"; nextChPwr[149] = 30;
nextCh.push(153); nextChFreq[153] = "5765MHz"; nextChPwr[153] = 30;
nextCh.push(157); nextChFreq[157] = "5785MHz"; nextChPwr[157] = 30;
nextCh.push(161); nextChFreq[161] = "5805MHz"; nextChPwr[161] = 30;
nextCh.push(165); nextChFreq[165] = "5825MHz"; nextChPwr[165] = 30;
mac80211Channels["A"] = nextCh ;
mac80211ChFreqs["A"]  = nextChFreq ;
mac80211ChPwrs["A"]   = nextChPwr ;
var wpad_eap = true;
var wpad_sae = true;
var wpad_owe = true;
var wpad_sb192 = true;
var distribTarget='x86/geode';
var geo_ipaddress = "83.235.186.60"; var geo_countrycode = "GR";
Edit! I did a new built and no undefined problem!

Code: Select all

One (unrelated) issue is that there is the string unrelated everywhere. 
EXAMPLES: 
 (loading screens)
Memory Usage:22.1undefined / 56.6undefined (39.1%)

Time
Uptime:0 undefined, 1 undefined, 5 undefined
Current Date & Time:

Wireless
Wireless Mode: undefined (AP)
Again thank you for your invaluable assistance!

Lantis
Moderator
Posts: 6490
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: Compiling Gargoyle for PC Engines Wrap, Alix and Ath5k

Post by Lantis »

You’re welcome, nice job sticking with it. :)
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

Lantis
Moderator
Posts: 6490
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: Compiling Gargoyle for PC Engines Wrap, Alix and Ath5k

Post by Lantis »

Had time to look, Gargoyle doesn't filter out the extra channels for each band, but it also doesn't error out if you select the channels in an expected manner.

i.e. In the 2.4GHz channel dropdown, as long as you only select 1-14 and in the 5GHz channel dropdown only select 36+, it will behave.
Selecting anything else is undefined behaviour at this point and I don't think it's a problem worth solving for now.
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

Post Reply