Skip to content

Commit 5aca47b

Browse files
raditohauke
authored andcommitted
ramips: add support for BOLT BL100
BL100 is a router made by Bolt by a provider in Indonesia The original firmware created using Mediatek SDK and kernel 2.6.36 - Chipset: MediaTek MT7620A ver 2, eco 6 - RAM: 64 MB - Bootloader: U Boot - Flash: Winbond W25Q128BV (16 MB) - Ports: 2x 10/100 Ethernet, 1x RJ-11 VoIP - Modem: Qualcomm LTE B40 (2300 Mhz) VID:05c6 PID:9026 - Wireless: Internal MT7620A (2.4 Ghz) & Mediatek MT76x2E (5.8 Ghz) - Switch: MediaTek MT7620A built-in 5-port 10/100M switch - Voltage: DC 12V 1A - Antenna Port: 2x External Antenna, 2 LTE U.FL, 2 WiFi U.FL - Serial Port: Yes, 3.3 V TTL, Baud 57600 8N1 - Buttons: Reset and WPS - LED: 15 Total - 4 blue lte, 2 red lte, 1 reset, 1 power. - 1 wps, 1 voip, 1 wlan2, 1 wlan5, 1 lan, 1 wan, 1 wlan. Installation via stock firmware 1. Unlock Telnet access by downloading the backup .tar.gz file 2. Change the Telnet configuration to LAN_Telnet=1 3. Import backup configuration 4. Restart the router 5. Login to telnet with username and password = admin : db40 6. Download sysupgrade binary and mtd_write to the kernel partition `mtd_write write openwrt-bolt_bl100-squashfs-sysupgrade.bin Kernel` Signed-off-by: Radito Wahyu <arditogits@gmail.com>
1 parent a112ed4 commit 5aca47b

File tree

5 files changed

+281
-0
lines changed

5 files changed

