User Tools

Site Tools



en:bpi-r3mini:start

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
en:bpi-r3mini:start [2024/04/10 09:44] – [Software] franken:bpi-r3mini:start [2024/04/21 19:16] – [network support] frank
Line 147: Line 147:
 This is fixed in my 2024-04 uboot by always run autonegotiation code (genphy code seems not working here). This is fixed in my 2024-04 uboot by always run autonegotiation code (genphy code seems not working here).
  
 +Writing firmware to emmc boot1:
 +<code>
 +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
 +</code>
 +
 +daniel wrote it here: https://forum.banana-pi.org/t/bpi-r3-mini-boot-from-nand-fails/17340/27
 +
 +Linux way:
 +<code>
 +echo 0 > /sys/block/mmcblk0boot1/force_ro
 +dd if=/lib/firmware/airoha/EthMD32.dm.bin of=/dev/mmcblk0boot1
 +dd if=/lib/firmware/airoha/EthMD32.DSP.bin bs=16384 seek=1 of=/dev/mmcblk0boot1
 +</code>
 +
 +<hidden>
 +checking content of boot1 is same as concatenated firmware-files:
 +<code>
 +# cat /dev/mmcblk0boot1 > airoha_boot1.bin
 +# cat /mnt/r3mini/EthMD32.dm.bin /mnt/r3mini/EthMD32.DSP.bin > airoha_usb.bin
 +# 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
 +
 +</code>
 +</hidden>
 ==== Fix bricked boot ==== ==== Fix bricked boot ====
  
en/bpi-r3mini/start.txt · Last modified: 2024/04/21 19:19 by frank