Gargoyle Firmware for my old Wireless Outdoor CPE

Report problems and success stories with Gargoyle on various hardware platforms.

Moderator: Moderators

mohit0121
Posts: 5
Joined: Mon Jan 04, 2021 3:32 am

Gargoyle Firmware for my old Wireless Outdoor CPE

Post by mohit0121 »

Hello,
I am just trying to make use of my old router as a repeater but it has a custom firmware which doesn't let me configure they way i want it to. thought to leverage gargoyle for this project. PS: I do have root access to it

Would you be guys kind enough in helping me with the appropriate firmware i can use it with, that would be very helpful.

Router Details >

Router Hardware :------------------------------------------------------------------------------------------
system type : Atheros AR9330 (Hornet)
processor : 0
cpu model : MIPS 24Kc V7.4
BogoMIPS : 266.24
wait instruction : yes
microsecond timers : yes
tlb_entries : 16
extra interrupt vector : yes
hardware watchpoint : yes, count: 4, address/irw mask: [0x0000, 0x0ff8, 0x0ff8, 0x0ffb]
ASEs implemented : mips16
shadow register sets : 1
core : 0
VCED exceptions : not available
VCEI exceptions : not available

Kernel Info :-------------------------------------------------------------------------------------------------

free_area_init_node: node 0, pgdat 80215b30, node_mem_map 81000000
Normal zone: 64 pages used for memmap
Normal zone: 0 pages reserved
Normal zone: 8128 pages, LIFO batch:0
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 8128
Kernel command line: console=ttyS0,115200 root=31:02 rootfstype=squashfs init=/sbin/init mtdparts=ar7240-nor0:128k(u-boot),64k(u-boot-env),2944k(rootfs),896k(uImage),64k(NVRAM),64k(config),2944k(brootfs),896k(buImage),64k(chksm),64k(bchk
sm),64k(ART) mem=32M
PID hash table entries: 128 (order: 7, 512 bytes)
Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
Writing ErrCtl register=00000000
Readback ErrCtl register=00000000
Memory: 30156k/32768k available (1701k kernel code, 2612k reserved, 432k data, 112k init, 0k highmem)
NR_IRQS:128
plat_time_init: plat time init done
Calibrating delay loop... 266.24 BogoMIPS (lpj=532480)
Mount-cache hash table entries: 512
NET: Registered protocol family 16
===== ar7240_platform_init: 0
bio: create slab at 0
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 1024 (order: 1, 8192 bytes)
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
TCP: Hash tables configured (established 1024 bind 1024)
TCP reno registered
NET: Registered protocol family 1
AR7240 GPIOC major 0
squashfs: version 4.0 (2009/01/31) Phillip Lougher
msgmni has been set to 58
io scheduler noop registered (default)
Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
ttyS0: detected caps 00000000 should be 00000100
serial8250.0: ttyS0 at MMIO 0xb8020000 (irq = 19) is a 16550A
console [ttyS0] enabled
brd: module loaded
11 cmdlinepart partitions found on MTD device ar7240-nor0
Creating 11 MTD partitions on "ar7240-nor0":
0x000000000000-0x000000020000 : "u-boot"
0x000000020000-0x000000030000 : "u-boot-env"
0x000000030000-0x000000310000 : "rootfs"
0x000000310000-0x0000003f0000 : "uImage"
0x0000003f0000-0x000000400000 : "NVRAM"
0x000000400000-0x000000410000 : "config"
0x000000410000-0x0000006f0000 : "brootfs"
0x0000006f0000-0x0000007d0000 : "buImage"
0x0000007d0000-0x0000007e0000 : "chksm"
0x0000007e0000-0x0000007f0000 : "bchksm"
0x0000007f0000-0x000000800000 : "ART"
usbmon: debugfs is not available
nf_conntrack version 0.5.0 (512 buckets, 2048 max)
TCP cubic registered
NET: Registered protocol family 17
Bridge firewalling registered
802.1Q VLAN Support v1.8 Ben Greear
All bugs added by David S.
arch/mips/ar7240/gpio.c (ar7240_simple_config_init) AP_RESET_GPIO: 12
arch/mips/ar7240/gpio.c (ar7240_simple_config_init) JUMPSTART_GPIO: 11
ar7240wdt_init: Registering WDT success
TELENET-1:calling prepare_namespace saved_root_name=31:02
TELENET-1:calling name_to_dev_t=31:02
TELENET-1:calling mount_root=31:02
TELENET-2:calling mount_block_root=root
VFS: Mounted root (squashfs filesystem) readonly on device 31:2.
Freeing unused kernel memory: 112k freed
ATHR_GMAC: Length per segment 1536
ATHR_GMAC: fifo cfg 3 01f00140
ATHR_GMAC: Mac address for unit 0:bf3f0000
ATHR_GMAC: fa:f3:00:21:43:4f
ATHR_GMAC: Max segments per packet : 1
ATHR_GMAC: Max tx descriptor count : 40
ATHR_GMAC: Max rx descriptor count : 252
ATHR_GMAC: Mac capability flags : 4403
ATHR_GMAC: Mac address for unit 1:bf3f0006
ATHR_GMAC: 4e:46:49:47:5f:56
ATHR_GMAC: Max segments per packet : 1
ATHR_GMAC: Max tx descriptor count : 40
ATHR_GMAC: Max rx descriptor count : 96
ATHR_GMAC: Mac capability flags : 4D83
athr_gmac_ring_alloc Allocated 640 at 0x81cbf800
athr_gmac_ring_alloc Allocated 1536 at 0x81c52000
Setting Drop CRC Errors, Pause Frames and Length Error frames
ATHRS26: resetting s26
ATHRS26: s26 reset done
ATHRS26: Telenet : in kernel or fs Read s26---------------------------------- Telenet
ATHRS26: ADDR Telenet :108
ATHRS26: DATA_B Telenet :3e0001
ATHRS26: ADDR Telenet :208
ATHRS26: DATA_B Telenet :3d0001
ATHRS26: ADDR Telenet :308
ATHRS26: DATA_B Telenet :3b0001
ATHRS26: ADDR Telenet :408
ATHRS26: DATA_B Telenet :370001
ATHRS26: ADDR Telenet :508
ATHRS26: DATA_B Telenet :2f0001
ATHRS26: ADDR Telenet :608
ATHRS26: DATA_B Telenet :1f0001
ATHRS26Port 1: DATA_A Telenet :210001
ATHRS26Port 2: DATA_A Telenet :210001
ATHRS26Port 3: DATA_A Telenet :210001
ATHRS26Port 4: DATA_A Telenet :210001
Setting PHY...
ATHRS26 **athrs26_phy_setup ATHR_PHY_CONTROL 0 :1000
ATHRS26 **athrs26_phy_setup ATHR_PHY_CONTROL 1 :1000
ATHRS26 **athrs26_phy_setup ATHR_PHY_CONTROL 2 :1000
ATHRS26 **athrs26_phy_setup ATHR_PHY_CONTROL 3 :1000
ATHRS26 **athrs26_phy_setup ATHR_PHY_CONTROL 4 :3100
ATHR_GMAC: Enet Unit:1 PHY:3 is UP GMii 100Mbps full duplex
ATHR_GMAC: done cfg2 0x7215 ifctl 0x0 miictrl
Setting Drop CRC Errors, Pause Frames and Length Error frames
athr_gmac_ring_alloc Allocated 640 at 0x81d20c00
athr_gmac_ring_alloc Allocated 4032 at 0x81d22000
Setting Drop CRC Errors, Pause Frames and Length Error frames
Setting PHY...
ATHRS26 **athrs26_phy_setup ATHR_PHY_CONTROL 0 :1000
ATHRS26 **athrs26_phy_setup ATHR_PHY_CONTROL 1 :1000
ATHRS26 **athrs26_phy_setup ATHR_PHY_CONTROL 2 :1000
ATHRS26 athrs26_phy_setup ATHR_PHY_CONTROL 3 :1000
ATHRS26 athrs26_phy_setup ATHR_PHY_CONTROL 4 :1000
device eth0 entered promiscuous mode
device eth1 entered promiscuous mode
br0: port 2(eth1) entering forwarding state
**** drop_caches_sysctl_handler: all done timer added ...
ATHR_GMAC:unit 1: phy 3 not up carrier 1
br0: port 2(eth1) entering disabled state
ATHR_GMAC: Enet Unit:1 PHY:3 is UP GMii 100Mbps full duplex
ATHR_GMAC: done cfg2 0x7215 ifctl 0x0 miictrl
Setting Drop CRC Errors, Pause Frames and Length Error frames
br0: port 2(eth1) entering forwarding state
asf: module license 'Proprietary' taints kernel.
Disabling lock debugging due to kernel taint
ath_hal: 0.9.17.1 (AR9380, DEBUG, REGOPS_FUNC, WRITE_EEPROM, 11D)
ath_rate_atheros: Copyright (c) 2001-2005 Atheros Communications, Inc, All Rights Reserved
ath_dev: Copyright (c) 2001-2007 Atheros Communications, Inc, All Rights Reserved
ath_ahb: 9.2.0_U10.1020 (Atheros/multi-bss)
__ath_attach: Set global_scn[0]
ACBKMinfree = 48
ACBEMinfree = 32
ACVIMinfree = 16
ACVOMinfree = 0
CABMinfree = 48
UAPSDMinfree = 0
Bootstrap clock 25MHz
ar9300RadioAttach: Need analog access recipe!!
Restoring Cal data from Flash
ath_get_caps[5199] rx chainmask mismatch actual 1 sc_chainmak 0
ath_get_caps[5174] tx chainmask mismatch actual 1 sc_chainmak 0
SC Callback Registration for wifi0
wifi0: Atheros 9380: mem=0xb8100000, irq=2
wlan_vap_create : enter. devhandle=0x81e7c2c0, opmode=IEEE80211_M_HOSTAP, flags=0x1
wlan_vap_create : exit. devhandle=0x81e7c2c0, opmode=IEEE80211_M_HOSTAP, flags=0x1.
VAP device ath0 created
br0: port 2(eth1) entering disabled state
br0: port 2(eth1) entering forwarding state