+281
-0
lines changed
Lines changed: 262 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,262 @@
1+
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2+
3+
#include "mt7620a.dtsi"
4+
5+
#include <dt-bindings/gpio/gpio.h>
6+
#include <dt-bindings/input/input.h>
7+
#include <dt-bindings/leds/common.h>
8+
#include <dt-bindings/mtd/partitions/uimage.h>
9+
10+
/ {
11+
compatible = "bolt,bl100", "ralink,mt7620a-soc";
12+
model = "Bolt BL100";
13+
14+
aliases {
15+
led-boot = &led_reset;
16+
led-failsafe = &led_reset;
17+
led-running = &led_power;
18+
led-upgrade = &led_reset;
19+
label-mac-device = &ethernet;
20+
};
21+
22+
chosen {
23+
bootargs = "console=ttyS0,57600";
24+
};
25+
26+
leds {
27+
compatible = "gpio-leds";
28+
29+
led_reset: reset {
30+
function = LED_FUNCTION_BOOT;
31+
color = <LED_COLOR_ID_RED>;
32+
gpios = <&gpio1 8 GPIO_ACTIVE_LOW>;
33+
};
34+
35+
led_power: power {
36+
function = LED_FUNCTION_POWER;
37+
color = <LED_COLOR_ID_BLUE>;
38+
gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
39+
};
40+
41+
led_lte1 {
42+
label = "blue:lte1";
43+
gpios = <&gpio1 7 GPIO_ACTIVE_LOW>;
44+
};
45+
46+
led_lte2 {
47+
label = "blue:lte2";
48+
gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
49+
};
50+
51+
led_lte3 {
52+
label = "blue:lte3";
53+
gpios = <&gpio1 10 GPIO_ACTIVE_LOW>;
54+
};
55+
56+
led_lte4 {
57+
label = "blue:lte4";
58+
gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
59+
};
60+
61+
led_lte5 {
62+
label = "red:lte5";
63+
gpios = <&gpio2 24 GPIO_ACTIVE_LOW>;
64+
};
65+
66+
led_lte6 {
67+
label = "red:lte6";
68+
gpios = <&gpio2 25 GPIO_ACTIVE_LOW>;
69+
};
70+
71+
led_wps {
72+
function = LED_FUNCTION_WPS;
73+
color = <LED_COLOR_ID_BLUE>;
74+
gpios = <&gpio2 22 GPIO_ACTIVE_LOW>;
75+
};
76+
77+
led_voip {
78+
label = "blue:voip";
79+
gpios = <&gpio2 23 GPIO_ACTIVE_LOW>;
80+
};
81+
82+
led_wlan2 {
83+
function = LED_FUNCTION_WLAN_2GHZ;
84+
color = <LED_COLOR_ID_BLUE>;
85+
gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
86+
linux,default-trigger = "phy1tpt";
87+
};
88+
89+
led_wlan5 {
90+
function = LED_FUNCTION_WLAN_5GHZ;
91+
color = <LED_COLOR_ID_BLUE>;
92+
gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
93+
linux,default-trigger = "phy0tpt";
94+
};
95+
96+
led_lan {
97+
function = LED_FUNCTION_LAN;
98+
color = <LED_COLOR_ID_GREEN>;
99+
gpios = <&gpio2 3 GPIO_ACTIVE_LOW>;
100+
};
101+
102+
led_wan {
103+
function = LED_FUNCTION_WAN;
104+
color = <LED_COLOR_ID_GREEN>;
105+
gpios = <&gpio2 4 GPIO_ACTIVE_LOW>;
106+
};
107+
};
108+
109+
keys {
110+
compatible = "gpio-keys";
111+
112+
wps {
113+
label = "WPS";
114+
linux,code = <KEY_WPS_BUTTON>;
115+
gpios = <&gpio1 1 GPIO_ACTIVE_LOW>;
116+
};
117+
118+
reset {
119+
label = "RST";
120+
linux,code = <KEY_RESTART>;
121+
gpios = <&gpio1 2 GPIO_ACTIVE_LOW>;
122+
};
123+
};
124+
};
125+
126+
&gpio0 {
127+
status = "okay";
128+
};
129+
130+
&gpio1 {
131+
status = "okay";
132+
};
133+
134+
&gpio2 {
135+
status = "okay";
136+
};
137+
138+
&gpio3 {
139+
status = "okay";
140+
};
141+
142+
&spi0 {
143+
status = "okay";
144+
145+
flash@0 {
146+
compatible = "jedec,spi-nor";
147+
reg = <0>;
148+
spi-max-frequency = <70000000>;
149+
150+
partitions {
151+
compatible = "fixed-partitions";
152+
#address-cells = <1>;
153+
#size-cells = <1>;
154+
155+
partition@0 {
156+
label = "u-boot";
157+
reg = <0x0 0x30000>;
158+
read-only;
159+
};
160+
161+
partition@30000 {
162+
label = "u-boot-env";
163+
reg = <0x30000 0x10000>;
164+
};
165+
166+
partition@40000 {
167+
compatible = "nvmem-cells";
168+
label = "factory";
169+
reg = <0x40000 0x10000>;
170+
read-only;
171+
172+
nvmem-layout {
173+
compatible = "fixed-layout";
174+
#address-cells = <1>;
175+
#size-cells = <1>;
176+
177+
eeprom_factory_0: eeprom@0 {
178+
reg = <0x0 0x200>;
179+
};
180+
181+
eeprom_factory_8000: eeprom@8000 {
182+
reg = <0x8000 0x200>;
183+
};
184+
185+
macaddr_factory_28: macaddr@28 {
186+
compatible = "mac-base";
187+
reg = <0x28 0x6>;
188+
#nvmem-cell-cells = <1>;
189+
};
190+
};
191+
};
192+
193+
partition@50000 {
194+
label = "firmware";
195+
reg = <0x50000 0xf80000>;
196+
compatible = "openwrt,uimage", "denx,uimage";
197+
openwrt,ih-magic = <0x26112015>;
198+
};
199+
200+
partition@fd0000 {
201+
label = "crash";
202+
reg = <0xfd0000 0x10000>;
203+
};
204+
205+
partition@fe0000 {
206+
label = "reserved";
207+
reg = <0xfe0000 0x10000>;
208+
read-only;
209+
};
210+
211+
partition@ff0000 {
212+
label = "Bdata";
213+
reg = <0xff0000 0x10000>;
214+
};
215+
};
216+
};
217+
};
218+
219+
&ehci {
220+
status = "okay";
221+
};
222+
223+
&ohci {
224+
status = "okay";
225+
};
226+
227+
&ethernet {
228+
nvmem-cells = <&macaddr_factory_28>;
229+
nvmem-cell-names = "mac-address";
230+
231+
mediatek,portmap = "llllw";
232+
};
233+
234+
&wmac {
235+
nvmem-cells = <&eeprom_factory_0>;
236+
nvmem-cell-names = "eeprom";
237+
238+
pinctrl-names = "default", "pa_gpio";
239+
pinctrl-0 = <&pa_pins>;
240+
pinctrl-1 = <&pa_gpio_pins>;
241+
};
242+
243+
&pcie {
244+
status = "okay";
245+
};
246+
247+
&pcie0 {
248+
mt76@0,0 {
249+
reg = <0x0000 0 0 0 0>;
250+
nvmem-cells = <&eeprom_factory_8000>;
251+
nvmem-cell-names = "eeprom";
252+
ieee80211-freq-limit = <5000000 6000000>;
253+
};
254+
};
255+
256+
&state_default {
257+
gpio {
258+
groups = "i2c", "uartf", "rgmii1", "rgmii2", "ephy", "wled", "nd_sd";
259+
function = "gpio";
260+
};
261+
};
262+

