2016-04-01 07:11:48 +00:00
|
|
|
#
|
|
|
|
# MT7621 Profiles
|
|
|
|
#
|
|
|
|
|
2018-08-30 08:51:09 +00:00
|
|
|
KERNEL_DTB += -d21
|
2017-07-23 19:06:44 +00:00
|
|
|
DEVICE_VARS += TPLINK_BOARD_ID TPLINK_HEADER_VERSION TPLINK_HWID TPLINK_HWREV
|
|
|
|
|
2018-06-15 15:27:51 +00:00
|
|
|
define Build/elecom-wrc-factory
|
|
|
|
$(eval product=$(word 1,$(1)))
|
|
|
|
$(eval version=$(word 2,$(1)))
|
|
|
|
$(STAGING_DIR_HOST)/bin/mkhash md5 $@ >> $@
|
|
|
|
( \
|
|
|
|
echo -n "ELECOM $(product) v$(version)" | \
|
|
|
|
dd bs=32 count=1 conv=sync; \
|
|
|
|
dd if=$@; \
|
|
|
|
) > $@.new
|
|
|
|
mv $@.new $@
|
|
|
|
endef
|
|
|
|
|
2016-04-09 10:24:29 +00:00
|
|
|
define Build/ubnt-erx-factory-image
|
2016-07-06 08:11:29 +00:00
|
|
|
if [ -e $(KDIR)/tmp/$(KERNEL_INITRAMFS_IMAGE) -a "$$(stat -c%s $@)" -lt "$(KERNEL_SIZE)" ]; then \
|
2016-04-09 10:24:29 +00:00
|
|
|
echo '21001:6' > $(1).compat; \
|
|
|
|
$(TAR) -cf $(1) --transform='s/^.*/compat/' $(1).compat; \
|
|
|
|
\
|
|
|
|
$(TAR) -rf $(1) --transform='s/^.*/vmlinux.tmp/' $(KDIR)/tmp/$(KERNEL_INITRAMFS_IMAGE); \
|
2016-12-25 15:40:05 +00:00
|
|
|
mkhash md5 $(KDIR)/tmp/$(KERNEL_INITRAMFS_IMAGE) > $(1).md5; \
|
2016-04-09 10:24:29 +00:00
|
|
|
$(TAR) -rf $(1) --transform='s/^.*/vmlinux.tmp.md5/' $(1).md5; \
|
|
|
|
\
|
|
|
|
echo "dummy" > $(1).rootfs; \
|
|
|
|
$(TAR) -rf $(1) --transform='s/^.*/squashfs.tmp/' $(1).rootfs; \
|
2016-04-01 07:11:48 +00:00
|
|
|
\
|
2016-12-25 15:40:05 +00:00
|
|
|
mkhash md5 $(1).rootfs > $(1).md5; \
|
2016-04-09 10:24:29 +00:00
|
|
|
$(TAR) -rf $(1) --transform='s/^.*/squashfs.tmp.md5/' $(1).md5; \
|
|
|
|
\
|
|
|
|
echo '$(BOARD) $(VERSION_CODE) $(VERSION_NUMBER)' > $(1).version; \
|
|
|
|
$(TAR) -rf $(1) --transform='s/^.*/version.tmp/' $(1).version; \
|
|
|
|
\
|
|
|
|
$(CP) $(1) $(BIN_DIR)/; \
|
2016-07-06 08:11:29 +00:00
|
|
|
else \
|
|
|
|
echo "WARNING: initramfs kernel image too big, cannot generate factory image" >&2; \
|
2016-04-01 07:11:48 +00:00
|
|
|
fi
|
|
|
|
endef
|
|
|
|
|
2016-11-19 17:27:22 +00:00
|
|
|
define Device/11acnas
|
|
|
|
DTS := 11ACNAS
|
2016-04-01 07:11:48 +00:00
|
|
|
IMAGE_SIZE := $(ralink_default_fw_size_16M)
|
2019-10-07 12:33:51 +00:00
|
|
|
UIMAGE_NAME := 11AC-NAS-Router(0.0.0)
|
2016-11-19 17:27:22 +00:00
|
|
|
DEVICE_TITLE := WeVO 11AC NAS Router
|
2017-05-04 12:07:47 +00:00
|
|
|
DEVICE_PACKAGES := kmod-mt7603 kmod-usb3 kmod-usb-ledtrig-usbport wpad-mini
|
2016-04-01 07:11:48 +00:00
|
|
|
endef
|
2016-11-19 17:27:22 +00:00
|
|
|
TARGET_DEVICES += 11acnas
|
2016-04-01 07:11:48 +00:00
|
|
|
|
|
|
|
define Device/dir-860l-b1
|
|
|
|
DTS := DIR-860L-B1
|
2016-09-14 17:11:19 +00:00
|
|
|
BLOCKSIZE := 64k
|
2016-04-01 07:11:48 +00:00
|
|
|
IMAGES += factory.bin
|
|
|
|
KERNEL := kernel-bin | patch-dtb | relocate-kernel | lzma | uImage lzma
|
2016-04-09 10:24:55 +00:00
|
|
|
IMAGE_SIZE := $(ralink_default_fw_size_16M)
|
2016-04-01 07:11:48 +00:00
|
|
|
IMAGE/sysupgrade.bin := \
|
2016-09-03 07:56:35 +00:00
|
|
|
append-kernel | pad-offset $$$$(BLOCKSIZE) 64 | append-rootfs | \
|
2016-04-01 07:11:48 +00:00
|
|
|
seama -m "dev=/dev/mtdblock/2" -m "type=firmware" | \
|
2016-11-17 12:02:26 +00:00
|
|
|
pad-rootfs | append-metadata | check-size $$$$(IMAGE_SIZE)
|
2016-04-01 07:11:48 +00:00
|
|
|
IMAGE/factory.bin := \
|
2016-09-03 07:56:35 +00:00
|
|
|
append-kernel | pad-offset $$$$(BLOCKSIZE) 64 | \
|
|
|
|
append-rootfs | pad-rootfs -x 64 | \
|
2016-04-01 07:11:48 +00:00
|
|
|
seama -m "dev=/dev/mtdblock/2" -m "type=firmware" | \
|
|
|
|
seama-seal -m "signature=wrgac13_dlink.2013gui_dir860lb" | \
|
|
|
|
check-size $$$$(IMAGE_SIZE)
|
2016-05-11 23:41:22 +00:00
|
|
|
DEVICE_TITLE := D-Link DIR-860L B1
|
2017-05-04 12:07:47 +00:00
|
|
|
DEVICE_PACKAGES := kmod-mt76x2 kmod-usb3 kmod-usb-ledtrig-usbport wpad-mini
|
2016-04-01 07:11:48 +00:00
|
|
|
endef
|
2016-04-09 10:24:36 +00:00
|
|
|
TARGET_DEVICES += dir-860l-b1
|
2016-04-01 07:11:48 +00:00
|
|
|
|
2018-02-22 16:08:14 +00:00
|
|
|
define Device/mediatek_ap-mt7621a-v60
|
|
|
|
DTS := AP-MT7621A-V60
|
|
|
|
IMAGE_SIZE := $(ralink_default_fw_size_8M)
|
|
|
|
DEVICE_TITLE := Mediatek AP-MT7621A-V60 EVB
|
|
|
|
DEVICE_PACKAGES := kmod-usb3 kmod-sdhci-mt7620 kmod-sound-mt7620
|
|
|
|
endef
|
|
|
|
TARGET_DEVICES += mediatek_ap-mt7621a-v60
|
|
|
|
|
2018-06-15 15:27:51 +00:00
|
|
|
define Device/elecom_wrc-1167ghbk2-s
|
|
|
|
DTS := WRC-1167GHBK2-S
|
|
|
|
IMAGE_SIZE := 15488k
|
|
|
|
DEVICE_TITLE := ELECOM WRC-1167GHBK2-S
|
|
|
|
IMAGES += factory.bin
|
|
|
|
IMAGE/factory.bin := $$(sysupgrade_bin) | check-size $$$$(IMAGE_SIZE) |\
|
|
|
|
elecom-wrc-factory WRC-1167GHBK2-S 0.00
|
|
|
|
endef
|
|
|
|
TARGET_DEVICES += elecom_wrc-1167ghbk2-s
|
|
|
|
|
2017-02-27 20:59:50 +00:00
|
|
|
define Device/ew1200
|
|
|
|
DTS := EW1200
|
|
|
|
IMAGE_SIZE := $(ralink_default_fw_size_16M)
|
|
|
|
DEVICE_TITLE := AFOUNDRY EW1200
|
2017-05-04 12:07:47 +00:00
|
|
|
DEVICE_PACKAGES := \
|
2017-06-23 05:57:32 +00:00
|
|
|
kmod-ata-core kmod-ata-ahci kmod-mt76x2 kmod-mt7603 kmod-usb3 \
|
2017-05-04 12:07:47 +00:00
|
|
|
kmod-usb-ledtrig-usbport wpad-mini
|
2017-02-27 20:59:50 +00:00
|
|
|
endef
|
|
|
|
TARGET_DEVICES += ew1200
|
|
|
|
|
2016-04-01 07:11:48 +00:00
|
|
|
define Device/firewrt
|
|
|
|
DTS := FIREWRT
|
|
|
|
IMAGE_SIZE := $(ralink_default_fw_size_16M)
|
2016-05-11 23:41:22 +00:00
|
|
|
DEVICE_TITLE := Firefly FireWRT
|
2017-05-04 12:07:47 +00:00
|
|
|
DEVICE_PACKAGES := kmod-mt76x2 kmod-usb3 kmod-usb-ledtrig-usbport wpad-mini
|
2016-04-01 07:11:48 +00:00
|
|
|
endef
|
2016-04-09 10:24:36 +00:00
|
|
|
TARGET_DEVICES += firewrt
|
2016-04-01 07:11:48 +00:00
|
|
|
|
2018-05-27 00:26:14 +00:00
|
|
|
define Device/gnubee_gb-pc1
|
2017-07-22 01:15:56 +00:00
|
|
|
DTS := GB-PC1
|
|
|
|
DEVICE_TITLE := GnuBee Personal Cloud One
|
|
|
|
DEVICE_PACKAGES := kmod-ata-core kmod-ata-ahci kmod-usb3 kmod-sdhci-mt7620
|
|
|
|
IMAGE_SIZE := $(ralink_default_fw_size_32M)
|
|
|
|
endef
|
2018-05-27 00:26:14 +00:00
|
|
|
TARGET_DEVICES += gnubee_gb-pc1
|
2017-07-22 01:15:56 +00:00
|
|
|
|
2018-02-17 08:54:57 +00:00
|
|
|
define Device/gnubee_gb-pc2
|
2018-02-05 00:24:15 +00:00
|
|
|
DTS := GB-PC2
|
|
|
|
DEVICE_TITLE := GnuBee Personal Cloud Two
|
|
|
|
DEVICE_PACKAGES := kmod-ata-core kmod-ata-ahci kmod-usb3 kmod-sdhci-mt7620
|
|
|
|
IMAGE_SIZE := $(ralink_default_fw_size_32M)
|
|
|
|
endef
|
2018-02-17 08:54:57 +00:00
|
|
|
TARGET_DEVICES += gnubee_gb-pc2
|
2018-02-05 00:24:15 +00:00
|
|
|
|
2017-02-22 12:47:22 +00:00
|
|
|
define Device/hc5962
|
|
|
|
DTS := HC5962
|
|
|
|
BLOCKSIZE := 128k
|
|
|
|
PAGESIZE := 2048
|
|
|
|
KERNEL_SIZE := 2097152
|
|
|
|
UBINIZE_OPTS := -E 5
|
|
|
|
IMAGE_SIZE := $(ralink_default_fw_size_32M)
|
|
|
|
IMAGES += factory.bin
|
|
|
|
IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
|
|
|
|
IMAGE/factory.bin := append-kernel | pad-to $$(KERNEL_SIZE) | append-ubi | check-size $$$$(IMAGE_SIZE)
|
|
|
|
DEVICE_TITLE := HiWiFi HC5962
|
2017-05-04 12:07:47 +00:00
|
|
|
DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 wpad-mini
|
2017-02-22 12:47:22 +00:00
|
|
|
endef
|
|
|
|
TARGET_DEVICES += hc5962
|
|
|
|
|
ramips: add support for I-O DATA WN-GX300GR
I-O DATA WN-GX300GR is a 2.4 GHz band 11n router, based on MediaTek
MT7621S.
Specification:
- MT7621S (1-Core, 2-Threads)
- 64 MB of RAM
- 8 MB of Flash (SPI)
- 2T2R 2.4 GHz
- 5x 10/100/1000 Mbps Ethernet
- 2x LEDs, 4x keys (2x buttons, 1x slide switch)
- UART header on PCB
- Vcc, GND, TX, RX from ethernet port side
- baudrate: 115200 bps (U-Boot, OpenWrt)
Flash instruction using initramfs image:
1. Connect serial cable to UART header
2. Rename OpenWrt initramfs image for WN-GX300GR to "uImageWN-GX300GR"
and place it in the TFTP directory
3. Set the IP address of the computer to 192.168.99.8, connect to the
LAN port of WN-GX300GR, and start the TFTP server on the computer
4. Connect power cable to WN-GX300GR and turn on the router
5. Press "1" key on the serial console to interrupt boot process on
U-Boot, press Enter key 3 times and start firmware download via TFTP
6. WN-GX300GR downloads initramfs image and boot with it
7. On the initramfs image, execute "mtd erase firmware" to erase stock
firmware and execute sysupgrade with sysupgrade image for WN-GX300GR
8. Wait ~150 seconds to complete flasing
Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
2018-05-16 12:42:48 +00:00
|
|
|
define Device/iodata_wn-gx300gr
|
|
|
|
DTS := WN-GX300GR
|
|
|
|
IMAGE_SIZE := 7798784
|
|
|
|
DEVICE_TITLE := I-O DATA WN-GX300GR
|
|
|
|
DEVICE_PACKAGES := kmod-mt7603 wpad-mini
|
|
|
|
endef
|
|
|
|
TARGET_DEVICES += iodata_wn-gx300gr
|
|
|
|
|
2017-07-18 05:02:51 +00:00
|
|
|
define Device/k2p
|
|
|
|
DTS := K2P
|
|
|
|
IMAGE_SIZE := $(ralink_default_fw_size_16M)
|
|
|
|
DEVICE_TITLE := Phicomm K2P
|
|
|
|
endef
|
|
|
|
TARGET_DEVICES += k2p
|
|
|
|
|
2017-08-12 14:56:11 +00:00
|
|
|
define Device/mir3g
|
|
|
|
DTS := MIR3G
|
|
|
|
BLOCKSIZE := 128k
|
|
|
|
PAGESIZE := 2048
|
|
|
|
KERNEL_SIZE := 4096k
|
|
|
|
KERNEL := $(KERNEL_DTB) | uImage lzma
|
|
|
|
IMAGE_SIZE := 32768k
|
|
|
|
UBINIZE_OPTS := -E 5
|
|
|
|
IMAGES := sysupgrade.tar kernel1.bin rootfs0.bin
|
|
|
|
IMAGE/kernel1.bin := append-kernel
|
|
|
|
IMAGE/rootfs0.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
|
|
|
|
IMAGE/sysupgrade.tar := sysupgrade-tar | append-metadata
|
|
|
|
DEVICE_TITLE := Xiaomi Mi Router 3G
|
|
|
|
SUPPORTED_DEVICES += R3G
|
|
|
|
DEVICE_PACKAGES := \
|
|
|
|
kmod-mt7603 kmod-mt76x2 kmod-usb3 kmod-usb-ledtrig-usbport wpad-mini \
|
ramips: improve Xiaomi Mi Router 3G support
This commit improves support for the Xiaomi Mi Router 3G originally
added in commit 6e283cdc0da25928f8148805ebef7f8f2b769ee8
Improvements:
- Remove software watchdog as hardware watchdog now working as per
commit 3fbf3ab44f5cebb22e30a4c8681b13341feed6a6 for all mt7621
devices.
- Reset button polarity corrected - length of press determines reboot
(short press) vs. reset to defaults (long press) behaviour.
- Enable GPIO amber switch port LEDs on board rear - lit indicates 1Gbit
link and blink on activity. Green LEDs driven directly by switch
indicating any link speed and tx activity.
- USB port power on/off GPIO exposed as 'usbpower'
- Add access to uboot environment settings for checking/setting uboot
boot order preference from user space.
Changes:
- Front LED indicator is physically made of independent Yellow/Amber,
Red & Blue LEDs combined via a plastic 'lightpipe' to a front panel
indicator, hence the colour behaviour is similar to an RGB LED. RGB
LEDs are not supported at this time because they produce colour results
that do not then match colour labels, e.g. enabling 'mir3g:red' and
'mir3g:blue' would result in a purple indicator and we have no such
label for purple.
The yellow, red & blue LEDs have been split out as individual yellow,
red & blue status LEDs, with yellow being the default status LED as
before and with red's WAN and blue's USB default associations removed.
- Swapped order of vlan interfaces (eth0.1 & eth0.2) to match stock vlan
layout. eth0.1 is LAN, eth0.2 is WAN
- Add 'lwlll' vlan layout to mt7530 switch driver to prevent packet
leakage between kernel switch init and uci swconfig
uboot behaviour & system 'recovery'
uboot expects to find bootable kernels at nand addresses 0x200000 &
0x600000 known by uboot as "system 1" and "system 2" respectively.
uboot chooses which system to hand control to based on 3 environment
variables: flag_last_success, flag_try_sys1_failed & flag_try_sys2_failed
last_success represents a preference for a particular system and is set
to 0 for system 1, set to 1 for system 2. last_success is considered *if*
and only if both try_sys'n'_failed flags are 0 (ie. unset) If *either*
failed flags are set then uboot will attempt to hand control to the
non failed system. If both failed flags are set then uboot will check
the uImage CRC of system 1 and hand control to it if ok. If the uImage
CRC of system is not ok, uboot will hand control to system 2
irrespective of system 2's uImage CRC.
NOTE: uboot only ever sets failed flags, it *never* clears them. uboot
sets a system's failed flag if that system's was selected for boot but
the uImage CRC is incorrect.
Fortunately with serial console access, uboot provides the ability to
boot an initramfs image transferred via tftp, similarly an image may
be flashed to nand however it will flash to *both* kernels so a backup
of stock kernel image is suggested. Note that the suggested install
procedure below set's system 1's failed flag (stock) thus uboot ignores
the last_success preference and boots LEDE located in system 2.
Considerable thought has gone into whether LEDE should replace both
kernels, only one (and which one) etc. LEDE kernels do not include a
minimal rootfs and thus unlike the stock kernel cannot include a
method of controlling uboot environment variables in the event of
rootfs mount failure. Similarly uboot fails to provide an external
mechanism for indicating boot system failure.
Installation - from stock.
Installation through telnet/ssh:
- copy lede-ramips-mt7621-mir3g-squashfs-kernel1.bin and
lede-ramips-mt7621-mir3g-squashfs-rootfs0.bin to usb disk or wget it
from LEDE download site to /tmp
- switch to /extdisks/sda1/ (if copied to USB drive) or to /tmp if
wgetted from LEDE download site
- run: mtd write lede-ramips-mt7621-mir3g-squashfs-kernel1.bin kernel1
- run: mtd write lede-ramips-mt7621-mir3g-squashfs-rootfs0.bin rootfs0
- run: nvram set flag_try_sys1_failed=1
- run: nvram commit
- run: reboot
Recovery - to stock.
Assuming you used the above installation instructions you will have a
stock kernel image in system 1. If it can be booted then it may be used
to perform a stock firmware recovery, thus erasing LEDE completely. From
a 'working' LEDE state (even failsafe)
Failsafe only:
- run: mount_root
- run: sh /etc/uci-defaults/30_uboot-envtools
Then do the steps for 'All'
All:
- run: fw_setenv flag_try_sys2_failed 1
- run: reboot
The board will reboot into system 1 (stock basic kernel) and wait with
system red light slowly blinking for a FAT formatted usb stick with a
recovery image to be inserted. Press and hold the reset button for
around 1 second. Status LED will turn yellow during recovery and blue
when recovery complete.
Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
2017-09-25 19:41:13 +00:00
|
|
|
uboot-envtools
|
2017-08-12 14:56:11 +00:00
|
|
|
endef
|
|
|
|
TARGET_DEVICES += mir3g
|
|
|
|
|
2016-11-19 17:27:22 +00:00
|
|
|
define Device/mt7621
|
|
|
|
DTS := MT7621
|
|
|
|
BLOCKSIZE := 64k
|
|
|
|
IMAGE_SIZE := $(ralink_default_fw_size_4M)
|
|
|
|
DEVICE_TITLE := MediaTek MT7621 EVB
|
|
|
|
endef
|
|
|
|
TARGET_DEVICES += mt7621
|
|
|
|
|
2016-09-27 06:25:04 +00:00
|
|
|
define Device/newifi-d1
|
|
|
|
DTS := Newifi-D1
|
2016-11-01 01:40:31 +00:00
|
|
|
IMAGE_SIZE := $(ralink_default_fw_size_32M)
|
2016-09-27 06:25:04 +00:00
|
|
|
DEVICE_TITLE := Newifi D1
|
2017-05-04 12:07:47 +00:00
|
|
|
DEVICE_PACKAGES := \
|
|
|
|
kmod-mt7603 kmod-mt76x2 kmod-usb3 kmod-usb-ledtrig-usbport wpad-mini
|
2016-09-27 06:25:04 +00:00
|
|
|
endef
|
|
|
|
TARGET_DEVICES += newifi-d1
|
|
|
|
|
ramips: add support for newifi d2
Previously Newifi D2 could only use PandoraBox M1's firmware.
It works fine, but LED GPIO is different.
As a result, a separated DTS file for this device should be implemented.
Hardware spec:
* CPU: MTK MT7621A
* RAM: 512MB
* ROM: 32MB SPI Flash
* WiFi: MTK MT7603+MT7612
* Button: 2 buttons (reset, wps)
* LED: 3 single-color LEDs (USB, WiFi 2.4GHz, WiFi 5GHz) &
2 dual-color LEDs (Power, Internet)
* Ethernet: 5 ports, 4 LAN + 1 WAN
Installation method:
Same as Newifi D1, users may need to request unlock code from the device
manufacturer. Otherwise, a SPI flash programmer may be necessary to get
the firmware flashed. After the device is unlocked, press and hold reset
button before power cable plugs in. Then go to http://192.168.1.1 to
upload and flash the firmware package.
Signed-off-by: Jackson Ming Hu <huming2207@gmail.com>
2017-12-15 03:51:33 +00:00
|
|
|
define Device/d-team_newifi-d2
|
|
|
|
DTS := Newifi-D2
|
|
|
|
IMAGE_SIZE := $(ralink_default_fw_size_32M)
|
|
|
|
DEVICE_TITLE := Newifi D2
|
|
|
|
DEVICE_PACKAGES := \
|
2018-06-19 18:44:36 +00:00
|
|
|
kmod-mt7603 kmod-mt76x2 kmod-usb3 kmod-usb-ledtrig-usbport wpad-mini
|
ramips: add support for newifi d2
Previously Newifi D2 could only use PandoraBox M1's firmware.
It works fine, but LED GPIO is different.
As a result, a separated DTS file for this device should be implemented.
Hardware spec:
* CPU: MTK MT7621A
* RAM: 512MB
* ROM: 32MB SPI Flash
* WiFi: MTK MT7603+MT7612
* Button: 2 buttons (reset, wps)
* LED: 3 single-color LEDs (USB, WiFi 2.4GHz, WiFi 5GHz) &
2 dual-color LEDs (Power, Internet)
* Ethernet: 5 ports, 4 LAN + 1 WAN
Installation method:
Same as Newifi D1, users may need to request unlock code from the device
manufacturer. Otherwise, a SPI flash programmer may be necessary to get
the firmware flashed. After the device is unlocked, press and hold reset
button before power cable plugs in. Then go to http://192.168.1.1 to
upload and flash the firmware package.
Signed-off-by: Jackson Ming Hu <huming2207@gmail.com>
2017-12-15 03:51:33 +00:00
|
|
|
endef
|
|
|
|
TARGET_DEVICES += d-team_newifi-d2
|
|
|
|
|
2016-04-01 07:11:48 +00:00
|
|
|
define Device/pbr-m1
|
|
|
|
DTS := PBR-M1
|
|
|
|
IMAGE_SIZE := $(ralink_default_fw_size_16M)
|
2016-05-11 23:41:22 +00:00
|
|
|
DEVICE_TITLE := PBR-M1
|
2017-05-04 12:07:47 +00:00
|
|
|
DEVICE_PACKAGES := \
|
|
|
|
kmod-ata-core kmod-ata-ahci kmod-mt7603 kmod-mt76x2 kmod-sdhci-mt7620 \
|
|
|
|
kmod-usb3 kmod-usb-ledtrig-usbport wpad-mini
|
2016-04-01 07:11:48 +00:00
|
|
|
endef
|
2016-04-09 10:24:36 +00:00
|
|
|
TARGET_DEVICES += pbr-m1
|
2016-04-01 07:11:48 +00:00
|
|
|
|
2017-03-11 07:44:33 +00:00
|
|
|
define Device/r6220
|
|
|
|
DTS := R6220
|
|
|
|
BLOCKSIZE := 128k
|
|
|
|
PAGESIZE := 2048
|
|
|
|
KERNEL_SIZE := 4096k
|
|
|
|
KERNEL := $(KERNEL_DTB) | uImage lzma
|
|
|
|
IMAGE_SIZE := 28672k
|
|
|
|
UBINIZE_OPTS := -E 5
|
|
|
|
IMAGES := sysupgrade.tar kernel.bin rootfs.bin
|
|
|
|
IMAGE/sysupgrade.tar := sysupgrade-tar | append-metadata
|
|
|
|
IMAGE/kernel.bin := append-kernel
|
|
|
|
IMAGE/rootfs.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
|
|
|
|
DEVICE_TITLE := Netgear R6220
|
2017-05-04 12:07:47 +00:00
|
|
|
DEVICE_PACKAGES := \
|
|
|
|
kmod-mt7603 kmod-mt76x2 kmod-usb3 kmod-usb-ledtrig-usbport wpad-mini
|
2017-03-11 07:44:33 +00:00
|
|
|
endef
|
|
|
|
TARGET_DEVICES += r6220
|
|
|
|
|
2016-11-19 17:27:22 +00:00
|
|
|
define Device/rb750gr3
|
|
|
|
DTS := RB750Gr3
|
|
|
|
IMAGE_SIZE := $(ralink_default_fw_size_16M)
|
|
|
|
DEVICE_TITLE := MikroTik RB750Gr3
|
2017-05-04 12:07:47 +00:00
|
|
|
DEVICE_PACKAGES := kmod-usb3 uboot-envtools
|
2016-11-19 17:27:22 +00:00
|
|
|
endef
|
|
|
|
TARGET_DEVICES += rb750gr3
|
|
|
|
|
ramips: Add support for Mikrotik RouterBOARD RBM33g
This commit adds support for the Mikrotik RouterBOARD RBM33g.
=Hardware=
The RBM33g is a mt7621 based device featuring three gigabit ports, 2
miniPCIe slots with sim card sockets, 1 M.2 slot, 1 USB 3.0 port and a male
onboard RS-232 serial port. Additionally there are a lot of accessible
GPIO ports and additional buses like i2c, mdio, spi and uart.
==Switch==
The three Ethernet ports are all connected to the internal switch of the
mt7621 SoC:
port 0: Ethernet Port next to barrel jack with PoE printed on it
port 1: Innermost Ethernet Port on opposite side of RS-232 port
port 2: Outermost Ethernet Port on opposite side of RS-232 port
port 6: CPU
==Flash==
The device has two spi flash chips. The first flash chips is rather small
(512 kB), connected to CS0 by default and contains only the RouterBOOT
bootloader and some factory information (e.g. mac address).
The second chip has a size of 16 MB, is by default connected to CS1 and
contains the firmware image.
==PCIe==
The board features three PCIe-enabled slots. Two of them are miniPCIe
slots (PCIe0, PCIe1) and one is a M.2 (Key M) slot (PCIe2).
Each of the miniPCIe slots is connected to a dedicated mini SIM socket
on the back of the board.
Power to all three PCIe-enabled slots is controlled via GPIOs on the
mt7621 SoC:
PCIe0: GPIO9
PCIe1: GPIO10
PCIe2: GPIO11
==USB==
The board has one external USB 3.0 port at the rear. Additionally PCIe
port 0 has a permanently enabled USB interface. PCIe slot 1 shares its
USB interface with the rear USB port. Thus only either the rear USB port
or the USB interface of PCIe slot 1 can be active at the same time. The
jumper next to the rear USB port controls which one is active:
open: USB on PCIe 1 is active
closed: USB on rear USB port is active
==Power==
The board can accept both, passive PoE and external power via a 2.1 mm
barrel jack. The input voltage range is 11-32 V.
=Installation=
==Prerequisites==
A USB -> RS-232 Adapter and a null modem cable are required for
installation.
To install an OpenWRT image to the device two components must be built:
1. A openwrt initramfs image
2. A openwrt sysupgrade image
===initramfs & sysupgrade image===
Select target devices "Mikrotik RBM33G" in
openwrt menuconfig and build the images. This will create the images
"openwrt-ramips-mt7621-mikrotik_rbm33g-initramfs-kernel.bin" and
"openwrt-ramips-mt7621-mikrotik_rbm33g-squashfs-sysupgrade.bin" in the output
directory.
==Installing==
**Make sure to back up your RouterOS license in case you do ever want to
go back to RouterOS using "/system license output" and back up the created
license file.**
Serial settings: 115200 8N1
The installation is a two-step process. First the
"openwrt-ramips-mt7621-mikrotik_rbm33g-initramfs-kernel.bin" must be booted
via tftp:
1. Set up a dhcp server that points the bootfile to tftp server serving
the "openwrt-ramips-mt7621-mikrotik_rbm33g-initramfs-kernel.bin"
initramfs image
2. Connect to WAN port (left side, next to sys-LED and power indicator)
3. Connect to serial port of board
4. Power on board and enter RouterBOOT setup menu
5. Set boot device to "boot over ethernet"
6. Set boot protocol to "dhcp protocol" (can be omitted if DHCP server
allows dynamic bootp)
6. Save config
7. Wait for board to boot via Ethernet
On the serial port you should now be presented with the OpenWRT boot log.
The next steps will install OpenWRT persistently.
1. Copy "openwrt-ramips-mt7621-mikrotik_rbm33g-squashfs-sysupgrade.bin" to the device
using scp.
2. Write openwrt to flash using "sysupgrade
openwrt-ramips-mt7621-mikrotik_rbm33g-squashfs-sysupgrade.bin"
Once the flashing completes reboot the router and let it boot from flash.
It should boot straight to OpenWRT.
Signed-off-by: Tobias Schramm <tobleminer@gmail.com>
2018-05-04 01:47:23 +00:00
|
|
|
define Device/mikrotik_rbm33g
|
|
|
|
DTS := RBM33G
|
|
|
|
BLOCKSIZE := 64k
|
|
|
|
IMAGE_SIZE := 16128k
|
|
|
|
DEVICE_TITLE := MikroTik RBM33G
|
|
|
|
DEVICE_PACKAGES := kmod-usb3
|
|
|
|
LOADER_TYPE := elf
|
|
|
|
PLATFORM := mt7621
|
|
|
|
KERNEL := kernel-bin | patch-dtb | lzma | loader-kernel
|
|
|
|
IMAGE/sysupgrade.bin := append-kernel | kernel2minor -s 1024 | pad-to $$$$(BLOCKSIZE) | \
|
|
|
|
append-rootfs | pad-rootfs | append-metadata | check-size $$$$(IMAGE_SIZE)
|
|
|
|
endef
|
|
|
|
TARGET_DEVICES += mikrotik_rbm33g
|
|
|
|
|
2017-07-23 19:06:44 +00:00
|
|
|
define Device/re350-v1
|
|
|
|
DTS := RE350
|
|
|
|
DEVICE_TITLE := TP-LINK RE350 v1
|
|
|
|
DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 wpad-mini
|
|
|
|
TPLINK_BOARD_ID := RE350-V1
|
|
|
|
TPLINK_HWID := 0x0
|
|
|
|
TPLINK_HWREV := 0
|
|
|
|
TPLINK_HEADER_VERSION := 1
|
|
|
|
IMAGE_SIZE := 6016k
|
|
|
|
KERNEL := $(KERNEL_DTB) | tplink-v1-header -e
|
|
|
|
IMAGES := sysupgrade.bin factory.bin
|
|
|
|
IMAGE/sysupgrade.bin := append-rootfs | tplink-safeloader sysupgrade | append-metadata | check-size $$$$(IMAGE_SIZE)
|
|
|
|
IMAGE/factory.bin := append-rootfs | tplink-safeloader factory
|
|
|
|
endef
|
|
|
|
TARGET_DEVICES += re350-v1
|
|
|
|
|
2016-11-19 17:27:22 +00:00
|
|
|
define Device/re6500
|
|
|
|
DTS := RE6500
|
|
|
|
DEVICE_TITLE := Linksys RE6500
|
2017-05-04 12:07:47 +00:00
|
|
|
DEVICE_PACKAGES := kmod-mt76x2 wpad-mini
|
2016-11-19 17:27:22 +00:00
|
|
|
endef
|
|
|
|
TARGET_DEVICES += re6500
|
|
|
|
|
2016-04-01 07:11:48 +00:00
|
|
|
define Device/sap-g3200u3
|
|
|
|
DTS := SAP-G3200U3
|
2016-05-11 23:41:22 +00:00
|
|
|
DEVICE_TITLE := STORYLiNK SAP-G3200U3
|
2017-05-04 12:07:47 +00:00
|
|
|
DEVICE_PACKAGES := kmod-mt76x2 kmod-usb3 kmod-usb-ledtrig-usbport wpad-mini
|
2016-04-01 07:11:48 +00:00
|
|
|
endef
|
2016-04-09 10:24:36 +00:00
|
|
|
TARGET_DEVICES += sap-g3200u3
|
2016-04-01 07:11:48 +00:00
|
|
|
|
2016-11-19 17:27:22 +00:00
|
|
|
define Device/sk-wb8
|
|
|
|
DTS := SK-WB8
|
|
|
|
IMAGE_SIZE := $(ralink_default_fw_size_16M)
|
|
|
|
DEVICE_TITLE := SamKnows Whitebox 8
|
2017-05-04 12:07:47 +00:00
|
|
|
DEVICE_PACKAGES := \
|
|
|
|
kmod-mt7603 kmod-mt76x2 kmod-usb3 kmod-usb-ledtrig-usbport \
|
|
|
|
uboot-envtools wpad-mini
|
2016-11-19 17:27:22 +00:00
|
|
|
endef
|
|
|
|
TARGET_DEVICES += sk-wb8
|
|
|
|
|
2016-08-10 00:18:32 +00:00
|
|
|
define Device/timecloud
|
|
|
|
DTS := Timecloud
|
|
|
|
DEVICE_TITLE := Thunder Timecloud
|
|
|
|
DEVICE_PACKAGES := kmod-usb3
|
|
|
|
endef
|
|
|
|
TARGET_DEVICES += timecloud
|
|
|
|
|
ramips: add support for UniElec U7621-06
UniElec U7621-06 is a router platform board based on MediaTek MT7621AT.
The device has the following specifications:
- MT7621AT (880 MHz)
- 256/512 MB of RAM (DDR3)
- 8/16/32/64 MB of FLASH (SPI NOR)
- 5x 1 Gbps Ethernet (MT7621 built-in switch)
- 1x ASMedia ASM1061 (for mSATA and SATA)
- 2x miniPCIe slots (PCIe bus only)
- 1x mSATA slot (with USB 2.0 bus for modem)
- 1x SATA
- 1x miniSIM slot
- 1x microSD slot
- 1x USB 3.0
- 12x LEDs (3 GPIO-controlled)
- 1x reset button
- 1x UART header (4-pins)
- 1x GPIO header (30-pins)
- 1x FPC connector for LEDs (20-pin, 0.5 mm pitch)
- 1x DC jack for main power (12 V)
The following has been tested and is working:
- Ethernet switch
- miniPCIe slots (tested with Wi-Fi cards)
- mSATA slot (tested with modem and mSATA drive)
- miniSIM slot
- sysupgrade
- reset button
- microSD slot
Installation:
This board might come with a different firmware versions (MediaTek SDK,
PandoraBox, Padavan, etc.). If your board comes with PandoraBox, you can
install LEDE using sysupgrade. Just SSH to the router and perform forced
sysupgrade (due to a board name mismatch). The default IP of this board
should be: 192.168.1.1 and username/password: root/admin. In case of a
different firmware, you can use web based recovery described below.
Use the following command to perform the sysupgrade (for the 256MB
RAM/16MB flash version):
sysupgrade -n -F lede-ramips-mt7621-u7621-06-256M-16M-squashfs-sysupgrade.bin
Recovery:
This board contains a Chinese, closed-source bootloader called Breed
(Boot and Recovery Environment for Embedded Devices). Breed supports web
recovery and to enter it, you keep the reset button pressed for around
5 seconds during boot. Your machine will be assigned an IP through DHCP
and the router will use IP address 192.168.1.1. The recovery website is
in Chinese, but is easy to use. Click on the second item in the list to
access the recovery page, then the second item on the next page is where
you select the firmware. In order to start the recovery, you click the
button at the bottom.
LEDs list (top row, left to right):
- LED_WWAN# (connected with pin 42 in LTE/mSATA slot)
- Power (connected directly to 3V3)
- CTS2_N (GPIO10, configured as "status" LED)
- TXD2 (GPIO11, configured as "led4", without default trigger)
- RXD2 (GPIO12, configured as "led5", without default trigger)
- LED_WLAN# (connected with pin 44 in wifi0 slot)
LEDs list (bottom row, left to right):
- ESW_P0_LED_0
- ESW_P1_LED_0
- ESW_P2_LED_0
- ESW_P3_LED_0
- ESW_P4_LED_0
- LED_WLAN# (connected with pin 44 in wifi1 slot)
Other notes:
1. The board is available with different amounts of RAM and flash. We
have only added support for the 256/16 MB configuration, as that seems
to be the default. However, all the required infrastructure is in place
for making support for the other configurations easy.
2. The manufacturer offers five different wireless cards with MediaTek
chipsets, based on MT76x2, MT7603 and MT7615. Images of the board all
show that the miniPCIe slots are dedicated to specific Wi-Fi cards.
However, the slots are generic.
3. All boards we got access to had the same EEPROM content. The default
firmware reads the Ethernet MAC from offset 0xe000 in factory partition.
This offset only contains 0xffs, so a random MAC will be generated on
every boot of the router. There is a valid MAC stored at offset 0xe006
and this MAC is shown as the WAN MAC in the bootloader. However, it is
the same on all boards we have checked. Based on information provided
by the vendor, all boards sold in small quantities are considered more
as samples for development purposes.
Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
Signed-off-by: Kristian Evensen <kristian.evensen@gmail.com>
2017-11-02 15:04:49 +00:00
|
|
|
define Device/u7621-06-256M-16M
|
|
|
|
DTS := U7621-06-256M-16M
|
|
|
|
IMAGE_SIZE := 16064k
|
|
|
|
DEVICE_TITLE := UniElec U7621-06 (256M RAM/16M flash)
|
|
|
|
DEVICE_PACKAGES := kmod-ata-core kmod-ata-ahci kmod-sdhci-mt7620 kmod-usb3
|
|
|
|
endef
|
|
|
|
TARGET_DEVICES += u7621-06-256M-16M
|
|
|
|
|
2016-11-19 17:27:22 +00:00
|
|
|
define Device/ubnt-erx
|
|
|
|
DTS := UBNT-ERX
|
|
|
|
FILESYSTEMS := squashfs
|
|
|
|
KERNEL_SIZE := 3145728
|
|
|
|
KERNEL := $(KERNEL_DTB) | uImage lzma
|
|
|
|
IMAGES := sysupgrade.tar
|
|
|
|
KERNEL_INITRAMFS := $$(KERNEL) | ubnt-erx-factory-image $(KDIR)/tmp/$$(KERNEL_INITRAMFS_PREFIX)-factory.tar
|
|
|
|
IMAGE/sysupgrade.tar := sysupgrade-tar | append-metadata
|
|
|
|
DEVICE_TITLE := Ubiquiti EdgeRouter X
|
2016-04-01 07:11:48 +00:00
|
|
|
endef
|
2016-11-19 17:27:22 +00:00
|
|
|
TARGET_DEVICES += ubnt-erx
|
2016-04-01 07:11:48 +00:00
|
|
|
|
2017-05-29 09:24:49 +00:00
|
|
|
define Device/ubnt-erx-sfp
|
2017-07-06 17:44:44 +00:00
|
|
|
$(Device/ubnt-erx)
|
2017-05-29 09:24:49 +00:00
|
|
|
DTS := UBNT-ERX-SFP
|
|
|
|
DEVICE_TITLE := Ubiquiti EdgeRouter X-SFP
|
2017-07-06 17:44:44 +00:00
|
|
|
DEVICE_PACKAGES += kmod-i2c-algo-pca kmod-gpio-pca953x kmod-i2c-gpio-custom
|
2017-05-29 09:24:49 +00:00
|
|
|
endef
|
|
|
|
TARGET_DEVICES += ubnt-erx-sfp
|
|
|
|
|
2016-11-19 17:27:22 +00:00
|
|
|
define Device/vr500
|
|
|
|
DTS := VR500
|
|
|
|
IMAGE_SIZE := 66453504
|
|
|
|
DEVICE_TITLE := Planex VR500
|
2016-05-11 23:41:22 +00:00
|
|
|
DEVICE_PACKAGES := kmod-usb3
|
2016-04-26 11:43:53 +00:00
|
|
|
endef
|
2016-11-19 17:27:22 +00:00
|
|
|
TARGET_DEVICES += vr500
|
2016-04-01 07:11:48 +00:00
|
|
|
|
2016-11-19 17:27:22 +00:00
|
|
|
define Device/w2914nsv2
|
|
|
|
DTS := W2914NSV2
|
2016-04-21 19:47:08 +00:00
|
|
|
IMAGE_SIZE := $(ralink_default_fw_size_16M)
|
2019-10-07 12:33:51 +00:00
|
|
|
UIMAGE_NAME := W2914NS-V2(0.0.0)
|
2016-11-19 17:27:22 +00:00
|
|
|
DEVICE_TITLE := WeVO W2914NS v2
|
2017-05-04 12:07:47 +00:00
|
|
|
DEVICE_PACKAGES := \
|
2018-06-19 18:44:36 +00:00
|
|
|
kmod-mt7603 kmod-mt76x2 kmod-usb3 kmod-usb-ledtrig-usbport wpad-mini
|
2016-11-15 11:37:38 +00:00
|
|
|
endef
|
2016-11-19 17:27:22 +00:00
|
|
|
TARGET_DEVICES += w2914nsv2
|
2016-11-15 11:37:38 +00:00
|
|
|
|
2016-04-01 07:11:48 +00:00
|
|
|
define Device/wf-2881
|
|
|
|
DTS := WF-2881
|
2016-09-04 06:56:05 +00:00
|
|
|
BLOCKSIZE := 128k
|
2016-04-01 07:11:48 +00:00
|
|
|
PAGESIZE := 2048
|
|
|
|
FILESYSTEMS := squashfs
|
2016-09-04 07:58:02 +00:00
|
|
|
IMAGE_SIZE := 129280k
|
2016-09-04 06:56:05 +00:00
|
|
|
KERNEL := $(KERNEL_DTB) | pad-offset $$(BLOCKSIZE) 64 | uImage lzma
|
2016-09-12 16:20:50 +00:00
|
|
|
UBINIZE_OPTS := -E 5
|
2016-11-17 12:02:26 +00:00
|
|
|
IMAGE/sysupgrade.bin := append-kernel | append-ubi | append-metadata | check-size $$$$(IMAGE_SIZE)
|
2016-05-11 23:41:22 +00:00
|
|
|
DEVICE_TITLE := NETIS WF-2881
|
2018-06-19 18:44:36 +00:00
|
|
|
DEVICE_PACKAGES := kmod-mt76x2 kmod-usb3 kmod-usb-ledtrig-usbport wpad-mini
|
2016-04-01 07:11:48 +00:00
|
|
|
endef
|
2016-04-09 10:24:36 +00:00
|
|
|
TARGET_DEVICES += wf-2881
|
2016-04-01 07:11:48 +00:00
|
|
|
|
2018-05-03 15:59:27 +00:00
|
|
|
define Device/mqmaker_witi-256m
|
|
|
|
DTS := WITI-256M
|
2016-11-19 17:27:22 +00:00
|
|
|
IMAGE_SIZE := $(ralink_default_fw_size_16M)
|
2018-05-03 15:59:27 +00:00
|
|
|
DEVICE_TITLE := MQmaker WiTi (256MB RAM)
|
2017-05-04 12:07:47 +00:00
|
|
|
DEVICE_PACKAGES := \
|
|
|
|
kmod-ata-core kmod-ata-ahci kmod-mt76x2 kmod-sdhci-mt7620 kmod-usb3 \
|
|
|
|
kmod-usb-ledtrig-usbport wpad-mini
|
2018-05-03 15:59:27 +00:00
|
|
|
SUPPORTED_DEVICES += witi
|
2016-04-01 07:11:48 +00:00
|
|
|
endef
|
2018-05-03 15:59:27 +00:00
|
|
|
TARGET_DEVICES += mqmaker_witi-256m
|
|
|
|
|
|
|
|
define Device/mqmaker_witi-512m
|
|
|
|
DTS := WITI-512M
|
|
|
|
IMAGE_SIZE := $(ralink_default_fw_size_16M)
|
|
|
|
DEVICE_TITLE := MQmaker WiTi (512MB RAM)
|
|
|
|
DEVICE_PACKAGES := \
|
|
|
|
kmod-ata-core kmod-ata-ahci kmod-mt76x2 kmod-sdhci-mt7620 kmod-usb3 \
|
|
|
|
kmod-usb-ledtrig-usbport wpad-mini
|
|
|
|
endef
|
|
|
|
TARGET_DEVICES += mqmaker_witi-512m
|
2016-04-01 07:11:48 +00:00
|
|
|
|
2016-11-19 17:27:22 +00:00
|
|
|
define Device/wndr3700v5
|
|
|
|
DTS := WNDR3700V5
|
2016-05-10 16:17:54 +00:00
|
|
|
IMAGE_SIZE := $(ralink_default_fw_size_16M)
|
2016-11-19 17:27:22 +00:00
|
|
|
DEVICE_TITLE := Netgear WNDR3700v5
|
2017-05-04 12:07:47 +00:00
|
|
|
DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 wpad-mini
|
2016-05-10 16:17:54 +00:00
|
|
|
endef
|
2016-11-19 17:27:22 +00:00
|
|
|
TARGET_DEVICES += wndr3700v5
|
2016-05-10 16:17:54 +00:00
|
|
|
|
2018-03-29 10:33:02 +00:00
|
|
|
define Device/youhua_wr1200js
|
|
|
|
DTS := WR1200JS
|
|
|
|
IMAGE_SIZE := 16064k
|
|
|
|
DEVICE_TITLE := YouHua WR1200JS
|
|
|
|
DEVICE_PACKAGES := \
|
2018-06-19 18:44:36 +00:00
|
|
|
kmod-mt7603 kmod-mt76x2 kmod-usb3 kmod-usb-ledtrig-usbport wpad-mini
|
2018-03-29 10:33:02 +00:00
|
|
|
endef
|
|
|
|
TARGET_DEVICES += youhua_wr1200js
|
|
|
|
|
2016-11-19 17:27:22 +00:00
|
|
|
define Device/wsr-1166
|
|
|
|
DTS := WSR-1166
|
|
|
|
IMAGE/sysupgrade.bin := trx | pad-rootfs | append-metadata
|
|
|
|
IMAGE_SIZE := $(ralink_default_fw_size_16M)
|
|
|
|
DEVICE_TITLE := Buffalo WSR-1166
|
2017-05-04 12:07:47 +00:00
|
|
|
DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 wpad-mini
|
2016-10-10 01:24:42 +00:00
|
|
|
endef
|
2016-11-19 17:27:22 +00:00
|
|
|
TARGET_DEVICES += wsr-1166
|
2016-10-10 01:24:42 +00:00
|
|
|
|
2016-11-19 17:27:22 +00:00
|
|
|
define Device/wsr-600
|
|
|
|
DTS := WSR-600
|
ramips: add support for MikroTik hEX v3 (RB750Gr3)
The MikroTik hEX v3 (RB750Gr3) is a MT7621AT board which is similar to most MT7621 reference designs, it can be easily supported by this patch; however, the stock RouterBOOT bootloader has to be replaced by a MT7621 SDK U-Boot such as https://github.com/ndoo/RB750Gr3-U-Boot - U-Boot configured for the RB750Gr3 (16MiB SPI flash, 256MiB DDR3 RAM at 1200MHz).
RouterBOOT, the stock bootloader, does not initialize the UART and boots silently, making it preferable to replace it with a MT7621 SDK U-Boot with UART (57600 8N1) that supports HTTP, TFTP or serial upload of sysupgrade firmware and U-Boot.
Furthermore, RouterOS, the stock firmware, is contained in a proprietary modification of SquashFS without GPL sources; UART is also disabled in stock firmware.
The combination of LEDE firmware generated by this PR and MT7621 SDK U-Boot expects the printed MAC address to reside at offset `0xe000` of the factory partition (absolute offset is `0x4e000`); this is similar to the factory MAC address offset for several other MT7621 devices.
A 16MiB flash dump suitable for use with flashrom will be provided if/once this patch is accepted and binaries are built by LEDE buildbot. Alternatively, writing the U-Boot to the SPI flash starting at 0x0 offset and booting the board with serial console attached will allow TFTP, HTTP or serial upload of sysupgrade firmware.
Signed-off-by: Andrew Yong <me@ndoo.sg>
2016-10-18 20:05:32 +00:00
|
|
|
IMAGE_SIZE := $(ralink_default_fw_size_16M)
|
2016-11-19 17:27:22 +00:00
|
|
|
DEVICE_TITLE := Buffalo WSR-600
|
2017-05-04 12:07:47 +00:00
|
|
|
DEVICE_PACKAGES := kmod-mt7603 kmod-rt2800-pci wpad-mini
|
ramips: add support for MikroTik hEX v3 (RB750Gr3)
The MikroTik hEX v3 (RB750Gr3) is a MT7621AT board which is similar to most MT7621 reference designs, it can be easily supported by this patch; however, the stock RouterBOOT bootloader has to be replaced by a MT7621 SDK U-Boot such as https://github.com/ndoo/RB750Gr3-U-Boot - U-Boot configured for the RB750Gr3 (16MiB SPI flash, 256MiB DDR3 RAM at 1200MHz).
RouterBOOT, the stock bootloader, does not initialize the UART and boots silently, making it preferable to replace it with a MT7621 SDK U-Boot with UART (57600 8N1) that supports HTTP, TFTP or serial upload of sysupgrade firmware and U-Boot.
Furthermore, RouterOS, the stock firmware, is contained in a proprietary modification of SquashFS without GPL sources; UART is also disabled in stock firmware.
The combination of LEDE firmware generated by this PR and MT7621 SDK U-Boot expects the printed MAC address to reside at offset `0xe000` of the factory partition (absolute offset is `0x4e000`); this is similar to the factory MAC address offset for several other MT7621 devices.
A 16MiB flash dump suitable for use with flashrom will be provided if/once this patch is accepted and binaries are built by LEDE buildbot. Alternatively, writing the U-Boot to the SPI flash starting at 0x0 offset and booting the board with serial console attached will allow TFTP, HTTP or serial upload of sysupgrade firmware.
Signed-off-by: Andrew Yong <me@ndoo.sg>
2016-10-18 20:05:32 +00:00
|
|
|
endef
|
2016-11-19 17:27:22 +00:00
|
|
|
TARGET_DEVICES += wsr-600
|
ramips: add support for MikroTik hEX v3 (RB750Gr3)
The MikroTik hEX v3 (RB750Gr3) is a MT7621AT board which is similar to most MT7621 reference designs, it can be easily supported by this patch; however, the stock RouterBOOT bootloader has to be replaced by a MT7621 SDK U-Boot such as https://github.com/ndoo/RB750Gr3-U-Boot - U-Boot configured for the RB750Gr3 (16MiB SPI flash, 256MiB DDR3 RAM at 1200MHz).
RouterBOOT, the stock bootloader, does not initialize the UART and boots silently, making it preferable to replace it with a MT7621 SDK U-Boot with UART (57600 8N1) that supports HTTP, TFTP or serial upload of sysupgrade firmware and U-Boot.
Furthermore, RouterOS, the stock firmware, is contained in a proprietary modification of SquashFS without GPL sources; UART is also disabled in stock firmware.
The combination of LEDE firmware generated by this PR and MT7621 SDK U-Boot expects the printed MAC address to reside at offset `0xe000` of the factory partition (absolute offset is `0x4e000`); this is similar to the factory MAC address offset for several other MT7621 devices.
A 16MiB flash dump suitable for use with flashrom will be provided if/once this patch is accepted and binaries are built by LEDE buildbot. Alternatively, writing the U-Boot to the SPI flash starting at 0x0 offset and booting the board with serial console attached will allow TFTP, HTTP or serial upload of sysupgrade firmware.
Signed-off-by: Andrew Yong <me@ndoo.sg>
2016-10-18 20:05:32 +00:00
|
|
|
|
2017-04-20 03:07:26 +00:00
|
|
|
define Device/zbt-we1326
|
|
|
|
DTS := ZBT-WE1326
|
|
|
|
IMAGE_SIZE := $(ralink_default_fw_size_16M)
|
|
|
|
DEVICE_TITLE := ZBT WE1326
|
2017-05-04 12:07:47 +00:00
|
|
|
DEVICE_PACKAGES := \
|
|
|
|
kmod-mt7603 kmod-mt76x2 kmod-usb3 kmod-sdhci-mt7620 wpad-mini
|
2017-04-20 03:07:26 +00:00
|
|
|
endef
|
|
|
|
TARGET_DEVICES += zbt-we1326
|
|
|
|
|
2017-12-16 23:30:21 +00:00
|
|
|
define Device/zbtlink_zbt-we3526
|
2017-11-07 12:17:06 +00:00
|
|
|
DTS := ZBT-WE3526
|
|
|
|
IMAGE_SIZE := $(ralink_default_fw_size_16M)
|
|
|
|
DEVICE_TITLE := ZBT WE3526
|
|
|
|
DEVICE_PACKAGES := \
|
|
|
|
kmod-sdhci-mt7620 kmod-mt7603 kmod-mt76x2 \
|
|
|
|
kmod-usb3 kmod-usb-ledtrig-usbport wpad-mini
|
|
|
|
endef
|
2017-12-16 23:30:21 +00:00
|
|
|
TARGET_DEVICES += zbtlink_zbt-we3526
|
2017-11-07 12:17:06 +00:00
|
|
|
|
2016-11-19 17:27:22 +00:00
|
|
|
define Device/zbt-wg2626
|
|
|
|
DTS := ZBT-WG2626
|
2016-11-18 11:46:27 +00:00
|
|
|
IMAGE_SIZE := $(ralink_default_fw_size_16M)
|
2016-11-19 17:27:22 +00:00
|
|
|
DEVICE_TITLE := ZBT WG2626
|
2017-05-04 12:07:47 +00:00
|
|
|
DEVICE_PACKAGES := \
|
|
|
|
kmod-ata-core kmod-ata-ahci kmod-sdhci-mt7620 kmod-mt76x2 kmod-usb3 \
|
|
|
|
kmod-usb-ledtrig-usbport wpad-mini
|
2016-11-18 11:46:27 +00:00
|
|
|
endef
|
2016-11-19 17:27:22 +00:00
|
|
|
TARGET_DEVICES += zbt-wg2626
|
2016-11-18 11:46:27 +00:00
|
|
|
|
2017-04-07 21:52:27 +00:00
|
|
|
define Device/zbt-wg3526-16M
|
|
|
|
DTS := ZBT-WG3526-16M
|
2016-11-18 11:46:27 +00:00
|
|
|
IMAGE_SIZE := $(ralink_default_fw_size_16M)
|
2017-04-07 21:52:27 +00:00
|
|
|
SUPPORTED_DEVICES += zbt-wg3526
|
|
|
|
DEVICE_TITLE := ZBT WG3526 (16MB flash)
|
2017-05-04 12:07:47 +00:00
|
|
|
DEVICE_PACKAGES := \
|
|
|
|
kmod-ata-core kmod-ata-ahci kmod-sdhci-mt7620 kmod-mt7603 kmod-mt76x2 \
|
|
|
|
kmod-usb3 kmod-usb-ledtrig-usbport wpad-mini
|
2016-11-18 11:46:27 +00:00
|
|
|
endef
|
2017-04-07 21:52:27 +00:00
|
|
|
TARGET_DEVICES += zbt-wg3526-16M
|
2016-11-18 11:46:27 +00:00
|
|
|
|
2017-04-01 08:46:44 +00:00
|
|
|
define Device/zbt-wg3526-32M
|
|
|
|
DTS := ZBT-WG3526-32M
|
|
|
|
IMAGE_SIZE := $(ralink_default_fw_size_32M)
|
|
|
|
SUPPORTED_DEVICES += ac1200pro
|
|
|
|
DEVICE_TITLE := ZBT WG3526 (32MB flash)
|
2017-05-04 12:07:47 +00:00
|
|
|
DEVICE_PACKAGES := \
|
|
|
|
kmod-ata-core kmod-ata-ahci kmod-sdhci-mt7620 kmod-mt7603 kmod-mt76x2 \
|
|
|
|
kmod-usb3 kmod-usb-ledtrig-usbport wpad-mini
|
2017-04-01 08:46:44 +00:00
|
|
|
endef
|
|
|
|
TARGET_DEVICES += zbt-wg3526-32M
|
|
|
|
|
2016-04-01 07:11:48 +00:00
|
|
|
# FIXME: is this still needed?
|
|
|
|
define Image/Prepare
|
|
|
|
#define Build/Compile
|
|
|
|
rm -rf $(KDIR)/relocate
|
|
|
|
$(CP) ../../generic/image/relocate $(KDIR)
|
|
|
|
$(MAKE) -C $(KDIR)/relocate KERNEL_ADDR=$(KERNEL_LOADADDR) CROSS_COMPILE=$(TARGET_CROSS)
|
|
|
|
$(CP) $(KDIR)/relocate/loader.bin $(KDIR)/loader.bin
|
|
|
|
endef
|