DES SSID SET=An0kit-ss3ccA-Eth3r_CP3
ieee80211_ioctl_siwmode: imr.ifm_active=131712, new mode=3, valid=1
VAP device ath1 created
br0: port 2(eth1) entering disabled state
br0: port 2(eth1) entering forwarding state

DES SSID SET=Atheros_XSpan_2G_AP2
ieee80211_ioctl_siwmode: imr.ifm_active=131200, new mode=2, valid=1
device ath0 entered promiscuous mode
br0: port 3(ath0) entering forwarding state
device ath1 entered promiscuous mode
br0: port 4(ath1) entering forwarding state
/ #
---------------------------------------------------------------------
Meminfo :

MemTotal: 30268 kB
MemFree: 20464 kB
Buffers: 60 kB
Cached: 864 kB
SwapCached: 0 kB
Active: 976 kB
Inactive: 328 kB
Active(anon): 428 kB
Inactive(anon): 0 kB
Active(file): 548 kB
Inactive(file): 328 kB
Unevictable: 0 kB
Mlocked: 0 kB
SwapTotal: 0 kB
SwapFree: 0 kB
Dirty: 0 kB
Writeback: 0 kB
AnonPages: 452 kB
Mapped: 676 kB
Slab: 6708 kB
SReclaimable: 108 kB
SUnreclaim: 6600 kB
PageTables: 88 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
WritebackTmp: 0 kB
CommitLimit: 15132 kB
Committed_AS: 2224 kB
VmallocTotal: 1048404 kB
VmallocUsed: 1448 kB
VmallocChunk: 1041832 kB

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

