Playback starts YouTube’s embedded player (privacy-enhanced mode).
How To Compile and Install OpenWRT For The Raspberry Pi 4b
Channellate_nite_tekDescription from the creator
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 | balena.io/etcher
Install OpenWRT Source from GIT:
1. git clone 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: 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: medium.com/openwrt-iot/lede-openwrt-using-raspb…
1. Login into the web interface: 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 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 | balena.io/etcher
Install OpenWRT Source from GIT:
1. git clone 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: 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: medium.com/openwrt-iot/lede-openwrt-using-raspb…
1. Login into the web interface: 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
About this tutorial
late_nite_tek published this 43:46 video tutorial on April 10, 2020. It has been watched 30,314 times on YouTube.
- Channel
- late_nite_tek
- Category
- People & Blogs
- Duration
- 43:46
- Published
- April 10, 2020
- Views
- 30,314
- Likes
- 392
Tags
Share
This tutorial in other languages
- FRComment compiler et installer OpenWRT pour le Raspberry Pi 4b
- ESCómo compilar e instalar 4b OpenWRT para la Frambuesa Pi
- PTComo compilar e instalar OpenWRT For The Raspberry Pi 4b
- ITCome compilare ed installare OpenWRT For The Raspberry Pi 4b
- DEWie kompilieren und installieren OpenWRT Für die Raspberry Pi 4b
- NLHoe te compileren en te installeren OpenWRT Voor De Raspberry Pi 4b
- RUКак собрать и установить OpenWRT Для Малиновый Pi 4б
- PLJak skompilować i zainstalować OpenWRT Dla malina Pi 4b
- JAどのようにコンパイルし、ザ・ラズベリーパイ4bのためにOpenWrtのをインストールします。
- ARكيفية تجميع وتركيب OpenWRT لوالتوت بي 4B
- HIकैसे करने के लिए संकलित करें और स्थापित करें OpenWRT को The रास्पबेरी Pi 4 बी
- IDCara Kompilasi dan Install OpenWRT Untuk Raspberry Pi 4b