Skip to content

Instantly share code, notes, and snippets.

@benders
Created February 4, 2023 15:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save benders/51c69db6d39f35b80a721505ba5290e6 to your computer and use it in GitHub Desktop.
Save benders/51c69db6d39f35b80a721505ba5290e6 to your computer and use it in GitHub Desktop.

Upgrading OpenWRT on the DFRobot CM4 IoT Router Carrier Board Mini

The CM4 IoT Router Carrier Board Mini is a great little board, easily capable of handling gigabit routing with OpenWRT. But the stock Raspberry Pi images from OpenWRT won't work, because an additional driver is needed for the second network interface. Luckily, the OpenWRT team has made it very easy to build custom images.

Go to the OpenWRT Firmware Selector, choose the Raspberry Pi 4B/400/4CM (64bit) model, then open the twist-out to "Customize installed packages"

Add these packages:

bcm27xx-userland brcmfmac-firmware-usb kmod-brcmutil kmod-cfg80211 kmod-r8169 kmod-usb-dwc2 r8169-firmware

Request a build, then apply the sysupgrade as usual.

base-files bcm27xx-gpu-fw bcm27xx-userland brcmfmac-firmware-usb busybox ca-bundle cgi-io cypress-firmware-43455-sdio cypress-nvram-43455-sdio-rpi-4b dnsmasq dropbear e2fsprogs ethtool firewall fstools fwtool getrandom hostapd-common ip6tables iptables iw iwinfo jshn jsonfilter kernel kmod-brcmfmac kmod-brcmutil kmod-cfg80211 kmod-fs-vfat kmod-hid kmod-hid-generic kmod-input-core kmod-input-evdev kmod-ip6tables kmod-ipt-conntrack kmod-ipt-core kmod-ipt-nat kmod-ipt-offload kmod-lib-crc-ccitt kmod-libphy kmod-mii kmod-mmc kmod-nf-conntrack kmod-nf-conntrack6 kmod-nf-flow kmod-nf-ipt kmod-nf-ipt6 kmod-nf-nat kmod-nf-reject kmod-nf-reject6 kmod-nls-base kmod-nls-cp437 kmod-nls-iso8859-1 kmod-nls-utf8 kmod-phy-realtek kmod-ppp kmod-pppoe kmod-pppox kmod-r8169 kmod-slhc kmod-sound-arm-bcm2835 kmod-sound-core kmod-usb-core kmod-usb-dwc2 kmod-usb-gadget kmod-usb-hid libblkid1 libblobmsg-json20210516 libc libcap libcomerr0 libevdev libext2fs2 libf2fs6 libgcc1 libip4tc2 libip6tc2 libiwinfo-data libiwinfo-lua libiwinfo20210430 libjson-c5 libjson-script20210516 libkmod liblua5.1.5 liblucihttp-lua liblucihttp0 libnl-tiny1 libopenssl1.1 libpci libpthread librt libsmartcols1 libss2 libubox20210516 libubus-lua libubus20210630 libuci20130104 libuclient20201210 libudev-zero libusb-1.0-0 libustream-wolfssl20201210 libuuid1 libuv1 libwebsockets-full libwolfssl5.2.0.99a5b54a libxtables12 logd lua luci luci-app-firewall luci-app-opkg luci-app-ttyd luci-base luci-i18n-base-da luci-i18n-base-de luci-i18n-base-en luci-i18n-base-fr luci-i18n-base-ja luci-i18n-base-zh-cn luci-lib-base luci-lib-ip luci-lib-jsonc luci-lib-nixio luci-mod-admin-full luci-mod-network luci-mod-status luci-mod-system luci-proto-ipv6 luci-proto-ppp luci-ssl luci-theme-bootstrap mkf2fs mtd netifd odhcp6c odhcpd-ipv6only openwrt-keyring opkg partx-utils pciids pciutils ppp ppp-mod-pppoe procd px5g-wolfssl r8169-firmware rpcd rpcd-mod-file rpcd-mod-iwinfo rpcd-mod-luci rpcd-mod-rrdns ttyd ubox ubus ubusd uci uclient-fetch uhttpd uhttpd-mod-ubus urandom-seed usbids usbutils usign wireless-regdb wpad-basic-wolfssl zlib
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment