Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision | ||
| toh:sinovoip:bananapi_bpi_r3_v1.0_v1.1 [2023/01/15 18:58] – [Installation] garlet | toh:sinovoip:bananapi_bpi_r3_v1.0_v1.1 [2024/02/12 11:13] – external edit | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Sinovoip BananaPi BPi R3 V1.0, V1.1====== | ====== Sinovoip BananaPi BPi R3 V1.0, V1.1====== | ||
| - | + | {{https://wiki.banana-pi.org/ | |
| - | /* This template is intended to be used via https://openwrt.org/ | + | |
| - | /* DO NOT CREATE NEW DEVICEPAGES VIA COPY & PASTE! */ | + | |
| - | /* USE https:// | + | |
| - | + | ||
| - | {{page> | + | |
| - | + | ||
| - | //Write a short, relevant description of the device. Include a technical overview, but avoid marketing buzzwords/ | + | |
| - | + | ||
| - | <WRAP BOX> | + | |
| - | FIXME Any text with a light background (like this one) provides instructions for creating the Details Page. When you have filled in correct/ | + | |
| - | </ | + | |
| - | + | ||
| - | /*****/ | + | |
| - | /* How to add images | + | |
| - | /*****/ | + | |
| - | + | ||
| - | {{media: | + | |
| - | + | ||
| - | <WRAP BOX> | + | |
| - | FIXME | + | |
| - | ===== Getting started with a new Device Page ===== | + | |
| - | - This is an empty template that suggests the information that should be present on a well-constructed Device Page. This means, that **you have to fill it with life and information.** | + | |
| - | - There are several " | + | |
| - | - When there are no more " | + | |
| - | + | ||
| - | ===== Keep the articles modular ===== | + | |
| - | * Please include only model specific information, | + | |
| - | * If you have no time to write certain stuff, link to [[docs: | + | |
| - | * [[docs: | + | |
| - | * DO NOT provide a complete howto here! Instead //groom// the [[docs: | + | |
| - | </ | + | |
| ===== Supported Versions ===== | ===== Supported Versions ===== | ||
| - | ---- datatable ---- | + | <!-- ToH: { |
| - | cols | + | " |
| - | headers | + | " |
| - | align : c,c,c,c,c,c,c | + | " |
| - | filter | + | " |
| - | filter | + | " |
| - | + | | |
| - | ---- | + | } --> |
| /* If no unsupported functions known, comment out the following datatable or delete it. | /* If no unsupported functions known, comment out the following datatable or delete it. | ||
| - | ---- datatable ---- | + | <!-- ToH: { |
| - | cols | + | " |
| - | filter | + | |
| - | filter | + | |
| - | ---- */ | + | " |
| + | " | ||
| + | } --> | ||
| - | ===== Experimental Versions ===== | + | * Two 1G/2.5G capable SFP cages, one of them connected via the on-board MT7531 switch. |
| - | /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * | + | * PCIe gen-3 x2 Key-M M2/NGFF socket |
| - | | + | |
| - | | + | |
| - | | + | |
| - | | + | |
| - | * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ | + | |
| - | + | ||
| - | //None at this time.// | + | |
| - | + | ||
| - | ===== Hardware Highlights ===== | + | |
| - | ---- datatable ---- | + | |
| - | cols : Model, Versions, CPU, CPU MHz, CPU Cores_numcores, | + | |
| - | header | + | |
| - | align : c, | + | |
| - | filter | + | |
| - | filter | + | |
| - | ---- | + | |
| + | * mPCIe slot with SIM card slot and USB 2.0 wired (**no actual PCIe signals on the mPCIe socket!**) | ||
| ===== Installation ===== | ===== Installation ===== | ||
| /* stable release */ | /* stable release */ | ||
| - | /* uncomment once stable release is available | + | <!-- ToH: { |
| - | ---- datatable ---- | + | " |
| - | cols | + | " |
| - | headers | + | " |
| - | align : c,c,c | + | " |
| - | filter | + | " |
| - | filter | + | |
| - | filter | + | } --> |
| - | ---- | + | |
| - | */ | + | |
| /* snapshot */ | /* snapshot */ | ||
| - | /* delete once stable release is available | + | /* delete once stable release is available |
| - | ---- datatable ---- | + | <!-- ToH: { |
| - | cols | + | " |
| - | headers | + | " |
| - | align : c,c,c | + | " |
| - | filter | + | " |
| - | filter | + | |
| - | ---- | + | } --> |
| + | */ | ||
| - | Tip: firmware-selector.openwrt.org can create a custom snapshot with packages like luci-ssl | + | Tip: [[https://firmware-selector.openwrt.org/? |
| - Unzip bananapi_bpi-r3-sdcard and write the image on a micro sd card using: | - Unzip bananapi_bpi-r3-sdcard and write the image on a micro sd card using: | ||
| - | * on linux: dd if=.....img of=/dev/... | + | * on linux: dd if=openwrt-mediatek-filogic-bananapi_bpi-r3-sdcard.img of=/ |
| * on win: https:// | * on win: https:// | ||
| - Insert the sd card | - Insert the sd card | ||
| Line 106: | Line 61: | ||
| - Connect power cord and wait boot (~20s) | - Connect power cord and wait boot (~20s) | ||
| - ssh the device and type: < | - ssh the device and type: < | ||
| - | - Wait reboot and nor flashing ( | + | - Wait reboot and nor flashing (~90s) |
| - Disconnect power | - Disconnect power | ||
| - To install on NAND (128 MB) (optional): | - To install on NAND (128 MB) (optional): | ||
| Line 112: | Line 67: | ||
| - Connect power cord and wait boot (~20s) | - Connect power cord and wait boot (~20s) | ||
| - ssh the device and type: < | - ssh the device and type: < | ||
| - | - Wait reboot and nor flashing ( | + | - Wait reboot and nand flashing (~90s) |
| - Disconnect power | - Disconnect power | ||
| - To install on eMMC (8192 MB) (optional): | - To install on eMMC (8192 MB) (optional): | ||
| Line 118: | Line 73: | ||
| - Connect power cord and wait boot (~20s) | - Connect power cord and wait boot (~20s) | ||
| - ssh the device and type: < | - ssh the device and type: < | ||
| - | - Wait reboot and nor flashing ( | + | - Wait reboot and eMMC flashing (~90s) |
| - Disconnect power | - Disconnect power | ||
| - | - Set the boot switch to your favorite location | + | - Set the boot switch to your favorite location |
| Line 126: | Line 81: | ||
| ==== Flash Layout ==== | ==== Flash Layout ==== | ||
| - | <WRAP BOX> | + | # lsblk /dev/mmcblk0 |
| - | FIXME //[[: | + | ^ START ^ SIZE ^ FSTYPE ^ NAME ^ PARTLABEL ^ |
| + | | | 7.3 GiB | | mmcblk0 | ||
| + | | 34 | 4.0 MiB | | ├mmcblk0p128 | | | ||
| + | | 8192 | 0.5 MiB | | ├mmcblk0p1 | ubootenv | | ||
| + | | 9216 | 2.0 MiB | | ├mmcblk0p2 | factory | | ||
| + | | 13312 | 4.0 MiB | | ├mmcblk0p3 | fip uboot | | ||
| + | | 24576 | 32.0 MiB | | ├mmcblk0p4 | recovery | | ||
| + | | 131072 | 104.0 MiB | | ├mmcblk0p5 | production | | ||
| + | | 141856 | 6.1 MiB | squashfs | ├mmcblk0p65 | /rom | | ||
| + | | 154296 | 92.7 MiB | f2fs | ||
| + | | | 128.0 MiB | | NAND | | | ||
| + | | | 122.5 MiB | ubi | ├mtdblock0 | / | | ||
| + | | | 2.0 MiB | | ├mtdblock1 | uboot | | ||
| + | | | 3.0 MiB | | ├mtdblock2 | | | ||
| + | | | 0.5 MiB | | └mtdblock3 | bl2 second stage bootloader | | ||
| + | | | 32.0 MiB | | NOR | | | ||
| + | | | 20.0 MiB | | ├mtdblock0 | | | ||
| + | | 10816 | 5.6 MiB | squashfs | └mtdblock0p1 | | | ||
| + | | | 9.1 MiB | | ├mtdblock1 | | | ||
| + | | | 10.5 MiB | | ├mtdblock2 | | | ||
| + | | | 0.5 MiB | | ├mtdblock3 | | | ||
| + | | | 0.5 MiB | | ├mtdblock4 | | | ||
| + | | | 0.2 MiB | | ├mtdblock5 | | | ||
| + | | | 0.2 MiB | | └mtdblock6 | | | ||
| - | Please | + | |
| - | </WRAP> | + | To create data partition and resize eMMC f2fs, boot on NOR(0000) or NAND(1010) and type: |
| + | < | ||
| + | parted / | ||
| + | # say F to fix gpt global size | ||
| + | reboot | ||
| + | |||
| + | mount / | ||
| + | # if resize.f2fs fails, a sysupgrade may fix | ||
| + | </ | ||
| + | Now boot on eMMC(0110) and check if it worked ! | ||
| + | |||
| + | |||
| + | |||
| + | Get [[https:// | ||
| + | < | ||
| ===== Upgrading OpenWrt ===== | ===== Upgrading OpenWrt ===== | ||
| Line 165: | Line 157: | ||
| ===== Specific Configuration ===== | ===== Specific Configuration ===== | ||
| - | <WRAP BOX> | ||
| - | FIXME Please fill in real values for this device, then remove the EXAMPLEs | ||
| ==== Network interfaces ==== | ==== Network interfaces ==== | ||
| The default network configuration is: | The default network configuration is: | ||
| ^ Interface Name ^ Description | ^ Interface Name ^ Description | ||
| - | | br-lan | + | | br-lan |
| - | | vlan0 (eth0.0) | + | | br-wan |
| - | | vlan1 (eth0.1) | + | |
| - | | wl0 | EXAMPLE WiFi | EXAMPLE Disabled | + | |
| - | </ | + | ==== Ports ==== |
| + | ^ Port Name ^ Location | ||
| + | | eth1 | cage 1 | | ||
| + | | sfp2 | cage 2 | | ||
| + | | wan | 0 | | ||
| + | | lan1 | 1 | | ||
| + | | lan2 | 2 | | ||
| + | | lan3 | 3 | | ||
| + | | lan4 | 4 | | ||
| - | ==== Switch Ports (for VLANs) ==== | ||
| - | <WRAP BOX> | ||
| - | FIXME Please fill in real values for this device, then remove the EXAMPLEs | ||
| - | |||
| - | Numbers 0-3 are Ports 1-4 as labeled on the unit, number 4 is the Internet (WAN) on the unit, 5 is the internal connection to the router itself. Don't be fooled: Port 1 on the unit is number 3 when configuring VLANs. vlan0 = eth0.0, vlan1 = eth0.1 and so on. | ||
| - | ^ Port ^ Switch port ^ | ||
| - | | Internet (WAN) | EXAMPLE 4 | | ||
| - | | LAN 1 | EXAMPLE 3 | | ||
| - | | LAN 2 | EXAMPLE 2 | | ||
| - | | LAN 3 | EXAMPLE 1 | | ||
| - | | LAN 4 | EXAMPLE 0 | | ||
| - | |||
| - | </ | ||
| ==== Buttons ==== | ==== Buttons ==== | ||
| -> [[docs: | -> [[docs: | ||
| Here, we merely name the buttons, so we can use them in the above Howto. | Here, we merely name the buttons, so we can use them in the above Howto. | ||
| - | |||
| - | <WRAP BOX> | ||
| - | FIXME Please fill in real values for this device, then remove the EXAMPLEs | ||
| The Sinovoip BananaPi BPi R3 has the following buttons: | The Sinovoip BananaPi BPi R3 has the following buttons: | ||
| ^ BUTTON | ^ BUTTON | ||
| - | | EXAMPLE | + | | Reset button |
| - | | EXAMPLE Secure Easy Setup | + | | WPS button |
| - | | EXAMPLE No buttons at all. | - | | + | | boot switch (x4) | - | |
| - | + | ||
| - | </ | + | |
| ===== Hardware ===== | ===== Hardware ===== | ||
| ==== Info ==== | ==== Info ==== | ||
| - | <WRAP BOX> | ||
| - | FIXME | ||
| - | - This table is automatically generated, **once the correct filters for Brand and Model are set.** | ||
| - | - If you see " | ||
| - | - If you still don't see a table here, or a table filled with ' | ||
| - | - If you see a table with the desired device data, everything is OK and you can delete this text and the ''< | ||
| - | - If it still doesn' | ||
| - | </ | ||
| - | ---- datatemplatelist dttpllist ---- | + | <!-- ToH: { |
| - | template: meta:template_datatemplatelist | + | " |
| - | cols | + | " |
| - | filter | + | " |
| - | filter | + | " |
| - | filter | + | " |
| - | ---- | + | |
| + | } --> | ||
| + | ^ Task ^ Power Consumption (Wh) ^ | ||
| + | | Idle | 4.0 | | ||
| + | | 2.4 Ghz | 0.2 .. 1.0 | | ||
| + | | 5.0 Ghz | 0.2 .. 1.0 | | ||
| + | | OpenSSL | 0.2 | | ||
| ==== Photos ==== | ==== Photos ==== | ||
| Line 232: | Line 208: | ||
| /* e.g. {{: | /* e.g. {{: | ||
| /* Thanks, your wiki administration - Oct. 2015 */ | /* Thanks, your wiki administration - Oct. 2015 */ | ||
| - | |||
| - | // | ||
| - | **Insert photo of front of the casing** | ||
| //Back://\\ | //Back://\\ | ||
| - | **Insert photo of back of the casing** | + | {{https://wiki.banana-pi.org/ |
| - | + | ||
| - | //Backside label://\\ | + | |
| - | **Insert photo of backside label** | + | |
| //Main PCB://\\ | //Main PCB://\\ | ||
| - | **Insert photo of PCB** | + | {{https:// |
| ==== Serial ==== | ==== Serial ==== | ||
| Line 260: | Line 230: | ||
| -> [[docs: | -> [[docs: | ||
| - | How to connect to the JTAG Port of this specific device:\\ | + | JTAG pins are exposed as part of the 26-pin GPIO pin header. As JTAG function is shared |
| - | **Insert photo of PCB with markings for JTAG port** | + | |
| + | Find OpenOCD scripts provided by MediaTek [[https:// | ||
| ===== Bootloader mods ===== | ===== Bootloader mods ===== | ||
| -> [[docs: | -> [[docs: | ||
| + | Boot process: | ||
| + | - Boot ROM (burned into MT7986A SoC, cannot be changed): loads first block of storage device, selected by bootstrap pins connected to switches on the R3 | ||
| + | - ARM Trusted Firmware BL2: starts and initializes the CPU and DRAM, then loads next stage | ||
| + | - ARM Trusted Firmware BL3: contains ARM Trusted Firmware run-time (BL31) and U-Boot (BL33) | ||
| + | - [[: | ||
| + | |||
| + | All parts of the boot process apart from the Boot ROM and the memory initialization function in ARM Trusted Firmware BL2 are provided in source and **are built from source** in the OpenWrt build system. | ||
| + | |||
| + | The U-Boot loader built from source with the OpenWrt image comes with a recovery/ | ||
| ===== Hardware mods ===== | ===== Hardware mods ===== | ||
| Line 567: | Line 547: | ||
| //Space for additional notes, links to forum threads or other resources.// | //Space for additional notes, links to forum threads or other resources.// | ||
| - | * ... | ||
| ===== Tags ===== | ===== Tags ===== | ||
| - | <WRAP BOX> | + | [[meta:tags|How to add tags]] |
| - | FIXME //Add tags below, then remove this fixme.// | + | |
| - | </ | + | |
| - | [[meta: | + | {{tag>4core armv8 MT7986 4nic sfp 1sim 8ant detachableantenna wifi6 802.11ax 802.11bgn 2048ram 32flash 128nand 8192emmc usb3.0 2usb m.2 fan 2button gpio microsd 12v_powered mediatek 7Port GigabitEthernet 2.5GigabitEthernet lte MiniPCIexpress DevBoard Filogic 2NIC hwVLAN 2WNIC TRNG crypto Serial SPI DualFirmware}} |
| - | {{tag>EXAMPLETAG}} | + | |