en:bpi-r3mini:start
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
en:bpi-r3mini:start [2024/01/26 18:38] – frank | en:bpi-r3mini:start [2024/04/21 19:19] (current) – [network support] frank | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== BananaPi R3 ====== | + | ====== BananaPi R3 Mini ====== |
https:// | https:// | ||
Line 39: | Line 39: | ||
dd if=/ | dd if=/ | ||
+ | booted original openwrt from nand.... | ||
+ | < | ||
+ | root@OpenWrt:/ | ||
+ | 631+1 records in | ||
+ | 631+1 records out | ||
+ | root@OpenWrt:/ | ||
+ | dd: error writing '/ | ||
+ | 1+0 records in | ||
+ | 0+0 records out | ||
+ | root@OpenWrt:/ | ||
+ | root@OpenWrt:/ | ||
+ | 392+1 records in | ||
+ | 392+1 records out | ||
+ | root@OpenWrt:/ | ||
+ | </ | ||
Kernel (creates the bpi-r3.itb with conf-emmc-mini bootconfig): | Kernel (creates the bpi-r3.itb with conf-emmc-mini bootconfig): | ||
Line 46: | Line 61: | ||
need to drop the "run setbootconf;" | need to drop the "run setbootconf;" | ||
< | < | ||
- | BPI-R3> run useusb | + | BPI-R3M> run useusb |
- | BPI-R3M> setenv initrd rootfs.cpio.zst | + | BPI-R3M> setenv initrd rootfs.cpio.zst |
- | BPI-R3M> setenv fit r3mini/ | + | BPI-R3M> setenv fit r3mini/ |
- | BPI-R3M> setenv bootconf "# | + | BPI-R3M> setenv bootconf "# |
BPI-R3M> run newboot | BPI-R3M> run newboot | ||
Line 57: | Line 72: | ||
dumpimage -l / | dumpimage -l / | ||
+ | |||
+ | |||
+ | ==== thermal ==== | ||
+ | |||
+ | root@bpi-r3-mini: | ||
+ | 48408 | ||
+ | |||
+ | manipulating trip points...this lets the fan run at 45°C silently and faster at 55°C (Case for R3mini gets really hot) | ||
+ | |||
+ | root@bpi-r3-mini: | ||
+ | root@bpi-r3-mini: | ||
+ | ==== my kernel ==== | ||
+ | |||
+ | i merged R3Mini support to my 6.6-main | ||
+ | |||
+ | https:// | ||
==== vendor-kernel ==== | ==== vendor-kernel ==== | ||
Line 78: | Line 109: | ||
==== pcie/nvme ==== | ==== pcie/nvme ==== | ||
- | not working | + | working |
< | < | ||
- | BPI-R3M> pci enum | + | BPI-R3M> pci enum |
- | drivers/ | + | drivers/ |
- | BPI-R3M> | + | set trans table 0: 0x20000000 0x20000000, 0x10000000 |
- | U-Boot 2024.01-bpi-r3mini-00011-g5aadabca11e5-dirty (Jan 20 2024 - 20:57:24 +01) | + | BPI-R3M> |
+ | BusDevFun | ||
+ | _____________________________________________________________ | ||
+ | 00.00.00 | ||
+ | 01.00.00 | ||
+ | BPI-R3M> nvme scan | ||
+ | BPI-R3M> | ||
+ | BPI-R3M> nvme info | ||
+ | Device 0: Vendor: 0x1c5c Rev: 80002C00 Prod: ND94N163610404F0R | ||
+ | Type: Hard Disk | ||
+ | Capacity: 244198.3 MB = 238.4 GB (500118192 x 512) | ||
+ | BPI-R3M> | ||
+ | </ | ||
- | aarch64-linux-gnu-gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0 | + | ==== network support ==== |
- | GNU ld (GNU Binutils for Ubuntu) 2.38 | + | only working once then network is stalled |
+ | |||
+ | < | ||
+ | BPI-R3M> setenv ipaddr 192.168.90.2 | ||
+ | BPI-R3M> ping 192.168.90.1 | ||
+ | Using ethernet@15100000 device | ||
+ | host 192.168.90.1 is alive | ||
+ | BPI-R3M> ping 192.168.90.1 | ||
+ | Using ethernet@15100000 device | ||
+ | |||
+ | ARP Retry count exceeded; starting again | ||
+ | ping failed; host 192.168.90.1 is not alive | ||
+ | BPI-R3M> | ||
</ | </ | ||
+ | |||
+ | This is fixed in my 2024-04 uboot by always run autonegotiation code (genphy code seems not working here). | ||
+ | |||
+ | Writing firmware to emmc boot1: | ||
+ | < | ||
+ | usb start | ||
+ | mmc partconf 0 1 2 2 | ||
+ | mmc erase 0x0 0x120 | ||
+ | load usb 0:1 $loadaddr EthMD32.dm.bin | ||
+ | mmc write $loadaddr 0x0 0x20 | ||
+ | load usb 0:1 $loadaddr EthMD32.DSP.bin | ||
+ | mmc write $loadaddr 0x20 0x100 | ||
+ | mmc partconf 0 1 1 0 | ||
+ | </ | ||
+ | |||
+ | daniel wrote it here: https:// | ||
+ | |||
+ | Linux way: | ||
+ | < | ||
+ | echo 0 > / | ||
+ | dd if=/ | ||
+ | dd if=/ | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | checking content of boot1 is same as concatenated firmware-files: | ||
+ | < | ||
+ | # cat / | ||
+ | # cat / | ||
+ | # ls -l airoha_usb.bin | ||
+ | -rw-r--r-- 1 root root 147456 Jan 1 00:03 airoha_usb.bin | ||
+ | # ls -l airoha_boot1.bin | ||
+ | -rw-r--r-- 1 root root 4194304 Jan 1 00:00 airoha_boot1.bin | ||
+ | # truncate --size=147456 airoha_boot1.bin | ||
+ | # ls -l airoha_boot1.bin | ||
+ | -rw-r--r-- 1 root root 147456 Jan 1 00:05 airoha_boot1.bin | ||
+ | # diff -u airoha_boot1.bin airoha_usb.bin | ||
+ | # | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | ==== nand install ==== | ||
+ | |||
+ | openwrt (file could be transferred also via usb): | ||
+ | https:// | ||
+ | ==== Fix bricked boot ==== | ||
+ | |||
+ | In case nand and emmc are broken there is a way to load uboot via uart for reflash/fix bootchain of the storages. | ||
+ | |||
+ | https:// | ||
+ | |||
+ | files here: | ||
+ | https:// | ||
+ | |||
+ | < | ||
+ | $ ./ | ||
+ | mtk_uartboot - 0.1.1 | ||
+ | Using serial port: / | ||
+ | Handshake... | ||
+ | hw code: 0x7986 | ||
+ | hw sub code: 0x8a00 | ||
+ | hw ver: 0xca01 | ||
+ | sw ver: 0x1 | ||
+ | Baud rate set to 460800 | ||
+ | sending payload to 0x201000... | ||
+ | Checksum: 0x3663 | ||
+ | Setting baudrate back to 115200 | ||
+ | Jumping to 0x201000 in aarch64... | ||
+ | Waiting for BL2. Message below: | ||
+ | ================================== | ||
+ | NOTICE: | ||
+ | NOTICE: | ||
+ | NOTICE: | ||
+ | NOTICE: | ||
+ | NOTICE: | ||
+ | NOTICE: | ||
+ | NOTICE: | ||
+ | NOTICE: | ||
+ | NOTICE: | ||
+ | ================================== | ||
+ | BL2 UART DL version: 0x10 | ||
+ | Baudrate set to: 921600 | ||
+ | FIP sent. | ||
+ | ================================== | ||
+ | NOTICE: | ||
+ | ================================== | ||
+ | </ | ||
+ | |||
+ | now you can use minicom or similar tool to get uboot-console and reflash bl2/fip to nand/emmc |
en/bpi-r3mini/start.1706290712.txt.gz · Last modified: 2024/01/26 18:38 by frank