target/linux/ramips/image/mt7620.mk

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,16 @@ define Device/bdcom_wap2100-sk
149149
endef
150150
TARGET_DEVICES += bdcom_wap2100-sk
151151

152+
define Device/bolt_bl100
153+
SOC := mt7620a
154+
IMAGE_SIZE := 15872k
155+
DEVICE_VENDOR := Bolt
156+
DEVICE_MODEL := BL100
157+
DEVICE_PACKAGES := kmod-mt76x2 kmod-usb2 kmod-usb-ohci
158+
UIMAGE_MAGIC := 0x26112015
159+
endef
160+
TARGET_DEVICES += bolt_bl100
161+
152162
define Device/buffalo_whr-1166d
153163
SOC := mt7620a
154164
IMAGE_SIZE := 16064k

target/linux/ramips/mt7620/base-files/etc/board.d/01_leds

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,11 @@ asus,rt-n14u)
4040
bdcom,wap2100-sk)
4141
ucidef_set_led_netdev "wifi_led" "wifi" "green:wlan2g" "wlan0"
4242
;;
43+
bolt,bl100)
44+
ucidef_set_led_default "power" "power" "blue:power" "1"
45+
ucidef_set_led_netdev "lan" "lan" "green:lan" "eth0.1"
46+
ucidef_set_led_netdev "wan" "wan" "green:wan" "eth0.2"
47+
;;
4348
comfast,cf-wr800n)
4449
ucidef_set_led_netdev "lan" "lan" "white:ethernet" eth0.1
4550
ucidef_set_led_netdev "wifi_led" "wifi" "white:wifi" "wlan0"

target/linux/ramips/mt7620/base-files/etc/board.d/02_network

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ ramips_setup_interfaces()
3434
"0:lan" "1:lan" "2:lan" "3:lan" "4:wan" "6@eth0"
3535
;;
3636
alfa-network,r36m-e4g|\
37+
bolt,bl100|\
3738
zbtlink,zbt-we1026-h-32m)
3839
ucidef_add_switch "switch0" \
3940
"3:lan" "4:wan" "6@eth0"

target/linux/ramips/mt7620/base-files/etc/board.d/03_gpio_switches

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ board_config_update
66
board=$(board_name)
77

88
case "$board" in
9+
bolt,bl100)
10+
ucidef_add_gpio_switch "modem_enable" "Enable LTE Modem" "28" "1"
11+
;;
912
dlink,dir-510l)
1013
ucidef_add_gpio_switch "usb_enable1" "USB 1A enable" "12" "0"
1114
ucidef_add_gpio_switch "usb_enable05" "USB 0.5A enable" "13" "1"

0 commit comments

Comments
 (0)