See https://openwrt.org/docs/guide-user/additional-software/imagebuilder#prerequisites for instructions.
https://downloads.openwrt.org/releases/21.02.2/targets/ramips/mt7621/openwrt-21.02.2-ramips-mt7621-ubnt_unifi-6-lite-squashfs-sysupgrade.bin
go to https://downloads.openwrt.org/releases/21.02.2/targets/ramips/mt7621).openwrt-imagebuilder-*.tar.xz
(e.g. https://downloads.openwrt.org/releases/21.02.2/targets/ramips/mt7621/openwrt-imagebuilder-21.02.2-ramips-mt7621.Linux-x86_64.tar.xz).Example:
$ bash ./build_cros_openwrt_os_image.sh https://downloads.openwrt.org/releases/21.02.2/targets/ramips/mt7621/openwrt-imagebuilder-21.02.2-ramips-mt7621.Linux-x86_64.tar.xz
ubnt_unifi-6-lite
)Example:
$ bash ./build_cros_openwrt_os_image.sh https://downloads.openwrt.org/releases/21.02.2/targets/ramips/mt7621/openwrt-imagebuilder-21.02.2-ramips-mt7621.Linux-x86_64.tar.xz ubnt_unifi-6-lite
/tmp/openwrt_img_building/bin/
. Depending on the build profile for the device, it may create multiple images. See the device-specific installation documentation in order to determine which image you should use.Custom-built images are installed the same way as normal OpenWrt images (offical docs).
Follow the instructions on the device's info page on the OpenWrt wiki. Just be sure to use the corresponding custom image binary instead of one downloaded from the OpenWrt image repository.
Follow the instructions on the device's info page on the OpenWrt wiki, but in general it should be the following steps:
scp
to copy the custom image (should have the .bin
file extension) to the router's /tmp
directory.sysupgrade /tmp/your_custom_image.bin
The CROS customizations will disable the router's DHCP server and not turn on any wireless networks, but will configure the device to connect to act as a DHCP client and thus allow it to be accessed via ssh through other networks it is physically connected to (such as a lab network).
As long as you know the IP address of the router and can connect to the network the router is connected to, you can ssh into the router as the root
user and the regular cros testing_rsa private key. This is the same way DUTs and Gale routers are accessed.
If you do not know the IP address of the router, you will need to obtain it by checking the network the router is connected to and identify the router using its MAC address. It is recommended configure the parent network to statically assign the router a consistent IP based on its MAC address for long-term usage.