# Update Firmware

The firmware loaded on the router by default is Openwrt 23.05.4

#### LAN \*Recommended\*

Connect any of the LAN ports (Preferably LAN 1) on the router to your USB to Ethernet adapter following this wiring diagram:

<figure><img src="https://1886089318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FolH18CdGEWKpuo9G8NHx%2Fuploads%2FzdFudS6KnGAre9WP8fyt%2Fimage.png?alt=media&#x26;token=1193416b-5893-48ec-8e7e-245d77092a1d" alt=""><figcaption></figcaption></figure>

Power on the device and wait for it to boot - please note first boot can be over 1 minute. The network activity LED on the connected LAN port will start flashing once the router has booted. If this does not happen try unplugging and re-plugging the USB to Ethernet adapter.

Using this method the router acts as a DHCP server and allocates your network adapter a client IP.

*Alternatively you can connect to the CBU-Router Access Point.*

## Initial Update to OpenWRT

#### Download Firmware

The firmware has some extra modules included over the default OpenWRT build. These are to enable the USB port (please note, you will still need USB drivers for your device).

You can find the latest default firmware by searching for "HILINK HLK-7628N" [here](https://firmware-selector.openwrt.org/).

#### Modify Firmware

These settings persist even through a reset to default ensuring there is always a way to restore access.

1\) Click the drop down "Customize installed packages and/or first boot script"

<figure><img src="https://1886089318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FolH18CdGEWKpuo9G8NHx%2Fuploads%2Ff8bAgNSr5cwMeefNekMN%2Fimage.png?alt=media&#x26;token=19bbeda1-5c35-4989-8e6b-f4a28c0c0add" alt=""><figcaption><p>Default View</p></figcaption></figure>

2\) Add the following to the box labelled "Installed Packages" ensuring each item has a space between them.

```
kmod-usb-core kmod-usb2
```

* kmod-usb-core installs the base USB drivers
* kmod-usb2 is needed to ensure compatibility with the hardware

<figure><img src="https://1886089318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FolH18CdGEWKpuo9G8NHx%2Fuploads%2F3INp31WEnFmmDHqDTPlF%2Fimage.png?alt=media&#x26;token=20325362-0fe8-47ef-b1b5-ec6f50b053c1" alt=""><figcaption><p>Packages Added</p></figcaption></figure>

3\) Add the following to the "Script to run on first boot (uci-defaults)" box

```
uci set wireless.radio0.cell_density='0'
uci set wireless.default_radio0.ssid='CBU-Router'
uci set wireless.default_radio0.encryption='psk2'
uci set wireless.default_radio0.key='CBUnmanned'
uci set wireless.@wifi-device[0].disabled=0
```

* ***radio0.cell\_density*** is set top default
* ***radio0.ssid*** sets the WiFi AP SSID to "CBU-Router"
* ***radio0.key*** sets the WiFi AP Password to "CBUnmanned"
* ***radio0.encryption*** sets the WiFi AP Security to WPA2
* ***wifi-device\[0].disabled=0*** ensures the WiFi is on by default

<figure><img src="https://1886089318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FolH18CdGEWKpuo9G8NHx%2Fuploads%2FwVHvjF9nCVbCSEteENoB%2Fimage.png?alt=media&#x26;token=6049434d-f69e-4d41-bc50-e2a80123f62f" alt=""><figcaption><p>Add WiFi Options</p></figcaption></figure>

4\) Request build and wait for "Download an image" to have the output and click "SYSUPGRADE" to download the firmware.

<figure><img src="https://1886089318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FolH18CdGEWKpuo9G8NHx%2Fuploads%2FwrSTSG6hjNfUGziizQMC%2Fimage.png?alt=media&#x26;token=1a7d8e92-7532-4a4b-8292-9c725e9cf630" alt=""><figcaption><p>Download Cutom Firmware</p></figcaption></figure>

You should have a file that resembles the following:

*"openwrt-23.05.4-ramips-mt76x8-hilink\_hlk-7628n-squashfs-sysupgrade.bin"*

Where:

* *23.05.4* is the version number
* *ramips* is the bootloader type
* *mt76x8-hilink\_hlk-7628n* is the chipset name
* *squashfs* is the file storage type
* *sysupgrade* shows its a full firmware release

#### Connect to the GUI and update Firmware.

Ensure your device is connected as above and power it on.

Boot times can be up to 1 minute.

The device is accessible on [192.168.1.1](http://192.168.1.1) from a browser with a gateway of 192.168.1.1.

The default username/password is root/blank

[**Web interface instructions**](https://openwrt.org/docs/guide-user/installation/generic.sysupgrade)

1. Navigate to **System → Backup / Flash Firmware → Actions: Flash new firmware image**.
2. Click **Choose File** button to select firmware image.
3. Click **Flash image...** to upload firmware image.
4. Please ensure that no settings are saved
5. [Verify](https://openwrt.org/docs/guide-quick-start/verify_firmware_checksum) firmware image checksum and proceed.
6. Wait until the router comes back online.

Please note that this process can take some time, please leave it powered for 10 minutes once clicking update to ensure the process fully completes.

After you have flashed a generic OpenWRT image its default IP will change to the OpenWRT default of [192.168.1.1 ](http://192.168.1.1)and username/password of root/blank is used.&#x20;

Please use the new IP and login with a browser and set a password.
