prerequisites:
- Linux system for build root with all necessary modules according to Openwrt Project Build system
- plus these modules: libjansson-dev liblzma-dev libldap2-dev libcap-dev libpam0g-dev libsnmp35 python2.7-dev swig (Ubuntu 20.04 LTS)
- mini sd card 4 GB
- uart cable
- mkdir /openwrt; cd /openwrt
- git clone https://git.openwrt.org/openwrt/openwrt.git
- cd openwrt
- ./scripts/feeds update -a
- ./scripts/feeds install -a
- make menuconfig
- 6.1. Target system: - Mediatek Ralink ARM
- 6.2. Subtarget: MT7623
- 6.3. Target Profile (Bpi Banana Pi R2)
- 6.4. Target Images: select Ramdisk, squashfs, ext4 and tar.gz images
- 6.5. image configuration: under “Separate feed repositories” Enable desired packages (luci, routing, telephony)
- 6.6. Base system: I have added block-mount, blockd and mtd
- 6.7. boot loaders: mt7623n-preloader and u-boot-mt7623n_bpir2
- 6.8 LuCI
- 6.8.1. Collections: luci
- 6.8.2. Modules: luci-base, -mod-network, -mod-status, -mod-system also select approbiate translations
- 6.8.3. Applications as required (ddns, firewall, openvpn, opkg)
- 6.9. network/vpn openvpn-openssl (used by me, most hidden)
- close menuconfig (esc, esc, save)
- if you have config files from previous running version, put them with full path to ./files/ (for instance ./files/etc/config/network)
- make
- gunzip ./build_dir/target…/linux_m…/tmp/openwrt-mediatek-mt723-bananapi_bpi-r2-sdcard.img.gz (the dots indicating tab key)
- insert sd-card, note: umount eventually automounted volumes
- sudo dd if=./build_dir/target…/linux_m…/tmp/openwrt-mediatek-mt723-bananapi_bpi-r2-sdcard.img of=/dev/sdb
- insert sd card in your board and boot under uart control. if all is running, connect with telnet or serial, add root password and modify the settings along your needs (for instance I had to install the luci translations afterwards)
- you can easily transfer the card image to mmc using u-boot option “transfer from sd to mmc” during reboot (with serial connection only)