2018-02-21 20:40:50 +01:00
|
|
|
#
|
|
|
|
# Copyright (c) 2015 The Linux Foundation. All rights reserved.
|
|
|
|
# Copyright (c) 2011-2015 OpenWrt.org
|
|
|
|
#
|
|
|
|
|
|
|
|
. /lib/functions/uci-defaults.sh
|
|
|
|
. /lib/functions/system.sh
|
|
|
|
|
2019-01-31 22:23:53 +01:00
|
|
|
ipq40xx_setup_interfaces()
|
|
|
|
{
|
|
|
|
local board="$1"
|
2018-02-21 20:40:50 +01:00
|
|
|
|
2019-01-31 22:23:53 +01:00
|
|
|
case "$board" in
|
2020-03-08 17:21:27 +01:00
|
|
|
8dev,habanero-dvk|\
|
2021-12-14 01:00:00 +01:00
|
|
|
avm,fritzbox-4040|\
|
2022-10-03 09:41:31 +08:00
|
|
|
asus,rt-ac42u|\
|
2021-12-14 01:00:00 +01:00
|
|
|
asus,rt-ac58u|\
|
|
|
|
linksys,ea6350v3|\
|
|
|
|
linksys,ea8300|\
|
|
|
|
linksys,mr8300|\
|
|
|
|
mikrotik,hap-ac2|\
|
|
|
|
mikrotik,hap-ac3|\
|
2022-10-03 19:13:22 +02:00
|
|
|
mikrotik,hap-ac3-lte6-kit|\
|
2021-12-14 01:00:00 +01:00
|
|
|
p2w,r619ac-64m|\
|
|
|
|
p2w,r619ac-128m|\
|
2022-10-03 14:59:15 +02:00
|
|
|
pakedge,wr-1|\
|
2021-12-14 01:00:00 +01:00
|
|
|
zyxel,nbg6617)
|
|
|
|
ucidef_set_interfaces_lan_wan "lan1 lan2 lan3 lan4" "wan"
|
|
|
|
;;
|
2019-01-29 18:12:51 +01:00
|
|
|
8dev,jalapeno|\
|
2019-02-27 15:48:23 -07:00
|
|
|
alfa-network,ap120c-ac|\
|
2021-12-14 01:00:00 +01:00
|
|
|
asus,map-ac2200|\
|
|
|
|
cilab,meshpoint-one|\
|
|
|
|
edgecore,ecw5211|\
|
2022-07-16 10:33:24 +02:00
|
|
|
glinet,gl-ap1300|\
|
2021-12-14 01:00:00 +01:00
|
|
|
glinet,gl-b2200|\
|
2022-10-22 13:00:38 -07:00
|
|
|
google,wifi|\
|
2022-12-23 12:30:36 -05:00
|
|
|
linksys,whw03v2|\
|
2022-10-03 14:58:53 +02:00
|
|
|
luma,wrtq-329acn|\
|
2021-12-14 01:00:00 +01:00
|
|
|
mikrotik,cap-ac|\
|
2022-10-06 18:25:12 +02:00
|
|
|
netgear,wac510|\
|
2022-10-05 23:35:21 +09:00
|
|
|
sony,ncp-hg100-cellular|\
|
2020-06-30 18:07:50 +02:00
|
|
|
wallys,dr40x9|\
|
ipq40xx: Add support ZTE MF18A
Light and small router ( In Poland operators sells together with MC7010 outdoor modem to provide WIFI inside home).
Device specification
SoC Type: Qualcomm IPQ4019
RAM: 256 MiB
Flash: 128 MiB SPI NAND (Winbond W25N01GV)
ROM: 2MiB SPI Flash (GD25Q16)
Wireless 2.4 GHz (IP4019): b/g/n, 2x2
Wireless 5 GHz (QCA9982): a/n/ac, 3x3
Ethernet: 2xGbE (WAN/LAN1, LAN2)
USB ports: No
Button: 2 (Reset/WPS)
LEDs: 3 external leds: Power (blue) , WiFI (blue and red), SMARTHOME (blue and red) and 1 internal (blue) -- NOTE: Power controls all external led (if down ,all others also not lights even signal is up)
Power: 5VDC, 2,1A via USB-C socket
Bootloader: U-Boot
On board ZWave and Zigbee (EFR32 MG1P232GG..) modules ( not supported by orginal software )
Installation
1.Open MF18A case by ungluing rubber pad under the router and unscrew screws, and connect to serial console port,
with the following pinout, starting from pin 1, which is the topmost pin when the board is upright (reset button on the bottom) :
VCC (3.3V). Do not use unless you need to source power for the converer from it.
TX
RX
GND
Default port configuration in U-boot as well as in stock firmware is 115200-8-N-1.
2.Place OpenWrt initramfs image for the device on a TFTP in the server's root. This example uses Server IP: 192.168.0.2
3.Connect TFTP server to RJ-45 port (WAN/LAN1).
4.Power on MF18A , stop in u-Boot (using ESC button) and run u-Boot commands:
setenv serverip 192.168.0.2
setenv ipaddr 192.168.0.1
set fdt_high 0x85000000
tftpboot 0x84000000 openwrt-ipq40xx-generic-zte_mf18a-initramfs-fit-zImage.itb
bootm 0x84000000
5.Please make backup of original partitions, if you think about revert to stock, specially mtd8 (Web UI) and mtd9 (rootFS). Use /tmp as temporary storage and do:
WEB PARITION
cat /dev/mtd8 > /tmp/mtd8.bin
scp /tmp/mtd8.bin root@YOURSERVERIP:/
rm /tmp/mtd8.bin
ROOT PARITION
cat /dev/mtd9 > /tmp/mtd9.bin
scp /tmp/mtd9.bin root@YOURSERVERIP:/
rm /tmp/mtd9.bin
If you are sure ,that you want to flash openwrt, from uBoot, before bootm, clean rootfs partition with command:
nand erase 0x1800000 0x1D00000
6.Login via ssh or serial and remove stock partitions (default IP 192.168.1.1):
ubiattach -m 9 # it could return error if ubi was attached before or rootfs part was erased before
ubirmvol /dev/ubi0 -N ubi_rootfs # it could return error if rootfs part was erased before
ubirmvol /dev/ubi0 -N ubi_rootfs_data # some devices doesn't have it
7. Install image via :
sysupgrade -n /tmp/openwrt-ipq40xx-generic-zte_mf18a-squashfs-sysupgrade.bin
previously wgeting bin. Sometimes it could print ubi attach error, but please ignore it if process goes forward.
Back to Stock (!!! need original dump taken from initramfs !!!) -------------
Place mtd8.bin and mtd9.bin initramfs image for the device on a TFTP in the server's root. This example uses Server IP: 192.168.0.2
Connect serial console (115200,8n1) to serial console connector .
Connect TFTP server to RJ-45 port (WAN/LAN1).
rename mtd8.bin to web.img and mtd9.bin to root_uImage_s
Stop in u-Boot (using ESC button) and run u-Boot commands:
This will erase Web and RootFS:
nand erase 0x1000000 0x800000
nand erase 0x1800000 0x1D00000
This will restore RootFS:
tftpboot 0x84000000 root_uImage_s
nand erase 0x1800000 0x1D00000
nand write 0x84000000 0x1800000 0x1D00000
This will restore Web Interface:
tftpboot 0x84000000 web.img
nand erase 0x1000000 0x800000
nand write 0x84000000 0x1000000 0x800000
After first boot on stock firwmare, do a factory reset. Push reset button for 5 seconds so all parameters will be reverted to the one printed on label on bottom of the router
As reference was taken MF289F support by Giammarco Marzano stich86@gmail.com and MF286D by Pawel Dembicki paweldembicki@gmail.com
Signed-off-by: Marcin Gajda <mgajda@o2.pl>
2022-12-28 19:01:40 +01:00
|
|
|
zte,mf18a|\
|
2022-10-06 18:25:12 +02:00
|
|
|
zte,mf289f)
|
2021-12-14 01:00:00 +01:00
|
|
|
ucidef_set_interfaces_lan_wan "lan" "wan"
|
|
|
|
;;
|
|
|
|
aruba,ap-303|\
|
2023-04-12 22:06:18 +02:00
|
|
|
aruba,ap-365|\
|
2021-12-14 01:00:00 +01:00
|
|
|
avm,fritzrepeater-1200|\
|
2022-11-09 06:52:18 +01:00
|
|
|
dlink,dap-2610|\
|
2023-01-17 15:02:02 +08:00
|
|
|
extreme-networks,ws-ap3915i|\
|
2021-12-14 01:00:00 +01:00
|
|
|
meraki,mr33|\
|
|
|
|
meraki,mr74|\
|
|
|
|
mikrotik,lhgg-60ad|\
|
2023-03-06 21:27:49 +01:00
|
|
|
mikrotik,sxtsq-5-ac|\
|
|
|
|
netgear,ex6100v2|\
|
|
|
|
netgear,ex6150v2)
|
2021-12-14 01:00:00 +01:00
|
|
|
ucidef_set_interface_lan "lan"
|
|
|
|
;;
|
|
|
|
avm,fritzbox-7530)
|
|
|
|
ucidef_set_interface_lan "lan1 lan2 lan3 lan4"
|
|
|
|
;;
|
2023-04-24 22:00:18 +02:00
|
|
|
avm,fritzrepeater-3000|\
|
2021-12-14 01:00:00 +01:00
|
|
|
cellc,rtl30vw)
|
|
|
|
ucidef_set_interface_lan "lan1 lan2"
|
|
|
|
;;
|
2021-11-11 12:24:24 -05:00
|
|
|
compex,wpj428)
|
|
|
|
ucidef_set_interface_lan "lan1 lan2"
|
|
|
|
;;
|
2022-12-05 19:38:45 -08:00
|
|
|
linksys,whw01)
|
|
|
|
ucidef_set_interface_lan "eth1 eth2"
|
|
|
|
;;
|
2022-09-19 05:47:40 -04:00
|
|
|
glinet,gl-a1300|\
|
2022-10-14 15:58:46 +08:00
|
|
|
glinet,gl-b1300|\
|
|
|
|
mobipromo,cm520-79f)
|
2021-12-14 01:00:00 +01:00
|
|
|
ucidef_set_interfaces_lan_wan "lan1 lan2" "wan"
|
|
|
|
;;
|
2022-11-12 12:13:46 +00:00
|
|
|
mikrotik,wap-ac|\
|
|
|
|
mikrotik,wap-ac-lte|\
|
|
|
|
mikrotik,wap-r-ac)
|
2021-11-11 12:24:24 -05:00
|
|
|
ucidef_set_interface_lan "sw-eth1 sw-eth2"
|
2020-03-09 21:16:43 +01:00
|
|
|
;;
|
2022-12-21 10:34:03 +01:00
|
|
|
aruba,ap-303h|\
|
2023-05-18 22:51:08 +02:00
|
|
|
ezviz,cs-w3-wd1200g-eup|\
|
2022-10-04 23:20:39 +02:00
|
|
|
netgear,rbr50|\
|
|
|
|
netgear,rbs50|\
|
|
|
|
netgear,srr60|\
|
|
|
|
netgear,srs60)
|
|
|
|
ucidef_set_interfaces_lan_wan "lan1 lan2 lan3" "wan"
|
|
|
|
;;
|
2022-10-24 18:55:44 +02:00
|
|
|
openmesh,a42|\
|
|
|
|
openmesh,a62)
|
2022-10-24 18:55:44 +02:00
|
|
|
ucidef_set_interfaces_lan_wan "ethernet2" "ethernet1"
|
|
|
|
;;
|
2022-10-24 18:55:44 +02:00
|
|
|
plasmacloud,pa1200|\
|
|
|
|
plasmacloud,pa2200)
|
2022-10-24 18:55:44 +02:00
|
|
|
ucidef_set_interfaces_lan_wan "ethernet1" "ethernet2"
|
|
|
|
;;
|
2023-02-22 20:46:28 +08:00
|
|
|
qxwlan,e2600ac-c1)
|
|
|
|
ucidef_set_interfaces_lan_wan "sw-eth1" "sw-eth2"
|
|
|
|
;;
|
2021-11-23 09:10:14 +01:00
|
|
|
zte,mf286d)
|
2021-12-14 01:00:00 +01:00
|
|
|
ucidef_set_interfaces_lan_wan "lan2 lan3 lan4" "wan"
|
2021-11-23 09:10:14 +01:00
|
|
|
;;
|
2019-01-31 22:23:53 +01:00
|
|
|
*)
|
|
|
|
echo "Unsupported hardware. Network interfaces not initialized"
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
}
|
|
|
|
|
2019-08-21 09:10:46 +02:00
|
|
|
ipq40xx_setup_dsl()
|
|
|
|
{
|
|
|
|
local board="$1"
|
|
|
|
local annex="j"
|
|
|
|
local tone="b"
|
|
|
|
local xfer_mode=""
|
|
|
|
|
|
|
|
case "$board" in
|
|
|
|
avm,fritzbox-7530)
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
return 0
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
ucidef_add_atm_bridge "1" "32" "llc" "bridged" "dsl"
|
|
|
|
ucidef_add_vdsl_modem "$annex" "$tone" "$xfer_mode"
|
|
|
|
ucidef_set_interface_wan "dsl0" "pppoe"
|
|
|
|
}
|
|
|
|
|
2019-01-31 22:23:53 +01:00
|
|
|
ipq40xx_setup_macs()
|
|
|
|
{
|
|
|
|
local board="$1"
|
2019-12-21 12:43:40 +09:00
|
|
|
local lan_mac=""
|
|
|
|
local wan_mac=""
|
|
|
|
local label_mac=""
|
2018-02-21 20:40:50 +01:00
|
|
|
|
2019-01-31 22:23:53 +01:00
|
|
|
case "$board" in
|
2020-03-08 17:21:27 +01:00
|
|
|
8dev,habanero-dvk)
|
|
|
|
label_mac=$(mtd_get_mac_binary "ART" 0x1006)
|
|
|
|
;;
|
2022-10-03 09:41:31 +08:00
|
|
|
asus,rt-ac42u)
|
|
|
|
label_mac=$(mtd_get_mac_binary_ubi Factory 0x1006)
|
|
|
|
;;
|
2019-01-31 22:23:53 +01:00
|
|
|
asus,rt-ac58u)
|
2019-12-21 12:43:40 +09:00
|
|
|
wan_mac=$(mtd_get_mac_binary_ubi Factory 0x1006)
|
|
|
|
lan_mac=$(mtd_get_mac_binary_ubi Factory 0x5006)
|
|
|
|
label_mac=$wan_mac
|
2019-01-31 22:23:53 +01:00
|
|
|
;;
|
2019-08-21 09:10:46 +02:00
|
|
|
avm,fritzbox-7530)
|
|
|
|
local tffsdev=$(find_mtd_chardev "nand-tffs")
|
|
|
|
wan_mac=$(/usr/bin/fritz_tffs_nand -b -d $tffsdev -n macdsl)
|
|
|
|
;;
|
2019-11-25 15:25:00 +01:00
|
|
|
cilab,meshpoint-one)
|
|
|
|
label_mac=$(mtd_get_mac_binary "ART" 0x1006)
|
|
|
|
;;
|
2020-10-02 14:32:55 +02:00
|
|
|
devolo,magic-2-wifi-next)
|
|
|
|
lan_mac=$(mtd_get_mac_ascii APPSBLENV MacAddress0)
|
|
|
|
label_mac=$lan_mac
|
|
|
|
;;
|
ipq40xx: Add support for D-Link DAP-2610
Specifications
==============
- SOC: IPQ4018
- RAM: DDR3 256MB
- Flash: SPI NOR 16MB
- WiFi:
- 2.4GHz: IPQ4018, 2x2, front end SKY85303-11
- 5GHz: IPQ4018, 2x2, front end SKY85717-21
- Ethernet: 1x 10/100/1000Mbps, POE 802.3af
- PHY: QCA8072
- UART: GND, blocked, 3.3V, RX, TX / 115200 8N1
- LED: 1x red / green
- Button: 1x reset / factory default
- U-Boot bootloader with tftp and "emergency web server" accessible
using serial port.
Installation
============
Flash factory image from D-Link web UI. Constraints in the D-Link web UI
makes the factory image unnecessarily large. Flash again using
sysupgrade from inside OpenWrt to reclaim some flash space.
Return to stock D-Link firmware
===============================
Partition layout is preserved, and it is possible to return to the stock
firmware simply by downloading it from D-Link and writing it to the
firmware partition.
# mtd -r write dap2610-firmware.bin firmware
Quirks
======
To be flashable from the D-Link http server, the firmware must be larger
then 6MB, and the size in the firmware header must match the actual file
size. Also, the boot loader verifies the checksum of the firmware before
each boot, thus the jffs2 must be after the checksum covered part. This
is solved in the factory image by having the rootfs at the very end of
the image (without pad-rootfs).
The sysupgrade image which does not have to be flashable from the D-Link
web UI may be smaller, and the checksum in the firmware header only
covers the kernel part of the image.
Signed-off-by: Fredrik Olofsson <fredrik.olofsson@anyfinetworks.com>
[added WRGG Variables to DEVICE_VARS, squashed spi pinconf/mux,
added emd1's gmac0 config,fix dtc warnings]
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
2019-09-10 11:25:53 +02:00
|
|
|
dlink,dap-2610)
|
|
|
|
lan_mac=$(mtd_get_mac_ascii bdcfg lanmac)
|
|
|
|
label_mac=$lan_mac
|
|
|
|
;;
|
2020-03-05 12:21:40 +01:00
|
|
|
engenius,eap2200|\
|
2019-11-01 14:00:40 +08:00
|
|
|
engenius,emd1)
|
|
|
|
lan_mac=$(mtd_get_mac_ascii 0:APPSBLENV ethaddr)
|
|
|
|
label_mac=$lan_mac
|
|
|
|
;;
|
2019-11-01 15:47:28 +08:00
|
|
|
engenius,emr3500)
|
|
|
|
wan_mac=$(mtd_get_mac_ascii 0:APPSBLENV wanaddr)
|
|
|
|
lan_mac=$(mtd_get_mac_ascii 0:APPSBLENV ethaddr)
|
|
|
|
label_mac=$wan_mac
|
|
|
|
;;
|
2019-02-27 15:48:23 -07:00
|
|
|
engenius,ens620ext)
|
|
|
|
wan_mac=$(mtd_get_mac_ascii u-boot-env ethaddr)
|
|
|
|
lan_mac=$(macaddr_add "$wan_mac" 1)
|
|
|
|
;;
|
ipq40xx: add support for EZVIZ CS-W3-WD1200G EUP
Hardware:
SOC: Qualcomm IPQ4018
RAM: 128 MB Nanya NT5CC64M16GP-DI
FLASH: 16 MB Macronix MX25L12805D
ETH: Qualcomm QCA8075 (4 Gigabit ports, 3xLAN, 1xWAN)
WLAN: Qualcomm IPQ4018 (2.4 & 5 Ghz)
BUTTON: Shared WPS/Reset button
LED: RGB Status/Power LED
SERIAL: Header J8 (UART, Left side of board). Numbered from
top to bottom:
(1) GND, (2) TX, (3) RX, (4) VCC (White triangle
next to it).
3.3v, 115200, 8N1
Tested/Working:
* Ethernet
* WiFi (2.4 and 5GHz)
* Status LED
* Reset Button (See note below)
Implementation notes:
* The shared WPS/Reset button is implemented as a Reset button
* I could not find a original firmware image to reverse engineer, meaning
currently it's not possible to flash OpenWrt through the Web GUI.
Installation (Through Serial console & TFTP):
1. Set your PC to fixed IP 192.168.1.12, Netmask 255.255.255.0, and connect to
one of the LAN ports
2. Rename the initramfs image to 'C0A8010B.img' and enable a TFTP server on
your pc, to serve the image
2. Connect to the router through serial (See connection properties above)
3. Hit a key during startup, to pause startup
4. type `setenv serverip 192.168.1.12`, to set the tftp server address
5. type `tftpboot`, to load the image from the laptop through tftp
6. type `bootm` to run the loaded image from memory
6. (If you want to return to stock firmware later, create an full MTD backup,
e.g. using instructions here https://openwrt.org/docs/guide-user/installation/generic.backup#create_full_mtd_backup)
7. Transfer the 'sysupgrade' OpenWrt firmware image from PC to router, e.g.:
`scp xxx-squashfs-sysupgrade.bin root@192.168.1.1:/tmp/upgrade.bin`
8. Run sysupgrade to permanently install OpenWrt to flash: `sysupgrade -n /tmp/upgrade.bin`
Revert to stock:
To revert to stock, you need the MTD backup from step 6 above:
1. Unpack the MTD backup archive
2. Transfer the 'firmware' partition image to the router (e.g. mtd8_firmware.backup)
3. On the router, do `mtd write mtd8_firmware.backup firmware`
Signed-off-by: Tom Brouwer <tombrouwer@outlook.com>
[removed BOARD_NAME, OpenWRT->OpenWrt, changed LED device name to board name]
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
2020-01-12 13:13:30 +01:00
|
|
|
ezviz,cs-w3-wd1200g-eup)
|
|
|
|
label_mac=$(mtd_get_mac_binary "ART" 0x6)
|
|
|
|
;;
|
2022-10-22 13:00:38 -07:00
|
|
|
google,wifi)
|
|
|
|
wan_mac=$(get_mac_label)
|
|
|
|
lan_mac=$(macaddr_add "$wan_mac" 1)
|
|
|
|
;;
|
2021-12-14 01:00:00 +01:00
|
|
|
linksys,ea6350v3|\
|
|
|
|
linksys,ea8300 |\
|
|
|
|
linksys,mr8300)
|
2019-01-31 22:23:53 +01:00
|
|
|
wan_mac=$(mtd_get_mac_ascii devinfo hw_mac_addr)
|
2019-02-13 18:13:07 -06:00
|
|
|
lan_mac=$(macaddr_add "$wan_mac" 1)
|
2019-01-31 22:23:53 +01:00
|
|
|
;;
|
2021-04-06 19:38:31 +03:00
|
|
|
mikrotik,cap-ac |\
|
ipq40xx: add support for MikroTik hAP ac3
This adds support for the MikroTik RouterBOARD RBD53iG-5HacD2HnD
(hAP ac³), a indoor dual band, dual-radio 802.11ac
wireless AP with external omnidirectional antennae, USB port, five
10/100/1000 Mbps Ethernet ports and PoE passthrough.
See https://mikrotik.com/product/hap_ac3 for more info.
Specifications:
- SoC: Qualcomm Atheros IPQ4019
- RAM: 256 MB
- Storage: 16 MB NOR + 128 MB NAND
- Wireless:
· Built-in IPQ4019 (SoC) 802.11b/g/n 2x2:2, 3 dBi antennae
· Built-in IPQ4019 (SoC) 802.11a/n/ac 2x2:2, 5.5 dBi antennae
- Ethernet: Built-in IPQ4019 (SoC, QCA8075) , 5x 1000/100/10 port,
passive PoE in, PoE passtrough on port 5
- 1x USB Type A port
Installation:
1. Boot the initramfs image via TFTP
2. Run "cat /proc/mtd" and look for "ubi" partition mtd device number, ex. "mtd1"
3. Use ubiformat to remove MikroTik specific UBI volumes
* Detach the UBI partition by running: "ubidetach -d 0"
* Format the partition by running: "ubiformat /dev/mtdN -y"
Replace mtdN with the correct mtd index from step 2.
3. Flash the sysupgrade image using "sysupgrade -n"
Signed-off-by: Robert Marko <robimarko@gmail.com>
Tested-by: Mark Birss <markbirss@gmail.com>
Tested-by: Michael Büchler <michael.buechler@posteo.net>
Tested-by: Alex Tomkins <tomkins@darkzone.net>
2021-10-09 20:13:25 +02:00
|
|
|
mikrotik,hap-ac2|\
|
2022-10-03 19:13:22 +02:00
|
|
|
mikrotik,hap-ac3|\
|
|
|
|
mikrotik,hap-ac3-lte6-kit)
|
2020-11-12 19:45:22 +01:00
|
|
|
wan_mac=$(cat /sys/firmware/mikrotik/hard_config/mac_base)
|
|
|
|
lan_mac=$(macaddr_add $wan_mac 1)
|
|
|
|
label_mac="$wan_mac"
|
|
|
|
;;
|
2021-01-05 00:22:00 +01:00
|
|
|
mikrotik,lhgg-60ad|\
|
2020-10-23 16:05:28 +02:00
|
|
|
mikrotik,sxtsq-5-ac)
|
|
|
|
lan_mac=$(cat /sys/firmware/mikrotik/hard_config/mac_base)
|
|
|
|
label_mac="$lan_mac"
|
|
|
|
;;
|
2022-10-04 23:20:39 +02:00
|
|
|
netgear,rbr50|\
|
|
|
|
netgear,rbs50|\
|
|
|
|
netgear,srr60|\
|
|
|
|
netgear,srs60|\
|
ipq40xx: add support for Pakedge WR-1
Pakedge WR-1 is a dual-band wireless router.
Specification
SoC: Qualcomm Atheros IPQ4018
RAM: 256 MB DDR3
Flash: 32 MB SPI NOR
WIFI: 2.4 GHz 2T2R integrated
5 GHz 2T2R integrated
Ethernet: 5x 10/100/1000 Mbps QCA8075
USB: 1x 2.0
LEDS: 8x (3 GPIO controlled, 5 connected to switch)
Buttons: 1x GPIO controlled
UART: pin header J5
1. 3.3V, 2. GND, 3. TX, 4. RX
baud: 115200, parity: none, flow control: none
Installation
1. Rename initramfs image to:
openwrt-ipq806x-qcom-ipq40xx-ap.dk01.1-c1-fit-uImage-initramfs.itb
and copy it to USB flash drive with FAT32 file system.
2. Connect USB flash drive to the router and apply power while pressing
reset button. Hold the button, on the lates bootloader version, when
Power and WiFi-5 LEDs will start blinking release it. For the older
bootloader holding it for 15 seconds should suffice.
3. Now the router boots the initramfs image, at some point (close to one
minute) the Power LED will start blinking, when stops, router is fully
booted.
4. Connect to one of LAN ports and use SSH to open the shell at
192.168.1.1.
5. ATTENTION! now backup the mtd8 and mtd9 partitions, it's necessary if,
at some point, You want to go back to original firmware. The firmware
provided by manufacturer on its site is encrypted and U-Boot accepts
only decrypted factory images, so there's no way to restore original
firmware.
6. If the backup is prepared, transfer the sysupgrade image to the router
and use 'sysupgrade' command to flash it.
7. After successful flashing router will reboot. At some point the Power
LED will start blinking, wait till it stops, then router is ready for
configuration.
Additional information
U-Boot command line is password protected. Password is unknown.
Signed-off-by: Tomasz Maciej Nowak <tmn505@gmail.com>
2022-09-06 15:32:33 +02:00
|
|
|
pakedge,wr-1)
|
|
|
|
wan_mac=$(macaddr_add $(get_mac_label) 1)
|
2022-09-23 14:48:12 +02:00
|
|
|
;;
|
2019-01-31 22:23:53 +01:00
|
|
|
esac
|
2018-02-21 20:40:50 +01:00
|
|
|
|
2019-03-09 18:08:55 +01:00
|
|
|
[ -n "$lan_mac" ] && ucidef_set_interface_macaddr "lan" $lan_mac
|
|
|
|
[ -n "$wan_mac" ] && ucidef_set_interface_macaddr "wan" $wan_mac
|
2019-11-25 15:25:00 +01:00
|
|
|
[ -n "$label_mac" ] && ucidef_set_label_macaddr $label_mac
|
2019-01-31 22:23:53 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
board_config_update
|
|
|
|
board=$(board_name)
|
|
|
|
ipq40xx_setup_interfaces $board
|
2019-08-21 09:10:46 +02:00
|
|
|
ipq40xx_setup_dsl $board
|
2019-01-31 22:23:53 +01:00
|
|
|
ipq40xx_setup_macs $board
|
2018-02-21 20:40:50 +01:00
|
|
|
board_config_flush
|
|
|
|
|
|
|
|
exit 0
|