- OpenWRT Raspberry Pi4 4/8GB
- BT Whole Home for wifi mesh
- USB 3.0 SSD in place of microSD
- Download and image to microSD current Raspbian OS
wget https://downloads.raspberrypi.org/raspios_lite_armhf_latest
Copy the file to the microSD, note check that you have the correct device, should be something like mmcblk0 for the SD card
dd bs=4M if=raspios_lite_armhf_latest of=/dev/mmcblkX conv=fsync
- Insert the micoSD and boot the system and login, default user name is pi, with password raspberry
- Perform the update to raspbian
sudo apt update && sudo apt upgradesudo
sudo rpi-update
sudo reboot
How to compile OpenWRT for Raspberry Pi4 (64bit) with USB NIC support:
- No wireless using BT mesh
- Support for USB3 Ethernet Adapter
Steps:
Setup the Build Environment
- Login into OS after installation. Open Terminal Window and type the following commands:
- sudo apt-get update
- sudo apt-get install git-core subversion mercurial build-essential libssl-dev libncurses5-dev unzip gawk zlib1g-dev
- unset SED
- unset GREP_OPTIONS
- export GREP_OPTIONS=
- export PATH=$PATH:~/openwrt/openwrt/staging_dir/host/bin
- export PATH=$PATH:~/openwrt/openwrt/staging_dir/toolchain-mips_34kc_gcc-5.3.0_musl-1.1.16
- Install sublime text 3 | www.sublimetext.com
- Install Balena Etcher | https://www.balena.io/etcher
Install OpenWRT Source from GIT:
From OpenWRT Source Tree
- cd openwrt
- ./scripts/feeds update -a
- ./scripts/feeds install -a
To create a custom banner:
- Generate ACSII text banner.
- Edit openwrt/package/base-files/files/etc" and paste your ACSII text
Run OpenWRT Configuration:
- make menuconfig
Items we need in OpenWRT Configuration:
-
Target System = Broadcom BCM27xx
-
Subtarget = BCM2711 boards 64bit
-
Target Profile = Raspberry Pi 4b
-
Target Images = squashfs
-
Kernel Modules - -- USB Support = kmod-usb-hid = kmod-usb-net = kmod-usb-net-asix = kmod-usb-net-asix-ax88179 = kmod-usb2 = kmod-usb3
-
Libraries -- libssh -- libssh2
-
LUCI - -- Collections - = luci = luci-ssl-openssl
-
Save
-
Exit
-
make (or to use multiple cores) make -jx (where x = cpu cores+1)
How to burn the image to your card and boot
- Download and install Etcher: https://www.balena.io/etcher
- Burn the image file from /openwrt/bin/targets/bcm27xx/
How to Overclock
- Downlaod and install Sublime 3: www.sublimetext.com
- Edit config.txt
- Add:
[pi4] over_voltage=6 arm_freq=2147
How to create a new SSH key pair (private/public)
- ssh-keygen
- pick location to save
- enter passphrase (optional)
- Using Web Interface, go to the Administration tab
- Under Services sub-tab, Enable SSHd in the Secure Shell Section
- Paste your public key in the authorized key of the SSHD section that has now expanded.
- Save and Apply settings
How to login and setup the WAN interface:
ref: https://medium.com/openwrt-iot/lede-o...
- Login into the web interface: https://192.168.1.1
- Network - Interfaces - Add new interface
- WAN and select eth1 from interface list.
- Select DHCP Client as protocol
- Select WAN as FW zone in FW setting tab