How To Compile and Install OpenWRT For The Raspberry Pi 4b
OpenWRT Raspberry Pi4
How to compile OpenWRT for Raspberry Pi4 (64bit) with USB NIC support:
- No wireless (internal antennae is not very strong) - using old router as standalone AP
- Support for USB3 Ethernet Adapter
Note: These are the stpes I used in LinuxMint, but should work for any Debian based OS.
Steps:
Setup the Build Environment
1. Login into OS after installation. Open Terminal Window and type the following commands:
2. sudo apt-get update
3. sudo apt-get install git-core subversion mercurial build-essential libssl-dev libncurses5-dev unzip gawk zlib1g-dev
4. unset SED
5. unset GREP_OPTIONS
6. export GREP_OPTIONS=
7. export PATH=$PATH:~/openwrt/openwrt/staging_dir/host/bin
8. export PATH=$PATH:~/openwrt/openwrt/staging_dir/toolchain-mips_34kc_gcc-5.3.0_musl-1.1.16
9. Install sublime text 3 | www.sublimetext.com
10. Install Balena Etcher | https://www.balena.io/etcher
Install OpenWRT Source from GIT:
1. git clone https://github.com/openwrt/openwrt.git
From OpenWRT Source Tree
1. cd openwrt
2. ./scripts/feeds update -a
3. ./scripts/feeds install -a
To create a custom banner:
1. Generate ACSII text banner.
2. Edit openwrt/package/base-files/files/etc" and paste your ACSII text
Run OpenWRT Configuration:
1. make menuconfig
Items we need in OpenWRT Configuration:
1. Target System = Broadcom BCM27xx
2. Subtarget = BCM2711 boards 64bit
3. Target Profile = Raspberry Pi 4b
4. Target Images = squashfs
5. Kernel Modules -
-- USB Support = kmod-usb-hid
= kmod-usb-net
= kmod-usb-net-asix
= kmod-usb-net-asix-ax88179
= kmod-usb2
= kmod-usb3
6. Libraries
-- libssh
-- libssh2
7. LUCI -
-- Collections -
= luci
= luci-ssl-openssl
8. Save
9. Exit
10. make (or to use multiple cores) make -jx (where x = cpu cores+1)
How to burn the image to your card and boot
1. Download and install Etcher: https://www.balena.io/etcher
2. Burn the image file from /openwrt/bin/targets/bcm27xx/
How to Overclock
1. Downlaod and install Sublime 3: www.sublimetext.com
2. Edit config.txt
3. Add:
[pi4]
over_voltage=6
arm_freq=2147
How to create a new SSH key pair (private/public)
1. ssh-keygen
2. pick location to save
3. enter passphrase (optional)
4. Using Web Interface, go to the Administration tab
5. Under Services sub-tab, Enable SSHd in the Secure Shell Section
6. Paste your public key in the authorized key of the SSHD section that has now expanded.
7. Save and Apply settings
How to login and setup the WAN interface:
ref: https://medium.com/openwrt-iot/lede-openwrt-using-raspberry-pi-as-firewall-f63b83a4b0c5
1. Login into the web interface: https://192.168.1.1
2. Network - Interfaces - Add new interface
3. WAN and select eth1 from interface list.
4. Select DHCP Client as protocol
5. Select WAN as FW zone in FW setting tab
Видео How To Compile and Install OpenWRT For The Raspberry Pi 4b канала late_nite_tek
How to compile OpenWRT for Raspberry Pi4 (64bit) with USB NIC support:
- No wireless (internal antennae is not very strong) - using old router as standalone AP
- Support for USB3 Ethernet Adapter
Note: These are the stpes I used in LinuxMint, but should work for any Debian based OS.
Steps:
Setup the Build Environment
1. Login into OS after installation. Open Terminal Window and type the following commands:
2. sudo apt-get update
3. sudo apt-get install git-core subversion mercurial build-essential libssl-dev libncurses5-dev unzip gawk zlib1g-dev
4. unset SED
5. unset GREP_OPTIONS
6. export GREP_OPTIONS=
7. export PATH=$PATH:~/openwrt/openwrt/staging_dir/host/bin
8. export PATH=$PATH:~/openwrt/openwrt/staging_dir/toolchain-mips_34kc_gcc-5.3.0_musl-1.1.16
9. Install sublime text 3 | www.sublimetext.com
10. Install Balena Etcher | https://www.balena.io/etcher
Install OpenWRT Source from GIT:
1. git clone https://github.com/openwrt/openwrt.git
From OpenWRT Source Tree
1. cd openwrt
2. ./scripts/feeds update -a
3. ./scripts/feeds install -a
To create a custom banner:
1. Generate ACSII text banner.
2. Edit openwrt/package/base-files/files/etc" and paste your ACSII text
Run OpenWRT Configuration:
1. make menuconfig
Items we need in OpenWRT Configuration:
1. Target System = Broadcom BCM27xx
2. Subtarget = BCM2711 boards 64bit
3. Target Profile = Raspberry Pi 4b
4. Target Images = squashfs
5. Kernel Modules -
-- USB Support = kmod-usb-hid
= kmod-usb-net
= kmod-usb-net-asix
= kmod-usb-net-asix-ax88179
= kmod-usb2
= kmod-usb3
6. Libraries
-- libssh
-- libssh2
7. LUCI -
-- Collections -
= luci
= luci-ssl-openssl
8. Save
9. Exit
10. make (or to use multiple cores) make -jx (where x = cpu cores+1)
How to burn the image to your card and boot
1. Download and install Etcher: https://www.balena.io/etcher
2. Burn the image file from /openwrt/bin/targets/bcm27xx/
How to Overclock
1. Downlaod and install Sublime 3: www.sublimetext.com
2. Edit config.txt
3. Add:
[pi4]
over_voltage=6
arm_freq=2147
How to create a new SSH key pair (private/public)
1. ssh-keygen
2. pick location to save
3. enter passphrase (optional)
4. Using Web Interface, go to the Administration tab
5. Under Services sub-tab, Enable SSHd in the Secure Shell Section
6. Paste your public key in the authorized key of the SSHD section that has now expanded.
7. Save and Apply settings
How to login and setup the WAN interface:
ref: https://medium.com/openwrt-iot/lede-openwrt-using-raspberry-pi-as-firewall-f63b83a4b0c5
1. Login into the web interface: https://192.168.1.1
2. Network - Interfaces - Add new interface
3. WAN and select eth1 from interface list.
4. Select DHCP Client as protocol
5. Select WAN as FW zone in FW setting tab
Видео How To Compile and Install OpenWRT For The Raspberry Pi 4b канала late_nite_tek
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
![OpenWRT Compile Update for Raspberry Pi 4b](https://i.ytimg.com/vi/BP0WLSiQDwk/default.jpg)
![Сборка прошивок OpenWrt руками: для примера добавляем OpenVPN в прошивку TP-Link 841 v8](https://i.ytimg.com/vi/0NOITqpZhqo/default.jpg)
![Raspberry Pi Projects](https://i.ytimg.com/vi/ZDfhcA0SCiM/default.jpg)
![How to build a virtual home network with OpenWrt in Virtualbox](https://i.ytimg.com/vi/JwPD1GWw5go/default.jpg)
![You call THAT a router?! 2 Tiny Raspberry Pi Routers](https://i.ytimg.com/vi/w7teLVwi408/default.jpg)
![PiVPN : How to Run a VPN Server on a $35 Raspberry Pi!](https://i.ytimg.com/vi/15VjDVCISj0/default.jpg)
![Расширяем функциональность роутера на примере TP-Link TL-WR841ND](https://i.ytimg.com/vi/_9H6fhhfFbw/default.jpg)
![VMware on a Raspberry Pi!?!?! (ESXi Install)](https://i.ytimg.com/vi/6aLyZisehCU/default.jpg)
![OpenWRT - Raspberry Pi Installation - Single Network Port with VLAN](https://i.ytimg.com/vi/zOMr6Wd7e9o/default.jpg)
![Set Up an Ethical Hacking Kali Linux Kit on the Raspberry Pi 3 B+ [Tutorial]](https://i.ytimg.com/vi/5ExWmpFnAnE/default.jpg)
![TwisterOS | An Amazing OS For Raspberry Pi](https://i.ytimg.com/vi/93z7_NEVvCM/default.jpg)
![2020 Getting started with pfsense 2.4 Tutorial: Network Setup, VLANs, Features & Packages](https://i.ytimg.com/vi/fsdm5uc_LsU/default.jpg)
![Raspberry Pi 4 OpenMediaVault NAS](https://i.ytimg.com/vi/bpvlEbdA6qI/default.jpg)
![Raspberry Pi 4 as a Home Router: OpenWRT + AdGuard Home](https://i.ytimg.com/vi/CB0mUo51lv8/default.jpg)
![WiFi 6 on the Raspberry Pi CM4 makes it Fly! MORE THAN 1 Gbps!](https://i.ytimg.com/vi/csI19aOJEik/default.jpg)
![Install Ubuntu Mate On the Raspberry Pi 4 with Desktopify The Fastest Desktop Experience For The Pi4](https://i.ytimg.com/vi/zo5eReiXYuo/default.jpg)
![Raspberry Pi Router And Firewall Using nftables](https://i.ytimg.com/vi/7riJkp5q1-M/default.jpg)
![OpenWRT - Install & Configure USB to Ethernet Adapter - Raspberry Pi](https://i.ytimg.com/vi/TsOpO6O4xDE/default.jpg)
![OpenWRT Adblock Installation and Configuraiton](https://i.ytimg.com/vi/lzjZ4b5xMwY/default.jpg)
![Intro to OpenWRT by Ronaldo Nunez](https://i.ytimg.com/vi/iJqMEjVXKZU/default.jpg)