Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision | ||
| inbox:toh:askey:rt4230w_rev6 [2022/12/06 10:40] – Use a UBOOT configuration that autodetects flash size lanchon | inbox:toh:askey:rt4230w_rev6 [2024/02/12 08:58] – external edit | ||
|---|---|---|---|
| Line 11: | Line 11: | ||
| ===== Hardware Highlights ===== | ===== Hardware Highlights ===== | ||
| - | ---- datatable ---- | + | <!-- ToH: { |
| - | cols | + | " |
| - | header | + | " |
| - | align : c,c,c,c,c,c,c,c,c,c,c,c,c | + | " |
| - | filter | + | |
| - | sort : Model | + | " |
| - | ---- | + | |
| + | } --> | ||
| ===== Installation ===== | ===== Installation ===== | ||
| - | ---- datatable ---- | ||
| - | cols : Model, Versions, Supported Current Rel, Firmware OpenWrt Install URL_url, Firmware OpenWrt Upgrade URL_url, Firmware OEM Stock URL_url | ||
| - | headers : Model, Version, Current Release, Firmware OpenWrt Install, Firmware OpenWrt Upgrade, Firmware OEM Stock | ||
| - | align : c,c,c | ||
| - | filter | ||
| - | ---- | ||
| - | For explanation of different images, see [[docs: | ||
| - | ==== Method 1: Installation using web interface, SSH, and TFTP (Only works with non-SAC2V1K firmware) | + | OpenWrt firmware: [[https:// |
| - | Method 1 doesn' | + | |
| - | // | + | For explanation of different images, see [[docs: |
| - | **Continue at your own risk. If you soft-brick your router, you will need to disassemble it to access the serial | + | ==== Method 1: Installation over the network without serial access (Only works with non-SAC2V1K firmware) ==== |
| + | Method 1 doesn' | ||
| - | Connect a network cable between your computer and the blue (switch) port of the router. | + | **WARNING: If you soft-brick your router, you will need to disassemble it to access the serial console in order to recover. You can use installation method 2 in that case.** |
| + | |||
| + | Stock non-SAC2V1K firmware: https:// | ||
| + | ==== Method 1A: Installation using web interface and SSH (only works with non-SAC2V1K firmware) ==== | ||
| + | This is the recommended install method. It does not require setting up a TFTP server and thus is quick and easy, it produces full backups of the router, and it installs dual OSes: main and recovery. The recovery OS will run automatically if the main OS ever gets corrupted, for example due to an interrupted sysupgrade. It also configures the router to attempt a TFTP boot if both OSes are corrupt. | ||
| + | |||
| + | Note that this method must be executed under the WSL (Windows Subsystem for Linux) if you are running Windows. | ||
| + | |||
| + | See instruction here: https:// | ||
| + | |||
| + | ==== Method 1B: Installation using web interface, SSH, and TFTP (only works with non-SAC2V1K firmware) ==== | ||
| + | // | ||
| + | |||
| + | Download the OpenWrt initramfs and sysupgrade (squashfs) images for your router. Install and set up a tftp server (see [[docs: | ||
| + | |||
| + | Connect a network cable between your computer and the blue (switch) port of the router. Configure your computer with static IP address '' | ||
| Login to stock router at '' | Login to stock router at '' | ||
| Line 43: | Line 52: | ||
| From ssh, run these commands to configure a booting attempt via TFTP with fallback to stock firmware: | From ssh, run these commands to configure a booting attempt via TFTP with fallback to stock firmware: | ||
| < | < | ||
| - | fw_setenv ipaddr | + | fw_setenv |
| - | fw_setenv | + | |
| - | fw_setenv bootcmd "tftpboot | + | |
| fw_setenv bootdelay 2 | fw_setenv bootdelay 2 | ||
| </ | </ | ||
| - | Don't reboot the router yet. Install | + | Rename the OpenWrt initramfs image file '' |
| - | -> [[docs: | + | |
| - | Configure your computer with a static IP address (needs to be the same as '' | + | Reboot the router. The router will run as a TFTP client at '' |
| - | + | ||
| - | Download the OpenWrt initramfs image, rename it to '' | + | |
| - | + | ||
| - | Reboot the router. The router will run as a TFTP client at '' | + | |
| - | + | ||
| - | Configure your computer with a static IP like '' | + | |
| After you've confirmed your router is booted to OpenWrt in recovery mode, disable your computer' | After you've confirmed your router is booted to OpenWrt in recovery mode, disable your computer' | ||
| Line 67: | Line 67: | ||
| </ | </ | ||
| - | Next, download | + | Next, use the OpenWrt sysupgrade image file and upgrade to sysupgrade OpenWrt firmware (using luci, etc.). See [[docs: |
| The router will reboot and, if all went well, you'll now have OpenWrt running. The router will have default address '' | The router will reboot and, if all went well, you'll now have OpenWrt running. The router will have default address '' | ||
| - | ==== Method 2: Installation using serial access and TFTP (Works with all firmware versions) ==== | + | ==== Method 2: Installation using serial access and TFTP (works with all firmware versions) ==== |
| Method 2: Install with serial access (Do this if something fails and you can't boot after using method 1) | Method 2: Install with serial access (Do this if something fails and you can't boot after using method 1) | ||
| Open the router and connect to the serial console. Instructions can be found here: https:// | Open the router and connect to the serial console. Instructions can be found here: https:// | ||
| - | Install and set up a tftp server | + | Download the OpenWrt initramfs and sysupgrade (squashfs) images for your router. |
| - | Set a static ip on the ethernet interface | + | Connect |
| - | Download | + | Rename |
| - | + | ||
| - | Connect the wan port of the router to your computer | + | |
| Interrupt U-Boot and run these commands to configure OpenWrt boot (autodetects flash size): | Interrupt U-Boot and run these commands to configure OpenWrt boot (autodetects flash size): | ||
| Line 90: | Line 88: | ||
| </ | </ | ||
| - | And run these commands | + | And run this command |
| < | < | ||
| - | set serverip 10.42.0.1 (You can use whatever ip you set for the computer) | + | set ipaddr 192.168.1.1; set serverip 192.168.1.2; tftpboot |
| - | set ipaddr 10.42.0.10 (Can be any ip as long as it's in the same subnet) | + | |
| - | tftpboot | + | |
| - | bootm | + | |
| </ | </ | ||
| - | After OpenWrt | + | The router will run as a TFTP client at '' |
| + | |||
| + | Next, use the OpenWrt | ||
| The router will reboot and, if all went well, you'll now have OpenWrt running. The router will have default address '' | The router will reboot and, if all went well, you'll now have OpenWrt running. The router will have default address '' | ||
| - | (Based on: github.com/ | + | (Originally based on: github.com/ |
| + | |||
| + | ==== Installation of a recovery OS ==== | ||
| + | An secondary recovery OS (an initramfs OpenWrt image) can be installed on this device. The recovery OS will run automatically if the main OS ever gets corrupted, for example due to an interrupted sysupgrade. | ||
| + | |||
| + | See here for details: https:// | ||
| + | |||
| + | ===== Basic configuration ===== | ||
| + | -> [[docs: | ||
| + | Set up your Internet connection, configure wireless, configure USB port, etc. | ||
| + | |||
| + | ===== Specific Configuration ===== | ||
| + | |||
| + | ==== Network interfaces ==== | ||
| + | The default network configuration is: | ||
| + | ^ Interface Name ^ Description | ||
| + | | br-lan (eth1.1) | LAN & WiFi | 192.168.1.1/ | ||
| + | | wan (eth0.2) | ||
| + | | vlan1 (eth1.1) | ||
| + | | vlan2 (eth0.2) | ||
| + | | radio0 | ||
| + | | radio1 | ||
| + | |||
| + | ==== Switch Ports (for VLANs) | ||
| + | |||
| + | OpenWrt Switch port number 1 is the physical network port labeled Internet (WAN) on the device, numbers 2-5 are the Ethernet ports labeled 1-4 on the device, and number 0 and 6 are internal connections between the switch chip and the CPU (labeled " | ||
| + | |||
| + | By default, '' | ||
| + | |||
| + | ^ Port ^ Switch port ^ | ||
| + | | CPU (eth0) | ||
| + | | WAN | 1 | | ||
| + | | LAN 1 | 2 | | ||
| + | | LAN 2 | 3 | | ||
| + | | LAN 3 | 4 | | ||
| + | | LAN 4 | 5 | | ||
| + | | CPU (eth1) | ||
| + | ==== Performance tuning ==== | ||
| + | |||
| + | In **Network > Firewall > General Settings**, in section **Routing/ | ||
| + | |||
| + | **IMPORTANT: | ||
| + | |||
| + | < | ||
| + | Recent OpenWrt releases use the '' | ||
| + | |||
| + | < | ||
| + | root@OpenWrt: | ||
| + | performance | ||
| + | performance | ||
| + | </ | ||
| + | |||
| + | (Also, the referenced sysfs files (''/ | ||
| - | ===== Performance tuning ===== | + | **OUTDATED INFORMATION FOLLOWS:** |
| - | Enable | + | |
| This router has the same SoC as the Netgear R7800, so thanks to [[https:// | This router has the same SoC as the Netgear R7800, so thanks to [[https:// | ||
| Line 115: | Line 163: | ||
| echo 10 > / | echo 10 > / | ||
| </ | </ | ||
| + | </ | ||
| ===== Hardware ===== | ===== Hardware ===== | ||