Re: Gargoyle Firmware for my old Wireless Outdoor CPE

Post by Lantis »

You're better off starting with a very generic OpenWrt install. If you can figure out what works there, it will be easier to figure out which Gargoyle will work.

My guess would be ar71xx, maybe starting with
https://downloads.openwrt.org/releases/ ... e-lzma.bin
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.

mohit0121
Posts: 5
Joined: Mon Jan 04, 2021 3:32 am

Re: Gargoyle Firmware for my old Wireless Outdoor CPE

Post by mohit0121 »

Hello Lantis,

Appreciate the quick response. I do have some questions though,

1.the firmware mentioned by you, is it a suitable match?
2.what are the odds of bricking the router? as I dont have the stock firmware.
3.would it be possible for you to share the install instructions link for the firmware you mentioned?

RomanHK
Posts: 794
Joined: Sat May 04, 2013 4:18 pm
Location: Czech Republik

Re: Gargoyle Firmware for my old Wireless Outdoor CPE

Post by RomanHK »

It would be better to write information from the manufacturer's label here, it is usually glued from the bottom of the router. E.g. TP-Link CPE210 v1.1
Turris Omnia with OpenWrt 21.02 - Tested
Linksys WRT3200ACM with Gargoyle 1.13.x
TL-WR1043ND v2 with Gargoyle 1.10.0

http://gargoyle.romanhk.cz custom builds by gargoyle users

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

Re: Gargoyle Firmware for my old Wireless Outdoor CPE

Post by Lantis »

1. No idea, it's your mystery device
2. Absolutely! You shouldn't try and flash anything without a backup plan for recovery, particularly if you have no idea if the device is even compatible.
3. If you're asking for install instructions, you're not ready to install a random firmware and hope it works.

Please start with the OpenWrt wiki.
I'm not trying to be rude, but you need to understand that you've asked a very vague question on an unknown device and not showing a high level of understanding. You're a high risk for binning the device.
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.

RomanHK
Posts: 794
Joined: Sat May 04, 2013 4:18 pm
Location: Czech Republik

Re: Gargoyle Firmware for my old Wireless Outdoor CPE

Post by RomanHK »

You have already started a thread on this forum: https://forum.openwrt.org/t/software-fo ... -cpe/83962, there is no support here.
Turris Omnia with OpenWrt 21.02 - Tested
Linksys WRT3200ACM with Gargoyle 1.13.x
TL-WR1043ND v2 with Gargoyle 1.10.0

http://gargoyle.romanhk.cz custom builds by gargoyle users

mohit0121
Posts: 5
Joined: Mon Jan 04, 2021 3:32 am

Re: Gargoyle Firmware for my old Wireless Outdoor CPE

Post by mohit0121 »

Hello Lantis / RomanHK

I certainly respect your comments there. I apologies if its a vague question. I thought by giving the information what's in the router would've helped the folks better to ascertain a suitable match.
Here is the Product
Model : OUTDOOR CPE (MODEL: TWI 1040–PE)
Company : Telenet Systems pvt ltd
https://www.telenetsystems.com/wifi/wif ... or-cpe.htm

@RomanHK - I haven't gotten any response so far from the Openwert forum which is why i started here to see if anybody out here can help.

Hope that helps.

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

Re: Gargoyle Firmware for my old Wireless Outdoor CPE

Post by Lantis »

There is no suitable match.
The closest match is maybe a WR740N.
A generic match would be the generic image i linked before.

Neither of them is guaranteed to work, in fact it is probably 95% likely to fail and result in requiring a serial cable to recover it.

Serial access and attempting to load an initramfs image is significantly safer, but you're still not likely to find an exact match.
I think this one is a dead end without significant time and effort
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.

mohit0121
Posts: 5
Joined: Mon Jan 04, 2021 3:32 am

Re: Gargoyle Firmware for my old Wireless Outdoor CPE

Post by mohit0121 »

thank you for your efforts there, Lantis. Much appreciated.

Just wondering, would it be possible for you to run it by the gargoyle developer team, if they can provide some suggestions?

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

Re: Gargoyle Firmware for my old Wireless Outdoor CPE

Post by Lantis »

That's pretty much me these days, and you already have my thoughts.
https://github.com/ericpaulbishop/gargo ... ntributors
Happy for anyone else to comment, of course.
Obsy may have an idea.
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